Skip to content

Commit

Permalink
chore: release (#3948)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
scaleway-bot and github-actions[bot] authored Jul 3, 2024
1 parent ed752cc commit d61d6a2
Show file tree
Hide file tree
Showing 13 changed files with 104 additions and 93 deletions.
5 changes: 0 additions & 5 deletions .changeset/calm-wasps-vanish.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/clever-schools-design.md

This file was deleted.

69 changes: 0 additions & 69 deletions .changeset/khaki-ants-grow.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/popular-lies-travel.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/yellow-rivers-happen.md

This file was deleted.

75 changes: 75 additions & 0 deletions packages/form/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,80 @@
# Change Log

## 3.0.0

### Major Changes

- [#3780](https://github.com/scaleway/ultraviolet/pull/3780) [`64af9b3`](https://github.com/scaleway/ultraviolet/commit/64af9b3f3344b9c637db4a93968119db35ec2677) Thanks [@johnrazeur](https://github.com/johnrazeur)! - ## Accept control prop

Field can accept a `control` prop. When this prop is provided, the `name` prop must be present in the form and the `onChange` callback is typed.

## Remove defaultValues

You must use the `useForm` hook to provide initial values:

```tsx
// Old
<Form defaultValues={{ foo: 'bar' }}>
// ...
</Form>

// New
const methods = useForm({ defaultValues: { foo: 'bar' }})

<Form methods={methods}>
// ...
</Form>
```

## Remove function as child component

Function as child component must be remove:

```tsx
// Old
<Form>
{({ isSubmitting }) => (
<Button disabled={isSubmitting}>Submit</Button>
)}
</Form>

// New
const methods = useForm()

const { isSubmitting } = methods.formState

<Form methods={methods}>
<Button disabled={isSubmitting}>Submit</Button>
</Form>
```

## onRawSubmit renamed to onSubmit

The `onRawSubmit` is renamed to `onSubmit`.

The return of the function is now a string if an error occurred.

```tsx
// Old
<Form onRawSubmit={(values) => {
return { [FORM_ERROR]: 'ERROR' }
}}>
// ...
</Form>

// New
<Form onSubmit={(values) => {
return 'ERROR'
}}>
// ...
</Form>
```

### Patch Changes

- Updated dependencies [[`7dee114`](https://github.com/scaleway/ultraviolet/commit/7dee114d97f7e7e0758eabc5e301ddc716ceea40), [`b1e5948`](https://github.com/scaleway/ultraviolet/commit/b1e59486cc336527871fc211faa8ea73c6b59fa6)]:
- @ultraviolet/ui@1.57.1

## 2.14.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/form/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ultraviolet/form",
"version": "2.14.7",
"version": "3.0.0",
"description": "Ultraviolet Form",
"homepage": "https://github.com/scaleway/ultraviolet#readme",
"repository": {
Expand Down
6 changes: 6 additions & 0 deletions packages/illustrations/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @ultraviolet/illustrations

## 3.1.0

### Minor Changes

- [#3939](https://github.com/scaleway/ultraviolet/pull/3939) [`204bcb1`](https://github.com/scaleway/ultraviolet/commit/204bcb129499c026dba9281931e5bc34feb67afd) Thanks [@lisalupi](https://github.com/lisalupi)! - New illustration `ipam`

## 3.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/illustrations/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ultraviolet/illustrations",
"version": "3.0.1",
"version": "3.1.0",
"description": "Ultraviolet Illustrations",
"homepage": "https://github.com/scaleway/ultraviolet#readme",
"repository": {
Expand Down
11 changes: 11 additions & 0 deletions packages/plus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @ultraviolet/plus

## 0.18.0

### Minor Changes

- [#3949](https://github.com/scaleway/ultraviolet/pull/3949) [`ed752cc`](https://github.com/scaleway/ultraviolet/commit/ed752cc2c2afa92e26cca8999cecac6de93eee07) Thanks [@matthprost](https://github.com/matthprost)! - Add new prop `disabled` on `<ContentCard />` component

### Patch Changes

- Updated dependencies [[`7dee114`](https://github.com/scaleway/ultraviolet/commit/7dee114d97f7e7e0758eabc5e301ddc716ceea40), [`b1e5948`](https://github.com/scaleway/ultraviolet/commit/b1e59486cc336527871fc211faa8ea73c6b59fa6)]:
- @ultraviolet/ui@1.57.1

## 0.17.11

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/plus/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ultraviolet/plus",
"version": "0.17.11",
"version": "0.18.0",
"description": "Ultraviolet Plus",
"homepage": "https://github.com/scaleway/ultraviolet#readme",
"repository": {
Expand Down
8 changes: 8 additions & 0 deletions packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change Log

## 1.57.1

### Patch Changes

- [#3928](https://github.com/scaleway/ultraviolet/pull/3928) [`7dee114`](https://github.com/scaleway/ultraviolet/commit/7dee114d97f7e7e0758eabc5e301ddc716ceea40) Thanks [@matthprost](https://github.com/matthprost)! - Fix `<Dialog />` title to have the correct neutral color

- [#3943](https://github.com/scaleway/ultraviolet/pull/3943) [`b1e5948`](https://github.com/scaleway/ultraviolet/commit/b1e59486cc336527871fc211faa8ea73c6b59fa6) Thanks [@lisalupi](https://github.com/lisalupi)! - `<SelectInputV2 />`: New prop `tooltip`

## 1.57.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ultraviolet/ui",
"version": "1.57.0",
"version": "1.57.1",
"description": "Ultraviolet UI",
"homepage": "https://github.com/scaleway/ultraviolet#readme",
"repository": {
Expand Down

0 comments on commit d61d6a2

Please sign in to comment.