react-crud-mui 0.2.13 → 0.2.15

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.
@@ -409,7 +409,7 @@ declare function useDetailPageModal<TModel extends FieldValues>({ models, unique
409
409
  readonly headerProps?: import('@mui/material').BoxProps;
410
410
  readonly moreOptions?: import('../../..').MoreButtonProps["options"];
411
411
  readonly useHeaderIconWrapper?: boolean;
412
- readonly tabs?: import('../../page/components/DefaultTabs').TabPane[];
412
+ readonly tabs?: import('../../..').TabPane[];
413
413
  readonly error?: import('../../utils').ServerError;
414
414
  readonly footerContent?: import('react').ReactNode;
415
415
  readonly moreContent?: import('react').ReactNode;
@@ -1,8 +1,10 @@
1
- import { default as React, PropsWithChildren } from 'react';
1
+ import { default as React, PropsWithChildren, ReactNode } from 'react';
2
2
  import { StackProps } from '@mui/material/Stack';
3
3
  export interface MorePanelProps extends StackProps {
4
4
  initialVisibility?: boolean;
5
5
  extraContent?: React.ReactNode;
6
+ moreText?: ReactNode;
7
+ lessText?: ReactNode;
6
8
  }
7
- declare function MorePanel({ children, initialVisibility, extraContent, ...boxProps }: PropsWithChildren<MorePanelProps>): import("react/jsx-runtime").JSX.Element;
9
+ declare function MorePanel({ children, initialVisibility, extraContent, moreText, lessText, ...boxProps }: PropsWithChildren<MorePanelProps>): import("react/jsx-runtime").JSX.Element;
8
10
  export default MorePanel;
@@ -3,7 +3,7 @@ import { UsePhoneInputConfig } from 'react-international-phone';
3
3
  import { BaseTextFieldProps } from '@mui/material/TextField';
4
4
  export interface PhoneInputProps extends BaseTextFieldProps {
5
5
  value?: string;
6
- onChange?: (phone: string) => void;
6
+ onChange?: UsePhoneInputConfig['onChange'];
7
7
  phoneInputconfig?: UsePhoneInputConfig;
8
8
  getRef?: React.MutableRefObject<typeof PhoneInput>;
9
9
  }
@@ -4,6 +4,7 @@ export type SidePanelItem = {
4
4
  key: string;
5
5
  name: React.ReactNode;
6
6
  icon?: React.ReactNode;
7
+ endIcon?: React.ReactNode;
7
8
  };
8
9
  export interface SidePanelProps extends BoxProps {
9
10
  items: SidePanelItem[];