@me1a/ui 1.2.5 → 1.2.7

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 (109) hide show
  1. package/dist/components/iconify/index.d.ts +2 -2
  2. package/dist/components/iconify/types.d.ts +1 -1
  3. package/dist/components/index.cjs.js.map +1 -1
  4. package/dist/components/index.d.ts +2 -2
  5. package/dist/components/index.es.js.map +1 -1
  6. package/dist/hook-forms/index.cjs.js.map +1 -1
  7. package/dist/hook-forms/index.d.ts +11 -2
  8. package/dist/hook-forms/index.es.js.map +1 -1
  9. package/dist/hooks/index.cjs.js.map +1 -1
  10. package/dist/hooks/index.d.ts +1 -2
  11. package/dist/hooks/index.es.js.map +1 -1
  12. package/dist/redux/index.d.ts +1 -2
  13. package/package.json +11 -10
  14. package/dist/components/components/iconify/iconify.d.ts +0 -7
  15. package/dist/components/components/iconify/index.d.ts +0 -2
  16. package/dist/components/components/iconify/types.d.ts +0 -2
  17. package/dist/components/components/index.d.ts +0 -2
  18. package/dist/components/components/snackbar/index.d.ts +0 -2
  19. package/dist/components/components/snackbar/snackbar-provider.d.ts +0 -5
  20. package/dist/components/components/snackbar/styles.d.ts +0 -6
  21. package/dist/components/hook-forms/form-provider.d.ts +0 -8
  22. package/dist/components/hook-forms/index.d.ts +0 -11
  23. package/dist/components/hook-forms/rhf-autocomplete.d.ts +0 -11
  24. package/dist/components/hook-forms/rhf-checkbox.d.ts +0 -19
  25. package/dist/components/hook-forms/rhf-radio-group.d.ts +0 -13
  26. package/dist/components/hook-forms/rhf-select.d.ts +0 -11
  27. package/dist/components/hook-forms/rhf-slider.d.ts +0 -7
  28. package/dist/components/hook-forms/rhf-switch.d.ts +0 -7
  29. package/dist/components/hook-forms/rhf-text-field.d.ts +0 -6
  30. package/dist/components/hooks/index.d.ts +0 -1
  31. package/dist/components/hooks/use-boolean.d.ts +0 -9
  32. package/dist/components/redux/index.d.ts +0 -1
  33. package/dist/hook-forms/components/iconify/iconify.d.ts +0 -7
  34. package/dist/hook-forms/components/iconify/index.d.ts +0 -2
  35. package/dist/hook-forms/components/iconify/types.d.ts +0 -2
  36. package/dist/hook-forms/components/index.d.ts +0 -2
  37. package/dist/hook-forms/components/snackbar/index.d.ts +0 -2
  38. package/dist/hook-forms/components/snackbar/snackbar-provider.d.ts +0 -5
  39. package/dist/hook-forms/components/snackbar/styles.d.ts +0 -6
  40. package/dist/hook-forms/hook-forms/form-provider.d.ts +0 -8
  41. package/dist/hook-forms/hook-forms/index.d.ts +0 -11
  42. package/dist/hook-forms/hook-forms/rhf-autocomplete.d.ts +0 -11
  43. package/dist/hook-forms/hook-forms/rhf-checkbox.d.ts +0 -19
  44. package/dist/hook-forms/hook-forms/rhf-radio-group.d.ts +0 -13
  45. package/dist/hook-forms/hook-forms/rhf-select.d.ts +0 -11
  46. package/dist/hook-forms/hook-forms/rhf-slider.d.ts +0 -7
  47. package/dist/hook-forms/hook-forms/rhf-switch.d.ts +0 -7
  48. package/dist/hook-forms/hook-forms/rhf-text-field.d.ts +0 -6
  49. package/dist/hook-forms/hooks/index.d.ts +0 -1
  50. package/dist/hook-forms/hooks/use-boolean.d.ts +0 -9
  51. package/dist/hook-forms/redux/index.d.ts +0 -1
  52. package/dist/hooks/components/iconify/iconify.d.ts +0 -7
  53. package/dist/hooks/components/iconify/index.d.ts +0 -2
  54. package/dist/hooks/components/iconify/types.d.ts +0 -2
  55. package/dist/hooks/components/index.d.ts +0 -2
  56. package/dist/hooks/components/snackbar/index.d.ts +0 -2
  57. package/dist/hooks/components/snackbar/snackbar-provider.d.ts +0 -5
  58. package/dist/hooks/components/snackbar/styles.d.ts +0 -6
  59. package/dist/hooks/hook-forms/form-provider.d.ts +0 -8
  60. package/dist/hooks/hook-forms/index.d.ts +0 -11
  61. package/dist/hooks/hook-forms/rhf-autocomplete.d.ts +0 -11
  62. package/dist/hooks/hook-forms/rhf-checkbox.d.ts +0 -19
  63. package/dist/hooks/hook-forms/rhf-radio-group.d.ts +0 -13
  64. package/dist/hooks/hook-forms/rhf-select.d.ts +0 -11
  65. package/dist/hooks/hook-forms/rhf-slider.d.ts +0 -7
  66. package/dist/hooks/hook-forms/rhf-switch.d.ts +0 -7
  67. package/dist/hooks/hook-forms/rhf-text-field.d.ts +0 -6
  68. package/dist/hooks/hooks/index.d.ts +0 -1
  69. package/dist/hooks/hooks/use-boolean.d.ts +0 -9
  70. package/dist/hooks/redux/index.d.ts +0 -1
  71. package/dist/redux/components/iconify/iconify.d.ts +0 -7
  72. package/dist/redux/components/iconify/index.d.ts +0 -2
  73. package/dist/redux/components/iconify/types.d.ts +0 -2
  74. package/dist/redux/components/index.d.ts +0 -2
  75. package/dist/redux/components/snackbar/index.d.ts +0 -2
  76. package/dist/redux/components/snackbar/snackbar-provider.d.ts +0 -5
  77. package/dist/redux/components/snackbar/styles.d.ts +0 -6
  78. package/dist/redux/hook-forms/form-provider.d.ts +0 -8
  79. package/dist/redux/hook-forms/index.d.ts +0 -11
  80. package/dist/redux/hook-forms/rhf-autocomplete.d.ts +0 -11
  81. package/dist/redux/hook-forms/rhf-checkbox.d.ts +0 -19
  82. package/dist/redux/hook-forms/rhf-radio-group.d.ts +0 -13
  83. package/dist/redux/hook-forms/rhf-select.d.ts +0 -11
  84. package/dist/redux/hook-forms/rhf-slider.d.ts +0 -7
  85. package/dist/redux/hook-forms/rhf-switch.d.ts +0 -7
  86. package/dist/redux/hook-forms/rhf-text-field.d.ts +0 -6
  87. package/dist/redux/hooks/index.d.ts +0 -1
  88. package/dist/redux/hooks/use-boolean.d.ts +0 -9
  89. package/dist/redux/redux/index.d.ts +0 -1
  90. package/dist/redux-toolkit/components/iconify/iconify.d.ts +0 -7
  91. package/dist/redux-toolkit/components/iconify/index.d.ts +0 -2
  92. package/dist/redux-toolkit/components/iconify/types.d.ts +0 -2
  93. package/dist/redux-toolkit/components/index.d.ts +0 -2
  94. package/dist/redux-toolkit/components/snackbar/index.d.ts +0 -2
  95. package/dist/redux-toolkit/components/snackbar/snackbar-provider.d.ts +0 -5
  96. package/dist/redux-toolkit/components/snackbar/styles.d.ts +0 -6
  97. package/dist/redux-toolkit/hook-forms/form-provider.d.ts +0 -8
  98. package/dist/redux-toolkit/hook-forms/index.d.ts +0 -11
  99. package/dist/redux-toolkit/hook-forms/rhf-autocomplete.d.ts +0 -11
  100. package/dist/redux-toolkit/hook-forms/rhf-checkbox.d.ts +0 -19
  101. package/dist/redux-toolkit/hook-forms/rhf-radio-group.d.ts +0 -13
  102. package/dist/redux-toolkit/hook-forms/rhf-select.d.ts +0 -11
  103. package/dist/redux-toolkit/hook-forms/rhf-slider.d.ts +0 -7
  104. package/dist/redux-toolkit/hook-forms/rhf-switch.d.ts +0 -7
  105. package/dist/redux-toolkit/hook-forms/rhf-text-field.d.ts +0 -6
  106. package/dist/redux-toolkit/hooks/index.d.ts +0 -1
  107. package/dist/redux-toolkit/hooks/use-boolean.d.ts +0 -9
  108. package/dist/redux-toolkit/index.d.ts +0 -2
  109. package/dist/redux-toolkit/redux/index.d.ts +0 -1
