Skip to content

Latest commit

 

History

History
371 lines (262 loc) · 13 KB

v2.3.0.mdx

File metadata and controls

371 lines (262 loc) · 13 KB
title description releaseUrl releaseDate version
Version 2.3.0
Explore the changelog for Chakra UI version 2.3.0. Learn about the latest features, bug fixes, and improvements.
August 29, 2022
2.3.0

Minor Changes

  • e8f634e0d Thanks @segunadebayo! - Add support for changing avatar badge placement.

    The badge placement can be set to top-start, top-end, bottom-start or bottom-end.

    <Avatar
      name="Uchiha Itachi"
      src="https://uinames.com/api/photos/female/18.jpg"
    >
      <AvatarBadge placement="top-start" />
    </Avatar>

Patch Changes

  • Updated dependencies

Minor Changes

  • e8f634e0d Thanks @segunadebayo! - Add support for changing avatar badge placement.

    The badge placement can be set to top-start, top-end, bottom-start or bottom-end.

    <Avatar
      name="Uchiha Itachi"
      src="https://uinames.com/api/photos/female/18.jpg"
    >
      <AvatarBadge placement="top-start" />
    </Avatar>

Patch Changes

Minor Changes

  • #6221 872c0ccf5 Thanks @segunadebayo! - Add defineStyle and defineStyleConfig to improve the TypeScript authoring experience of style objects and single part component themes.

    import { defineStyleConfig, defineStyle } from "@chakra-ui/styled-system"
    
    // authoring style objects
    const style = defineStyle({
      marginTop: "20px",
    })
    
    // authoring style configs for single part component
    const button = defineStyleConfig({
      baseStyle: {},
      variants: {},
      defaultProps: {},
    })

    Add createMultiStyleConfigHelpers factory that provides functions that help improve the TypeScript authoring experience of multipart component themes.

    import { createMultiStyleConfigHelpers } from "@chakra-ui/styled-sytem"
    
    // create scoped helpers for that defined parts
    const helpers = createMultiStyleConfigHelpers(["button", "label"])
    const { definePartsStyle, defineMultiStyleConfig } = helpers
    
    // authoring styles for each part
    const outlineVariant = definePartsStyle({
      button: {},
      label: {},
    })
    
    // authoring styles for multipart component
    const accordion = defineMultiStyleConfig({
      baseStyle: {
        button: {},
        label: {},
      },
      variants: {
        outline: outlineVariant,
      },
    })

Patch Changes

  • #6559 0cae42007 Thanks @segunadebayo! - Refactors the theme to use design tokens and css variables as much as possible.

    Improve support for 100vh values by using a polyfill css variable --chakra-vh.

Patch Changes

Patch Changes

Patch Changes

  • #6559 0cae42007 Thanks @segunadebayo! - Refactors the theme to use design tokens and css variables as much as possible.

    Improve support for 100vh values by using a polyfill css variable --chakra-vh.

Patch Changes

Patch Changes

Patch Changes

Patch Changes

  • #6559 0cae42007 Thanks @segunadebayo! - Refactors the theme to use design tokens and css variables as much as possible.

    Improve support for 100vh values by using a polyfill css variable --chakra-vh.

  • Updated dependencies [0cae42007]

Patch Changes

  • dda7d71bb Thanks @segunadebayo! - Fix issue where select theme throws when "field" part is not defined

  • Updated dependencies

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

  • e8f634e0d Thanks @segunadebayo! - Add support for changing avatar badge placement.

    The badge placement can be set to top-start, top-end, bottom-start or bottom-end.

    <Avatar
      name="Uchiha Itachi"
      src="https://uinames.com/api/photos/female/18.jpg"
    >
      <AvatarBadge placement="top-start" />
    </Avatar>
  • 5bacbdc2c Thanks @segunadebayo! - Refactor alert theme to use css variables

  • #6559 0cae42007 Thanks @segunadebayo! - Refactors the theme to use design tokens and css variables as much as possible.

    Improve support for 100vh values by using a polyfill css variable --chakra-vh.

  • #6221 872c0ccf5 Thanks @segunadebayo! - Refactor to use the new helpers from styled-system package

  • Updated dependencies [5e6c3fd65, 872c0ccf5, 872c0ccf5]

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes

Patch Changes