Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@brighthr/component-button

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@brighthr/component-button - npm Package Compare versions

Comparing version 1.6.1 to 2.0.0

dist/index.d.cts

11

dist/index.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc