@me1a/ui 1.2.5 → 1.2.6
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/iconify/index.d.ts +2 -2
- package/dist/components/iconify/types.d.ts +1 -1
- package/dist/components/index.cjs.js.map +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.es.js.map +1 -1
- package/dist/hook-forms/index.cjs.js.map +1 -1
- package/dist/hook-forms/index.d.ts +11 -2
- package/dist/hook-forms/index.es.js.map +1 -1
- package/dist/hooks/index.cjs.js.map +1 -1
- package/dist/hooks/index.d.ts +1 -2
- package/dist/hooks/index.es.js.map +1 -1
- package/dist/redux/index.d.ts +1 -2
- package/package.json +3 -2
- package/dist/components/components/iconify/iconify.d.ts +0 -7
- package/dist/components/components/iconify/index.d.ts +0 -2
- package/dist/components/components/iconify/types.d.ts +0 -2
- package/dist/components/components/index.d.ts +0 -2
- package/dist/components/components/snackbar/index.d.ts +0 -2
- package/dist/components/components/snackbar/snackbar-provider.d.ts +0 -5
- package/dist/components/components/snackbar/styles.d.ts +0 -6
- package/dist/components/hook-forms/form-provider.d.ts +0 -8
- package/dist/components/hook-forms/index.d.ts +0 -11
- package/dist/components/hook-forms/rhf-autocomplete.d.ts +0 -11
- package/dist/components/hook-forms/rhf-checkbox.d.ts +0 -19
- package/dist/components/hook-forms/rhf-radio-group.d.ts +0 -13
- package/dist/components/hook-forms/rhf-select.d.ts +0 -11
- package/dist/components/hook-forms/rhf-slider.d.ts +0 -7
- package/dist/components/hook-forms/rhf-switch.d.ts +0 -7
- package/dist/components/hook-forms/rhf-text-field.d.ts +0 -6
- package/dist/components/hooks/index.d.ts +0 -1
- package/dist/components/hooks/use-boolean.d.ts +0 -9
- package/dist/components/redux/index.d.ts +0 -1
- package/dist/hook-forms/components/iconify/iconify.d.ts +0 -7
- package/dist/hook-forms/components/iconify/index.d.ts +0 -2
- package/dist/hook-forms/components/iconify/types.d.ts +0 -2
- package/dist/hook-forms/components/index.d.ts +0 -2
- package/dist/hook-forms/components/snackbar/index.d.ts +0 -2
- package/dist/hook-forms/components/snackbar/snackbar-provider.d.ts +0 -5
- package/dist/hook-forms/components/snackbar/styles.d.ts +0 -6
- package/dist/hook-forms/hook-forms/form-provider.d.ts +0 -8
- package/dist/hook-forms/hook-forms/index.d.ts +0 -11
- package/dist/hook-forms/hook-forms/rhf-autocomplete.d.ts +0 -11
- package/dist/hook-forms/hook-forms/rhf-checkbox.d.ts +0 -19
- package/dist/hook-forms/hook-forms/rhf-radio-group.d.ts +0 -13
- package/dist/hook-forms/hook-forms/rhf-select.d.ts +0 -11
- package/dist/hook-forms/hook-forms/rhf-slider.d.ts +0 -7
- package/dist/hook-forms/hook-forms/rhf-switch.d.ts +0 -7
- package/dist/hook-forms/hook-forms/rhf-text-field.d.ts +0 -6
- package/dist/hook-forms/hooks/index.d.ts +0 -1
- package/dist/hook-forms/hooks/use-boolean.d.ts +0 -9
- package/dist/hook-forms/redux/index.d.ts +0 -1
- package/dist/hooks/components/iconify/iconify.d.ts +0 -7
- package/dist/hooks/components/iconify/index.d.ts +0 -2
- package/dist/hooks/components/iconify/types.d.ts +0 -2
- package/dist/hooks/components/index.d.ts +0 -2
- package/dist/hooks/components/snackbar/index.d.ts +0 -2
- package/dist/hooks/components/snackbar/snackbar-provider.d.ts +0 -5
- package/dist/hooks/components/snackbar/styles.d.ts +0 -6
- package/dist/hooks/hook-forms/form-provider.d.ts +0 -8
- package/dist/hooks/hook-forms/index.d.ts +0 -11
- package/dist/hooks/hook-forms/rhf-autocomplete.d.ts +0 -11
- package/dist/hooks/hook-forms/rhf-checkbox.d.ts +0 -19
- package/dist/hooks/hook-forms/rhf-radio-group.d.ts +0 -13
- package/dist/hooks/hook-forms/rhf-select.d.ts +0 -11
- package/dist/hooks/hook-forms/rhf-slider.d.ts +0 -7
- package/dist/hooks/hook-forms/rhf-switch.d.ts +0 -7
- package/dist/hooks/hook-forms/rhf-text-field.d.ts +0 -6
- package/dist/hooks/hooks/index.d.ts +0 -1
- package/dist/hooks/hooks/use-boolean.d.ts +0 -9
- package/dist/hooks/redux/index.d.ts +0 -1
- package/dist/redux/components/iconify/iconify.d.ts +0 -7
- package/dist/redux/components/iconify/index.d.ts +0 -2
- package/dist/redux/components/iconify/types.d.ts +0 -2
- package/dist/redux/components/index.d.ts +0 -2
- package/dist/redux/components/snackbar/index.d.ts +0 -2
- package/dist/redux/components/snackbar/snackbar-provider.d.ts +0 -5
- package/dist/redux/components/snackbar/styles.d.ts +0 -6
- package/dist/redux/hook-forms/form-provider.d.ts +0 -8
- package/dist/redux/hook-forms/index.d.ts +0 -11
- package/dist/redux/hook-forms/rhf-autocomplete.d.ts +0 -11
- package/dist/redux/hook-forms/rhf-checkbox.d.ts +0 -19
- package/dist/redux/hook-forms/rhf-radio-group.d.ts +0 -13
- package/dist/redux/hook-forms/rhf-select.d.ts +0 -11
- package/dist/redux/hook-forms/rhf-slider.d.ts +0 -7
- package/dist/redux/hook-forms/rhf-switch.d.ts +0 -7
- package/dist/redux/hook-forms/rhf-text-field.d.ts +0 -6
- package/dist/redux/hooks/index.d.ts +0 -1
- package/dist/redux/hooks/use-boolean.d.ts +0 -9
- package/dist/redux/redux/index.d.ts +0 -1
- package/dist/redux-toolkit/components/iconify/iconify.d.ts +0 -7
- package/dist/redux-toolkit/components/iconify/index.d.ts +0 -2
- package/dist/redux-toolkit/components/iconify/types.d.ts +0 -2
- package/dist/redux-toolkit/components/index.d.ts +0 -2
- package/dist/redux-toolkit/components/snackbar/index.d.ts +0 -2
- package/dist/redux-toolkit/components/snackbar/snackbar-provider.d.ts +0 -5
- package/dist/redux-toolkit/components/snackbar/styles.d.ts +0 -6
- package/dist/redux-toolkit/hook-forms/form-provider.d.ts +0 -8
- package/dist/redux-toolkit/hook-forms/index.d.ts +0 -11
- package/dist/redux-toolkit/hook-forms/rhf-autocomplete.d.ts +0 -11
- package/dist/redux-toolkit/hook-forms/rhf-checkbox.d.ts +0 -19
- package/dist/redux-toolkit/hook-forms/rhf-radio-group.d.ts +0 -13
- package/dist/redux-toolkit/hook-forms/rhf-select.d.ts +0 -11
- package/dist/redux-toolkit/hook-forms/rhf-slider.d.ts +0 -7
- package/dist/redux-toolkit/hook-forms/rhf-switch.d.ts +0 -7
- package/dist/redux-toolkit/hook-forms/rhf-text-field.d.ts +0 -6
- package/dist/redux-toolkit/hooks/index.d.ts +0 -1
- package/dist/redux-toolkit/hooks/use-boolean.d.ts +0 -9
- package/dist/redux-toolkit/index.d.ts +0 -2
- package/dist/redux-toolkit/redux/index.d.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../src/hooks/use-boolean.ts"],"sourcesContent":["\"use client\";\n\nimport { useCallback, useState } from \"react\";\n\n// ----------------------------------------------------------------------\n\ninterface ReturnType {\n value: boolean;\n onTrue: () => void;\n onFalse: () => void;\n onToggle: () => void;\n setValue: React.Dispatch<React.SetStateAction<boolean>>;\n}\n\n// ----------------------------------------------------------------------\n\nexport function useBoolean(defaultValue?: boolean): ReturnType {\n const [value, setValue] = useState(!!defaultValue);\n\n const onTrue = useCallback(() => {\n setValue(true);\n }, []);\n\n const onFalse = useCallback(() => {\n setValue(false);\n }, []);\n\n const onToggle = useCallback(() => {\n setValue((prev) => !prev);\n }, []);\n\n return {\n value,\n onTrue,\n onFalse,\n onToggle,\n setValue,\n };\n}\n"],"names":["useBoolean","defaultValue","value","setValue","useState","onTrue","useCallback","onFalse","onToggle","prev"],"mappings":";;;;AAcA;AAEM,SAAUA,UAAUA,CAACC,YAAsB,EAAA;EAC/C,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGC,cAAQ,CAAC,CAAC,CAACH,YAAY,CAAC;AAElD,EAAA,MAAMI,MAAM,GAAGC,iBAAW,CAAC,MAAK;IAC9BH,QAAQ,CAAC,IAAI,CAAC;GACf,EAAE,EAAE,CAAC;AAEN,EAAA,MAAMI,OAAO,GAAGD,iBAAW,CAAC,MAAK;IAC/BH,QAAQ,CAAC,KAAK,CAAC;GAChB,EAAE,EAAE,CAAC;AAEN,EAAA,MAAMK,QAAQ,GAAGF,iBAAW,CAAC,MAAK;AAChCH,IAAAA,QAAQ,CAAEM,IAAI,IAAK,CAACA,IAAI,CAAC;GAC1B,EAAE,EAAE,CAAC;EAEN,OAAO;IACLP,KAAK;IACLG,MAAM;IACNE,OAAO;IACPC,QAAQ;AACRL,IAAAA;GACD;AACH;;;;"}
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./hooks";
|
|
1
|
+
export * from "./use-boolean";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../src/hooks/use-boolean.ts"],"sourcesContent":["\"use client\";\n\nimport { useCallback, useState } from \"react\";\n\n// ----------------------------------------------------------------------\n\ninterface ReturnType {\n value: boolean;\n onTrue: () => void;\n onFalse: () => void;\n onToggle: () => void;\n setValue: React.Dispatch<React.SetStateAction<boolean>>;\n}\n\n// ----------------------------------------------------------------------\n\nexport function useBoolean(defaultValue?: boolean): ReturnType {\n const [value, setValue] = useState(!!defaultValue);\n\n const onTrue = useCallback(() => {\n setValue(true);\n }, []);\n\n const onFalse = useCallback(() => {\n setValue(false);\n }, []);\n\n const onToggle = useCallback(() => {\n setValue((prev) => !prev);\n }, []);\n\n return {\n value,\n onTrue,\n onFalse,\n onToggle,\n setValue,\n };\n}\n"],"names":["useBoolean","defaultValue","value","setValue","useState","onTrue","useCallback","onFalse","onToggle","prev"],"mappings":";;AAcA;AAEM,SAAUA,UAAUA,CAACC,YAAsB,EAAA;EAC/C,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGC,QAAQ,CAAC,CAAC,CAACH,YAAY,CAAC;AAElD,EAAA,MAAMI,MAAM,GAAGC,WAAW,CAAC,MAAK;IAC9BH,QAAQ,CAAC,IAAI,CAAC;GACf,EAAE,EAAE,CAAC;AAEN,EAAA,MAAMI,OAAO,GAAGD,WAAW,CAAC,MAAK;IAC/BH,QAAQ,CAAC,KAAK,CAAC;GAChB,EAAE,EAAE,CAAC;AAEN,EAAA,MAAMK,QAAQ,GAAGF,WAAW,CAAC,MAAK;AAChCH,IAAAA,QAAQ,CAAEM,IAAI,IAAK,CAACA,IAAI,CAAC;GAC1B,EAAE,EAAE,CAAC;EAEN,OAAO;IACLP,KAAK;IACLG,MAAM;IACNE,OAAO;IACPC,QAAQ;AACRL,IAAAA;GACD;AACH;;;;"}
|
package/dist/redux/index.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "
|
|
2
|
-
export * from "./hooks";
|
|
1
|
+
export * from "react-redux";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@me1a/ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
"scripts": {
|
|
44
44
|
"format": "prettier --write --parser typescript '**/*.{ts,tsx}'",
|
|
45
45
|
"lint": "eslint . --ext .ts,.tsx --ignore-path .gitignore --fix",
|
|
46
|
-
"
|
|
46
|
+
"clean": "rimraf dist",
|
|
47
|
+
"build": "npm run clean && rollup -c",
|
|
47
48
|
"storybook": "storybook dev -p 6006",
|
|
48
49
|
"build-storybook": "storybook build"
|
|
49
50
|
},
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,8 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,11 +0,0 @@
|
|
|
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";
|
|
@@ -1,11 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,19 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,13 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,11 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,7 +0,0 @@
|
|
|
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 {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./use-boolean";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "react-redux";
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,8 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,11 +0,0 @@
|
|
|
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";
|
|
@@ -1,11 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,19 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,13 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,11 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,7 +0,0 @@
|
|
|
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 {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./use-boolean";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "react-redux";
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,8 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,11 +0,0 @@
|
|
|
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";
|
|
@@ -1,11 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,19 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,13 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,11 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,7 +0,0 @@
|
|
|
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 {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./use-boolean";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "react-redux";
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,8 +0,0 @@
|
|
|
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 {};
|