Socket
Socket
Sign inDemoInstall

@rescui/dropdown-menu

Package Overview
Dependencies
33
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.5 to 0.4.0

14

lib/dropdown-menu.d.ts

@@ -13,4 +13,18 @@ import React from 'react';

activateFirstItemOnOpen?: boolean;
/**
* See [MDN spec](https://developer.mozilla.org/en-US/docs/Web/CSS/max-width).
* `trigger` is a special value that substitutes with trigger's width calculated on every dropdown position update
* @type 'trigger' | MinWidthProperty<string | number>;
* @default 316px
* */
minWidth?: DropdownProps['minWidth'];
/**
* See [MDN spec](https://developer.mozilla.org/en-US/docs/Web/CSS/min-width).
* `trigger` is a special value that substitutes with trigger's width calculated on every dropdown position update
* @type 'trigger' | MaxWidthProperty<string | number>;
* @default "389px"(s); "494px"(m,l)
* */
maxWidth?: DropdownProps['maxWidth'];
}
export declare const DropdownMenu: React.FC<DropdownMenuProps>;
export default DropdownMenu;

6

lib/dropdown-menu.js

@@ -11,3 +11,3 @@ import "core-js/modules/es.object.to-string.js";

var _excluded = ["maxVisibleItems", "size", "children", "iconPlacement", "itemTag", "tag", "theme", "mode", "activateFirstItemOnOpen", "wrapItemsWithLi"],
_excluded2 = ["minWidth", "maxWidth", "maxHeight", "leastMaxHeight"];
_excluded2 = ["maxHeight", "leastMaxHeight"];

@@ -55,5 +55,3 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

var minWidth = restProps.minWidth,
maxWidth = restProps.maxWidth,
cleanMaxHeight = restProps.maxHeight,
var cleanMaxHeight = restProps.maxHeight,
leastMaxHeight = restProps.leastMaxHeight,

@@ -60,0 +58,0 @@ cleanedRestProps = _objectWithoutProperties(restProps, _excluded2); // cast to make runtime omit

var styles = {
"sizeS": "_sizeS_168hk3v_8",
"sizeL": "_sizeL_168hk3v_13",
"sizeM": "_sizeM_168hk3v_14",
"menu": "_menu_168hk3v_19"
"sizeS": "_sizeS_adnxnl_8",
"sizeL": "_sizeL_adnxnl_13",
"sizeM": "_sizeM_adnxnl_14",
"menu": "_menu_adnxnl_19"
};
export { styles as default };
{
"name": "@rescui/dropdown-menu",
"version": "0.3.5",
"version": "0.4.0",
"description": "",

@@ -19,3 +19,3 @@ "license": "Apache-2.0",

"@babel/runtime-corejs3": "^7.11.0",
"@rescui/dropdown": "^0.3.5",
"@rescui/dropdown": "^0.3.6",
"@rescui/menu": "^0.7.1",

@@ -39,3 +39,3 @@ "classnames": "^2.2.6",

},
"gitHead": "171f3f3ab932e9819d381600180e5588790cdc53"
"gitHead": "aa6b3b338448baec01555e65c3f6499d37d66307"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc