Skip to content

Commit

Permalink
ci(changesets): version packages
Browse files Browse the repository at this point in the history
  • Loading branch information
segunadebayo committed Mar 28, 2024
1 parent 1195171 commit 10aa1b5
Show file tree
Hide file tree
Showing 10 changed files with 124 additions and 95 deletions.
23 changes: 0 additions & 23 deletions .changeset/blue-masks-tell.md

This file was deleted.

17 changes: 0 additions & 17 deletions .changeset/curvy-zebras-fold.md

This file was deleted.

30 changes: 0 additions & 30 deletions .changeset/pretty-cougars-cough.md

This file was deleted.

20 changes: 0 additions & 20 deletions .changeset/tasty-scissors-watch.md

This file was deleted.

95 changes: 95 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# @chakra-ui/react

## 3.0.0

### Major Changes

- [#8153](https://github.com/chakra-ui/chakra-ui/pull/8153)
[`7b6e66a`](https://github.com/chakra-ui/chakra-ui/commit/7b6e66a15b08ad27e8458a009c3fb15ee738ca37)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Prepares the ground
for the next version Chakra that leverages Ark UI.

**User Facing**

- Consolidate all component packages into a single package
- Remove all deprecated components and APIs
- Simplify the Changelogs for all v2 releases

**Infrastructure**

- Simplify the repo infrastructure and release process
- Migrate from `jest` to `vitest`
- Migrate from `tsup` to custom `rollup` setup for better bundling strategy

### Minor Changes

- [#8121](https://github.com/chakra-ui/chakra-ui/pull/8121)
[`170198f`](https://github.com/chakra-ui/chakra-ui/commit/170198fc3936ad34f8136a2da173c12d9dc3dc36)
Thanks [@kkieninger](https://github.com/kkieninger)! - ### Fixed

- Fix hard-coded z-index for Menu in favor of one defined from the theme
- Fix problem with leading and trailing spaces when getting initials for the
Avatar component
- Suppress unnecessary re-renders of Checkbox and Radio component

### Added

- Add CSS `accentColor` property to style props
- Add support for `asChild` in chakra factory
- Export `toastStore` from `toast` component
- Upgrade `framer-motion` to allow for skipAnimations
- Add component namespace to reduce imports and provide better composition
- Modal, Drawer: Add default `preserveScrollBarGap`

### Changed

Redesign the component themes and anatomy

- [#8218](https://github.com/chakra-ui/chakra-ui/pull/8218)
[`a89c598`](https://github.com/chakra-ui/chakra-ui/commit/a89c598ed822bf11efc519f8789fa7c145e3bba0)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add support for
custom theme conditions or pseudo props via `theme.conditions`

```ts
// theme.ts

const theme = extendTheme({
conditions: {
_closed: "[data-state='closed']", // pseudo prop
},
})
```

This allows you to use the pseudo prop in your components

```jsx
<Box data-state="closed" _closed={{ bg: "red.200" }}>
This box is closed
</Box>
```

**For TypeScript users**, you need to use the Chakra CLI to generate the types
for your custom conditions.

```sh
pnpm chakra-cli tokens src/theme/index.ts
```

- [#8218](https://github.com/chakra-ui/chakra-ui/pull/8218)
[`a89c598`](https://github.com/chakra-ui/chakra-ui/commit/a89c598ed822bf11efc519f8789fa7c145e3bba0)
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Add support for
`_open` and `_closed` pseudo props for styling their respective selectors.

- `_open`: `&[data-state=open], &[open]`
- `_closed`: `&[data-state=closed]`
- `_groupOpen`: `[data-group][data-state=open] &`
- `_groupClosed`: `[data-group][data-state=closed] &`

Extend the existing pseudo props to support new selectors`

- `_placeholder` now supports `&[data-placeholder]`
- `_placeholderShow` now supports `&[data-placeholder-shown]`
- `_fullscreen` now supports `&[data-fullscreen]`
- `_empty` now supports `&[data-empty]`
- `_expanded` now supports `&[data-state=expanded]`
- `_checked` now supports `&[data-state-checked]`
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chakra-ui/react",
"version": "2.8.2",
"version": "3.0.0",
"description": "Responsive and accessible React UI components built with React and Emotion",
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.mjs",
Expand Down
15 changes: 13 additions & 2 deletions packages/test-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Change Log

## 2.0.46

### Patch Changes

- Updated dependencies
[[`170198f`](https://github.com/chakra-ui/chakra-ui/commit/170198fc3936ad34f8136a2da173c12d9dc3dc36),
[`7b6e66a`](https://github.com/chakra-ui/chakra-ui/commit/7b6e66a15b08ad27e8458a009c3fb15ee738ca37),
[`a89c598`](https://github.com/chakra-ui/chakra-ui/commit/a89c598ed822bf11efc519f8789fa7c145e3bba0),
[`a89c598`](https://github.com/chakra-ui/chakra-ui/commit/a89c598ed822bf11efc519f8789fa7c145e3bba0)]:
- @chakra-ui/react@3.0.0

## 2.0.45

### Patch Changes
Expand Down Expand Up @@ -682,10 +693,10 @@

```jsx live=false
// Won't work 🎇
import { useOutsideClick } from "@chakra-ui/hooks/dist/use-outside-click"
import { useOutsideClick } from "@chakra-ui/hooks/dist/use-outside-click";

// Works ✅
import { useOutsideClick } from "@chakra-ui/hooks"
import { useOutsideClick } from "@chakra-ui/hooks";
```

If this affected your project, we recommend that you import hooks, functions
Expand Down
2 changes: 1 addition & 1 deletion packages/test-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chakra-ui/test-utils",
"version": "2.0.45",
"version": "2.0.46",
"private": true,
"description": "Testing utilities for Chakra UI's components",
"keywords": [
Expand Down
13 changes: 13 additions & 0 deletions website/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# @chakra-ui/docs

## 2.1.7

### Patch Changes

- Updated dependencies
[[`170198f`](https://github.com/chakra-ui/chakra-ui/commit/170198fc3936ad34f8136a2da173c12d9dc3dc36),
[`7b6e66a`](https://github.com/chakra-ui/chakra-ui/commit/7b6e66a15b08ad27e8458a009c3fb15ee738ca37),
[`a89c598`](https://github.com/chakra-ui/chakra-ui/commit/a89c598ed822bf11efc519f8789fa7c145e3bba0),
[`a89c598`](https://github.com/chakra-ui/chakra-ui/commit/a89c598ed822bf11efc519f8789fa7c145e3bba0)]:
- @chakra-ui/react@3.0.0
- @chakra-ui/cli@2.4.1
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chakra-ui/docs",
"version": "2.1.6",
"version": "2.1.7",
"scripts": {
"dev": "next",
"prebuild": "pnpm build:search-meta && pnpm build:packages && pnpm build:props-docs",
Expand Down

0 comments on commit 10aa1b5

Please sign in to comment.