@me1a/ui 1.2.13 → 2.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.
- package/dist/index.css +2 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.mts +63 -0
- package/dist/index.d.ts +63 -2
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +80 -95
- package/dist/components/iconify/iconify.d.ts +0 -7
- package/dist/components/iconify/index.d.ts +0 -2
- package/dist/components/iconify/types.d.ts +0 -2
- package/dist/components/index.cjs.js +0 -7961
- package/dist/components/index.cjs.js.map +0 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.es.js +0 -7941
- package/dist/components/index.es.js.map +0 -1
- package/dist/hook-forms/form-provider.d.ts +0 -8
- package/dist/hook-forms/index.cjs.js +0 -27806
- package/dist/hook-forms/index.cjs.js.map +0 -1
- package/dist/hook-forms/index.d.ts +0 -11
- package/dist/hook-forms/index.es.js +0 -27765
- package/dist/hook-forms/index.es.js.map +0 -1
- package/dist/hook-forms/rhf-autocomplete.d.ts +0 -11
- package/dist/hook-forms/rhf-checkbox.d.ts +0 -19
- package/dist/hook-forms/rhf-radio-group.d.ts +0 -13
- package/dist/hook-forms/rhf-select.d.ts +0 -11
- package/dist/hook-forms/rhf-slider.d.ts +0 -7
- package/dist/hook-forms/rhf-switch.d.ts +0 -7
- package/dist/hook-forms/rhf-text-field.d.ts +0 -6
- package/dist/hooks/index.cjs.js +0 -27
- package/dist/hooks/index.cjs.js.map +0 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.es.js +0 -25
- package/dist/hooks/index.es.js.map +0 -1
- package/dist/hooks/use-boolean.d.ts +0 -9
- package/dist/index.cjs.js +0 -27828
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.es.js +0 -27786
- package/dist/index.es.js.map +0 -1
- package/dist/redux/index.cjs.js +0 -1347
- package/dist/redux/index.cjs.js.map +0 -1
- package/dist/redux/index.d.ts +0 -1
- package/dist/redux/index.es.js +0 -1317
- package/dist/redux/index.es.js.map +0 -1
- package/dist/redux-toolkit/index.cjs.js +0 -7668
- package/dist/redux-toolkit/index.cjs.js.map +0 -1
- package/dist/redux-toolkit/index.d.ts +0 -2
- package/dist/redux-toolkit/index.es.js +0 -7589
- package/dist/redux-toolkit/index.es.js.map +0 -1
- package/dist/snackbar/index.cjs.js +0 -10873
- package/dist/snackbar/index.cjs.js.map +0 -1
- package/dist/snackbar/index.d.ts +0 -2
- package/dist/snackbar/index.es.js +0 -10849
- package/dist/snackbar/index.es.js.map +0 -1
- package/dist/snackbar/snackbar-provider.d.ts +0 -7
|
@@ -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 {};
|
package/dist/hooks/index.cjs.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var react = require('react');
|
|
4
|
-
|
|
5
|
-
// ----------------------------------------------------------------------
|
|
6
|
-
function useBoolean(defaultValue) {
|
|
7
|
-
const [value, setValue] = react.useState(!!defaultValue);
|
|
8
|
-
const onTrue = react.useCallback(() => {
|
|
9
|
-
setValue(true);
|
|
10
|
-
}, []);
|
|
11
|
-
const onFalse = react.useCallback(() => {
|
|
12
|
-
setValue(false);
|
|
13
|
-
}, []);
|
|
14
|
-
const onToggle = react.useCallback(() => {
|
|
15
|
-
setValue(prev => !prev);
|
|
16
|
-
}, []);
|
|
17
|
-
return {
|
|
18
|
-
value,
|
|
19
|
-
onTrue,
|
|
20
|
-
onFalse,
|
|
21
|
-
onToggle,
|
|
22
|
-
setValue
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
exports.useBoolean = useBoolean;
|
|
27
|
-
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./use-boolean";
|
package/dist/hooks/index.es.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { useState, useCallback } from 'react';
|
|
2
|
-
|
|
3
|
-
// ----------------------------------------------------------------------
|
|
4
|
-
function useBoolean(defaultValue) {
|
|
5
|
-
const [value, setValue] = useState(!!defaultValue);
|
|
6
|
-
const onTrue = useCallback(() => {
|
|
7
|
-
setValue(true);
|
|
8
|
-
}, []);
|
|
9
|
-
const onFalse = useCallback(() => {
|
|
10
|
-
setValue(false);
|
|
11
|
-
}, []);
|
|
12
|
-
const onToggle = useCallback(() => {
|
|
13
|
-
setValue(prev => !prev);
|
|
14
|
-
}, []);
|
|
15
|
-
return {
|
|
16
|
-
value,
|
|
17
|
-
onTrue,
|
|
18
|
-
onFalse,
|
|
19
|
-
onToggle,
|
|
20
|
-
setValue
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export { useBoolean };
|
|
25
|
-
//# sourceMappingURL=index.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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;;;;"}
|