@patterninc/react-ui
Advanced tools
Comparing version
import { NumericFormatProps } from 'react-number-format'; | ||
import { EmptyStateProps } from '../ComponentTypes.models'; | ||
/** Props interface for components that support disabling nested hierarchy behavior */ | ||
export interface IgnoreNodeHierarchyProps { | ||
/** Boolean value to indicate if the nested hierarchy is disabled */ | ||
ignoreNodeHierarchy?: boolean; | ||
} | ||
export interface GenericNode { | ||
@@ -40,3 +45,3 @@ [key: string]: string | number | null | NumericFormatProps | GenericNode[]; | ||
} | ||
export interface NestedCheckboxProps<DataItem> { | ||
export interface NestedCheckboxProps<DataItem> extends IgnoreNodeHierarchyProps { | ||
/** Data to be displayed in the nested component */ | ||
@@ -93,3 +98,3 @@ data: DataItem[]; | ||
} | ||
export declare const updateItemStates: <DataItem>(oldState: DateCheckState[], items: DataItem[], clickedId: string, idKey: keyof DataItem, parentKey: keyof DataItem) => { | ||
export declare const updateItemStates: <DataItem>(ignoreNodeHierarchy: boolean, oldState: DateCheckState[], items: DataItem[], clickedId: string, idKey: keyof DataItem, parentKey: keyof DataItem) => { | ||
id: string; | ||
@@ -96,0 +101,0 @@ state: CheckboxState; |
import React from 'react'; | ||
import { EmptyStateProps, SearchBarProps, type FormLabelProps } from '../../module'; | ||
import { type DateCheckState, type TableColumnConfigProps } from '../Form/NestedCheckboxHelper'; | ||
import { type DateCheckState, type TableColumnConfigProps, type IgnoreNodeHierarchyProps } from '../Form/NestedCheckboxHelper'; | ||
type DisabledItemsSection<DataItem> = { | ||
@@ -124,3 +124,3 @@ /** Hide Disabled items section */ | ||
}; | ||
}; | ||
} & IgnoreNodeHierarchyProps; | ||
}; | ||
@@ -127,0 +127,0 @@ export type MultiSelectProps<DataItem extends MultiSelectDataItemBase> = ExposedProps<DataItem> | StandardProps<DataItem> | NestedProps<DataItem>; |
import React from 'react'; | ||
import { type NestedCheckboxProps, GenericNode } from '../Form/NestedCheckboxHelper'; | ||
type TreeListBoxProps = NestedCheckboxProps<GenericNode>; | ||
declare function TreeListBox({ data, hasData, isLoading, tableConfig, noDataText, identifierKeys, isSearchable, customHeight, customWidth, onChange, setItemStates, itemStates, search, qaTestId, }: TreeListBoxProps): React.JSX.Element; | ||
declare function TreeListBox({ data, hasData, isLoading, tableConfig, noDataText, identifierKeys, isSearchable, customHeight, customWidth, onChange, setItemStates, itemStates, search, qaTestId, ignoreNodeHierarchy, }: TreeListBoxProps): React.JSX.Element; | ||
export default TreeListBox; |
{ | ||
"name": "@patterninc/react-ui", | ||
"version": "4.17.102", | ||
"version": "4.17.103", | ||
"license": "UNLICENSED", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.react-ui.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
22862982
0.01%10783
0.05%