Skip to content

v1.0.0-beta.7

Compare
Choose a tag to compare
@jrgarciadev jrgarciadev released this 10 May 13:22
· 1403 commits to main since this release

What's Changed

πŸš€ Features

  • A new theme palette was implemented because the old one doesn't support accessibility contrast, all components and docs were modified to use the new palette based on the radix-ui colors package https://www.radix-ui.com/colors. https://nextui.org/docs/theme/default-theme
  • The @react-aria packages have been upgraded
  • Refactor Checkbox, Use the props type provided by @react-aria/checkbox and discard the property mapping for better integration and ease of future updates.

πŸ“š Docs

πŸ“¦ Repo

πŸ› Fixes

βš™οΈ Refactors

  • refactor(react-theme): a new theme palette by @jrgarciadev in #443
  • refactor(react-checkbox): use react-aria/checkbox prop types instead for better integration by @tianenpang in #435
  • chore(react-root): react aria package has been upgraded by @jrgarciadev in #457

πŸ’£ Breaking changes:

New Palette: https://nextui.org/docs/theme/default-theme

If you are using any of the NextUI base colors or accents colors through the tokens or theme object you should see and migrate your tokens/variables, takes this into account:

  • 500 step is now 600 for base colors ex: yellow500 (old) -> yellow600 (new)
  • accent1 is now accent0 an so on, ex: accent1 (old) -> accent0 (new)

Users will be able to import the colors separately as follows:

import { blue, yellow, blueDark, yellowDark, Text } from "@nextui-org/react";

export default function App() {
  return (
    <div>
      <Text color={blue.blue800}>Option A</Text>
    </div>
  );
}

Checkbox refactor

In order to avoid html props collisions, and have better integration with @react-aria hooks, we will be renaming the components prop, as follows:

Checkbox: https://nextui.org/docs/components/checkbox

Old APIs New APIs
checked isSelected
initialChecked defaultSelected
disabled isDisabled
indeterminate isIndeterminate
readOnly isReadOnly
required isRequired
animated disableAnimation
rounded isRounded
line lineThrough

Checkbox.Group: https://nextui.org/docs/components/checkbox-group

Old APIs New APIs
row isRow

This will be applied progressively to the components, take this into account because it causes breaking changes.

New Contributors

Huge thanks to @tianenpang πŸ™πŸ»

Full Changelog: v1.0.0-beta.6...v1.0.0-beta.7