@ehfuse/mui-form-controls 1.2.2 → 1.3.0

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/types.d.ts CHANGED
@@ -12,11 +12,16 @@ import type { CheckboxProps as MuiCheckboxProps } from "@mui/material/Checkbox";
12
12
  import type { SwitchProps as MuiSwitchProps } from "@mui/material/Switch";
13
13
  import type { RadioGroupProps as MuiRadioGroupProps } from "@mui/material/RadioGroup";
14
14
  import type { SliderProps as MuiSliderProps } from "@mui/material/Slider";
15
+ import type { RatingProps as MuiRatingProps } from "@mui/material/Rating";
16
+ import type { ToggleButtonProps as MuiToggleButtonProps } from "@mui/material/ToggleButton";
17
+ import type { ButtonGroupProps as MuiButtonGroupProps } from "@mui/material/ButtonGroup";
18
+ import type { StepperProps as MuiStepperProps } from "@mui/material/Stepper";
15
19
  import type { AutocompleteProps as MuiAutocompleteProps } from "@mui/material/Autocomplete";
16
20
  import type { SelectProps as MuiSelectProps, SelectChangeEvent } from "@mui/material/Select";
17
21
  import type { FormControlProps } from "@mui/material/FormControl";
18
22
  import type { InputBaseComponentProps } from "@mui/material/InputBase";
19
23
  export type TextFieldProps = MuiTextFieldProps;
24
+ export type ButtonGroupProps = MuiButtonGroupProps;
20
25
  export type PopoverOrigin = {
21
26
  vertical: "top" | "center" | "bottom";
22
27
  horizontal: "left" | "center" | "right";
@@ -96,6 +101,17 @@ export type SliderProps = Omit<MuiSliderProps, "value" | "onChange" | "form"> &
96
101
  value?: number | number[];
97
102
  onChange?: (event: Event, value: number | number[]) => void;
98
103
  };
104
+ export type RatingProps = Omit<MuiRatingProps, "value" | "onChange" | "readOnly" | "form"> & BaseTextFieldProps & {
105
+ name?: string;
106
+ value?: number | null;
107
+ onChange?: (event: React.SyntheticEvent, value: number | null) => void;
108
+ };
109
+ export type ToggleButtonProps = Omit<MuiToggleButtonProps, "value" | "onChange" | "selected" | "form" | "name"> & BaseTextFieldProps & {
110
+ name?: string;
111
+ value?: any;
112
+ selected?: boolean;
113
+ onChange?: (event: React.MouseEvent<HTMLElement>, value: any) => void;
114
+ };
99
115
  export type AutocompleteOption = {
100
116
  value: string | number;
101
117
  label: string;
@@ -147,6 +163,12 @@ export type SelectProps = Omit<MuiSelectProps, "value" | "onChange" | "defaultVa
147
163
  formControlProps?: Omit<FormControlProps, "children">;
148
164
  name?: string;
149
165
  };
166
+ export type StepperProps = Omit<MuiStepperProps, "activeStep"> & BaseTextFieldProps & {
167
+ name?: string;
168
+ activeStep?: number;
169
+ defaultActiveStep?: number;
170
+ onStepChange?: (step: number) => void;
171
+ };
150
172
  export type { SelectChangeEvent };
151
173
  /**
152
174
  * 유효성 검사 기능을 가진 TextField 공통 Props
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ehfuse/mui-form-controls",
3
- "version": "1.2.2",
3
+ "version": "1.3.0",
4
4
  "description": "Material-UI form controls and text fields for complex forms",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -71,8 +71,10 @@
71
71
  "@emotion/styled": "^11.0.0",
72
72
  "@mui/icons-material": "^5.0.0 || ^6.0.0 || ^7.0.0",
73
73
  "@mui/material": "^5.0.0 || ^6.0.0 || ^7.0.0",
74
+ "@base-ui/react": "^1.1.0",
74
75
  "react": "^18.0.0 || ^19.0.0",
75
76
  "react-daum-postcode": "^3.0.0",
76
77
  "react-dom": "^18.0.0 || ^19.0.0"
77
- }
78
+ },
79
+ "dependencies": {}
78
80
  }