react-crud-mui 0.2.30 → 0.2.31
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.
- package/dist/components/form/Field.d.ts +4 -3
- package/dist/components/tag/Tag.d.ts +3 -2
- package/dist/components/tag/styles.d.ts +7 -1
- package/dist/coreui.js +2667 -2596
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { ControllerFieldState, ControllerRenderProps, FieldValues, Path, UseControllerProps } from 'react-hook-form';
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { ControllerFieldState, ControllerRenderProps, FieldValues, Mode, Path, UseControllerProps } from 'react-hook-form';
|
|
3
3
|
import { default as FieldGroupProvider } from './components/FieldGroupProvider';
|
|
4
4
|
import { default as FieldWatch } from './components/FieldWatch';
|
|
5
5
|
import { default as FormButton } from './components/FormButton';
|
|
@@ -30,11 +30,12 @@ export type FieldProps<TFieldValues extends FieldValues = FieldValues> = Omit<Us
|
|
|
30
30
|
children?: FieldRender<TFieldValues>;
|
|
31
31
|
disabled?: boolean;
|
|
32
32
|
formControlProps?: FormControlProps;
|
|
33
|
+
validationMode?: Mode;
|
|
33
34
|
};
|
|
34
35
|
/**
|
|
35
36
|
* This components integrates react-hook-form
|
|
36
37
|
*/
|
|
37
|
-
declare function Field<TFieldValues extends FieldValues = FieldValues>({ children, control, defaultValue, disabled: fieldDisabled, name, render, rules, shouldUnregister, formControlProps, }: FieldProps<TFieldValues>): string | number | boolean | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
38
|
+
declare function Field<TFieldValues extends FieldValues = FieldValues>({ children, control, defaultValue, disabled: fieldDisabled, name, render, rules, validationMode, shouldUnregister, formControlProps, }: FieldProps<TFieldValues>): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
38
39
|
declare namespace Field {
|
|
39
40
|
var Input: typeof FormInput;
|
|
40
41
|
var MaskedInput: typeof FormMaskedInput;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { BoxProps } from '@mui/material/Box';
|
|
3
|
-
export type Type = '
|
|
3
|
+
export type Type = 'success' | 'primary' | 'error' | 'warning';
|
|
4
4
|
export interface TagProps extends PropsWithChildren, BoxProps {
|
|
5
5
|
type?: Type;
|
|
6
6
|
ellipsis?: boolean;
|
|
7
|
+
variant?: 'status' | 'tag' | 'percentage';
|
|
7
8
|
}
|
|
8
|
-
export default function Tag({ children, type, ellipsis, ...props }: TagProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default function Tag({ children, variant, type, ellipsis, ...props }: TagProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { Type } from './Tag';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const StyledTag: import('@emotion/styled').StyledComponent<import('../typography').Props & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
3
|
+
type: Type;
|
|
4
|
+
}, {}, {}>;
|
|
5
|
+
export declare const StyledStatus: import('@emotion/styled').StyledComponent<import('../typography').Props & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
6
|
+
type: Type;
|
|
7
|
+
}, {}, {}>;
|
|
8
|
+
export declare const StyledPercentage: import('@emotion/styled').StyledComponent<import('../typography').Props & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
3
9
|
type: Type;
|
|
4
10
|
}, {}, {}>;
|