update astro-reactive-form

This commit is contained in:
Ayo 2022-10-11 18:04:30 +02:00
parent 56fe3cff05
commit 96802296ec
3 changed files with 11 additions and 10 deletions

14
package-lock.json generated
View file

@ -10,7 +10,7 @@
"dependencies": {
"astro": "^1.2.6",
"astro-github-stats": "^0.4.0",
"astro-reactive-form": "^0.1.1"
"astro-reactive-form": "^0.2.6"
}
},
"node_modules/@ampproject/remapping": {
@ -993,9 +993,9 @@
}
},
"node_modules/astro-reactive-form": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.1.1.tgz",
"integrity": "sha512-E9AabXwZKpq+nevtdKK0IGKMdGW+AyvHRraKovMarxBnVCl9ypzXXQ1FRqxgczrd1vsNTeR95G8165T+oPahMA==",
"version": "0.2.6",
"resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.2.6.tgz",
"integrity": "sha512-wbC12kfwVscgUT+UvnR02iGgux86gpwdJ7KAcw47udb1GvcsRWv/1Wl7zaqrXLNwhp0LoxpksFn8LUW6MFso4A==",
"peerDependencies": {
"astro": "^1.0.0"
}
@ -6576,9 +6576,9 @@
"requires": {}
},
"astro-reactive-form": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.1.1.tgz",
"integrity": "sha512-E9AabXwZKpq+nevtdKK0IGKMdGW+AyvHRraKovMarxBnVCl9ypzXXQ1FRqxgczrd1vsNTeR95G8165T+oPahMA==",
"version": "0.2.6",
"resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.2.6.tgz",
"integrity": "sha512-wbC12kfwVscgUT+UvnR02iGgux86gpwdJ7KAcw47udb1GvcsRWv/1Wl7zaqrXLNwhp0LoxpksFn8LUW6MFso4A==",
"requires": {}
},
"bail": {

View file

@ -13,6 +13,6 @@
"dependencies": {
"astro": "^1.2.6",
"astro-github-stats": "^0.4.0",
"astro-reactive-form": "^0.1.1"
"astro-reactive-form": "^0.2.6"
}
}

View file

@ -2,7 +2,8 @@
import Layout from "../../layouts/Layout.astro";
import Footer from "../../components/Footer.astro";
import Back from "../../components/Back.astro";
import Form, { FormControl, FormGroup } from "astro-reactive-form";
import {FormControl, FormGroup} from "astro-reactive-form/core";
import Form from "astro-reactive-form";
const simpleForm = new FormGroup([
{
@ -61,7 +62,7 @@ const characteristicsForm: FormGroup = new FormGroup(
<p>Generate a dynamic form based on your data, and modify programatically.</p>
<h3>Simple single form group</h3>
<Form formGroups={[simpleForm]} />
<Form formGroups={simpleForm} />
<h3>Multiple Form Groups</h3>
<Form formGroups={[nameForm, characteristicsForm]} />