react-luna-form 0.0.1 → 0.0.2

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.
@@ -31,8 +31,8 @@ export type Column<T> = {
31
31
  advanced?: {
32
32
  cols?: number;
33
33
  };
34
- type: 'column';
35
34
  fields?: T[];
35
+ type: 'column';
36
36
  } & Base;
37
37
  export type DataAttributes = {
38
38
  [key: `data-${string}`]: string | number | boolean;
@@ -43,7 +43,7 @@ export type AriaAttributes = {
43
43
  export type CommonProps = {
44
44
  disabled?: boolean;
45
45
  id?: string;
46
- name: string;
46
+ name?: string;
47
47
  placeholder?: string;
48
48
  required?: boolean;
49
49
  };
@@ -55,6 +55,7 @@ export type Field = CommonProps & {
55
55
  };
56
56
  description?: string;
57
57
  label?: string;
58
+ name: string;
58
59
  readonly?: boolean;
59
60
  type: string;
60
61
  validation?: {
@@ -5,7 +5,7 @@ export declare function mergeCommonProps(field: Field, commonProps: CommonProps,
5
5
  options: unknown[];
6
6
  disabled?: boolean;
7
7
  id?: string;
8
- name: string;
8
+ name?: string;
9
9
  placeholder?: string;
10
10
  required?: boolean;
11
11
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-luna-form",
3
- "version": "0.0.1",
4
- "description": "A React library for building forms based on JSON Schema with validation powered by Zod.",
3
+ "version": "0.0.2",
4
+ "description": "A React library for building forms based on JSON Schema",
5
5
  "main": "./dist/client/cjs/index.js",
6
6
  "module": "./dist/client/esm/index.js",
7
7
  "types": "./dist/types/client/index.d.ts",