1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.FormFieldGroupToggle = void 0;
|
4 | const tslib_1 = require("tslib");
|
5 | const React = tslib_1.__importStar(require("react"));
|
6 | const form_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Form/form"));
|
7 | const react_styles_1 = require("@patternfly/react-styles");
|
8 | const angle_right_icon_1 = tslib_1.__importDefault(require('@patternfly/react-icons/dist/js/icons/angle-right-icon'));
|
9 | const Button_1 = require("../Button");
|
10 | const FormFieldGroupToggle = (_a) => {
|
11 | var { className, onToggle, isExpanded, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, toggleId } = _a, props = tslib_1.__rest(_a, ["className", "onToggle", "isExpanded", 'aria-label', 'aria-labelledby', "toggleId"]);
|
12 | return (React.createElement("div", Object.assign({ className: react_styles_1.css(form_1.default.formFieldGroupToggle, className) }, props),
|
13 | React.createElement("div", { className: react_styles_1.css(form_1.default.formFieldGroupToggleButton) },
|
14 | React.createElement(Button_1.Button, { variant: "plain", "aria-label": ariaLabel, onClick: onToggle, "aria-expanded": isExpanded, "aria-labelledby": ariaLabelledby, id: toggleId },
|
15 | React.createElement("span", { className: react_styles_1.css(form_1.default.formFieldGroupToggleIcon) },
|
16 | React.createElement(angle_right_icon_1.default, { "aria-hidden": "true" }))))));
|
17 | };
|
18 | exports.FormFieldGroupToggle = FormFieldGroupToggle;
|
19 | exports.FormFieldGroupToggle.displayName = 'FormFieldGroupToggle';
|
20 |
|
\ | No newline at end of file |