From 96802296ecfea07ad35f430d61d51af0f13ee6b6 Mon Sep 17 00:00:00 2001 From: Ayo Date: Tue, 11 Oct 2022 18:04:30 +0200 Subject: [PATCH] update astro-reactive-form --- package-lock.json | 14 +++++++------- package.json | 2 +- src/pages/showcase/astro-reactive-form.astro | 5 +++-- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7fe751a..9584afb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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": { diff --git a/package.json b/package.json index cf8ad7d..3a03b65 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/src/pages/showcase/astro-reactive-form.astro b/src/pages/showcase/astro-reactive-form.astro index b124c9c..34dc217 100644 --- a/src/pages/showcase/astro-reactive-form.astro +++ b/src/pages/showcase/astro-reactive-form.astro @@ -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(

Generate a dynamic form based on your data, and modify programatically.

Simple single form group

-
+

Multiple Form Groups