Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uiw/react-dropdown

Package Overview
Dependencies
Maintainers
2
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-dropdown - npm Package Compare versions

Comparing version 4.21.19 to 4.21.20

26

cjs/index.js
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard")["default"];
Object.defineProperty(exports, "__esModule", {

@@ -11,25 +9,18 @@ value: true

exports["default"] = Dropdown;
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
var _react = _interopRequireWildcard(require("react"));
var _reactOverlayTrigger = _interopRequireDefault(require("@uiw/react-overlay-trigger"));
var _jsxRuntime = require("react/jsx-runtime");
var _excluded = ["prefixCls", "placement", "className", "menu", "children", "disabled"];
function Dropdown(props) {
var _props$prefixCls = props.prefixCls,
prefixCls = _props$prefixCls === void 0 ? 'w-dropdown' : _props$prefixCls,
_props$placement = props.placement,
placement = _props$placement === void 0 ? 'bottomLeft' : _props$placement,
className = props.className,
menu = props.menu,
children = props.children,
disabled = props.disabled,
other = (0, _objectWithoutProperties2["default"])(props, _excluded);
prefixCls = _props$prefixCls === void 0 ? 'w-dropdown' : _props$prefixCls,
_props$placement = props.placement,
placement = _props$placement === void 0 ? 'bottomLeft' : _props$placement,
className = props.className,
menu = props.menu,
children = props.children,
disabled = props.disabled,
other = (0, _objectWithoutProperties2["default"])(props, _excluded);
var cls = (0, _react.useMemo)(function () {

@@ -49,4 +40,3 @@ return [prefixCls, className].filter(Boolean).join(' ').trim();

}
module.exports = exports.default;
//# sourceMappingURL=index.js.map

@@ -10,11 +10,10 @@ import _extends from "@babel/runtime/helpers/extends";

var {
prefixCls = 'w-dropdown',
placement = 'bottomLeft',
className,
menu,
children,
disabled
} = props,
other = _objectWithoutPropertiesLoose(props, _excluded);
prefixCls = 'w-dropdown',
placement = 'bottomLeft',
className,
menu,
children,
disabled
} = props,
other = _objectWithoutPropertiesLoose(props, _excluded);
var cls = useMemo(() => [prefixCls, className].filter(Boolean).join(' ').trim(), [prefixCls, className]);

@@ -21,0 +20,0 @@ return /*#__PURE__*/_jsx(OverlayTrigger, _extends({

{
"name": "@uiw/react-dropdown",
"version": "4.21.19",
"version": "4.21.20",
"description": "Dropdown component",

@@ -47,5 +47,5 @@ "author": "Kenny Wong <wowohoo@qq.com>",

"dependencies": {
"@uiw/react-overlay-trigger": "^4.21.19",
"@uiw/utils": "^4.21.19"
"@uiw/react-overlay-trigger": "^4.21.20",
"@uiw/utils": "^4.21.20"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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