Table of Contents
-
Package
@hv/uikit-common-themes
moved from the hv-uikit-common repository to this repository. The package will continue to be published under the same name, only the repository's location has changed. -
Packages
@hv/uikit-common-icons
and@hv/uikit-common-utils
are now deprecated, and will no longer receive updates. You can still use the other releases, if you need them. As for their contents:@hv/uikit-common-icons
was integrated in@hv/uikit-react-icons
package. SVG files can be found inassets/
folder.@hv/uikit-common-utils
was integrated in@hv/uikit-react-core
package, under/dist/utils
.
Material UI has been from v3 to v4, and is now a peer-depencency of our packages. You have to install it in your project, or upgrade if you're already using it and follow their migration guide.
The routing was removed from the provider. The component HvLink
that used the router now offers either a href
attribute or a <div />
with an onClick
.
The greater change in our layout component (the Grid) is the definition of spacing, that now uses a 7.5px factor. For example if we passed a spacing of 2, the resulting spacing between containers is 15px.
- Removed all deprecated icons. Generic Icons were moved up a directory (to
dist/
). - Added the icons index to the module for allowing the ES6 import usage (destructuring).
To import an icon you should use (using Checkbox
as an example):
-import { Checkbox } from "@hv/uikit-react-icons/dist/Generic";
+import { Checkbox } from "@hv/uikit-react-icons/dist";
- Icon box dimensions now follow Design System specifications by default.
With our first major release, several components where reviewed in order to remove properties already marked as deprecated. The following list details all breaking changes that you must fix.
- Components' event function props now always pass
event
as first parameter (onClick
,onChange
, etc.)
-<HvList onClick={(data, event)} />
+<HvList onClick={(event, data)} />
-<HvMultiButton onChange={(data)} />
+<HvMultiButton onChange={(event, data)} />
searchBoxLabels
andlabels
merged intolabels
checkboxSemantic
renamed tosemantic
checkboxSelected
renamed tochecked
checkboxValue
renamed tocheckboxProps.value
checkboxIndeterminate
renamed tocheckboxProps.indeterminate
type
renamed tocategory
.colorType
renamed tocategory
.
- Removed class
upperArea
onClickAction
renamed toonClick
checkboxSelected
renamed tochecked
- Removed prop
actionItemWidth
. Use CSS to change the width if necessary
Some of the Cards' props that are passed down to the Cards' sub-components were grouped into a single prop. This applies if a Card is not built using composition. The new group props are the following: mediaProps
, checkboxProps
, cardButtonProps
checkboxValue
changed tocheckboxProps.value
checkboxLabel
changed tocheckboxProps.label
checkboxIndeterminate
changed tocheckboxProps.indeterminate
As for the accessibility aria-* props, you should pass them directly to the sub-component by composition, using the grouped props:
-
mediaAriaLabel
,mediaAriaLabelledBy
,mediaAriaDescribedBy
removed. You should instead pass these props tomediaProps
-
checkboxAriaLabel
,checkboxAriaLabelledBy
,checkboxAriaDescribedBy
removed. You should instead pass these props tocheckboxProps
-
defaultAriaLabel
,defaultAriaLabelledBy
,defaultAriaDescribedBy
removed. You should instead pass these props tocardButtonProps
-
needsBorder
removed (was not in use)onClickAction
renamed toonClick
-
needsBorder
removed (was not in use)buttomBorder
class removedinnerCardContent
renamed tochildren
onClickAction
renamed toonClick
-
actions.icon
renamed toactions.iconCallback
checkboxSelected
changed tochecked
checkboxValue
changed tocheckboxProps.value
checkboxLabel
changed tocheckboxProps.label
checkboxIndeterminate
changed tocheckboxProps.indeterminate
checkboxAriaLabel
changed tocheckboxProps.aria-label
checkboxAriaLabelledby
changed tocheckboxProps.aria-labelledby
checkboxDescribedby
changed tocheckboxProps.aria-describedby
-
mediaTitle
renamed totitle
mediaContainer
class renamed toroot
mediaAriaLabel
removed. Passaria-label
directlymediaAriaLabelledBy
removed. Passaria-labelledby
directlymediaAriaDescribedBy
removed. Passaria-describedby
directlymediaTitle
renamed totitle
onClickAction
renamed toonClick
type
renamed tocategory
.colorType
renamed tocategory
.propsIcon
renamed toformControlLabelProps
- Removed
checkboxProps
andpropsLabel
. These are now directly passed to the Checkbox
label
changed tolabels.title
rootActive
class renamed torootOpen
onClick
callback was triggered not only on selection but also when opening the dropdown. A new specific callbackonToggleOpen
was created. This callback is triggered whenever the open state of the dropdown changes
validate
renamed toshowInfo
value
renamed toinitialValue
inputValue
renamed tovalue
iconVisible
renamed tovalidationIconVisible
iconPosition
renamed tovalidationIconPosition
inputTextConfiguration
replaced bylabels
container
class renamed toroot
.labelDisable
class renamed tolabelDisabled
.
kpiContainer
class renamed toroot
kpiTextConfiguration
renamed tolabels
.
- Renamed
root
class tolist
- Removed
listProps
props. Instead pass props directly to the component values.leftIcon
replaced byvalues.iconCallback
- These changes should also propagated to the
DropDropMenu
andVerticalNavigation
components
titleText
changed tolabels.titleText
recoveryTitle
changed tolabels.recoveryTitle
messageToRecover
changed tolabels.messageToRecover
messageAfterRecover
changed tolabels.messageAfterRecover
recoveryInputLabel
changed tolabels.recoveryInputLabel
recoveryPlaceholder
changed tolabels.recoveryPlaceholder
recoveryErrorMessage
changed tolabels.recoveryErrorMessage
userNameInputLabel
changed tolabels.userNameInputLabel
userNamePlaceHolder
changed tolabels.userNamePlaceHolder
passwordInputLabel
changed tolabels.passwordInputLabel
passwordPlaceHolder
changed tolabels.passwordPlaceHolder
rememberMeLabel
changed tolabels.rememberMeLabel
incorrectCredentialsMessage
changed tolabels.incorrectCredentialsMessage
-
- Renamed
logoContainer
class toroot
. - Renamed
root
class totitleContainer
.
- Renamed
- Removed
iconContainer
class - usecloseButton
class instead. -
- Renamed class
action
tospacing
.
- Renamed class
- Removed
btnBase
andbtnSecondary
classes - usebutton
class instead. - Renamed
rootVertical
class tovertical
.
propsLabel
renamed toformControlLabelProps
- Removed
radioProps
andpropsIcon
. Instead pass props directly to the component
message
renamed tolabel
- Now has
offset=60
as a default, matchingHvBanner
.
- Css class
labelContainer
passed to theroot
titleText
changed tolabels.titleText
subtitleText
changed tolabels.subtitleText
inputTextConfiguration
replaced bylabels
value
renamed toinitialValue
(used just for initial values)inputValue
renamed tovalue
selectedTitle
changed tolabels.selectedTitle
notSelectedTitle
changed tolabels.notSelectedTitle
- Removed display inline-table from icon
- Renamed
multitooltip
class totooltipMulti
. tooltipAnchor
removes, now uses composition.