Skip to content

Latest commit

 

History

History
788 lines (558 loc) · 33.1 KB

v1.3.0.mdx

File metadata and controls

788 lines (558 loc) · 33.1 KB
title description releaseUrl releaseDate version
Version 1.3.0
Explore the changelog for Chakra UI version 1.3.0. Learn about the latest features, bug fixes, and improvements.
February 6, 2021
1.3.0

@chakra-ui/pin-input@1.4.0

Minor Changes

  • 2eb58df12 #3296 Thanks @mattwells19! - Resolved an issue where completing character entry in PinInput failed to call onComplete.

Patch Changes

@chakra-ui/react@1.3.0

Minor Changes

  • 408aaaace #3227 Thanks @TimKolberger! - Introducing a generic TypeScript type ChakraTheme to improve the extendTheme function even further.

    import { extendTheme } from "@chakra-ui/react"
    
    export const customTheme = extendTheme({
      // here you get autocomplete for
      //   - existing definitions from the default theme
      //   - new components (Single and MultiStyle)
      //   - CSS definitions
      //   - color hues
      //   - etc.
    })
    
    export type MyCustomTheme = typeof customTheme

    You can get typesafe access to your custom theme like this:

    import { useTheme } from "@chakra-ui/react"
    import { MyCustomTheme } from "./my-custom-theme"
    
    const MyComponent = () => {
      const customTheme = useTheme<MyCustomTheme>()
      //...
    }

Patch Changes

@chakra-ui/styled-system@1.7.0

Minor Changes

  • a97e42568 #3290 Thanks @TimKolberger! - Theme Typings: Add autocomplete for negative space values

  • ff4a36bca #3245 Thanks @segunadebayo! - - Add support for textStyle and layerStyle in styled-system package. This makes it possible to use them in the component theme, css function, and sx prop as well.

    const theme = {
      textStyles: {
        caps: {
          fontWeight: "bold",
          fontSize: "24px",
        },
      },
    }
    
    const styles = css({ textStyle: "caps" })(theme)

    This also works for component theme as well.

    layerStyle, textStyle and apply can now take responsive values as well.

    • Refactored apply prop handling to use the style config pattern instead of add it imperatively.

Patch Changes

  • ef34c10a0 #3253 Thanks @TimKolberger! - Allow numbers for borderTop and provide autocomplete for fontWeight prop

  • 408aaaace #3227 Thanks @TimKolberger! - Introducing a generic TypeScript type ChakraTheme to improve the extendTheme function even further.

    import { extendTheme } from "@chakra-ui/react"
    
    export const customTheme = extendTheme({
      // here you get autocomplete for
      //   - existing definitions from the default theme
      //   - new components (Single and MultiStyle)
      //   - CSS definitions
      //   - color hues
      //   - etc.
    })
    
    export type MyCustomTheme = typeof customTheme

    You can get typesafe access to your custom theme like this:

    import { useTheme } from "@chakra-ui/react"
    import { MyCustomTheme } from "./my-custom-theme"
    
    const MyComponent = () => {
      const customTheme = useTheme<MyCustomTheme>()
      //...
    }
  • 61962345c #3291 Thanks @dominictwlee! - Support negative scale values for css variables.

  • Updated dependencies [ff4a36bca, 483687237, 61962345c]

@chakra-ui/system@1.3.0

Minor Changes

Patch Changes

@chakra-ui/theme@1.6.0

Minor Changes

  • 408aaaace #3227 Thanks @TimKolberger! - Introducing a generic TypeScript type ChakraTheme to improve the extendTheme function even further.

    import { extendTheme } from "@chakra-ui/react"
    
    export const customTheme = extendTheme({
      // here you get autocomplete for
      //   - existing definitions from the default theme
      //   - new components (Single and MultiStyle)
      //   - CSS definitions
      //   - color hues
      //   - etc.
    })
    
    export type MyCustomTheme = typeof customTheme

    You can get typesafe access to your custom theme like this:

    import { useTheme } from "@chakra-ui/react"
    import { MyCustomTheme } from "./my-custom-theme"
    
    const MyComponent = () => {
      const customTheme = useTheme<MyCustomTheme>()
      //...
    }

