@newton_duarte/reusable-components 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,6 @@
1
+ interface CustomButtonProps {
2
+ buttonText: string;
3
+ onClickHandler: () => void;
4
+ }
5
+ declare const CustomButton: React.FC<CustomButtonProps>;
6
+ export default CustomButton;
@@ -0,0 +1,3 @@
1
+ export declare const StyledButton: import("@emotion/styled").StyledComponent<import("@mui/material/Button").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
2
+ ref?: import("react").Ref<HTMLButtonElement>;
3
+ }, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "href" | "color" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "size" | "startIcon" | "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -0,0 +1 @@
1
+ export { default as CustomButton } from './CustomButton';
@@ -0,0 +1,7 @@
1
+ interface CustomTextFieldProps {
2
+ label: string;
3
+ value: string;
4
+ onChangeHandler: (e: React.ChangeEvent<HTMLInputElement>) => void;
5
+ }
6
+ declare const CustomTextField: React.FC<CustomTextFieldProps>;
7
+ export default CustomTextField;
@@ -0,0 +1,3 @@
1
+ export declare const StyledTextField: import("@emotion/styled").StyledComponent<{
2
+ variant?: import("@mui/material/TextField").TextFieldVariants;
3
+ } & Omit<import("@mui/material/TextField").FilledTextFieldProps | import("@mui/material/TextField").OutlinedTextFieldProps | import("@mui/material/TextField").StandardTextFieldProps, "variant"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -0,0 +1 @@
1
+ export { default as CustomTextField } from './CustomTextField';
@@ -0,0 +1,2 @@
1
+ export { CustomTextField } from './components/CustomTextField';
2
+ export { CustomButton } from './components/CustomButton';
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@newton_duarte/reusable-components",
3
+ "version": "1.0.0",
4
+ "description": "This package implements react components based on MUI",
5
+ "type": "module",
6
+ "main": "lib/index.cjs",
7
+ "exports": {
8
+ "import": {
9
+ "default": "./lib/index.esm.js",
10
+ "types": "./lib/types/index.d.ts"
11
+ },
12
+ "require": {
13
+ "default": "./lib/index.cjs",
14
+ "types": "./lib/types/index.d.ts"
15
+ }
16
+ },
17
+ "files": [
18
+ "lib"
19
+ ],
20
+ "scripts": {
21
+ "build": "rollup -c --bundleConfigAsCjs",
22
+ "release-package": "npm run build && npx changeset publish"
23
+ },
24
+ "author": "Newton Duarte",
25
+ "license": "MIT",
26
+ "dependencies": {
27
+ "@emotion/react": "11.11.3",
28
+ "@emotion/styled": "11.11.0",
29
+ "@mui/material": "5.15.0"
30
+ },
31
+ "peerDependencies": {
32
+ "react": "18.2.0",
33
+ "react-dom": "18.2.0"
34
+ },
35
+ "devDependencies": {
36
+ "@changesets/cli": "^2.27.1",
37
+ "@rollup/plugin-commonjs": "^25.0.7",
38
+ "@rollup/plugin-node-resolve": "^15.2.3",
39
+ "rollup": "^4.13.0",
40
+ "rollup-plugin-delete": "^2.0.0",
41
+ "rollup-plugin-typescript2": "^0.36.0",
42
+ "typescript": "^5.4.2"
43
+ }
44
+ }