@fixefy/fixefy-ui-components 0.0.2 → 0.0.4
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-cjs/ActionsTray/actions_tray.jsx +1 -0
- package/dist-cjs/ActionsTray/index.js +1 -0
- package/dist-cjs/ActionsTray/styles/actionsTray.styles.jsx +1 -0
- package/dist-cjs/FxButton/button.jsx +11 -0
- package/dist-cjs/FxButton/index.js +5 -0
- package/dist-cjs/FxButton/styles/button.styles.jsx +16 -0
- package/dist-es/ActionsTray/actions_tray.jsx +1 -0
- package/dist-es/ActionsTray/index.js +1 -0
- package/dist-es/ActionsTray/styles/actionsTray.styles.jsx +1 -0
- package/dist-es/FxButton/button.jsx +5 -0
- package/dist-es/FxButton/index.js +1 -0
- package/dist-es/FxButton/styles/button.styles.jsx +13 -0
- package/dist-types/ActionsTray/actions_tray.d.ts +0 -0
- package/dist-types/ActionsTray/index.d.ts +0 -0
- package/dist-types/ActionsTray/styles/actionsTray.styles.d.ts +0 -0
- package/dist-types/FxButton/button.d.ts +6 -0
- package/dist-types/FxButton/index.d.ts +2 -0
- package/dist-types/FxButton/styles/button.styles.d.ts +1 -0
- package/package.json +3 -2
|
@@ -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,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 @@
|
|
|
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
|
|
File without changes
|
|
@@ -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.
|
|
61
|
-
}
|
|
61
|
+
"version": "0.0.4"
|
|
62
|
+
}
|