@dynamic-field-kit/core 1.0.5 → 1.0.6

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.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { JSX } from 'react';
1
+ import { ReactNode, JSX } from 'react';
2
2
 
3
3
  type FieldTypeKey = keyof FieldTypeMap & string;
4
4
  interface FieldTypeMap {
@@ -8,12 +8,18 @@ interface FieldRendererProps<T = any> {
8
8
  value?: T;
9
9
  onValueChange?: (value: T) => void;
10
10
  label?: string;
11
+ options?: Properties[];
12
+ className?: string;
13
+ description?: ReactNode;
11
14
  }
12
15
  interface FieldDescription<T extends FieldTypeKey = FieldTypeKey> {
13
16
  name: string;
14
17
  type: T;
15
18
  label?: string;
16
19
  appearCondition?: (data: Properties) => boolean;
20
+ options?: Properties[];
21
+ className?: string;
22
+ description?: ReactNode;
17
23
  }
18
24
 
19
25
  type FieldRenderer<T = any> = (props: FieldRendererProps<T>) => JSX.Element;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { JSX } from 'react';
1
+ import { ReactNode, JSX } from 'react';
2
2
 
3
3
  type FieldTypeKey = keyof FieldTypeMap & string;
4
4
  interface FieldTypeMap {
@@ -8,12 +8,18 @@ interface FieldRendererProps<T = any> {
8
8
  value?: T;
9
9
  onValueChange?: (value: T) => void;
10
10
  label?: string;
11
+ options?: Properties[];
12
+ className?: string;
13
+ description?: ReactNode;
11
14
  }
12
15
  interface FieldDescription<T extends FieldTypeKey = FieldTypeKey> {
13
16
  name: string;
14
17
  type: T;
15
18
  label?: string;
16
19
  appearCondition?: (data: Properties) => boolean;
20
+ options?: Properties[];
21
+ className?: string;
22
+ description?: ReactNode;
17
23
  }
18
24
 
19
25
  type FieldRenderer<T = any> = (props: FieldRendererProps<T>) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-field-kit/core",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Core types and field registry for dynamic-field-kit",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.cjs",