@gusarov-studio/rubik-ui 10.0.0 → 10.0.2
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/Dialog.d.ts +7 -0
- package/dist/Dialog/DialogContext.d.ts +7 -0
- package/dist/Dialog/index.d.ts +21 -8
- package/dist/Dropdown/DropdownContext.d.ts +7 -0
- package/dist/Dropdown/DropdownMenu.d.ts +4 -2
- package/dist/Dropdown/DropdownMenuCheckbox.d.ts +4 -2
- package/dist/Dropdown/DropdownMenuDivider.d.ts +4 -2
- package/dist/Dropdown/DropdownMenuItem.d.ts +4 -2
- package/dist/Dropdown/DropdownRoot.d.ts +8 -0
- package/dist/Dropdown/DropdownSubMenu.d.ts +5 -0
- package/dist/Dropdown/DropdownSubTrigger.d.ts +5 -0
- package/dist/Dropdown/index.d.ts +20 -8
- package/dist/Menu/Menu.d.ts +4 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.declarations.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/Dropdown/DropdownContent.d.ts +0 -3
- package/dist/Dropdown/DropdownMenuSubContent.d.ts +0 -3
- package/dist/Dropdown/DropdownMenuSubTrigger.d.ts +0 -3
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type DialogProps as RadixDialogProps } from "@radix-ui/react-dialog";
|
|
3
|
+
interface DialogProps extends RadixDialogProps {
|
|
4
|
+
zIndex?: number | `${number}`;
|
|
5
|
+
}
|
|
6
|
+
declare const Dialog: React.FC<DialogProps>;
|
|
7
|
+
export { Dialog, type DialogProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface DialogContextState {
|
|
3
|
+
zIndex: number | `${number}`;
|
|
4
|
+
}
|
|
5
|
+
declare const DialogContext: React.Context<DialogContextState | null>;
|
|
6
|
+
declare const useDialogContext: () => DialogContextState;
|
|
7
|
+
export { DialogContext, useDialogContext };
|
package/dist/Dialog/index.d.ts
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
|
+
import { type DialogTriggerProps } from "@radix-ui/react-dialog";
|
|
2
|
+
import { type DialogContentProps } from "./DialogContent";
|
|
3
|
+
import { type DialogDescriptionProps } from "./DialogDescription";
|
|
4
|
+
import { type DialogTitleProps } from "./DialogTitle";
|
|
5
|
+
import { type DialogDecorationProps } from "./DialogDecoration";
|
|
6
|
+
import { type DialogFooterProps } from "./DialogFooter";
|
|
7
|
+
import { type DialogCloseProps } from "./DialogClose";
|
|
8
|
+
import { type DialogHeaderProps } from "./DialogHeader";
|
|
9
|
+
import { type DialogProps } from "./Dialog";
|
|
1
10
|
import "./Dialog.scss";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
declare const Dialog: {
|
|
12
|
+
Root: import("react").FC<DialogProps>;
|
|
13
|
+
Trigger: import("react").ForwardRefExoticComponent<DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
Content: import("react").ForwardRefExoticComponent<DialogContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Description: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>, "ref"> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
16
|
+
Title: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
17
|
+
Decoration: import("react").ForwardRefExoticComponent<DialogDecorationProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
|
+
Footer: import("react").ForwardRefExoticComponent<DialogFooterProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
19
|
+
Close: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
Header: import("react").ForwardRefExoticComponent<DialogHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
|
+
};
|
|
22
|
+
export { Dialog, type DialogTriggerProps, type DialogProps, type DialogContentProps, type DialogDescriptionProps, type DialogTitleProps, type DialogDecorationProps, type DialogFooterProps, type DialogCloseProps, type DialogHeaderProps, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface DropdownContextValue {
|
|
2
|
+
appearance?: "default" | "compact";
|
|
3
|
+
zIndex?: number | `${number}`;
|
|
4
|
+
}
|
|
5
|
+
declare const DropdownContext: import("react").Context<DropdownContextValue | null>;
|
|
6
|
+
declare const useDropdownContext: () => DropdownContextValue;
|
|
7
|
+
export { DropdownContext, type DropdownContextValue, useDropdownContext };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { Content } from "@radix-ui/react-dropdown-menu";
|
|
3
|
+
type DropdownMenuProps = Omit<React.ComponentPropsWithoutRef<typeof Content>, "asChild">;
|
|
4
|
+
declare const DropdownMenu: React.ForwardRefExoticComponent<DropdownMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export { DropdownMenu, type DropdownMenuProps };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { CheckboxItem } from "@radix-ui/react-dropdown-menu";
|
|
3
|
+
type DropdownMenuCheckboxProps = Omit<React.ComponentPropsWithoutRef<typeof CheckboxItem>, "asChild">;
|
|
4
|
+
declare const DropdownMenuCheckbox: React.ForwardRefExoticComponent<DropdownMenuCheckboxProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export { DropdownMenuCheckbox, type DropdownMenuCheckboxProps };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { Separator } from "@radix-ui/react-dropdown-menu";
|
|
3
|
+
type DropdownMenuDividerProps = Omit<React.ComponentPropsWithoutRef<typeof Separator>, "asChild">;
|
|
4
|
+
declare const DropdownMenuDivider: React.ForwardRefExoticComponent<DropdownMenuDividerProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export { DropdownMenuDivider, type DropdownMenuDividerProps };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { Item } from "@radix-ui/react-dropdown-menu";
|
|
3
|
+
type DropdownMenuItemProps = Omit<React.ComponentPropsWithoutRef<typeof Item>, "asChild">;
|
|
4
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export { DropdownMenuItem, type DropdownMenuItemProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Root } from "@radix-ui/react-dropdown-menu";
|
|
3
|
+
interface DropdownRootProps extends React.ComponentProps<typeof Root> {
|
|
4
|
+
appearance?: "default" | "compact";
|
|
5
|
+
zIndex?: number | `${number}`;
|
|
6
|
+
}
|
|
7
|
+
declare const DropdownRoot: React.FC<DropdownRootProps>;
|
|
8
|
+
export { DropdownRoot, type DropdownRootProps };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SubContent } from "@radix-ui/react-dropdown-menu";
|
|
3
|
+
type DropdownSubMenuProps = Omit<React.ComponentPropsWithoutRef<typeof SubContent>, "asChild">;
|
|
4
|
+
declare const DropdownSubMenu: React.ForwardRefExoticComponent<DropdownSubMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export { DropdownSubMenu, type DropdownSubMenuProps };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SubTrigger } from "@radix-ui/react-dropdown-menu";
|
|
3
|
+
type DropdownSubTriggerProps = Omit<React.ComponentPropsWithoutRef<typeof SubTrigger>, "asChild">;
|
|
4
|
+
declare const DropdownSubTrigger: React.ForwardRefExoticComponent<DropdownSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export { DropdownSubTrigger, type DropdownSubTriggerProps };
|
package/dist/Dropdown/index.d.ts
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { type DropdownMenuTriggerProps, type DropdownMenuSubProps } from "@radix-ui/react-dropdown-menu";
|
|
2
|
+
import { type DropdownRootProps } from "./DropdownRoot";
|
|
3
|
+
import { type DropdownMenuProps } from "./DropdownMenu";
|
|
4
|
+
import { type DropdownMenuItemProps } from "./DropdownMenuItem";
|
|
5
|
+
import { type DropdownMenuDividerProps } from "./DropdownMenuDivider";
|
|
6
|
+
import { type DropdownMenuCheckboxProps } from "./DropdownMenuCheckbox";
|
|
7
|
+
import { type DropdownSubTriggerProps } from "./DropdownSubTrigger";
|
|
8
|
+
import { type DropdownSubMenuProps } from "./DropdownSubMenu";
|
|
9
|
+
declare const Dropdown: {
|
|
10
|
+
Root: import("react").FC<DropdownRootProps>;
|
|
11
|
+
Trigger: import("react").ForwardRefExoticComponent<DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
Menu: import("react").ForwardRefExoticComponent<DropdownMenuProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Item: import("react").ForwardRefExoticComponent<DropdownMenuItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Divider: import("react").ForwardRefExoticComponent<DropdownMenuDividerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Checkbox: import("react").ForwardRefExoticComponent<DropdownMenuCheckboxProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
+
Sub: import("react").FC<DropdownMenuSubProps>;
|
|
17
|
+
SubTrigger: import("react").ForwardRefExoticComponent<DropdownSubTriggerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
|
+
SubMenu: import("react").ForwardRefExoticComponent<DropdownSubMenuProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
19
|
+
};
|
|
20
|
+
export { Dropdown, type DropdownRootProps, type DropdownMenuTriggerProps, type DropdownMenuProps, type DropdownMenuItemProps, type DropdownMenuDividerProps, type DropdownMenuCheckboxProps, type DropdownMenuSubProps, type DropdownSubTriggerProps, type DropdownSubMenuProps, };
|
package/dist/Menu/Menu.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./Menu.scss";
|
|
3
|
-
|
|
3
|
+
export interface MenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
appearance?: "default" | "compact";
|
|
5
|
+
}
|
|
6
|
+
declare const Menu: React.ForwardRefExoticComponent<MenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
7
|
export { Menu };
|