@uiw/react-dropdown
Advanced tools
Comparing version 4.21.19 to 4.21.20
"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
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
16885
Updated@uiw/utils@^4.21.20