@quantlife/qlui 0.0.4 → 0.0.6
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/components/ui/drawer.d.ts +4 -1
- package/dist/components/ui/sheet.d.ts +3 -1
- package/dist/index.js +293 -287
- package/dist/qlui.css +1 -1
- package/dist/stories/button.stories.d.ts +1 -0
- package/dist/stories/drawer.stories.d.ts +10 -1
- package/dist/stories/input.stories.d.ts +3 -0
- package/dist/stories/pagination.stories.d.ts +1 -0
- package/dist/stories/sheet.stories.d.ts +8 -1
- package/dist/stories/standard-table.stories.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Drawer as DrawerPrimitive } from "vaul";
|
|
3
|
-
declare function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>
|
|
3
|
+
declare function Drawer({ maskClosable, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root> & {
|
|
4
|
+
/** antd 兼容:点击遮罩是否关闭(false 时点外部不关闭) */
|
|
5
|
+
maskClosable?: boolean;
|
|
6
|
+
}): React.JSX.Element;
|
|
4
7
|
declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>): React.JSX.Element;
|
|
5
8
|
declare function DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>): React.JSX.Element;
|
|
6
9
|
declare function DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>): React.JSX.Element;
|
|
@@ -3,9 +3,11 @@ import { Dialog as SheetPrimitive } from "radix-ui";
|
|
|
3
3
|
declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): React.JSX.Element;
|
|
4
4
|
declare function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>): React.JSX.Element;
|
|
5
5
|
declare function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>): React.JSX.Element;
|
|
6
|
-
declare function SheetContent({ className, children, side, showCloseButton, ...props }: React.ComponentProps<typeof SheetPrimitive.Content> & {
|
|
6
|
+
declare function SheetContent({ className, children, side, showCloseButton, maskClosable, onInteractOutside, ...props }: React.ComponentProps<typeof SheetPrimitive.Content> & {
|
|
7
7
|
side?: "top" | "right" | "bottom" | "left";
|
|
8
8
|
showCloseButton?: boolean;
|
|
9
|
+
/** antd 兼容:点击遮罩是否关闭(false 时点外部不关闭) */
|
|
10
|
+
maskClosable?: boolean;
|
|
9
11
|
}): React.JSX.Element;
|
|
10
12
|
declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
11
13
|
declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|