@yamada-ui/menu 0.3.19 → 0.3.21

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.
@@ -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<'button'>;
4
+ type MenuButtonProps = HTMLUIProps<"button">;
5
5
  declare const MenuButton: _yamada_ui_core.Component<"button", MenuButtonProps>;
6
6
 
7
7
  export { MenuButton, MenuButtonProps };
@@ -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<'button'>;
4
+ type MenuButtonProps = HTMLUIProps<"button">;
5
5
  declare const MenuButton: _yamada_ui_core.Component<"button", MenuButtonProps>;
6
6
 
7
7
  export { MenuButton, MenuButtonProps };
@@ -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<'hr'>;
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 };
@@ -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<'hr'>;
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 };
@@ -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<'div'>;
4
+ type MenuGroupProps = HTMLUIProps<"div">;
5
5
  declare const MenuGroup: _yamada_ui_core.Component<"div", MenuGroupProps>;
6
6
 
7
7
  export { MenuGroup, MenuGroupProps };
@@ -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<'div'>;
4
+ type MenuGroupProps = HTMLUIProps<"div">;
5
5
  declare const MenuGroup: _yamada_ui_core.Component<"div", MenuGroupProps>;
6
6
 
7
7
  export { MenuGroup, MenuGroupProps };
@@ -30,7 +30,7 @@ type MenuItemOptions = {
30
30
  */
31
31
  command?: string;
32
32
  };
33
- type MenuItemProps = HTMLUIProps<'button'> & MenuItemOptions;
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?: 'radio' | 'checkbox';
53
+ type?: "radio" | "checkbox";
54
54
  };
55
- type MenuOptionItemProps = Omit<MenuItemProps, 'icon' | 'command'> & MenuOptionItemOptions;
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 };
@@ -30,7 +30,7 @@ type MenuItemOptions = {
30
30
  */
31
31
  command?: string;
32
32
  };
33
- type MenuItemProps = HTMLUIProps<'button'> & MenuItemOptions;
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?: 'radio' | 'checkbox';
53
+ type?: "radio" | "checkbox";
54
54
  };
55
- type MenuOptionItemProps = Omit<MenuItemProps, 'icon' | 'command'> & MenuOptionItemOptions;
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 };
@@ -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<'section'>;
4
+ type MenuListProps = HTMLUIProps<"section">;
5
5
  declare const MenuList: _yamada_ui_core.Component<"section", MenuListProps>;
6
6
 
7
7
  export { MenuList, MenuListProps };
@@ -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<'section'>;
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?: 'radio' | 'checkbox';
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<'div'>, keyof MenuOptionGroupOptions> & MenuOptionGroupOptions<Y>;
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?: 'radio' | 'checkbox';
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<'div'>, keyof MenuOptionGroupOptions> & MenuOptionGroupOptions<Y>;
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<'Menu'> & Omit<PopoverProps, 'closeOnButton'> & MenuOptions;
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<'Menu'> & Omit<PopoverProps, 'closeOnButton'> & MenuOptions;
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.19",
3
+ "version": "0.3.21",
4
4
  "description": "Yamada UI menu component",
5
5
  "keywords": [
6
6
  "yamada",
@@ -35,10 +35,10 @@
35
35
  "url": "https://github.com/hirotomoyamada/yamada-ui/issues"
36
36
  },
37
37
  "dependencies": {
38
- "@yamada-ui/core": "0.12.5",
38
+ "@yamada-ui/core": "0.12.6",
39
39
  "@yamada-ui/utils": "0.3.3",
40
- "@yamada-ui/transitions": "0.3.16",
41
- "@yamada-ui/popover": "0.3.19",
40
+ "@yamada-ui/popover": "0.3.21",
41
+ "@yamada-ui/transitions": "0.3.17",
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",