import * as tslib_1 from "tslib";
import React from 'react';
import classnames from 'classnames';
var defaultProps = {
    inside: false,
    prefixCls: 'ty-input-group',
    disabled: false,
    size: 'md',
};
var InputGroup = function (props) {
    var disabled = props.disabled, size = props.size, prefixCls = props.prefixCls, className = props.className, style = props.style, children = props.children;
    var cls = classnames(prefixCls, className);
    return (React.createElement("div", { className: cls, style: style }, React.Children.map(children, function (child) {
        var childProps = tslib_1.__assign({}, child.props, { disabled: disabled,
            size: size });
        return React.cloneElement(child, childProps);
    })));
};
InputGroup.defaultProps = defaultProps;
export default InputGroup;
//# sourceMappingURL=input-group.js.map