Skip to content

Commit

Permalink
feat: add all input types to form component addChild
Browse files Browse the repository at this point in the history
  • Loading branch information
ingmar-stipriaan committed Jan 15, 2025
1 parent fc570c7 commit 5c1781d
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 6 deletions.
25 changes: 25 additions & 0 deletions src/prefabs/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
export { default as numberinput } from './numberinput';
export { default as textinput } from './textinput';
export { default as selectinput } from './selectinput';
export { default as priceinput } from './priceinput';
export { default as textareainput } from './textareainput';
export { default as passwordinput } from './passwordinput';
export { default as emailinput } from './emailinput';
export { default as autocompleteInput } from './autocompleteInput';
export { default as decimalinput } from './decimalinput';
export { default as dateTimePickerInput } from './dateTimePickerInput';
export { default as datePickerInput } from './datePickerInput';
export { default as timePickerInput } from './timePickerInput';
export { default as _switch } from './switch';
export { default as imageUploadInput } from './imageUploadInput';
export { default as fileUploadInput } from './fileUploadInput';
export { default as checkboxGroupInput } from './checkboxGroupInput';
export { default as checkboxinput } from './checkboxinput';
export { default as hiddeninput } from './hiddeninput';
export { default as ibaninput } from './ibaninput';
export { default as multiAutocomplete } from './multiAutocomplete';
export { default as phoneinput } from './phoneinput';
export { default as radioinput } from './radioinput';
export { default as ratingInput } from './ratingInput';
export { default as richTextInput } from './richTextInput';
export { default as urlinput } from './urlinput';
59 changes: 53 additions & 6 deletions src/prefabs/structures/ActionJSForm/children.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ import {
DateTimePicker,
FileUpload,
MultiAutocomplete,
PriceInput,
RadioInput,
RatingInput,
RichTextInput,
SelectInput,
TextArea,
TextInput,
autocompleteInputOptions,
checkboxGroupInputOptions,
Expand All @@ -27,11 +25,60 @@ import {
textInputOptions,
} from '..';

import {
_switch,
autocompleteInput,
checkboxGroupInput,
checkboxinput,
datePickerInput,
dateTimePickerInput,
decimalinput,
emailinput,
fileUploadInput,
hiddeninput,
ibaninput,
imageUploadInput,
multiAutocomplete,
numberinput,
passwordinput,
phoneinput,
priceinput,
radioinput,
ratingInput,
richTextInput,
selectinput,
textareainput,
textinput,
timePickerInput,
urlinput,
} from '../..';

export const inputTypes = [
TextInput({}),
SelectInput({}),
PriceInput({}),
TextArea({}),
_switch,
autocompleteInput,
checkboxGroupInput,
checkboxinput,
datePickerInput,
dateTimePickerInput,
decimalinput,
emailinput,
fileUploadInput,
hiddeninput,
ibaninput,
imageUploadInput,
multiAutocomplete,
numberinput,
passwordinput,
phoneinput,
priceinput,
radioinput,
ratingInput,
richTextInput,
selectinput,
textareainput,
textinput,
timePickerInput,
urlinput,
];

const defaultOptions = {
Expand Down

0 comments on commit 5c1781d

Please sign in to comment.