Skip to content

Latest commit

 

History

History
3304 lines (2169 loc) · 82.5 KB

CHANGELOG.md

File metadata and controls

3304 lines (2169 loc) · 82.5 KB
title description slug
Changelog
The changelog for Chakra UI React
/changelog

The Changelog gives an overview of the meaningful changes we've made to Chakra UI as we keep driving for better performance and best-in-class developer experience.

20-02-2022

@chakra-ui/react@1.8.5

Create React App Ts v1.1.12

Gatsby Starter Default v0.3.12

Chakra Nextjs v1.1.12

Chakra Nextjs Ts v1.1.12

Storybook Addon v1.0.2

Accordion v1.4.8

Alert v1.3.7

Anatomy v1.2.5

Avatar v1.3.8

Breadcrumb v1.3.6

Button v1.5.7

Checkbox v1.6.7

Clickable v1.2.6

Close Button v1.2.7

Color Mode v1.4.5

Control Box v1.1.6

Counter v1.2.7

Css Reset v1.1.3

Descendant v2.1.3

Editable v1.3.7

React Env v1.1.6

Focus Lock v1.2.6

Form Control v1.5.8

Hooks v1.8.4

Icon v2.0.5

Icons v1.1.7

Image v1.1.7

Input v1.4.3

Layout v1.7.6

Live Region v1.1.6

Media Query v2.0.3

Menu v1.8.8

Modal v1.10.9

Number Input v1.4.4

Pin Input v1.7.7

Popover v1.11.6

Popper v2.4.3

Portal v1.3.7

Progress v1.2.6

Provider v1.7.11

Radio v1.4.9

React Utils v1.2.3

Select v1.2.8

Skeleton v1.2.11

Skip Nav v1.2.6

Slider v1.5.8

Spinner v1.2.6

Stat v1.2.7

Styled System v1.18.1

Switch v1.3.7

System v1.11.1

Table v1.3.6

Tabs v1.6.7

Tag v1.2.7

Textarea v1.2.8

Theme v1.13.4

Theme Tools v1.3.6

Toast v1.5.6

Tooltip v1.4.8

Transition v1.4.7

Utils v1.10.4

Visually Hidden v1.1.6

Babel Plugin v1.0.2

Cli v1.8.2

Cra Template v1.1.2

Cra Template Typescript v1.1.2

Gatsby Plugin v2.0.4

Props Docs v1.0.49

Storybook Addon v1.0.3

Test Utils v1.1.11

  • Bumped patch version for every package to fix release process. Root cause was a bug in our CI configuration.

20-02-2022

Switch v1.3.6

  • Fixed a UI issue where the Switch component rendered a few pixels off the baseline.

Media Query v2.0.2

  • Added props descriptions to Show / Hide components
  • Fixed an issue where the hook useBreakpoint did not update after the first page load.
  • Fixed an issue where the useBreakpointValue hook did not work as expected with custom breakpoints

Checkbox v1.6.6

  • Add FormControl support for useCheckbox

Styled System v1.18.0

  • Modify theme types to make it possible to customize token types via TypeScript module augmentation and declaration merging in addition to allowing customization via the Chakra CLI.

This makes it possible to do the following:

  • Distribute custom types with a component library based on Chakra
  • Customize theme types by hand
  • Version control your theme types

To customize themes using the new mechanism, augment the CustomThemeTypings type in a definitions file such as types/chakra.d.ts:

⚠️ NOTE: your CustomThemeTypings must implement/extend BaseThemeTypings, otherwise the types will fall back to the default Chakra types (or custom output from @chakra-ui/cli)

import { BaseThemeTypings } from "@chakra-ui/styled-system";

type DefaultSizes = 'small' | 'medium' | 'large';

declare module "@chakra-ui/styled-system" {
  export interface CustomThemeTypings extends BaseThemeTypings {
    // Example custom `borders` tokens
    borders: 'none' | 'thin' | 'thick';
    // ...
    // Other custom tokens
    // ...
    components: {
      Button: {
        // Example custom component sizes and variants
        sizes: DefaultSizes;
        variants: 'solid' | 'outline' | 'wacky' | 'chill';
      };
      // ...
     }
  }

Utils v1.10.3

  • Fixed an issue where queryString() created invalid media queries when min and max were set.

Modal v1.10.8

  • Fix useAriaHidden hook dependency to make it work as expected

Icon v2.0.4

  • Add missing word in comment of CreateIconOptions

System v1.11.0

  • Allow all JSX.IntrinsicElements for the chakra factory. This allows to use every DOM element with the shorthand version:
<chakra.header>Header</chakra.header>
<chakra.main>Main</chakra.main>
<chakra.footer>Many more</chakra.footer>

Tag v1.2.6

  • Change order of aria-label prop on TagCloseButton to be over-writable

Anatomy v1.2.4

  • Add a new multi style part root to the Accordion component. It is applied to the topmost DOM element.

Accordion v1.4.7

  • Add a new multi style part root to the Accordion component. It is applied to the topmost DOM element.

Theme v1.13.3

  • Add a new multi style part root to the Accordion component. It is applied to the topmost DOM element.

05-02-2022

@chakra-ui/react@1.8.3

  • fixed an issue where the release process was not working

05-02-2022

@chakra-ui/react@1.8.2

  • allow framer motion v6 as peer dependency

Input v1.4.0

  • Add new prop htmlSize to Input to allow the usage of the native input attribute size.
  • Apply theme styles for InputLeftElement and InputRightElement.

Media Query v2.0.0

  • Support useMediaQuery for older browsers. Conditionally check if the MediaQueryList object supports the addEventListener() method, else fallback to the legacy .addListener() method.

Cli v1.8.0

  • Fixed an internal version number mismatch
  • When the Chakra CLI fails to generate theme typings, it now exits with a status code of 1. This resolves an issue where failures exited with a success status code.
  • Increased scan depth for tokens in cli tooling

Tooltip v1.4.5

  • Fix an issue where arrow tooltip background color only consider bg props. It considers bg, background, bgColor and backgroundColor now.
  • allow framer motion v6 as peer dependency

Accordion v1.4.5

  • allow framer motion v6 as peer dependency
  • Add missing peer dependencies

Checkbox v1.6.4

  • allow framer motion v6 as peer dependency
  • Fixing a bug that happens when using the useCheckboxGroup hook with number values instead of string values

Menu v1.8.5

  • allow framer motion v6 as peer dependency

Modal v1.10.6

  • allow framer motion v6 as peer dependency

Popover v1.11.3

  • allow framer motion v6 as peer dependency

Switch v1.3.4

  • allow framer motion v6 as peer dependency
  • Add missing peer dependencies

Toast v1.5.3

  • allow framer motion v6 as peer dependency
  • Fixed an issue where the useToast function returned a new object on every render.

Transition v1.4.4

  • allow framer motion v6 as peer dependency

Utils v1.10.1

  • Fixing a bug that happens when using the useCheckboxGroup hook with number values instead of string values

System v1.10.2

  • Disallow props that do not exist in the prop interface

Form Control v1.5.5

  • Remove redundant useMemo from FormControl

Anatomy v1.2.2

  • Add missing peer dependencies

Skeleton v1.2.8

  • Add missing peer dependencies

26-01-2022

Color Mode v1.4.1

  • Fixed an issue where the ColorModeScript tried to access a non-existent variable

25-01-2022

@chakra-ui/react@1.8.0

Number Input v1.4.0

  • Add support for custom format, parse and character validation callbacks.
  • Fix issue where number input doesn't leave the spinning state when inc/dec button is disabled

Styled System v1.17.0

  • Introducing semantic tokens

Semantic tokens provide the ability to create css variables which can change with a CSS condition.

import { ChakraProvider, extendTheme } from "@chakra-ui/react"

const customTheme = extendTheme({
  colors: {
    900: "#171923",
  },
})

const App = () => (
  <ChakraProvider theme={customTheme}>
    <Text color="gray.900">will always be gray.900</Text>
  </ChakraProvider>
)
import { ChakraProvider, extendTheme } from "@chakra-ui/react"

const customTheme = extendTheme({
  colors: {
    50: "#F7FAFC",
    900: "#171923",
  },
  semanticTokens: {
    colors: {
      text: {
        default: "gray.900",
        _dark: "gray.50",
      },
    },
  },
})

const App = () => (
  <ChakraProvider theme={customTheme}>
    <Text color="text">
      will be gray.900 in light mode and gray.50 in dark mode
    </Text>
  </ChakraProvider>
)
import { extendTheme } from "@chakra-ui/react"

const theme = extendTheme({
  colors: {
    red: {
      100: "#ff0010",
      400: "#ff0040",
      500: "#ff0050",
      700: "#ff0070",
      800: "#ff0080",
    },
  },
  semanticTokens: {
    colors: {
      error: "red.500", // create a token alias
      success: "red.100",
      primary: {
        // set variable conditionally with pseudo selectors like `_dark` and `_light`
        // use `default` to define fallback value
        default: "red.500",
        _dark: "red.400",
      },
      secondary: {
        default: "red.800",
        _dark: "red.700",
      },
    },
  },
})
  • Updated the _placeholderShown selector
  • Export TypeScript types ResponsiveObject and ResponsiveArray

Theme v1.13.0

