@chakra-ui/cli
3.23.0
3.22.0
3.21.1
Patch Changes
517ba37
Thanks @segunadebayo! - Fix issue wheretypegen
command fails silently with misleading console output when prettier exits with a formatting error
3.21.0
3.20.0
3.19.2
Patch Changes
- #10059
a289c3c
Thanks @isBatak! - - System: add explicitundefined
to generated types to support TSexactOptionalPropertyTypes
3.19.1
3.19.0
3.18.0
3.17.0
3.16.1
3.16.0
3.15.1
Patch Changes
dc4915a
Thanks @segunadebayo! - Improve CLI response when passing an unknown snippet id
3.15.0
3.14.2
3.14.1
3.14.0
3.13.0
3.12.0
3.11.0
3.10.0
3.9.0
3.8.2
3.8.1
3.8.0
3.7.0
3.6.0
Patch Changes
07f2c56
Thanks @segunadebayo! - Fix issue where CLI doesn't properly check for existing files when adding snippets.
3.5.1
3.5.0
3.4.0
3.3.3
3.3.2
3.3.1
3.3.0
Minor Changes
e5ecd91
Thanks @segunadebayo! - Add support for--tsx
flag in thesnippet add
command to allow explicitly specifying tsx/jsx file generation.
3.2.5
3.2.4
3.2.3
3.2.2
Patch Changes
3.2.1
Patch Changes
c79b7bf
Thanks @segunadebayo! - - Fix issue where npmDependencies for snippets were not auto-installed- Support React Router 7 framework detection
3.2.0
Minor Changes
069e39d
Thanks @segunadebayo! - Add support for--all
flag to add all snippets. By default, we only install a minimal/recommended set of snippets.Recommended snippets: provider, avatar, button, checkbox, radio, input-group, slider, popover, dialog, drawer, tooltip, field
If you want to add all snippets, you can use the
--all
flag.
Patch Changes
a3ba8e6
Thanks @segunadebayo! - Fix issue where typegen doesn't work when CLI installed globally or run usingnpx
3.1.2
3.1.1
3.1.0
Patch Changes
baa3cb1
Thanks @segunadebayo! - Fix issue where adding a snippet with--outdir
still creates snippets asrc/components/ui
directory.
3.0.2
Patch Changes
bfd9cac
Thanks @segunadebayo! - Fix issue with vite setup where.mjs
andmts
files were not considered.#9022
b40eb6b
Thanks @Newbie012! - Fix issue where style props types show asany
when usingstrictTokens
3.0.1
3.0.0
Minor Changes
758f226
Thanks @segunadebayo! - Add support forcomposition
command in CLI to import ready-made compositions for faster development experience.Usage: chakra-ui composition [options] [command] Add compositions to your project for better DX Options: -h, --help display help for command Commands: add [options] [components...] Add a new composition for better DX list List all compositions help [command] display help for command
bfb68dc
Thanks @segunadebayo! - Addeject
command to import default theme into project085cacd
Thanks @segunadebayo! - Add support for installing required NPM dependencies for compositions77fe01d
Thanks @segunadebayo! - Change CLI name and command structure.- Change the CLI name from
chakra-cli
tochakra
. - Change
tokens
command totypegen
to better reflect its purpose since its generates types for more than just the tokens. - Scaffold new
composition
command to help users scaffold new compositions easily. Compositions are snippets of Chakra UI component composition them easier to reuse across projects.
- Change the CLI name from
8fc7b49
Thanks @segunadebayo! - - Add support for conditional value in variant props.- Add
@default
JSDoc comment fordefaultVariants
in generated types.
- Add
4ff153f
Thanks @segunadebayo! - Speed up intellisence for style props, and add support forstrictTokens
in the CLI.d50d72c
Thanks @segunadebayo! - Renamecompositions
command tosnippet
for better intuitiveness#8569
eb26857
Thanks @isBatak! - Fix theboxSize
type to allow number values.14b6a45
Thanks @segunadebayo! - Show the number of skipped snippets that already exists in outdir
Patch Changes
0eda15c
Thanks @segunadebayo! - Set process setMaxListeners to improve watch modec074b58
Thanks @segunadebayo! - Fix issue where vite project throws due to config search0f0ed76
Thanks @segunadebayo! - Fix regression where files were always converted to.jsx
#8740
d5a225f
Thanks @Pagebakers! - Use correct extension for ESM exports
3.0.0-next.32
3.0.0-next.31
3.0.0-next.30
3.0.0-next.29
Patch Changes
0eda15c
Thanks @segunadebayo! - Set process setMaxListeners to improve watch mode
3.0.0-next.28
3.0.0-next.27
3.0.0-next.26
3.0.0-next.25
3.0.0-next.24
3.0.0-next.23
3.0.0-next.22
3.0.0-next.21
Minor Changes
14b6a45
Thanks @segunadebayo! - Show the number of skipped snippets that already exists in outdir
3.0.0-next.20
Patch Changes
c074b58
Thanks @segunadebayo! - Fix issue where vite project throws due to config search
3.0.0-next.19
3.0.0-next.18
Minor Changes
bfb68dc
Thanks @segunadebayo! - Addeject
command to import default theme into project8fc7b49
Thanks @segunadebayo! - - Add support for conditional value in variant props.- Add
@default
JSDoc comment fordefaultVariants
in generated types.
- Add
3.0.0-next.17
3.0.0-next.16
Patch Changes
- #8740
d5a225f
Thanks @Pagebakers! - Use correct extension for ESM exports
3.0.0-next.15
3.0.0-next.14
Minor Changes
d50d72c
Thanks @segunadebayo! - Renamecompositions
command tosnippet
for better intuitiveness
3.0.0-next.13
3.0.0-next.12
Patch Changes
0f0ed76
Thanks @segunadebayo! - Fix regression where files were always converted to.jsx
3.0.0-next.11
Minor Changes
085cacd
Thanks @segunadebayo! - Add support for installing required NPM dependencies for compositions
3.0.0-next.10
Minor Changes
758f226
Thanks @segunadebayo! - Add support forcomposition
command in CLI to import ready-made compositions for faster development experience.Usage: chakra-ui composition [options] [command] Add compositions to your project for better DX Options: -h, --help display help for command Commands: add [options] [components...] Add a new composition for better DX list List all compositions help [command] display help for command
3.0.0-next.9
Minor Changes
77fe01d
Thanks @segunadebayo! - Change CLI name and command structure.- Change the CLI name from
chakra-cli
tochakra
. - Change
tokens
command totypegen
to better reflect its purpose since its generates types for more than just the tokens. - Scaffold new
composition
command to help users scaffold new compositions easily. Compositions are snippets of Chakra UI component composition them easier to reuse across projects.
- Change the CLI name from
3.0.0-next.8
3.0.0-next.7
Minor Changes
4ff153f
Thanks @segunadebayo! - Speed up intellisence for style props, and add support forstrictTokens
in the CLI.
3.0.0-next.6
3.0.0-next.5
Minor Changes
3.0.0-next.4
3.0.0-next.3
3.0.0-next.2
3.0.0-next.1
3.0.0-next.0
Patch Changes
2.4.1
Patch Changes
- #7621
02968c565
Thanks @segunadebayo! - Refactor theme typings process and fix ESM issues
2.4.0
Minor Changes
#7494
27dcf2f56
Thanks @kuroppe1819! - Add support for nested semantic tokens in theme. It is now possible to declare semantic tokens by nesting objects.BEFORE:
const theme = { semanticTokens: { colors: { "background.pressed.base": { default: "blue.800", _dark: "blue.300" }, "background.pressed.subtle": { default: "blue.300", _dark: "blue.700" }, }, }, }
AFTER:
const theme = { semanticTokens: { colors: { background: { pressed: { base: { default: "blue.800", _dark: "blue.300" }, subtle: { default: "blue.300", _dark: "blue.700" }, }, }, }, }, }
This allows for cleaner grouping and organization of tokens.
2.3.1
Patch Changes
ddbb1b4c4
Thanks @segunadebayo! - Bump all packages
2.3.0
Minor Changes
#7127
ffc73f393
Thanks @lexanth! - - Added support for generating theme typings to use via module augmentation of the@chakra-ui/styled-system
package.To use this feature, run the following command:
chakra-cli tokens --template augmentation --out ./types/chakra-ui__styled-system.d.ts
2.2.1
Patch Changes
2.2.0
Minor Changes
#5701
eb3bfe66d
Thanks @lexanth! - Add the flag--strict-token-types
for@chakra-ui/cli tokens
to generate strict types for theme tokens (e.g. color, spacing)chakra-cli tokens --strict-token-types
// before <Box padding="abc" /> // valid type, but "abc" is not available in the theme // after <Box padding="abc" /> // invalid // Type '"abc"' is not assignable to type '"1" | "2" | ... | undefined'.
2.1.8
Patch Changes
- Updated dependencies
[
99329e44a
]:- @chakra-ui/utils@2.0.10
2.1.7
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/utils@2.0.9
2.1.6
Patch Changes
Force release
Updated dependencies []:
- @chakra-ui/utils@2.0.8
2.1.5
Patch Changes
#6465
67edac24a
Thanks @itkrt2y! - Fix regression whereThemeTypings
created by chakra-cli could not be usedUpdated dependencies [
dffc18b17
,99af1e29f
]:- @chakra-ui/utils@2.0.7
2.1.4
Patch Changes
Force new release
Updated dependencies []:
- @chakra-ui/utils@2.0.6
2.1.3
Patch Changes
- #6356
1839e22eb
Thanks @segunadebayo! - - Force release due to change in build configuration- Update package
main
andmodule
entries
- Update package
- Updated dependencies
[
1839e22eb
]:- @chakra-ui/utils@2.0.5
2.1.2
Patch Changes
Updated dependencies [
36ef37d58
,6c15ec2c2
]:- @chakra-ui/utils@2.0.3
2.1.1
Patch Changes
2.1.0
Minor Changes
#6117
154fee7f1
Thanks @TimKolberger! - New watch flag for the tokens command. You can specify a directory path to watch for changes. It defaults to the parent dir of<source>
, e.g.src/theme/theme.ts
=>src/theme
.> chakra-cli tokens src/theme/theme.ts --watch > chakra-cli tokens --help Usage: chakra-cli tokens [options] <source> Options: --out <path> output file e.g. node_modules/@chakra-ui/styled-system/dist/declarations/src/theming.types.d.ts --strict-component-types Generate strict types for props variant and size --watch [path] Watch directory for changes and rebuild -h, --help display help for command
Patch Changes
06f29f8cd
Thanks @segunadebayo! - Bump all packages to resolve deps issues
- #6117
5ce803dde
Thanks @TimKolberger! - Fixed an issue where the tokens command failed withSyntaxError: Undefined label 'e'
. - Updated dependencies
[
06f29f8cd
]:- @chakra-ui/utils@2.0.2
2.0.0
Major Changes
- #5989
ed692c0ae
Thanks @TimKolberger! - Omitsrc
directory from being published to npm
- #5882
41b3119f5
Thanks @TimKolberger! - Bump peer dependency to React and ReactDOM to >=18
Patch Changes
- Updated dependencies
[
c390af485
,ed692c0ae
,41b3119f5
]:- @chakra-ui/utils@2.0.0
2.0.0-next.2
Major Changes
- #5989
ed692c0ae
Thanks @TimKolberger! - Omitsrc
directory from being published to npm
Patch Changes
- Updated dependencies
[
ed692c0ae
]:- @chakra-ui/utils@2.0.0-next.2
2.0.0-next.1
Major Changes
- #5882
41b3119f5
Thanks @TimKolberger! - Bump peer depencency to React and ReactDOM to >=18
Patch Changes
- Updated dependencies
[
41b3119f5
]:- @chakra-ui/utils@2.0.0-next.1
1.9.1-next.0
Patch Changes
- Updated dependencies
[
c390af485
]:- @chakra-ui/utils@2.0.0-next.0
1.9.0
Minor Changes
- #5662
a1e4d7951
Thanks @TimKolberger! - The CLI tokens command now includes semantic tokens in the generated ThemeTypings
1.8.2
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.8.1
Patch Changes
#5536
a503acabe
Thanks @TimKolberger! - Bumped patch version for every package to fix release process.Updated dependencies [
a503acabe
]:- @chakra-ui/utils@1.10.2
1.8.0
Minor Changes
- #5472
5bfb298bc
Thanks @lukasbach! - Increased scan depth for tokens in cli tooling
Patch Changes
- #5486
4e26a300c
Thanks @TimKolberger! - Fixed an internal version number mismatch
- #5527
b6ccf0dd2
Thanks @with-heart! - When the Chakra CLI fails to generate theme typings, it now exits with a status code of1
. This resolves an issue where failures exited with a success status code. - Updated dependencies
[
24b4333d0
]:- @chakra-ui/utils@1.10.1
1.7.1
Patch Changes
#5372
472612e7a
Thanks @selbekk! - Update README to reflect the change of the default--out
path tonode_modules/@chakra-ui/styled-system/dist/declarations/src/theming.types.d.ts
Updated dependencies [
1537a725f
]:- @chakra-ui/utils@1.10.0
1.7.0
Minor Changes
#5243
ae6fd7a25
Thanks @TimKolberger! - Use the feature flag--strict-component-types
for@chakra-ui/cli tokens
to generate strict component type for the theming propsvariant
andsize
.chakra-cli tokens --strict-component-types
// before <Button variant="abc" /> // valid type but variant is not available in the theme // after <Button variant="abc" /> // invalid // Type '"abc"' is not assignable to type '"link" | "outline" | "ghost" | "solid" | "unstyled" | undefined'.
- #5244
3f1d7cf1c
Thanks @TimKolberger! - Added token scalesblur
,borderStyles
andborderWidths
.
Patch Changes
- #5225
e9bbe3bd1
Thanks @TimKolberger! - Fixed an issue where the cli fails whenprettier
is not installed
1.6.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 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.
Patch Changes
- Updated dependencies
[
6095eaf9a
]:- @chakra-ui/utils@1.9.0
1.5.3
Patch Changes
e0a004b45
#4818 Thanks @igorwessel! - Fixed an issue where the CLI tokens command exited unexpectedly with:SyntaxError: Cannot use import statement outside a module
Updated dependencies [
c06d242c6
,5b4d8ef24
]:- @chakra-ui/utils@1.8.3
1.5.2
Patch Changes
236efcbf5
#4781 Thanks @TimKolberger! - Fixed an issue where the CLI failed withSyntaxError: JSON5: invalid character
.
1.5.1
Patch Changes
c96f44e16
#4725 Thanks @TimKolberger! - Fixed an issue where the CLI did not resolve custom tsconfig paths.🚨 Please note that only the first alias target from the string array will be resolved.
// tsconfig.json { //... compilerOptions: { baseUrl: "src", paths: { "@alias/*": ["target/*"], // ^-- only the first target will be resolved }, }, }
1.5.0
Minor Changes
211d94de3
#4258 Thanks @TimKolberger! - Enable esModuleInterop forchakra-cli tokens
Patch Changes
7d9cb190c
#4214 Thanks @npirotte! - Token generation supports non valid JS keys for componentsUpdated dependencies [
4a1e4d93b
]:- @chakra-ui/utils@1.8.1
1.4.0
Minor Changes
fe2557584
#4067 Thanks @jrolfs! - Thetokens
command now supports generating theme token type definitions from a Chakra UI theme published as a package:npx @chakra-ui/cli tokens <@your-org/chakra-theme-package>
A published theme package should export a theme object as either the
default
export or an export namedtheme
.// chakra-theme-package/src/index.js import { extendTheme } from "@chakra-ui/react" const theme = extendTheme({}) // as default export export default theme // as named export export { theme }
1.3.1
Patch Changes
e8f64a4a6
#3941 Thanks @jbarzegar! - Fixes issues withtokens
command hanging forever if theme workers run into errors during runtime. Now when an error is discovered within a worker an{ err: string }
object is passed to the parent which will cause the promise to reject. This will in turn, pass the sameerr
upwards to allow the command to exit gracefully, printing theerr
in question tostdout
- Updated dependencies
[
d0f50a46e
,b479ff22e
,07d15eab4
]:- @chakra-ui/utils@1.8.0
1.3.0
Minor Changes
035d5726e
#3529 Thanks @callum-mellorreed-privitar! - Add support fortextStyle
andlayerStyle
theme type generation to@chakra-ui/cli
Patch Changes
4955fe4fa
#3621 Thanks @TimKolberger! - Fixed an issue where the cli tokens command exited unexpectedlyUpdated dependencies [
e748219f3
,91ef14839
]:- @chakra-ui/utils@1.4.0
1.2.1
Patch Changes
b78345c36
#3309 Thanks @TimKolberger! - CLI tokens command now ignores TS errors in your theme.ts file
1.2.0
Minor Changes
a97e42568
#3290 Thanks @TimKolberger! - Theme Typings: Add autocomplete for negative space values
Patch Changes
- Updated dependencies
[
ff4a36bca
,483687237
,61962345c
]:- @chakra-ui/utils@1.2.0
1.1.0
Minor Changes
693528a1b
#3222 Thanks @TimKolberger! - - Package@chakra-ui/cli@1.0.0
did already existAdd minor bump for adding subcommand
tokens
to generate Theme TypingsSee https://chakra-ui.com/docs/theming/advanced for more info