@carbon/ibm-products
Version:
Carbon for IBM Products
52 lines (51 loc) • 1.45 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 { ConditionGroup } from '../ConditionBuilder.types';
/**
*
* state - this is the current group that is being rendered . This can be a inner group or outer group
* All the inner components of group are called from here.
* @returns
*/
interface ConditionGroupBuilderProps {
group: ConditionGroup;
onRemove: (e: Event) => void;
onChange: (group: ConditionGroup) => void;
className?: string;
aria: {
level: number;
posinset: number;
setsize: number;
};
}
declare const ConditionGroupBuilder: {
({ group, aria, onRemove, onChange, className, }: ConditionGroupBuilderProps): React.JSX.Element;
propTypes: {
/**
* object contains the aria attributes
*/
aria: any;
/**
* state defines the current group
*/
/**
* Provide an optional class to be applied to the containing node.
*/
className: any;
group: any;
/**
* callback to update the current condition of the state tree
*/
onChange: any;
/**
* call back to remove the particular group from the state tree
*/
onRemove: any;
};
};
export default ConditionGroupBuilder;