@me1a/ui 1.2.4 → 1.2.5
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/components/components/iconify/iconify.d.ts +7 -0
- package/dist/components/components/iconify/index.d.ts +2 -0
- package/dist/components/components/iconify/types.d.ts +2 -0
- package/dist/components/components/index.d.ts +2 -0
- package/dist/components/components/snackbar/index.d.ts +2 -0
- package/dist/components/components/snackbar/snackbar-provider.d.ts +5 -0
- package/dist/components/components/snackbar/styles.d.ts +6 -0
- package/dist/components/hooks/index.d.ts +1 -0
- package/dist/components/hooks/use-boolean.d.ts +9 -0
- package/dist/components/iconify/iconify.d.ts +7 -0
- package/dist/components/iconify/index.d.ts +2 -0
- package/dist/components/iconify/types.d.ts +2 -0
- package/dist/components/index.cjs.js +12760 -0
- package/dist/components/index.cjs.js.map +1 -0
- package/dist/{example → components}/index.d.ts +1 -1
- package/dist/components/index.es.js +12736 -0
- package/dist/components/index.es.js.map +1 -0
- package/dist/components/redux/index.d.ts +1 -0
- package/dist/components/snackbar/index.d.ts +2 -0
- package/dist/components/snackbar/snackbar-provider.d.ts +5 -0
- package/dist/components/snackbar/styles.d.ts +6 -0
- package/dist/hook-forms/components/iconify/iconify.d.ts +7 -0
- package/dist/hook-forms/components/iconify/index.d.ts +2 -0
- package/dist/hook-forms/components/iconify/types.d.ts +2 -0
- package/dist/hook-forms/components/index.d.ts +2 -0
- package/dist/hook-forms/components/snackbar/index.d.ts +2 -0
- package/dist/hook-forms/components/snackbar/snackbar-provider.d.ts +5 -0
- package/dist/hook-forms/components/snackbar/styles.d.ts +6 -0
- package/dist/hook-forms/hooks/index.d.ts +1 -0
- package/dist/hook-forms/hooks/use-boolean.d.ts +9 -0
- package/dist/hook-forms/index.d.ts +1 -1
- package/dist/hook-forms/redux/index.d.ts +1 -0
- package/dist/hooks/components/iconify/iconify.d.ts +7 -0
- package/dist/hooks/components/iconify/index.d.ts +2 -0
- package/dist/hooks/components/iconify/types.d.ts +2 -0
- package/dist/hooks/components/index.d.ts +2 -0
- package/dist/hooks/components/snackbar/index.d.ts +2 -0
- package/dist/hooks/components/snackbar/snackbar-provider.d.ts +5 -0
- package/dist/hooks/components/snackbar/styles.d.ts +6 -0
- package/dist/hooks/hook-forms/form-provider.d.ts +8 -0
- package/dist/hooks/hook-forms/index.d.ts +11 -0
- package/dist/hooks/hook-forms/rhf-autocomplete.d.ts +11 -0
- package/dist/hooks/hook-forms/rhf-checkbox.d.ts +19 -0
- package/dist/hooks/hook-forms/rhf-radio-group.d.ts +13 -0
- package/dist/hooks/hook-forms/rhf-select.d.ts +11 -0
- package/dist/hooks/hook-forms/rhf-slider.d.ts +7 -0
- package/dist/hooks/hook-forms/rhf-switch.d.ts +7 -0
- package/dist/hooks/hook-forms/rhf-text-field.d.ts +6 -0
- package/dist/hooks/hooks/index.d.ts +1 -0
- package/dist/hooks/hooks/use-boolean.d.ts +9 -0
- package/dist/hooks/index.cjs.js +27 -0
- package/dist/hooks/index.cjs.js.map +1 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.es.js +25 -0
- package/dist/hooks/index.es.js.map +1 -0
- package/dist/hooks/redux/index.d.ts +1 -0
- package/dist/hooks/use-boolean.d.ts +9 -0
- package/dist/index.cjs.js +3926 -3923
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +2546 -2543
- package/dist/index.es.js.map +1 -1
- package/dist/redux/components/iconify/iconify.d.ts +7 -0
- package/dist/redux/components/iconify/index.d.ts +2 -0
- package/dist/redux/components/iconify/types.d.ts +2 -0
- package/dist/redux/components/index.d.ts +2 -0
- package/dist/redux/components/snackbar/index.d.ts +2 -0
- package/dist/redux/components/snackbar/snackbar-provider.d.ts +5 -0
- package/dist/redux/components/snackbar/styles.d.ts +6 -0
- package/dist/redux/hook-forms/form-provider.d.ts +8 -0
- package/dist/redux/hook-forms/index.d.ts +11 -0
- package/dist/redux/hook-forms/rhf-autocomplete.d.ts +11 -0
- package/dist/redux/hook-forms/rhf-checkbox.d.ts +19 -0
- package/dist/redux/hook-forms/rhf-radio-group.d.ts +13 -0
- package/dist/redux/hook-forms/rhf-select.d.ts +11 -0
- package/dist/redux/hook-forms/rhf-slider.d.ts +7 -0
- package/dist/redux/hook-forms/rhf-switch.d.ts +7 -0
- package/dist/redux/hook-forms/rhf-text-field.d.ts +6 -0
- package/dist/redux/hooks/index.d.ts +1 -0
- package/dist/redux/hooks/use-boolean.d.ts +9 -0
- package/dist/redux/index.cjs.js +1347 -0
- package/dist/redux/index.cjs.js.map +1 -0
- package/dist/redux/index.d.ts +2 -0
- package/dist/redux/index.es.js +1317 -0
- package/dist/redux/index.es.js.map +1 -0
- package/dist/redux/redux/index.d.ts +1 -0
- package/dist/redux-toolkit/components/iconify/iconify.d.ts +7 -0
- package/dist/redux-toolkit/components/iconify/index.d.ts +2 -0
- package/dist/redux-toolkit/components/iconify/types.d.ts +2 -0
- package/dist/redux-toolkit/components/index.d.ts +2 -0
- package/dist/redux-toolkit/components/snackbar/index.d.ts +2 -0
- package/dist/redux-toolkit/components/snackbar/snackbar-provider.d.ts +5 -0
- package/dist/redux-toolkit/components/snackbar/styles.d.ts +6 -0
- package/dist/redux-toolkit/hook-forms/form-provider.d.ts +8 -0
- package/dist/redux-toolkit/hook-forms/index.d.ts +11 -0
- package/dist/redux-toolkit/hook-forms/rhf-autocomplete.d.ts +11 -0
- package/dist/redux-toolkit/hook-forms/rhf-checkbox.d.ts +19 -0
- package/dist/redux-toolkit/hook-forms/rhf-radio-group.d.ts +13 -0
- package/dist/redux-toolkit/hook-forms/rhf-select.d.ts +11 -0
- package/dist/redux-toolkit/hook-forms/rhf-slider.d.ts +7 -0
- package/dist/redux-toolkit/hook-forms/rhf-switch.d.ts +7 -0
- package/dist/redux-toolkit/hook-forms/rhf-text-field.d.ts +6 -0
- package/dist/redux-toolkit/hooks/index.d.ts +1 -0
- package/dist/redux-toolkit/hooks/use-boolean.d.ts +9 -0
- package/dist/redux-toolkit/index.cjs.js +3 -0
- package/dist/redux-toolkit/index.cjs.js.map +1 -0
- package/dist/redux-toolkit/index.d.ts +2 -0
- package/dist/redux-toolkit/index.es.js +2 -0
- package/dist/redux-toolkit/index.es.js.map +1 -0
- package/dist/redux-toolkit/redux/index.d.ts +1 -0
- package/package.json +27 -8
- package/dist/example/example/index.d.ts +0 -1
- package/dist/example/example/simple.d.ts +0 -4
- package/dist/example/index.cjs.js +0 -1381
- package/dist/example/index.cjs.js.map +0 -1
- package/dist/example/index.es.js +0 -1379
- package/dist/example/index.es.js.map +0 -1
- package/dist/example/simple.d.ts +0 -4
- package/dist/hook-forms/example/index.d.ts +0 -1
- package/dist/hook-forms/example/simple.d.ts +0 -4
- /package/dist/{example → components}/hook-forms/form-provider.d.ts +0 -0
- /package/dist/{example → components}/hook-forms/index.d.ts +0 -0
- /package/dist/{example → components}/hook-forms/rhf-autocomplete.d.ts +0 -0
- /package/dist/{example → components}/hook-forms/rhf-checkbox.d.ts +0 -0
- /package/dist/{example → components}/hook-forms/rhf-radio-group.d.ts +0 -0
- /package/dist/{example → components}/hook-forms/rhf-select.d.ts +0 -0
- /package/dist/{example → components}/hook-forms/rhf-slider.d.ts +0 -0
- /package/dist/{example → components}/hook-forms/rhf-switch.d.ts +0 -0
- /package/dist/{example → components}/hook-forms/rhf-text-field.d.ts +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BoxProps } from "@mui/material/Box";
|
|
2
|
+
import { IconifyProps } from "./types";
|
|
3
|
+
interface Props extends BoxProps {
|
|
4
|
+
icon: IconifyProps;
|
|
5
|
+
}
|
|
6
|
+
declare const Iconify: import("react").ForwardRefExoticComponent<Omit<Props, "ref"> & import("react").RefAttributes<SVGElement>>;
|
|
7
|
+
export default Iconify;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const StyledNotistack: import("@emotion/styled").StyledComponent<import("notistack").CustomContentProps & import("react").RefAttributes<HTMLDivElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
2
|
+
type StyledIconProps = {
|
|
3
|
+
color: 'info' | 'success' | 'warning' | 'error';
|
|
4
|
+
};
|
|
5
|
+
export declare const StyledIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & StyledIconProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UseFormReturn, FieldValues } from "react-hook-form";
|
|
2
|
+
type Props<T extends FieldValues> = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
methods: UseFormReturn<T>;
|
|
5
|
+
onSubmit?: VoidFunction;
|
|
6
|
+
};
|
|
7
|
+
export default function FormProvider<T extends FieldValues>({ children, onSubmit, methods, }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { FormProvider as FormProviderController } from "react-hook-form";
|
|
2
|
+
export * from "react-hook-form";
|
|
3
|
+
export * from "./rhf-select";
|
|
4
|
+
export * from "./rhf-checkbox";
|
|
5
|
+
export { default as RHFSwitch } from "./rhf-switch";
|
|
6
|
+
export { default as RHFSlider } from "./rhf-slider";
|
|
7
|
+
export { default as RHFTextField } from "./rhf-text-field";
|
|
8
|
+
export { default as RHFRadioGroup } from "./rhf-radio-group";
|
|
9
|
+
export { default as FormProvider } from "./form-provider";
|
|
10
|
+
export { yupResolver } from "@hookform/resolvers/yup";
|
|
11
|
+
export * as Yup from "yup";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AutocompleteProps } from "@mui/material/Autocomplete";
|
|
2
|
+
interface Props<T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined> extends AutocompleteProps<T, Multiple, DisableClearable, FreeSolo> {
|
|
3
|
+
name: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
helperText?: React.ReactNode;
|
|
7
|
+
optionKey?: string;
|
|
8
|
+
optionLabel?: string;
|
|
9
|
+
}
|
|
10
|
+
export default function RHFAutocomplete<T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined>({ name, label, placeholder, optionKey, options, optionLabel, helperText, ...other }: Omit<Props<T, Multiple, DisableClearable, FreeSolo>, "renderInput">): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FormControlLabelProps } from "@mui/material/FormControlLabel";
|
|
2
|
+
interface RHFCheckboxProps extends Omit<FormControlLabelProps, "control"> {
|
|
3
|
+
name: string;
|
|
4
|
+
helperText?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare function RHFCheckbox({ name, helperText, ...other }: RHFCheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
interface RHFMultiCheckboxProps extends Omit<FormControlLabelProps, "control" | "label"> {
|
|
8
|
+
name: string;
|
|
9
|
+
options: {
|
|
10
|
+
label: string;
|
|
11
|
+
value: number | string;
|
|
12
|
+
}[];
|
|
13
|
+
row?: boolean;
|
|
14
|
+
label?: string;
|
|
15
|
+
spacing?: number;
|
|
16
|
+
helperText?: React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export declare function RHFMultiCheckbox({ row, name, label, options, spacing, helperText, sx, ...other }: RHFMultiCheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RadioGroupProps } from "@mui/material/RadioGroup";
|
|
2
|
+
type Props = RadioGroupProps & {
|
|
3
|
+
name: string;
|
|
4
|
+
options: {
|
|
5
|
+
label: string;
|
|
6
|
+
value: any;
|
|
7
|
+
}[];
|
|
8
|
+
label?: string;
|
|
9
|
+
spacing?: number;
|
|
10
|
+
helperText?: React.ReactNode;
|
|
11
|
+
};
|
|
12
|
+
export default function RHFRadioGroup({ row, name, label, options, spacing, helperText, ...other }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Theme, SxProps } from "@mui/material/styles";
|
|
2
|
+
import { TextFieldProps } from "@mui/material/TextField";
|
|
3
|
+
type RHFSelectProps = TextFieldProps & {
|
|
4
|
+
name: string;
|
|
5
|
+
native?: boolean;
|
|
6
|
+
maxHeight?: boolean | number;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
PaperPropsSx?: SxProps<Theme>;
|
|
9
|
+
};
|
|
10
|
+
export declare function RHFSelect({ name, native, maxHeight, helperText, children, PaperPropsSx, ...other }: RHFSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FormControlLabelProps } from "@mui/material/FormControlLabel";
|
|
2
|
+
interface Props extends Omit<FormControlLabelProps, "control"> {
|
|
3
|
+
name: string;
|
|
4
|
+
helperText?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export default function RHFSwitch({ name, helperText, ...other }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./use-boolean";
|