  • Introducing semantic tokens

Semantic tokens provide the ability to create css variables which can change with a CSS condition.

import { ChakraProvider, extendTheme } from "@chakra-ui/react"

const customTheme = extendTheme({
  colors: {
    900: "#171923",
  },
})

const App = () => (
  <ChakraProvider theme={customTheme}>
    <Text color="gray.900">will always be gray.900</Text>
  </ChakraProvider>
)
import { ChakraProvider, extendTheme } from "@chakra-ui/react"

const customTheme = extendTheme({
  colors: {
    50: "#F7FAFC",
    900: "#171923",
  },
  semanticTokens: {
    colors: {
      text: {
        default: "gray.900",
        _dark: "gray.50",
      },
    },
  },
})

const App = () => (
  <ChakraProvider theme={customTheme}>
    <Text color="text">
      will be gray.900 in light mode and gray.50 in dark mode
    </Text>
  </ChakraProvider>
)
import { extendTheme } from "@chakra-ui/react"

const theme = extendTheme({
  colors: {
    red: {
      100: "#ff0010",
      400: "#ff0040",
      500: "#ff0050",
      700: "#ff0070",
      800: "#ff0080",
    },
  },
  semanticTokens: {
    colors: {
      error: "red.500", // create a token alias
      success: "red.100",
      primary: {
        // set variable conditionally with pseudo selectors like `_dark` and `_light`
        // use `default` to define fallback value
        default: "red.500",
        _dark: "red.400",
      },
      secondary: {
        default: "red.800",
        _dark: "red.700",
      },
    },
  },
})
  • refactoring(theme): Simplify exports
  • Add entrypoints to the different parts of the theme (colors, fonts, components, spacing, etc.)
// Now you can use only colors from the theme
import colors from "@chakra-ui/theme/foundations/colors"

Here's a table of the theme parts and entrypoints

Part Entrypoint
components "@chakra-ui/theme/components"
foundations "@chakra-ui/theme/foundations"
colors "@chakra-ui/theme/foundations/colors"
sizes "@chakra-ui/theme/foundations/sizes"
spacing "@chakra-ui/theme/foundations/spacing"
typography "@chakra-ui/theme/foundations/typography"
radius "@chakra-ui/theme/foundations/radius"
shadows "@chakra-ui/theme/foundations/shadows"
transition "@chakra-ui/theme/foundations/transition"
zIndex "@chakra-ui/theme/foundations/z-index"
blur "@chakra-ui/theme/foundations/blur"
borders "@chakra-ui/theme/foundations/borders"

Color Mode v1.4.0

  • Introducing semantic tokens

Semantic tokens provide the ability to create css variables which can change with a CSS condition.

import { ChakraProvider, extendTheme } from "@chakra-ui/react"

const customTheme = extendTheme({
  colors: {
    900: "#171923",
  },
})

const App = () => (
  <ChakraProvider theme={customTheme}>
    <Text color="gray.900">will always be gray.900</Text>
  </ChakraProvider>
)
import { ChakraProvider, extendTheme } from "@chakra-ui/react"

const customTheme = extendTheme({
  colors: {
    50: "#F7FAFC",
    900: "#171923",
  },
  semanticTokens: {
    colors: {
      text: {
        default: "gray.900",
        _dark: "gray.50",
      },
    },
  },
})

const App = () => (
  <ChakraProvider theme={customTheme}>
    <Text color="text">
      will be gray.900 in light mode and gray.50 in dark mode
    </Text>
  </ChakraProvider>
)
import { extendTheme } from "@chakra-ui/react"

const theme = extendTheme({
  colors: {
    red: {
      100: "#ff0010",
      400: "#ff0040",
      500: "#ff0050",
      700: "#ff0070",
      800: "#ff0080",
    },
  },
  semanticTokens: {
    colors: {
      error: "red.500", // create a token alias
      success: "red.100",
      primary: {
        // set variable conditionally with pseudo selectors like `_dark` and `_light`
        // use `default` to define fallback value
        default: "red.500",
        _dark: "red.400",
      },
      secondary: {
        default: "red.800",
        _dark: "red.700",
      },
    },
  },
})

System v1.10.0

  • Add React component <CSSVars root=":host, :root" /> to allow rehoisting CSS vars
  • Updated type ThemingProps to allow string values for the props variant and size even on components which are not in the default theme.

Popover v1.11.2

  • Fix issue where the content of a lazy popover or menu gets unmounted before (framer-motion) animation ends leading to a janky user experience.

Menu v1.8.4

  • Fix issue where the content of a lazy popover or menu gets unmounted before (framer-motion) animation ends leading to a janky user experience.

Media Query v1.2.4

  • Update typings for useBreakpointValue parameter

Hooks v1.8.0

  • Add useAnimationState hook to help track motion component animations. Used in popopover and menu lazy modes
  • fix useConst types when using init function

Cli v1.7.1

  • Update README to reflect the change of the default --out path to node_modules/@chakra-ui/styled-system/dist/declarations/src/theming.types.d.ts

Slider v1.5.4

  • fix a minor edge-case for calculating the index in use-range-slider

Button v1.5.3

  • Fixed ThemingProps typings for ButtonGroup
  • Fixed an issue where the iconSpacing for the <ButtonSpinner /> was hardcoded.

Utils v1.10.0

  • Add helper function flatten
import { flatten } from "@chakra-ui/utils"

flatten({ space: [0, 1, 2, 4, 8, 16, 32] })
/** =>
{
  "space.0": 0,
  "space.1": 1,
  "space.2": 2,
  "space.3": 4,
  "space.4": 8,
  "space.5": 16,
  "space.6": 32,
}
*/

Theme Tools v1.3.2

  • Allow style function types to be part of StyleConfig and MultiStyleConfig types to reflect the possible usage of style functions instead of style objects.

Checkbox v1.6.3

  • Added a CheckboxState type to the useCheckbox hook to improve usability and documentation

06-01-2022

@chakra-ui/react@1.7.5

Modal v1.10.4

  • Update DrawerProps type to include ThemingProps for the Drawer component

Avatar v1.3.3

  • Added the prop srcSet to the <Avatar /> and <AvatarImage /> components to allow responsive image sources. Read more on MDN

Layout v1.7.1

  • Add support for area prop on GridItem

Deprecated area prop on Grid and added support for area prop to be used with GridItem instead. This allows for usage of GridItem's that have named template areas to be used in conjunction with a Grid that has a defined template area.

<Grid templateAreas='"one two three"'>
   <GridItem area='one'>one</Grid>
   <GridItem area='two'>two</Grid>
   <GridItem area='three'>three</Grid>
</Grid>

Storybook Addon v1.0.1

  • Added dependency to @chakra-ui/icons

System v1.9.1

  • Fixed an TypeScript issue where the ThemingProps type was too strict

02-01-2022

@chakra-ui/react@1.7.4

Styled System v1.16.0

  • Add support peer pseudo style props

You can now style an element based on the state of its general sibling (marked with .peer or data-peer) attribute.

<>
  <input type="checkbox" data-peer />
  <Box bg="white" _peerFocus={{ bg: "green.400" }} />
</>

The peer properties you can apply are _peerHover, _peerFocus, _peerFocusVisible, _peerActive, _peerInvalid, _peerChecked,_peerFocusWithin, _peerPlaceholderShown, _peerDisabled

New style props

Added _placeholderShown pseudo props for styling elements when sibling inputs have placeholder shown.

Added _ltr pseudo props for styling elements in LTR writing mode. This is useful for products with RTL first approach.

Added _mediaReduceMotion pseudo props to apply reduce motion styles to elements. This is useful when you need to remove CSS animations/transitions.

  • Adds style props for CSS scroll behavior properties: scrollPadding, scrollMargin, scrollSnapAlign, etc...

Here's a full list of properties:

  • Scroll Behavior: scrollBehavior, scrollSnapAlign, scrollSnapStop, scrollSnapType

  • Scroll Margin: scrollMargin, scrollMarginTop, scrollMarginBottom, scrollMarginLeft, scrollMarginRight, scrollMarginX, scrollMarginY

  • Scroll Padding: scrollPadding, scrollPaddingTop, scrollPaddingBottom, scrollPaddingLeft, scrollPaddingRight, scrollPaddingX, scrollPaddingY

System v1.9.0

  • Use the feature flag --strict-component-types for @chakra-ui/cli tokens to generate strict component type for the theming props variant and size.
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'.

Cli v1.7.0

  • Use the feature flag --strict-component-types for @chakra-ui/cli tokens to generate strict component type for the theming props variant and size.
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'.
  • Fixed an issue where the cli fails when prettier is not installed
  • Added token scales blur, borderStyles and borderWidths.

Slider v1.5.3

  • Allow classNames specified on Slider and SliderFilledTrack to be added to the class list

Hooks v1.7.2

  • Add a comment about useState alternative
  • Fixed a issue where useId generated inconsistent id values between client and server (SSR).

Storybook Addon v1.0.0

