chore: update astro-reactive-form
This commit is contained in:
parent
2b100bd449
commit
eafaf7ae62
3 changed files with 11 additions and 11 deletions
14
package-lock.json
generated
14
package-lock.json
generated
|
@ -10,7 +10,7 @@
|
|||
"dependencies": {
|
||||
"astro": "^1.2.6",
|
||||
"astro-github-stats": "^0.5.0",
|
||||
"astro-reactive-form": "^0.2.6"
|
||||
"astro-reactive-form": "^0.3.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@ampproject/remapping": {
|
||||
|
@ -993,9 +993,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/astro-reactive-form": {
|
||||
"version": "0.2.6",
|
||||
"resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.2.6.tgz",
|
||||
"integrity": "sha512-wbC12kfwVscgUT+UvnR02iGgux86gpwdJ7KAcw47udb1GvcsRWv/1Wl7zaqrXLNwhp0LoxpksFn8LUW6MFso4A==",
|
||||
"version": "0.3.0",
|
||||
"resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.3.0.tgz",
|
||||
"integrity": "sha512-jm4sxUw2pW7rtYOsIqMpPS1ZsvlxzLPhtvpbJGlxDSMmxNxjg/l37Iuj85GPMlsJ5KJHDS7TFZta9kS4l8Nn7Q==",
|
||||
"peerDependencies": {
|
||||
"astro": "^1.0.0"
|
||||
}
|
||||
|
@ -6576,9 +6576,9 @@
|
|||
"requires": {}
|
||||
},
|
||||
"astro-reactive-form": {
|
||||
"version": "0.2.6",
|
||||
"resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.2.6.tgz",
|
||||
"integrity": "sha512-wbC12kfwVscgUT+UvnR02iGgux86gpwdJ7KAcw47udb1GvcsRWv/1Wl7zaqrXLNwhp0LoxpksFn8LUW6MFso4A==",
|
||||
"version": "0.3.0",
|
||||
"resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.3.0.tgz",
|
||||
"integrity": "sha512-jm4sxUw2pW7rtYOsIqMpPS1ZsvlxzLPhtvpbJGlxDSMmxNxjg/l37Iuj85GPMlsJ5KJHDS7TFZta9kS4l8Nn7Q==",
|
||||
"requires": {}
|
||||
},
|
||||
"bail": {
|
||||
|
|
|
@ -13,6 +13,6 @@
|
|||
"dependencies": {
|
||||
"astro": "^1.2.6",
|
||||
"astro-github-stats": "^0.5.0",
|
||||
"astro-reactive-form": "^0.2.6"
|
||||
"astro-reactive-form": "^0.3.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
import Layout from "../../layouts/Layout.astro";
|
||||
import Footer from "../../components/Footer.astro";
|
||||
import Back from "../../components/Back.astro";
|
||||
import { FormControl, FormGroup } from "astro-reactive-form/core";
|
||||
import { FormGroup, ControlConfig } from "astro-reactive-form/core";
|
||||
import Form from "astro-reactive-form";
|
||||
|
||||
const simpleForm = new FormGroup([
|
||||
|
@ -18,7 +18,7 @@ const simpleForm = new FormGroup([
|
|||
},
|
||||
]);
|
||||
|
||||
const name: FormControl[] = [
|
||||
const name: ControlConfig[] = [
|
||||
{
|
||||
name: "first-name",
|
||||
value: "Ayo",
|
||||
|
@ -31,7 +31,7 @@ const name: FormControl[] = [
|
|||
},
|
||||
];
|
||||
|
||||
const characteristics: FormControl[] = [
|
||||
const characteristics: ControlConfig[] = [
|
||||
{
|
||||
name: "is-good-looking",
|
||||
type: "radio",
|
||||
|
|
Loading…
Reference in a new issue