Skip to content

Commit

Permalink
docs: update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
segunadebayo committed Sep 5, 2023
1 parent 19c76c1 commit fbaa91b
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .changeset/fluffy-islands-punch.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
"@zag-js/tabs": minor
---

Optimize onFocus and onChange type declaration. Remove onDelete from type defintion.
- Optimize `onFocus` and `onChange` type declaration.
- Remove `onDelete` from type defintion.
2 changes: 1 addition & 1 deletion .changeset/gentle-mails-occur.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"@zag-js/date-picker": patch
---

Fix issue where datepicker value onChange returned a proxy array
Fix issue where datepicker value `onChange` returned a proxy array
2 changes: 1 addition & 1 deletion .changeset/nasty-windows-change.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"@zag-js/radio-group": patch
---

Remove unsupport `readOnly` property from types
Remove unsupported `readOnly` property from types
2 changes: 1 addition & 1 deletion .changeset/neat-moose-guess.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"@zag-js/editable": minor
---

Rename MaschineApi to Api
Rename `MachineApi` to `Api`
48 changes: 48 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,54 @@ All notable changes to this project will be documented in this file.

See the [Changesets](./.changeset) for the latest changes.

## [0.18.0] - 2023-09-05

### Fixed

- **DatePicker**
- Fix issue where datepicker value `onChange` returned a proxy array
- Fix issue where clearing the date picker value prevent selecting a new date when `inline: true` is set
- **Menu**: Fix issue where `closeOnSelect` on menu item props isn't respected in machine
- **NumberInput**: Fix issue where number input goes into infinite update cycles due to additional input event

### Added

- **React**: Export `PropTypes` from react package for consistency
- **Select, Combobox**: Add support for selecting multiple items
- **Combobox**: Add support for `closeOnSelect`

### Changed

- **RadioGroup**: Remove unsupported `readOnly` property from types

> 💥 Breaking changes
Redesign select and combobox API to allow passing value as `string` and `collection`

Prior to this change, Zag computes the label and value from the DOM element. While this worked, it makes it challenging
to manage complex objects that don't match the `label` and `value` convention.

```jsx
// Create the collection
const collection = select.collection({
items: [],
itemToString(item) {
return item.label
},
itemToValue(item) {
return item.value
},
})

// Pass the collection to the select machine
const [state, send] = useMachine(
select.machine({
collection,
id: useId(),
}),
)
```

## [0.17.0] - 2023-08-26

### Fixed
Expand Down

4 comments on commit fbaa91b

@vercel
Copy link

@vercel vercel bot commented on fbaa91b Sep 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on fbaa91b Sep 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

zag-solid – ./examples/solid-ts

zag-solid-chakra-ui.vercel.app
zag-solid-git-main-chakra-ui.vercel.app
zag-solid.vercel.app

@vercel
Copy link

@vercel vercel bot commented on fbaa91b Sep 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

zag-vue – ./examples/vue-ts

zag-vue.vercel.app
zag-vue-git-main-chakra-ui.vercel.app
zag-vue-chakra-ui.vercel.app

@vercel
Copy link

@vercel vercel bot commented on fbaa91b Sep 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

zag-nextjs – ./examples/next-ts

zag-nextjs-git-main-chakra-ui.vercel.app
zag-two.vercel.app
zag-nextjs-chakra-ui.vercel.app

Please sign in to comment.