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 CHANGED
@@ -778,8 +778,8 @@ Contributions are welcome! Please:
778
778
 
779
779
  ```bash
780
780
  # Clone repository
781
- git clone <repository-url>
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 }) => /* @__PURE__ */ jsxRuntime.jsx(
102
- TextField2,
103
- {
104
- ...props,
105
- type,
106
- disabled,
107
- error: !!error,
108
- className,
109
- fullWidth: true,
110
- variant: "outlined"
111
- }
112
- ),
113
- Textarea: ({ className, disabled, error, rows, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
114
- TextField2,
115
- {
116
- ...props,
117
- multiline: true,
118
- rows: rows || 4,
119
- disabled,
120
- error: !!error,
121
- className,
122
- fullWidth: true,
123
- variant: "outlined"
124
- }
125
- ),
126
- Select: ({ className, disabled, error, children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
127
- TextField2,
128
- {
129
- ...props,
130
- select: true,
131
- disabled,
132
- error: !!error,
133
- className,
134
- fullWidth: true,
135
- variant: "outlined",
136
- children
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 }) => /* @__PURE__ */ jsxRuntime.jsx(
257
- TextField2,
258
- {
259
- inputRef,
260
- inputProps,
261
- label,
262
- id,
263
- error: !!error,
264
- helperText,
265
- ...props,
266
- fullWidth: true,
267
- variant: "outlined"
268
- }
269
- ) : void 0
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) => {