@brighthr/component-input
Advanced tools
Comparing version 3.0.5 to 3.0.7
@@ -13,3 +13,3 @@ import React from 'react'; | ||
/** The unit to be shown on the right side of the input */ | ||
unit?: 'days' | 'hrs' | 'mins'; | ||
unit?: 'days' | 'hrs' | 'mins' | '%'; | ||
/** Function to execute on click of the button */ | ||
@@ -27,19 +27,19 @@ onClickButton?: () => void; | ||
/** If true, shows red error state */ | ||
error?: boolean; | ||
error?: boolean | undefined; | ||
/** Sets the size of the input */ | ||
inputSize?: 'base' | 'xl'; | ||
inputSize?: "base" | "xl" | undefined; | ||
/** The icon to be shown on the left side of the input */ | ||
leftIcon?: React.ComponentType<React.SVGAttributes<SVGElement>>; | ||
leftIcon?: React.ComponentType<React.SVGAttributes<SVGElement>> | undefined; | ||
/** The icon to be shown on the right side of the input */ | ||
rightIcon?: React.ComponentType<React.SVGAttributes<SVGElement>>; | ||
rightIcon?: React.ComponentType<React.SVGAttributes<SVGElement>> | undefined; | ||
/** The unit to be shown on the right side of the input */ | ||
unit?: 'days' | 'hrs' | 'mins'; | ||
unit?: "days" | "hrs" | "mins" | "%" | undefined; | ||
/** Function to execute on click of the button */ | ||
onClickButton?: () => void; | ||
onClickButton?: (() => void) | undefined; | ||
/** Sets the Aria label for the button if `hasOverlay` and `hasButton` are `true` */ | ||
buttonAriaLabel?: string; | ||
buttonAriaLabel?: string | undefined; | ||
/** Sets the label to display above the input */ | ||
label?: string; | ||
label?: string | undefined; | ||
/** If true, sets the input to be required and adds red 'required' flag */ | ||
required?: boolean; | ||
required?: boolean | undefined; | ||
children?: React.ReactNode; | ||
@@ -46,0 +46,0 @@ } & React.RefAttributes<HTMLInputElement>>; |
{ | ||
"name": "@brighthr/component-input", | ||
"version": "3.0.5", | ||
"version": "3.0.7", | ||
"license": "MIT", | ||
@@ -26,3 +26,3 @@ "type": "module", | ||
}, | ||
"gitHead": "352b0e3d2846cedb4f28aab3bf959052e7b6b38f" | ||
"gitHead": "4df190ef89fa6cda834f948475322a0c635473cb" | ||
} |
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
24622