/** * Copyright IBM Corp. 2024 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React, { PropsWithChildren, ReactNode, Ref } from 'react'; import PropTypes from 'prop-types'; import { CarbonIconType } from '@carbon/react/icons'; import { Condition, Action, Option, ConfigType } from '../ConditionBuilder.types'; interface ConditionBuilderItemProps extends PropsWithChildren { className?: string; label?: string | Option | Option[]; renderIcon?: CarbonIconType; title?: string; showToolTip?: boolean; popOverClassName?: string; type?: string; description?: string; condition?: Action & Condition; config?: ConfigType; renderChildren?: (ref: Ref, closePopover: () => void) => ReactNode; onChange?: (val: string) => void; tabIndex?: number; onMouseEnter?: (e: React.MouseEvent) => void; onMouseLeave?: (e: React.MouseEvent) => void; onFocus?: React.FocusEventHandler; onBlur?: React.FocusEventHandler; } export declare const ConditionBuilderItem: { ({ children, className, label, renderIcon, title, type, showToolTip, condition, popOverClassName, config, renderChildren, onChange, description, ...rest }: ConditionBuilderItemProps): React.JSX.Element; propTypes: { /** * provide the contents of the popover */ children: PropTypes.Requireable; /** * Provide an optional class to be applied to the containing node. */ className: PropTypes.Requireable; /** * current condition state object */ condition: PropTypes.Requireable; /** * this is the config object again the current property from inputConfig */ config: PropTypes.Requireable; /** * text to be displayed in the field */ label: PropTypes.Requireable>; /** * callback to update the current condition of the state tree */ onChange: PropTypes.Requireable<(...args: any[]) => any>; /** * class name for popover */ popOverClassName: PropTypes.Requireable; /** * callback prop that returns the jsx for children */ renderChildren: PropTypes.Requireable<(...args: any[]) => any>; /** * Optional prop to allow overriding the icon rendering. */ renderIcon: PropTypes.Requireable; /** * show tool tip */ showToolTip: PropTypes.Requireable; /** * title of the popover */ title: PropTypes.Requireable; /** * input type */ type: PropTypes.Requireable; }; }; export {}; //# sourceMappingURL=ConditionBuilderItem.d.ts.map