@@ -1 +1 @@
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;;;;"}
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;;;;"}
@@ -1,2 +1 @@
1
- export * from "./hook-forms";
2
- export * from "./hooks";
1
+ export * from "./use-boolean";
@@ -1 +1 @@
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;;;;"}
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;;;;"}
@@ -1,2 +1 @@
1
- export * from "./hook-forms";
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.5",
3
+ "version": "1.2.7",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -43,12 +43,21 @@
43
43
  "scripts": {
44
44
  "format": "prettier --write --parser typescript '**/*.{ts,tsx}'",
45
45
  "lint": "eslint . --ext .ts,.tsx --ignore-path .gitignore --fix",
46
- "build": "rollup -c",
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
  },
50
51
  "author": "",
51
52
  "license": "ISC",
53
+ "peerDependencies": {
54
+ "@emotion/react": "^11.11.0",
55
+ "@emotion/styled": "^11.11.0",
56
+ "@mui/icons-material": "^6.1.5",
57
+ "@mui/material": "^6.1.5",
58
+ "react": "18.2.0",
59
+ "react-dom": "18.2.0"
60
+ },
52
61
  "dependencies": {
53
62
  "@hookform/resolvers": "^3.9.1",
54
63
  "@iconify/react": "^5.0.2",
@@ -93,13 +102,5 @@
93
102
  "rollup-plugin-strip": "^1.2.2",
94
103
  "storybook": "^8.0.9",
95
104
  "typescript": "^5.4.5"
96
- },
97
- "peerDependencies": {
98
- "@emotion/react": "^11.13.3",
99
- "@emotion/styled": "^11.13.0",
100
- "@mui/icons-material": "^6.1.5",
101
- "@mui/material": "^6.1.5",
102
- "react": "18.2.0",
103
- "react-dom": "18.2.0"
104
105
  }
