1 | import { __rest } from "tslib";
|
2 | import * as React from 'react';
|
3 | import styles from '@patternfly/react-styles/css/components/Form/form';
|
4 | import { css } from '@patternfly/react-styles';
|
5 | import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon';
|
6 | import { Button } from '../Button';
|
7 | export const FormFieldGroupToggle = (_a) => {
|
8 | var { className, onToggle, isExpanded, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, toggleId } = _a, props = __rest(_a, ["className", "onToggle", "isExpanded", 'aria-label', 'aria-labelledby', "toggleId"]);
|
9 | return (React.createElement("div", Object.assign({ className: css(styles.formFieldGroupToggle, className) }, props),
|
10 | React.createElement("div", { className: css(styles.formFieldGroupToggleButton) },
|
11 | React.createElement(Button, { variant: "plain", "aria-label": ariaLabel, onClick: onToggle, "aria-expanded": isExpanded, "aria-labelledby": ariaLabelledby, id: toggleId },
|
12 | React.createElement("span", { className: css(styles.formFieldGroupToggleIcon) },
|
13 | React.createElement(AngleRightIcon, { "aria-hidden": "true" }))))));
|
14 | };
|
15 | FormFieldGroupToggle.displayName = 'FormFieldGroupToggle';
|
16 |
|
\ | No newline at end of file |