@dhis2/ui-icons
Advanced tools
Changelog
5.0.0 (2020-05-28)
widgets
onBackdropClick
prop has been renamed to onClickOutside
MenuDivider
and MenuSectionHeader
@dhis2/ui
using named exports.Layer
is an overlay component that fills the entire screen/page. Besides that it is also a key component to stack various components on top of one another. ComponentCover
is a similar component that only fills its parent, provided that has a non-static position. Both the Layer
and the ComponentCover
accept an onClick
and a translucent
prop. CenterContent
is a component that does exactly what it says on the tin. It also has a position
prop which can be used to vertically align the content at the top
, middle
(default), or bottom
. These new components replace the Backdrop
and the ScreenCover
, which had a slightly unclear scope and have now been removed. The Layer
uses the LayerContext
internally to control the stacking logic. This context has also been exposed via the useLayerContext
hook, which can be used to append portals to the current layer-node.@dhis2/ui-forms
components with 'FieldFF' to avoid conflicts with the base components in @dhis2/ui-core
and @dhis2/ui-widgets
, since all components are now exported in @dhis2/ui
. The FF stands for final-form, clarifying that the component is tied to final-form and making the relation with our regular Field components more clear. So, for example, instead of the regular <Input />
we used to export from ui-forms
we now have <InputFieldFF />
<FieldSetField />
component has been renamed to <FieldGroup />
<GroupControl />
component has been renamed to <FieldGroupFF />
Changelog
5.0.0-alpha.20 (2020-05-28)
widgets
Changelog
5.0.0-alpha.19 (2020-05-26)
onBackdropClick
prop has been renamed to onClickOutside