myshell-react-lib 0.2.18 → 0.2.20
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/package.json +2 -2
- package/dist/assets/animationData.json +0 -4759
- package/dist/assets/animationDataDark.json +0 -4759
- package/dist/assets/audio-playing.json +0 -3657
- package/dist/index.cjs +0 -24748
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -1755
- package/dist/index.d.ts +0 -1755
- package/dist/index.js +0 -23723
- package/dist/index.js.map +0 -1
- package/dist/styles/components-dark.scss +0 -210
- package/dist/styles/components-light.scss +0 -208
- package/dist/styles/design2-dark.scss +0 -332
- package/dist/styles/design2-light.scss +0 -366
- package/dist/styles/font.css +0 -19
- package/dist/styles/global.scss +0 -278
- package/dist/styles/md-viewer.scss +0 -155
- package/dist/styles/new-tokens.scss +0 -264
package/dist/index.d.cts
DELETED
|
@@ -1,1755 +0,0 @@
|
|
|
1
|
-
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
|
-
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { ReactElement, ReactEventHandler, SyntheticEvent } from 'react';
|
|
4
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
6
|
-
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
7
|
-
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
8
|
-
import * as class_variance_authority from 'class-variance-authority';
|
|
9
|
-
import { VariantProps } from 'class-variance-authority';
|
|
10
|
-
import { ClassNameValue } from 'tailwind-merge';
|
|
11
|
-
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
12
|
-
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
13
|
-
import { DialogProps } from '@radix-ui/react-dialog';
|
|
14
|
-
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
15
|
-
import * as vaul from 'vaul';
|
|
16
|
-
import { Drawer as Drawer$1 } from 'vaul';
|
|
17
|
-
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
18
|
-
import * as _radix_ui_react_slot from '@radix-ui/react-slot';
|
|
19
|
-
import * as react_hook_form from 'react-hook-form';
|
|
20
|
-
import { UseFormReturn, FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
21
|
-
export { Controller, ControllerProps, FieldPath, FieldValue, FieldValues, FormProvider, Mode, useForm, useFormContext, useWatch } from 'react-hook-form';
|
|
22
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
23
|
-
import { DriveStep } from 'driver.js';
|
|
24
|
-
import { LucideIcon } from 'lucide-react';
|
|
25
|
-
import { ImagePreviewType } from 'rc-image';
|
|
26
|
-
import { UrlObject } from 'url';
|
|
27
|
-
import * as _radix_ui_react_context from '@radix-ui/react-context';
|
|
28
|
-
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
29
|
-
import { FocusScopeProps } from '@radix-ui/react-focus-scope';
|
|
30
|
-
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
31
|
-
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
32
|
-
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
33
|
-
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
34
|
-
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
35
|
-
import { Command as Command$1 } from 'cmdk';
|
|
36
|
-
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
37
|
-
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
38
|
-
export { SliderPrimitive };
|
|
39
|
-
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
40
|
-
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
41
|
-
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
42
|
-
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
43
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
44
|
-
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
45
|
-
|
|
46
|
-
declare const Accordion: React$1.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React$1.RefAttributes<HTMLDivElement>>;
|
|
47
|
-
type AccordionItemProps = React$1.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item> & {
|
|
48
|
-
count?: number;
|
|
49
|
-
label?: string;
|
|
50
|
-
headerClassName?: string;
|
|
51
|
-
triggerClassName?: string;
|
|
52
|
-
sticky?: boolean;
|
|
53
|
-
children: React$1.ReactNode;
|
|
54
|
-
};
|
|
55
|
-
declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
56
|
-
count?: number;
|
|
57
|
-
label?: string;
|
|
58
|
-
headerClassName?: string;
|
|
59
|
-
triggerClassName?: string;
|
|
60
|
-
sticky?: boolean;
|
|
61
|
-
children: React$1.ReactNode;
|
|
62
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
63
|
-
declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
64
|
-
count?: number;
|
|
65
|
-
label?: string;
|
|
66
|
-
sticky?: boolean;
|
|
67
|
-
headerClassName?: string;
|
|
68
|
-
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
69
|
-
declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
70
|
-
|
|
71
|
-
declare const AlertDialog: React$1.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
72
|
-
declare const AlertDialogPortal: React$1.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
73
|
-
declare const AlertDialogTrigger: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
74
|
-
declare const AlertDialogOverlay: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
75
|
-
declare const AlertDialogContent: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
76
|
-
declare function AlertDialogHeader({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
77
|
-
declare namespace AlertDialogHeader {
|
|
78
|
-
var displayName: string;
|
|
79
|
-
}
|
|
80
|
-
declare function AlertDialogFooter({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
81
|
-
declare namespace AlertDialogFooter {
|
|
82
|
-
var displayName: string;
|
|
83
|
-
}
|
|
84
|
-
declare const AlertDialogTitle: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
85
|
-
declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
86
|
-
declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
87
|
-
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
88
|
-
|
|
89
|
-
declare const AspectRatio: React$1.ForwardRefExoticComponent<AspectRatioPrimitive.AspectRatioProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
90
|
-
|
|
91
|
-
interface IAudioProps {
|
|
92
|
-
src: string;
|
|
93
|
-
}
|
|
94
|
-
declare function AudioPlayer({ src }: IAudioProps): react_jsx_runtime.JSX.Element;
|
|
95
|
-
|
|
96
|
-
interface Props {
|
|
97
|
-
bright?: boolean;
|
|
98
|
-
}
|
|
99
|
-
declare function AudioPlaying(props: Props): react_jsx_runtime.JSX.Element;
|
|
100
|
-
|
|
101
|
-
declare const AvatarRoot: React$1.ForwardRefExoticComponent<Omit<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
102
|
-
ref?: ((instance: HTMLSpanElement | null) => void | React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React$1.RefObject<HTMLSpanElement> | null | undefined;
|
|
103
|
-
} & {
|
|
104
|
-
asChild?: boolean;
|
|
105
|
-
}, "ref"> & VariantProps<(props?: ({
|
|
106
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | null | undefined;
|
|
107
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
108
|
-
declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<Omit<React$1.DetailedHTMLProps<React$1.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & {
|
|
109
|
-
ref?: ((instance: HTMLImageElement | null) => void | React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React$1.RefObject<HTMLImageElement> | null | undefined;
|
|
110
|
-
} & {
|
|
111
|
-
asChild?: boolean;
|
|
112
|
-
}, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
|
|
113
|
-
declare const Avatar: React$1.ForwardRefExoticComponent<Omit<Omit<React$1.DetailedHTMLProps<React$1.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & {
|
|
114
|
-
ref?: ((instance: HTMLImageElement | null) => void | React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React$1.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React$1.RefObject<HTMLImageElement> | null | undefined;
|
|
115
|
-
} & {
|
|
116
|
-
asChild?: boolean;
|
|
117
|
-
}, "ref"> & VariantProps<(props?: ({
|
|
118
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | null | undefined;
|
|
119
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & {
|
|
120
|
-
variant?: "bot" | "user" | "widget";
|
|
121
|
-
border?: boolean;
|
|
122
|
-
rootStyle?: React$1.CSSProperties;
|
|
123
|
-
} & React$1.RefAttributes<HTMLImageElement>>;
|
|
124
|
-
|
|
125
|
-
declare const badgeVariants: (props?: ({
|
|
126
|
-
status?: "default" | "hidden" | "unRead" | "cardUnRead" | "public" | "private" | "new" | null | undefined;
|
|
127
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
128
|
-
interface BadgeProps extends VariantProps<typeof badgeVariants> {
|
|
129
|
-
className?: ClassNameValue;
|
|
130
|
-
status?: 'default' | 'unRead' | 'cardUnRead' | 'public' | 'private' | 'hidden' | 'new';
|
|
131
|
-
count?: number;
|
|
132
|
-
}
|
|
133
|
-
declare function Badge(props: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
134
|
-
|
|
135
|
-
declare const buttonVariants: (props?: ({
|
|
136
|
-
variant?: "link" | "opacity" | "static" | "primary" | "secondary" | "tertiary" | "ghost" | "plain" | null | undefined;
|
|
137
|
-
color?: "default" | "brand" | "error" | null | undefined;
|
|
138
|
-
size?: "2xs" | "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
139
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
140
|
-
type VariantType$1 = 'primary' | 'secondary' | 'tertiary' | 'link' | 'plain' | 'opacity' | 'ghost' | 'static';
|
|
141
|
-
type ButtonBaseProps = VariantProps<typeof buttonVariants>;
|
|
142
|
-
type VariantColorMap$1 = {
|
|
143
|
-
primary: 'default' | 'brand' | 'error';
|
|
144
|
-
secondary: 'default' | 'error';
|
|
145
|
-
tertiary: 'default';
|
|
146
|
-
link: 'default';
|
|
147
|
-
plain: 'default' | 'brand';
|
|
148
|
-
opacity: never;
|
|
149
|
-
ghost: never;
|
|
150
|
-
static: never;
|
|
151
|
-
};
|
|
152
|
-
type ButtonProps$1<V extends VariantType$1 = VariantType$1> = Omit<ButtonBaseProps, 'color'> & {
|
|
153
|
-
variant?: V;
|
|
154
|
-
color?: V extends keyof VariantColorMap$1 ? VariantColorMap$1[V] : never;
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
type ButtonProps = ButtonProps$1;
|
|
158
|
-
interface ButtonComponentProps<V extends VariantType$1 = VariantType$1> extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, Omit<ButtonProps$1<V>, 'color'> {
|
|
159
|
-
asChild?: boolean;
|
|
160
|
-
loading?: boolean;
|
|
161
|
-
icon?: React$1.ElementType;
|
|
162
|
-
iconDirection?: 'left' | 'right';
|
|
163
|
-
variant?: V;
|
|
164
|
-
color?: V extends keyof VariantColorMap$1 ? VariantColorMap$1[V] : never;
|
|
165
|
-
size?: 'sm' | 'md' | 'lg';
|
|
166
|
-
noStyle?: boolean;
|
|
167
|
-
iconClassName?: string;
|
|
168
|
-
iconOutBox?: boolean;
|
|
169
|
-
isBlock?: boolean;
|
|
170
|
-
asset?: 'energy' | 'coin';
|
|
171
|
-
assetNumber?: number;
|
|
172
|
-
roundedFull?: boolean;
|
|
173
|
-
}
|
|
174
|
-
declare const Button: (<V extends VariantType$1>(props: ButtonComponentProps<V> & {
|
|
175
|
-
ref?: React$1.ForwardedRef<HTMLButtonElement>;
|
|
176
|
-
}) => JSX.Element) & {
|
|
177
|
-
displayName: string;
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
interface LinkButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'variant'> {
|
|
181
|
-
asChild?: boolean;
|
|
182
|
-
loading?: boolean;
|
|
183
|
-
icon?: React$1.ElementType;
|
|
184
|
-
iconDirection?: 'left' | 'right';
|
|
185
|
-
color?: 'default' | 'brand' | 'error';
|
|
186
|
-
noStyle?: boolean;
|
|
187
|
-
iconClassName?: string;
|
|
188
|
-
iconOutBox?: boolean;
|
|
189
|
-
isBlock?: boolean;
|
|
190
|
-
asset?: 'energy' | 'coin' | 'point';
|
|
191
|
-
assetNumber?: number;
|
|
192
|
-
size?: 'lg' | 'md' | 'sm';
|
|
193
|
-
}
|
|
194
|
-
declare const LinkButton: React$1.ForwardRefExoticComponent<LinkButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
195
|
-
|
|
196
|
-
interface CascaderOption {
|
|
197
|
-
label: string;
|
|
198
|
-
value?: string;
|
|
199
|
-
disabled?: boolean;
|
|
200
|
-
children?: CascaderOption[];
|
|
201
|
-
parent?: string;
|
|
202
|
-
}
|
|
203
|
-
interface CommonP {
|
|
204
|
-
value?: string;
|
|
205
|
-
defaultValue?: string;
|
|
206
|
-
onValueChange: (value: string, parent?: string) => void;
|
|
207
|
-
className?: ClassNameValue;
|
|
208
|
-
}
|
|
209
|
-
interface P extends CommonP {
|
|
210
|
-
options: CascaderOption[];
|
|
211
|
-
disabled?: boolean;
|
|
212
|
-
showParentLabel?: boolean;
|
|
213
|
-
placeholder?: string;
|
|
214
|
-
emptyText?: string;
|
|
215
|
-
clearByDefault?: boolean;
|
|
216
|
-
rounded?: "default" | "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | null | undefined;
|
|
217
|
-
size?: "2xs" | "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
218
|
-
border?: "none" | "default" | null | undefined;
|
|
219
|
-
outline?: "none" | "default" | null | undefined;
|
|
220
|
-
background?: "none" | "default" | null | undefined;
|
|
221
|
-
}
|
|
222
|
-
declare function CascaderContent({ options, value, onValueChange, className, emptyText, buttonRef, }: {
|
|
223
|
-
options: CascaderOption[];
|
|
224
|
-
value?: string;
|
|
225
|
-
onValueChange: (value: string, parent?: string) => void;
|
|
226
|
-
className?: ClassNameValue;
|
|
227
|
-
emptyText?: string;
|
|
228
|
-
buttonRef: React__default.RefObject<HTMLButtonElement>;
|
|
229
|
-
}): react_jsx_runtime.JSX.Element;
|
|
230
|
-
declare function Cascader(props: P): react_jsx_runtime.JSX.Element;
|
|
231
|
-
|
|
232
|
-
declare const Card: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
233
|
-
declare const CardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
234
|
-
declare const CardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
235
|
-
declare const CardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
236
|
-
declare const CardContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
237
|
-
declare const CardFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
238
|
-
|
|
239
|
-
declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
240
|
-
variant?: "circle" | "checkbox" | "radio" | "static" | null | undefined;
|
|
241
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & {
|
|
242
|
-
label?: string;
|
|
243
|
-
caption?: string;
|
|
244
|
-
labelClassName?: string;
|
|
245
|
-
captionClassName?: string;
|
|
246
|
-
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
247
|
-
|
|
248
|
-
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
249
|
-
children?: React$1.ReactNode;
|
|
250
|
-
} & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
251
|
-
label?: string;
|
|
252
|
-
shouldFilter?: boolean;
|
|
253
|
-
filter?: (value: string, search: string) => number;
|
|
254
|
-
defaultValue?: string;
|
|
255
|
-
value?: string;
|
|
256
|
-
onValueChange?: (value: string) => void;
|
|
257
|
-
loop?: boolean;
|
|
258
|
-
vimBindings?: boolean;
|
|
259
|
-
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
260
|
-
type CommandDialogProps = DialogProps;
|
|
261
|
-
declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => react_jsx_runtime.JSX.Element;
|
|
262
|
-
declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "type"> & {
|
|
263
|
-
value?: string;
|
|
264
|
-
onValueChange?: (search: string) => void;
|
|
265
|
-
} & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
266
|
-
declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
|
|
267
|
-
children?: React$1.ReactNode;
|
|
268
|
-
} & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
269
|
-
declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
|
|
270
|
-
children?: React$1.ReactNode;
|
|
271
|
-
} & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
272
|
-
declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
|
|
273
|
-
children?: React$1.ReactNode;
|
|
274
|
-
} & Omit<React$1.HTMLAttributes<HTMLDivElement>, "value" | "heading"> & {
|
|
275
|
-
heading?: React$1.ReactNode;
|
|
276
|
-
value?: string;
|
|
277
|
-
forceMount?: boolean;
|
|
278
|
-
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
279
|
-
declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement> & {
|
|
280
|
-
alwaysRender?: boolean;
|
|
281
|
-
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
282
|
-
declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
|
|
283
|
-
children?: React$1.ReactNode;
|
|
284
|
-
} & Omit<React$1.HTMLAttributes<HTMLDivElement>, "disabled" | "onSelect" | "value"> & {
|
|
285
|
-
disabled?: boolean;
|
|
286
|
-
onSelect?: (value: string) => void;
|
|
287
|
-
value?: string;
|
|
288
|
-
forceMount?: boolean;
|
|
289
|
-
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
290
|
-
declare const CommandShortcut: {
|
|
291
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
292
|
-
displayName: string;
|
|
293
|
-
};
|
|
294
|
-
|
|
295
|
-
declare const ContextMenu: React$1.FC<ContextMenuPrimitive.ContextMenuProps>;
|
|
296
|
-
declare const ContextMenuTrigger: React$1.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
297
|
-
declare const ContextMenuGroup: React$1.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
298
|
-
declare const ContextMenuPortal: React$1.FC<ContextMenuPrimitive.ContextMenuPortalProps>;
|
|
299
|
-
declare const ContextMenuSub: React$1.FC<ContextMenuPrimitive.ContextMenuSubProps>;
|
|
300
|
-
declare const ContextMenuRadioGroup: React$1.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
301
|
-
declare const ContextMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
302
|
-
inset?: boolean;
|
|
303
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
304
|
-
declare const ContextMenuSubContent: React$1.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
305
|
-
declare const ContextMenuContent: React$1.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
306
|
-
declare const ContextMenuItem: React$1.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
307
|
-
inset?: boolean;
|
|
308
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
309
|
-
declare const ContextMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
310
|
-
declare const ContextMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
311
|
-
declare const ContextMenuLabel: React$1.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
312
|
-
inset?: boolean;
|
|
313
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
314
|
-
declare const ContextMenuSeparator: React$1.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
315
|
-
declare const ContextMenuShortcut: {
|
|
316
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
317
|
-
displayName: string;
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
321
|
-
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
322
|
-
declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
323
|
-
declare const DialogTrigger: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
324
|
-
declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
325
|
-
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
326
|
-
maskClosable?: boolean;
|
|
327
|
-
hideClose?: boolean;
|
|
328
|
-
onClose?: () => void;
|
|
329
|
-
overlayClose?: boolean;
|
|
330
|
-
overlayClassName?: string;
|
|
331
|
-
iconClassName?: string;
|
|
332
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
333
|
-
declare function DialogHeader({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
334
|
-
declare namespace DialogHeader {
|
|
335
|
-
var displayName: string;
|
|
336
|
-
}
|
|
337
|
-
declare function DialogFooter({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
338
|
-
declare namespace DialogFooter {
|
|
339
|
-
var displayName: string;
|
|
340
|
-
}
|
|
341
|
-
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
342
|
-
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
343
|
-
|
|
344
|
-
declare function Drawer({ shouldScaleBackground, ...props }: React$1.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
|
|
345
|
-
declare namespace Drawer {
|
|
346
|
-
var displayName: string;
|
|
347
|
-
}
|
|
348
|
-
declare const DrawerTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
349
|
-
declare const DrawerPortal: typeof vaul.Portal;
|
|
350
|
-
declare const DrawerClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
351
|
-
declare const DrawerOverlay: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
352
|
-
declare const DrawerContent: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
353
|
-
declare function DrawerHeader({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
354
|
-
declare namespace DrawerHeader {
|
|
355
|
-
var displayName: string;
|
|
356
|
-
}
|
|
357
|
-
declare function DrawerFooter({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
358
|
-
declare namespace DrawerFooter {
|
|
359
|
-
var displayName: string;
|
|
360
|
-
}
|
|
361
|
-
declare const DrawerTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
362
|
-
declare const DrawerDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
363
|
-
|
|
364
|
-
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
365
|
-
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
366
|
-
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
367
|
-
declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
368
|
-
declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
369
|
-
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
370
|
-
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
371
|
-
inset?: boolean;
|
|
372
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
373
|
-
declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
374
|
-
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
375
|
-
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
376
|
-
inset?: boolean;
|
|
377
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
378
|
-
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
379
|
-
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
380
|
-
declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
381
|
-
inset?: boolean;
|
|
382
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
383
|
-
declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
384
|
-
declare const DropdownMenuShortcut: {
|
|
385
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
386
|
-
displayName: string;
|
|
387
|
-
};
|
|
388
|
-
|
|
389
|
-
type FormRef = UseFormReturn & {
|
|
390
|
-
submit: () => void;
|
|
391
|
-
};
|
|
392
|
-
declare const Form: React$1.ForwardRefExoticComponent<Omit<Omit<any, "ref">, "ref"> & React$1.RefAttributes<UseFormReturn>>;
|
|
393
|
-
declare function FormField<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>): react_jsx_runtime.JSX.Element;
|
|
394
|
-
declare const useFormField: () => {
|
|
395
|
-
invalid: boolean;
|
|
396
|
-
isDirty: boolean;
|
|
397
|
-
isTouched: boolean;
|
|
398
|
-
isValidating: boolean;
|
|
399
|
-
error?: react_hook_form.FieldError;
|
|
400
|
-
id: string;
|
|
401
|
-
name: string;
|
|
402
|
-
formItemId: string;
|
|
403
|
-
formDescriptionId: string;
|
|
404
|
-
formMessageId: string;
|
|
405
|
-
};
|
|
406
|
-
interface IFormItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
407
|
-
layout?: "Vertical" | "Horizontal";
|
|
408
|
-
}
|
|
409
|
-
declare const FormItem: React$1.ForwardRefExoticComponent<IFormItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
410
|
-
interface IFormLabelProps extends React$1.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> {
|
|
411
|
-
required?: boolean;
|
|
412
|
-
}
|
|
413
|
-
declare const FormLabel: React$1.ForwardRefExoticComponent<IFormLabelProps & React$1.RefAttributes<HTMLLabelElement>>;
|
|
414
|
-
declare const FormControl: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
415
|
-
declare const FormDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
416
|
-
declare const FormMessage: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
417
|
-
|
|
418
|
-
interface GuideProps {
|
|
419
|
-
steps: DriveStep[];
|
|
420
|
-
showProgress?: boolean;
|
|
421
|
-
showOverlay?: boolean;
|
|
422
|
-
hasCloseBtn?: boolean;
|
|
423
|
-
allowClose?: boolean;
|
|
424
|
-
hasSkip?: boolean;
|
|
425
|
-
skipText?: string;
|
|
426
|
-
hasNextBtn?: boolean;
|
|
427
|
-
hasPrevBtn?: boolean;
|
|
428
|
-
prevBtnText?: string;
|
|
429
|
-
nextBtnText?: string;
|
|
430
|
-
doneBtnText?: string;
|
|
431
|
-
className?: string;
|
|
432
|
-
onComplete?: () => void;
|
|
433
|
-
onSkip?: () => void;
|
|
434
|
-
}
|
|
435
|
-
declare const Guide: React$1.FC<GuideProps>;
|
|
436
|
-
|
|
437
|
-
declare const iconVariants: (props?: ({
|
|
438
|
-
size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | null | undefined;
|
|
439
|
-
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "bolder" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | null | undefined;
|
|
440
|
-
rotate?: "45" | "90" | "-45" | "-90" | "180" | null | undefined;
|
|
441
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
442
|
-
type IconProps = React$1.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof iconVariants> & {
|
|
443
|
-
/**
|
|
444
|
-
* icon 组件
|
|
445
|
-
*/
|
|
446
|
-
component?: React$1.ElementType;
|
|
447
|
-
};
|
|
448
|
-
declare const Icon: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLSpanElement> & VariantProps<(props?: ({
|
|
449
|
-
size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | null | undefined;
|
|
450
|
-
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "bolder" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | null | undefined;
|
|
451
|
-
rotate?: "45" | "90" | "-45" | "-90" | "180" | null | undefined;
|
|
452
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & {
|
|
453
|
-
/**
|
|
454
|
-
* icon 组件
|
|
455
|
-
*/
|
|
456
|
-
component?: React$1.ElementType;
|
|
457
|
-
} & React$1.RefAttributes<HTMLSpanElement>>;
|
|
458
|
-
type IconComponent = React$1.ForwardRefExoticComponent<IconProps>;
|
|
459
|
-
|
|
460
|
-
type VariantType = 'primary' | 'secondary' | 'tertiary' | 'plain' | 'opacity' | 'ghost' | 'static';
|
|
461
|
-
type ColorType = 'default' | 'brand' | 'error' | 'gray';
|
|
462
|
-
type SizeType = 'xs' | 'sm' | 'md' | 'lg';
|
|
463
|
-
declare const iconButtonVariants: (props?: ({
|
|
464
|
-
variant?: VariantType | null | undefined;
|
|
465
|
-
color?: ColorType | null | undefined;
|
|
466
|
-
size?: SizeType | null | undefined;
|
|
467
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
468
|
-
type IconButtonSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
469
|
-
type IconButtonBaseProps = VariantProps<typeof iconButtonVariants>;
|
|
470
|
-
type VariantColorMap = {
|
|
471
|
-
primary: 'brand' | 'error';
|
|
472
|
-
secondary: 'default' | 'error';
|
|
473
|
-
tertiary: 'default';
|
|
474
|
-
plain: 'default' | 'error' | 'gray';
|
|
475
|
-
opacity: never;
|
|
476
|
-
ghost: never;
|
|
477
|
-
static: never;
|
|
478
|
-
};
|
|
479
|
-
type IconButtonProps<V extends VariantType = VariantType> = Omit<IconButtonBaseProps, 'color'> & {
|
|
480
|
-
variant?: V;
|
|
481
|
-
color?: V extends keyof VariantColorMap ? VariantColorMap[V] : never;
|
|
482
|
-
};
|
|
483
|
-
|
|
484
|
-
type IconType = React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<React$1.SVGProps<SVGSVGElement>> & {
|
|
485
|
-
title?: string;
|
|
486
|
-
titleId?: string;
|
|
487
|
-
} & React$1.RefAttributes<SVGSVGElement>>;
|
|
488
|
-
interface IconButtonComponentProps<V extends VariantType = VariantType> extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, IconButtonProps<V> {
|
|
489
|
-
asChild?: boolean;
|
|
490
|
-
loading?: boolean;
|
|
491
|
-
disabled?: boolean;
|
|
492
|
-
icon?: IconType | LucideIcon | IconComponent | React$1.ElementType;
|
|
493
|
-
hoverText?: string;
|
|
494
|
-
hoverSide?: 'top' | 'right' | 'bottom' | 'left';
|
|
495
|
-
iconClassName?: ClassNameValue;
|
|
496
|
-
size?: IconButtonSize;
|
|
497
|
-
isMobile?: boolean;
|
|
498
|
-
tooltipContentClassName?: string;
|
|
499
|
-
tooltipTriggerClassName?: string;
|
|
500
|
-
variant?: V;
|
|
501
|
-
color?: V extends keyof VariantColorMap ? VariantColorMap[V] : never;
|
|
502
|
-
}
|
|
503
|
-
declare const IconButton: <V extends VariantType>(props: IconButtonComponentProps<V> & {
|
|
504
|
-
ref?: React$1.ForwardedRef<HTMLButtonElement>;
|
|
505
|
-
}) => JSX.Element;
|
|
506
|
-
|
|
507
|
-
interface ImageProps {
|
|
508
|
-
/**
|
|
509
|
-
* 图片地址
|
|
510
|
-
*/
|
|
511
|
-
src: string;
|
|
512
|
-
/**
|
|
513
|
-
* 图像宽度
|
|
514
|
-
* string | number
|
|
515
|
-
*/
|
|
516
|
-
width?: string | number;
|
|
517
|
-
/**
|
|
518
|
-
* 图像高度
|
|
519
|
-
* string | number
|
|
520
|
-
*/
|
|
521
|
-
height?: string | number;
|
|
522
|
-
/**
|
|
523
|
-
* 加载占位,为 true 时使用默认占位
|
|
524
|
-
*/
|
|
525
|
-
placeholder?: boolean | ReactElement;
|
|
526
|
-
/**
|
|
527
|
-
* 加载失败容错地址
|
|
528
|
-
*/
|
|
529
|
-
fallback?: string;
|
|
530
|
-
/**
|
|
531
|
-
* 预览参数,为 false 时禁用
|
|
532
|
-
*/
|
|
533
|
-
/**
|
|
534
|
-
* 圆角,默认为 none
|
|
535
|
-
*/
|
|
536
|
-
rounded?: 'none' | 'sm' | 'default' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
|
|
537
|
-
/**
|
|
538
|
-
* 填充类型
|
|
539
|
-
*/
|
|
540
|
-
object?: 'contain' | 'cover' | 'fill' | 'none';
|
|
541
|
-
/**
|
|
542
|
-
* 图像描述
|
|
543
|
-
*/
|
|
544
|
-
alt?: string;
|
|
545
|
-
/**
|
|
546
|
-
* image样式覆盖
|
|
547
|
-
*/
|
|
548
|
-
className?: string;
|
|
549
|
-
/**
|
|
550
|
-
* image样式覆盖
|
|
551
|
-
*/
|
|
552
|
-
imgClassName?: string;
|
|
553
|
-
/**
|
|
554
|
-
* 是否是背景图
|
|
555
|
-
*/
|
|
556
|
-
isBackgroud?: boolean;
|
|
557
|
-
preview?: boolean | ImagePreviewType;
|
|
558
|
-
/**
|
|
559
|
-
* 加载优先级
|
|
560
|
-
*
|
|
561
|
-
* @default auto
|
|
562
|
-
*/
|
|
563
|
-
fetchPriority?: 'auto' | 'high' | 'low' | 'low';
|
|
564
|
-
loading?: 'eager' | 'lazy';
|
|
565
|
-
style?: React.CSSProperties;
|
|
566
|
-
onLoad?: ReactEventHandler<HTMLImageElement>;
|
|
567
|
-
/**
|
|
568
|
-
* 加载错误回调
|
|
569
|
-
*/
|
|
570
|
-
onError?: (event: SyntheticEvent<HTMLImageElement, Event>) => void;
|
|
571
|
-
}
|
|
572
|
-
declare function Image({ className, imgClassName, placeholder, width, height, src, rounded, fallback, object, isBackgroud, preview, fetchPriority, loading, ...otherProps }: ImageProps): react_jsx_runtime.JSX.Element;
|
|
573
|
-
|
|
574
|
-
type InputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
575
|
-
rounded?: "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "full" | null | undefined;
|
|
576
|
-
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
577
|
-
isFull?: boolean;
|
|
578
|
-
border?: "none" | "default" | null | undefined;
|
|
579
|
-
shadow?: "none" | "default" | null | undefined;
|
|
580
|
-
outline?: "none" | "default" | null | undefined;
|
|
581
|
-
background?: "none" | "default" | null | undefined;
|
|
582
|
-
showLength?: boolean;
|
|
583
|
-
rootClassName?: string;
|
|
584
|
-
};
|
|
585
|
-
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
586
|
-
rounded?: "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "full" | null | undefined;
|
|
587
|
-
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
588
|
-
isFull?: boolean;
|
|
589
|
-
border?: "none" | "default" | null | undefined;
|
|
590
|
-
shadow?: "none" | "default" | null | undefined;
|
|
591
|
-
outline?: "none" | "default" | null | undefined;
|
|
592
|
-
background?: "none" | "default" | null | undefined;
|
|
593
|
-
showLength?: boolean;
|
|
594
|
-
rootClassName?: string;
|
|
595
|
-
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
596
|
-
|
|
597
|
-
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_dist_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
598
|
-
|
|
599
|
-
interface LinkProps {
|
|
600
|
-
/**
|
|
601
|
-
* 跳转地址
|
|
602
|
-
* '/about'
|
|
603
|
-
* {
|
|
604
|
-
* pathname: '/about',
|
|
605
|
-
query: { name: 'test' },
|
|
606
|
-
* }
|
|
607
|
-
*/
|
|
608
|
-
href: string | UrlObject;
|
|
609
|
-
/**
|
|
610
|
-
* 图像宽度
|
|
611
|
-
* string | number
|
|
612
|
-
*/
|
|
613
|
-
scroll?: boolean;
|
|
614
|
-
/**
|
|
615
|
-
* 替换url
|
|
616
|
-
*/
|
|
617
|
-
replace?: boolean;
|
|
618
|
-
/**
|
|
619
|
-
* true:进入视区预先获取herf数据
|
|
620
|
-
* false:进入视区不获取,悬浮时获取
|
|
621
|
-
*/
|
|
622
|
-
prefetch?: boolean;
|
|
623
|
-
/**
|
|
624
|
-
* Forces `Link` to send the `href` property to its child.
|
|
625
|
-
*
|
|
626
|
-
* @defaultValue `false`
|
|
627
|
-
*/
|
|
628
|
-
passHref?: boolean;
|
|
629
|
-
/**
|
|
630
|
-
* 样式覆盖
|
|
631
|
-
*/
|
|
632
|
-
className?: string;
|
|
633
|
-
/**
|
|
634
|
-
* 是否是返回link
|
|
635
|
-
*/
|
|
636
|
-
back?: boolean;
|
|
637
|
-
/**
|
|
638
|
-
* 是否是移动端
|
|
639
|
-
*/
|
|
640
|
-
isMobile?: boolean;
|
|
641
|
-
onClick?: (e: any) => void;
|
|
642
|
-
children?: React.ReactNode;
|
|
643
|
-
[key: string]: any;
|
|
644
|
-
}
|
|
645
|
-
declare function Link({ className, href, scroll, replace, prefetch, back, children, isMobile, onClick, ...props }: LinkProps): react_jsx_runtime.JSX.Element;
|
|
646
|
-
|
|
647
|
-
interface BreakpointColsObject {
|
|
648
|
-
default: number;
|
|
649
|
-
[key: number]: number;
|
|
650
|
-
}
|
|
651
|
-
interface MasonryProps {
|
|
652
|
-
breakpointCols?: number | BreakpointColsObject;
|
|
653
|
-
className?: string;
|
|
654
|
-
columnClassName?: string;
|
|
655
|
-
children?: React__default.ReactNode;
|
|
656
|
-
columnAttrs?: React__default.HTMLAttributes<HTMLDivElement>;
|
|
657
|
-
heights?: number[];
|
|
658
|
-
}
|
|
659
|
-
declare const Masonry: React__default.FC<MasonryProps>;
|
|
660
|
-
|
|
661
|
-
declare const MenubarMenu: {
|
|
662
|
-
(props: MenubarPrimitive.MenubarMenuProps & {
|
|
663
|
-
__scopeMenubar?: _radix_ui_react_context.Scope;
|
|
664
|
-
}): react_jsx_runtime.JSX.Element;
|
|
665
|
-
displayName: string;
|
|
666
|
-
};
|
|
667
|
-
declare const MenubarGroup: React$1.ForwardRefExoticComponent<MenubarPrimitive.MenubarGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
668
|
-
declare const MenubarPortal: React$1.FC<MenubarPrimitive.MenubarPortalProps>;
|
|
669
|
-
declare const MenubarSub: React$1.FC<MenubarPrimitive.MenubarSubProps>;
|
|
670
|
-
declare const MenubarRadioGroup: React$1.ForwardRefExoticComponent<MenubarPrimitive.MenubarRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
671
|
-
declare const Menubar: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
672
|
-
declare const MenubarTrigger: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
673
|
-
declare const MenubarSubTrigger: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
674
|
-
inset?: boolean;
|
|
675
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
676
|
-
declare const MenubarSubContent: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
677
|
-
declare const MenubarContent: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
678
|
-
declare const MenubarItem: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
679
|
-
inset?: boolean;
|
|
680
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
681
|
-
declare const MenubarCheckboxItem: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
682
|
-
declare const MenubarRadioItem: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
683
|
-
declare const MenubarLabel: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
684
|
-
inset?: boolean;
|
|
685
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
686
|
-
declare const MenubarSeparator: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
687
|
-
declare const MenubarShortcut: {
|
|
688
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
689
|
-
displayname: string;
|
|
690
|
-
};
|
|
691
|
-
|
|
692
|
-
declare const ModalOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
693
|
-
declare const ModalContent: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
694
|
-
declare const ModalRoot: React$1.FC<React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Dialog>>;
|
|
695
|
-
declare const ModalTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & {
|
|
696
|
-
isMobile?: boolean;
|
|
697
|
-
} & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
698
|
-
declare const modalVariants: (props?: ({
|
|
699
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
700
|
-
zIndex?: 99 | 9 | 999 | 9999 | null | undefined;
|
|
701
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
702
|
-
type TModalState = 'info' | 'success' | 'warning' | 'error';
|
|
703
|
-
declare const Modal: React$1.FC<React$1.ComponentPropsWithoutRef<typeof ModalRoot> & {
|
|
704
|
-
/**
|
|
705
|
-
* 模态框标题文本
|
|
706
|
-
*/
|
|
707
|
-
title?: string;
|
|
708
|
-
/**
|
|
709
|
-
* 模态框描述文本
|
|
710
|
-
*/
|
|
711
|
-
description?: string;
|
|
712
|
-
/**
|
|
713
|
-
* 点击覆盖层是否关闭模态框
|
|
714
|
-
*/
|
|
715
|
-
overlayClose?: boolean;
|
|
716
|
-
/**
|
|
717
|
-
* 是否隐藏关闭按钮
|
|
718
|
-
*/
|
|
719
|
-
hideClose?: boolean;
|
|
720
|
-
/**
|
|
721
|
-
* 模态框是否仅作为模态框显示(而不是抽屉)
|
|
722
|
-
*/
|
|
723
|
-
modalOnly?: boolean;
|
|
724
|
-
/**
|
|
725
|
-
* 覆盖层的额外类名
|
|
726
|
-
*/
|
|
727
|
-
overlayClassName?: string;
|
|
728
|
-
/**
|
|
729
|
-
* 模态框内容的额外类名
|
|
730
|
-
*/
|
|
731
|
-
contentClassName?: string;
|
|
732
|
-
/**
|
|
733
|
-
* 关闭按钮的额外类名
|
|
734
|
-
*/
|
|
735
|
-
closeClassName?: string;
|
|
736
|
-
/**
|
|
737
|
-
* 图标的额外类名
|
|
738
|
-
*/
|
|
739
|
-
iconClassName?: string;
|
|
740
|
-
/**
|
|
741
|
-
* 模态框是否以全屏显示
|
|
742
|
-
*/
|
|
743
|
-
fullScreen?: boolean;
|
|
744
|
-
/**
|
|
745
|
-
* 焦点范围管理的选项
|
|
746
|
-
*/
|
|
747
|
-
focusScopeOptions?: FocusScopeProps;
|
|
748
|
-
/**
|
|
749
|
-
* 登录模态框的特殊逻辑
|
|
750
|
-
*/
|
|
751
|
-
isLogin?: boolean;
|
|
752
|
-
/**
|
|
753
|
-
* 表示模态框是否为通知
|
|
754
|
-
*/
|
|
755
|
-
isNotification?: boolean;
|
|
756
|
-
/**
|
|
757
|
-
* 模态框的状态(信息、成功、警告、错误)
|
|
758
|
-
*/
|
|
759
|
-
state?: TModalState;
|
|
760
|
-
/**
|
|
761
|
-
* isNotification 的情况下可能会需要
|
|
762
|
-
*/
|
|
763
|
-
showCancel?: boolean;
|
|
764
|
-
/**
|
|
765
|
-
* 是否为水平布局
|
|
766
|
-
*/
|
|
767
|
-
isHorizontal?: boolean;
|
|
768
|
-
/**
|
|
769
|
-
* 确认按钮的加载状态
|
|
770
|
-
*/
|
|
771
|
-
confirmLoading?: boolean;
|
|
772
|
-
/**
|
|
773
|
-
* 取消按钮的文本
|
|
774
|
-
*/
|
|
775
|
-
cancelText?: string;
|
|
776
|
-
/**
|
|
777
|
-
* 确认按钮的文本
|
|
778
|
-
*/
|
|
779
|
-
confirmText?: string;
|
|
780
|
-
/**
|
|
781
|
-
* 是否自动聚焦
|
|
782
|
-
* @default false
|
|
783
|
-
*/
|
|
784
|
-
autoFocus?: string;
|
|
785
|
-
/**
|
|
786
|
-
* 关闭模态框时的回调函数
|
|
787
|
-
*/
|
|
788
|
-
onClose?: () => void;
|
|
789
|
-
/**
|
|
790
|
-
* 确认操作时的回调函数
|
|
791
|
-
*/
|
|
792
|
-
onConfirm?: () => void;
|
|
793
|
-
} & VariantProps<typeof modalVariants>>;
|
|
794
|
-
declare function ModalHeader({ className, children, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
795
|
-
declare namespace ModalHeader {
|
|
796
|
-
var displayName: string;
|
|
797
|
-
}
|
|
798
|
-
declare function ModalFooter({ className, children, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
799
|
-
declare namespace ModalFooter {
|
|
800
|
-
var displayName: string;
|
|
801
|
-
}
|
|
802
|
-
declare function ModalBody({ className, children, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
803
|
-
declare namespace ModalBody {
|
|
804
|
-
var displayName: string;
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
type IMiddleBar = {
|
|
808
|
-
/**
|
|
809
|
-
* 右侧自定义内容
|
|
810
|
-
* ReactNode
|
|
811
|
-
*
|
|
812
|
-
*/
|
|
813
|
-
children?: React.ReactNode;
|
|
814
|
-
/**
|
|
815
|
-
* 导航栏title
|
|
816
|
-
* string
|
|
817
|
-
*/
|
|
818
|
-
title?: string;
|
|
819
|
-
/**
|
|
820
|
-
* 是否展示搜索框
|
|
821
|
-
* boolean
|
|
822
|
-
*
|
|
823
|
-
* @default false
|
|
824
|
-
*/
|
|
825
|
-
showSearchBar?: boolean;
|
|
826
|
-
/**
|
|
827
|
-
* 搜索框值
|
|
828
|
-
* string
|
|
829
|
-
*/
|
|
830
|
-
searchValue?: string;
|
|
831
|
-
/**
|
|
832
|
-
* 搜索框占位值
|
|
833
|
-
* string
|
|
834
|
-
*/
|
|
835
|
-
searchPlaceholder?: string;
|
|
836
|
-
/**
|
|
837
|
-
* 电量值
|
|
838
|
-
* number
|
|
839
|
-
*/
|
|
840
|
-
energy?: number;
|
|
841
|
-
/**
|
|
842
|
-
* 每日电量值
|
|
843
|
-
* number
|
|
844
|
-
*/
|
|
845
|
-
dailyEnergy?: number;
|
|
846
|
-
onSearchChange?: (value: string) => void;
|
|
847
|
-
};
|
|
848
|
-
declare function MiddleBar({ showSearchBar, searchValue, searchPlaceholder, title, children, energy, dailyEnergy, onSearchChange, }: IMiddleBar): react_jsx_runtime.JSX.Element;
|
|
849
|
-
|
|
850
|
-
type INumberInputProps = Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
851
|
-
rounded?: "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "full" | null | undefined;
|
|
852
|
-
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
853
|
-
isFull?: boolean;
|
|
854
|
-
controls?: boolean;
|
|
855
|
-
};
|
|
856
|
-
declare const NumberInput: React__default.ForwardRefExoticComponent<Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "size"> & {
|
|
857
|
-
rounded?: "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "full" | null | undefined;
|
|
858
|
-
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
859
|
-
isFull?: boolean;
|
|
860
|
-
controls?: boolean;
|
|
861
|
-
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
862
|
-
|
|
863
|
-
declare const PopoverRoot: React$1.FC<PopoverPrimitive.PopoverProps>;
|
|
864
|
-
declare const PopoverAnchor: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
865
|
-
interface PopoverContentExs {
|
|
866
|
-
mode?: 'tooltip' | 'popover';
|
|
867
|
-
/**
|
|
868
|
-
* 是否展示箭头
|
|
869
|
-
*/
|
|
870
|
-
showArrow?: boolean;
|
|
871
|
-
/**
|
|
872
|
-
* 消息类型
|
|
873
|
-
*/
|
|
874
|
-
variant?: 'default' | 'message';
|
|
875
|
-
/**
|
|
876
|
-
* 气泡方向
|
|
877
|
-
*/
|
|
878
|
-
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
879
|
-
/**
|
|
880
|
-
* 气泡箭头位置
|
|
881
|
-
*/
|
|
882
|
-
align?: 'start' | 'center' | 'end';
|
|
883
|
-
modal?: boolean;
|
|
884
|
-
container?: HTMLElement | null;
|
|
885
|
-
}
|
|
886
|
-
/**
|
|
887
|
-
* PopoverContent
|
|
888
|
-
*/
|
|
889
|
-
declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & PopoverContentExs & React$1.RefAttributes<HTMLDivElement>>;
|
|
890
|
-
declare const Popover: ({ disabled, open, title, content, anchor, children, className, triggerClassName, hasOpenState, isMTooltip, modal, openChangeCallback, ...props }: Omit<React$1.ComponentProps<typeof PopoverPrimitive.Content>, "content"> & PopoverContentExs & {
|
|
891
|
-
open?: boolean;
|
|
892
|
-
disabled?: boolean;
|
|
893
|
-
triggerClassName?: string;
|
|
894
|
-
title?: string;
|
|
895
|
-
content?: string | React$1.ReactNode;
|
|
896
|
-
anchor?: React$1.ReactNode;
|
|
897
|
-
hasOpenState?: boolean;
|
|
898
|
-
isMTooltip?: boolean;
|
|
899
|
-
openChangeCallback?: (open: boolean) => void;
|
|
900
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
901
|
-
|
|
902
|
-
declare const ProgressRoot: React$1.ForwardRefExoticComponent<ProgressPrimitive.ProgressProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
903
|
-
declare const ProgressIndicator: React$1.ForwardRefExoticComponent<ProgressPrimitive.ProgressIndicatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
904
|
-
type ProgressProps = {
|
|
905
|
-
/**
|
|
906
|
-
* 进度条的当前值
|
|
907
|
-
*/
|
|
908
|
-
value: number;
|
|
909
|
-
/**
|
|
910
|
-
* 进度条的最大值
|
|
911
|
-
*/
|
|
912
|
-
max: number;
|
|
913
|
-
/**
|
|
914
|
-
* 进度条的自定义类名
|
|
915
|
-
*/
|
|
916
|
-
className?: string;
|
|
917
|
-
/**
|
|
918
|
-
* 进度条指示器的自定义类名
|
|
919
|
-
*/
|
|
920
|
-
indicatorClassName?: string;
|
|
921
|
-
/**
|
|
922
|
-
* 进度条的标签内容
|
|
923
|
-
*/
|
|
924
|
-
label?: React.ReactNode;
|
|
925
|
-
/**
|
|
926
|
-
* 进度条的高度
|
|
927
|
-
*/
|
|
928
|
-
height?: number;
|
|
929
|
-
/**
|
|
930
|
-
* 进度条的宽度
|
|
931
|
-
*/
|
|
932
|
-
width?: number;
|
|
933
|
-
/**
|
|
934
|
-
* 进度条最小宽度
|
|
935
|
-
*/
|
|
936
|
-
minWidth?: number;
|
|
937
|
-
/**
|
|
938
|
-
* 进度条最大宽度
|
|
939
|
-
*/
|
|
940
|
-
maxWidth?: number;
|
|
941
|
-
};
|
|
942
|
-
declare const Progress: ({ value, max, className, indicatorClassName, label, height, width, minWidth, maxWidth, }: ProgressProps) => react_jsx_runtime.JSX.Element;
|
|
943
|
-
|
|
944
|
-
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
945
|
-
declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
946
|
-
options?: Array<{
|
|
947
|
-
label: string;
|
|
948
|
-
value: string;
|
|
949
|
-
disabled?: boolean;
|
|
950
|
-
}>;
|
|
951
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
952
|
-
|
|
953
|
-
declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
954
|
-
declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
955
|
-
|
|
956
|
-
type SearchInputProps = React$1.InputHTMLAttributes<HTMLInputElement>;
|
|
957
|
-
type SearchBarProps = {
|
|
958
|
-
/**
|
|
959
|
-
* searchBar样式覆盖
|
|
960
|
-
*/
|
|
961
|
-
className?: string;
|
|
962
|
-
/**
|
|
963
|
-
* input样式覆盖
|
|
964
|
-
*/
|
|
965
|
-
inputClassName?: string;
|
|
966
|
-
searchValue?: string;
|
|
967
|
-
/**
|
|
968
|
-
* 点击或键盘按下回车时触发回调函数
|
|
969
|
-
*/
|
|
970
|
-
onSearchChange: (value: string) => void;
|
|
971
|
-
/**
|
|
972
|
-
* placeholder值
|
|
973
|
-
*/
|
|
974
|
-
placeholder?: string;
|
|
975
|
-
/**
|
|
976
|
-
* 大小 sm(default) | md
|
|
977
|
-
*
|
|
978
|
-
* @default xs
|
|
979
|
-
*/
|
|
980
|
-
size?: 'md' | 'sm' | 'xs';
|
|
981
|
-
/**
|
|
982
|
-
* 是否圆角
|
|
983
|
-
*/
|
|
984
|
-
roundedFill?: boolean;
|
|
985
|
-
/**
|
|
986
|
-
* 值改变时触发回调函数
|
|
987
|
-
*/
|
|
988
|
-
onValueChange?: (value: string) => void;
|
|
989
|
-
} & Omit<SearchInputProps, 'size'>;
|
|
990
|
-
declare function SearchBar({ className, inputClassName, placeholder, type, size, readOnly, searchValue, roundedFill, onSearchChange, onValueChange, ...props }: SearchBarProps): react_jsx_runtime.JSX.Element;
|
|
991
|
-
declare namespace SearchBar {
|
|
992
|
-
var displayName: string;
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
type ITopNavigationBar = {
|
|
996
|
-
/**
|
|
997
|
-
* 是否展示背景
|
|
998
|
-
* boolean
|
|
999
|
-
*
|
|
1000
|
-
* @default true
|
|
1001
|
-
*/
|
|
1002
|
-
hasBackground?: boolean;
|
|
1003
|
-
/**
|
|
1004
|
-
* 右侧自定义内容
|
|
1005
|
-
* ReactNode
|
|
1006
|
-
*
|
|
1007
|
-
*/
|
|
1008
|
-
children?: React.ReactNode;
|
|
1009
|
-
/**
|
|
1010
|
-
* 导航栏title
|
|
1011
|
-
* string
|
|
1012
|
-
*/
|
|
1013
|
-
title?: string;
|
|
1014
|
-
/**
|
|
1015
|
-
* 搜索框自定义内容
|
|
1016
|
-
* ReactNode
|
|
1017
|
-
*/
|
|
1018
|
-
searchElement?: React.ReactNode;
|
|
1019
|
-
/**
|
|
1020
|
-
* 是否显示底部border
|
|
1021
|
-
* boolean
|
|
1022
|
-
*/
|
|
1023
|
-
border?: boolean;
|
|
1024
|
-
/**
|
|
1025
|
-
* 返回链接,有配置则显示返回icon
|
|
1026
|
-
* string
|
|
1027
|
-
*/
|
|
1028
|
-
backUrl?: string;
|
|
1029
|
-
/**
|
|
1030
|
-
* 是否展示清除按钮
|
|
1031
|
-
* boolean
|
|
1032
|
-
*
|
|
1033
|
-
* @default false
|
|
1034
|
-
*/
|
|
1035
|
-
showClear?: boolean;
|
|
1036
|
-
/**
|
|
1037
|
-
* 清除按钮文本
|
|
1038
|
-
* string
|
|
1039
|
-
*/
|
|
1040
|
-
clearText?: string;
|
|
1041
|
-
/**
|
|
1042
|
-
* 头像配置
|
|
1043
|
-
* {
|
|
1044
|
-
* logo: string;
|
|
1045
|
-
* name?: string;
|
|
1046
|
-
* }
|
|
1047
|
-
*/
|
|
1048
|
-
avatar?: {
|
|
1049
|
-
logo: string;
|
|
1050
|
-
name?: string;
|
|
1051
|
-
};
|
|
1052
|
-
/**
|
|
1053
|
-
* 页面类型 一级页面、二级页面在h5端的展示不同
|
|
1054
|
-
* number
|
|
1055
|
-
*
|
|
1056
|
-
* @default 2
|
|
1057
|
-
*/
|
|
1058
|
-
pageType?: 1 | 2;
|
|
1059
|
-
/**
|
|
1060
|
-
* 自定义样式
|
|
1061
|
-
* string
|
|
1062
|
-
*/
|
|
1063
|
-
className?: string;
|
|
1064
|
-
isMobile?: boolean;
|
|
1065
|
-
/**
|
|
1066
|
-
* 返回按钮点击回调
|
|
1067
|
-
* () => void
|
|
1068
|
-
*/
|
|
1069
|
-
onBack?: () => void;
|
|
1070
|
-
};
|
|
1071
|
-
declare function TopNavigationBar({ searchElement, title, border, backUrl, children, hasBackground, avatar, onBack, pageType, className, isMobile, }: ITopNavigationBar): react_jsx_runtime.JSX.Element;
|
|
1072
|
-
|
|
1073
|
-
interface ISelectProps extends SelectPrimitive.SelectProps {
|
|
1074
|
-
options?: Array<{
|
|
1075
|
-
value: string;
|
|
1076
|
-
label: string;
|
|
1077
|
-
icon?: React$1.ReactNode | React$1.ElementType | string;
|
|
1078
|
-
disabled?: boolean;
|
|
1079
|
-
critical?: boolean;
|
|
1080
|
-
className?: string;
|
|
1081
|
-
}>;
|
|
1082
|
-
placeholder?: React$1.ReactNode;
|
|
1083
|
-
triggerClassName?: string;
|
|
1084
|
-
contentClassName?: string;
|
|
1085
|
-
variant?: "input" | "button";
|
|
1086
|
-
size?: "2xs" | "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
1087
|
-
noPortal?: boolean;
|
|
1088
|
-
side?: SelectPrimitive.SelectContentProps["side"];
|
|
1089
|
-
}
|
|
1090
|
-
declare const Select: React$1.ForwardRefExoticComponent<ISelectProps & React$1.RefAttributes<never>>;
|
|
1091
|
-
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1092
|
-
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1093
|
-
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
1094
|
-
isButtonVariant?: boolean;
|
|
1095
|
-
size?: "2xs" | "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
1096
|
-
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1097
|
-
declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1098
|
-
declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1099
|
-
declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1100
|
-
noPortal?: boolean;
|
|
1101
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1102
|
-
declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1103
|
-
interface ISelectIconProps {
|
|
1104
|
-
icon?: React$1.ReactNode | React$1.ElementType | string;
|
|
1105
|
-
critical?: boolean;
|
|
1106
|
-
}
|
|
1107
|
-
declare function SelectIcon(props: ISelectIconProps): react_jsx_runtime.JSX.Element | null;
|
|
1108
|
-
declare namespace SelectIcon {
|
|
1109
|
-
var displayName: string | undefined;
|
|
1110
|
-
}
|
|
1111
|
-
interface ISelectItemProps extends SelectPrimitive.SelectItemProps, ISelectIconProps {
|
|
1112
|
-
}
|
|
1113
|
-
declare const SelectItem: React$1.ForwardRefExoticComponent<ISelectItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1114
|
-
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1115
|
-
|
|
1116
|
-
interface Option {
|
|
1117
|
-
value: string;
|
|
1118
|
-
label: string;
|
|
1119
|
-
disable?: boolean;
|
|
1120
|
-
/** fixed option that can't be removed. */
|
|
1121
|
-
fixed?: boolean;
|
|
1122
|
-
/** Group the options by providing key. */
|
|
1123
|
-
[key: string]: string | boolean | undefined;
|
|
1124
|
-
}
|
|
1125
|
-
interface MultipleSelectorProps {
|
|
1126
|
-
value?: string[];
|
|
1127
|
-
/** manually controlled options */
|
|
1128
|
-
options?: Option[];
|
|
1129
|
-
placeholder?: string;
|
|
1130
|
-
/** Loading component. */
|
|
1131
|
-
loadingIndicator?: React$1.ReactNode;
|
|
1132
|
-
/** Empty component. */
|
|
1133
|
-
emptyIndicator?: React$1.ReactNode;
|
|
1134
|
-
/** Debounce time for async search. Only work with `onSearch`. */
|
|
1135
|
-
delay?: number;
|
|
1136
|
-
/**
|
|
1137
|
-
* Only work with `onSearch` prop. Trigger search when `onFocus`.
|
|
1138
|
-
* For example, when user click on the input, it will trigger the search to get initial options.
|
|
1139
|
-
* */
|
|
1140
|
-
triggerSearchOnFocus?: boolean;
|
|
1141
|
-
/** async search */
|
|
1142
|
-
onSearch?: (value: string) => Promise<Option[]>;
|
|
1143
|
-
/**
|
|
1144
|
-
* sync search. This search will not showing loadingIndicator.
|
|
1145
|
-
* The rest props are the same as async search.
|
|
1146
|
-
* i.e.: creatable, groupBy, delay.
|
|
1147
|
-
* */
|
|
1148
|
-
onSearchSync?: (value: string) => Option[];
|
|
1149
|
-
onChange?: (value: string[]) => void;
|
|
1150
|
-
/** Limit the maximum number of selected options. */
|
|
1151
|
-
maxSelected?: number;
|
|
1152
|
-
/** When the number of selected options exceeds the limit, the onMaxSelected will be called. */
|
|
1153
|
-
onMaxSelected?: (maxLimit: number) => void;
|
|
1154
|
-
/** Hide the placeholder when there are options selected. */
|
|
1155
|
-
hidePlaceholderWhenSelected?: boolean;
|
|
1156
|
-
disabled?: boolean;
|
|
1157
|
-
/** Group the options base on provided key. */
|
|
1158
|
-
groupBy?: string;
|
|
1159
|
-
className?: string;
|
|
1160
|
-
badgeClassName?: string;
|
|
1161
|
-
/**
|
|
1162
|
-
* First item selected is a default behavior by cmdk. That is why the default is true.
|
|
1163
|
-
* This is a workaround solution by add a dummy item.
|
|
1164
|
-
*
|
|
1165
|
-
* @reference: https://github.com/pacocoursey/cmdk/issues/171
|
|
1166
|
-
*/
|
|
1167
|
-
selectFirstItem?: boolean;
|
|
1168
|
-
/** Allow user to create option when there is no option matched. */
|
|
1169
|
-
creatable?: boolean;
|
|
1170
|
-
/** Props of `Command` */
|
|
1171
|
-
commandProps?: React$1.ComponentPropsWithoutRef<typeof Command>;
|
|
1172
|
-
/** Props of `CommandInput` */
|
|
1173
|
-
inputProps?: Omit<React$1.ComponentPropsWithoutRef<typeof Command$1.Input>, "value" | "placeholder" | "disabled">;
|
|
1174
|
-
/** hide the clear all button. */
|
|
1175
|
-
hideClearAllButton?: boolean;
|
|
1176
|
-
}
|
|
1177
|
-
interface MultipleSelectorRef {
|
|
1178
|
-
selectedValue: Option[];
|
|
1179
|
-
input: HTMLInputElement;
|
|
1180
|
-
focus: () => void;
|
|
1181
|
-
reset: () => void;
|
|
1182
|
-
}
|
|
1183
|
-
declare function useDebounce<T>(value: T, delay?: number): T;
|
|
1184
|
-
declare const MultipleSelector: React$1.ForwardRefExoticComponent<MultipleSelectorProps & React$1.RefAttributes<MultipleSelectorRef>>;
|
|
1185
|
-
|
|
1186
|
-
declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1187
|
-
|
|
1188
|
-
declare const Sheet: React$1.FC<DialogPrimitive.DialogProps>;
|
|
1189
|
-
declare const SheetTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1190
|
-
declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1191
|
-
declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
1192
|
-
declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1193
|
-
declare const sheetVariants: (props?: ({
|
|
1194
|
-
side?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
1195
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
1196
|
-
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
1197
|
-
}
|
|
1198
|
-
declare const SheetContent: React$1.ForwardRefExoticComponent<SheetContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1199
|
-
declare const SheetHeader: {
|
|
1200
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1201
|
-
displayName: string;
|
|
1202
|
-
};
|
|
1203
|
-
declare const SheetFooter: {
|
|
1204
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
1205
|
-
displayName: string;
|
|
1206
|
-
};
|
|
1207
|
-
declare const SheetTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
1208
|
-
declare const SheetDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1209
|
-
|
|
1210
|
-
declare function Skeleton({ className, animate, ...props }: React.HTMLAttributes<HTMLDivElement> & {
|
|
1211
|
-
animate?: boolean;
|
|
1212
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1213
|
-
|
|
1214
|
-
type Size = "sm" | "lg";
|
|
1215
|
-
declare const Slider: React$1.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & {
|
|
1216
|
-
size?: Size;
|
|
1217
|
-
containerClassName?: ClassNameValue;
|
|
1218
|
-
} & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1219
|
-
interface ISliderBaseProps extends React$1.RefAttributes<HTMLSpanElement>, Omit<SliderPrimitive.SliderProps, "value" | "defaultValue" | "onValueChange" | "onValueCommit"> {
|
|
1220
|
-
}
|
|
1221
|
-
interface ISliderSingleProps extends ISliderBaseProps {
|
|
1222
|
-
size?: Size;
|
|
1223
|
-
value?: number;
|
|
1224
|
-
defaultValue?: number;
|
|
1225
|
-
onValueChange?: (value: number) => void;
|
|
1226
|
-
onValueCommit?: (value: number) => void;
|
|
1227
|
-
settable?: boolean;
|
|
1228
|
-
containerClassName?: ClassNameValue;
|
|
1229
|
-
trackClassName?: ClassNameValue;
|
|
1230
|
-
rangeClassName?: ClassNameValue;
|
|
1231
|
-
thumbClassName?: ClassNameValue;
|
|
1232
|
-
}
|
|
1233
|
-
declare const SliderSingle: React$1.ForwardRefExoticComponent<Omit<ISliderSingleProps, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1234
|
-
|
|
1235
|
-
declare const spinnerVariants: (props?: ({
|
|
1236
|
-
size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
1237
|
-
speed?: "default" | "slow" | "fast" | null | undefined;
|
|
1238
|
-
color?: "default" | "brand" | "warning" | "success" | "static" | null | undefined;
|
|
1239
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
1240
|
-
interface SpinnerProps extends VariantProps<typeof spinnerVariants> {
|
|
1241
|
-
className?: ClassNameValue;
|
|
1242
|
-
}
|
|
1243
|
-
declare function Spinner(props: SpinnerProps): react_jsx_runtime.JSX.Element;
|
|
1244
|
-
|
|
1245
|
-
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
1246
|
-
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
1247
|
-
vertical?: boolean | null | undefined;
|
|
1248
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & {
|
|
1249
|
-
label?: string;
|
|
1250
|
-
labelClassName?: string;
|
|
1251
|
-
iconClassName?: string;
|
|
1252
|
-
vertical?: boolean;
|
|
1253
|
-
icon?: IconComponent | React$1.ElementType;
|
|
1254
|
-
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1255
|
-
|
|
1256
|
-
declare const TabsRoot: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1257
|
-
declare const TabsList: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1258
|
-
declare const TabsTrigger: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1259
|
-
type TItems = {
|
|
1260
|
-
label?: string;
|
|
1261
|
-
value: string;
|
|
1262
|
-
count?: number | string;
|
|
1263
|
-
tooltip?: {
|
|
1264
|
-
description?: string;
|
|
1265
|
-
open?: boolean;
|
|
1266
|
-
variant?: 'default' | 'message';
|
|
1267
|
-
};
|
|
1268
|
-
icon?: React$1.ElementType;
|
|
1269
|
-
disabled?: boolean;
|
|
1270
|
-
link?: string;
|
|
1271
|
-
hasUnRead?: boolean;
|
|
1272
|
-
children?: string | React$1.ReactNode;
|
|
1273
|
-
className?: string;
|
|
1274
|
-
onClickCallback?: (value: string) => void;
|
|
1275
|
-
};
|
|
1276
|
-
declare const Tabs: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
1277
|
-
variant?: "button" | "underline" | "icon";
|
|
1278
|
-
size?: "sm" | "md" | "lg";
|
|
1279
|
-
rounded?: "default" | "full";
|
|
1280
|
-
/**
|
|
1281
|
-
* 是否为链接
|
|
1282
|
-
*/
|
|
1283
|
-
isLink?: boolean;
|
|
1284
|
-
listClassName?: string;
|
|
1285
|
-
listBoxClassName?: string;
|
|
1286
|
-
contentClassName?: string;
|
|
1287
|
-
contentBoxClassName?: string;
|
|
1288
|
-
items?: TItems[];
|
|
1289
|
-
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1290
|
-
declare const Tab: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
1291
|
-
variant?: "button" | "underline" | "icon";
|
|
1292
|
-
size?: "sm" | "md" | "lg";
|
|
1293
|
-
rounded?: "default" | "full";
|
|
1294
|
-
isLink?: boolean;
|
|
1295
|
-
link?: string;
|
|
1296
|
-
count?: number | string;
|
|
1297
|
-
label?: string;
|
|
1298
|
-
icon?: React$1.ElementType;
|
|
1299
|
-
tooltip?: {
|
|
1300
|
-
description?: string;
|
|
1301
|
-
open?: boolean;
|
|
1302
|
-
variant?: "default" | "message";
|
|
1303
|
-
};
|
|
1304
|
-
hasUnRead?: boolean;
|
|
1305
|
-
onClickCallback?: (value: string) => void;
|
|
1306
|
-
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1307
|
-
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1308
|
-
|
|
1309
|
-
type TextareaProps = React$1.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
1310
|
-
maxLengthClassName?: string;
|
|
1311
|
-
};
|
|
1312
|
-
declare const Textarea: React$1.ForwardRefExoticComponent<React$1.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
1313
|
-
maxLengthClassName?: string;
|
|
1314
|
-
} & {
|
|
1315
|
-
error?: string;
|
|
1316
|
-
} & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
1317
|
-
|
|
1318
|
-
declare const toggleVariants: (props?: ({
|
|
1319
|
-
variant?: "default" | "outline" | null | undefined;
|
|
1320
|
-
size?: "default" | "xs" | "sm" | "lg" | null | undefined;
|
|
1321
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
1322
|
-
declare const Toggle: React$1.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
1323
|
-
variant?: "default" | "outline" | null | undefined;
|
|
1324
|
-
size?: "default" | "xs" | "sm" | "lg" | null | undefined;
|
|
1325
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1326
|
-
|
|
1327
|
-
declare const ToggleGroup: React$1.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React$1.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
|
|
1328
|
-
variant?: "default" | "outline" | null | undefined;
|
|
1329
|
-
size?: "default" | "xs" | "sm" | "lg" | null | undefined;
|
|
1330
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string>) & React$1.RefAttributes<HTMLDivElement>>;
|
|
1331
|
-
declare const ToggleGroupItem: React$1.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
1332
|
-
variant?: "default" | "outline" | null | undefined;
|
|
1333
|
-
size?: "default" | "xs" | "sm" | "lg" | null | undefined;
|
|
1334
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1335
|
-
|
|
1336
|
-
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
1337
|
-
declare const Tooltip: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipProps & {
|
|
1338
|
-
/**
|
|
1339
|
-
* 文案大小
|
|
1340
|
-
*/
|
|
1341
|
-
size?: "sm" | "md";
|
|
1342
|
-
/**
|
|
1343
|
-
* 气泡是否打开
|
|
1344
|
-
*/
|
|
1345
|
-
open?: boolean;
|
|
1346
|
-
/**
|
|
1347
|
-
* 气泡是否默认打开
|
|
1348
|
-
*/
|
|
1349
|
-
defaultOpen?: boolean;
|
|
1350
|
-
/**
|
|
1351
|
-
* 气泡是否禁用
|
|
1352
|
-
*/
|
|
1353
|
-
disabled?: boolean;
|
|
1354
|
-
/**
|
|
1355
|
-
* 气泡标题
|
|
1356
|
-
*/
|
|
1357
|
-
title?: string;
|
|
1358
|
-
/**
|
|
1359
|
-
* 气泡标题是否危险
|
|
1360
|
-
*/
|
|
1361
|
-
titleDangerous?: boolean;
|
|
1362
|
-
/**
|
|
1363
|
-
* 气泡描述
|
|
1364
|
-
*/
|
|
1365
|
-
description?: string | React$1.ReactNode;
|
|
1366
|
-
/**
|
|
1367
|
-
* 气泡描述是否危险
|
|
1368
|
-
*/
|
|
1369
|
-
descriptionDangerous?: boolean;
|
|
1370
|
-
/**
|
|
1371
|
-
* 气泡样式类型
|
|
1372
|
-
*
|
|
1373
|
-
*
|
|
1374
|
-
* @default 'default'
|
|
1375
|
-
*/
|
|
1376
|
-
variant?: "default" | "message";
|
|
1377
|
-
/**
|
|
1378
|
-
* 气泡方向
|
|
1379
|
-
*
|
|
1380
|
-
* @default 'top'
|
|
1381
|
-
*/
|
|
1382
|
-
side?: "top" | "right" | "bottom" | "left";
|
|
1383
|
-
/**
|
|
1384
|
-
* 气泡箭头位置
|
|
1385
|
-
*
|
|
1386
|
-
* @default 'center'
|
|
1387
|
-
*/
|
|
1388
|
-
align?: "start" | "center" | "end";
|
|
1389
|
-
/**
|
|
1390
|
-
* 内容偏移量
|
|
1391
|
-
*
|
|
1392
|
-
* @default 6
|
|
1393
|
-
*/
|
|
1394
|
-
sideOffset?: number;
|
|
1395
|
-
/**
|
|
1396
|
-
* 箭头偏移量
|
|
1397
|
-
*
|
|
1398
|
-
* @default -2
|
|
1399
|
-
*/
|
|
1400
|
-
alignOffset?: number;
|
|
1401
|
-
/**
|
|
1402
|
-
* 箭头样式
|
|
1403
|
-
*/
|
|
1404
|
-
arrowClassName?: string;
|
|
1405
|
-
/**
|
|
1406
|
-
* 是否显示箭头
|
|
1407
|
-
*
|
|
1408
|
-
* @default true
|
|
1409
|
-
*/
|
|
1410
|
-
showArrow?: boolean;
|
|
1411
|
-
/**
|
|
1412
|
-
* 内容样式
|
|
1413
|
-
*/
|
|
1414
|
-
contentClassName?: string;
|
|
1415
|
-
/**
|
|
1416
|
-
* 触发器样式
|
|
1417
|
-
*/
|
|
1418
|
-
triggerClassName?: string;
|
|
1419
|
-
} & React$1.RefAttributes<never>>;
|
|
1420
|
-
|
|
1421
|
-
type BlockProps = {
|
|
1422
|
-
underline?: boolean;
|
|
1423
|
-
strikethrough?: boolean;
|
|
1424
|
-
strong?: boolean;
|
|
1425
|
-
italic?: boolean;
|
|
1426
|
-
dangerous?: boolean;
|
|
1427
|
-
};
|
|
1428
|
-
declare const dangerouText: (text: string) => string;
|
|
1429
|
-
declare const Heading: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
|
|
1430
|
-
size?: "h1" | "h2" | "h3" | "h4" | "h5" | null | undefined;
|
|
1431
|
-
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | "static" | "static-black" | null | undefined;
|
|
1432
|
-
lineClamp?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
|
|
1433
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & BlockProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
1434
|
-
declare const Display: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
|
|
1435
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
|
|
1436
|
-
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | "static" | "static-black" | null | undefined;
|
|
1437
|
-
lineClamp?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
|
|
1438
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & BlockProps & React$1.RefAttributes<HTMLElement & HTMLParagraphElement>>;
|
|
1439
|
-
declare const Title: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
|
|
1440
|
-
size?: "h1" | "h2" | "h3" | "h4" | "h5" | null | undefined;
|
|
1441
|
-
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | "static" | "static-black" | null | undefined;
|
|
1442
|
-
lineClamp?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
|
|
1443
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & BlockProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
1444
|
-
declare const SubHeading: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
|
|
1445
|
-
size?: "sm" | "lg" | null | undefined;
|
|
1446
|
-
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | "static" | "static-black" | null | undefined;
|
|
1447
|
-
lineClamp?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
|
|
1448
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1449
|
-
declare const SubTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
|
|
1450
|
-
size?: "sm" | "lg" | null | undefined;
|
|
1451
|
-
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | "static" | "static-black" | null | undefined;
|
|
1452
|
-
lineClamp?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
|
|
1453
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1454
|
-
declare const Text: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
|
|
1455
|
-
size?: "xs" | "sm" | "lg" | null | undefined;
|
|
1456
|
-
weight?: "regular" | "medium" | "semibold" | null | undefined;
|
|
1457
|
-
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | "static" | "static-black" | null | undefined;
|
|
1458
|
-
lineClamp?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
|
|
1459
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & BlockProps & React$1.RefAttributes<HTMLElement & HTMLParagraphElement>>;
|
|
1460
|
-
declare const Paragraph: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
|
|
1461
|
-
size?: "xs" | "sm" | "lg" | null | undefined;
|
|
1462
|
-
weight?: "regular" | "medium" | "semibold" | null | undefined;
|
|
1463
|
-
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | "static" | "static-black" | null | undefined;
|
|
1464
|
-
lineClamp?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
|
|
1465
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & BlockProps & React$1.RefAttributes<HTMLElement & HTMLParagraphElement>>;
|
|
1466
|
-
declare const Description: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
|
|
1467
|
-
size?: "sm" | "lg" | null | undefined;
|
|
1468
|
-
weight?: "regular" | "medium" | null | undefined;
|
|
1469
|
-
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | "static" | "static-black" | null | undefined;
|
|
1470
|
-
lineClamp?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
|
|
1471
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & BlockProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1472
|
-
|
|
1473
|
-
declare const chipsVariants: (props?: ({
|
|
1474
|
-
variant?: "primary" | "basic" | null | undefined;
|
|
1475
|
-
size?: "sm" | "lg" | null | undefined;
|
|
1476
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
1477
|
-
interface ChipsProps extends VariantProps<typeof chipsVariants> {
|
|
1478
|
-
className?: ClassNameValue;
|
|
1479
|
-
variant?: 'primary' | 'basic';
|
|
1480
|
-
size?: 'lg' | 'sm';
|
|
1481
|
-
count?: number;
|
|
1482
|
-
label?: string;
|
|
1483
|
-
disabled?: boolean;
|
|
1484
|
-
selected?: boolean;
|
|
1485
|
-
}
|
|
1486
|
-
declare function Chips(props: ChipsProps): react_jsx_runtime.JSX.Element;
|
|
1487
|
-
|
|
1488
|
-
type StateVariant = 'wallet-empty' | 'data-empty' | 'img-empty' | 'search-empty' | 'no-page' | 'error' | 'network-error';
|
|
1489
|
-
interface BaseStateProps {
|
|
1490
|
-
title?: string;
|
|
1491
|
-
description?: string;
|
|
1492
|
-
className?: string;
|
|
1493
|
-
logo?: string;
|
|
1494
|
-
backBtnText?: string;
|
|
1495
|
-
hideLogo?: boolean;
|
|
1496
|
-
icon?: React.ElementType;
|
|
1497
|
-
onBack?: () => void;
|
|
1498
|
-
iconClassName?: string;
|
|
1499
|
-
logoClassName?: string;
|
|
1500
|
-
titleClassName?: string;
|
|
1501
|
-
descriptionClassName?: string;
|
|
1502
|
-
}
|
|
1503
|
-
interface StateProps extends BaseStateProps {
|
|
1504
|
-
variant: StateVariant;
|
|
1505
|
-
}
|
|
1506
|
-
declare const State$1: ({ variant, title, description, className, icon, logo, backBtnText, iconClassName, logoClassName, titleClassName, descriptionClassName, hideLogo, onBack, }: StateProps) => react_jsx_runtime.JSX.Element;
|
|
1507
|
-
declare const ErrorState: (args: BaseStateProps) => react_jsx_runtime.JSX.Element;
|
|
1508
|
-
declare const NetworkErrorState: (args: BaseStateProps) => react_jsx_runtime.JSX.Element;
|
|
1509
|
-
declare const WalletEmptyState: (args: BaseStateProps) => react_jsx_runtime.JSX.Element;
|
|
1510
|
-
declare const DataEmptyState: (args: BaseStateProps) => react_jsx_runtime.JSX.Element;
|
|
1511
|
-
declare const ImgEmptyState: (args: BaseStateProps) => react_jsx_runtime.JSX.Element;
|
|
1512
|
-
declare const SearchEmptyState: (args: BaseStateProps) => react_jsx_runtime.JSX.Element;
|
|
1513
|
-
declare const NoPageState: (args: BaseStateProps) => react_jsx_runtime.JSX.Element;
|
|
1514
|
-
|
|
1515
|
-
declare function LogoLoading({ className, containerClassName, }: {
|
|
1516
|
-
className?: string;
|
|
1517
|
-
containerClassName?: string;
|
|
1518
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1519
|
-
|
|
1520
|
-
declare const ToastProvider: React$1.FC<ToastPrimitives.ToastProviderProps>;
|
|
1521
|
-
interface ToastViewportProps extends React$1.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport> {
|
|
1522
|
-
position?: 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'left-center' | 'right-center';
|
|
1523
|
-
}
|
|
1524
|
-
declare const ToastViewport: React$1.ForwardRefExoticComponent<ToastViewportProps & React$1.RefAttributes<HTMLOListElement>>;
|
|
1525
|
-
declare const Toast$1: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React$1.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
1526
|
-
variant?: "warning" | "success" | "error" | "info" | null | undefined;
|
|
1527
|
-
position?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "left-center" | "right-center" | null | undefined;
|
|
1528
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLLIElement>>;
|
|
1529
|
-
declare const ToastAction: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1530
|
-
declare const ToastClose: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1531
|
-
declare const ToastTitle: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1532
|
-
declare const ToastDescription: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1533
|
-
type ToastProps = React$1.ComponentPropsWithoutRef<typeof Toast$1>;
|
|
1534
|
-
type ToastActionElement = React$1.ReactElement<typeof ToastAction>;
|
|
1535
|
-
|
|
1536
|
-
interface ToasterProps {
|
|
1537
|
-
position?: 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'left-center' | 'right-center';
|
|
1538
|
-
}
|
|
1539
|
-
declare function Toaster({ position }?: ToasterProps): react_jsx_runtime.JSX.Element;
|
|
1540
|
-
|
|
1541
|
-
type ToasterToast = ToastProps & {
|
|
1542
|
-
id: string;
|
|
1543
|
-
title?: React$1.ReactNode;
|
|
1544
|
-
description?: React$1.ReactNode;
|
|
1545
|
-
action?: ToastActionElement;
|
|
1546
|
-
};
|
|
1547
|
-
declare const actionTypes: {
|
|
1548
|
-
readonly ADD_TOAST: "ADD_TOAST";
|
|
1549
|
-
readonly UPDATE_TOAST: "UPDATE_TOAST";
|
|
1550
|
-
readonly DISMISS_TOAST: "DISMISS_TOAST";
|
|
1551
|
-
readonly REMOVE_TOAST: "REMOVE_TOAST";
|
|
1552
|
-
};
|
|
1553
|
-
type ActionType = typeof actionTypes;
|
|
1554
|
-
type Action = {
|
|
1555
|
-
type: ActionType['ADD_TOAST'];
|
|
1556
|
-
toast: ToasterToast;
|
|
1557
|
-
} | {
|
|
1558
|
-
type: ActionType['UPDATE_TOAST'];
|
|
1559
|
-
toast: Partial<ToasterToast>;
|
|
1560
|
-
} | {
|
|
1561
|
-
type: ActionType['DISMISS_TOAST'];
|
|
1562
|
-
toastId?: ToasterToast['id'];
|
|
1563
|
-
} | {
|
|
1564
|
-
type: ActionType['REMOVE_TOAST'];
|
|
1565
|
-
toastId?: ToasterToast['id'];
|
|
1566
|
-
};
|
|
1567
|
-
interface State {
|
|
1568
|
-
toasts: ToasterToast[];
|
|
1569
|
-
}
|
|
1570
|
-
declare const reducer: (state: State, action: Action) => State;
|
|
1571
|
-
type Toast = Omit<ToasterToast, 'id'> & {
|
|
1572
|
-
actions?: {
|
|
1573
|
-
dismissText?: string;
|
|
1574
|
-
view?: string;
|
|
1575
|
-
viewUrl?: string;
|
|
1576
|
-
};
|
|
1577
|
-
toastId?: string;
|
|
1578
|
-
position?: 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'left-center' | 'right-center';
|
|
1579
|
-
};
|
|
1580
|
-
declare function toast({ actions, toastId, position, ...props }: Toast): {
|
|
1581
|
-
id: string;
|
|
1582
|
-
dismiss: () => void;
|
|
1583
|
-
update: (props: ToasterToast) => void;
|
|
1584
|
-
};
|
|
1585
|
-
declare function useToast(): {
|
|
1586
|
-
toast: typeof toast;
|
|
1587
|
-
dismiss: (toastId?: string) => void;
|
|
1588
|
-
toasts: ToasterToast[];
|
|
1589
|
-
};
|
|
1590
|
-
|
|
1591
|
-
interface SwiperProps {
|
|
1592
|
-
/**
|
|
1593
|
-
* 轮播间隔延迟毫秒
|
|
1594
|
-
*/
|
|
1595
|
-
delay?: number;
|
|
1596
|
-
/**
|
|
1597
|
-
* 是否自动播放
|
|
1598
|
-
*/
|
|
1599
|
-
autoplay?: boolean;
|
|
1600
|
-
/**
|
|
1601
|
-
* 是否循环
|
|
1602
|
-
*/
|
|
1603
|
-
loop?: boolean;
|
|
1604
|
-
/**
|
|
1605
|
-
* 一屏显示slider数量,number|'auto'
|
|
1606
|
-
*/
|
|
1607
|
-
slidesPerView?: number | 'auto';
|
|
1608
|
-
/**
|
|
1609
|
-
* 轮播数据
|
|
1610
|
-
*/
|
|
1611
|
-
dataList: any;
|
|
1612
|
-
/**
|
|
1613
|
-
* 轮播类型 ,目前是特殊的'banner' | 'featured',其他自由配置
|
|
1614
|
-
*/
|
|
1615
|
-
swiperType: 'default' | 'banner' | 'featured' | 'grid';
|
|
1616
|
-
/**
|
|
1617
|
-
* 行数,仅在swiperType为'grid'时生效
|
|
1618
|
-
*/
|
|
1619
|
-
gridRows?: number;
|
|
1620
|
-
/**
|
|
1621
|
-
* 轮播子组件
|
|
1622
|
-
*/
|
|
1623
|
-
component?: React.ElementType;
|
|
1624
|
-
/**
|
|
1625
|
-
* Swiperbox样式覆盖
|
|
1626
|
-
*/
|
|
1627
|
-
className?: string;
|
|
1628
|
-
/**
|
|
1629
|
-
* Swiper item样式覆盖
|
|
1630
|
-
*/
|
|
1631
|
-
componentClassName?: string;
|
|
1632
|
-
/**
|
|
1633
|
-
* Swiper Slide item样式覆盖
|
|
1634
|
-
*/
|
|
1635
|
-
slideClassName?: string;
|
|
1636
|
-
rounded?: 'none' | 'sm' | 'default' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
|
|
1637
|
-
/**
|
|
1638
|
-
* 从哪里来,点击跳转时带在url上
|
|
1639
|
-
*/
|
|
1640
|
-
from?: string;
|
|
1641
|
-
/**
|
|
1642
|
-
* 是否居中显示
|
|
1643
|
-
*/
|
|
1644
|
-
centeredSlides?: boolean;
|
|
1645
|
-
spaceBetween?: number;
|
|
1646
|
-
/**
|
|
1647
|
-
* 是否是移动端
|
|
1648
|
-
*/
|
|
1649
|
-
isMobile?: boolean;
|
|
1650
|
-
}
|
|
1651
|
-
declare function Swiper(props: SwiperProps): react_jsx_runtime.JSX.Element;
|
|
1652
|
-
|
|
1653
|
-
type ToastType = 'success' | 'info' | 'warning' | 'error';
|
|
1654
|
-
interface CustomToasterProps {
|
|
1655
|
-
id?: string;
|
|
1656
|
-
type?: ToastType;
|
|
1657
|
-
title?: string;
|
|
1658
|
-
content: string;
|
|
1659
|
-
isClosable?: boolean;
|
|
1660
|
-
translateInToast?: boolean;
|
|
1661
|
-
reason?: string;
|
|
1662
|
-
action?: React.ReactNode;
|
|
1663
|
-
loading?: boolean;
|
|
1664
|
-
}
|
|
1665
|
-
declare function useNotification(): {
|
|
1666
|
-
addToast: (config: CustomToasterProps, duration?: number) => void;
|
|
1667
|
-
success: (config: CustomToasterProps, duration?: number) => void;
|
|
1668
|
-
error: (config: CustomToasterProps, duration?: number) => void;
|
|
1669
|
-
warning: (config: CustomToasterProps, duration?: number) => void;
|
|
1670
|
-
info: (config: CustomToasterProps, duration?: number) => void;
|
|
1671
|
-
close: (id: string) => void;
|
|
1672
|
-
message: (config: CustomToasterProps, duration?: number) => void;
|
|
1673
|
-
};
|
|
1674
|
-
declare class Message {
|
|
1675
|
-
private static _toast;
|
|
1676
|
-
static success(config: CustomToasterProps, duration?: number): void;
|
|
1677
|
-
static error(config: CustomToasterProps, duration?: number): void;
|
|
1678
|
-
static info(config: CustomToasterProps, duration?: number): void;
|
|
1679
|
-
static warning(config: CustomToasterProps, duration?: number): void;
|
|
1680
|
-
static close(id: string): void;
|
|
1681
|
-
}
|
|
1682
|
-
|
|
1683
|
-
/**
|
|
1684
|
-
* 与原生应用交互的钩子
|
|
1685
|
-
*/
|
|
1686
|
-
declare function useNativeBridge(): {
|
|
1687
|
-
callNative: (action: string, data?: any) => void;
|
|
1688
|
-
getIosUrl: (path: string) => string;
|
|
1689
|
-
nativeGoBack: () => void;
|
|
1690
|
-
};
|
|
1691
|
-
|
|
1692
|
-
declare const useDevice: () => {
|
|
1693
|
-
isMobile: boolean;
|
|
1694
|
-
isIos: boolean;
|
|
1695
|
-
isWeixin: boolean;
|
|
1696
|
-
};
|
|
1697
|
-
declare const useIsMobileByWindowWidth: () => boolean;
|
|
1698
|
-
|
|
1699
|
-
declare const useWindowWidth: () => number;
|
|
1700
|
-
|
|
1701
|
-
declare global {
|
|
1702
|
-
interface Window {
|
|
1703
|
-
webkitAudioContext: typeof AudioContext;
|
|
1704
|
-
}
|
|
1705
|
-
}
|
|
1706
|
-
|
|
1707
|
-
declare const CaretDownIcon: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLSpanElement> & class_variance_authority.VariantProps<(props?: ({
|
|
1708
|
-
size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | null | undefined;
|
|
1709
|
-
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "bolder" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | null | undefined;
|
|
1710
|
-
rotate?: "45" | "90" | "-45" | "-90" | "180" | null | undefined;
|
|
1711
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & {
|
|
1712
|
-
component?: React$1.ElementType;
|
|
1713
|
-
} & React$1.RefAttributes<SVGSVGElement>>;
|
|
1714
|
-
|
|
1715
|
-
declare const CircleErrorIcon: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLSpanElement> & class_variance_authority.VariantProps<(props?: ({
|
|
1716
|
-
size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | null | undefined;
|
|
1717
|
-
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "bolder" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | null | undefined;
|
|
1718
|
-
rotate?: "45" | "90" | "-45" | "-90" | "180" | null | undefined;
|
|
1719
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & {
|
|
1720
|
-
component?: React$1.ElementType;
|
|
1721
|
-
} & React$1.RefAttributes<SVGSVGElement>>;
|
|
1722
|
-
|
|
1723
|
-
declare const CircleInfoIcon: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLSpanElement> & class_variance_authority.VariantProps<(props?: ({
|
|
1724
|
-
size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | null | undefined;
|
|
1725
|
-
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "bolder" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | null | undefined;
|
|
1726
|
-
rotate?: "45" | "90" | "-45" | "-90" | "180" | null | undefined;
|
|
1727
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & {
|
|
1728
|
-
component?: React$1.ElementType;
|
|
1729
|
-
} & React$1.RefAttributes<SVGSVGElement>>;
|
|
1730
|
-
|
|
1731
|
-
declare const CircleWarningIcon: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLSpanElement> & class_variance_authority.VariantProps<(props?: ({
|
|
1732
|
-
size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | null | undefined;
|
|
1733
|
-
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "bolder" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | null | undefined;
|
|
1734
|
-
rotate?: "45" | "90" | "-45" | "-90" | "180" | null | undefined;
|
|
1735
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & {
|
|
1736
|
-
component?: React$1.ElementType;
|
|
1737
|
-
} & React$1.RefAttributes<SVGSVGElement>>;
|
|
1738
|
-
|
|
1739
|
-
declare const CircleSuccessIcon: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLSpanElement> & class_variance_authority.VariantProps<(props?: ({
|
|
1740
|
-
size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | null | undefined;
|
|
1741
|
-
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "bolder" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | null | undefined;
|
|
1742
|
-
rotate?: "45" | "90" | "-45" | "-90" | "180" | null | undefined;
|
|
1743
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & {
|
|
1744
|
-
component?: React$1.ElementType;
|
|
1745
|
-
} & React$1.RefAttributes<SVGSVGElement>>;
|
|
1746
|
-
|
|
1747
|
-
declare const LogoIcon: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLSpanElement> & class_variance_authority.VariantProps<(props?: ({
|
|
1748
|
-
size?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | null | undefined;
|
|
1749
|
-
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "bolder" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | null | undefined;
|
|
1750
|
-
rotate?: "45" | "90" | "-45" | "-90" | "180" | null | undefined;
|
|
1751
|
-
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & {
|
|
1752
|
-
component?: React$1.ElementType;
|
|
1753
|
-
} & React$1.RefAttributes<SVGSVGElement>>;
|
|
1754
|
-
|
|
1755
|
-
export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AspectRatio, AudioPlayer, AudioPlaying, Avatar, AvatarImage, AvatarRoot, Badge, Button, type ButtonComponentProps, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CaretDownIcon, Cascader, CascaderContent, type CascaderOption, Checkbox, Chips, CircleErrorIcon, CircleInfoIcon, CircleSuccessIcon, CircleWarningIcon, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type CustomToasterProps, DataEmptyState, Description, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Display, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ErrorState, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, type FormRef, Guide, Heading, type IAudioProps, type INumberInputProps, type ISelectProps, Icon, IconButton, type IconButtonComponentProps, type IconComponent, type IconProps, type IconType, Image, type ImageProps, ImgEmptyState, Input, type InputProps, Label, Link, LinkButton, type LinkButtonProps, type LinkProps, LogoIcon, LogoLoading, Masonry, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Message, MiddleBar, Modal, ModalBody, ModalContent, ModalFooter, ModalHeader, ModalOverlay, ModalRoot, ModalTitle, MultipleSelector, type MultipleSelectorRef, NetworkErrorState, NoPageState, NumberInput, type Option, Paragraph, Popover, PopoverAnchor, PopoverContent, type PopoverContentExs, PopoverRoot, Progress, ProgressIndicator, type ProgressProps, ProgressRoot, type Props, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, SearchBar, type SearchBarProps, SearchEmptyState, type SearchInputProps, Select, SelectContent, SelectGroup, SelectIcon, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Slider, SliderSingle, Spinner, State$1 as State, SubHeading, SubTitle, Swiper, type SwiperProps, Switch, type TModalState, Tab, Tabs, TabsContent, TabsList, TabsRoot, TabsTrigger, Text, Textarea, type TextareaProps, Title, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, type ToastType, ToastViewport, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipProvider, TopNavigationBar, WalletEmptyState, buttonVariants, dangerouText, iconButtonVariants, reducer, toast, toggleVariants, useDebounce, useDevice, useFormField, useIsMobileByWindowWidth, useNativeBridge, useNotification, useToast, useWindowWidth };
|