@brighthr/component-button
Advanced tools
Comparing version 1.6.1 to 2.0.0
import * as React from 'react'; | ||
import { IconName } from '@brighthr/component-icon'; | ||
declare type ButtonSize = 'xs' | 'sm' | 'base' | 'lg' | 'xl'; | ||
@@ -7,6 +9,6 @@ declare type ButtonChildrenProps = { | ||
isLoading?: boolean; | ||
iconName?: string; | ||
iconName?: IconName; | ||
iconPosition?: 'left' | 'right'; | ||
}; | ||
export declare type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & ButtonChildrenProps & { | ||
declare type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & ButtonChildrenProps & { | ||
type?: 'button' | 'submit'; | ||
@@ -18,3 +20,4 @@ outlineButton?: boolean; | ||
}; | ||
export default function Button({ text, type, size, outlineButton, textButton, isLoading, fullWidth, color, iconName, iconPosition, className, ...rest }: ButtonProps): React.ReactElement; | ||
export {}; | ||
declare function Button({ text, type, size, outlineButton, textButton, isLoading, fullWidth, color, iconName, iconPosition, className, ...rest }: ButtonProps): React.ReactElement; | ||
export { ButtonProps, Button as default }; |
{ | ||
"name": "@brighthr/component-button", | ||
"version": "1.6.1", | ||
"version": "2.0.0", | ||
"license": "MIT", | ||
"type": "module", | ||
"source": "src/index.tsx", | ||
"exports": "./dist/index.modern.js", | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.module.js", | ||
"types": "./dist/index.d.ts", | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"publishConfig": { | ||
@@ -15,4 +16,4 @@ "access": "public" | ||
"scripts": { | ||
"start": "microbundle watch --jsx React.createElement --jsxFragment React.Fragment", | ||
"build": "microbundle --jsx React.createElement --jsxFragment React.Fragment" | ||
"start": "tsup --watch", | ||
"build": "tsup" | ||
}, | ||
@@ -38,7 +39,7 @@ "eslintConfig": { | ||
"dependencies": { | ||
"@brighthr/component-icon": "^1.1.26", | ||
"@brighthr/component-spinner": "^0.0.4", | ||
"@brighthr/component-icon": "^2.0.0", | ||
"@brighthr/component-spinner": "^1.0.0", | ||
"classnames": "^2.3.1" | ||
}, | ||
"gitHead": "30b0a4ad05e17e5f811ee29a47e5ed6fc4ef8338" | ||
"gitHead": "1b82cedd964ef0ee483494eba535cdd0e48716ea" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
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
1
30183
8
280
1
+ Added@brighthr/component-icon@2.1.5(transitive)
+ Added@brighthr/component-spinner@1.0.2(transitive)
+ Added@brighthr/icons@1.135.0(transitive)
- Removed@brighthr/component-icon@1.1.26(transitive)
- Removed@brighthr/component-spinner@0.0.4(transitive)