Patch Changes

@chakra-ui/utils@1.2.0

Minor Changes

Patch Changes

  • ff4a36bca #3245 Thanks @segunadebayo! - Removed objectAssign function in favor of using native Object.assign method. It is now supported in most browsers

    This function is only used once in the system package as well. This PR simply removes it to cut bundle size of utils. Less is more 😃.

  • 483687237 #3283 Thanks @segunadebayo! - Update focus util to handle unsupported browsers (Safari), and ability to opt out of requestAnimationFrame

@chakra-ui/cli@1.2.0

Minor Changes

Patch Changes

@chakra-ui/accordion@1.1.1

Patch Changes

@chakra-ui/alert@1.1.1

Patch Changes

@chakra-ui/avatar@1.1.1

Patch Changes

@chakra-ui/breadcrumb@1.1.1

Patch Changes

@chakra-ui/button@1.1.1

Patch Changes

@chakra-ui/checkbox@1.2.1

Patch Changes

@chakra-ui/clickable@1.0.4

Patch Changes

@chakra-ui/close-button@1.1.1

Patch Changes

@chakra-ui/color-mode@1.0.7

Patch Changes

@chakra-ui/control-box@1.0.4

Patch Changes

@chakra-ui/counter@1.0.7

Patch Changes

@chakra-ui/descendant@1.0.7

Patch Changes

  • Updated dependencies

@chakra-ui/editable@1.1.1

Patch Changes

@chakra-ui/focus-lock@1.0.4

Patch Changes

@chakra-ui/form-control@1.2.1

Patch Changes

@chakra-ui/hooks@1.1.4

Patch Changes

@chakra-ui/icon@1.1.1

Patch Changes

@chakra-ui/icons@1.0.5

Patch Changes

  • Updated dependencies

@chakra-ui/image@1.0.7

Patch Changes

@chakra-ui/input@1.1.1

Patch Changes

@chakra-ui/layout@1.3.1

Patch Changes

@chakra-ui/live-region@1.0.4

Patch Changes

@chakra-ui/media-query@1.0.5

Patch Changes

@chakra-ui/menu@1.1.1

Patch Changes

@chakra-ui/modal@1.5.1

Patch Changes

@chakra-ui/number-input@1.1.1

Patch Changes

@chakra-ui/popover@1.2.1

Patch Changes

@chakra-ui/popper@1.1.3

Patch Changes

@chakra-ui/portal@1.1.1

Patch Changes

@chakra-ui/progress@1.1.1

Patch Changes

@chakra-ui/radio@1.2.1

Patch Changes

@chakra-ui/select@1.1.1

Patch Changes

@chakra-ui/skeleton@1.1.2

Patch Changes

@chakra-ui/skip-nav@1.1.1

Patch Changes

@chakra-ui/slider@1.1.1

Patch Changes

@chakra-ui/spinner@1.1.1

Patch Changes

@chakra-ui/stat@1.1.1

Patch Changes

@chakra-ui/switch@1.1.1

Patch Changes

@chakra-ui/table@1.1.1

Patch Changes

@chakra-ui/tabs@1.1.1

Patch Changes

@chakra-ui/tag@1.1.1

Patch Changes

@chakra-ui/textarea@1.1.1

Patch Changes

@chakra-ui/theme-tools@1.0.4

Patch Changes

@chakra-ui/toast@1.1.9

Patch Changes

@chakra-ui/tooltip@1.1.1

Patch Changes

@chakra-ui/transition@1.0.8

Patch Changes

@chakra-ui/visually-hidden@1.0.4

Patch Changes

@chakra-ui/props-docs@1.0.14

Patch Changes

chakra-cra@1.0.14

Patch Changes

gatsby-starter-default@0.1.12

Patch Changes

chakra-nextjs@1.0.14

Patch Changes

chakra-nextjs-ts@1.0.14

Patch Changes

@chakra-ui/test-utils@1.0.14

Patch Changes

@chakra-ui/docs@1.1.2

Patch Changes