@uiw/react-select
Advanced tools
Comparing version 4.21.19 to 4.21.20
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"]; | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -9,9 +8,5 @@ value: true | ||
exports["default"] = void 0; | ||
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2")); | ||
var _react = _interopRequireDefault(require("react")); | ||
var _jsxRuntime = require("react/jsx-runtime"); | ||
var _default = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) { | ||
@@ -22,5 +17,4 @@ return /*#__PURE__*/(0, _jsxRuntime.jsx)("optgroup", (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, props), {}, { | ||
}); | ||
exports["default"] = _default; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=Group.js.map |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"]; | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -9,24 +8,16 @@ value: true | ||
exports["default"] = void 0; | ||
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2")); | ||
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties")); | ||
var _react = _interopRequireDefault(require("react")); | ||
var _Option = _interopRequireDefault(require("./Option")); | ||
var _Group = _interopRequireDefault(require("./Group")); | ||
var _jsxRuntime = require("react/jsx-runtime"); | ||
var _excluded = ["prefixCls", "className", "size"]; | ||
var InternalSelect = function InternalSelect(props, ref) { | ||
var _props$prefixCls = props.prefixCls, | ||
prefixCls = _props$prefixCls === void 0 ? 'w-select' : _props$prefixCls, | ||
className = props.className, | ||
_props$size = props.size, | ||
size = _props$size === void 0 ? 'default' : _props$size, | ||
other = (0, _objectWithoutProperties2["default"])(props, _excluded); | ||
prefixCls = _props$prefixCls === void 0 ? 'w-select' : _props$prefixCls, | ||
className = props.className, | ||
_props$size = props.size, | ||
size = _props$size === void 0 ? 'default' : _props$size, | ||
other = (0, _objectWithoutProperties2["default"])(props, _excluded); | ||
return /*#__PURE__*/(0, _jsxRuntime.jsx)("select", (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, other), {}, { | ||
@@ -37,5 +28,3 @@ ref: ref, | ||
}; | ||
var Select = /*#__PURE__*/_react["default"].forwardRef(InternalSelect); | ||
Select.Option = _Option["default"]; | ||
@@ -42,0 +31,0 @@ Select.Group = _Group["default"]; |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"]; | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -9,9 +8,5 @@ value: true | ||
exports["default"] = void 0; | ||
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2")); | ||
var _react = _interopRequireDefault(require("react")); | ||
var _jsxRuntime = require("react/jsx-runtime"); | ||
var _default = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) { | ||
@@ -22,5 +17,4 @@ return /*#__PURE__*/(0, _jsxRuntime.jsx)("option", (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, props), {}, { | ||
}); | ||
exports["default"] = _default; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=Option.js.map |
@@ -9,11 +9,9 @@ import _extends from "@babel/runtime/helpers/extends"; | ||
import { jsx as _jsx } from "react/jsx-runtime"; | ||
var InternalSelect = (props, ref) => { | ||
var { | ||
prefixCls = 'w-select', | ||
className, | ||
size = 'default' | ||
} = props, | ||
other = _objectWithoutPropertiesLoose(props, _excluded); | ||
prefixCls = 'w-select', | ||
className, | ||
size = 'default' | ||
} = props, | ||
other = _objectWithoutPropertiesLoose(props, _excluded); | ||
return /*#__PURE__*/_jsx("select", _extends({}, other, { | ||
@@ -24,3 +22,2 @@ ref: ref, | ||
}; | ||
var Select = /*#__PURE__*/React.forwardRef(InternalSelect); | ||
@@ -27,0 +24,0 @@ Select.Option = Option; |
{ | ||
"name": "@uiw/react-select", | ||
"version": "4.21.19", | ||
"version": "4.21.20", | ||
"description": "Select component", | ||
@@ -47,4 +47,4 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"dependencies": { | ||
"@uiw/utils": "^4.21.19" | ||
"@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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
34439
Updated@uiw/utils@^4.21.20