Skip to content

Latest commit

 

History

History
721 lines (501 loc) · 30.9 KB

v1.5.0.mdx

File metadata and controls

721 lines (501 loc) · 30.9 KB
title description releaseUrl releaseDate version
Version 1.5.0
Explore the changelog for Chakra UI version 1.5.0. Learn about the latest features, bug fixes, and improvements.
April 7, 2021
1.5.0

Minor Changes

  • 75817ec42 #3733 Thanks @segunadebayo! - - Return prop getters for popover header and body and use ref callback to determine element's presense instead of useEffect.

    • Mark usePopover as internal for now.

    • Add support for rootProps to PopoverContent to allow passing props to popover's positioner.

    • Make it possible to add custom motion variants so users can orchestrate custom transitions.

    • Remove unused dependencies

    • Move popover arrow shadow color computation to popover's theme.

Patch Changes

Minor Changes

  • 75817ec42 #3733 Thanks @segunadebayo! - Add prop getters for popper and arrow for better ssr support

    Replace utils dependency with react-utils

Patch Changes

Minor Changes

Patch Changes

Minor Changes

  • 06612e3ba Thanks @segunadebayo! - Add TableContainer component to help tables scroll horizontally when overflowing.

    <TableContainer>
      <Table>
        {...}
      </Table>
    </TableContainer>

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

  • Updated dependencies

Patch Changes

Patch Changes

Patch Changes

  • d86a0f6b4 Thanks @segunadebayo! - - Refactor form label to use prop getter instead of hook for better consistency
    • Replace withFlushSync with scheduleMicrotask callback to prevent ReactDOM warning when an element us focused by calling .focus(). This works as well in concurrent mode.
  • Updated dependencies [87a03b320, 1a04a41bd, e481ba491]

Patch Changes

Patch Changes

Patch Changes

  • Updated dependencies

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

  • 75817ec42 #3733 Thanks @segunadebayo! - Popover

    • Moved maxW from popover's popper to content to allow for better control of the popover's width.
    • Use width instead of maxW to allow users more control of popover's width
    • Use --popover-bg css property to control popover and arrow background.
    <PopoverContent style={{ "--popover-bg": "purple" }}>
      <PopoverArrow />
    </PopoverContent>
    • Add popover arrow shadow color

    Select

    • Update select icon to use insetEnd instead of right for RTL.

    Skip Link

    • Update styles to use insetStart instead of left for RTL.

    Table

    • Update text align attribute to use end instead of right for RTL.
  • Updated dependencies [1a04a41bd, c69d2b983, e481ba491]

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

  • 1a04a41bd Thanks @segunadebayo! - Update import of shared utils from react-utils to utils

  • e481ba491 Thanks @segunadebayo! - - Extract functions from react-utils back to utils package

    • Remove withFlushSync function in favor of using a microtask callback
    • Import types for warn function

Patch Changes

Patch Changes

Patch Changes

Patch Changes