v5.4.0
5.4.0 - 21.11.2023
What's New
-
This release introduced stable Theming approach and theme css variables:
- Theme css variable now assumed as a stable API, you can use them into your application styles.
- A lot of components styles tweaks according to the design changes.
- You can read more about Themes here - https://uui.epam.com/documents?id=themes
-
New EPAM brand 'Electric' Theme and
@epam/electric
package. To start using Electric theme you need:- Add
@epam/electric
package to your project - Add
import '@epam/electric/styles.css'
to the root of your application - Add
import '@epam/assets/css/theme/theme_electric.css'
to the root of your application - Add
uui-theme-electric
class to the html body node - Import all necessary components from
@epam/electric
package.
- Add
-
Added Dark theme for Loveship. To start using Dark Loveship theme you need to:
- Add
import '@epam/assets/css/theme/theme_loveship_dark.css';
to the root of your application - Add
uui-theme-loveship_dark
class to the html body node.
- Add
-
[Fonts]: Added
Source Sans Pro
font, which properly works with cssfont-weight
andfont-style
rules.
You can replace usagesSans Semibold
font withSource Sans Pro
andfont-weight: 600
,Sans Italic
withSource Sans Pro
andfont-style: italic
etc.
We also keep old font-faces and variables for backward compatibility. It's recommended to move to the new approach, since old one will be deprecated in feature. -
[skinContext]: removed skinContext from
UuiContexts
, it's not needed to provide it to the uui services, just remove its usage. -
[Typography]: removed typography mixins. Now typography applies via css classes. If you use mixins, replace it by adding
.uui-typography
class on the same node. -
[StatusIndicator]: added new
StatusIndicator
component. -
[CountIndicator]: added new
CountIndicator
component. -
[Badge] :
- [Breaking change]: removed fill "white" and "none" modes, use
fill="outline"
+ color instead them. - [Breaking change]:removed fill "transparent", use
StatusIndicator
component instead. - [Badge]: deprecated fill "semitransparent", it will be removed in future releases. Use
fill="outline'
instead.
- [Breaking change]: removed fill "white" and "none" modes, use
-
[LabeledInput]:
- added
sidenote
andfootnote
props - added
maxLength
andcharCounter
props. You can use them for cases when you need to show a counter which indicates the limit of symbols in input. - added possibility to provide
validationMessage
as react node
- added
-
[TextArea][Breaking Change]: removed
maxLength
prop, use LabeledInput withmaxLength
andcharCounter={ true }
props instead. -
[CheckBox, PickerList, RichTextView, Switch, TabButton, VerticalTabButton, ScrollBars]: removed
theme
prop. Use Theming approach instead. -
[PresetsPanel]: added the ability to add a modal confirmation window when deleting a preset
What's Fixed
- [useForm]: don't reset
inChanged
flag in case when server validation fails - [DataTableRow]: fixed
rawProps
prop - [DropdownMenuButton]: use
isActive
prop in priority under router.isActive - [PickerInput]: set
overflow: hidden;
on open for mobile - [DataTable]: fix columns reorder when there are hidden columns
- [TextArea and TextInput]: fix
maxLength
for Android - [DataTable]: fixed column order after pin action
- [PickerInput]: Disable select all button if list are empty, and it has no selection
- [DataTable]: added
role=table
- [SlateEditor]: fixed image caption appearance after upload
- [DropdownMenu]: added
focusLock
prop