Comparing version 1.0.0 to 1.0.1
@@ -1,2 +0,29 @@ | ||
import { Button } from './Button'; | ||
/// <reference types="react" /> | ||
interface ButtonProps { | ||
/** | ||
* Is this the principal call to action on the page? | ||
*/ | ||
primary?: boolean; | ||
/** | ||
* What background color to use | ||
*/ | ||
backgroundColor?: string; | ||
/** | ||
* How large should the button be? | ||
*/ | ||
size?: 'small' | 'medium' | 'large'; | ||
/** | ||
* Button contents | ||
*/ | ||
label: string; | ||
/** | ||
* Optional click handler | ||
*/ | ||
onClick?: () => void; | ||
} | ||
/** | ||
* Primary UI component for user interaction | ||
*/ | ||
declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => JSX.Element; | ||
export { Button }; |
{ | ||
"name": "shira", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "UI components", | ||
"main": "lib/index.js", | ||
"main": "lib/index.cjs.js", | ||
"module": "lib/index.esm.js", | ||
"repository": "git@github.com:taslim-a-hussain/shira.git", | ||
"author": "Taslim A Hussain", | ||
"license": "MIT", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
@@ -28,3 +30,5 @@ "lib" | ||
"react-dom": "^18.2.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.76.0", | ||
"rollup-plugin-dts": "^4.2.2", | ||
"rollup-plugin-peer-deps-external": "^2.2.4", | ||
@@ -42,2 +46,3 @@ "rollup-plugin-postcss": "^4.0.2", | ||
"scripts": { | ||
"prebuild": "rimraf lib", | ||
"build": "rollup -c", | ||
@@ -44,0 +49,0 @@ "storybook": "start-storybook -p 6006", |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
8339
8
75
23
2