@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.
Files changed (47) hide show
  1. package/dist/example/example/index.d.ts +1 -0
  2. package/dist/example/example/simple.d.ts +4 -0
  3. package/dist/example/hook-forms/form-provider.d.ts +8 -0
  4. package/dist/example/hook-forms/index.d.ts +11 -0
  5. package/dist/example/hook-forms/rhf-autocomplete.d.ts +11 -0
  6. package/dist/example/hook-forms/rhf-checkbox.d.ts +19 -0
  7. package/dist/example/hook-forms/rhf-radio-group.d.ts +13 -0
  8. package/dist/example/hook-forms/rhf-select.d.ts +11 -0
  9. package/dist/example/hook-forms/rhf-slider.d.ts +7 -0
  10. package/dist/example/hook-forms/rhf-switch.d.ts +7 -0
  11. package/dist/example/hook-forms/rhf-text-field.d.ts +6 -0
  12. package/dist/example/index.cjs.js +1381 -0
  13. package/dist/example/index.cjs.js.map +1 -0
  14. package/dist/example/index.d.ts +2 -0
  15. package/dist/example/index.es.js +1379 -0
  16. package/dist/example/index.es.js.map +1 -0
  17. package/dist/example/simple.d.ts +4 -0
  18. package/dist/hook-forms/example/index.d.ts +1 -0
  19. package/dist/hook-forms/example/simple.d.ts +4 -0
  20. package/dist/hook-forms/form-provider.d.ts +8 -0
  21. package/dist/hook-forms/hook-forms/form-provider.d.ts +8 -0
  22. package/dist/hook-forms/hook-forms/index.d.ts +11 -0
  23. package/dist/hook-forms/hook-forms/rhf-autocomplete.d.ts +11 -0
  24. package/dist/hook-forms/hook-forms/rhf-checkbox.d.ts +19 -0
  25. package/dist/hook-forms/hook-forms/rhf-radio-group.d.ts +13 -0
  26. package/dist/hook-forms/hook-forms/rhf-select.d.ts +11 -0
  27. package/dist/hook-forms/hook-forms/rhf-slider.d.ts +7 -0
  28. package/dist/hook-forms/hook-forms/rhf-switch.d.ts +7 -0
  29. package/dist/hook-forms/hook-forms/rhf-text-field.d.ts +6 -0
  30. package/dist/hook-forms/index.cjs.js +30012 -0
  31. package/dist/hook-forms/index.cjs.js.map +1 -0
  32. package/dist/hook-forms/index.d.ts +2 -0
  33. package/dist/hook-forms/index.es.js +29971 -0
  34. package/dist/hook-forms/index.es.js.map +1 -0
  35. package/dist/hook-forms/rhf-autocomplete.d.ts +11 -0
  36. package/dist/hook-forms/rhf-checkbox.d.ts +19 -0
  37. package/dist/hook-forms/rhf-radio-group.d.ts +13 -0
  38. package/dist/hook-forms/rhf-select.d.ts +11 -0
  39. package/dist/hook-forms/rhf-slider.d.ts +7 -0
  40. package/dist/hook-forms/rhf-switch.d.ts +7 -0
  41. package/dist/hook-forms/rhf-text-field.d.ts +6 -0
  42. package/dist/index.cjs.js +7843 -5144
  43. package/dist/index.cjs.js.map +1 -1
  44. package/dist/index.d.ts +2 -74
  45. package/dist/index.es.js +7837 -5141
  46. package/dist/index.es.js.map +1 -1
  47. package/package.json +23 -4
package/dist/index.d.ts CHANGED
@@ -1,74 +1,2 @@
1
- import { FieldValues, UseFormReturn } from 'react-hook-form';
2
- export * from 'react-hook-form';
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";