@jinaan/uikit 0.1.29 → 0.1.31
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/dialog.d.ts +16 -1
- package/dist/dialog.d.ts.map +1 -1
- package/dist/index.js +665 -631
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/dialog.tsx +148 -85
- package/styles.css +18 -0
package/dist/dialog.d.ts
CHANGED
|
@@ -7,7 +7,13 @@ export declare const DialogTrigger: import("react").ForwardRefExoticComponent<Om
|
|
|
7
7
|
export declare const DialogClose: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
8
8
|
/** Secondary action that closes through the animated dialog close path. */
|
|
9
9
|
export declare const DialogCancel: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
10
|
-
export
|
|
10
|
+
export interface DialogContentProps extends ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
|
|
11
|
+
/** Vertical placement: centered (default) or anchored near the viewport top. */
|
|
12
|
+
placement?: "center" | "top";
|
|
13
|
+
/** Top edge offset for top placement. Defaults to 11dvh. */
|
|
14
|
+
topOffset?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const DialogContent: import("react").ForwardRefExoticComponent<DialogContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
17
|
/**
|
|
12
18
|
* Elevated inner card inside the dialog shell. Flush to the shell's left, top
|
|
13
19
|
* and right edges (the shell clips its top corners); the footer stays below on
|
|
@@ -18,6 +24,15 @@ export declare function DialogPanel({ className, ...props }: HTMLAttributes<HTML
|
|
|
18
24
|
export declare function DialogBody({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
19
25
|
export declare function DialogHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
20
26
|
export declare function DialogFooter({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
27
|
+
/**
|
|
28
|
+
* Dialog heading. Standalone-safe: outside a `Dialog` root it renders a plain
|
|
29
|
+
* heading with the same classes (Radix's Title requires a dialog context).
|
|
30
|
+
*/
|
|
21
31
|
export declare const DialogTitle: import("react").ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
32
|
+
/**
|
|
33
|
+
* Dialog body copy. Standalone-safe: outside a `Dialog` root it renders a
|
|
34
|
+
* plain paragraph with the same classes (Radix's Description requires a
|
|
35
|
+
* dialog context).
|
|
36
|
+
*/
|
|
22
37
|
export declare const DialogDescription: import("react").ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>, "ref"> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
23
38
|
//# sourceMappingURL=dialog.d.ts.map
|
package/dist/dialog.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../src/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAQL,KAAK,wBAAwB,
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../src/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAQL,KAAK,wBAAwB,EAG7B,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAwEpD,qEAAqE;AACrE,wBAAgB,MAAM,CAAC,EACrB,IAAI,EAAE,cAAc,EACpB,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,wBAAwB,CAAC,OAAO,eAAe,CAAC,IAAI,CA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