@uiw/react-select
Advanced tools
Comparing version 4.3.1 to 4.4.0
import React from 'react'; | ||
declare const Group: (props: React.InputHTMLAttributes<HTMLOptGroupElement>) => JSX.Element; | ||
export default Group; | ||
declare const _default: (props: React.InputHTMLAttributes<HTMLOptGroupElement>) => JSX.Element; | ||
export default _default; |
@@ -12,9 +12,8 @@ "use strict"; | ||
var Group = function Group(props) { | ||
var _default = function _default(props) { | ||
return /*#__PURE__*/_react.default.createElement("optgroup", props); | ||
}; | ||
var _default = Group; | ||
exports.default = _default; | ||
module.exports = exports.default; | ||
//# sourceMappingURL=Group.js.map |
@@ -9,7 +9,8 @@ import React from 'react'; | ||
} | ||
interface CompoundedComponent extends React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLUListElement>> { | ||
declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>; | ||
declare type Select = typeof Select & { | ||
Option: typeof Option; | ||
Group: typeof Group; | ||
} | ||
declare const Select: CompoundedComponent; | ||
export default Select; | ||
}; | ||
declare const _default: Select; | ||
export default _default; |
import React from 'react'; | ||
declare const Group: (props: React.InputHTMLAttributes<HTMLOptGroupElement>) => JSX.Element; | ||
export default Group; | ||
declare const _default: (props: React.InputHTMLAttributes<HTMLOptGroupElement>) => JSX.Element; | ||
export default _default; |
import React from 'react'; | ||
var Group = function Group(props) { | ||
export default (function (props) { | ||
return /*#__PURE__*/React.createElement("optgroup", props); | ||
}; | ||
export default Group; | ||
}); | ||
//# sourceMappingURL=Group.js.map |
@@ -9,7 +9,8 @@ import React from 'react'; | ||
} | ||
interface CompoundedComponent extends React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLUListElement>> { | ||
declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>>; | ||
declare type Select = typeof Select & { | ||
Option: typeof Option; | ||
Group: typeof Group; | ||
} | ||
declare const Select: CompoundedComponent; | ||
export default Select; | ||
}; | ||
declare const _default: Select; | ||
export default _default; |
{ | ||
"name": "@uiw/react-select", | ||
"version": "4.3.1", | ||
"version": "4.4.0", | ||
"description": "Select component", | ||
@@ -46,3 +46,3 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"dependencies": { | ||
"@uiw/utils": "^4.3.1", | ||
"@uiw/utils": "^4.4.0", | ||
"classnames": "2.2.6" | ||
@@ -59,3 +59,3 @@ }, | ||
}, | ||
"gitHead": "f469dd7fc4c211873d65efcc065e2d0de2c64fed" | ||
"gitHead": "efc1f4d8d93eb92af00649e92dd922b3074b0cab" | ||
} |
@@ -127,2 +127,5 @@ Select 选择器 | ||
const Option = Select.Option; | ||
const Group = Select.Group; | ||
const Demo = () => ( | ||
@@ -132,11 +135,11 @@ <Row> | ||
<Select defaultValue="w"> | ||
<Select.Option value="w">Choose an item...</Select.Option> | ||
<Select.Group label="Group 1"> | ||
<Select.Option value="1">One</Select.Option> | ||
<Select.Option value="2">Two</Select.Option> | ||
</Select.Group> | ||
<Select.Group label="Group 2"> | ||
<Select.Option value="3">Three</Select.Option> | ||
<Select.Option value="4">Four</Select.Option> | ||
</Select.Group> | ||
<Option value="w">Choose an item...</Option> | ||
<Group label="Group 1"> | ||
<Option value="1">One</Option> | ||
<Option value="2">Two</Option> | ||
</Group> | ||
<Group label="Group 2"> | ||
<Option value="3">Three</Option> | ||
<Option value="4">Four</Option> | ||
</Group> | ||
</Select> | ||
@@ -143,0 +146,0 @@ </Col> |
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
265
32460
252
Updated@uiw/utils@^4.4.0