Releases: studiobakers/react-ui-toolkit
Releases · studiobakers/react-ui-toolkit
1.0.0-alpha.3.2.0
Breaking Change
ariaLabel
prop was removed fromButton
component. Should usearia-label
which is an HTML attribute.
Fixes
- Caret position issue was fixed for the locale numbers. #100
formatNumber
utility was added again for the locale numbers.Input
component which type isnumber
, can have negative numbers.Input
component which type isnumber
, can have leading zero only ifshouldFormatToLocaleString
andmaximumFractionDigits
is not defined and if the input value is not negative.Button
component can haveref
prop withuseRef<HTMLButtonElement>
. #102FileUploadButton
component can haveref
prop withuseRef<HTMLLabelElement>
.
1.0.0-alpha.3.1.2
Fixes
- Add missing classnames to Toast and Input #99
1.0.0-alpha.3.1.1
1.0.0-alpha.3.1.0
1.0.0-alpha.3.0.2
Merge branch 'master' of https://github.com/Hipo/react-ui-toolkit
1.0.0-alpha.3.0.1
1.0.0-alpha.3.0.0
New
- Avatar #55 by @Anlerkan
- Textarea #64
- Countdown #72
- ProgressBar #70
- Toggle #79
- Switch #78
- Number Input #71
Fixes
- Typeaheadselect can remove tags with the backspace key. #59 by @Anlerkan
- Button width can be stable on the spinner state. #84
- Spinner was simplified. #81
- Button can have a custom spinner. #80
Breaking Changes
- Input component can have all native
type
props. Just It doesn't use nativenumber
, it usestext
type. #63
1.0.0-alpha.2.0.2
- Re-built and published to NPM
1.0.0-alpha.2.0.1
Breaking Changes
TypeaheadInput
component
- new
initialValue
prop added and it defaults to empty string. - when
value
prop is present and it has a string value, this means that TypeaheadInput's value is held as a state in the parent and should be controlled by the parent as well. So whenever value changes and it has a string value then we update the TypeaheadInput's state. TypeaheadInput still controls its own state as it has to deal with debouncing. - Removes
shouldResetValue
prop.
TypeaheadSelect
component
typeaheadProps
prop is updated to have the following type:Pick<TypeaheadInputProps, "id" | "placeholder" | "name" | "onFocus">
. Note how you cannot passvalue
under this object any longer.- new
initialKeyword
prop added and it defaults to empty string. - TypeaheadSelect now resets the input value by the default when an option is selected.
- new
controlledKeyword
prop is added. When this prop is present and it has a non-undefined value it means that the keyword is held as a state in the parent and therefore should be controlled by the parent. When this prop is present,TypeaheadSelect
never updates itskeyword
state (a good example of inversion of control). - Fixes
isDisabled
state to work properly typeahead-select__dropdown
andtypeahead-select__dropdown__header
classnames are renamed totypeahead-select
andtypeahead-select__header
, respectively.typeahead-select__input--is-dropdown-menu-open
andtypeahead-select__input--can-select-multiple
classnames are removed and the following classnames are added to the container:typeahead-select--has-selected-options
,typeahead-select--can-select-multiple
andtypeahead-select--is-dropdown-menu-open
1.0.0-alpha
Fixes
Breaking Changes
- Switched to BEM style #51 by @edizcelik
--dropdown-header-button-bg
removed #51 by @edizcelik