@fixefy/fixefy-ui-components 0.0.2 → 0.0.3

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 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Button = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const react_1 = tslib_1.__importDefault(require("react"));
6
+ const button_styles_1 = require("./styles/button.styles");
7
+ function Button(_a) {
8
+ var { type = 'primary', children } = _a, rest = tslib_1.__rest(_a, ["type", "children"]);
9
+ return <button_styles_1.ButtonStyled {...rest}>{children}</button_styles_1.ButtonStyled>;
10
+ }
11
+ exports.Button = Button;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Button = void 0;
4
+ var button_1 = require("./button");
5
+ Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return button_1.Button; } });
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ButtonStyled = void 0;
4
+ const material_1 = require("@mui/material");
5
+ const styles_1 = require("@mui/material/styles");
6
+ exports.ButtonStyled = (0, styles_1.styled)(material_1.Button)(({ theme, variant }) => {
7
+ const border = variant === 'text' ? `0px solid #0000` : `1px solid ${theme.palette.primary.main}`;
8
+ return {
9
+ border,
10
+ minHeight: '40px',
11
+ borderRadius: '100px',
12
+ minWidth: '87px',
13
+ fontSize: '12px',
14
+ letterSpacing: '0.5px',
15
+ };
16
+ });
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { ButtonStyled } from './styles/button.styles';
3
+ export function Button({ type = 'primary', children, ...rest }) {
4
+ return <ButtonStyled {...rest}>{children}</ButtonStyled>;
5
+ }
@@ -0,0 +1 @@
1
+ export { Button } from './button';
@@ -0,0 +1,13 @@
1
+ import { Button } from '@mui/material';
2
+ import { styled } from '@mui/material/styles';
3
+ export const ButtonStyled = styled(Button)(({ theme, variant }) => {
4
+ const border = variant === 'text' ? `0px solid #0000` : `1px solid ${theme.palette.primary.main}`;
5
+ return {
6
+ border,
7
+ minHeight: '40px',
8
+ borderRadius: '100px',
9
+ minWidth: '87px',
10
+ fontSize: '12px',
11
+ letterSpacing: '0.5px',
12
+ };
13
+ });
File without changes
File without changes
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export type ButtonProps = {
3
+ children: any;
4
+ [x: string]: any;
5
+ };
6
+ export declare function Button({ type, children, ...rest }: ButtonProps): React.JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { Button } from './button';
2
+ export type { ButtonProps } from './button';
@@ -0,0 +1 @@
1
+ export declare const ButtonStyled: StyledComponent<ComponentProps, SpecificComponentProps, JSXProps>;
package/package.json CHANGED
@@ -8,6 +8,7 @@
8
8
  "@mui/material": "^5.14.11",
9
9
  "@mui/styled-engine": "^5.14.11",
10
10
  "@mui/styles": "^5.14.11",
11
+ "next": "^13.5.3",
11
12
  "react": "^18.2.0",
12
13
  "react-dom": "^18.2.0"
13
14
  },
@@ -57,5 +58,5 @@
57
58
  }
58
59
  },
59
60
  "types": "./dist-types/index.d.ts",
60
- "version": "0.0.2"
61
- }
61
+ "version": "0.0.3"
62
+ }