  • The official Storybook Addon for Chakra UI.
yarn add -D @chakra-ui/storybook-addon
npm i -D @chakra-ui/storybook-addon

Add the addon to your configuration in .storybook/main.js:

module.exports = {
  addons: ["@chakra-ui/storybook-addon"],
}

Checkbox v1.6.2

  • Fix issue where focus styles persists when isDisabled is set to true and checkbox has focus.

Radio v1.4.4

  • Add aria-describedby to the radio props to improve accessibility

Menu v1.8.3

  • Omit disabled and aria-disabled props from MenuItemProps types

Theme v1.12.3

  • Ensure consistent line height for FormErrorMessage and FormHelperText
  • Fixed an issue where the ModalFooter was out of the viewport for size="full".

Editable v1.3.2

  • When the Editable component has its startsWithEditView set to true, then focus should be set to the EditableInput element when the component is mounted.

Tooltip v1.4.3

  • Fix broken link in Tooltip's JSDoc comment

Layout v1.7.0

  • Improve error message when using ListItem without wrapping in List.

Media Query v1.2.3

  • useBreakpointValue returns the correct value on first tick, if matchMedia is available

Test Utils v1.1.4

  • Upgrade @testing-library/react-hooks to test SSR. This was used to debug and fix issues with the useId hook.

09-12-2021

@chakra-ui/react@1.7.3

Layout v1.6.0

  • Add support for style props gap, columnGap and rowGap. Those CSS properties are valid in a grid or flex context

For further information see MDN Docs

  • Fix TS issue with Grid component due to the native gap, rowGap and columnGap we added to styled system.

Styled System v1.15.0

  • Add support for style props gap, columnGap and rowGap. Those CSS properties are valid in a grid or flex context

For further information see MDN Docs

  • Fix issue where bgGradient parser doesn't work when a position is specified
  • Fix issue where tokens autocomplete don't show up anymore except user runs the cli command.
  • Fixed issue where multi-value inset property doesn't work.

Menu v1.8.2

  • Fix issue where enabled TS type was exposed to popover and menu from UsePopperProps. This was resolved by omitting enabled from the type

Popover v1.11.0

  • Fix issue where enabled TS type was exposed to popover and menu from UsePopperProps. This was resolved by omitting enabled from the type
  • Fix issue where Popover will be display:none when inner element focused.
  • Add PopoverAnchor component which allows you to set the Popover reference point without acting as a trigger.
<Popover>
  {/* triggers the popover to open/close */}
  <PopoverTrigger>
    <button>Trigger</button>
  </PopoverTrigger>
  {/* popover will be positioned relative to this */}
  <PopoverAnchor>
    <Box width="40px" height="40px" />
  </PopoverAnchor>
  <PopoverContent>Hello World</PopoverContent>
</Popover>

Input v1.3.2

  • Fixed an issue where InputGroup passes undefined size and variant props which overrides the ones defined by default in a custom Input component.

System v1.8.3

  • Allow retrieving breakpoint tokens when using useToken

Theme v1.12.2

  • Fix issue where tokens autocomplete don't show up anymore except user runs the cli command.

Toast v1.5.0

  • The toast function now exposes a containerStyle property you can use to override the default styles for the toast container.
function Example() {
  // Via instantiation
  const toast = useToast({
    position: "top",
    title: "Container style is customizable",
    containerStyle: {
      maxWidth: "100%",
    },
  })

  // Or via trigger
  return (
    <Button
      onClick={() => {
        toast({
          containerStyle: {
            maxWidth: "100%",
          },
        })
      }}
    >
      Click me to show toast with custom container style.
    </Button>
  )
}
  • Fix TS issue with toast placement utility

Tooltip v1.4.2

  • Prevent onKeyDown callback from de/registering on every call of useTooltip

Media Query v1.2.2

  • Improved performance and behavior of useMediaQuery hook.

Transition v1.4.2

  • Fixed issue where the ref of Slider returns null due to prop override

Icon v2.0.0

  • Auto assign key when passing array of paths to createIcon
const HeartIcon = createIcon({
  displayName: "HeartIcon",
  path: [<path stroke="none" d="..." fill="none" />, <path d="..." />],
})

17-11-2021

Props Docs v1.0.40

  • Fix issue where package doesn't include a dist folder and doesn't work when installed from npm.

Radio v1.4.2

  • Add cursor pointer to the radio container

Slider v1.5.2

  • Fixed a bug where a thumb would not move in case of stacked thumbs

Color Mode v1.3.2

  • Fixed flaky color-mode test
  • Fixed issue where DarkMode and LightMode elements rerenders their children even if the child is memoized.

<LightMode> and <DarkMode> components are now memoized to prevent unnecessary rendering of their child components.

12-11-2021

@chakra-ui/react@1.7.1

  • Update babel config to transpile soruces for older browsers. This fixes issues with CRA and Storybook.

Cra Template Typescript v1.1.1

  • Bump TypeScript version

Media Query v1.2.1

  • Fix issue where useColorModePreference returned incorrect values due to array destructuring.
  • Update babel config to transpile soruces for older browsers. This fixes issues with CRA and Storybook.

09-11-2021

@chakra-ui/react@1.7.0

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.

Color Mode v1.3.0

Fixed color mode behavior priority in the following order:

  • If useSystemColorMode is true, the system's color mode will be used as default and we'll fallback to the initialColorMode if system color mode isn't resolved.

  • If --chakra-ui-color-mode is defined through e.g. ColorModeScript this will be used.

  • If local storage is used as the colorModeManager and a value is defined for chakra-ui-color-mode, this will be used.

  • if initialColorMode is set to system, the system's color mode will be used as default and we'll fallback to the initialColorMode if system color mode isn't resolved.

  • if initialColorMode is set to 'light' or 'dark', the corresponding value will be used.

Modal v1.10.0, Focus Lock v1.2.0

  • react-focus-lock@2.5.1 includes a dependency update of focus-lock from 0.8.1 -> 0.9.1. The change in focus-lock includes a fix for performance in JSDOM: theKashey/focus-lock#24

JSDOM is used when testing react components in jest and other unit testing frameworks. In particular, when used with @testing-library/react for simulating real user input.

Locally tested on an Apple M1 Air using a moderately complex <Modal> component (which contained inputs, react-hook-form usage, etc). Before this change: 20,149ms After this change: 2,347ms

Approx. 10x performance increase.

Select v1.2.0

  • Fixed an styling issue where it was not possible to customize the icon spacing of the Select component.

Theme v1.12.0

  • Fixed an styling issue where it was not possible to customize the icon spacing of the Select component.

Slider v1.5.0

  • Fixed the bug in RangeSlider where an index out of bounds error would occur incase of stacked thumbs.

03-11-2021

@chakra-ui/react@1.6.12

  • Allow usage of framer-motion 5.x in peerDependency

Radio v1.3.13

  • Improve types defined for getRadioprops

Checkbox v1.5.10

  • Allow usage of framer-motion 5.x in peerDependency

Menu v1.7.8

  • Allow usage of framer-motion 5.x in peerDependency

Modal v1.9.4

  • Allow usage of framer-motion 5.x in peerDependency

Popover v1.9.1

  • Allow usage of framer-motion 5.x in peerDependency

Theme v1.11.1

  • Allow usage of framer-motion 5.x in peerDependency

Toast v1.3.4

  • Allow usage of framer-motion 5.x in peerDependency

Tooltip v1.3.14

  • Allow usage of framer-motion 5.x in peerDependency

Transition v1.3.8

  • Allow usage of framer-motion 5.x in peerDependency

Media Query v1.1.5

  • Corrected eslint errors.
  • Fix an issue where the useMediaQuery was not updating the array of booleans correctly when resizing the viewport.

It also removes deprecated calls addListener and removeListener in favor of the recommended addEventListener and removeEventListener calls.

Color Mode v1.2.0

Added possibility to use the system preferred color scheme as value for initialColorMode, while still respecting a user's previous choice.

As long as the user does not manually select a color mode through a website interaction, the theme will change when the system preference changes.

This would easily allow for an implementation where the user can choose between light, dark and system by simply setting the initialColorMode setting to system and presenting the user with the three options.

Popper v2.3.1

  • Remove default [] value for modifiers and moved it into createPopper definition. This allows memoized modifiers to work correctly in user-land when used with useCallback.

31-10-2021

@chakra-ui/react@1.6.11

Anatomy v1.1.0

  • Add closeButton to popover component parts

Styled System v.1.13.0

  • Add _groupFocusVisible pseudo style props

Breadcrumb v1.2.10

  • href attribute will no longer be set on the inner element of the BreadcrumbLink if the parent BreadcrumbItem has isCurrentPage prop set to true. Such a BreadcrumbLink is not an actual link and it ends up being a span (by default).

Color Mode v1.1.14

  • Use the correct owner document when appending styles to document.body

Hooks v.1.6.2

  • Fix potential infinite loop in useDisclosure's onOpen and onClose callbacks. The fix is to wrap the callbacks in useCallbackRef

Menu v1.7.7

