Socket
Socket
Sign inDemoInstall

rc-menu

Package Overview
Dependencies
Maintainers
10
Versions
279
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-menu - npm Package Compare versions

Comparing version 9.11.0 to 9.11.1

2

es/Divider.d.ts
import * as React from 'react';
import type { MenuDividerType } from './interface';
export declare type DividerProps = Omit<MenuDividerType, 'type'>;
export type DividerProps = Omit<MenuDividerType, 'type'>;
export default function Divider({ className, style }: DividerProps): React.JSX.Element;

@@ -15,2 +15,3 @@ import * as React from 'react';

return /*#__PURE__*/React.createElement("li", {
role: "separator",
className: classNames("".concat(prefixCls, "-item-divider"), className),

@@ -17,0 +18,0 @@ style: style

@@ -16,3 +16,3 @@ import Menu from './Menu';

export type { MenuProps, SubMenuProps, MenuItemProps, MenuItemGroupProps, MenuRef, };
declare type MenuType = typeof Menu & {
type MenuType = typeof Menu & {
Item: typeof MenuItem;

@@ -19,0 +19,0 @@ SubMenu: typeof SubMenu;

@@ -41,6 +41,6 @@ import type * as React from 'react';

}
export declare type ItemType = SubMenuType | MenuItemType | MenuItemGroupType | MenuDividerType | null;
export declare type MenuMode = 'horizontal' | 'vertical' | 'inline';
export declare type BuiltinPlacements = Record<string, any>;
export declare type TriggerSubMenuAction = 'click' | 'hover';
export type ItemType = SubMenuType | MenuItemType | MenuItemGroupType | MenuDividerType | null;
export type MenuMode = 'horizontal' | 'vertical' | 'inline';
export type BuiltinPlacements = Record<string, any>;
export type TriggerSubMenuAction = 'click' | 'hover';
export interface RenderIconInfo {

@@ -52,3 +52,3 @@ isSelected?: boolean;

}
export declare type RenderIconType = React.ReactNode | ((props: RenderIconInfo) => React.ReactNode);
export type RenderIconType = React.ReactNode | ((props: RenderIconInfo) => React.ReactNode);
export interface MenuInfo {

@@ -65,3 +65,3 @@ key: string;

}
export declare type MenuHoverEventHandler = (info: {
export type MenuHoverEventHandler = (info: {
key: string;

@@ -73,5 +73,5 @@ domEvent: React.MouseEvent<HTMLElement>;

}
export declare type SelectEventHandler = (info: SelectInfo) => void;
export declare type MenuClickEventHandler = (info: MenuInfo) => void;
export declare type MenuRef = {
export type SelectEventHandler = (info: SelectInfo) => void;
export type MenuClickEventHandler = (info: MenuInfo) => void;
export type MenuRef = {
/**

@@ -78,0 +78,0 @@ * Focus active child if any, or the first child which is not disabled will be focused.

import * as React from 'react';
export declare function parseChildren(children: React.ReactNode | undefined, keyPath: string[]): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>[];
export declare function parseChildren(children: React.ReactNode | undefined, keyPath: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
import * as React from 'react';
import type { ItemType } from '../interface';
export declare function parseItems(children: React.ReactNode | undefined, items: ItemType[] | undefined, keyPath: string[]): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>[];
export declare function parseItems(children: React.ReactNode | undefined, items: ItemType[] | undefined, keyPath: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
import * as React from 'react';
import type { MenuDividerType } from './interface';
export declare type DividerProps = Omit<MenuDividerType, 'type'>;
export type DividerProps = Omit<MenuDividerType, 'type'>;
export default function Divider({ className, style }: DividerProps): React.JSX.Element;

@@ -25,2 +25,3 @@ "use strict";

return /*#__PURE__*/React.createElement("li", {
role: "separator",
className: (0, _classnames.default)("".concat(prefixCls, "-item-divider"), className),

@@ -27,0 +28,0 @@ style: style

@@ -16,3 +16,3 @@ import Menu from './Menu';

export type { MenuProps, SubMenuProps, MenuItemProps, MenuItemGroupProps, MenuRef, };
declare type MenuType = typeof Menu & {
type MenuType = typeof Menu & {
Item: typeof MenuItem;

@@ -19,0 +19,0 @@ SubMenu: typeof SubMenu;

@@ -41,6 +41,6 @@ import type * as React from 'react';

}
export declare type ItemType = SubMenuType | MenuItemType | MenuItemGroupType | MenuDividerType | null;
export declare type MenuMode = 'horizontal' | 'vertical' | 'inline';
export declare type BuiltinPlacements = Record<string, any>;
export declare type TriggerSubMenuAction = 'click' | 'hover';
export type ItemType = SubMenuType | MenuItemType | MenuItemGroupType | MenuDividerType | null;
export type MenuMode = 'horizontal' | 'vertical' | 'inline';
export type BuiltinPlacements = Record<string, any>;
export type TriggerSubMenuAction = 'click' | 'hover';
export interface RenderIconInfo {

@@ -52,3 +52,3 @@ isSelected?: boolean;

}
export declare type RenderIconType = React.ReactNode | ((props: RenderIconInfo) => React.ReactNode);
export type RenderIconType = React.ReactNode | ((props: RenderIconInfo) => React.ReactNode);
export interface MenuInfo {

@@ -65,3 +65,3 @@ key: string;

}
export declare type MenuHoverEventHandler = (info: {
export type MenuHoverEventHandler = (info: {
key: string;

@@ -73,5 +73,5 @@ domEvent: React.MouseEvent<HTMLElement>;

}
export declare type SelectEventHandler = (info: SelectInfo) => void;
export declare type MenuClickEventHandler = (info: MenuInfo) => void;
export declare type MenuRef = {
export type SelectEventHandler = (info: SelectInfo) => void;
export type MenuClickEventHandler = (info: MenuInfo) => void;
export type MenuRef = {
/**

@@ -78,0 +78,0 @@ * Focus active child if any, or the first child which is not disabled will be focused.

@@ -48,5 +48,3 @@ "use strict";

* - collapsedWidth: Seems this logic should be handle by antd Layout.Sider
*/
// optimize for render
*/ // optimize for render
var EMPTY_LIST = [];

@@ -53,0 +51,0 @@ var Menu = /*#__PURE__*/React.forwardRef(function (props, ref) {

import * as React from 'react';
export declare function parseChildren(children: React.ReactNode | undefined, keyPath: string[]): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>[];
export declare function parseChildren(children: React.ReactNode | undefined, keyPath: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
import * as React from 'react';
import type { ItemType } from '../interface';
export declare function parseItems(children: React.ReactNode | undefined, items: ItemType[] | undefined, keyPath: string[]): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>[];
export declare function parseItems(children: React.ReactNode | undefined, items: ItemType[] | undefined, keyPath: string[]): React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
{
"name": "rc-menu",
"version": "9.11.0",
"version": "9.11.1",
"description": "menu ui component for react",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc