- Updated dependencies
[
2647e00ef
]:- @chakra-ui/anatomy@2.2.2
-
#7936
58e059d18
Thanks @yukukotani! - Remove "use client" directive since they are pure JS packages. -
Updated dependencies [
58e059d18
]:- @chakra-ui/anatomy@2.2.1
754d9d4f4
Thanks @segunadebayo! - To improve support for the App Router, all components and hooks are exported with the"use client"
directive.
16c0ab7ec
Thanks @segunadebayo! - AddgetColorVar
function to get color css variable from theme object
-
ddbb1b4c4
Thanks @segunadebayo! - Bump all packages -
Updated dependencies [
ddbb1b4c4
]:- @chakra-ui/anatomy@2.1.2
- @chakra-ui/shared-utils@2.0.5
- #7158
be1926e60
Thanks @anubra266! - Resolve theme tools to values between 0 and 1
-
#7154
2d7398a01
Thanks @segunadebayo! - ## All componentsImproved 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 classicReact
import - Moved
tsup
config topackage.json
since it's very minimal - Removed
clean-package.config.json
in favor of thepackage.json
property - Fixed issue where Storybook addon (dark mode and RTL) was not working
- Switched to the
-
Updated dependencies [
2d7398a01
]:- @chakra-ui/anatomy@2.1.1
- @chakra-ui/shared-utils@2.0.4
- #7019
c9f976d67
Thanks @anubra266! - Replacetinycolor
package withcolor2k
for smaller bundle size
- #6945
75eaba929
Thanks @anddoutoi! - Fix issue where using@chakra-ui/react
in a TypeScript project with"type": "module"
inpackage.json
and"moduleResolution": "Node16"
intsconfig.json
cannot find the types. - Updated dependencies
[
2a86d6c35
,75eaba929
]:- @chakra-ui/anatomy@2.1.0
-
#6648
9de39921b
Thanks @cschroeter! - Declare package exports @see https://webpack.js.org/guides/package-exports/ -
Updated dependencies [
9de39921b
]:- @chakra-ui/anatomy@2.0.7
-
#6221
872c0ccf5
Thanks @segunadebayo! - Refactored code to use fromstyled-system
package -
Updated dependencies [
5e6c3fd65
,872c0ccf5
]:- @chakra-ui/anatomy@2.0.6
- #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
-
Force release
-
Updated dependencies []:
- @chakra-ui/anatomy@2.0.4
- @chakra-ui/utils@2.0.8
-
c14010b45
Thanks @segunadebayo! - Fix regression whereStyleFunctionProps
type was not exported -
Updated dependencies [
dffc18b17
,99af1e29f
]:- @chakra-ui/utils@2.0.7
-
Force new release
-
Updated dependencies []:
- @chakra-ui/anatomy@2.0.3
- @chakra-ui/utils@2.0.6
- #6356
1839e22eb
Thanks @segunadebayo! - - Force release due to change in build configuration- Update package
main
andmodule
entries
- Update package
- Updated dependencies
[
1839e22eb
]:- @chakra-ui/anatomy@2.0.2
- @chakra-ui/utils@2.0.5
- Updated dependencies
[
c11743b47
]:- @chakra-ui/utils@2.0.4
-
06f29f8cd
Thanks @segunadebayo! - Bump all packages to resolve deps issues -
Updated dependencies [
06f29f8cd
]:- @chakra-ui/utils@2.0.2
- Updated dependencies
[
f77e3c98f
]:- @chakra-ui/utils@2.0.1
- #5989
ed692c0ae
Thanks @TimKolberger! - Omitsrc
directory from being published to npm
- #5882
41b3119f5
Thanks @TimKolberger! - Bump peer dependency to React and ReactDOM to >=18
- #5989
ed692c0ae
Thanks @TimKolberger! - Omitsrc
directory from being published to npm
- Updated dependencies
[
ed692c0ae
]:- @chakra-ui/utils@2.0.0-next.2
- #5882
41b3119f5
Thanks @TimKolberger! - Bump peer depencency to React and ReactDOM to >=18
- Updated dependencies
[
41b3119f5
]:- @chakra-ui/utils@2.0.0-next.1
- Updated dependencies
[
c390af485
]:- @chakra-ui/system@2.0.0-next.0
- @chakra-ui/utils@2.0.0-next.0
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
- Updated dependencies
[
a870e6b94
]:- @chakra-ui/utils@1.10.3
-
#5536
a503acabe
Thanks @TimKolberger! - Bumped patch version for every package to fix release process. -
Updated dependencies [
a503acabe
]:- @chakra-ui/utils@1.10.2
- Updated dependencies
[
24b4333d0
]:- @chakra-ui/utils@1.10.1
- #5241
ebf1d98be
Thanks @timonweber! - Allow style function types to be part ofStyleConfig
andMultiStyleConfig
types to reflect the possible usage of style functions instead of style objects. - Updated dependencies
[
1537a725f
]:- @chakra-ui/utils@1.10.0
- #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
-
#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 todist/esm
anddist/cjs
keeping the same file structure. The new build system merges all files insrc
and transpiles to a singleesm
andcjs
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.
- Updated dependencies
[
6095eaf9a
]:- @chakra-ui/utils@1.9.0
-
cd0893c56
#4873 Thanks @Nfinished! - fix: always use fromEntries polyfill from @chakra-ui/utils #4872 -
Updated dependencies [
cd0893c56
]:- @chakra-ui/utils@1.8.4
09577b088
#4708 Thanks @hiroppy! - Replacetinycolor2
with@ctrl/tinycolor
to get better tree-shaking benefits
-
01c913309
#4611 Thanks @segunadebayo! - Add new helpers to thetheme-tools
package to make the process of creating component themes less cumbersome.cssVar
- function to create css varscalc
- function that makes it easy to create the css calc stringanatomy
- 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
andPartStyleFunction
types for easy creation of type-safe, multipart component styles.
- Updated dependencies
[
4a1e4d93b
]:- @chakra-ui/utils@1.8.1
- Updated dependencies
[
e9ac4cc76
]:- @chakra-ui/utils@1.7.0
- Updated dependencies
[
8b5eb9654
]:- @chakra-ui/utils@1.5.2
-
c69d2b983
Thanks @segunadebayo! - Fix issue wherewarn
doesn't get called -
Updated dependencies [
1a04a41bd
,e481ba491
]:- @chakra-ui/utils@1.5.1
d77f63415
#3463 Thanks @segunadebayo! - Update implementation of create-breakpoints to reduce code logic. Add deprecation message
- Updated dependencies
[
87cc23e14
]:- @chakra-ui/utils@1.3.0
- Updated dependencies
[
8b87406c
]:- @chakra-ui/utils@1.1.0
- Updated dependencies
[
e73878ee
]:- @chakra-ui/utils@1.0.2
- 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.
Note: Version bump only for package @chakra-ui/theme-tools
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
Note: Version bump only for package @chakra-ui/theme-tools
Note: Version bump only for package @chakra-ui/theme-tools
Note: Version bump only for package @chakra-ui/theme-tools
Note: Version bump only for package @chakra-ui/theme-tools
Note: Version bump only for package @chakra-ui/theme-tools
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
Note: Version bump only for package @chakra-ui/theme-tools
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
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
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)
- add support for single and multipart config (a13d0f8)
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
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
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
- ts issue with sx prop (d3b1340)
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
- ts issue with sx prop (d3b1340)
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
Note: Version bump only for package @chakra-ui/theme-tools