react-crud-mui 0.2.34 → 0.2.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,4 +10,5 @@ export { default as useValidationOptionsContext } from './useValidationOptionsCo
|
|
|
10
10
|
export { default as useArrayFieldHelpers } from './useArrayFieldHelpers';
|
|
11
11
|
export { default as useUniqueFieldsInArray } from './useUniqueFieldsInArray';
|
|
12
12
|
export { default as useFormInitEffect } from './useFormInitEffect';
|
|
13
|
+
export { default as useFieldWithContext } from './useFieldWithContext';
|
|
13
14
|
export { UNIQUE_IDENTIFIER_FIELD_NAME } from './useArrayFieldHelpers';
|
|
@@ -2,7 +2,7 @@ import { StackProps } from '@mui/material';
|
|
|
2
2
|
import { PanelSelectItemProps } from './PanelSelectItem';
|
|
3
3
|
export type PanelSelectData = {
|
|
4
4
|
value: string | number;
|
|
5
|
-
} & Pick<PanelSelectItemProps, 'deleteable' | 'helperText' | 'icon' | 'rightContent' | 'selectedIcon' | 'label' | 'sx'>;
|
|
5
|
+
} & Pick<PanelSelectItemProps, 'deleteable' | 'helperText' | 'icon' | 'rightContent' | 'selectedIcon' | 'label' | 'sx' | 'children'>;
|
|
6
6
|
export type PanelSelectSize = 'small' | 'normal' | 'large';
|
|
7
7
|
export type PanelSelectDirection = 'vertical' | 'horizontal';
|
|
8
8
|
export interface PanelSelectProps extends Omit<StackProps, 'onChange' | 'direction'> {
|
|
@@ -12,6 +12,7 @@ export interface PanelSelectItemProps {
|
|
|
12
12
|
onChange?: () => void;
|
|
13
13
|
onDelete?: () => void;
|
|
14
14
|
sx?: SxProps;
|
|
15
|
+
children?: React.ReactNode;
|
|
15
16
|
}
|
|
16
|
-
declare function PanelSelectItem({ deleteable, disabled, helperText, icon, label, onChange, onDelete, rightContent, selected, selectedIcon, sx, }: PanelSelectItemProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function PanelSelectItem({ deleteable, disabled, helperText, icon, label, onChange, onDelete, rightContent, selected, selectedIcon, sx, children, }: PanelSelectItemProps): import("react/jsx-runtime").JSX.Element;
|
|
17
18
|
export default PanelSelectItem;
|