  • Fixed an error where the onOpen was called multiple/infinite times
  • Fix issue where computePositionOnMount didn't work without explict value

Radio v1.3.12

  • Fix issue where props are duplicated on child label and span elements
  • Removed aria-readonly from checkbox in favor of WCAG 4.1.2

Utils v1.8.4

  • Use fromEntries polyfill from @chakra-ui/utils

Switch v1.2.12

  • Fix issue where focusing the Switch could lead to unexpected page scrolls.

System v1.7.5

  • Fixed a bug in useToken where it wasn't possible to resolve some tokens which contain dots like useToken('space','1.5')

Gatsby Plugin 2.0.2

  • Update peerDependencies to support new version

14-10-2021

@chakra-ui/react@1.6.10

Radio v1.3.11

  • Add support for styling the container element based on the radio state

Popover v1.8.5

  • Fix issue where computePositionOnMount didn't work without explict value

Utils v1.8.3

  • Fixed iframe bug on firefox when using getRelatedTarget function
  • Fix issue where pan-event utils don't work within iframe

Hooks v1.6.1

  • Forward threshold options from usePanSession to PanSession class

Slider v1.4.1

  • Fix issue where value can't be changed when range-slider thumbs are stacked

Modal v1.9.2

  • Fix issue where modal doesn't close when the escape key is pressed and closeOnOverlayClick is false

Cli v1.5.3

  • Fixed an issue where the CLI tokens command exited unexpectedly with: SyntaxError: Cannot use import statement outside a module

Checkbox v1.5.8

  • Fix issue where tabIndex property isn't passed to the underlying input element

05-10-2021

Button v1.4.4

  • Added missing @chakra-ui/react-utils import

Slider v1.4.0

  • Move hard-coded styles to slider's theme
  • Add support for multithumb slider. We now have useRangeSlider, RangeSlider and RangeSlider* components
<RangeSlider>
  <RangeSliderTrack>
    <RangeSliderFilledTrack />
  </RangeSliderTrack>
  <RangeSliderThumb index={0} />
  <RangeSliderThumb index={1} />
</RangeSlider>

Transition v1.3.5

  • Updated transition variants for drawer animations to prevent it from disappearing when placement conditionally changes

Cli v1.5.2

  • Fixed an issue where the CLI failed with SyntaxError: JSON5: invalid character.

Theme v1.10.3

  • Refactor slider theme from slider.tsx to slider's theme

Toast v1.3.1

  • Allow alerts rendered by useToast and createStandaloneToast to be discovered by role and accessible name (e.g. using Testing Library ByRole).

20-09-2021

Theme Tools v1.2.1

  • Replace tinycolor2 with @ctrl/tinycolor to get better tree-shaking benefits

Theme v1.10.2

  • Replace tinycolor2 with @ctrl/tinycolor to get better tree-shaking benefits

Checkbox v1.5.7

  • Add state data-* attributes to the checkbox container to allow user style the _checked, _invalid and _disabled states

Slider v1.3.0

  • Add RTL support by using the theme's direction ("ltr" or "rtl") to set the default isReversed property when the orientation is horizontal

Modal v1.9.0

  • Drawer: Add support for RTL-aware placement values. You can now pass start and end values. The drawer will use left/right placement depending on the specified theme.direction value.
  • Drawer: omit the motionPreset prop type since Drawer only implements the Slide transition, unlike Modal that allows you switch its motion preset.

Image v1.0.20

  • Fix issue where onload doesn't get called when using srcset
  • If the user doesn't provide a fallbackSrc or a fallback ignoreFallback is applied by default

Anatomy v1.0.1

  • Add missing breadcrumb part
  • Add container part to checkbox

Popper v2.3.0

  • usePopper now accepts a direction prop so it can handle placement for RTL languages. Values such as top-start, top-end, bottom-start and bottom-end will be flipped depending on the theme's direction value.

In addition to the default popper.js placement, you can pass start-start, start-end, end-start and end-end. This will resolve to the equivalent popper.js placement as well.

Cli v1.5.1

  • 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
    }
  }
}

Avatar v1.2.10

  • Fix issue where avatar blinks during API call due to its fallback logic. You can disable the fallback logic by setting ignoreFallback, just like you can with the Image component

Toast v1.3.0

  • Add support for RTL-aware position values. You can now use top-start, top-end, bottom-start and bottom-end values. The toast will flip depending on the direction provided in the theme.

Provider v1.6.8

  • Resolve dependency issues caused by previous release
  • Add ChakraProviderProps type what was removed in previous release

Menu v1.7.4

  • Fix issue where keyboard navigation doesn't work when MenuButton isn't rendered. This is useful in scenarios where you want the menu to be triggered by a command or right-click.

Button v1.4.3

  • Fix issue where composing Button with framer-motion's motion factory breaks animation/transition

Select v1.1.15

  • The disabled state of the SelectIcon can be reflected by a disabled FormControl or by the isDisabled-flag of the select field

29-08-2021

@chakra-ui/react@1.6.7

  • Move ChakraProvider to a separate package @chakra-ui/provider
  • Loosen types of extendTheme to allow recent TS compiler to work and avoid Type instantiation is excessively deep and possibly infinite errors.

This might lead to a slightly degraded autocomplete experience when extended the theme but we promise to revisit the typings and API very soon.

In the meantime, please use ThemeOverrides type to provide

Slider v1.2.9

  • Fix issue where slider thumb gets focus when onChangeEnd changes.
  • Call onChangeStart/ onChangeEnd when clicking somewhere in the SliderTrack without dragging the DragHandle

Skeleton v1.1.18

  • Don't animate when skeleton was previously loaded

System v1.7.3

  • Update useStyleConfig to read parts array from the new anatomy class

Theme Tools v1.2.0

  • 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.

Radio v1.3.10

  • Add isDisabled to RadioGroup to make it possible to disable all Radio inside RadioGroup
  • Add isFocusable to RadioGroup to make it possible to define the focusable-state for all Radio inside a RadioGroup

Provider v1.6.7

  • Move ChakraProvider to a separate package @chakra-ui/provider

Hooks v1.6.0

  • Added an enabled prop to the useOutsideClick hook to conditionally attach event handlers.

  • Updated the useMenu hook to only enable the useOutsideClick hook when the menu is open.

Toast v1.2.11

  • Add correct variant type to UseToastOptions

Layout v1.4.9

  • Fix url for LinkBox component

Theme v1.10.1

  • Added overview:"visible" to baseStyle of TagLabel to avoid clipped text

09-08-2021

@chakra-ui/react@1.6.6

Form Control v1.4.0

  • Added a container part to the FormControl component theme, allowing the root FormControl element to be themed.
import { extendTheme } from "@chakra-ui/react"

export const theme = extendTheme({
  components: {
    Form: {
      variants: {
        // create a variant named "custom"
        custom: {
          // style the root `FormControl` element
          container: {
            color: "white",
            bg: "blue.900",
          },
        },
      },
    },
  },
})
  • Remove code that was added as a workaround for pre-releases of React concurrent mode.

  • If an aria-describedby property is passed it will be joined with the id's from helper text and error message instead of being overwritten.

Theme v1.10.0

  • Added a container part to the FormControl component theme, allowing the root FormControl element to be themed.

  • Fixed issue where modals with size=full have vertical margins.

Button v1.4.2

Resolved an issue where a Button in loading state didn't consider the width of leftIcon and rightIcon, resulting in layout shifts when the button leaves the loading state. Buttons now render with the same width regardless of state.

Checkbox v1.5.5

Remove code that was added as a workaround for pre-releases of React concurrent mode.

Layout v1.4.8

Stack: Ensure that when cloning children, their provided keys are preferred over index. This prevents them from being destroyed and recreated when a child's position in the list changes.

Menu v1.7.2

MenuList scroll to next MenuItem on keyboard navigation when there is a defined maxHeight on MenuList.

Fix issues when rendering chakra components in different window

NumberInput v1.2.9

Remove code that was added as a workaround for pre-releases of React concurrent mode.

Radio v1.3.9

Remove code that was added as a workaround for pre-releases of React concurrent mode.

Slider v1.2.8

Fix issue where slider thumb doesn't show active state in firefox

Stat v1.1.12

Add container part to Stat styleConfig

Styled System v1.12.2

  • Corrected parseGradient function so that it checks for CSS functions. Previously, using the CSS calc function would result in invalid CSS being generated. The expectation is that:
<Heading bgGradient="linear(to-r, green.200, pink.500 calc(20px + 20px))">
  Chakra-UI: Create accessible React apps with speed
</Heading>
functions similar to linear-gradient which handles using a CSS function

<Heading
  bgImage="linear-gradient(
    to right,
    var(--chakra-colors-green-200)),
    var(--chakra-colors-pink-500 calc(20px + 20px))"
>
  Chakra-UI: Create accessible React apps with speed
</Heading>
  • Grid props type definitions now correctly reflect the implemented behavior in regard to tokens.

System v1.7.2

Fix type definitions for apply prop. The apply prop supports responsive styles:

// Before: type error, expects `string` for `apply`
<Text apply={{ sm: 'styles.h3', lg: 'styles.h4' }}>

