@ehfuse/mui-form-controls 1.3.19 → 1.3.20
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/README.md +34 -0
- package/dist/SwitchField.d.ts +10 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +4 -4
- package/dist/types.d.ts +6 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ import type { StepperProps as MuiStepperProps } from "@mui/material/Stepper";
|
|
|
19
19
|
import type { AutocompleteProps as MuiAutocompleteProps } from "@mui/material/Autocomplete";
|
|
20
20
|
import type { SelectProps as MuiSelectProps, SelectChangeEvent } from "@mui/material/Select";
|
|
21
21
|
import type { FormControlProps } from "@mui/material/FormControl";
|
|
22
|
+
import type { FormControlLabelProps } from "@mui/material/FormControlLabel";
|
|
22
23
|
import type { InputBaseComponentProps } from "@mui/material/InputBase";
|
|
23
24
|
export type TextFieldProps = MuiTextFieldProps;
|
|
24
25
|
export type ButtonGroupProps = MuiButtonGroupProps;
|
|
@@ -66,6 +67,11 @@ export type SwitchProps = Omit<MuiSwitchProps, "checked" | "onChange" | "form">
|
|
|
66
67
|
label?: React.ReactNode;
|
|
67
68
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
68
69
|
};
|
|
70
|
+
export type SwitchFieldProps = Omit<SwitchProps, "label"> & {
|
|
71
|
+
label: React.ReactNode;
|
|
72
|
+
labelPlacement?: FormControlLabelProps["labelPlacement"];
|
|
73
|
+
sx?: SxProps<Theme>;
|
|
74
|
+
};
|
|
69
75
|
export type RadioOption = {
|
|
70
76
|
value: string;
|
|
71
77
|
label: React.ReactNode;
|