@gusarov-studio/rubik-ui 4.2.0 → 5.0.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/Dialog/Decoration.d.ts +8 -0
- package/dist/Dialog/DialogClose.d.ts +5 -0
- package/dist/Dialog/DialogContent.d.ts +8 -0
- package/dist/Dialog/DialogDecoration.d.ts +8 -0
- package/dist/Dialog/DialogDescription.d.ts +5 -0
- package/dist/Dialog/DialogFooter.d.ts +7 -0
- package/dist/Dialog/DialogHeader.d.ts +7 -0
- package/dist/Dialog/DialogOverlay.d.ts +5 -0
- package/dist/Dialog/DialogTitle.d.ts +5 -0
- package/dist/Dialog/decorations/CirclePattern.d.ts +4 -0
- package/dist/Dialog/decorations/DiagonalPattern.d.ts +4 -0
- package/dist/Dialog/decorations/DotPatter.d.ts +4 -0
- package/dist/Dialog/decorations/GridPattern.d.ts +4 -0
- package/dist/Dialog/decorations/index.d.ts +9 -0
- package/dist/Dialog/decorations/types.d.ts +5 -0
- package/dist/Dialog/index.d.ts +9 -0
- package/dist/Resizable/Resizable.d.ts +16 -0
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/VisuallyHidden/index.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.declarations.tsbuildinfo +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type DecorationPattern } from "./decorations";
|
|
3
|
+
import type { DecorationPatternProps } from "./decorations/types";
|
|
4
|
+
interface DecorationProps extends DecorationPatternProps {
|
|
5
|
+
type: DecorationPattern;
|
|
6
|
+
}
|
|
7
|
+
declare const Decoration: React.ForwardRefExoticComponent<DecorationProps & React.RefAttributes<SVGSVGElement>>;
|
|
8
|
+
export { Decoration, type DecorationPattern };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Close } from "@radix-ui/react-dialog";
|
|
3
|
+
type DialogCloseProps = React.ComponentPropsWithoutRef<typeof Close>;
|
|
4
|
+
declare const DialogClose: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
export { DialogClose, type DialogCloseProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Content } from "@radix-ui/react-dialog";
|
|
3
|
+
interface DialogContentProps extends React.ComponentPropsWithoutRef<typeof Content> {
|
|
4
|
+
overlay?: boolean;
|
|
5
|
+
width?: React.CSSProperties["maxWidth"];
|
|
6
|
+
}
|
|
7
|
+
declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export { DialogContent, type DialogContentProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type DecorationPattern } from "./Decoration";
|
|
3
|
+
interface DialogDecorationProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
type: DecorationPattern;
|
|
5
|
+
align?: "left" | "center";
|
|
6
|
+
}
|
|
7
|
+
declare const DialogDecoration: React.ForwardRefExoticComponent<DialogDecorationProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export { DialogDecoration, type DialogDecorationProps };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Description } from "@radix-ui/react-dialog";
|
|
3
|
+
type DialogDescriptionProps = React.ComponentPropsWithoutRef<typeof Description>;
|
|
4
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
5
|
+
export { DialogDescription, type DialogDescriptionProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface DialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
align?: "left" | "center" | "right";
|
|
4
|
+
spacing?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const DialogFooter: React.ForwardRefExoticComponent<DialogFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { DialogFooter, type DialogFooterProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface DialogHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
align?: "left" | "center";
|
|
4
|
+
spacing?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const DialogHeader: React.ForwardRefExoticComponent<DialogHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { DialogHeader, type DialogHeaderProps };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Overlay } from "@radix-ui/react-dialog";
|
|
3
|
+
type DialogOverlayProps = React.ComponentPropsWithoutRef<typeof Overlay>;
|
|
4
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export { DialogOverlay, type DialogOverlayProps };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Title } from "@radix-ui/react-dialog";
|
|
3
|
+
type DialogTitleProps = React.ComponentPropsWithoutRef<typeof Title>;
|
|
4
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
5
|
+
export { DialogTitle, type DialogTitleProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const decorations: {
|
|
2
|
+
circles: import("react").ForwardRefExoticComponent<import("./types").DecorationPatternProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
3
|
+
grid: import("react").ForwardRefExoticComponent<import("./types").DecorationPatternProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
4
|
+
dots: import("react").ForwardRefExoticComponent<import("./types").DecorationPatternProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
5
|
+
diagonal: import("react").ForwardRefExoticComponent<import("./types").DecorationPatternProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
6
|
+
};
|
|
7
|
+
type DecorationPattern = keyof typeof decorations;
|
|
8
|
+
declare function getDecoration(glyph: string): import("react").ForwardRefExoticComponent<import("./types").DecorationPatternProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
9
|
+
export { getDecoration, type DecorationPattern };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./Dialog.scss";
|
|
2
|
+
export { Root as Dialog, Trigger as DialogTrigger, type DialogProps, type DialogTriggerProps, } from "@radix-ui/react-dialog";
|
|
3
|
+
export * from "./DialogContent";
|
|
4
|
+
export * from "./DialogDescription";
|
|
5
|
+
export * from "./DialogTitle";
|
|
6
|
+
export * from "./DialogDecoration";
|
|
7
|
+
export * from "./DialogFooter";
|
|
8
|
+
export * from "./DialogClose";
|
|
9
|
+
export * from "./DialogHeader";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Resizable as ReResizable, type ResizableProps as ReResizableProps, type ResizeDirection, type ResizeStartCallback as ReResizeStartCallback, type ResizeCallback as ReResizeCallback, type NumberSize, type HandleComponent, type HandleClassName, type HandleStyles, type Enable } from "re-resizable";
|
|
3
|
+
interface ResizeData {
|
|
4
|
+
dir: ResizeDirection;
|
|
5
|
+
refToElement: HTMLElement;
|
|
6
|
+
delta: NumberSize;
|
|
7
|
+
}
|
|
8
|
+
type ResizeStartCallback = (resizeData: Omit<ResizeData, "delta">, event: Parameters<ReResizeStartCallback>[0]) => ReturnType<ReResizeStartCallback>;
|
|
9
|
+
type ResizeCallback = (resizeData: ResizeData, event: Parameters<ReResizeCallback>[0]) => ReturnType<ReResizeCallback>;
|
|
10
|
+
interface ResizableProps extends Omit<ReResizableProps, "onResizeStart" | "onResize" | "onResizeStop"> {
|
|
11
|
+
onResizeStart?: ResizeStartCallback;
|
|
12
|
+
onResize?: ResizeCallback;
|
|
13
|
+
onResizeStop?: ResizeCallback;
|
|
14
|
+
}
|
|
15
|
+
declare const Resizable: React.ForwardRefExoticComponent<ResizableProps & React.RefAttributes<ReResizable>>;
|
|
16
|
+
export { Resizable, type ResizableProps, type ResizeDirection, type ResizeData, type ResizeStartCallback, type ResizeCallback, type HandleComponent, type HandleClassName, type HandleStyles, type Enable, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./Resizable";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VisuallyHidden, type VisuallyHiddenProps } from "@radix-ui/react-visually-hidden";
|