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": {
|
"dependencies": {
|
||||||
"astro": "^1.2.6",
|
"astro": "^1.2.6",
|
||||||
"astro-github-stats": "^0.5.0",
|
"astro-github-stats": "^0.5.0",
|
||||||
"astro-reactive-form": "^0.2.6"
|
"astro-reactive-form": "^0.3.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@ampproject/remapping": {
|
"node_modules/@ampproject/remapping": {
|
||||||
|
@ -993,9 +993,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/astro-reactive-form": {
|
"node_modules/astro-reactive-form": {
|
||||||
"version": "0.2.6",
|
"version": "0.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.2.6.tgz",
|
"resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.3.0.tgz",
|
||||||
"integrity": "sha512-wbC12kfwVscgUT+UvnR02iGgux86gpwdJ7KAcw47udb1GvcsRWv/1Wl7zaqrXLNwhp0LoxpksFn8LUW6MFso4A==",
|
"integrity": "sha512-jm4sxUw2pW7rtYOsIqMpPS1ZsvlxzLPhtvpbJGlxDSMmxNxjg/l37Iuj85GPMlsJ5KJHDS7TFZta9kS4l8Nn7Q==",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"astro": "^1.0.0"
|
"astro": "^1.0.0"
|
||||||
}
|
}
|
||||||
|
@ -6576,9 +6576,9 @@
|
||||||
"requires": {}
|
"requires": {}
|
||||||
},
|
},
|
||||||
"astro-reactive-form": {
|
"astro-reactive-form": {
|
||||||
"version": "0.2.6",
|
"version": "0.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.2.6.tgz",
|
"resolved": "https://registry.npmjs.org/astro-reactive-form/-/astro-reactive-form-0.3.0.tgz",
|
||||||
"integrity": "sha512-wbC12kfwVscgUT+UvnR02iGgux86gpwdJ7KAcw47udb1GvcsRWv/1Wl7zaqrXLNwhp0LoxpksFn8LUW6MFso4A==",
|
"integrity": "sha512-jm4sxUw2pW7rtYOsIqMpPS1ZsvlxzLPhtvpbJGlxDSMmxNxjg/l37Iuj85GPMlsJ5KJHDS7TFZta9kS4l8Nn7Q==",
|
||||||
"requires": {}
|
"requires": {}
|
||||||
},
|
},
|
||||||
"bail": {
|
"bail": {
|
||||||
|
|
|
@ -13,6 +13,6 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": "^1.2.6",
|
"astro": "^1.2.6",
|
||||||
"astro-github-stats": "^0.5.0",
|
"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 Layout from "../../layouts/Layout.astro";
|
||||||
import Footer from "../../components/Footer.astro";
|
import Footer from "../../components/Footer.astro";
|
||||||
import Back from "../../components/Back.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";
|
import Form from "astro-reactive-form";
|
||||||
|
|
||||||
const simpleForm = new FormGroup([
|
const simpleForm = new FormGroup([
|
||||||
|
@ -18,7 +18,7 @@ const simpleForm = new FormGroup([
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const name: FormControl[] = [
|
const name: ControlConfig[] = [
|
||||||
{
|
{
|
||||||
name: "first-name",
|
name: "first-name",
|
||||||
value: "Ayo",
|
value: "Ayo",
|
||||||
|
@ -31,7 +31,7 @@ const name: FormControl[] = [
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const characteristics: FormControl[] = [
|
const characteristics: ControlConfig[] = [
|
||||||
{
|
{
|
||||||
name: "is-good-looking",
|
name: "is-good-looking",
|
||||||
type: "radio",
|
type: "radio",
|
||||||
|
|
Loading…
Reference in a new issue