Skip to content

Latest commit

 

History

History
764 lines (510 loc) · 25.3 KB

CHANGELOG.md

File metadata and controls

764 lines (510 loc) · 25.3 KB

Change Log

2.1.2

Patch Changes

  • Updated dependencies [2647e00ef]:
    • @chakra-ui/anatomy@2.2.2

2.1.1

Patch Changes

2.1.0

Minor Changes

  • 754d9d4f4 Thanks @segunadebayo! - To improve support for the App Router, all components and hooks are exported with the "use client" directive.

Patch Changes

2.0.18

Patch Changes

2.0.17

Patch Changes

2.0.16

Patch Changes

2.0.15

Patch Changes

  • #7154 2d7398a01 Thanks @segunadebayo! - ## All components

    Improved the bundling setup for all components.

    • Switched to the .mjs file extension for correct ESM behavior
    • Switched to the latest tsup will uses automatic JSX runtime detection removing the need for manually inject classic React import
    • Moved tsup config to package.json since it's very minimal
    • Removed clean-package.config.json in favor of the package.json property
    • Fixed issue where Storybook addon (dark mode and RTL) was not working
  • Updated dependencies [2d7398a01]:

    • @chakra-ui/anatomy@2.1.1
    • @chakra-ui/shared-utils@2.0.4

2.0.14

Patch Changes

2.0.13

Patch Changes

  • #6945 75eaba929 Thanks @anddoutoi! - Fix issue where using @chakra-ui/react in a TypeScript project with "type": "module" in package.json and "moduleResolution": "Node16" in tsconfig.json cannot find the types.
  • Updated dependencies [2a86d6c35, 75eaba929]:
    • @chakra-ui/anatomy@2.1.0

2.0.12

Patch Changes

2.0.11

Patch Changes

2.0.10

Patch Changes

  • #6508 445661955 Thanks @anubra266! - - Initial release of react hooks
    • Refactor all packages to reduce bundle size
    • Refactor code for proper prop doc generatation
  • Updated dependencies [445661955]:
    • @chakra-ui/anatomy@2.0.5
    • @chakra-ui/utils@2.0.9

2.0.9

Patch Changes

  • Force release

  • Updated dependencies []:

    • @chakra-ui/anatomy@2.0.4
    • @chakra-ui/utils@2.0.8

2.0.8

Patch Changes

2.0.7

Patch Changes

  • Force new release

  • Updated dependencies []:

    • @chakra-ui/anatomy@2.0.3
    • @chakra-ui/utils@2.0.6

2.0.6

Patch Changes

  • #6356 1839e22eb Thanks @segunadebayo! - - Force release due to change in build configuration
    • Update package main and module entries
  • Updated dependencies [1839e22eb]:
    • @chakra-ui/anatomy@2.0.2
    • @chakra-ui/utils@2.0.5

2.0.5

Patch Changes

  • Updated dependencies [c11743b47]:
    • @chakra-ui/utils@2.0.4

2.0.4

Patch Changes

2.0.3

Patch Changes

2.0.2

Patch Changes

2.0.1

Patch Changes

  • Updated dependencies [f77e3c98f]:
    • @chakra-ui/utils@2.0.1

2.0.0

Major Changes

Patch Changes

2.0.0-next.2

Major Changes

Patch Changes

  • Updated dependencies [ed692c0ae]:
    • @chakra-ui/utils@2.0.0-next.2

2.0.0-next.1

Major Changes

Patch Changes

  • Updated dependencies [41b3119f5]:
    • @chakra-ui/utils@2.0.0-next.1

2.0.0-next.0

Patch Changes

  • Updated dependencies [c390af485]:
    • @chakra-ui/system@2.0.0-next.0
    • @chakra-ui/utils@2.0.0-next.0

1.3.6

Patch Changes

  • e1fe48cbe Thanks @TimKolberger! - Bumped patch version for every package to fix release process. Root cause was a bug in our CI configuration.
  • Updated dependencies [e1fe48cbe]:
    • @chakra-ui/utils@1.10.4

1.3.5

Patch Changes

  • Updated dependencies [a870e6b94]:
    • @chakra-ui/utils@1.10.3

1.3.4

Patch Changes

1.3.3

Patch Changes

  • Updated dependencies [24b4333d0]:
    • @chakra-ui/utils@1.10.1

1.3.2

Patch Changes

  • #5241 ebf1d98be Thanks @timonweber! - Allow style function types to be part of StyleConfig and MultiStyleConfig types to reflect the possible usage of style functions instead of style objects.
  • Updated dependencies [1537a725f]:
    • @chakra-ui/utils@1.10.0

