-
Notifications
You must be signed in to change notification settings - Fork 75
Migration guide to UUI v.5
In UUI version 5, we have focused on aligning functionality and visual appearance with current design specifications. We have also worked on aligning the code base and interfaces of the Promo and Loveship skins. As a result, we removed or deprecate some props or their values, the full list of changes could be found below.
While there is a substantial list of deprecations, we have analyzed several projects and found that most of them do not significantly impact existing projects. These deprecations are mainly relevant to older projects (started over 2 years ago). We are committed to closely collaborating with projects to assist in managing these breaking changes.
For many cases of breaking changes, you can find suitable replacements from the current set of values. However, if our breaking change recommendations do not fit your specific case, please reach out to your designer or contact us directly to identify the appropriate replacement.
Required global actions:
- Add import styles from
import '@epam/uui/styles.css';to the root of your app. - Add theme class
uui-theme-promooruui-theme-loveshiptobodytag according to the skin you are using. - The previous codebase of
@epam/uuipackage was moved to the@epam/uui-core. So it's required to change previous imports.
Loveship skin changes:
- [Button]:
- Removed
lineHeight,fontSizeprops; - Removed following
colorprop values: 'carbon', 'cobalt', 'lavanda', 'fuchsia', 'night50', 'night100', 'night200', 'night300', 'night400', 'night700', 'night800', 'night900'. - Added new 'gray' color value, which equals previous 'night600' value;
- Colors 'night500' | 'night600' marked as deprecated and will be removed in future releases, use 'gray' color instead.
- Removed
- [Badge]:
- Removed deprecated 'carbon' color;
- Removed
lineHeight,fontSizeprops.
- [Blocker]: removed
colorprop, 'sky' spinner color is used by default. - [Checkbox]: removed prop
color, 'blue' value is used by default. - [DatePicker]: removed
suffix&prefixprops. UseControlGroupcomponent to create an input with prefix or suffix. - [FlexRow]: 'borderBottom' prop type changed to
boolean, 'night400' color is used for border by default. - [IconButton]:
- Removed deprecated 'carbon' color, default color changed to 'night600';
- Colors 'night200', 'night300', 'night400' marked as deprecated and will be removed in future releases.
- [IconContainer]: prop
coloris deprecated and will be removed in future releases. Please make icon color configuration by yourself, e.g. viacxorstyleprop. - [LabeledInput]: removed 'color' prop, 'night800' is used by default
- [LinkButton]:
- Removed deprecated color 'carbon';
- Removed
lineHeight,font,fontSizeprops.
- [ModalBlocker]: removed
blockerShadowprop, 'dark' value is used by default; - [ModalHeader]:
- Removed
backgroundprop; -
borderBottomprop type changed toboolean, 'night400' color is used for border by default.
- Removed
- [NotificationCard]: removed colors
'carbon' | 'cobalt' | 'lavanda' | 'fuchsia' | 'white' | 'night50' | 'night100' | 'night200' | 'night300' | 'night400' | 'night500' | 'night700' | 'night800' | 'night900'. - [PageButton]: removed, use Button instead
- [PickerInput]: removed
suffix&prefixprops. UseControlGroupcomponent to create an input with prefix or suffix. - [PickerList]: removed theme prop.
- [RadioInput]: removed
colorprop, 'sky' color is used by default. - [Rating]: removed
colorprop, 'sun' color is used by default - [RichTextView]: removed theme prop.
- [Slider]: removed
colorprop, 'sky' color is used by default. - [Spinner]: removed
colorprop, 'sky' color is used by default. - [Switch]: removed
colorprop, 'sky' color is used by default. - [Tag]: removed
colorprop, 'night300' color is used by default. - [Text]: removed colors
'carbon' | 'cobalt' | 'lavanda' | 'fuchsia' | 'night100' | 'night200'. - [TextArea]: removed
fontSize,lineHeightprops. - [TextInput]:
- Removed
fontSize,lineHeightprops; - Removed
suffix&prefixprops. UseControlGroupcomponent to create an input with prefix or suffix.
- Removed
- [TextPlaceholder]: removed
colorprop, 'night400' color is used by default. - [Tooltip]: changed type of prop
colorto'white' | 'fire' | 'gray' | 'night900', color 'night900' is deprecated & will be removed in the future releases use 'gray' instead. - [RangeSlider]: removed
colorprop, 'sky' color is used by default. - Removed components:
AvatarRow, ColumnPickerFilter, Carousel.
Promo skin changes
- [Button]: color 'gray50' is deprecated and will be removed in the future release. Use 'gray' instead.
- [FlexRow]: type 'borderBottom' changed to
boolean, 'gray40' color is used for border by default. - [IconButton]: default color changed to 'gray60'.
- [LabeledInput]: removed
colorprop, 'gray80' is used by default - [LinkButton]:
- Removed
font,fontSize,lineHeightprops; - Added new colors
'gray10' | 'gray60'.
- Removed
- [ModalBlocker]: removed deprecated prop
blockerShadow, 'dark' value is used by default; - [PickerInput]: removed deprecated props
suffix,prefix. UseControlGroupcomponent to create an input with prefix or suffix. - [Text]: added new colors
'blue' | 'green' | 'amber' | 'red' | 'white' | 'gray50'. - [TextPlaceholder]: removed deprecated prop
color, 'gray40' color is used for border by default. - [Tooltip]: color 'gray90' is deprecated and will be removed in the future release. Use 'gray' instead.
- [Spinner]: removed deprecated prop
color, 'blue' is used by default - removed
ColumnPickerFiltercomponent.