v7.0.0
What's Changed
Breaking
<RangeInput>
prophideLabel
was renamed tohideRangeValue
<Select>
inputs now have a placeholder value by default ("Select")<Button>
/<SubmitButton>
- Use
variant
prop instead ofstyle
- Have
aria-disabled="true"
instead ofdisabled
attribute when props pristine or invalid aretrue
- Accept a forwarded ref
- Use
<RadioGroup>
/<CheckboxGroup>
- By default have
<legend>
element nested under the outermost<fieldset>
element (as opposed to<label>
) - No longer pass
className
prop to individual inputs
- By default have
<FileInput>
/<CloudinaryFileInput>
- Accept multiple files
- Always return an array
- No longer accept the
onLoad
prop - Store an object of file data (as opposed to a string)
- Pass in a file object to
previewComponent
forfile
and no longer pass avalue
prop - File input previews now have a remove button by default
<CloudinaryFileInput>
now requires anapiAdapter
prop<Spinner>
has a class ofspinner
(as opposed to an id)<TabBar>
now requiresoptions
andvalue
props<SetterLink>
was removed<Modal>
- Accepts
preventClose
instead ofhideClosebutton
prop - No longer overwrites the default inner modal or overlay classes
- Accepts an object for
className
andoverlayClassName
for stylingafterOpen
andbeforeClose
states - Targets
#root
instead ofbody
- Accepts
<FlashMessageContainer>
now invokesonDismiss
with the flash message object<DateInput>
s underlyingreact-datepicker
dependency updated from v1 to v4@launchpadlab/lp-hoc
was removed as a dependency
Enhancements
- GitHub Issue templates were added
<Table>
/<SortableTable>
now accept acaption
prop<Column>
components now pass additional props down to its underlying<td>
element<RadioGroup>
,<CheckboxGroup>
, and<Select>
now allowbool
as a value prop type<LabeledField>
now adds adisabled
class on the outermost<fieldset>
element when the input is disabled- Relaxed peer dependency requirement to include React 17
<RadioGroup>
allows for specifying props to be passed to individual<input type="radio">
elements viaradioInputProps
<CheckboxGroup>
allows for specifying props to be passed to individual<input type="checkbox">
elements viacheckboxInputProps
Bugs
<MaskedInput>
now acceptsonInit
andhtmlRef
props (supported OOTB bycleave.js/react
)
Migration Guide: v7.0.0
Full Changelog: v6.0.3...v7.0.0