Repository URL to install this package:
|
Version:
2.1.16 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const fixture_1 = require("./fixture");
const styled_1 = require("./styled");
/**
* @fixme @invalid @todo this belong in elemnts
*
* Updating the arrow icon
*/
const renderArrowIcon = () => react_1.default.createElement(styled_1.StyledMaterialIcon, {
type: "arrow_drop_down"
});
class DarkSelectDropDown extends react_1.default.Component {
render() {
const {
className
} = this.props;
return react_1.default.createElement(styled_1.DarkSelectDropDownStyle, Object.assign({
className: className,
renderActiveAfterText: renderArrowIcon
}, this.props));
}
}
DarkSelectDropDown.defaultProps = {
className: '',
options: fixture_1.list
};
exports.DarkSelectDropDown = DarkSelectDropDown;
exports.default = DarkSelectDropDown;