// After: no type error, expects `ResponsiveValue<string>` for `apply`
<Text apply={{ sm: 'styles.h3', lg: 'styles.h4' }}>

Tooltip v1.3.9

Fix tooltips not closing when openDelay is set

Utils v1.8.2

  • Remove code that was added as a workaround for pre-releases of React concurrent mode.
  • Fix issues when rendering chakra components in different window

08-07-2021

@chakra-ui/react@1.6.5

CLI @1.5.0

  • Enable esModuleInterop for chakra-cli tokens
  • Token generation supports non valid JS keys for components

Utils v@1.8.1

  • Fixed a circular dependency which was causing warnings when bundling Chakra with rollup.

System v@1.7.1

  • Fix issue where undefined style props (such as borderRadius) would not fallback to the default styles

16-06-2021

@chakra-ui/react@1.6.4

Button v1.4.0

  • Add className prop to button load spinner.
  • Update transitions to use theme tokens and remove outline transitions.

Media Query v1.1.0

  • useBreakpointValue() now supports receiving a defaultBreakpoint as the second argument to support SSR/SSG.

Styled System v1.12.0

System v1.7.0

  • The styled function allows a functional baseStyle property.
import { styled } from '@chakra-ui/react'

const MyComponent = styled('div', {
  baseStyle: (props) => ({
    bg: props.highlightColor
  })
})

// ...

<MyComponent highlightColor="red.500" />

Cli v1.4.0

  • The tokens 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 named theme.

// 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 }

Accordion v1.3.3 & Checkbox v1.5.3 & Control Box v1.0.13 & Modal v1.8.8 & Number Input v1.2.7 & Progress v1.1.10 & Tag v1.1.10

  • Update transitions to use theme tokens and remove outline transitions.

Hooks v1.5.3

  • Fix inconsisent id generation between client and server.

Menu v1.6.4

  • Fix issue where closeOnSelect won't work sometimes.
  • Update transitions to use theme tokens and remove outline transitions.

Popover v1.7.2

  • Fix issue where arrowshadowcolor didn't work.

React v1.6.4

  • Fix inconsisent id generation between client and server.

Stat v1.1.10

  • Export TypeScript interface StatGroupProps.

Tabs v1.5.2

  • Render tab indicator at the correct position.
  • Update transitions to use theme tokens and remove outline transitions.

Theme v1.9.1

  • Fix an issue where the distance to the next element below a textarea was too large in some browsers.
  • Update transitions to use theme tokens and remove outline transitions.

Toast v1.2.8

  • Resolved an issue where overflowX couldn't be used within a toast's title or description by adding maxWidth="100%" to the containing div.

Transition v1.3.2

  • Fixed an issue in the Collapse transition's enter animation in case of unmountOnExit.

26-05-2021

@chakra-ui/react@1.6.3

Popper v2.2.0

The popper.js instance will not be created until the enabled option is true. This improves the render and scroll performance when you use many popper-related items.

Affected components: Menu, Popover and Tooltip components

Media Query v1.0.14 Fix issue where useMediaQuery does not work as expected when use within an iframe. The hook now references the correct ownerDocument

Styled System v1.6.7

  • Fix boolean condition affecting bgImage url
  • Fix import type issues caused by the WithCSSVar type

17-05-2021

@chakra-ui/react@1.6.2

Styled System v1.11.0

Ring

  • Added ring style props to make it easier to style an element's focus ring shadows. Props are ring, ringColor, ringOffset, and ringOffsetColor.

CodeSandbox Link

// adds a 2px box-shadow with `gray.400` color
<Box ring="2px" ringColor="gray.400">
  Sample
</Box>

// adds main box-shadow + offset box-shadow
<Box ring="2px" ringColor="gray.400" ringOffset="3px" ringOffsetColor="white">
 Sample
</Box>

Filter Styles

  • Added css variable based API to apply css filter properties (blur, backdrop-blur) to an element. Props are filter, blur, sepia, brightness, invert, saturation, backdropFilter, backdropBlur, sepia, saturation, etc.

To use this API, you'll need to set filter to auto, same for backdropFilter.

// adds a 3px blur filter to this element
<Image src="boruto.png" filter="auto" blur="3px" />

// adds a 3px blur and 40% saturation filter to this element
<Image src="boruto.png" filter="auto" blur="3px" saturation={0.4} />

Transform Styles

  • Added css variable based API to apply css transform properties (translateX, translateY, scale, etc.). Props are translateX, translateY, rotate, scaleX, scaleY, and scale.

To use this API, you'll need to set transform to auto or auto-gpu (for the GPU accelerated version).

<Circle transform="auto" translateX="4" _hover={{ translateX: "8" }}>
  <CheckIcon />
</Circle>
  • Add mixBlendMode, backgroundBlendMode, and bgBlendMode props to apply blend modes to elements.

  • Automatic wrapping of backgroundImage or bgImage props with url() so you can just pass the image URL directly.

// You can now do this!
<Box bgImage="naruto.png" />

// This still works
<Box bgImage="url(naruto.png)" />
  • Text decoration styles: Added textDecorationColor, textDecorationLine, textDecorationStyles style props.

  • Add isolation style prop to create a new stacking context.

High Contrast Mode

  • Fixed issue where setting outline:0 or outline:none and using box-shadow for focus outlines don't work in high-contrast mode.

  • To fix this, we've added outline: 2px solid transparent whenever you set outline:0 to make your components work in high-constrast mode by default.

Learn more

  • Fix the _dark pseudo props to map to .chakra-ui-dark &, [data-theme=dark] &, &[data-theme=dark].

  • Added _light pseudo props to map to .chakra-ui-light &, [data-theme=light] &, &[data-theme=light] for users that prefer to start with dark mode.

  • Added overscroll, overscrollX, and overscrollY style prop to manage overscroll behavior of an container.

Theme v1.9.0

  • Add blur token values for filter and backdropFilter.
{
  "none": 0,
  "sm": "4px",
  "base": "8px",
  "md": "12px",
  "lg": "16px",
  "xl": "24px",
  "2xl": "40px",
  "3xl": "64px"
}

Form Control v1.3.6

  • Fix issue where FormLabel could not be used without form-control.

Menu v1.6.2

  • Fix issue where typeahead overrides input keydown.

React v1.6.2

  • ChakraProvider now accepts the prop cssVarsRoot which defaults to :host, :root.

System v1.6.6

  • Attach CSS vars to :host, :root to fix usage in shadow dom.

Transition v1.3.1

  • Fix issue where onAnimationComplete is not forwarded to motion element.

04-05-2021

@chakra-ui/react@1.6.1

Popover v1.7.0

  • Add an export for usePopoverContext hook.

Transition v1.3.0

  • Add support for tweaking the enter-exit transitions. Affected components: Fade, Slide, SlideFade, SlideScale, Collapse.
<Fade
  transition={{
    enter: { duration: 0.3 },
    exit: { duration: 0.1 },
  }}
/>
  • Fix issue where Collapse animation hide overflow when it expands. Collapse transition how shows overflow when it's expanded and hides overflow when it's collapsed.

  • Add support for delay prop for all transition components.

// as a number
<Fade delay={0.3} />

// or based on state (enter/exit only)
<Fade delay={{ enter: 0.2 }} />

// or both
<Fade delay={{ enter: 0.2, exit: 0.1 }} />

Note: this only works when you're using our built-in transition definition. If you're passing your own transition definition, pass the delay there.

// adding delay to your custom transition definition
<Fade
  transition={{
    enter: { duration: 0.2, delay: 0.1 },
  }}
/>

Utils v1.8.0

  • Add types for the return value of pipe function.
  • Update user agent assertions.
  • Add walkObject helper to iterate over all keys including nested.

React Env v1.0.4

  • Update mock window.

Menu v1.6.1

  • Fix issue where closeOnSelect didn't work for menuitem options.

Modal v1.8.5

  • Fix types for modal overlay fade config.

Slider v1.2.5

  • Fix issue where onChangeStart doesnt get called.
  • Fix issue where slider thumb remains tabbable when isDisabled={true}.
  • Fix issue where onChangeEnd doesn't get called when you click anywhere on the track.

Styled System v1.10.5

  • Refactored the creation of the theme css vars.

23-04-2021

@chakra-ui/react@1.6.0

Gatsby Plugin v2.0.0

  • Upgrading to this new major version is recommended for everyone as it fixes hot reloading in Gatsby (Fast Refresh). In the previous version changes to the shadowed theme.js file didn't trigger automatic reloading, and a manual reload was necessary.

  • The isUsingColorMode option was removed. The ChakraProvider will always use the ColorModeProvider.

  • The isResettingCSS option was renamed to resetCSS. Those changes were made to use the current ChakraProvider and align the prop names.

Improvements

  • Use ChakraProvider instead of the outdated ThemeProvider pattern.
  • Add initialColorMode to the ColorModeScript.
  • Allow Fast Refresh reloading of all theme files.
  • Set stricter peerDependency on gatsby (to ^2.29.3 || ^3.0.0).

Accordion v1.3.0

  • Update tabs and accordion to use updated descendants logic.

