github chakra-ui/chakra-ui @chakra-ui/accordion@1.4.0

latest releases: @chakra-ui/system@2.6.2, @chakra-ui/styled-system@2.9.2, @chakra-ui/storybook-addon@5.1.0...
2 years ago

Minor Changes

  • #4991
    6095eaf9a
    Thanks @segunadebayo! - Update build system
    we use from a custom babel cli setup to
    preconstruct.

    The previous build system transpiles the code in src directory to dist/esm
    and dist/cjs keeping the same file structure. The new build system merges
    all files in src and transpiles to a single esm and cjs file.

    Potential Breaking Change: The side effect of this is that, if you
    imported any function, component or hook using the undocumented approach
    like
    import { useOutsideClick } from "@chakra-ui/hooks/dist/use-outside-click",
    you'll notice that the this doesn't work anymore.

    Here's how to resolve it:

    // Won't work 🎇
    import { useOutsideClick } from "@chakra-ui/hooks/dist/use-outside-click"
    
    // Works ✅
    import { useOutsideClick } from "@chakra-ui/hooks"

    If this affected your project, we recommend that you import hooks, functions
    or components the way it's shown in the documentation. This will help keep
    your project future-proof.

Patch Changes

  • Updated dependencies
    [6095eaf9a]:
    • @chakra-ui/descendant@2.1.0
    • @chakra-ui/hooks@1.7.0
    • @chakra-ui/icon@1.2.0
    • @chakra-ui/react-utils@1.2.0
    • @chakra-ui/transition@1.4.0
    • @chakra-ui/utils@1.9.0

Don't miss a new chakra-ui release

NewReleases is sending notifications on new releases.