@carbon/ibm-products
Version:
Carbon for IBM Products
36 lines • 1.18 kB
TypeScript
/**
* 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 from 'react';
import PropTypes from 'prop-types';
import { Condition, PropertyConfigOption } from '../../ConditionBuilder.types';
interface ItemOptionForValueFieldProps {
conditionState: Condition & {
label?: string;
};
config: PropertyConfigOption['config'];
onChange: (value: any, e?: Event) => void;
closePopover?: () => void;
}
export declare const ItemOptionForValueField: {
({ conditionState, config, onChange, closePopover, }: ItemOptionForValueFieldProps): React.JSX.Element;
propTypes: {
/**
* current condition object
*/
conditionState: PropTypes.Requireable<object>;
/**
* current config object that this property is part of
*/
config: PropTypes.Requireable<object>;
/**
* callback to update state oin date change
*/
onChange: PropTypes.Requireable<(...args: any[]) => any>;
};
};
export {};
//# sourceMappingURL=ItemOptionForValueField.d.ts.map