Menu v1.6.0

  • Update menu to use new descendants logic.
  • Fix issue where menu doesn't select menu item when the first item is disabled.
  • Fix issue where menu doesn't work when an input is used within it.
  • Fix issue where menu button doesn't work with truncated text.

Pin Input v1.6.0

  • Update pin-input to use the new descendants logic.

React v1.6.0 & Theme v1.8.4

  • The extendTheme function allows you to pass multiple overrides or extensions:
import {
  extendTheme,
  withDefaultColorScheme,
  withDefaultSize,
  withDefaultVariant,
  withDefaultProps,
} from "@chakra-ui/react"

const customTheme = extendTheme(
  {
    colors: {
      brand: {
        // ...
        500: "#b4d455",
        // ...
      },
    },
  },
  withDefaultColorScheme({ colorScheme: "brand" }),
  withDefaultSize({
    size: "lg",
    components: ["Input", "NumberInput", "PinInput"],
  }),
  withDefaultVariant({
    variant: "outline",
    components: ["Input", "NumberInput", "PinInput"],
  }),
  // or all in one:
  withDefaultProps({
    defaultProps: {
      colorScheme: "brand",
      variant: "outline",
      size: "lg",
    },
    components: ["Input", "NumberInput", "PinInput"],
  }),
  // optional:
  yourCustomBaseTheme, // defaults to our chakra default theme
)

Tabs v1.5.0

  • Update tabs and accordion to use updated descendants logic.
  • Add support for RTL keyboard navigation.

Utils v1.7.0

  • Add pipe function.
  • Add generic to isFunction guard.

Button v1.3.1

  • Resolved an issue where the type prop of the Button component was set to undefined.

Progress v1.1.8

  • Fix hyperlink to docs.

React Utils v1.1.2

  • Update types for mergeRefs to include null.

Gatsby Starter Default v0.3.0

  • Updates to Gatsby-related documentation to account for the breaking changes made in PR #3841. The "Providers" section from the Gatsby guide was removed as the plugin itself handles everything already.

19-04-2021

@chakra-ui/react@1.5.2

Button v1.3.0

  • Added spinnerPlacement prop to allow changing the spinner placement for the button when isLoading is true. Spinner placement can be either start or end.
<Button isLoading spinnerPlacement="end">
  Click me
</Button>

Checkbox v1.5.0

  • Add isDisabled prop to CheckboxGroup.

Hooks v1.5.0

  • Add pan session hook usePanGesture for detecting pan gestures.
  • Update useLatestRef to inline value updates. Not concurrent mode safe but works for now.
  • Add useEventListenerMap to provide an elegant way of attaching several pointer event to the document or an element.

Menu v1.5.0 & Popover v1.6.0 & Tabs v1.4.0

  • This change restores the behavior of the isLazy prop (which was broken by the previous release) and adds a new lazyBehavior prop which configures the behavior of isLazy.

If you'd like the content of tab panel, popover and menu components to be unmounted when not selected or opened, please continue to use isLazy. This is the default behavior.

If you'd like the content of tab panel, popover and menu components to remain mounted (but hidden) after it was previously selected or opened, use lazyBehavior="keepMounted" in combination with isLazy.

Utils v1.6.0

  • Add lazy content utility for disclosure components like popover, menu, tab, etc.
  • Add pan session class to handle pan gestures. This is used in the slider logic and sharable with vue library.
  • Perfomance: Throttle pan move events to once per frame which improves the slider's onChange call performance.
  • Update types for internal pointer event.

React Env v1.0.2

  • Fix bug where EnvProvider breaks SSR.

Modal v1.8.3 & Theme v1.8.3

  • Fixed an issue where the modal exceeded the viewport height on iOS.

Slider v1.2.3

  • Fix issue where slider doesnt work after first slide.
  • Avoid exccess onChange calls.

Stat v1.1.7

  • Fixed a11y issue related to StatHelpText. It was using an invalid dl child tag.

Styled System v1.10.3

  • Fixed an issue where thtransition props are not resolved correctly.

13-04-2021

@chakra-ui/react@1.5.1

Hooks v1.4.0

  • Add support for passing function that returns element to useEventListener and usePointerEvent.

Menu v1.4.0

  • Add closeOnSelect to MenuItem and MenuItemOption.
  • Do not unmount menu list after first render.
  • Use prop getter from use-popper to prevent ssr content jump.

Transition v1.2.0

  • Allow custom transition variants.

Button v1.2.2

  • Fix alignment of icon inside button.
  • Update button group styles to use rtl-friendly equivalent.

Clickable v1.1.2

  • Add missing dependency issue of @chakra-ui/react-util.

Editable v1.1.2

  • Update focus-on-mousedown util to avoid memory leak.

React Env v1.0.1

  • Fix issue where window could be null Skip logic when environment prop is passed.

Input v1.2.2

  • Remove unused padding-x from input element.

  • Update input addon and element style handling.

Layout v1.4.2

  • Fix RTL styles for OrderedList and UnorderedList.

Popover v1.5.1

  • Fix RTL styles for close button.

  • Do not unmount lazy popovers after first render.

  • Update focus-onmousedown to avoid memory leak.

  • Use prop-getters from use-popper to prevent ssr content shift.

Popper v2.1.1

  • Update README for the popper.js wrapper.

Progress v1.1.6

  • Fix an issue where CircularProgress with isIndeterminate doesn't show the indicator

React v1.5.1

  • Fixed typing issues for extendTheme where variant overrides lead to an TS error.

  • Add EnvironmentProvider to ChakraProvider for better window and document detection across hooks and components.

Spinner v1.1.6

  • Fix issue where spinner base-style cant be overriden.

System v1.6.2

  • Allow passing custom props to useStyleConfig.
  • Add missing dependency issue of @chakra-ui/react-utils.

Tabs v1.3.2

  • Do not unmount lazy tabs when unselected.

Theme v1.8.2

  • Changes incorrect panel part name in Progress theme file to label.

  • Update input, alert and tabs RTL styles.

Toast v1.2.3

  • Fix RTL styles for toast component.

Tool tip v1.2.3

  • Use prop-getters from use-popper to prevent ssr content shift.
  • Add missing dependency issue of @chakra-ui/react-utils.

Utils v1.5.2

  • update type signature for px function.

07-04-2021

@chakra-ui/react@1.5.0

React v1.5.0

  • Bump package as minor.
  • Resolved a peer dependency resolution issue reported by yarn2, npm7, and other more modern package managers.

Popover v1.5.0

  • Return prop getters for popover header and body and use ref callback to determine element's presense instead of useEffect. #3733

  • Add support for rootProps to PopoverContent to allow passing props to popover's positioner.

  • Make it possible to add custom motion variants so users can orchestrate custom transitions.

  • Move popover arrow shadow color computation to popover's theme.

  • Update import of shared utils from react-utils to utils.

Popper v2.1.0

  • Add prop getters for popper and arrow for better ssr support.
  • Replace utils dependency with react-utils.

Table v1.2.0

  • Add TableContainer component to help tables scroll horizontally when overflowing.
<TableContainer>
  <Table>
    {...}
  </Table>
</TableContainer>

Checkbox v1.4.1, Radio v1.3.1

  • Update import of shared utils from react-utils to utils.
  • Replace withFlushSync with scheduleMicrotask callback to prevent ReactDOM warning.

Form Control v1.3.1

  • Refactor form label to use prop getter instead of hook for better consistency.
  • Replace withFlushSync with scheduleMicrotask callback to prevent ReactDOM warning when an element us focused by calling .focus(). This works as well in concurrent mode.

Modal v1.8.1

  • Resolved a peer dependency resolution issue reported by yarn2, npm7, and other more modern package managers.
  • Omit scroll-behavior from drawer props.

Number Input v1.2.1

  • Replace withFlushSync with scheduleMicrotask callback to prevent ReactDOM warning.

Progress v1.1.5

  • Fix issue in safari where circular progress indicator shows a tiny bit when value is 0.

React Utils v1.1.1

  • Update prop getter v2 type to take second parameter.
  • Update import of shared utils from react-utils to utils.
  • Replace withFlushSync with scheduleMicrotask callback to prevent ReactDOM warning.

Select v1.1.5

  • Fix RTL styles for select field to use paddingEnd instead of pr.

Theme v1.8.1

Popover

  • Moved maxW from popover's popper to content to allow for better control of the popover's width.
  • Use width instead of maxW to allow users more control of popover's width.
  • Use --popover-bg css property to control popover and arrow background.
<PopoverContent style={{ "--popover-bg": "purple" }}>
  <PopoverArrow />
</PopoverContent>
  • Add popover arrow shadow color.

Select

  • Update select icon to use insetEnd instead of right for RTL.

Skip Link

  • Update styles to use insetStart instead of left for RTL.

Table

Update text align attribute to use end instead of right for RTL.

Theme Tools v1.1.3 & Transition v1.1.2

  • Fix issue where warn doesn't get called.

Toast v1.2.2

  • Take into account safe area insets for Toasts.

Tooltip v1.3.1

  • Resolved a peer dependency resolution issue reported by yarn2, npm7, and other more modern package managers.

