@micromerce/formbuilder-react 1.0.845 → 1.0.852
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/components/controls/TrafficLightCardSelect/TrafficLightCardSelect.d.ts +9 -0
- package/dist/components/controls/TrafficLightCardSelect/index.d.ts +1 -0
- package/dist/formbuilder.js +3 -3
- package/dist/formbuilder.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/types/index.d.ts +9 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,8 @@ import FormGroup from "./components/FormGroup/";
|
|
|
11
11
|
import MrnInput from "./components/controls/MrnInput/";
|
|
12
12
|
import PasswordInput from "./components/controls/PasswordInput/";
|
|
13
13
|
import Textarea from "./components/controls/Textarea/";
|
|
14
|
+
import TrafficLightCardSelect from "./components/controls/TrafficLightCardSelect/";
|
|
14
15
|
import { useValueGenerator } from "./hooks/useValueGenerator/useValueGenerator";
|
|
15
16
|
import { FormBuilderConfig } from "./types";
|
|
16
|
-
export { FormBuilder, FormBuilderConfig, Select, MultiSelect, Checkbox, ControlWrapper, FormFooter, Input, InputFreeSolo, FormList, FormGroup, MrnInput, PasswordInput, Textarea, useValueGenerator, };
|
|
17
|
+
export { FormBuilder, FormBuilderConfig, Select, MultiSelect, Checkbox, ControlWrapper, FormFooter, Input, InputFreeSolo, FormList, FormGroup, MrnInput, PasswordInput, Textarea, TrafficLightCardSelect, useValueGenerator, };
|
|
17
18
|
export default FormBuilder;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -28,6 +28,12 @@ export type GenAiPrompt = {
|
|
|
28
28
|
profile?: string;
|
|
29
29
|
};
|
|
30
30
|
export type GenAiPrompts = GenAiPrompt[];
|
|
31
|
+
export interface TrafficLightVariant {
|
|
32
|
+
condition: string;
|
|
33
|
+
label: string;
|
|
34
|
+
color: string;
|
|
35
|
+
description?: string;
|
|
36
|
+
}
|
|
31
37
|
export interface CustomAttributes {
|
|
32
38
|
media?: string;
|
|
33
39
|
"mrn-ref"?: string;
|
|
@@ -55,6 +61,9 @@ export interface CustomAttributes {
|
|
|
55
61
|
tags?: string | string[];
|
|
56
62
|
genAiPrompts?: GenAiPrompts;
|
|
57
63
|
tooltip?: string;
|
|
64
|
+
trafficLightIndicator?: {
|
|
65
|
+
variants: TrafficLightVariant[];
|
|
66
|
+
};
|
|
58
67
|
[key: string]: any;
|
|
59
68
|
fieldDescription?: {
|
|
60
69
|
tooltip?: string;
|