dynamic-formik-form 1.0.0 → 1.0.3
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/README.md +2 -5
- package/dist/index.js +64 -52
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +64 -52
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -2
package/README.md
CHANGED
|
@@ -778,8 +778,8 @@ Contributions are welcome! Please:
|
|
|
778
778
|
|
|
779
779
|
```bash
|
|
780
780
|
# Clone repository
|
|
781
|
-
git clone
|
|
782
|
-
cd dynamic-form
|
|
781
|
+
git clone https://github.com/AmbarBidkar/dynamic-formik-form.git
|
|
782
|
+
cd dynamic-formik-form
|
|
783
783
|
|
|
784
784
|
# Install dependencies
|
|
785
785
|
npm install
|
|
@@ -801,9 +801,6 @@ MIT © Ambar Bidkar
|
|
|
801
801
|
## Support
|
|
802
802
|
|
|
803
803
|
- 📖 [Documentation](./README.md)
|
|
804
|
-
- 🐛 [Report Bug](https://github.com/yourusername/dynamic-form/issues)
|
|
805
|
-
- 💡 [Request Feature](https://github.com/yourusername/dynamic-form/issues)
|
|
806
|
-
- 📧 [Email Support](mailto:support@example.com)
|
|
807
804
|
|
|
808
805
|
---
|
|
809
806
|
|
package/dist/index.js
CHANGED
|
@@ -98,44 +98,53 @@ var defaultAdapter = {
|
|
|
98
98
|
};
|
|
99
99
|
var createMUIAdapter = (Box, Button, Checkbox, FormControl, FormControlLabel, FormHelperText, IconButton, MenuItem, Paper, Popover, Radio, RadioGroup, Switch, TextField2, Typography, DatePicker, DateTimePicker) => {
|
|
100
100
|
return {
|
|
101
|
-
Input: ({ className, disabled, error, type, ...props }) =>
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
101
|
+
Input: ({ className, disabled, error, type, ...props }) => {
|
|
102
|
+
const { error: _, ...restProps } = props;
|
|
103
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
104
|
+
TextField2,
|
|
105
|
+
{
|
|
106
|
+
...restProps,
|
|
107
|
+
type,
|
|
108
|
+
disabled,
|
|
109
|
+
error: !!error,
|
|
110
|
+
className,
|
|
111
|
+
fullWidth: true,
|
|
112
|
+
variant: "outlined"
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
},
|
|
116
|
+
Textarea: ({ className, disabled, error, rows, ...props }) => {
|
|
117
|
+
const { error: _, ...restProps } = props;
|
|
118
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
119
|
+
TextField2,
|
|
120
|
+
{
|
|
121
|
+
...restProps,
|
|
122
|
+
multiline: true,
|
|
123
|
+
rows: rows || 4,
|
|
124
|
+
disabled,
|
|
125
|
+
error: !!error,
|
|
126
|
+
className,
|
|
127
|
+
fullWidth: true,
|
|
128
|
+
variant: "outlined"
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
},
|
|
132
|
+
Select: ({ className, disabled, error, children, ...props }) => {
|
|
133
|
+
const { error: _, ...restProps } = props;
|
|
134
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
135
|
+
TextField2,
|
|
136
|
+
{
|
|
137
|
+
...restProps,
|
|
138
|
+
select: true,
|
|
139
|
+
disabled,
|
|
140
|
+
error: !!error,
|
|
141
|
+
className,
|
|
142
|
+
fullWidth: true,
|
|
143
|
+
variant: "outlined",
|
|
144
|
+
children
|
|
145
|
+
}
|
|
146
|
+
);
|
|
147
|
+
},
|
|
139
148
|
Checkbox: ({ className, disabled, label, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
140
149
|
FormControlLabel,
|
|
141
150
|
{
|
|
@@ -253,20 +262,23 @@ var createMUIAdapter = (Box, Button, Checkbox, FormControl, FormControlLabel, Fo
|
|
|
253
262
|
...props
|
|
254
263
|
}
|
|
255
264
|
) : void 0,
|
|
256
|
-
TextField: TextField2 ? ({ inputRef, inputProps, label, id, error, helperText, ...props }) =>
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
265
|
+
TextField: TextField2 ? ({ inputRef, inputProps, label, id, error, helperText, ...props }) => {
|
|
266
|
+
const { error: _, ...restProps } = props;
|
|
267
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
268
|
+
TextField2,
|
|
269
|
+
{
|
|
270
|
+
inputRef,
|
|
271
|
+
inputProps,
|
|
272
|
+
label,
|
|
273
|
+
id,
|
|
274
|
+
error: !!error,
|
|
275
|
+
helperText,
|
|
276
|
+
...restProps,
|
|
277
|
+
fullWidth: true,
|
|
278
|
+
variant: "outlined"
|
|
279
|
+
}
|
|
280
|
+
);
|
|
281
|
+
} : void 0
|
|
270
282
|
};
|
|
271
283
|
};
|
|
272
284
|
var createBootstrapAdapter = (Form, FormControl, FormLabel, FormText, FormCheck, FormSelect, ButtonComponent, InputGroup, OverlayTrigger, Popover, ListGroup, ListGroupItem) => {
|