@kaizen/draft-button
Advanced tools
Comparing version
import React, { Ref, ComponentType, FocusEvent, MouseEvent } from "react"; | ||
export declare type CustomButtonProps = { | ||
export type CustomButtonProps = { | ||
id?: string; | ||
@@ -13,3 +13,3 @@ className: string; | ||
}; | ||
export declare type GenericProps = { | ||
export type GenericProps = { | ||
id?: string; | ||
@@ -36,10 +36,10 @@ label: string; | ||
}; | ||
export declare type AdditionalContentProps = { | ||
export type AdditionalContentProps = { | ||
additionalContent?: React.ReactNode; | ||
}; | ||
declare type LabelPropsGeneric = { | ||
type LabelPropsGeneric = { | ||
iconPosition?: "start" | "end"; | ||
primary?: boolean; | ||
}; | ||
declare type WorkingProps = { | ||
type WorkingProps = { | ||
working: true; | ||
@@ -49,12 +49,12 @@ workingLabel: string; | ||
}; | ||
declare type WorkingUndefinedProps = { | ||
type WorkingUndefinedProps = { | ||
working?: false; | ||
}; | ||
export declare type LabelProps = LabelPropsGeneric & (WorkingProps | WorkingUndefinedProps); | ||
export declare type IconButtonProps = GenericProps & (WorkingProps | WorkingUndefinedProps); | ||
export declare type ButtonProps = GenericProps & LabelProps; | ||
declare type Props = ButtonProps & { | ||
export type LabelProps = LabelPropsGeneric & (WorkingProps | WorkingUndefinedProps); | ||
export type IconButtonProps = GenericProps & (WorkingProps | WorkingUndefinedProps); | ||
export type ButtonProps = GenericProps & LabelProps; | ||
type Props = ButtonProps & { | ||
iconButton?: boolean; | ||
} & AdditionalContentProps; | ||
declare type BadgeProps = { | ||
type BadgeProps = { | ||
text: string; | ||
@@ -65,3 +65,3 @@ animateChange?: boolean; | ||
}; | ||
export declare type ButtonRef = { | ||
export type ButtonRef = { | ||
focus: () => void; | ||
@@ -68,0 +68,0 @@ }; |
{ | ||
"name": "@kaizen/draft-button", | ||
"version": "6.2.12", | ||
"version": "6.2.13", | ||
"description": "The draft Button component", | ||
@@ -32,3 +32,3 @@ "scripts": { | ||
"dependencies": { | ||
"@kaizen/component-library": "^16.1.9", | ||
"@kaizen/component-library": "^16.1.10", | ||
"@kaizen/draft-badge": "^1.13.3", | ||
@@ -46,3 +46,3 @@ "@kaizen/loading-spinner": "^2.3.3", | ||
}, | ||
"gitHead": "540f5c65cab39f988789abbe2ab27ebc08edb1ba" | ||
"gitHead": "c8925f98c3c15c940a3549228572e75212a3ed31" | ||
} |
Sorry, the diff of this file is too big to display
124010
0.09%