@pdg/react-form 1.0.78 → 1.0.80
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/@private/PrivateMonthPicker/PrivateMonthPickerMonth/PrivateMonthPickerMonth.types.d.ts +1 -0
- package/dist/@private/PrivateMonthRangePicker/PrivateMonthRangePicker.style.d.ts +34 -0
- package/dist/@private/PrivateYearPicker/PrivateYearPickerYear/PrivateYearPickerYear.types.d.ts +1 -0
- package/dist/@private/PrivateYearRangePicker/PrivateYearRangePicker.style.d.ts +34 -0
- package/dist/Form/Form.types.d.ts +1 -0
- package/dist/FormContext/FormContext.types.d.ts +1 -0
- package/dist/FormItemCustom/FormDateRangePicker/FormDateRangePicker.types.d.ts +4 -4
- package/dist/FormItemCustom/FormMonthRangePicker/FormMonthRangePicker.types.d.ts +4 -4
- package/dist/FormItemCustom/FormYearRangePicker/FormYearRangePicker.types.d.ts +4 -4
- package/dist/index.esm.js +232 -187
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +232 -187
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -15,3 +15,37 @@ export declare const StyledDiv: import("@emotion/styled").StyledComponent<import
|
|
|
15
15
|
} & import("@mui/material").RegularBreakpoints & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
16
16
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
17
17
|
}, keyof import("@mui/material/OverridableComponent").CommonProps | "direction" | "columns" | "container" | ("border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform") | "wrap" | "children" | "columnSpacing" | "item" | "rowSpacing" | "spacing" | "sx" | "zeroMinWidth" | keyof import("@mui/material").RegularBreakpoints> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
18
|
+
export declare const StyledActionContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
|
+
export declare const StyledActionButton: import("@emotion/styled").StyledComponent<{
|
|
20
|
+
children?: import("react").ReactNode;
|
|
21
|
+
classes?: Partial<import("@mui/material").ButtonClasses> | undefined;
|
|
22
|
+
color?: "inherit" | "primary" | "secondary" | "success" | "error" | "info" | "warning" | undefined;
|
|
23
|
+
disabled?: boolean | undefined;
|
|
24
|
+
disableElevation?: boolean | undefined;
|
|
25
|
+
disableFocusRipple?: boolean | undefined;
|
|
26
|
+
endIcon?: import("react").ReactNode;
|
|
27
|
+
fullWidth?: boolean | undefined;
|
|
28
|
+
href?: string | undefined;
|
|
29
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
30
|
+
startIcon?: import("react").ReactNode;
|
|
31
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
32
|
+
variant?: "text" | "outlined" | "contained" | undefined;
|
|
33
|
+
} & Omit<{
|
|
34
|
+
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
35
|
+
centerRipple?: boolean | undefined;
|
|
36
|
+
children?: import("react").ReactNode;
|
|
37
|
+
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
38
|
+
disabled?: boolean | undefined;
|
|
39
|
+
disableRipple?: boolean | undefined;
|
|
40
|
+
disableTouchRipple?: boolean | undefined;
|
|
41
|
+
focusRipple?: boolean | undefined;
|
|
42
|
+
focusVisibleClassName?: string | undefined;
|
|
43
|
+
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
44
|
+
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
45
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
46
|
+
tabIndex?: number | undefined;
|
|
47
|
+
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
48
|
+
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
49
|
+
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
50
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
51
|
+
}, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "tabIndex" | "children" | "sx" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -3,3 +3,37 @@ export declare const StyledTitleContainer: import("@emotion/styled").StyledCompo
|
|
|
3
3
|
export declare const StyledYear: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
4
4
|
export declare const StyledYearError: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
5
5
|
export declare const StyledTitleGap: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
6
|
+
export declare const StyledActionContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
+
export declare const StyledActionButton: import("@emotion/styled").StyledComponent<{
|
|
8
|
+
children?: import("react").ReactNode;
|
|
9
|
+
classes?: Partial<import("@mui/material").ButtonClasses> | undefined;
|
|
10
|
+
color?: "inherit" | "primary" | "secondary" | "success" | "error" | "info" | "warning" | undefined;
|
|
11
|
+
disabled?: boolean | undefined;
|
|
12
|
+
disableElevation?: boolean | undefined;
|
|
13
|
+
disableFocusRipple?: boolean | undefined;
|
|
14
|
+
endIcon?: import("react").ReactNode;
|
|
15
|
+
fullWidth?: boolean | undefined;
|
|
16
|
+
href?: string | undefined;
|
|
17
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
18
|
+
startIcon?: import("react").ReactNode;
|
|
19
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
20
|
+
variant?: "text" | "outlined" | "contained" | undefined;
|
|
21
|
+
} & Omit<{
|
|
22
|
+
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
23
|
+
centerRipple?: boolean | undefined;
|
|
24
|
+
children?: import("react").ReactNode;
|
|
25
|
+
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
26
|
+
disabled?: boolean | undefined;
|
|
27
|
+
disableRipple?: boolean | undefined;
|
|
28
|
+
disableTouchRipple?: boolean | undefined;
|
|
29
|
+
focusRipple?: boolean | undefined;
|
|
30
|
+
focusVisibleClassName?: string | undefined;
|
|
31
|
+
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
32
|
+
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
33
|
+
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
34
|
+
tabIndex?: number | undefined;
|
|
35
|
+
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
36
|
+
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
37
|
+
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
38
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
39
|
+
}, "color" | keyof import("@mui/material/OverridableComponent").CommonProps | "tabIndex" | "children" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -11,6 +11,7 @@ export interface FormProps extends CommonSxProps, PartialPick<FormControlProps,
|
|
|
11
11
|
fullWidth?: boolean;
|
|
12
12
|
fullHeight?: boolean;
|
|
13
13
|
formColGap?: number;
|
|
14
|
+
disabled?: boolean;
|
|
14
15
|
onSubmit?(data: FormValueMap): void;
|
|
15
16
|
onInvalid?(invalidItems: FormInvalidItems): void;
|
|
16
17
|
onValueChange?(name: string, value: any): void;
|
|
@@ -3,6 +3,7 @@ import { FormProps } from '../Form/Form.types';
|
|
|
3
3
|
export interface FormContextValue<T = any, AllowUndefinedValue extends boolean = true> extends PartialPick<FormProps, 'variant' | 'size' | 'color' | 'spacing' | 'formColGap' | 'focused' | 'labelShrink' | 'fullWidth'> {
|
|
4
4
|
id: string;
|
|
5
5
|
fullHeight?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
6
7
|
onAddValueItem(id: string, commands: FormValueItemCommands<T, AllowUndefinedValue>): void;
|
|
7
8
|
onRemoveValueItem(id: string): void;
|
|
8
9
|
onValueChange(name: string, value: T): void;
|
|
@@ -8,10 +8,10 @@ export type FormDateRangePickerDateValue = FormDateRangePickerTooltipPickerDateV
|
|
|
8
8
|
export type FormDateRangePickerValue = [FormDateRangePickerDateValue, FormDateRangePickerDateValue];
|
|
9
9
|
export type FormDateRangePickerCalendarCount = FormDateRangePickerTooltipPickerContainerCalendarCount;
|
|
10
10
|
export interface FormDateRangePickerProps extends CommonSxProps, Omit<FormValueItemProps<FormDateRangePickerValue, false>, 'label' | 'labelIcon' | 'width'>, Pick<PrivateInputDatePickerProps, 'align'> {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
fromLabel?: ReactNode;
|
|
12
|
+
fromLabelIcon?: string;
|
|
13
|
+
toLabel?: ReactNode;
|
|
14
|
+
toLabelIcon?: string;
|
|
15
15
|
allowSingleSelect?: boolean;
|
|
16
16
|
required?: boolean;
|
|
17
17
|
requiredStart?: boolean;
|
|
@@ -5,10 +5,10 @@ import { PrivateInputDatePickerProps, PrivateMonthRangePickerBaseValue, PrivateM
|
|
|
5
5
|
export type FormMonthRangePickerBaseValue = PrivateMonthRangePickerBaseValue;
|
|
6
6
|
export type FormMonthRangePickerValue = PrivateMonthRangePickerValue;
|
|
7
7
|
export interface FormMonthRangePickerProps extends CommonSxProps, Omit<FormValueItemProps<FormMonthRangePickerValue, false>, 'label' | 'labelIcon' | 'width'>, Pick<PrivateInputDatePickerProps, 'align'> {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
fromLabel?: ReactNode;
|
|
9
|
+
fromLabelIcon?: string;
|
|
10
|
+
toLabel?: ReactNode;
|
|
11
|
+
toLabelIcon?: string;
|
|
12
12
|
required?: boolean;
|
|
13
13
|
icon?: string;
|
|
14
14
|
format?: string;
|
|
@@ -5,10 +5,10 @@ import { PrivateInputDatePickerProps, PrivateYearRangePickerBaseValue, PrivateYe
|
|
|
5
5
|
export type FormYearRangePickerBaseValue = PrivateYearRangePickerBaseValue;
|
|
6
6
|
export type FormYearRangePickerValue = PrivateYearRangePickerValue;
|
|
7
7
|
export interface FormYearRangePickerProps extends CommonSxProps, Omit<FormValueItemProps<FormYearRangePickerValue, false>, 'label' | 'labelIcon' | 'width'>, Pick<PrivateInputDatePickerProps, 'align'> {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
fromLabel?: ReactNode;
|
|
9
|
+
fromLabelIcon?: string;
|
|
10
|
+
toLabel?: ReactNode;
|
|
11
|
+
toLabelIcon?: string;
|
|
12
12
|
required?: boolean;
|
|
13
13
|
icon?: string;
|
|
14
14
|
format?: string;
|