105
106
  }
@@ -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,2 +0,0 @@
1
- export * from './types';
2
- export { default } from './iconify';
@@ -1,2 +0,0 @@
1
- import { IconifyIcon } from '@iconify/react';
2
- export type IconifyProps = IconifyIcon | string;
@@ -1,2 +0,0 @@
1
- export * from "./iconify";
2
- export * from "./snackbar";
@@ -1,2 +0,0 @@
1
- export * from "notistack";
2
- export { default as SnackbarProvider } from "./snackbar-provider";
@@ -1,5 +0,0 @@
1
- type Props = {
2
- children: React.ReactNode;
3
- };
4
- export default function SnackbarProvider({ children }: Props): import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -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 { SliderProps } from "@mui/material/Slider";
2
- type Props = SliderProps & {
3
- name: string;
4
- helperText?: React.ReactNode;
5
- };
6
- export default function RHFSlider({ name, helperText, ...other }: Props): import("react/jsx-runtime").JSX.Element;
7
- 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,6 +0,0 @@
1
- import { TextFieldProps } from "@mui/material/TextField";
2
- type Props = TextFieldProps & {
3
- name: string;
4
- };
5
- export default function RHFTextField({ name, helperText, type, ...other }: Props): import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1 +0,0 @@
1
- export * from "./use-boolean";
@@ -1,9 +0,0 @@
1
- interface ReturnType {
2
- value: boolean;
3
- onTrue: () => void;
4
- onFalse: () => void;
5
- onToggle: () => void;
6
- setValue: React.Dispatch<React.SetStateAction<boolean>>;
7
- }
8
- export declare function useBoolean(defaultValue?: boolean): ReturnType;
9
- export {};
@@ -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,2 +0,0 @@
1
- export * from './types';
2
- export { default } from './iconify';
@@ -1,2 +0,0 @@
1
- import { IconifyIcon } from '@iconify/react';
2
- export type IconifyProps = IconifyIcon | string;
@@ -1,2 +0,0 @@
1
- export * from "./iconify";
2
- export * from "./snackbar";
@@ -1,2 +0,0 @@
1
- export * from "notistack";
2
- export { default as SnackbarProvider } from "./snackbar-provider";
@@ -1,5 +0,0 @@
1
- type Props = {
2
- children: React.ReactNode;
3
- };
4
- export default function SnackbarProvider({ children }: Props): import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -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 { SliderProps } from "@mui/material/Slider";
2
- type Props = SliderProps & {
3
- name: string;
4
- helperText?: React.ReactNode;
5
- };
6
- export default function RHFSlider({ name, helperText, ...other }: Props): import("react/jsx-runtime").JSX.Element;
7
- 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,6 +0,0 @@
1
- import { TextFieldProps } from "@mui/material/TextField";
2
- type Props = TextFieldProps & {
3
- name: string;
4
- };
5
- export default function RHFTextField({ name, helperText, type, ...other }: Props): import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1 +0,0 @@
1
- export * from "./use-boolean";
@@ -1,9 +0,0 @@
1
- interface ReturnType {
2
- value: boolean;
3
- onTrue: () => void;
4
- onFalse: () => void;
5
- onToggle: () => void;
6
- setValue: React.Dispatch<React.SetStateAction<boolean>>;
7
- }
8
- export declare function useBoolean(defaultValue?: boolean): ReturnType;
9
- export {};
@@ -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,2 +0,0 @@
1
- export * from './types';
2
- export { default } from './iconify';
@@ -1,2 +0,0 @@
1
- import { IconifyIcon } from '@iconify/react';
2
- export type IconifyProps = IconifyIcon | string;
@@ -1,2 +0,0 @@
1
- export * from "./iconify";
2
- export * from "./snackbar";
@@ -1,2 +0,0 @@
1
- export * from "notistack";
2
- export { default as SnackbarProvider } from "./snackbar-provider";
@@ -1,5 +0,0 @@
1
- type Props = {
2
- children: React.ReactNode;
3
- };
4
- export default function SnackbarProvider({ children }: Props): import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -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 { SliderProps } from "@mui/material/Slider";
2
- type Props = SliderProps & {
3
- name: string;
4
- helperText?: React.ReactNode;
5
- };
6
- export default function RHFSlider({ name, helperText, ...other }: Props): import("react/jsx-runtime").JSX.Element;
7
- 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,6 +0,0 @@
1
- import { TextFieldProps } from "@mui/material/TextField";
2
- type Props = TextFieldProps & {
3
- name: string;
4
- };
5
- export default function RHFTextField({ name, helperText, type, ...other }: Props): import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1 +0,0 @@
1
- export * from "./use-boolean";
@@ -1,9 +0,0 @@
1
- interface ReturnType {
2
- value: boolean;
3
- onTrue: () => void;
4
- onFalse: () => void;
5
- onToggle: () => void;
6
- setValue: React.Dispatch<React.SetStateAction<boolean>>;
7
- }
8
- export declare function useBoolean(defaultValue?: boolean): ReturnType;
9
- export {};
@@ -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,2 +0,0 @@
1
- export * from './types';
2
- export { default } from './iconify';
@@ -1,2 +0,0 @@
1
- import { IconifyIcon } from '@iconify/react';
2
- export type IconifyProps = IconifyIcon | string;
@@ -1,2 +0,0 @@
1
- export * from "./iconify";
2
- export * from "./snackbar";
@@ -1,2 +0,0 @@
1
- export * from "notistack";
2
- export { default as SnackbarProvider } from "./snackbar-provider";