/// export type CheckboxValueType = boolean | undefined | null; export interface CheckboxType { id: string | number; parentId: string | number | null; value?: CheckboxValueType; label?: string; children?: Array; level?: number; selectable?: boolean; tooltipText?: string | null; data?: any; } export interface CheckboxProps { /**Data for CheckboxTree * * CheckboxType * * { * * id: string | number; * * parentId: string | number |null; * * value?: CheckboxValueType; * * label?: string; * * children?: Array; * * level?: number; * * selectable?: boolean; * * tooltipText?: string | null; * * data?: any; * *} * * CheckboxValueType * * boolean | undefined | null * */ data: Array; /** Component id. */ id?: string; /** Whether or not item label is focusable. * * Default is false. * */ focusable?: boolean; /**Set tooltip place "Up" or "Down". * * Default is "Down" * */ tooltipPlace?: string; /**Item left padding size. * * Default is 10. * */ leftPadding?: number; /**Item custom CSS class.*/ itemClass?: string; /**Component custom CSS class. */ className?: string; /**Component custom style. */ style?: React.CSSProperties; /**Executes after item selection/unselection * @param { Array } options options data `Array` ` ` * * @param { CheckboxType } option selected option `CheckboxType` * */ onClick?: (options: Array, option: CheckboxType) => void; } export interface ItemMockType { id: string; parentId: null; value: false; } export interface AllSelectionType { id: string; parentId: null; value: CheckboxValueType; label: string; level: number; selectable: boolean; allOptions?: Array; data: Array; } export interface TooltipArrowStyleType { "--top"?: string; "--bottom"?: string; "--borderColor"?: string; } export interface InfoLabelStyleType { "--labelColor"?: string; "--labelCursor"?: string; "--hoveredLabelColor"?: string; } export interface LeftPaddingStyleType { "--leftPadding"?: string; }