1.3.1

Patch Changes

  • #5075 b28142946 Thanks @cschroeter! - Update babel config to transpile soruces for older browsers. This fixes issues with CRA and Storybook.
  • Updated dependencies [b28142946]:
    • @chakra-ui/utils@1.9.1

1.3.0

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/utils@1.9.0

1.2.3

Patch Changes

1.2.2

Patch Changes

1.2.1

Patch Changes

  • 09577b088 #4708 Thanks @hiroppy! - Replace tinycolor2 with @ctrl/tinycolor to get better tree-shaking benefits

1.2.0

Minor Changes

  • 01c913309 #4611 Thanks @segunadebayo! - Add new helpers to the theme-tools package to make the process of creating component themes less cumbersome.

    • cssVar - function to create css vars
    • calc - function that makes it easy to create the css calc string
    • anatomy- function to define and extend component parts

    Creating a CSS variable in the theme

    import { cssVar, calc } from "@chakra-ui/theme-tools"
    
    const $width = cssVar("slider-width")
    const $height = cssVar("slider-height")
    
    const $diff = calc($width).subtract($height).toString()
    
    $width.variable // => '--slider-width'
    $width.reference // => 'var(--slider-width)'

    Create a component anatomy

    import { anatomy }  from "@chakra-ui/theme-tools"
    import type { PartsStyle } from "@chakra-ui/theme-tools"
    
    const btn = anatomy("button").parts("label", "container")
    
    const newBtn = btn.extend("icon") //  extend button to include icon part
    
    // Using the anatomy in component theme
    const baseStyle: PartsStyle<typeof newBtn> = {
      // auto-complete for the component parts
      icon: {...},
      label: {...}
    }

    Added PartsStyleObject and PartStyleFunction types for easy creation of type-safe, multipart component styles.

1.1.9

Patch Changes

1.1.8

Patch Changes

  • Updated dependencies [4a1e4d93b]:
    • @chakra-ui/utils@1.8.1

1.1.7

Patch Changes

1.1.6

Patch Changes

  • Updated dependencies [e9ac4cc76]:
    • @chakra-ui/utils@1.7.0

1.1.5

Patch Changes

1.1.4

Patch Changes

  • Updated dependencies [8b5eb9654]:
    • @chakra-ui/utils@1.5.2

1.1.3

Patch Changes

1.1.2

Patch Changes

1.1.1

Patch Changes

1.1.0

Minor Changes

Patch Changes

  • Updated dependencies [87cc23e14]:
    • @chakra-ui/utils@1.3.0

1.0.4

Patch Changes

1.0.3

Patch Changes

  • Updated dependencies [8b87406c]:
    • @chakra-ui/utils@1.1.0

1.0.2

Patch Changes

  • Updated dependencies [e73878ee]:
    • @chakra-ui/utils@1.0.2

1.0.1

Patch Changes

  • Updated dependencies [5c482483]:
    • @chakra-ui/utils@1.0.1

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0 (2020-11-13)

Note: Version bump only for package @chakra-ui/theme-tools

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-rc.8 (2020-10-29)

Bug Fixes

  • toast: allow custom render in update (eb8bff9), closes #2362

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-rc.7 (2020-10-25)

Note: Version bump only for package @chakra-ui/theme-tools

1.0.0-rc.6 (2020-10-25)

Note: Version bump only for package @chakra-ui/theme-tools

1.0.0-rc.5 (2020-09-27)

Note: Version bump only for package @chakra-ui/theme-tools

1.0.0-rc.4 (2020-09-25)

Note: Version bump only for package @chakra-ui/theme-tools

1.0.0-rc.3 (2020-08-30)

Note: Version bump only for package @chakra-ui/theme-tools

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-rc.2 (2020-08-09)

Note: Version bump only for package @chakra-ui/theme-tools

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-rc.1 (2020-08-06)

Note: Version bump only for package @chakra-ui/theme-tools

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-rc.0 (2020-07-26)

Note: Version bump only for package @chakra-ui/theme-tools

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-next.7 (2020-07-26)

Features

  • add support for single and multipart config (a13d0f8)

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-next.6 (2020-07-15)

Note: Version bump only for package @chakra-ui/theme-tools

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-next.5 (2020-07-15)

Note: Version bump only for package @chakra-ui/theme-tools

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-next.4 (2020-07-01)

Bug Fixes

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-next.3 (2020-06-28)

Bug Fixes

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.0-next.2 (2020-06-21)

Note: Version bump only for package @chakra-ui/theme-tools