@ultraviolet/form 6.0.0-beta.6 → 6.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ It is using [React Hook Form](https://react-hook-form.com/) under the hood.
|
|
|
8
8
|
## Get Started
|
|
9
9
|
|
|
10
10
|
```sh
|
|
11
|
-
$ pnpm add @ultraviolet/ui @ultraviolet/form
|
|
11
|
+
$ pnpm add @ultraviolet/ui @ultraviolet/form
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
### Usage
|
|
@@ -16,10 +16,11 @@ $ pnpm add @ultraviolet/ui @ultraviolet/form @emotion/react @emotion/styled
|
|
|
16
16
|
To use the library you need to put a `ThemeProvider` from `@emotion/react` with the theme that comes from `@ultraviolet/ui` then wrap all your fields inside a `Form`:
|
|
17
17
|
|
|
18
18
|
```tsx
|
|
19
|
-
import { ThemeProvider } from '@
|
|
19
|
+
import { ThemeProvider } from '@ultraviolet/ui'
|
|
20
20
|
import { Form, TextInputField } from '@ultraviolet/form'
|
|
21
21
|
import { theme } from '@ultraviolet/ui'
|
|
22
22
|
import { useForm } from '@ultraviolet/form'
|
|
23
|
+
import '@ultraviolet/ui/styles'
|
|
23
24
|
|
|
24
25
|
// Here are the input types of your form
|
|
25
26
|
type FormValues = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultraviolet/form",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
3
|
+
"version": "6.0.0-beta.7",
|
|
4
4
|
"description": "Ultraviolet Form",
|
|
5
5
|
"homepage": "https://github.com/scaleway/ultraviolet#readme",
|
|
6
6
|
"repository": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@emotion/styled": "11.14.1",
|
|
56
56
|
"react": "18.x || 19.x",
|
|
57
57
|
"react-dom": "18.x || 19.x",
|
|
58
|
-
"@ultraviolet/ui": "3.0.0-beta.
|
|
58
|
+
"@ultraviolet/ui": "3.0.0-beta.18"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@babel/core": "7.28.4",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@types/react-dom": "19.1.9",
|
|
67
67
|
"react": "19.1.1",
|
|
68
68
|
"react-dom": "19.1.1",
|
|
69
|
-
"@ultraviolet/ui": "3.0.0-beta.
|
|
69
|
+
"@ultraviolet/ui": "3.0.0-beta.18",
|
|
70
70
|
"@utils/test": "0.0.1"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|