formmorf-builder 1.0.0
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/LICENSE +21 -0
- package/README.md +229 -0
- package/dist/FormBuilder/ComponentPanel.d.ts +4 -0
- package/dist/FormBuilder/ComponentPanel.d.ts.map +1 -0
- package/dist/FormBuilder/ConditionalSettingsModal.d.ts +10 -0
- package/dist/FormBuilder/ConditionalSettingsModal.d.ts.map +1 -0
- package/dist/FormBuilder/DevicePreviewSwitcher.d.ts +4 -0
- package/dist/FormBuilder/DevicePreviewSwitcher.d.ts.map +1 -0
- package/dist/FormBuilder/DndWrapper.d.ts +14 -0
- package/dist/FormBuilder/DndWrapper.d.ts.map +1 -0
- package/dist/FormBuilder/DraggableField.d.ts +11 -0
- package/dist/FormBuilder/DraggableField.d.ts.map +1 -0
- package/dist/FormBuilder/DropIndicator.d.ts +10 -0
- package/dist/FormBuilder/DropIndicator.d.ts.map +1 -0
- package/dist/FormBuilder/FieldRenderer.d.ts +5 -0
- package/dist/FormBuilder/FieldRenderer.d.ts.map +1 -0
- package/dist/FormBuilder/FormBuilder.d.ts +12 -0
- package/dist/FormBuilder/FormBuilder.d.ts.map +1 -0
- package/dist/FormBuilder/FormCanvas.d.ts +4 -0
- package/dist/FormBuilder/FormCanvas.d.ts.map +1 -0
- package/dist/FormBuilder/FormPreview.d.ts +9 -0
- package/dist/FormBuilder/FormPreview.d.ts.map +1 -0
- package/dist/FormBuilder/FormPropertiesTab.d.ts +4 -0
- package/dist/FormBuilder/FormPropertiesTab.d.ts.map +1 -0
- package/dist/FormBuilder/IconRenderer.d.ts +11 -0
- package/dist/FormBuilder/IconRenderer.d.ts.map +1 -0
- package/dist/FormBuilder/PreviewModal.d.ts +9 -0
- package/dist/FormBuilder/PreviewModal.d.ts.map +1 -0
- package/dist/FormBuilder/PropertiesPanel.d.ts +4 -0
- package/dist/FormBuilder/PropertiesPanel.d.ts.map +1 -0
- package/dist/FormBuilder/SortableField.d.ts +10 -0
- package/dist/FormBuilder/SortableField.d.ts.map +1 -0
- package/dist/FormBuilder/Toolbar.d.ts +9 -0
- package/dist/FormBuilder/Toolbar.d.ts.map +1 -0
- package/dist/FormBuilder/index.d.ts +14 -0
- package/dist/FormBuilder/index.d.ts.map +1 -0
- package/dist/FormViewer/FieldRenderer.d.ts +15 -0
- package/dist/FormViewer/FieldRenderer.d.ts.map +1 -0
- package/dist/FormViewer/Fields/AlertField.d.ts +11 -0
- package/dist/FormViewer/Fields/AlertField.d.ts.map +1 -0
- package/dist/FormViewer/Fields/CheckboxField.d.ts +9 -0
- package/dist/FormViewer/Fields/CheckboxField.d.ts.map +1 -0
- package/dist/FormViewer/Fields/ColorField.d.ts +5 -0
- package/dist/FormViewer/Fields/ColorField.d.ts.map +1 -0
- package/dist/FormViewer/Fields/DateRangeField.d.ts +12 -0
- package/dist/FormViewer/Fields/DateRangeField.d.ts.map +1 -0
- package/dist/FormViewer/Fields/DateTimeField.d.ts +11 -0
- package/dist/FormViewer/Fields/DateTimeField.d.ts.map +1 -0
- package/dist/FormViewer/Fields/FileField.d.ts +15 -0
- package/dist/FormViewer/Fields/FileField.d.ts.map +1 -0
- package/dist/FormViewer/Fields/NumberField.d.ts +12 -0
- package/dist/FormViewer/Fields/NumberField.d.ts.map +1 -0
- package/dist/FormViewer/Fields/RadioField.d.ts +9 -0
- package/dist/FormViewer/Fields/RadioField.d.ts.map +1 -0
- package/dist/FormViewer/Fields/RangeField.d.ts +13 -0
- package/dist/FormViewer/Fields/RangeField.d.ts.map +1 -0
- package/dist/FormViewer/Fields/RatingField.d.ts +12 -0
- package/dist/FormViewer/Fields/RatingField.d.ts.map +1 -0
- package/dist/FormViewer/Fields/RichTextField.d.ts +10 -0
- package/dist/FormViewer/Fields/RichTextField.d.ts.map +1 -0
- package/dist/FormViewer/Fields/SectionField.d.ts +12 -0
- package/dist/FormViewer/Fields/SectionField.d.ts.map +1 -0
- package/dist/FormViewer/Fields/SelectField.d.ts +10 -0
- package/dist/FormViewer/Fields/SelectField.d.ts.map +1 -0
- package/dist/FormViewer/Fields/SwitchField.d.ts +5 -0
- package/dist/FormViewer/Fields/SwitchField.d.ts.map +1 -0
- package/dist/FormViewer/Fields/TextAreaField.d.ts +12 -0
- package/dist/FormViewer/Fields/TextAreaField.d.ts.map +1 -0
- package/dist/FormViewer/Fields/TextField.d.ts +9 -0
- package/dist/FormViewer/Fields/TextField.d.ts.map +1 -0
- package/dist/FormViewer/Fields/TimeField.d.ts +10 -0
- package/dist/FormViewer/Fields/TimeField.d.ts.map +1 -0
- package/dist/FormViewer/Fields/index.d.ts +19 -0
- package/dist/FormViewer/Fields/index.d.ts.map +1 -0
- package/dist/FormViewer/Fields/types.d.ts +21 -0
- package/dist/FormViewer/Fields/types.d.ts.map +1 -0
- package/dist/FormViewer/FormViewer.d.ts +16 -0
- package/dist/FormViewer/FormViewer.d.ts.map +1 -0
- package/dist/FormViewer/index.d.ts +5 -0
- package/dist/FormViewer/index.d.ts.map +1 -0
- package/dist/config/fieldConfig.d.ts +5 -0
- package/dist/config/fieldConfig.d.ts.map +1 -0
- package/dist/core/conditions/evaluator.d.ts +19 -0
- package/dist/core/conditions/evaluator.d.ts.map +1 -0
- package/dist/core/conditions/index.d.ts +2 -0
- package/dist/core/conditions/index.d.ts.map +1 -0
- package/dist/examples/FormViewerExample.d.ts +4 -0
- package/dist/examples/FormViewerExample.d.ts.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +220 -0
- package/dist/index.mjs +20738 -0
- package/dist/store/formStore.d.ts +44 -0
- package/dist/store/formStore.d.ts.map +1 -0
- package/dist/style.css +1 -0
- package/dist/types/index.d.ts +197 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/validation.d.ts +19 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/package.json +67 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 FormMorf Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
# @formmorf/builder
|
|
2
|
+
|
|
3
|
+
A powerful, enterprise-ready React form builder library with drag-and-drop functionality, responsive previews, and comprehensive validation.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- 🎯 **Drag-and-Drop Interface** - Intuitive form building with @dnd-kit
|
|
8
|
+
- 📱 **Responsive Preview** - Desktop, tablet, and mobile device previews
|
|
9
|
+
- ✅ **Comprehensive Validation** - Built-in and custom validators
|
|
10
|
+
- 🎨 **Material-UI Components** - Modern, accessible UI
|
|
11
|
+
- 📦 **Type-Safe** - Full TypeScript support
|
|
12
|
+
- 🔧 **Flexible API** - Easy integration and customization
|
|
13
|
+
- 🎭 **Form Viewer** - Separate runtime component for form rendering
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install @formmorf/builder
|
|
19
|
+
# or
|
|
20
|
+
pnpm add @formmorf/builder
|
|
21
|
+
# or
|
|
22
|
+
yarn add @formmorf/builder
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Peer Dependencies
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npm install react react-dom immer
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Quick Start
|
|
32
|
+
|
|
33
|
+
### Basic Form Builder
|
|
34
|
+
|
|
35
|
+
```tsx
|
|
36
|
+
import { FormBuilder } from '@formmorf/builder';
|
|
37
|
+
|
|
38
|
+
function App() {
|
|
39
|
+
const handleSave = (schema) => {
|
|
40
|
+
console.log('Form schema:', schema);
|
|
41
|
+
// Save schema to your backend
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<FormBuilder
|
|
46
|
+
onSave={handleSave}
|
|
47
|
+
initialSchema={{
|
|
48
|
+
title: 'My Form',
|
|
49
|
+
description: 'Form description',
|
|
50
|
+
fields: []
|
|
51
|
+
}}
|
|
52
|
+
/>
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Form Viewer (Runtime)
|
|
58
|
+
|
|
59
|
+
```tsx
|
|
60
|
+
import { FormViewer } from '@formmorf/builder';
|
|
61
|
+
|
|
62
|
+
function FormDisplay({ schema }) {
|
|
63
|
+
const handleSubmit = (data) => {
|
|
64
|
+
console.log('Form submitted:', data);
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
return (
|
|
68
|
+
<FormViewer
|
|
69
|
+
schema={schema}
|
|
70
|
+
onSubmit={handleSubmit}
|
|
71
|
+
/>
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Supported Field Types
|
|
77
|
+
|
|
78
|
+
- **Text** - Single-line text input
|
|
79
|
+
- **Textarea** - Multi-line text input
|
|
80
|
+
- **Number** - Numeric input
|
|
81
|
+
- **Email** - Email input with validation
|
|
82
|
+
- **Phone** - Phone number input
|
|
83
|
+
- **Date** - Date picker
|
|
84
|
+
- **Time** - Time picker
|
|
85
|
+
- **Select** - Dropdown selection
|
|
86
|
+
- **Radio** - Radio button group
|
|
87
|
+
- **Checkbox** - Single or grouped checkboxes
|
|
88
|
+
- **File** - File upload
|
|
89
|
+
- **Rating** - Star rating component
|
|
90
|
+
- **Heading** - Static heading text
|
|
91
|
+
- **Paragraph** - Static paragraph text
|
|
92
|
+
|
|
93
|
+
## API Reference
|
|
94
|
+
|
|
95
|
+
### FormBuilder Props
|
|
96
|
+
|
|
97
|
+
```typescript
|
|
98
|
+
interface FormBuilderProps {
|
|
99
|
+
initialSchema?: FormSchema;
|
|
100
|
+
onSave?: (schema: FormSchema) => void;
|
|
101
|
+
readOnly?: boolean;
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### FormViewer Props
|
|
106
|
+
|
|
107
|
+
```typescript
|
|
108
|
+
interface FormViewerProps {
|
|
109
|
+
schema: FormSchema;
|
|
110
|
+
onSubmit?: (data: Record<string, any>) => void;
|
|
111
|
+
initialData?: Record<string, any>;
|
|
112
|
+
}
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### FormSchema Type
|
|
116
|
+
|
|
117
|
+
```typescript
|
|
118
|
+
interface FormSchema {
|
|
119
|
+
title: string;
|
|
120
|
+
description: string;
|
|
121
|
+
fields: FieldDefinition[];
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
interface FieldDefinition {
|
|
125
|
+
id: string;
|
|
126
|
+
type: FieldType;
|
|
127
|
+
label: string;
|
|
128
|
+
required?: boolean;
|
|
129
|
+
validation?: FieldValidation;
|
|
130
|
+
style?: FieldStyle;
|
|
131
|
+
// ... type-specific properties
|
|
132
|
+
}
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## Advanced Usage
|
|
136
|
+
|
|
137
|
+
### Custom Validation
|
|
138
|
+
|
|
139
|
+
```tsx
|
|
140
|
+
import { createCustomValidator } from '@formmorf/builder';
|
|
141
|
+
|
|
142
|
+
const customValidator = createCustomValidator(
|
|
143
|
+
(value) => value.length >= 10,
|
|
144
|
+
'Must be at least 10 characters'
|
|
145
|
+
);
|
|
146
|
+
|
|
147
|
+
const schema = {
|
|
148
|
+
fields: [{
|
|
149
|
+
id: '1',
|
|
150
|
+
type: 'text',
|
|
151
|
+
label: 'Username',
|
|
152
|
+
validation: {
|
|
153
|
+
custom: [customValidator]
|
|
154
|
+
}
|
|
155
|
+
}]
|
|
156
|
+
};
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Device Preview Switcher
|
|
160
|
+
|
|
161
|
+
```tsx
|
|
162
|
+
import { DevicePreviewSwitcher } from '@formmorf/builder';
|
|
163
|
+
|
|
164
|
+
function CustomPreview() {
|
|
165
|
+
const [device, setDevice] = useState('desktop');
|
|
166
|
+
|
|
167
|
+
return (
|
|
168
|
+
<>
|
|
169
|
+
<DevicePreviewSwitcher
|
|
170
|
+
currentDevice={device}
|
|
171
|
+
onDeviceChange={setDevice}
|
|
172
|
+
/>
|
|
173
|
+
{/* Your preview content */}
|
|
174
|
+
</>
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### Using the Form Store
|
|
180
|
+
|
|
181
|
+
```tsx
|
|
182
|
+
import { useFormStore } from '@formmorf/builder';
|
|
183
|
+
|
|
184
|
+
function CustomComponent() {
|
|
185
|
+
const { schema, addField, updateField } = useFormStore();
|
|
186
|
+
|
|
187
|
+
// Direct store access for advanced use cases
|
|
188
|
+
}
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## Styling
|
|
192
|
+
|
|
193
|
+
The library includes default Material-UI styling. Import the CSS in your app:
|
|
194
|
+
|
|
195
|
+
```tsx
|
|
196
|
+
import '@formmorf/builder/dist/style.css';
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
## TypeScript Support
|
|
200
|
+
|
|
201
|
+
Full TypeScript definitions are included. Import types as needed:
|
|
202
|
+
|
|
203
|
+
```tsx
|
|
204
|
+
import type {
|
|
205
|
+
FormSchema,
|
|
206
|
+
FieldDefinition,
|
|
207
|
+
FieldType,
|
|
208
|
+
ValidationError
|
|
209
|
+
} from '@formmorf/builder';
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
## Browser Support
|
|
213
|
+
|
|
214
|
+
- Chrome (latest)
|
|
215
|
+
- Firefox (latest)
|
|
216
|
+
- Safari (latest)
|
|
217
|
+
- Edge (latest)
|
|
218
|
+
|
|
219
|
+
## License
|
|
220
|
+
|
|
221
|
+
MIT © FormMorf Contributors
|
|
222
|
+
|
|
223
|
+
## Contributing
|
|
224
|
+
|
|
225
|
+
Contributions are welcome! Please open an issue or submit a pull request.
|
|
226
|
+
|
|
227
|
+
## Support
|
|
228
|
+
|
|
229
|
+
For issues and feature requests, please use the GitHub issue tracker.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComponentPanel.d.ts","sourceRoot":"","sources":["../../src/FormBuilder/ComponentPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAuElC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FieldDefinition } from '../types';
|
|
3
|
+
|
|
4
|
+
interface ConditionalSettingsModalProps {
|
|
5
|
+
field: FieldDefinition;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const ConditionalSettingsModal: React.FC<ConditionalSettingsModalProps>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=ConditionalSettingsModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConditionalSettingsModal.d.ts","sourceRoot":"","sources":["../../src/FormBuilder/ConditionalSettingsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,eAAe,EAAqD,MAAM,UAAU,CAAC;AAI9F,UAAU,6BAA6B;IACrC,KAAK,EAAE,eAAe,CAAC;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAkFD,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAyR5E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DevicePreviewSwitcher.d.ts","sourceRoot":"","sources":["../../src/FormBuilder/DevicePreviewSwitcher.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAwDzC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface DragStateContextValue {
|
|
4
|
+
activeId: string | null;
|
|
5
|
+
overId: string | null;
|
|
6
|
+
isDraggingNewField: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const DragStateContext: React.Context<DragStateContextValue>;
|
|
9
|
+
interface DndWrapperProps {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const DndWrapper: React.FC<DndWrapperProps>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=DndWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DndWrapper.d.ts","sourceRoot":"","sources":["../../src/FormBuilder/DndWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAoB1B,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,kBAAkB,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,gBAAgB,sCAI3B,CAAC;AAEH,UAAU,eAAe;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA+HhD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FieldType } from '../types';
|
|
3
|
+
|
|
4
|
+
interface DraggableFieldProps {
|
|
5
|
+
fieldType: FieldType;
|
|
6
|
+
label: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const DraggableField: React.FC<DraggableFieldProps>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=DraggableField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DraggableField.d.ts","sourceRoot":"","sources":["../../src/FormBuilder/DraggableField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAGrC,UAAU,mBAAmB;IAC3B,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgCxD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface DropIndicatorProps {
|
|
4
|
+
isVisible: boolean;
|
|
5
|
+
message?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const DropIndicator: React.FC<DropIndicatorProps>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=DropIndicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropIndicator.d.ts","sourceRoot":"","sources":["../../src/FormBuilder/DropIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,kBAAkB;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAYtD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldRenderer.d.ts","sourceRoot":"","sources":["../../src/FormBuilder/FieldRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAG/C,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA2YvD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FormSchema } from '../types';
|
|
3
|
+
|
|
4
|
+
export interface FormBuilderProps {
|
|
5
|
+
initialSchema?: FormSchema;
|
|
6
|
+
onChange?: (schema: FormSchema) => void;
|
|
7
|
+
onSave?: (schema: FormSchema) => void;
|
|
8
|
+
onExportSchema?: (schema: FormSchema) => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const FormBuilder: React.FC<FormBuilderProps>;
|
|
12
|
+
//# sourceMappingURL=FormBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormBuilder.d.ts","sourceRoot":"","sources":["../../src/FormBuilder/FormBuilder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAOzC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,WAAW,gBAAgB;IAC/B,aAAa,CAAC,EAAE,UAAU,CAAC;IAC3B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IACxC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IACtC,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA0ElD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormCanvas.d.ts","sourceRoot":"","sources":["../../src/FormBuilder/FormCanvas.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAoE9B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface FormPreviewProps {
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onSubmit?: (data: Record<string, any>) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const FormPreview: React.FC<FormPreviewProps>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=FormPreview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormPreview.d.ts","sourceRoot":"","sources":["../../src/FormBuilder/FormPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,UAAU,gBAAgB;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;CAChD;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA+GlD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormPropertiesTab.d.ts","sourceRoot":"","sources":["../../src/FormBuilder/FormPropertiesTab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAqGrC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface IconRendererProps {
|
|
4
|
+
icon: string;
|
|
5
|
+
size?: 'small' | 'medium' | 'large';
|
|
6
|
+
color?: 'inherit' | 'primary' | 'secondary' | 'action' | 'disabled' | 'error';
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const IconRenderer: React.FC<IconRendererProps>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=IconRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconRenderer.d.ts","sourceRoot":"","sources":["../../src/FormBuilder/IconRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,iBAAiB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;IAC9E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA8EpD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewModal.d.ts","sourceRoot":"","sources":["../../src/FormBuilder/PreviewModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,oBAAoB,CAAC;AAE5B,UAAU,iBAAiB;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA+CpD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PropertiesPanel.d.ts","sourceRoot":"","sources":["../../src/FormBuilder/PropertiesPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAqiBnC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FieldDefinition } from '../types';
|
|
3
|
+
|
|
4
|
+
interface SortableFieldProps {
|
|
5
|
+
field: FieldDefinition;
|
|
6
|
+
index: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const SortableField: React.FC<SortableFieldProps>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=SortableField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortableField.d.ts","sourceRoot":"","sources":["../../src/FormBuilder/SortableField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAQ3C,UAAU,kBAAkB;IAC1B,KAAK,EAAE,eAAe,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAyHtD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../src/FormBuilder/Toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAMxC,UAAU,YAAY;IACpB,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IACvC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;AAyBD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA2H1C,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { FormBuilder } from './FormBuilder';
|
|
2
|
+
export type { FormBuilderProps } from './FormBuilder';
|
|
3
|
+
export { ComponentPanel } from './ComponentPanel';
|
|
4
|
+
export { FormCanvas } from './FormCanvas';
|
|
5
|
+
export { PropertiesPanel } from './PropertiesPanel';
|
|
6
|
+
export { Toolbar } from './Toolbar';
|
|
7
|
+
export { DndWrapper } from './DndWrapper';
|
|
8
|
+
export { DraggableField } from './DraggableField';
|
|
9
|
+
export { SortableField } from './SortableField';
|
|
10
|
+
export { FieldRenderer } from './FieldRenderer';
|
|
11
|
+
export { FormPreview } from './FormPreview';
|
|
12
|
+
export { FormPropertiesTab } from './FormPropertiesTab';
|
|
13
|
+
export { IconRenderer } from './IconRenderer';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/FormBuilder/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { FieldDefinition } from '../types';
|
|
3
|
+
|
|
4
|
+
interface FieldRendererProps {
|
|
5
|
+
field: FieldDefinition;
|
|
6
|
+
value: any;
|
|
7
|
+
error?: string;
|
|
8
|
+
onChange: (value: any) => void;
|
|
9
|
+
onBlur?: () => void;
|
|
10
|
+
readonly?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const FieldRenderer: React.FC<FieldRendererProps>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=FieldRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldRenderer.d.ts","sourceRoot":"","sources":["../../src/FormViewer/FieldRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAuB3C,UAAU,kBAAkB;IAC1B,KAAK,EAAE,eAAe,CAAC;IACvB,KAAK,EAAE,GAAG,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA+MtD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface AlertFieldProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
type?: 'info' | 'success' | 'warning' | 'error';
|
|
7
|
+
dismissible?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const AlertField: React.FC<AlertFieldProps>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=AlertField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlertField.d.ts","sourceRoot":"","sources":["../../../src/FormViewer/Fields/AlertField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAChD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA6ChD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BaseFieldProps, Option } from './types';
|
|
3
|
+
|
|
4
|
+
interface CheckboxFieldProps extends BaseFieldProps {
|
|
5
|
+
options?: Option[];
|
|
6
|
+
}
|
|
7
|
+
export declare const CheckboxField: React.FC<CheckboxFieldProps>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=CheckboxField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxField.d.ts","sourceRoot":"","sources":["../../../src/FormViewer/Fields/CheckboxField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjD,UAAU,kBAAmB,SAAQ,cAAc;IACjD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAyGtD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorField.d.ts","sourceRoot":"","sources":["../../../src/FormViewer/Fields/ColorField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAuD/C,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BaseFieldProps } from './types';
|
|
3
|
+
|
|
4
|
+
interface DateRangeFieldProps extends BaseFieldProps {
|
|
5
|
+
startLabel?: string;
|
|
6
|
+
endLabel?: string;
|
|
7
|
+
minDate?: string;
|
|
8
|
+
maxDate?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const DateRangeField: React.FC<DateRangeFieldProps>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=DateRangeField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateRangeField.d.ts","sourceRoot":"","sources":["../../../src/FormViewer/Fields/DateRangeField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,UAAU,mBAAoB,SAAQ,cAAc;IAClD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA2FxD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BaseFieldProps } from './types';
|
|
3
|
+
|
|
4
|
+
interface DateTimeFieldProps extends BaseFieldProps {
|
|
5
|
+
format?: '12' | '24';
|
|
6
|
+
minDate?: string;
|
|
7
|
+
maxDate?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const DateTimeField: React.FC<DateTimeFieldProps>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=DateTimeField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateTimeField.d.ts","sourceRoot":"","sources":["../../../src/FormViewer/Fields/DateTimeField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,UAAU,kBAAmB,SAAQ,cAAc;IACjD,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAmPtD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BaseFieldProps } from './types';
|
|
3
|
+
|
|
4
|
+
interface FileFieldProps extends BaseFieldProps {
|
|
5
|
+
accept?: string;
|
|
6
|
+
multiple?: boolean;
|
|
7
|
+
maxSize?: number;
|
|
8
|
+
maxFiles?: number;
|
|
9
|
+
showPreview?: boolean;
|
|
10
|
+
buttonText?: string;
|
|
11
|
+
dragDropText?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const FileField: React.FC<FileFieldProps>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=FileField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileField.d.ts","sourceRoot":"","sources":["../../../src/FormViewer/Fields/FileField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAsBzC,UAAU,cAAe,SAAQ,cAAc;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAOD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA8W9C,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BaseFieldProps } from './types';
|
|
3
|
+
|
|
4
|
+
interface NumberFieldProps extends BaseFieldProps {
|
|
5
|
+
min?: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
step?: number;
|
|
8
|
+
precision?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const NumberField: React.FC<NumberFieldProps>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=NumberField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../src/FormViewer/Fields/NumberField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,UAAU,gBAAiB,SAAQ,cAAc;IAC/C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAqElD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BaseFieldProps, Option } from './types';
|
|
3
|
+
|
|
4
|
+
interface RadioFieldProps extends BaseFieldProps {
|
|
5
|
+
options: Option[];
|
|
6
|
+
}
|
|
7
|
+
export declare const RadioField: React.FC<RadioFieldProps>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=RadioField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioField.d.ts","sourceRoot":"","sources":["../../../src/FormViewer/Fields/RadioField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjD,UAAU,eAAgB,SAAQ,cAAc;IAC9C,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA2DhD,CAAC"}
|