@daracl/form 0.0.2 → 0.0.3

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/dist/index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="utf-8" />
6
6
  <title>Dara Form</title>
7
- <script defer src="daracl.form.js"></script></head>
7
+ </head>
8
8
 
9
9
  <body>
10
10
  <div class="header">
@@ -30,7 +30,7 @@
30
30
  <form id="formArea" class="test-form aaa-test"></form>
31
31
 
32
32
  </div>
33
- </body>
33
+ <script src="daracl.form.js"></script></body>
34
34
 
35
35
  </html>
36
36
  <style>
@@ -58,7 +58,7 @@
58
58
  color: var(--bg-color);
59
59
  }
60
60
  </style>
61
- <script type="module">
61
+ <script>
62
62
 
63
63
  const THEME_KEY = "form-theme";
64
64
  const theme = localStorage.getItem(THEME_KEY);
@@ -404,7 +404,7 @@
404
404
  var formObj = {
405
405
  load: () => {
406
406
  // formBuilder = loginForm;
407
- formBuilder = new DaraForm(document.getElementById("formArea"), formInfo);
407
+ formBuilder = Daracl.form.create(document.getElementById("formArea"), formInfo);
408
408
  },
409
409
  addItem: () => {
410
410
  rowIdx += 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daracl/form",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "sideEffects": false,
5
5
  "description": "Daracl form validation ",
6
6
  "author": {