@clayui/autocomplete
Advanced tools
Comparing version 3.0.0-milestone.3 to 3.0.0
@@ -9,3 +9,3 @@ import DropDown from './DropDown'; | ||
} | ||
declare const ClayAutocomplete: React.FunctionComponent<IProps> & { | ||
declare type Autocomplete = React.ForwardRefExoticComponent<IProps> & { | ||
DropDown: typeof DropDown; | ||
@@ -16,2 +16,3 @@ Input: typeof Input; | ||
}; | ||
declare const ClayAutocomplete: Autocomplete; | ||
export default ClayAutocomplete; |
@@ -49,3 +49,3 @@ "use strict"; | ||
var ClayAutocomplete = function ClayAutocomplete(_ref2) { | ||
var ClayAutocomplete = _react.default.forwardRef(function (_ref2, _ref3) { | ||
var children = _ref2.children, | ||
@@ -66,3 +66,11 @@ className = _ref2.className, | ||
className: className, | ||
ref: containerElementRef | ||
ref: function ref(r) { | ||
containerElementRef.current = r; | ||
if (typeof _ref3 === 'function') { | ||
_ref3(r); | ||
} else if (_ref3 !== null) { | ||
_ref3.current = r; | ||
} | ||
} | ||
}), _react.default.createElement(_Context.default.Provider, { | ||
@@ -77,3 +85,3 @@ value: { | ||
}, children)); | ||
}; | ||
}); | ||
@@ -80,0 +88,0 @@ ClayAutocomplete.DropDown = _DropDown.default; |
@@ -39,4 +39,3 @@ "use strict"; | ||
innerRef: innerRef, | ||
ref: forwardRef, | ||
tabIndex: -1 | ||
ref: forwardRef | ||
}), match && fuzzyMatch ? _react.default.createElement("div", { | ||
@@ -43,0 +42,0 @@ dangerouslySetInnerHTML: { |
{ | ||
"name": "@clayui/autocomplete", | ||
"version": "3.0.0-milestone.3", | ||
"version": "3.0.0", | ||
"description": "ClayAutocomplete component", | ||
@@ -29,14 +29,13 @@ "license": "BSD-3-Clause", | ||
"dependencies": { | ||
"@clayui/drop-down": "^3.0.0-milestone.3", | ||
"@clayui/form": "^3.0.0-milestone.3", | ||
"@clayui/loading-indicator": "^3.0.0-milestone.3", | ||
"classnames": "^2.2.6", | ||
"@clayui/drop-down": "^3.0.0", | ||
"@clayui/form": "^3.0.0", | ||
"@clayui/loading-indicator": "^3.0.0", | ||
"fuzzy": "^0.1.3" | ||
}, | ||
"devDependencies": { | ||
"@clayui/css": "^3.0.0-milestone.3", | ||
"@clayui/data-provider": "^3.0.0-milestone.3", | ||
"@clayui/shared": "^3.0.0-milestone.3" | ||
"@clayui/data-provider": "^3.0.0", | ||
"@clayui/shared": "^3.0.1" | ||
}, | ||
"peerDependencies": { | ||
"@clayui/css": "3.x", | ||
"react": "^16.8.1", | ||
@@ -47,4 +46,3 @@ "react-dom": "^16.8.1" | ||
"extends browserslist-config-clay" | ||
], | ||
"gitHead": "e366fbb41e276e3da2fc8b0d48f0e12d8b2e3c14" | ||
] | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2
729
1
45059
22
- Removedclassnames@^2.2.6
Updated@clayui/drop-down@^3.0.0
Updated@clayui/form@^3.0.0