Utils v1.5.1

  • Update import of shared utils from react-utils to utils.
  • Replace withFlushSync with scheduleMicrotask callback to prevent ReactDOM warning.
  • Import types for warn function.

30-03-2021

@chakra-ui/react@1.4.2

Accordion v1.2.0

  • Extract all react based utilities and types to @chakra-ui/react-utils.

Avatar v1.2.0

  • Fix RTL styles.

Checkbox v1.4.0

  • Add getRootProps to useCheckbox hook to manage props passed to checkbox container.

  • Forward onFocus, onBlur and aria-\* props to the input element for better integration with form libraries.

  • Ensure the checkbox works when the root element is not label. This helps to fix the current accessibility issues with the Switch component when wrapped within FormControl.

Counter v1.1.0

  • Expose setValue function to allow update state without calling onChange.
  • Fix issue where onChange is called when value did not change.

Form Control v1.3.0

  • Refactor useFormControlProvider to return prop getters getHelpTextProps, getErrorMessageProps, and getRootProps.

  • Detect helper text and error message using ref callback instead of useLayoutEffect.

  • Update aria-describedby id to include feedbackId only when isInvalid is true.

  • Create useFormControlProps to provide a way to get the resolved form control props isInvalid, isDisabled, instead of HTML attributes. This will make it easier to integrate with number-input, checkbox, and switch.

  • Fix concurrent mode issue with setting state in focus event handler. We use withFlushSync helper to achieve this.

Hooks v1.3.0

  • useControllableState: The onChange callback will be called only if the new value isn't equal to the current one.

Layout v1.4.0

  • Remove redundant role attribute from divider.

  • Fixed the bug where a margin- bottom would get applied to direction=row of stack when using responsive props.

  • Fix issue where AbsoluteCenter doesn't have position: absolute.

Number Input v1.2.0

  • Forward aria-\* props to the input element.

  • Fix issue where onChange was called on mount.

  • Fix issue where onBlur was called twice.

  • Memoize all callback props onFocus, onBlur, getAriaValueText.

  • Refactor implicit useFormControl logic to be called from NumberInput instead.

  • Call setFocused.on with ReactDOM.flushSync to prevent concurrent mode issue where setting state in onFocus affects onChange event handler.

Styled System v1.1.0

  • Add support for css variable tokens. This means you can create a css variable and reference value in the tokens.
<Box
  sx={{
    "--banner-color": "colors.red.200",
    "& .banner": {
      bg: "var(--banner-color)",
    },
  }}
/>

System v1.6.0

  • Fixed an issue where the StylesProvider export was not working in every environment.

  • Add style config for upcoming rotateX, rotateY, scaleX, scaleY style props.

Theme v1.8.0

  • Remove 0 token value from spacing tokens. 0 maps to 0 and there's no need to create a css custom property for that.

Switch

  • Add container part
  • Use css vars to handle styles
  • Fix RTL styles

Stat, Table

  • Fix RTL styles

Utils v1.5.0

  • Add withFlushSync function wrapper to help resolve concurrent mode and onFocus state issues.

Toast v1.2.1

  • Bump @reach/alert to fix yarn pnp issue.

21-03-2021

@chakra-ui/react@1.4.1

Styled System v1.9.1

  • Fix issue where textStyle doesn't get applied.

20-03-2021

@chakra-ui/react@1.4.0

React v1.4.0

  • Added support for framer-motion v4.

Popper v2.0.0

  • Refactor the positioning logic to improve stability and leverage CSS custom properties.

Styled System v1.9.0

  • Fix issue where responsive styles defined in text styles not overridden by style props.
  • Fix issue where toCSSVars omitted the transition tokens.
  • Fix issue where RTL property keys are incorrect due to config.property mutation.
  • Added typings for the theme prop in ThemingPropsThunk and export a standalone type ThemeComponentProps. ThemingPropsThunk
  • Update mx and px to use logical properties. Instead of mapping to marginLeft and marginRight, it maps to marginInlineStart and marginInlineEnd. Same for px.

CLI v1.3.0

  • Add support for text style and layer style theme type generation to @chakra-ui/cli.

Color Mode v1.1.2

  • Memoize the context value for ColorModeProvider.

Editable v1.1.3

  • Fix issue where blur/submit fires unexpectedly if submitOnBlur is true and you try to click the cancel button.

Radio v1.2.5

  • Fix issue where controlled radio group can't be cleared.
  • Fix onChange type for use-radio-group props.

Tag v1.1.3

  • Add aria-label to tag close button.

Gatsby Plugin v1.0.2

  • Update peer-dependency range for gatsby to support the latest.

Popover v1.3.0

  • Fix issue (for Safari and Firefox) where popover doesn't close when you click the trigger and popover is open.

05-03-2021

@chakra-ui/react@1.3.4

System v1.4.0

  • Add support for CSS Variables to the core of Chakra.
  • Improve style computation performance by 2.5x.
  • Adds support for main in chakra factory

Styled System v1.8.0

  • Add support for CSS Variables to the core of Chakra.
  • Improve style computation performance by 2.5x.

Theme v1.7.0

  • Add new config property cssVarPrefix to add a custom prefix for CSS variables. It defaults to chakra.
  • TabPanels component can now be styled from Tabs component theme, specifying the tabpanels part.
  • Fix full size modal with y-overflowing content behaviour
  • Fix border styles for alert and number input
  • Provide proper typings for ThemeOverride.components.
  • Resolved an issue where optgroup in dark mode was unreadable on browsers that allow select contents styling.

Theme Tools v1.1.0

  • Update implementation of create-breakpoints to reduce code logic. Add deprecation message

Hooks v1.1.5

  • Add support to format - Optional string. Set the MIME type of what you want to copy as. Use text/html to copy as HTML, text/plain to avoid inherited styles showing when pasted into rich text editor.

Layout v1.3.2

  • SimpleGrid: Avoid grid blow by adding minmax(0, 1fr).
  • Simplify wrap style management to use CSS custom properties.

Popper v1.1.5

  • Make the react-popper state in sync with the internal popper instance state

React v1.3.4

  • Fixed an issue where extending the theme with custom breakpoints with strictNullChecks: false in tsconfig.json lead to an error.

Select v1.1.2

  • Resolved an issue where optgroup in dark mode was unreadable on browsers that allow select contents styling.

Slider v1.1.2

  • onChangeEnd won't be called if value doesn't change.

13-02-2021

@chakra-ui/react@1.3.3

Color Mode v1.1.0

  • You can now customize the nonce of the <script> that ColorModeScript creates by passing nonce prop.

Focus Lock v1.1.0

  • Upgrade to react-remove-scroll@2.4.1 and react-focus-lock@2.5.0 to fix React 17 peer dependencies compatibility.

Checkbox v1.2.3 & Radio v1.2.3

  • Improve the semantic HTML structure of checkbox.

Popper v1.1.4

  • The popper.js instance is now created only once it is actually needed for positioning.

React v1.3.3

  • The extendTheme function uses the type Theme again.

Theme v1.6.2

  • Export Recursive* types from theme, styled-system.
  • Bring back the TS type Theme export and deprecated DefaultChakraTheme.
  • Allow halved values in design token in spacing as mentioned in the documents.

CLI v1.2.1

  • CLI tokens command now ignores TS errors in your theme file.

06-02-2021

@chakra-ui/react@1.3.2

Pin Input v1.4.0

  • Resolved an issue where completing character entry in PinInput failed to call onComplete.

React v1.3.0

  • 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>()
    //...
  }
  • Fixed issue in extendTheme where overrides defined as function replaced all base styles defined as a plain object.
  • Fixed an issue where the TypeScript types were too narrow for component defaultProps and ComponentMultiStyleConfig.

Styled System v1.7.0

  • Theme Typings: Add autocomplete for negative space values.
  • 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 the 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.
  • Allow numbers for borderTop and provide autocomplete for fontWeight prop.
  • Support negative scale values for css variables.

System v1.3.0

  • Add support for responsive values when using apply, textStyle and layerStyle.

Theme v1.6.0

  • Fixed an issue where a Tooltip with negative gutter causes flickering on hover.
  • Fixed an issue in Firefox where Input overflows it's flex container.

CLI v1.2.0

  • Theme Typings: Add autocomplete for negative space values

Accordion v1.1.2 & Avatar v1.1.2 & Button v1.1.2 & Checkbox v1.2.2 & Radio v1.2.2

  • Provide better typings for size and variant for AvatarGroup, CheckboxGroup, ButtonGroup, and RadioGroup

Color Mode v1.0.7

  • Fix issue where reading from localStorage maybe fail due to several reasons (SecurityError, Uncaught DOMException, TypeError, etc.)

Input v1.1.1

  • Fixed the typo in InputProps interface due to which theming types were not correct.

Tool tip v1.1.1

  • Fixed an issue where a Tooltip with negative gutter causes flickering on hover.

31-01-2021

@chakra-ui/react@1.2.1

System v1.2.1

  • Allow string values for ThemingProps['colorScheme']

CLI v1.1.0

  • Add minor bump for adding subcommand tokens to generate Theme Typings & Republished with version 1.1.0.

