Skip to content

Commit 1b9308a

Browse files
chore: release
1 parent e4d806f commit 1b9308a

17 files changed

Lines changed: 93 additions & 57 deletions

.changeset/major-stars-crash.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/pink-months-lose.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/renovate-eb2da5b.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.changeset/sweet-hoops-pull.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.changeset/wise-eels-crash.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

packages/form/CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,47 @@
11
# Change Log
22

3+
## 6.3.0
4+
5+
### Minor Changes
6+
7+
- [#6241](https://github.com/scaleway/ultraviolet/pull/6241) [`fa4a28f`](https://github.com/scaleway/ultraviolet/commit/fa4a28f296a97518c1ca9e5bb4674ee9017c3c68) Thanks [@lisalupi](https://github.com/lisalupi)! - Form element can have a `errorLabel` (string) to use as a custom value to display (instead of the label) when an error is displayed (empty required element, min/max value not respected, etc.).
8+
9+
For instance, this component:
10+
11+
```js
12+
<NumberInputField
13+
label="Choose number of elements"
14+
errorLabel="Amount"
15+
value={20}
16+
max={10}
17+
/>
18+
```
19+
20+
Used with this error:
21+
22+
```js
23+
import type { FormErrors } from '@ultraviolet/form'
24+
import { NumberInputField } from '@ultraviolet/form'
25+
26+
const errors: FormErrors = {
27+
...
28+
isInteger: ...
29+
max: ({ max, label }) => `${label} must be less than ${max}$`,
30+
min: ...
31+
...
32+
}
33+
```
34+
35+
The displayed `max` error message is `Amount must be less than 10` instead of `Choose number of elements must be less than 10`.
36+
37+
It allows custom error labels with a fallback on the `label` if `errorLabel` is not defined — this can be useful when creating a default `useError`.
38+
39+
### Patch Changes
40+
41+
- Updated dependencies [[`6ba736b`](https://github.com/scaleway/ultraviolet/commit/6ba736b54cf84b993f751651bacf366930009978), [`9cfb3e9`](https://github.com/scaleway/ultraviolet/commit/9cfb3e96a6bc786708056cfb6723581139295540), [`1e4cc20`](https://github.com/scaleway/ultraviolet/commit/1e4cc208ea3605a249d7cc85cb7b242ca844aa0c)]:
42+
- @ultraviolet/ui@3.13.2
43+
- @ultraviolet/icons@5.3.2
44+
345
## 6.2.7
446

547
### Patch Changes

packages/form/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ultraviolet/form",
3-
"version": "6.2.7",
3+
"version": "6.3.0",
44
"description": "Ultraviolet Form",
55
"keywords": [
66
"react",

packages/icons/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Change Log
22

3+
## 5.3.2
4+
5+
### Patch Changes
6+
7+
- [#6279](https://github.com/scaleway/ultraviolet/pull/6279) [`1e4cc20`](https://github.com/scaleway/ultraviolet/commit/1e4cc208ea3605a249d7cc85cb7b242ca844aa0c) Thanks [@lisalupi](https://github.com/lisalupi)! - New icons:
8+
- Product icon: `ForkProductIcon`, `SwitchProductIcon` and `TrycatchProductIcon`
9+
- Icon: `CursorOutlineIcon`, `HandOutlineIcon`, `TicketOutlineIcon`, `CursorIcon`, `HandIcon` and `TicketIcon`
10+
- Updated dependencies [[`661a29e`](https://github.com/scaleway/ultraviolet/commit/661a29e439ccc5331b014bb9b2b45c6022b0a956)]:
11+
- @ultraviolet/utils@1.0.10
12+
313
## 5.3.1
414

515
### Patch Changes

packages/icons/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ultraviolet/icons",
3-
"version": "5.3.1",
3+
"version": "5.3.2",
44
"description": "Ultraviolet Icons",
55
"keywords": [
66
"react",

packages/illustrations/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @ultraviolet/illustrations
22

3+
## 6.0.16
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`661a29e`](https://github.com/scaleway/ultraviolet/commit/661a29e439ccc5331b014bb9b2b45c6022b0a956)]:
8+
- @ultraviolet/utils@1.0.10
9+
310
## 6.0.15
411

512
### Patch Changes

0 commit comments

Comments
 (0)