myshell-react-lib 0.2.44 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +276 -92
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -10
- package/dist/index.d.ts +20 -10
- package/dist/index.js +322 -142
- package/dist/index.js.map +1 -1
- package/dist/styles/components-dark-v2.scss +220 -0
- package/dist/styles/components-light-v2.scss +220 -0
- package/dist/styles/design2-dark-v2.scss +443 -0
- package/dist/styles/design2-light-v2.scss +443 -0
- package/dist/styles/global.scss +5 -5
- package/dist/styles/new-tokens-v2.scss +518 -0
- package/package.json +2 -2
- 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/new-tokens.scss +0 -264
package/dist/index.d.cts
CHANGED
|
@@ -362,7 +362,11 @@ declare const DrawerTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitiv
|
|
|
362
362
|
declare const DrawerDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
363
363
|
|
|
364
364
|
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
365
|
-
declare const
|
|
365
|
+
declare const DropdownMenuHover: ({ children, openDelay, closeDelay, modal, ...props }: React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Root> & {
|
|
366
|
+
openDelay?: number;
|
|
367
|
+
closeDelay?: number;
|
|
368
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
369
|
+
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
366
370
|
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
367
371
|
declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
368
372
|
declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
@@ -705,7 +709,7 @@ declare const modalVariants: (props?: ({
|
|
|
705
709
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
706
710
|
zIndex?: 99 | 9 | 999 | 9999 | null | undefined;
|
|
707
711
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
708
|
-
type TModalState =
|
|
712
|
+
type TModalState = "basic" | "info" | "success" | "warning" | "error";
|
|
709
713
|
declare const Modal: React$1.FC<React$1.ComponentPropsWithoutRef<typeof ModalRoot> & {
|
|
710
714
|
/**
|
|
711
715
|
* 模态框标题文本
|
|
@@ -763,6 +767,10 @@ declare const Modal: React$1.FC<React$1.ComponentPropsWithoutRef<typeof ModalRoo
|
|
|
763
767
|
* 模态框的状态(信息、成功、警告、错误)
|
|
764
768
|
*/
|
|
765
769
|
state?: TModalState;
|
|
770
|
+
/**
|
|
771
|
+
* 自定义图标节点,传入后将替代 state 对应的默认图标
|
|
772
|
+
*/
|
|
773
|
+
icon?: React$1.ReactNode;
|
|
766
774
|
/**
|
|
767
775
|
* isNotification 的情况下可能会需要
|
|
768
776
|
*/
|
|
@@ -967,7 +975,7 @@ type SearchBarProps = {
|
|
|
967
975
|
*
|
|
968
976
|
* @default xs
|
|
969
977
|
*/
|
|
970
|
-
size?:
|
|
978
|
+
size?: "md" | "sm" | "xs";
|
|
971
979
|
/**
|
|
972
980
|
* 是否圆角
|
|
973
981
|
*/
|
|
@@ -980,7 +988,7 @@ type SearchBarProps = {
|
|
|
980
988
|
* 默认搜索时是否触发回调
|
|
981
989
|
*/
|
|
982
990
|
defaultSearchByChange?: boolean;
|
|
983
|
-
} & Omit<SearchInputProps,
|
|
991
|
+
} & Omit<SearchInputProps, "size">;
|
|
984
992
|
declare function SearchBar({ className, inputClassName, placeholder, type, size, readOnly, searchValue, roundedFill, onSearchChange, onValueChange, defaultSearchByChange, ...props }: SearchBarProps): react_jsx_runtime.JSX.Element;
|
|
985
993
|
declare namespace SearchBar {
|
|
986
994
|
var displayName: string;
|
|
@@ -1435,7 +1443,8 @@ declare const Heading: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<
|
|
|
1435
1443
|
lineClamp?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
|
|
1436
1444
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & BlockProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
1437
1445
|
declare const Display: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
|
|
1438
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
|
|
1446
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | null | undefined;
|
|
1447
|
+
weight?: "medium" | "semibold" | null | undefined;
|
|
1439
1448
|
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | "static" | "static-black" | null | undefined;
|
|
1440
1449
|
lineClamp?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
|
|
1441
1450
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & BlockProps & React$1.RefAttributes<HTMLElement & HTMLParagraphElement>>;
|
|
@@ -1456,19 +1465,19 @@ declare const SubTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes
|
|
|
1456
1465
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1457
1466
|
declare const Text: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
|
|
1458
1467
|
size?: "xs" | "sm" | "lg" | null | undefined;
|
|
1459
|
-
weight?: "
|
|
1468
|
+
weight?: "medium" | "semibold" | "regular" | null | undefined;
|
|
1460
1469
|
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | "static" | "static-black" | null | undefined;
|
|
1461
1470
|
lineClamp?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
|
|
1462
1471
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & BlockProps & React$1.RefAttributes<HTMLElement & HTMLParagraphElement>>;
|
|
1463
1472
|
declare const Paragraph: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
|
|
1464
1473
|
size?: "xs" | "sm" | "lg" | null | undefined;
|
|
1465
|
-
weight?: "
|
|
1474
|
+
weight?: "medium" | "semibold" | "regular" | null | undefined;
|
|
1466
1475
|
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | "static" | "static-black" | null | undefined;
|
|
1467
1476
|
lineClamp?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
|
|
1468
1477
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & BlockProps & React$1.RefAttributes<HTMLElement & HTMLParagraphElement>>;
|
|
1469
1478
|
declare const Description: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
|
|
1470
1479
|
size?: "sm" | "lg" | null | undefined;
|
|
1471
|
-
weight?: "
|
|
1480
|
+
weight?: "medium" | "regular" | null | undefined;
|
|
1472
1481
|
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | "static" | "static-black" | null | undefined;
|
|
1473
1482
|
lineClamp?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
|
|
1474
1483
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & BlockProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -1541,7 +1550,7 @@ type ToastProps = React$1.ComponentPropsWithoutRef<typeof Toast$1>;
|
|
|
1541
1550
|
type ToastActionElement = React$1.ReactElement<typeof ToastAction>;
|
|
1542
1551
|
|
|
1543
1552
|
interface ToasterProps {
|
|
1544
|
-
position?:
|
|
1553
|
+
position?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "left-center" | "right-center";
|
|
1545
1554
|
}
|
|
1546
1555
|
declare function Toaster({ position }?: ToasterProps): react_jsx_runtime.JSX.Element;
|
|
1547
1556
|
|
|
@@ -1550,6 +1559,7 @@ type ToasterToast = ToastProps & {
|
|
|
1550
1559
|
title?: React$1.ReactNode;
|
|
1551
1560
|
description?: React$1.ReactNode;
|
|
1552
1561
|
action?: ToastActionElement;
|
|
1562
|
+
icon?: React$1.ReactNode;
|
|
1553
1563
|
};
|
|
1554
1564
|
declare const actionTypes: {
|
|
1555
1565
|
readonly ADD_TOAST: "ADD_TOAST";
|
|
@@ -1777,4 +1787,4 @@ declare const NetworkErrorIcon: React$1.ForwardRefExoticComponent<React$1.HTMLAt
|
|
|
1777
1787
|
component?: React$1.ElementType;
|
|
1778
1788
|
} & React$1.RefAttributes<SVGSVGElement>>;
|
|
1779
1789
|
|
|
1780
|
-
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, ErrorIcon, 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, NetworkErrorIcon, NetworkErrorState, NoPageIcon, 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 };
|
|
1790
|
+
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, DropdownMenuHover, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ErrorIcon, 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, NetworkErrorIcon, NetworkErrorState, NoPageIcon, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -362,7 +362,11 @@ declare const DrawerTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitiv
|
|
|
362
362
|
declare const DrawerDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
363
363
|
|
|
364
364
|
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
365
|
-
declare const
|
|
365
|
+
declare const DropdownMenuHover: ({ children, openDelay, closeDelay, modal, ...props }: React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Root> & {
|
|
366
|
+
openDelay?: number;
|
|
367
|
+
closeDelay?: number;
|
|
368
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
369
|
+
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
366
370
|
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
367
371
|
declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
368
372
|
declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
@@ -705,7 +709,7 @@ declare const modalVariants: (props?: ({
|
|
|
705
709
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
706
710
|
zIndex?: 99 | 9 | 999 | 9999 | null | undefined;
|
|
707
711
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
708
|
-
type TModalState =
|
|
712
|
+
type TModalState = "basic" | "info" | "success" | "warning" | "error";
|
|
709
713
|
declare const Modal: React$1.FC<React$1.ComponentPropsWithoutRef<typeof ModalRoot> & {
|
|
710
714
|
/**
|
|
711
715
|
* 模态框标题文本
|
|
@@ -763,6 +767,10 @@ declare const Modal: React$1.FC<React$1.ComponentPropsWithoutRef<typeof ModalRoo
|
|
|
763
767
|
* 模态框的状态(信息、成功、警告、错误)
|
|
764
768
|
*/
|
|
765
769
|
state?: TModalState;
|
|
770
|
+
/**
|
|
771
|
+
* 自定义图标节点,传入后将替代 state 对应的默认图标
|
|
772
|
+
*/
|
|
773
|
+
icon?: React$1.ReactNode;
|
|
766
774
|
/**
|
|
767
775
|
* isNotification 的情况下可能会需要
|
|
768
776
|
*/
|
|
@@ -967,7 +975,7 @@ type SearchBarProps = {
|
|
|
967
975
|
*
|
|
968
976
|
* @default xs
|
|
969
977
|
*/
|
|
970
|
-
size?:
|
|
978
|
+
size?: "md" | "sm" | "xs";
|
|
971
979
|
/**
|
|
972
980
|
* 是否圆角
|
|
973
981
|
*/
|
|
@@ -980,7 +988,7 @@ type SearchBarProps = {
|
|
|
980
988
|
* 默认搜索时是否触发回调
|
|
981
989
|
*/
|
|
982
990
|
defaultSearchByChange?: boolean;
|
|
983
|
-
} & Omit<SearchInputProps,
|
|
991
|
+
} & Omit<SearchInputProps, "size">;
|
|
984
992
|
declare function SearchBar({ className, inputClassName, placeholder, type, size, readOnly, searchValue, roundedFill, onSearchChange, onValueChange, defaultSearchByChange, ...props }: SearchBarProps): react_jsx_runtime.JSX.Element;
|
|
985
993
|
declare namespace SearchBar {
|
|
986
994
|
var displayName: string;
|
|
@@ -1435,7 +1443,8 @@ declare const Heading: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<
|
|
|
1435
1443
|
lineClamp?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
|
|
1436
1444
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & BlockProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
1437
1445
|
declare const Display: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
|
|
1438
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
|
|
1446
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | null | undefined;
|
|
1447
|
+
weight?: "medium" | "semibold" | null | undefined;
|
|
1439
1448
|
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | "static" | "static-black" | null | undefined;
|
|
1440
1449
|
lineClamp?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
|
|
1441
1450
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & BlockProps & React$1.RefAttributes<HTMLElement & HTMLParagraphElement>>;
|
|
@@ -1456,19 +1465,19 @@ declare const SubTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes
|
|
|
1456
1465
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
1457
1466
|
declare const Text: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
|
|
1458
1467
|
size?: "xs" | "sm" | "lg" | null | undefined;
|
|
1459
|
-
weight?: "
|
|
1468
|
+
weight?: "medium" | "semibold" | "regular" | null | undefined;
|
|
1460
1469
|
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | "static" | "static-black" | null | undefined;
|
|
1461
1470
|
lineClamp?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
|
|
1462
1471
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & BlockProps & React$1.RefAttributes<HTMLElement & HTMLParagraphElement>>;
|
|
1463
1472
|
declare const Paragraph: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
|
|
1464
1473
|
size?: "xs" | "sm" | "lg" | null | undefined;
|
|
1465
|
-
weight?: "
|
|
1474
|
+
weight?: "medium" | "semibold" | "regular" | null | undefined;
|
|
1466
1475
|
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | "static" | "static-black" | null | undefined;
|
|
1467
1476
|
lineClamp?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
|
|
1468
1477
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & BlockProps & React$1.RefAttributes<HTMLElement & HTMLParagraphElement>>;
|
|
1469
1478
|
declare const Description: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
|
|
1470
1479
|
size?: "sm" | "lg" | null | undefined;
|
|
1471
|
-
weight?: "
|
|
1480
|
+
weight?: "medium" | "regular" | null | undefined;
|
|
1472
1481
|
color?: "default" | "subtle" | "subtler" | "subtlest" | "disabled" | "inverse" | "critical" | "brand" | "critical-bolder" | "warning" | "warning-bolder" | "success" | "success-bolder" | "static" | "static-black" | null | undefined;
|
|
1473
1482
|
lineClamp?: 1 | 2 | 3 | 4 | 5 | 6 | null | undefined;
|
|
1474
1483
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string> & BlockProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
@@ -1541,7 +1550,7 @@ type ToastProps = React$1.ComponentPropsWithoutRef<typeof Toast$1>;
|
|
|
1541
1550
|
type ToastActionElement = React$1.ReactElement<typeof ToastAction>;
|
|
1542
1551
|
|
|
1543
1552
|
interface ToasterProps {
|
|
1544
|
-
position?:
|
|
1553
|
+
position?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "left-center" | "right-center";
|
|
1545
1554
|
}
|
|
1546
1555
|
declare function Toaster({ position }?: ToasterProps): react_jsx_runtime.JSX.Element;
|
|
1547
1556
|
|
|
@@ -1550,6 +1559,7 @@ type ToasterToast = ToastProps & {
|
|
|
1550
1559
|
title?: React$1.ReactNode;
|
|
1551
1560
|
description?: React$1.ReactNode;
|
|
1552
1561
|
action?: ToastActionElement;
|
|
1562
|
+
icon?: React$1.ReactNode;
|
|
1553
1563
|
};
|
|
1554
1564
|
declare const actionTypes: {
|
|
1555
1565
|
readonly ADD_TOAST: "ADD_TOAST";
|
|
@@ -1777,4 +1787,4 @@ declare const NetworkErrorIcon: React$1.ForwardRefExoticComponent<React$1.HTMLAt
|
|
|
1777
1787
|
component?: React$1.ElementType;
|
|
1778
1788
|
} & React$1.RefAttributes<SVGSVGElement>>;
|
|
1779
1789
|
|
|
1780
|
-
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, ErrorIcon, 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, NetworkErrorIcon, NetworkErrorState, NoPageIcon, 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 };
|
|
1790
|
+
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, DropdownMenuHover, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, ErrorIcon, 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, NetworkErrorIcon, NetworkErrorState, NoPageIcon, 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 };
|