31-01-2021

@chakra-ui/react@1.2.0

Color Mode v1.0.6

  • useColorModeValue defaults to light mode on first render if system color mode is used.

Hooks v1.1.3

  • Update reference to document.addEventListener to detect owner document based on ref passed. This would help detect outside click currently from within an iframe.

Layout v1.3.0

  • Update transform style for AbsoluteCenter when axis is both
  • Add shouldWrapChildren to Wrap component to make it possible use Wrap directly without thinking about WrapItem.
  • Update LinkBox and LinkOverlay components and make them public in docs.

Menu v1.1.0

  • The MenuItem now accepts a commandSpacing prop that can be used to adjust the space between the command and label.
  • Add support rootProps to MenuList so it's possible override the styles for root container for menu list. Common use case is to change the applied zIndex of the menulist.
  • Make it possible to override zIndex by passing props to MenuList.

Modal v1.5.0 & Tool tip v1.1.0

  • Add support for forwarding props to the underlying Portal component. Pass the portalProps prop to achieve this.
  • containerRef: ref for the element where to mount the portal.
  • appendToParentPortal: If false, it'll opt out of portal nesting.

Portal v1.1.0

  • Add support for appendToParentPortal={false} to opt out of nested portals.
  • Fix issue with portal zIndex container where it renders elements outside of view.
  • Renamed getContainer prop to containerRef to make it possible to pass the ref directly. This affects the Modal component primarily.

Styled System v1.6.0

  • Fix issue where CSS color names are not passed correctly.
  • Improved theme typing in order to provide a better autocomplete experience.

Tabs v1.1.0

  • The useTabsContext hook is now exported and can be used in user land.

Theme v1.5.0

  • Add 8xl to size tokens.

24-01-2021

@chakra-ui/react@1.1.6

Layout v1.2.0

  • Add AbsoluteCenter component to help manage centering of an element relative to its parent dimensions

Pin Input v1.2.0

  • Added an otp flag to PinInput that sets the autoComplete value of PinInputField to "one-time-code"

Hooks v1.1.2

  • Fixed issue where using an uncontrolled RadioGroup without a defaultValue causes multiple radio options can be selected

Portal v1.0.6

  • Fixed portal z-index wrapper squashing portaled elements

Popover v1.1.0

  • Add flip prop to Popover to change the placement when it is scheduled to overflow a given boundary

17-01-2021

@chakra-ui/react@1.1.5

Popper v1.1.0

  • Added enabled property to usePopper. Popper won't be updated while it is set to false. Menu now uses this option to not update its position while it's closed.

Styled System v1.5.0

  • Move srOnly prop to styled system props. This will deprecate the need for the visually hidden package. Less is more!
  // If `true`, hide an element visually without hiding it from screen readers.
  <Box srOnly>Visually hidden</Box>

  // If `focusable`, the sr-only styles will be undone, making the element visible to sighted users as well as screen readers.
  <Box srOnly _active={{ srOnly: "focusable" }}>Visually hidden but shown on focus
  </Box>
  • Add polyfill for inset style prop as the CSS inset doesn't work in Safari Add missing style props for grid and flex layouts: gridTemplate, gridRowStart, gridRowEnd, flexFlow, clipPath

Checkbox v1.1.2

  • Update styles to use css logical style props

Hooks v1.1.1

  • Resolved an issue where event handlers for certain components were removed after the first event occurred.
  • Fixed SSR issue with useId hook.

Menu v1.0.5

  • Update styles to use css logical style props
  • Added enabled property to usePopper. Popper won't be updated while it is set to false. Menu now uses this option to not update its position while it's closed.

Popover v1.0.7

  • Popover now won't update its popper position while it's closed.

Portal v1.0.5

  • Fixed issue where adding portalZIndex to ChakraProvider makes app unusable

Progress v1.0.5

  • You can now override linear progress component's border radius in the theme.

Radio v1.1.2

  • Update styles to use css logical style props.

11-01-2021

@chakra-ui/react@1.1.4

Hooks v1.1.0

  • Added useCallbackRef hook for persisting a value between renders and updating it if it changes.
  • Deprecated useLatestRef, useEventCallback, and useMouseDownRef. These functions will be removed in a future major version.

10-01-2021

@chakra-ui/react@1.1.3

Styled System v1.4.0

  • Fixed a bug where rgb values in bgGradient did not work correctly
  • Due to Safari not support css logical properties for right, and left, we added polyfill for these css logical properties.
  • Add support for css media query and dark class selectors.

Theme v1.4.0

  • Add the 2xl breakpoint to the theme which maps to 96em or 1536px.

Media Query v1.0.3

  • Fixed useBreakpoinValue infinite loop due to bug in createMediaQueries.

Portal v1.0.3

  • Fixed issue where elements within portal used in an iframe got rendered outside of the iframe. Portal now smartly detects its document owner and attaches its node to the correct document.body
  • Removed extra DOM node PortalManager creates. Less is more!

Skeleton v1.0.7

  • Fixed a bug where SkeletonText kept its fixed dimensions when isLoaded is true.

Tabs v1.0.4

  • Fixed issue where Tab button no longer has aria-selected="false" when it is inactive.

03-01-2021

@chakra-ui/react@1.1.1

Button v1.0.3

  • Update the style props applied for leftIcon and rightIcon to support RTL. Changed ml and mr to marginStart and marginEnd respectively.
  • Update the style props applied when isLoading is true. Changed marginRight to marginEnd.

Stack

  • Update directionStyles to use logical CSS properties for RTL support.
  • Changed marginLeft and marginRight to marginStart and marginEnd respectively.

Styled System v1.3.1

  • Add missing borderStart, and borderEnd types for for style and color.
  • Sort Object.assign keys in configs/border.ts for better readability.

Other RTL fixes:

  • Alignment for the close icon for Tag, Modal, and Drawer components to support RTL.
  • Add RTL storybook toolbar to make it easy to test RTL layouts.

28-12-2020

@chakra-ui/react@1.1.0

React v1.1.0

Checkbox v1.1.0

  • Deprecated the defaultIsChecked prop in favor of defaultChecked.

Radio v1.1.0

  • Deprecated the defaultIsChecked prop in favor of defaultChecked.
  • Resolved an issue where uncontrolled Radio components used outside of RadioGroup were not working.

Styled System v1.3.0

  • Improved performance

Pin Input v1.1.2

  • Resolved an issue where PinInputField rendered an input with autocomplete="not-allowed" instead of autocomplete="off".

Skeleton v1.0.4

  • SkeletonText now accepts the props fadeDuration and speed and animates its children, like the Skeleton component.

18-12-2020

@chakra-ui/react@1.0.4

⚠️ Peer dep version bump! framer-motion is now at 3.0.0

Form Control v1.1.0

  • Add support for controlling focus lock across frames.
  • Removed isLoading prop from FormControl out of a lack of need.
  • Fixed an issue where FormHelperText was not rendering when parent FormControl.isInvalid was set.

Modal v1.3.0

  • Add support for controlling focus lock across frames.

Styled System v1.2.0

  • Add suppotr for css logical properties and direction in the theme for future RTL optimizations.

Pin Input v1.1.1

  • Fixed an issue where copy pasting didnt work.

Number Input v1.0.3

  • Fixed an issue where input didnt work with form libraries that rely on ref (e.g. react-hook-form).
  • Added support to override type and pattern props.

Input v1.0.3

  • Fixed an issue where removing an element didnt reset the padding.

Skeleton v1.0.3

  • Fixed an issue where Skeleton.isLoading would fade the skeleton even if isLoading is true.

Theme v1.2.2

  • Focus outline > isInvalid outline (affects all components extending from Input, e.g. Select, PinInput, ...)

Utils v1.0.2

  • Custom breakpoints beginning with a number are now working

08-12-2020

@chakra-ui/react@1.0.3

Pin Input v1.1.0

  • Internals reworked.
  • Added support for type prop (alphanumeric | number).
  • Added mask prop to provide similar utility like input type password.

Alert v1.0.2

  • Alert now colorScheme aware (overrideable via status).

Close Button v1.0.2

  • Resolved an issue where DrawerCloseButton was not receiving its base styles when it was passed other styles through the __css property, breaking the button's positioning.

React v1.0.3

  • Fix too narrow TypeScript type for theme override.

03-12-2020

@chakra-ui/react@1.0.2

Docs

Layout v1.1.0

  • Divider, Container, List, ListItem and ListIcon are now themable.

Modal v1.2.0

  • ModalCloseButton is now themable.

Theme v1.2.0

  • AlertIcon no longer shrinks if alert contains long text.
  • Added theme support for above mentioned layout components.

Toast v1.1.0

  • Allow React.ReactNode as type for title.

Form Control v1.0.2

  • Remove dead props on type.

Number Input v1.0.2

  • NumberInput is now form-control props agnostic, like Input and Select do.

Radio v1.0.2

  • Radiois now form-control props agnostic, like Input and Select do.

React v1.0.2

  • Improved types for extendTheme.

Transition v1.0.2

  • Children now consistently render if "in" was true on initial render.