Comparing version 0.0.12 to 0.0.13
@@ -8,10 +8,6 @@ "use strict"; | ||
const button_styles_1 = require("./button.styles"); | ||
const fse = require('file-system'); | ||
const path = require('path'); | ||
const path1 = path.join(__dirname, 'button.styles.tsx'); | ||
const fscheck = fse.existsSync(path1); | ||
const Button = ({ customStyle, children, ...props }) => { | ||
return (react_1.default.createElement(button_styles_1.ButtonBase, Object.assign({ customStyle: customStyle }, props), path1 + String(fscheck))); | ||
return (react_1.default.createElement(button_styles_1.ButtonBase, Object.assign({ customStyle: customStyle }, props), children)); | ||
}; | ||
exports.default = Button; | ||
//# sourceMappingURL=button.js.map |
@@ -5,2 +5,3 @@ "use strict"; | ||
}; | ||
var _a; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -21,10 +22,10 @@ const styled_1 = __importDefault(require("@emotion/styled")); | ||
boxShadow: '0 0 0 1px #3498db', | ||
...theme_1.default.button['&:hover'], | ||
...((theme_1.default === null || theme_1.default === void 0 ? void 0 : theme_1.default.button) && (theme_1.default === null || theme_1.default === void 0 ? void 0 : theme_1.default.button['&:hover'])), | ||
}, | ||
i: { | ||
color: '#000', | ||
...theme_1.default.button.i, | ||
...(_a = theme_1.default === null || theme_1.default === void 0 ? void 0 : theme_1.default.button) === null || _a === void 0 ? void 0 : _a.i, | ||
}, | ||
...theme_1.default.button, | ||
...theme_1.default === null || theme_1.default === void 0 ? void 0 : theme_1.default.button, | ||
}, ({ customStyle }) => ({ ...customStyle })); | ||
//# sourceMappingURL=button.styles.js.map |
/// <reference types="react" /> | ||
import { TObjectStyles } from '../../theme/theme.types'; | ||
export interface IButton extends React.HTMLAttributes<HTMLButtonElement> { | ||
customStyle?: TObjectStyles; | ||
customStyle?: any; | ||
} | ||
export interface IButtonBase { | ||
customStyle?: TObjectStyles; | ||
customStyle?: any; | ||
as?: React.ElementType; | ||
} |
@@ -1,3 +0,2 @@ | ||
import { ITheme } from './theme.types'; | ||
declare const theme: ITheme; | ||
declare const theme: any; | ||
export default theme; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const theme = { | ||
button: {}, | ||
}; | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
let customTheme = {}; | ||
try { | ||
if (fs.existsSync(path.join(__dirname, '../../../../paku.config.js'))) { | ||
customTheme = require('../../../../paku.config.js').theme; | ||
} | ||
} | ||
catch (err) { | ||
console.warn(err); | ||
} | ||
const theme = customTheme; | ||
exports.default = theme; | ||
//# sourceMappingURL=theme.js.map |
{ | ||
"name": "paku", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10423
34
187
1