3.0.6
Library
Added
- Added passthrough property
unmountOnExittoPanelcomponent to allow for controlling what happens to child components of aPanelwhen it is collapsed.
Added
unmountOnExit to Panel component to allow for controlling what happens to child components of a Panel when it is collapsed.Fixed
Fixed
Changed
Fixed
truncate property did not properly respond on small screens due to change in MUI's responsive breakpoints in v5. This has been adjusted according to their docs.Added
base theme to the createTheme function to extend themes provided by the Unifi library.Box component from MUI for use in consuming libraries.Updated
Fixed
cursor: pointer style.color prop specified now fallback to default color as they did in v2.Updated MUI Core from v4 to v5
Added
refs where applicable. This may require changes tests if you are spying on these components as a component that uses React.forwardRef is an object and not a function.Changed
adaptV4Theme can be used to transform previous theme structures to the new structure. This function is deprecated and the preferred approach would be to migrate your previous theme(s) to the new structure.Grid component has changed to apply the negative margins only on the top and left sides of the grid container and padding only on the top and left sides of grid items. Previously, negative margins were applied to all sides of the container and padding to all sides of the items. This was not detailed as a breaking change but adjustments may need to be made if your use of the Grid was accounting for the previous behavior in your styles.Tabs components will no longer trigger the onChange callback if you click on a tab that is already selected.Autocomplete component has been changed to utilize the component shipped from MUI instead of the previous implementation. This component has feature parity with our previous implementation but functions more reliably. See the MUI documentation to find the props necessary to change in order to migrate to the new version.Changes in Component APIs:
justify prop on Grid components has been changed to justifyContent to mirror the CSS property.TextField: rowsMax prop was changed to maxRowsCircularProgress: variant of type "static" has been changed to be type "determinate".Collapse: collapsedHeight prop has been renamed to collapsedSize to support collapsing in both directions.Select: onChange is no longer a React event but instead a synthetic, native Event.disableBackdropClick: on Modal components and components that use modals (Drawer, Dialog, etc.) the disableBackdropClick prop has been removed in favor of handling the backdrop click case accordingly in the Modal's onClose handler.Typography: variant of "srOnly" has been removed, you can now use visuallyHidden style utility from @mui/utils in conjunction with the the sx prop instead.Badge: when using showZero={false}, the badge will no longer be rendered on the page if the value is 0. Previously it was rendered but had an invisible style.labelWidth: on outlined inputs and selects is no longer necessary, just pass the label as desired and the width will be automatically adjusted.Style / Structure changes:
Table components that have size small are a bit more dense, there was a decrease in the amount of padding on the right side of table cells.Button components no longer have an inner span element wrapping the text of the button. Styles / tests depending on this inner span will need to be adjusted accordingly. This change applies to any component that leverages button elements, for example the Pagination component.Typography classes that used to be used to apply style variants such as "colorInherit", "colorPrimary", "colorSecondary", "colorTextPrimary", "colorTextSecondary", "colorError", "displayInline" and "displayBlock" were removed and now considered part of the design system. Overrides / tests that depend on these classes will need to be adjusted accordingly.Checkbox and Switch components had some changes in their HTML structure / classes applied that may effect tests and style overrides that depend on them. They both now use the primary color by default instead of secondary, which is inline with Material guidelines and brings style parity with the Unifi Angular library.Tabs indicator default color is now the primary color, also done in order to be more inline with Material guidelines.DialogTitle has had its DOM structure flattened and no longer requires disableTypography to set your own Typography for the title.List component now has class names with prefix UnifiList instead of MuiList.Grid classes for alignContent and justifyContent are no longer used to apply those styles, as they are now part of the design system. Test against the CSS properties and adjust any CSS overrides that leveraged those classes accordingly.down(key) was changed to define a media query below the value defined by the corresponding breakpoint (exclusive), rather than the breakpoint above. between(start, end) was also updated to define a media query for the values between the actual values of start (inclusive) and end (exclusive). When using the down() breakpoints utility you need to update the breakpoint key by one step up. When using the between(start, end) the end breakpoint should also be updated by one step up. Same goes for instances of the Hidden component using xsDown, smDown, mdDown, lgDown, xlDown properties.Deprecated
createStyles and withStyles are now deprecated, in favor of using the emotion counterpart styled or the sx property on components.adaptV4Theme has been introduced as a way to help with migration to the new library but it is deprecated as it will not remain in MUI permanentlyHidden component has been deprecated in favor of using the useMediaQuery hook or the sx prop on components.fade utility function has been deprecate in favor of using alpha which should now be shipped from our package.Removed
RootRef component has been removed in favor of utilizing the ref prop provided by any component. Unifi has been updated to properly forward props to the underlying MUI component where appropriate which should help in this transition.Improved Styling on Tooltip
Improved Styling on Tooltip
Versioning
Versioning
Resolved Tooltip Bug
Removal of Tertiary Title
Addition of Tertiary Title
Addition of Error Color Prop
Enhanced the Autocomplete
Enhanced the Autocomplete
Added the <Pagination /> component
Added the <Autocomplete /> component
Update of the Unifi Theme palette values to align with the latest Nelnet Brand standards.
Updated palette values:
palette.primary.main: #107F1Bpalette.primary.light: #AED136palette.secondary.main: #0E729Apalette.secondary.light: #0AA0BEpalette.warning.main: #EE6B18palette.info.main: #0AA0BEpalette.success.main: #55A43AThese changes resulted in updates to the Notification colors for info and succes to correspond with those palette values.
dataliststyle prop to containing divdatalist property which is a structural variant for <List/> that offers three layouts intended for non-table key/value pairs. Check out the demos for more information.Deprecation Notice
The following components will be deprecated in the next release:
readonly styles, improved outlined variant contrast🎉 Hooray! Version 2.2.2 of the Unifi React Library is here! 🎉
This major release includes 91 stable, accessible components
This release closed the ~3% gap to achieve 100% test coverage 🎉
Additional updates:
🎉 Hooray! Version 1.0.0 of the Unifi React Library is here! 🎉
This release includes 86 stable, accessible components
During the Beta period, significant improvements were made to refine components and demos to meet Section 508/WCAG 2.1 AA standards. Additional patch release notes with more details can be found below.