"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const dropdown_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Dropdown/dropdown"));
const dropdownConstants_1 = require("./dropdownConstants");
const DropdownWithContext_1 = require("./DropdownWithContext");
exports.Dropdown = (_a) => {
    var { onSelect, 
    // eslint-disable-next-line @typescript-eslint/no-unused-vars
    ref } = _a, // Types of Ref are different for React.FC vs React.Component
    props = tslib_1.__rest(_a, ["onSelect", "ref"]);
    return (React.createElement(dropdownConstants_1.DropdownContext.Provider, { value: {
            onSelect: event => onSelect && onSelect(event),
            toggleTextClass: dropdown_1.default.dropdownToggleText,
            toggleIconClass: dropdown_1.default.dropdownToggleImage,
            toggleIndicatorClass: dropdown_1.default.dropdownToggleIcon,
            menuClass: dropdown_1.default.dropdownMenu,
            itemClass: dropdown_1.default.dropdownMenuItem,
            toggleClass: dropdown_1.default.dropdownToggle,
            baseClass: dropdown_1.default.dropdown,
            baseComponent: 'div',
            sectionClass: dropdown_1.default.dropdownGroup,
            sectionTitleClass: dropdown_1.default.dropdownGroupTitle,
            sectionComponent: 'section',
            disabledClass: dropdown_1.default.modifiers.disabled,
            plainTextClass: dropdown_1.default.modifiers.text
        } },
        React.createElement(DropdownWithContext_1.DropdownWithContext, Object.assign({}, props))));
};
//# sourceMappingURL=Dropdown.js.map