@aivex/ui 1.1.0-dev.19 → 1.1.0-dev.20
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/Menu/Menu.d.ts +79 -13
- package/dist/components/Menu/index.d.ts +2 -2
- package/dist/components/Segmented/Segmented.d.ts +2 -2
- package/dist/components/Shortcut/Shortcut.d.ts +3 -2
- package/dist/index.cjs +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2622 -1707
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -1
|
@@ -1,18 +1,84 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
|
|
2
|
+
import type { ComponentPropsWithoutRef, ReactNode, Ref } from "react";
|
|
3
|
+
type MenuRootProps = ComponentPropsWithoutRef<typeof DropdownMenu.Root>;
|
|
4
|
+
declare function MenuRoot(props: MenuRootProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
type MenuTriggerProps = ComponentPropsWithoutRef<typeof DropdownMenu.Trigger> & {
|
|
6
|
+
ref?: Ref<HTMLButtonElement>;
|
|
7
|
+
};
|
|
8
|
+
declare function MenuTrigger({ ref, ...props }: MenuTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
type MenuContentProps = ComponentPropsWithoutRef<typeof DropdownMenu.Content> & {
|
|
10
|
+
ref?: Ref<HTMLDivElement>;
|
|
11
|
+
};
|
|
12
|
+
declare function MenuContent({ className, sideOffset, ref, ...props }: MenuContentProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
type MenuGroupProps = ComponentPropsWithoutRef<typeof DropdownMenu.Group> & {
|
|
14
|
+
ref?: Ref<HTMLDivElement>;
|
|
15
|
+
};
|
|
16
|
+
declare function MenuGroup({ className, ref, ...props }: MenuGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
type MenuSeparatorProps = ComponentPropsWithoutRef<typeof DropdownMenu.Separator> & {
|
|
18
|
+
ref?: Ref<HTMLDivElement>;
|
|
19
|
+
};
|
|
20
|
+
declare function MenuSeparator({ className, ref, ...props }: MenuSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
type MenuLabelProps = ComponentPropsWithoutRef<typeof DropdownMenu.Label> & {
|
|
22
|
+
ref?: Ref<HTMLDivElement>;
|
|
23
|
+
};
|
|
24
|
+
declare function MenuLabel({ className, ref, ...props }: MenuLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
interface MenuItemProps extends Omit<ComponentPropsWithoutRef<typeof DropdownMenu.Item>, "children"> {
|
|
26
|
+
/** label/icon으로 렌더할 때 사용. asChild 모드에선 무시 */
|
|
27
|
+
label?: ReactNode;
|
|
8
28
|
icon?: ReactNode;
|
|
9
29
|
danger?: boolean;
|
|
10
|
-
|
|
11
|
-
|
|
30
|
+
/** Radix asChild — 자식 컴포넌트(Link 등)에 메뉴 동작/스타일 위임 */
|
|
31
|
+
asChild?: boolean;
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
ref?: Ref<HTMLDivElement>;
|
|
34
|
+
}
|
|
35
|
+
declare function MenuItem({ className, label, icon, danger, asChild, children, ref, ...props }: MenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
interface MenuCheckboxItemProps extends ComponentPropsWithoutRef<typeof DropdownMenu.CheckboxItem> {
|
|
37
|
+
label?: ReactNode;
|
|
38
|
+
icon?: ReactNode;
|
|
39
|
+
ref?: Ref<HTMLDivElement>;
|
|
40
|
+
}
|
|
41
|
+
declare function MenuCheckboxItem({ className, label, icon, children, ref, ...props }: MenuCheckboxItemProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
type MenuRadioGroupProps = ComponentPropsWithoutRef<typeof DropdownMenu.RadioGroup> & {
|
|
43
|
+
ref?: Ref<HTMLDivElement>;
|
|
44
|
+
};
|
|
45
|
+
declare function MenuRadioGroup({ className, ref, ...props }: MenuRadioGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
interface MenuRadioItemProps extends ComponentPropsWithoutRef<typeof DropdownMenu.RadioItem> {
|
|
47
|
+
label?: ReactNode;
|
|
48
|
+
icon?: ReactNode;
|
|
49
|
+
ref?: Ref<HTMLDivElement>;
|
|
12
50
|
}
|
|
13
|
-
declare function
|
|
14
|
-
|
|
51
|
+
declare function MenuRadioItem({ className, label, icon, children, ref, ...props }: MenuRadioItemProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
type MenuShortcutProps = ComponentPropsWithoutRef<"span"> & {
|
|
53
|
+
ref?: Ref<HTMLSpanElement>;
|
|
54
|
+
};
|
|
55
|
+
declare function MenuShortcut({ className, ref, ...props }: MenuShortcutProps): import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
type MenuSubProps = ComponentPropsWithoutRef<typeof DropdownMenu.Sub>;
|
|
57
|
+
declare function MenuSub(props: MenuSubProps): import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
interface MenuSubTriggerProps extends ComponentPropsWithoutRef<typeof DropdownMenu.SubTrigger> {
|
|
59
|
+
label?: ReactNode;
|
|
60
|
+
icon?: ReactNode;
|
|
15
61
|
ref?: Ref<HTMLDivElement>;
|
|
16
62
|
}
|
|
17
|
-
declare function
|
|
18
|
-
|
|
63
|
+
declare function MenuSubTrigger({ className, label, icon, children, ref, ...props }: MenuSubTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
type MenuSubContentProps = ComponentPropsWithoutRef<typeof DropdownMenu.SubContent> & {
|
|
65
|
+
ref?: Ref<HTMLDivElement>;
|
|
66
|
+
};
|
|
67
|
+
declare function MenuSubContent({ className, sideOffset, ref, ...props }: MenuSubContentProps): import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
declare const Menu: typeof MenuRoot & {
|
|
69
|
+
Trigger: typeof MenuTrigger;
|
|
70
|
+
Content: typeof MenuContent;
|
|
71
|
+
Item: typeof MenuItem;
|
|
72
|
+
Group: typeof MenuGroup;
|
|
73
|
+
Separator: typeof MenuSeparator;
|
|
74
|
+
Label: typeof MenuLabel;
|
|
75
|
+
CheckboxItem: typeof MenuCheckboxItem;
|
|
76
|
+
RadioGroup: typeof MenuRadioGroup;
|
|
77
|
+
RadioItem: typeof MenuRadioItem;
|
|
78
|
+
Sub: typeof MenuSub;
|
|
79
|
+
SubTrigger: typeof MenuSubTrigger;
|
|
80
|
+
SubContent: typeof MenuSubContent;
|
|
81
|
+
Shortcut: typeof MenuShortcut;
|
|
82
|
+
};
|
|
83
|
+
export type { MenuCheckboxItemProps, MenuContentProps, MenuGroupProps, MenuItemProps, MenuLabelProps, MenuRadioGroupProps, MenuRadioItemProps, MenuRootProps, MenuSeparatorProps, MenuShortcutProps, MenuSubContentProps, MenuSubProps, MenuSubTriggerProps, MenuTriggerProps, };
|
|
84
|
+
export { Menu };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { MenuItemProps, MenuRootProps } from "./Menu";
|
|
2
|
-
export {
|
|
1
|
+
export type { MenuCheckboxItemProps, MenuContentProps, MenuGroupProps, MenuItemProps, MenuLabelProps, MenuRadioGroupProps, MenuRadioItemProps, MenuRootProps, MenuSeparatorProps, MenuShortcutProps, MenuSubContentProps, MenuSubProps, MenuSubTriggerProps, MenuTriggerProps, } from "./Menu";
|
|
2
|
+
export { Menu } from "./Menu";
|
|
@@ -8,8 +8,8 @@ export interface SegmentedRootProps extends Omit<ToggleGroupSingleProps, "onValu
|
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
}
|
|
10
10
|
declare function SegmentedRoot({ className, size, value, defaultValue, onValueChange, fullWidth, children, ref, ...props }: SegmentedRootProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export
|
|
11
|
+
export type SegmentedItemProps = ToggleGroupItemProps & RefAttributes<HTMLButtonElement> & {
|
|
12
12
|
children?: ReactNode;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
14
|
declare function SegmentedItem({ className, children, ref, ...props }: SegmentedItemProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export { SegmentedItem, SegmentedRoot };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { HTMLAttributes, ReactNode, Ref } from "react";
|
|
2
|
+
export type ShortcutKey = string | ReactNode;
|
|
2
3
|
export interface ShortcutProps extends HTMLAttributes<HTMLSpanElement> {
|
|
3
|
-
keys:
|
|
4
|
+
keys: ShortcutKey[];
|
|
4
5
|
ref?: Ref<HTMLSpanElement>;
|
|
5
6
|
}
|
|
6
7
|
declare function Shortcut({ className, keys, ref, ...props }: ShortcutProps): import("react/jsx-runtime").JSX.Element;
|