@yamada-ui/menu 0.3.19 → 0.3.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/menu-button.d.mts +1 -1
- package/dist/menu-button.d.ts +1 -1
- package/dist/menu-divider.d.mts +1 -1
- package/dist/menu-divider.d.ts +1 -1
- package/dist/menu-group.d.mts +1 -1
- package/dist/menu-group.d.ts +1 -1
- package/dist/menu-item.d.mts +3 -3
- package/dist/menu-item.d.ts +3 -3
- package/dist/menu-list.d.mts +1 -1
- package/dist/menu-list.d.ts +1 -1
- package/dist/menu-option-group.d.mts +2 -2
- package/dist/menu-option-group.d.ts +2 -2
- package/dist/menu.d.mts +1 -1
- package/dist/menu.d.ts +1 -1
- package/package.json +2 -2
package/dist/menu-button.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
2
|
import { HTMLUIProps } from '@yamada-ui/core';
|
|
3
3
|
|
|
4
|
-
type MenuButtonProps = HTMLUIProps<
|
|
4
|
+
type MenuButtonProps = HTMLUIProps<"button">;
|
|
5
5
|
declare const MenuButton: _yamada_ui_core.Component<"button", MenuButtonProps>;
|
|
6
6
|
|
|
7
7
|
export { MenuButton, MenuButtonProps };
|
package/dist/menu-button.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
2
|
import { HTMLUIProps } from '@yamada-ui/core';
|
|
3
3
|
|
|
4
|
-
type MenuButtonProps = HTMLUIProps<
|
|
4
|
+
type MenuButtonProps = HTMLUIProps<"button">;
|
|
5
5
|
declare const MenuButton: _yamada_ui_core.Component<"button", MenuButtonProps>;
|
|
6
6
|
|
|
7
7
|
export { MenuButton, MenuButtonProps };
|
package/dist/menu-divider.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
2
|
import { HTMLUIProps } from '@yamada-ui/core';
|
|
3
3
|
|
|
4
|
-
type MenuDividerProps = HTMLUIProps<
|
|
4
|
+
type MenuDividerProps = HTMLUIProps<"hr">;
|
|
5
5
|
declare const MenuDivider: _yamada_ui_core.Component<_yamada_ui_core.As, object>;
|
|
6
6
|
|
|
7
7
|
export { MenuDivider, MenuDividerProps };
|
package/dist/menu-divider.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
2
|
import { HTMLUIProps } from '@yamada-ui/core';
|
|
3
3
|
|
|
4
|
-
type MenuDividerProps = HTMLUIProps<
|
|
4
|
+
type MenuDividerProps = HTMLUIProps<"hr">;
|
|
5
5
|
declare const MenuDivider: _yamada_ui_core.Component<_yamada_ui_core.As, object>;
|
|
6
6
|
|
|
7
7
|
export { MenuDivider, MenuDividerProps };
|
package/dist/menu-group.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
2
|
import { HTMLUIProps } from '@yamada-ui/core';
|
|
3
3
|
|
|
4
|
-
type MenuGroupProps = HTMLUIProps<
|
|
4
|
+
type MenuGroupProps = HTMLUIProps<"div">;
|
|
5
5
|
declare const MenuGroup: _yamada_ui_core.Component<"div", MenuGroupProps>;
|
|
6
6
|
|
|
7
7
|
export { MenuGroup, MenuGroupProps };
|
package/dist/menu-group.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
2
|
import { HTMLUIProps } from '@yamada-ui/core';
|
|
3
3
|
|
|
4
|
-
type MenuGroupProps = HTMLUIProps<
|
|
4
|
+
type MenuGroupProps = HTMLUIProps<"div">;
|
|
5
5
|
declare const MenuGroup: _yamada_ui_core.Component<"div", MenuGroupProps>;
|
|
6
6
|
|
|
7
7
|
export { MenuGroup, MenuGroupProps };
|
package/dist/menu-item.d.mts
CHANGED
|
@@ -30,7 +30,7 @@ type MenuItemOptions = {
|
|
|
30
30
|
*/
|
|
31
31
|
command?: string;
|
|
32
32
|
};
|
|
33
|
-
type MenuItemProps = HTMLUIProps<
|
|
33
|
+
type MenuItemProps = HTMLUIProps<"button"> & MenuItemOptions;
|
|
34
34
|
declare const MenuItem: _yamada_ui_core.Component<"button", MenuItemProps>;
|
|
35
35
|
type MenuOptionItemOptions = {
|
|
36
36
|
/**
|
|
@@ -50,9 +50,9 @@ type MenuOptionItemOptions = {
|
|
|
50
50
|
/**
|
|
51
51
|
* The type of the menu option item.
|
|
52
52
|
*/
|
|
53
|
-
type?:
|
|
53
|
+
type?: "radio" | "checkbox";
|
|
54
54
|
};
|
|
55
|
-
type MenuOptionItemProps = Omit<MenuItemProps,
|
|
55
|
+
type MenuOptionItemProps = Omit<MenuItemProps, "icon" | "command"> & MenuOptionItemOptions;
|
|
56
56
|
declare const MenuOptionItem: _yamada_ui_core.Component<"button", MenuOptionItemProps>;
|
|
57
57
|
|
|
58
58
|
export { MenuItem, MenuItemProps, MenuOptionItem, MenuOptionItemProps };
|
package/dist/menu-item.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ type MenuItemOptions = {
|
|
|
30
30
|
*/
|
|
31
31
|
command?: string;
|
|
32
32
|
};
|
|
33
|
-
type MenuItemProps = HTMLUIProps<
|
|
33
|
+
type MenuItemProps = HTMLUIProps<"button"> & MenuItemOptions;
|
|
34
34
|
declare const MenuItem: _yamada_ui_core.Component<"button", MenuItemProps>;
|
|
35
35
|
type MenuOptionItemOptions = {
|
|
36
36
|
/**
|
|
@@ -50,9 +50,9 @@ type MenuOptionItemOptions = {
|
|
|
50
50
|
/**
|
|
51
51
|
* The type of the menu option item.
|
|
52
52
|
*/
|
|
53
|
-
type?:
|
|
53
|
+
type?: "radio" | "checkbox";
|
|
54
54
|
};
|
|
55
|
-
type MenuOptionItemProps = Omit<MenuItemProps,
|
|
55
|
+
type MenuOptionItemProps = Omit<MenuItemProps, "icon" | "command"> & MenuOptionItemOptions;
|
|
56
56
|
declare const MenuOptionItem: _yamada_ui_core.Component<"button", MenuOptionItemProps>;
|
|
57
57
|
|
|
58
58
|
export { MenuItem, MenuItemProps, MenuOptionItem, MenuOptionItemProps };
|
package/dist/menu-list.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
2
|
import { HTMLUIProps } from '@yamada-ui/core';
|
|
3
3
|
|
|
4
|
-
type MenuListProps = HTMLUIProps<
|
|
4
|
+
type MenuListProps = HTMLUIProps<"section">;
|
|
5
5
|
declare const MenuList: _yamada_ui_core.Component<"section", MenuListProps>;
|
|
6
6
|
|
|
7
7
|
export { MenuList, MenuListProps };
|
package/dist/menu-list.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _yamada_ui_core from '@yamada-ui/core';
|
|
2
2
|
import { HTMLUIProps } from '@yamada-ui/core';
|
|
3
3
|
|
|
4
|
-
type MenuListProps = HTMLUIProps<
|
|
4
|
+
type MenuListProps = HTMLUIProps<"section">;
|
|
5
5
|
declare const MenuList: _yamada_ui_core.Component<"section", MenuListProps>;
|
|
6
6
|
|
|
7
7
|
export { MenuList, MenuListProps };
|
|
@@ -15,13 +15,13 @@ type MenuOptionGroupOptions<Y extends string | string[] = string> = {
|
|
|
15
15
|
*
|
|
16
16
|
* @default 'checkbox'
|
|
17
17
|
*/
|
|
18
|
-
type?:
|
|
18
|
+
type?: "radio" | "checkbox";
|
|
19
19
|
/**
|
|
20
20
|
* The callback fired when any children checkbox is checked or unchecked.
|
|
21
21
|
*/
|
|
22
22
|
onChange?: (value: Y) => void;
|
|
23
23
|
};
|
|
24
|
-
type MenuOptionGroupProps<Y extends string | string[] = string> = Omit<HTMLUIProps<
|
|
24
|
+
type MenuOptionGroupProps<Y extends string | string[] = string> = Omit<HTMLUIProps<"div">, keyof MenuOptionGroupOptions> & MenuOptionGroupOptions<Y>;
|
|
25
25
|
declare const MenuOptionGroup: (<Y extends string | string[] = string>(props: Omit<HTMLUIProps<"div">, keyof MenuOptionGroupOptions<string>> & MenuOptionGroupOptions<Y> & {
|
|
26
26
|
ref?: Ref<HTMLDivElement> | undefined;
|
|
27
27
|
}) => JSX.Element) & ComponentArgs;
|
|
@@ -15,13 +15,13 @@ type MenuOptionGroupOptions<Y extends string | string[] = string> = {
|
|
|
15
15
|
*
|
|
16
16
|
* @default 'checkbox'
|
|
17
17
|
*/
|
|
18
|
-
type?:
|
|
18
|
+
type?: "radio" | "checkbox";
|
|
19
19
|
/**
|
|
20
20
|
* The callback fired when any children checkbox is checked or unchecked.
|
|
21
21
|
*/
|
|
22
22
|
onChange?: (value: Y) => void;
|
|
23
23
|
};
|
|
24
|
-
type MenuOptionGroupProps<Y extends string | string[] = string> = Omit<HTMLUIProps<
|
|
24
|
+
type MenuOptionGroupProps<Y extends string | string[] = string> = Omit<HTMLUIProps<"div">, keyof MenuOptionGroupOptions> & MenuOptionGroupOptions<Y>;
|
|
25
25
|
declare const MenuOptionGroup: (<Y extends string | string[] = string>(props: Omit<HTMLUIProps<"div">, keyof MenuOptionGroupOptions<string>> & MenuOptionGroupOptions<Y> & {
|
|
26
26
|
ref?: Ref<HTMLDivElement> | undefined;
|
|
27
27
|
}) => JSX.Element) & ComponentArgs;
|
package/dist/menu.d.mts
CHANGED
|
@@ -2133,7 +2133,7 @@ type MenuOptions = {
|
|
|
2133
2133
|
*/
|
|
2134
2134
|
closeOnSelect?: boolean;
|
|
2135
2135
|
};
|
|
2136
|
-
type MenuProps = ThemeProps<
|
|
2136
|
+
type MenuProps = ThemeProps<"Menu"> & Omit<PopoverProps, "closeOnButton"> & MenuOptions;
|
|
2137
2137
|
declare const Menu: FC<MenuProps>;
|
|
2138
2138
|
|
|
2139
2139
|
export { Menu, MenuProps, useMenu, useMenuDescendant, useMenuDescendantsContext };
|
package/dist/menu.d.ts
CHANGED
|
@@ -2133,7 +2133,7 @@ type MenuOptions = {
|
|
|
2133
2133
|
*/
|
|
2134
2134
|
closeOnSelect?: boolean;
|
|
2135
2135
|
};
|
|
2136
|
-
type MenuProps = ThemeProps<
|
|
2136
|
+
type MenuProps = ThemeProps<"Menu"> & Omit<PopoverProps, "closeOnButton"> & MenuOptions;
|
|
2137
2137
|
declare const Menu: FC<MenuProps>;
|
|
2138
2138
|
|
|
2139
2139
|
export { Menu, MenuProps, useMenu, useMenuDescendant, useMenuDescendantsContext };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/menu",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.20",
|
|
4
4
|
"description": "Yamada UI menu component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yamada",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@yamada-ui/core": "0.12.5",
|
|
39
39
|
"@yamada-ui/utils": "0.3.3",
|
|
40
|
+
"@yamada-ui/popover": "0.3.20",
|
|
40
41
|
"@yamada-ui/transitions": "0.3.16",
|
|
41
|
-
"@yamada-ui/popover": "0.3.19",
|
|
42
42
|
"@yamada-ui/use-disclosure": "0.4.3",
|
|
43
43
|
"@yamada-ui/use-descendant": "0.2.5",
|
|
44
44
|
"@yamada-ui/use-clickable": "0.3.5",
|