@me1a/ui 1.1.2 → 1.2.2
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/example/example/index.d.ts +1 -0
- package/dist/example/example/simple.d.ts +4 -0
- package/dist/example/hook-forms/form-provider.d.ts +8 -0
- package/dist/example/hook-forms/index.d.ts +11 -0
- package/dist/example/hook-forms/rhf-autocomplete.d.ts +11 -0
- package/dist/example/hook-forms/rhf-checkbox.d.ts +19 -0
- package/dist/example/hook-forms/rhf-radio-group.d.ts +13 -0
- package/dist/example/hook-forms/rhf-select.d.ts +11 -0
- package/dist/example/hook-forms/rhf-slider.d.ts +7 -0
- package/dist/example/hook-forms/rhf-switch.d.ts +7 -0
- package/dist/example/hook-forms/rhf-text-field.d.ts +6 -0
- package/dist/example/index.cjs.js +1381 -0
- package/dist/example/index.cjs.js.map +1 -0
- package/dist/example/index.d.ts +2 -0
- package/dist/example/index.es.js +1379 -0
- package/dist/example/index.es.js.map +1 -0
- package/dist/example/simple.d.ts +4 -0
- package/dist/hook-forms/example/index.d.ts +1 -0
- package/dist/hook-forms/example/simple.d.ts +4 -0
- package/dist/hook-forms/form-provider.d.ts +8 -0
- package/dist/hook-forms/hook-forms/form-provider.d.ts +8 -0
- package/dist/hook-forms/hook-forms/index.d.ts +11 -0
- package/dist/hook-forms/hook-forms/rhf-autocomplete.d.ts +11 -0
- package/dist/hook-forms/hook-forms/rhf-checkbox.d.ts +19 -0
- package/dist/hook-forms/hook-forms/rhf-radio-group.d.ts +13 -0
- package/dist/hook-forms/hook-forms/rhf-select.d.ts +11 -0
- package/dist/hook-forms/hook-forms/rhf-slider.d.ts +7 -0
- package/dist/hook-forms/hook-forms/rhf-switch.d.ts +7 -0
- package/dist/hook-forms/hook-forms/rhf-text-field.d.ts +6 -0
- package/dist/hook-forms/index.cjs.js +30012 -0
- package/dist/hook-forms/index.cjs.js.map +1 -0
- package/dist/hook-forms/index.d.ts +2 -0
- package/dist/hook-forms/index.es.js +29971 -0
- package/dist/hook-forms/index.es.js.map +1 -0
- package/dist/hook-forms/rhf-autocomplete.d.ts +11 -0
- package/dist/hook-forms/rhf-checkbox.d.ts +19 -0
- package/dist/hook-forms/rhf-radio-group.d.ts +13 -0
- package/dist/hook-forms/rhf-select.d.ts +11 -0
- package/dist/hook-forms/rhf-slider.d.ts +7 -0
- package/dist/hook-forms/rhf-switch.d.ts +7 -0
- package/dist/hook-forms/rhf-text-field.d.ts +6 -0
- package/dist/index.cjs.js +7843 -5144
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -74
- package/dist/index.es.js +7837 -5141
- package/dist/index.es.js.map +1 -1
- package/package.json +23 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,74 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export * from
|
|
3
|
-
export { FormProvider as FormProviderController } from 'react-hook-form';
|
|
4
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import { SxProps, Theme } from '@mui/material/styles';
|
|
6
|
-
import { TextFieldProps } from '@mui/material/TextField';
|
|
7
|
-
import { FormControlLabelProps } from '@mui/material/FormControlLabel';
|
|
8
|
-
import { SliderProps } from '@mui/material/Slider';
|
|
9
|
-
import { RadioGroupProps } from '@mui/material/RadioGroup';
|
|
10
|
-
|
|
11
|
-
type RHFSelectProps = TextFieldProps & {
|
|
12
|
-
name: string;
|
|
13
|
-
native?: boolean;
|
|
14
|
-
maxHeight?: boolean | number;
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
PaperPropsSx?: SxProps<Theme>;
|
|
17
|
-
};
|
|
18
|
-
declare function RHFSelect({ name, native, maxHeight, helperText, children, PaperPropsSx, ...other }: RHFSelectProps): react_jsx_runtime.JSX.Element;
|
|
19
|
-
|
|
20
|
-
interface RHFCheckboxProps extends Omit<FormControlLabelProps, "control"> {
|
|
21
|
-
name: string;
|
|
22
|
-
helperText?: React.ReactNode;
|
|
23
|
-
}
|
|
24
|
-
declare function RHFCheckbox({ name, helperText, ...other }: RHFCheckboxProps): react_jsx_runtime.JSX.Element;
|
|
25
|
-
interface RHFMultiCheckboxProps extends Omit<FormControlLabelProps, "control" | "label"> {
|
|
26
|
-
name: string;
|
|
27
|
-
options: {
|
|
28
|
-
label: string;
|
|
29
|
-
value: number | string;
|
|
30
|
-
}[];
|
|
31
|
-
row?: boolean;
|
|
32
|
-
label?: string;
|
|
33
|
-
spacing?: number;
|
|
34
|
-
helperText?: React.ReactNode;
|
|
35
|
-
}
|
|
36
|
-
declare function RHFMultiCheckbox({ row, name, label, options, spacing, helperText, sx, ...other }: RHFMultiCheckboxProps): react_jsx_runtime.JSX.Element;
|
|
37
|
-
|
|
38
|
-
interface Props$4 extends Omit<FormControlLabelProps, "control"> {
|
|
39
|
-
name: string;
|
|
40
|
-
helperText?: React.ReactNode;
|
|
41
|
-
}
|
|
42
|
-
declare function RHFSwitch({ name, helperText, ...other }: Props$4): react_jsx_runtime.JSX.Element;
|
|
43
|
-
|
|
44
|
-
type Props$3 = SliderProps & {
|
|
45
|
-
name: string;
|
|
46
|
-
helperText?: React.ReactNode;
|
|
47
|
-
};
|
|
48
|
-
declare function RHFSlider({ name, helperText, ...other }: Props$3): react_jsx_runtime.JSX.Element;
|
|
49
|
-
|
|
50
|
-
type Props$2 = TextFieldProps & {
|
|
51
|
-
name: string;
|
|
52
|
-
};
|
|
53
|
-
declare function RHFTextField({ name, helperText, type, ...other }: Props$2): react_jsx_runtime.JSX.Element;
|
|
54
|
-
|
|
55
|
-
type Props$1 = RadioGroupProps & {
|
|
56
|
-
name: string;
|
|
57
|
-
options: {
|
|
58
|
-
label: string;
|
|
59
|
-
value: any;
|
|
60
|
-
}[];
|
|
61
|
-
label?: string;
|
|
62
|
-
spacing?: number;
|
|
63
|
-
helperText?: React.ReactNode;
|
|
64
|
-
};
|
|
65
|
-
declare function RHFRadioGroup({ row, name, label, options, spacing, helperText, ...other }: Props$1): react_jsx_runtime.JSX.Element;
|
|
66
|
-
|
|
67
|
-
type Props<T extends FieldValues> = {
|
|
68
|
-
children: React.ReactNode;
|
|
69
|
-
methods: UseFormReturn<T>;
|
|
70
|
-
onSubmit?: VoidFunction;
|
|
71
|
-
};
|
|
72
|
-
declare function FormProvider<T extends FieldValues>({ children, onSubmit, methods, }: Props<T>): react_jsx_runtime.JSX.Element;
|
|
73
|
-
|
|
74
|
-
export { FormProvider, RHFCheckbox, RHFMultiCheckbox, RHFRadioGroup, RHFSelect, RHFSlider, RHFSwitch, RHFTextField };
|
|
1
|
+
export * from "./example";
|
|
2
|
+
export * from "./hook-forms";
|