formeact 0.0.6 → 0.0.7

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.
@@ -5,9 +5,9 @@ export const FormFields = ({ direction = "vertical", style, fields, data, update
5
5
  if (direction === "vertical")
6
6
  return (_jsx(ColumnBox, { style: cn("gap-5", style), children: fields.map((row, i) => (_jsx(RowBox, { style: "w-full gap-5 items-center", children: row.map(({ element, id, label, style }) => {
7
7
  if (element === "input")
8
- return (_jsx(Input, { style: style, label: label, value: data[id], update: x => update(id, x) }, id));
8
+ return (_jsx(Input, { id: id, style: style, label: label, value: data[id], update: x => update(id, x) }, id));
9
9
  if (element === "image")
10
- return (_jsx(ImageUploader, { style: style, value: data[id], update: x => update(id, x), controls: true }, id));
10
+ return (_jsx(ImageUploader, { id: id, style: style, value: data[id], update: x => update(id, x), controls: true }, id));
11
11
  }) }, i))) }));
12
12
  else
13
13
  return (_jsx(RowBox, { style: cn("gap-5 items-center overflow-hidden", style), children: fields.map((col, i) => (_jsx(ColumnBox, { style: cn("gap-5 overflow-hidden", i === fields.length - 1 && "grow"), children: col.map(({ element, id, label, style }) => {
@@ -0,0 +1 @@
1
+ export * from "./auth";
@@ -0,0 +1 @@
1
+ export * from "./auth";
@@ -0,0 +1,5 @@
1
+ export declare const authFields: {
2
+ id: string;
3
+ element: "input";
4
+ label: string;
5
+ }[][];
@@ -0,0 +1,16 @@
1
+ export const authFields = [
2
+ [
3
+ {
4
+ id: "email",
5
+ element: "input",
6
+ label: "Email Address"
7
+ }
8
+ ],
9
+ [
10
+ {
11
+ id: "password",
12
+ element: "input",
13
+ label: "Password"
14
+ }
15
+ ]
16
+ ];
package/dist/index.d.ts CHANGED
@@ -2,3 +2,4 @@ export * from "./core/functions";
2
2
  export * from "./core/types";
3
3
  export * from "./core/hooks";
4
4
  export * from "./components";
5
+ export * from "./forms/_";
package/dist/index.js CHANGED
@@ -2,3 +2,4 @@ export * from "./core/functions";
2
2
  export * from "./core/types";
3
3
  export * from "./core/hooks";
4
4
  export * from "./components";
5
+ export * from "./forms/_";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
 
3
3
  "name": "formeact",
4
- "version": "0.0.6",
4
+ "version": "0.0.7",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "license": "MIT",