@me1a/ui 1.0.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.
@@ -0,0 +1,3 @@
1
+ import { EditorProps } from './types';
2
+
3
+ export default function Editor({ id, error, simple, helperText, sx, ...other }: EditorProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './types';
2
+ export { default as Editor } from './editor';
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const StyledEditor: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material/styles').Theme> & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ ref?: ((instance: HTMLDivElement | null) => void) | import('react').RefObject<HTMLDivElement> | null | undefined;
4
+ }, keyof import('@mui/system').BoxOwnProps<import('@mui/material/styles').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, {}, {}>;
5
+ export declare const StyledEditorToolbar: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,7 @@
1
+ export declare const formats: string[];
2
+ type EditorToolbarProps = {
3
+ id: string;
4
+ isSimple?: boolean;
5
+ };
6
+ export default function Toolbar({ id, isSimple, ...other }: EditorToolbarProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ import { Theme, SxProps } from '@mui/material/styles';
2
+ import { ReactQuillProps } from 'react-quill';
3
+
4
+ export interface EditorProps extends ReactQuillProps {
5
+ error?: boolean;
6
+ simple?: boolean;
7
+ helperText?: React.ReactNode;
8
+ sx?: SxProps<Theme>;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { UseFormReturn } from 'react-hook-form';
2
+
3
+ type Props = {
4
+ children: React.ReactNode;
5
+ methods: UseFormReturn<any>;
6
+ onSubmit?: VoidFunction;
7
+ };
8
+ export default function FormProvider({ children, onSubmit, methods }: Props): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,7 @@
1
+ export * from './rhf-select';
2
+ export * from './rhf-checkbox';
3
+ export { default as RHFSwitch } from './rhf-switch';
4
+ export { default as RHFSlider } from './rhf-slider';
5
+ export { default as RHFTextField } from './rhf-text-field';
6
+ export { default as RHFRadioGroup } from './rhf-radio-group';
7
+ export { default as FormProvider } from './form-provider';
@@ -0,0 +1,12 @@
1
+ import { AutocompleteProps } from '@mui/material/Autocomplete';
2
+
3
+ interface Props<T, Multiple extends boolean | undefined, DisableClearable extends boolean | undefined, FreeSolo extends boolean | undefined> extends AutocompleteProps<T, Multiple, DisableClearable, FreeSolo> {
4
+ name: string;
5
+ label?: string;
6
+ placeholder?: string;
7
+ helperText?: React.ReactNode;
8
+ optionKey?: string;
9
+ optionLabel?: string;
10
+ }
11
+ 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;
12
+ export {};
@@ -0,0 +1,20 @@
1
+ import { FormControlLabelProps } from '@mui/material/FormControlLabel';
2
+
3
+ interface RHFCheckboxProps extends Omit<FormControlLabelProps, "control"> {
4
+ name: string;
5
+ helperText?: React.ReactNode;
6
+ }
7
+ export declare function RHFCheckbox({ name, helperText, ...other }: RHFCheckboxProps): import("react/jsx-runtime").JSX.Element;
8
+ interface RHFMultiCheckboxProps extends Omit<FormControlLabelProps, "control" | "label"> {
9
+ name: string;
10
+ options: {
11
+ label: string;
12
+ value: number | string;
13
+ }[];
14
+ row?: boolean;
15
+ label?: string;
16
+ spacing?: number;
17
+ helperText?: React.ReactNode;
18
+ }
19
+ export declare function RHFMultiCheckbox({ row, name, label, options, spacing, helperText, sx, ...other }: RHFMultiCheckboxProps): import("react/jsx-runtime").JSX.Element;
20
+ export {};
@@ -0,0 +1,7 @@
1
+ import { EditorProps } from '../editor';
2
+
3
+ interface Props extends EditorProps {
4
+ name: string;
5
+ }
6
+ export default function RHFEditor({ name, helperText, ...other }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,14 @@
1
+ import { RadioGroupProps } from '@mui/material/RadioGroup';
2
+
3
+ type Props = RadioGroupProps & {
4
+ name: string;
5
+ options: {
6
+ label: string;
7
+ value: any;
8
+ }[];
9
+ label?: string;
10
+ spacing?: number;
11
+ helperText?: React.ReactNode;
12
+ };
13
+ export default function RHFRadioGroup({ row, name, label, options, spacing, helperText, ...other }: Props): import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1,26 @@
1
+ import { TextFieldProps } from '@mui/material/TextField';
2
+ import { SelectProps } from '@mui/material/Select';
3
+ import { Theme, SxProps } from '@mui/material/styles';
4
+
5
+ type RHFSelectProps = TextFieldProps & {
6
+ name: string;
7
+ native?: boolean;
8
+ maxHeight?: boolean | number;
9
+ children: React.ReactNode;
10
+ PaperPropsSx?: SxProps<Theme>;
11
+ };
12
+ export declare function RHFSelect({ name, native, maxHeight, helperText, children, PaperPropsSx, ...other }: RHFSelectProps): import("react/jsx-runtime").JSX.Element;
13
+ type RHFMultiSelectProps = SelectProps & {
14
+ name: string;
15
+ label?: string;
16
+ chip?: boolean;
17
+ checkbox?: boolean;
18
+ placeholder?: string;
19
+ helperText?: React.ReactNode;
20
+ options: {
21
+ label: string;
22
+ value: string;
23
+ }[];
24
+ };
25
+ export declare function RHFMultiSelect({ name, chip, label, options, checkbox, placeholder, helperText, sx, ...other }: RHFMultiSelectProps): import("react/jsx-runtime").JSX.Element;
26
+ export {};
@@ -0,0 +1,8 @@
1
+ import { SliderProps } from '@mui/material/Slider';
2
+
3
+ type Props = SliderProps & {
4
+ name: string;
5
+ helperText?: React.ReactNode;
6
+ };
7
+ export default function RHFSlider({ name, helperText, ...other }: Props): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import { FormControlLabelProps } from '@mui/material/FormControlLabel';
2
+
3
+ interface Props extends Omit<FormControlLabelProps, "control"> {
4
+ name: string;
5
+ helperText?: React.ReactNode;
6
+ }
7
+ export default function RHFSwitch({ name, helperText, ...other }: Props): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import { TextFieldProps } from '@mui/material/TextField';
2
+
3
+ type Props = TextFieldProps & {
4
+ name: string;
5
+ };
6
+ export default function RHFTextField({ name, helperText, type, ...other }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export {};