Comparing version 9.8.2 to 9.8.3
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import type { MenuDividerType } from './interface'; | ||
export declare type DividerProps = Omit<MenuDividerType, 'type'>; | ||
export default function Divider({ className, style }: DividerProps): JSX.Element; |
@@ -45,3 +45,8 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
restProps = _objectWithoutProperties(_this$props, _excluded); | ||
var passedProps = omit(restProps, ['eventKey']); | ||
// Here the props are eventually passed to the DOM element. | ||
// React does not recognize non-standard attributes. | ||
// Therefore, remove the props that is not used here. | ||
// ref: https://github.com/ant-design/ant-design/issues/41395 | ||
var passedProps = omit(restProps, ['eventKey', 'popupClassName', 'popupOffset', 'onTitleClick']); | ||
warning(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.'); | ||
@@ -48,0 +53,0 @@ return /*#__PURE__*/React.createElement(Overflow.Item, _extends({}, attribute, { |
@@ -0,3 +1,4 @@ | ||
/// <reference types="react" /> | ||
import type { MenuDividerType } from './interface'; | ||
export declare type DividerProps = Omit<MenuDividerType, 'type'>; | ||
export default function Divider({ className, style }: DividerProps): JSX.Element; |
@@ -55,3 +55,8 @@ "use strict"; | ||
restProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded); | ||
var passedProps = (0, _omit.default)(restProps, ['eventKey']); | ||
// Here the props are eventually passed to the DOM element. | ||
// React does not recognize non-standard attributes. | ||
// Therefore, remove the props that is not used here. | ||
// ref: https://github.com/ant-design/ant-design/issues/41395 | ||
var passedProps = (0, _omit.default)(restProps, ['eventKey', 'popupClassName', 'popupOffset', 'onTitleClick']); | ||
(0, _warning.default)(!attribute, '`attribute` of Menu.Item is deprecated. Please pass attribute directly.'); | ||
@@ -58,0 +63,0 @@ return /*#__PURE__*/React.createElement(_rcOverflow.default.Item, (0, _extends2.default)({}, attribute, { |
{ | ||
"name": "rc-menu", | ||
"version": "9.8.2", | ||
"version": "9.8.3", | ||
"description": "menu ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
250660
5195