@kbgarcia8/react-dynamic-form 2.0.2 → 2.0.4
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 +77 -8
- package/dist/components/atoms/Button/Button.d.ts +1 -1
- package/dist/components/atoms/Button/Button.d.ts.map +1 -1
- package/dist/components/atoms/Button/Button.styles.d.ts +32 -4
- package/dist/components/atoms/Button/Button.styles.d.ts.map +1 -1
- package/dist/components/molecules/FormActionButtons/FormActionButtons.d.ts +1 -1
- package/dist/components/molecules/FormActionButtons/FormActionButtons.d.ts.map +1 -1
- package/dist/components/molecules/FormActionButtons/FormActionButtons.styles.d.ts.map +1 -1
- package/dist/components/molecules/LabeledInput/LabeledInput.d.ts.map +1 -1
- package/dist/components/molecules/NestedEditableOption/NestedEditableOption.d.ts +1 -1
- package/dist/components/molecules/NestedEditableOption/NestedEditableOption.d.ts.map +1 -1
- package/dist/components/organisms/DynamicForm/DynamicForm.d.ts +1 -1
- package/dist/components/organisms/DynamicForm/DynamicForm.d.ts.map +1 -1
- package/dist/react-dynamic-form.cjs.js +183 -82
- package/dist/react-dynamic-form.es.js +710 -466
- package/dist/styles/theme.d.ts +16 -0
- package/dist/styles/theme.d.ts.map +1 -1
- package/dist/styles/variables.d.ts +69 -2
- package/dist/styles/variables.d.ts.map +1 -1
- package/dist/testcase/App.d.ts +4 -0
- package/dist/testcase/App.d.ts.map +1 -0
- package/dist/testcase/DynamicForm.styles.d.ts +2 -0
- package/dist/testcase/DynamicForm.styles.d.ts.map +1 -0
- package/dist/testcase/main.d.ts +2 -0
- package/dist/testcase/main.d.ts.map +1 -0
- package/dist/type/constantTypes.d.ts +9 -24
- package/dist/type/constantTypes.d.ts.map +1 -1
- package/dist/type/propTypes.d.ts +65 -13
- package/dist/type/propTypes.d.ts.map +1 -1
- package/dist/utils/utils.d.ts +4 -0
- package/dist/utils/utils.d.ts.map +1 -1
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -174,6 +174,20 @@ const addressInputsArray = [
|
|
|
174
174
|
editIcon: <.../>, //=>editIcon in EditableInputProps
|
|
175
175
|
deleteIcon: <.../>,
|
|
176
176
|
editing: ...,
|
|
177
|
+
//Styling options for editable option buttons
|
|
178
|
+
editableButtonSize: 'small', //small by default. Value can be only be one of the following: "small" | "smallest" | "smaller" | "medium" | "large" | "larger"
|
|
179
|
+
editableButtonColor: 'primary', //primary by default. Value can only be one of the following: "primary" | "secondary" | "ghost" | "bnw"
|
|
180
|
+
editableButtonRadius: 'squircle', //squircle by default. Value can only be one of the following: "circle" | "square" | "roundedsquare" | "squircle" | "pill"
|
|
181
|
+
//Optional props - text, start icon and end icon of editable option buttons
|
|
182
|
+
saveText: ...,
|
|
183
|
+
saveButtonStartIcon: <.../>,
|
|
184
|
+
saveButtonEndIcon: <.../>,
|
|
185
|
+
cancelText: ...,
|
|
186
|
+
cancelButtonStartIcon: <.../>,
|
|
187
|
+
cancelButtonEndIcon: <.../>,
|
|
188
|
+
deleteText: ...,
|
|
189
|
+
deleteButtonStartIcon: <.../>,
|
|
190
|
+
deleteButtonEndIcon: <.../>,
|
|
177
191
|
//These are informations editable within radio input acting as selection
|
|
178
192
|
editableInformation: [
|
|
179
193
|
{
|
|
@@ -229,7 +243,9 @@ function App() {
|
|
|
229
243
|
| `inputClass` | `string` | — | className for `<Input/>` component inside `<LabeledInput/>` component inside `<DynamicForm/>` |
|
|
230
244
|
| `handleEditableInputEntryChange` | `(e:React.ChangeEvent<HTMLInputElement\|HTMLTextAreaElement>) => void` | — | Function to handle onChange of editable inputs |
|
|
231
245
|
| `handleAddingInputEntry` | `(e:React.MouseEvent<HTMLButtonElement>) => void` | — | Function to add input entry. If isExpandable is false this is not enabled |
|
|
232
|
-
| `
|
|
246
|
+
| `formActionButtonSize` | `string` | `small` | Text size of form action buttons. Values can only be one of the following values: "small", "smallest", "smaller", "medium", "large", "larger" |
|
|
247
|
+
| `formActionButtonColor` | `string` | `primary` | Color of form action buttons. Values can only be one of the following: "primary", "secondary", "ghost", "bnw" |
|
|
248
|
+
| `formActionButtonRadius` | `string` | `squircle` | Border radius of form action buttons. Values can only be one of the following: "circle", "square", "roundedsquare", "squircle", "pill" |
|
|
233
249
|
| `submitText` | `string` | `Submit` | Text inside submit button for `<DynamicForm/>` |
|
|
234
250
|
| `handleSubmit` | `(e:React.MouseEvent<HTMLButtonElement>) => void` | — | Function to handle submit logic for `<DynamicForm/>` |
|
|
235
251
|
| `hasReset` | `boolean` | `false` | This is to enable reset button for `<DynamicForm/>` |
|
|
@@ -252,6 +268,18 @@ function App() {
|
|
|
252
268
|
| `isEditable` | `boolean` | — | To determine if an input is editable or not. This is only applicable for radio or checkbox input to mimick an editable option/selection<br>If false, all props below are automatically not needed |
|
|
253
269
|
| `editing` | `boolean` | — | To identify if an editable input is being modified<br>Can be used in open/close dialogs |
|
|
254
270
|
| `onClickEdit` | `(e:React.MouseEvent<HTMLButtonElement>) => void` | — | Function to handle edit logic of editable input |
|
|
271
|
+
| `editableButtonSize` | `string` | `small` | Text size of editable option buttons. Values can only be one of the following values: "small", "smallest", "smaller", "medium", "large", "larger" |
|
|
272
|
+
| `editableButtonColor` | `string` | `primary` | Color of editable option buttons. Values can only be one of the following: "primary", "secondary", "ghost", "bnw" |
|
|
273
|
+
| `editableButtonRadius` | `string` | `squircle` | Border radius of editable option buttons. Values can only be one of the following: "circle", "square", "roundedsquare", "squircle", "pill" |
|
|
274
|
+
| `saveText` | `string` | `Save` | Text inside save button for `<NestedEditableOption/>` |
|
|
275
|
+
| `saveButtonStartIcon` | `React.ReactNode` | — | TSX/JSX svg component that will serve as the icon before the text (if any) for save button of `<NestedEditableOption/>` |
|
|
276
|
+
| `saveButtonEndIcon` | `React.ReactNode` | — | TSX/JSX svg component that will serve as the icon after the text (if any) for save button of `<NestedEditableOption/>` |
|
|
277
|
+
| `cancelText` | `string` | `Cancel` | Text inside cancel button for `<NestedEditableOption/>` |
|
|
278
|
+
| `cancelButtonStartIcon` | `React.ReactNode` | — | TSX/JSX svg component that will serve as the icon before the text (if any) for cancel button of `<NestedEditableOption/>` |
|
|
279
|
+
| `cancelButtonEndIcon` | `React.ReactNode` | — | TSX/JSX svg component that will serve as the icon after the text (if any) for cancel button of `<NestedEditableOption/>` |
|
|
280
|
+
| `deleteText` | `string` | `Delete` | Text inside delete button for `<NestedEditableOption/>` |
|
|
281
|
+
| `deleteButtonStartIcon` | `React.ReactNode` | — | TSX/JSX svg component that will serve as the icon before the text (if any) for delete button of `<NestedEditableOption/>` |
|
|
282
|
+
| `deleteButtonEndIcon` | `React.ReactNode` | — | TSX/JSX svg component that will serve as the icon after the text (if any) for delete button of `<NestedEditableOption/>` |
|
|
255
283
|
| `editIcon` | `React.ReactNode` | — | TSX/JSX svg component that will serve as an icon for edit button of editable input |
|
|
256
284
|
| `onClickDelete` | `(e:React.MouseEvent<HTMLButtonElement>) => void` | — | Function to handle delete logic of editable input |
|
|
257
285
|
| `deleteIcon` | `React.ReactNode` | — | TSX/JSX svg component that will serve as an icon for delete button of editable input |
|
|
@@ -312,28 +340,66 @@ You allow overriding currentTheme:
|
|
|
312
340
|
<!-- TOC --><a name="reminder-for-custom-theme-override"></a>
|
|
313
341
|
##### Reminder for custom theme override:
|
|
314
342
|
|
|
315
|
-
Below is the supported format for creating a theme object. Usually consisting of light and dark theme
|
|
343
|
+
Below is the supported format for creating a theme object. Usually consisting of light and dark theme. Note that you can specify as many color key-color group you like. In the example below is 'colors', 'anchorTheme', 'footerTheme' and 'notificationPalette'
|
|
316
344
|
|
|
317
345
|
asColor function is used to ensure that color to be supplied in color properties are colors (e.g. hexcode and rgb code). Note that keys of colors are changeable since it has type ``
|
|
318
346
|
|
|
319
347
|
```tsx
|
|
320
348
|
import { asColor } from '@kbgarcia8/react-dynamic-form'
|
|
321
349
|
|
|
350
|
+
export const palette = {
|
|
351
|
+
primary1: asColor('#202234'),
|
|
352
|
+
primary2: asColor('#3C5E83'),
|
|
353
|
+
primary3: asColor('#0F60B6'),
|
|
354
|
+
...
|
|
355
|
+
}
|
|
356
|
+
|
|
322
357
|
export const lightTheme:Theme = {
|
|
323
358
|
name: 'light',
|
|
324
359
|
colors: {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
360
|
+
screenColor: palette.neutral2,
|
|
361
|
+
backgroundColor1: palette.primary1,
|
|
362
|
+
...
|
|
363
|
+
},
|
|
364
|
+
anchorTheme: {
|
|
365
|
+
visited: palette.neutral5,
|
|
366
|
+
hover: palette.primary2,
|
|
367
|
+
active: palette.secondary2
|
|
368
|
+
},
|
|
369
|
+
footerTheme: {
|
|
370
|
+
backgroundColor: palette.neutral5,
|
|
371
|
+
textColor: palette.secondary1,
|
|
372
|
+
shadowColor: palette.shadow1
|
|
373
|
+
},
|
|
374
|
+
notificationPalette: {
|
|
375
|
+
infoText: asColor('#C9E6F0'),
|
|
376
|
+
infoBackground: asColor('#202234'),
|
|
377
|
+
...
|
|
328
378
|
}
|
|
329
379
|
}
|
|
330
380
|
|
|
331
381
|
export const darkTheme:Theme = {
|
|
332
382
|
name: 'dark',
|
|
333
383
|
colors: {
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
384
|
+
screenColor: palette.neutral5,
|
|
385
|
+
backgroundColor1: palette.primary2,
|
|
386
|
+
...
|
|
387
|
+
},
|
|
388
|
+
anchorTheme: {
|
|
389
|
+
link: palette.neutral1,
|
|
390
|
+
visited: palette.neutral1,
|
|
391
|
+
hover: palette.primary3,
|
|
392
|
+
active: palette.secondary1
|
|
393
|
+
},
|
|
394
|
+
footerTheme: {
|
|
395
|
+
backgroundColor: palette.accent,
|
|
396
|
+
textColor: palette.primary1,
|
|
397
|
+
shadowColor: palette.shadow2
|
|
398
|
+
},
|
|
399
|
+
notificationPalette: {
|
|
400
|
+
infoText: asColor('#202234'),
|
|
401
|
+
infoBackground: asColor('#C9E6F0'),
|
|
402
|
+
...
|
|
337
403
|
}
|
|
338
404
|
}
|
|
339
405
|
```
|
|
@@ -389,6 +455,9 @@ Every renderable part of the form receives predictable classes or id:
|
|
|
389
455
|
| **No Entry Message** | *default styled component* | Target using parent wrapper |
|
|
390
456
|
| **Children Container** | `children-container` | |
|
|
391
457
|
|
|
458
|
+
#### Note/s
|
|
459
|
+
- These classnames can also be used override styling using native CSS
|
|
460
|
+
|
|
392
461
|
```ts
|
|
393
462
|
import styled from "styled-components";
|
|
394
463
|
import { DynamicForm } from "@kbgarcia8/react-dynamic-form";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ButtonProps } from "../../../type/propTypes";
|
|
2
|
-
declare const Button: ({ onClick, id, buttonType, startIcon, endIcon,
|
|
2
|
+
declare const Button: ({ onClick, id, buttonType, startIcon, endIcon, text, className, dataAttributes, color, radius, size }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Button;
|
|
4
4
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Button/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,QAAA,MAAM,MAAM,GAAI,
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Button/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,QAAA,MAAM,MAAM,GAAI,uGAYd,WAAW,4CAqCZ,CAAA;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -1,5 +1,33 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export declare const COLORS: {
|
|
2
|
+
primary: import("styled-components").RuleSet<object>;
|
|
3
|
+
secondary: import("styled-components").RuleSet<object>;
|
|
4
|
+
ghost: import("styled-components").RuleSet<object>;
|
|
5
|
+
bnw: import("styled-components").RuleSet<object>;
|
|
6
|
+
};
|
|
7
|
+
export declare const SIZES: {
|
|
8
|
+
smallest: import("styled-components").RuleSet<object>;
|
|
9
|
+
smaller: import("styled-components").RuleSet<object>;
|
|
10
|
+
small: import("styled-components").RuleSet<object>;
|
|
11
|
+
medium: import("styled-components").RuleSet<object>;
|
|
12
|
+
large: import("styled-components").RuleSet<object>;
|
|
13
|
+
larger: import("styled-components").RuleSet<object>;
|
|
14
|
+
};
|
|
15
|
+
export declare const RADIUS: {
|
|
16
|
+
square: import("styled-components").RuleSet<object>;
|
|
17
|
+
roundedsquare: import("styled-components").RuleSet<object>;
|
|
18
|
+
squircle: import("styled-components").RuleSet<object>;
|
|
19
|
+
pill: import("styled-components").RuleSet<object>;
|
|
20
|
+
circle: import("styled-components").RuleSet<object>;
|
|
21
|
+
};
|
|
22
|
+
export declare const DefaultButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
23
|
+
$color?: keyof typeof COLORS;
|
|
24
|
+
$radius?: keyof typeof RADIUS;
|
|
25
|
+
}>> & string;
|
|
26
|
+
export declare const ButtonTextAndIconSpace: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
27
|
+
$hasIcon: boolean;
|
|
28
|
+
$hasText: boolean;
|
|
29
|
+
}>> & string;
|
|
30
|
+
export declare const ButtonText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
31
|
+
$size?: keyof typeof SIZES;
|
|
32
|
+
}>> & string;
|
|
5
33
|
//# sourceMappingURL=Button.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Button/Button.styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Button/Button.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;CAkElB,CAAC;AAEF,eAAO,MAAO,KAAK;;;;;;;CAqClB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;CAMlB,CAAC;AAGF,eAAO,MAAM,aAAa;aACT,MAAM,OAAO,MAAM;cAClB,MAAM,OAAO,MAAM;YAwBpC,CAAC;AAEF,eAAO,MAAM,sBAAsB;cAA0B,OAAO;cAAY,OAAO;YAetF,CAAC;AAEF,eAAO,MAAM,UAAU;YAAyB,MAAM,OAAO,KAAK;YAQjE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { FormActionButtonsProps } from "../../../type/propTypes";
|
|
2
|
-
declare const FormActionButtons: ({ id, submitText, submitIcon, hasReset, resetText, resetIcon, handleReset, hasCancel, cancelText, cancelIcon, handleCancel, }: FormActionButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const FormActionButtons: ({ id, formActionButtonSize, formActionButtonColor, formActionButtonRadius, submitText, submitIcon, hasReset, resetText, resetIcon, handleReset, hasCancel, cancelText, cancelIcon, handleCancel, }: FormActionButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default FormActionButtons;
|
|
4
4
|
//# sourceMappingURL=FormActionButtons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormActionButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/FormActionButtons/FormActionButtons.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEtE,QAAA,MAAM,iBAAiB,GAAI
|
|
1
|
+
{"version":3,"file":"FormActionButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/FormActionButtons/FormActionButtons.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEtE,QAAA,MAAM,iBAAiB,GAAI,oMAezB,sBAAsB,4CAQvB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormActionButtons.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/FormActionButtons/FormActionButtons.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"FormActionButtons.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/FormActionButtons/FormActionButtons.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,6NAQ3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LabeledInput.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/LabeledInput/LabeledInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,sBAAsB,EAAE,eAAe,EAAgB,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"LabeledInput.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/LabeledInput/LabeledInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,sBAAsB,EAAE,eAAe,EAAgB,MAAM,yBAAyB,CAAC;AAErG,QAAA,MAAM,YAAY,GAAI,OAAM,KAAK,CAAC,iBAAiB,CAAC,sBAAsB,GAAG,eAAe,CAAC,4CA+F5F,CAAA;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { NestedEditableOptionProps } from "../../../type/propTypes";
|
|
2
|
-
declare const NestedEditableOption: ({ legend, fieldsetIndex, idx, editableInformation, onChangeOfEditableOption, onClickSaveEdit, onClickCancelEdit, onClickDeleteEntry }: NestedEditableOptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const NestedEditableOption: ({ editableButtonSize, editableButtonColor, editableButtonRadius, legend, fieldsetIndex, idx, editableInformation, saveText, saveButtonStartIcon, saveButtonEndIcon, cancelText, cancelButtonStartIcon, cancelButtonEndIcon, deleteText, deleteButtonStartIcon, deleteButtonEndIcon, onChangeOfEditableOption, onClickSaveEdit, onClickCancelEdit, onClickDeleteEntry }: NestedEditableOptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default NestedEditableOption;
|
|
4
4
|
//# sourceMappingURL=NestedEditableOption.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NestedEditableOption.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/NestedEditableOption/NestedEditableOption.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAGzE,QAAA,MAAM,oBAAoB,GAAI,
|
|
1
|
+
{"version":3,"file":"NestedEditableOption.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/NestedEditableOption/NestedEditableOption.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAGzE,QAAA,MAAM,oBAAoB,GAAI,wWAqB5B,yBAAyB,4CA8B1B,CAAA;AAED,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { DynamicFormProps } from "../../../type/propTypes";
|
|
3
|
-
declare const DynamicForm: ({ fieldsets, legendText, isExpandable, id, formInputs, labelAndInputContainerClass, labelClass, inputClass, onChangeOfEditableOption, handleAddingInputEntry, submitText, submitIcon, hasReset, resetText, resetIcon, handleReset, hasCancel, cancelText, cancelIcon, handleCancel, handleSubmitForm, className, children }: React.PropsWithChildren<DynamicFormProps>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const DynamicForm: ({ fieldsets, legendText, isExpandable, id, formInputs, labelAndInputContainerClass, labelClass, inputClass, onChangeOfEditableOption, handleAddingInputEntry, formActionButtonSize, formActionButtonColor, formActionButtonRadius, submitText, submitIcon, hasReset, resetText, resetIcon, handleReset, hasCancel, cancelText, cancelIcon, handleCancel, handleSubmitForm, className, children }: React.PropsWithChildren<DynamicFormProps>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default DynamicForm;
|
|
5
5
|
//# sourceMappingURL=DynamicForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicForm.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/DynamicForm/DynamicForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAgB,gBAAgB,EAA+D,MAAM,yBAAyB,CAAC;AAE3I,QAAA,MAAM,WAAW,GAAI,
|
|
1
|
+
{"version":3,"file":"DynamicForm.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/DynamicForm/DynamicForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAgB,gBAAgB,EAA+D,MAAM,yBAAyB,CAAC;AAE3I,QAAA,MAAM,WAAW,GAAI,kYA2BnB,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,4CA+K1C,CAAA;AAGD,eAAe,WAAW,CAAC"}
|