@tsed/react-formio 2.1.2 → 2.1.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.
Files changed (76) hide show
  1. package/coverage.json +4 -4
  2. package/dist/components/actions-table/actionsTable.component.d.ts +3 -2
  3. package/dist/components/actions-table/actionsTable.stories.d.ts +2 -1
  4. package/dist/components/alert/alert.component.d.ts +2 -1
  5. package/dist/components/alert/alert.stories.d.ts +2 -1
  6. package/dist/components/card/card.component.d.ts +1 -1
  7. package/dist/components/card/card.stories.d.ts +2 -1
  8. package/dist/components/form/form.component.d.ts +2 -1
  9. package/dist/components/form/form.stories.d.ts +5 -4
  10. package/dist/components/form-access/formAccess.stories.d.ts +2 -1
  11. package/dist/components/form-access/formAccess.utils.d.ts +3 -3
  12. package/dist/components/form-action/formAction.stories.d.ts +2 -1
  13. package/dist/components/form-builder/formBuilder.component.d.ts +1 -1
  14. package/dist/components/form-builder/formBuilder.stories.d.ts +7 -6
  15. package/dist/components/form-control/formControl.component.d.ts +1 -1
  16. package/dist/components/form-control/formControl.stories.d.ts +11 -10
  17. package/dist/components/form-edit/formEdit.component.d.ts +2 -1
  18. package/dist/components/form-edit/formEdit.stories.d.ts +17 -16
  19. package/dist/components/form-settings/formSettings.component.d.ts +2 -1
  20. package/dist/components/form-settings/formSettings.stories.d.ts +2 -1
  21. package/dist/components/form-settings/formSettings.utils.d.ts +1 -1
  22. package/dist/components/forms-table/components/formCell.component.d.ts +2 -1
  23. package/dist/components/forms-table/formsTable.component.d.ts +3 -2
  24. package/dist/components/forms-table/formsTable.stories.d.ts +3 -2
  25. package/dist/components/input-tags/inputTags.component.d.ts +2 -1
  26. package/dist/components/input-tags/inputTags.stories.d.ts +4 -3
  27. package/dist/components/input-text/inputText.component.d.ts +2 -1
  28. package/dist/components/input-text/inputText.stories.d.ts +6 -5
  29. package/dist/components/loader/loader.component.d.ts +2 -2
  30. package/dist/components/loader/loader.stories.d.ts +2 -1
  31. package/dist/components/modal/modal.component.d.ts +1 -1
  32. package/dist/components/modal/modal.stories.d.ts +5 -4
  33. package/dist/components/modal/removeModal.component.d.ts +2 -2
  34. package/dist/components/pagination/pagination.component.d.ts +2 -1
  35. package/dist/components/pagination/pagination.stories.d.ts +2 -1
  36. package/dist/components/react-component/reactComponent.component.d.ts +1 -1
  37. package/dist/components/select/select.stories.d.ts +9 -8
  38. package/dist/components/submissions-table/submissionsTable.component.d.ts +3 -2
  39. package/dist/components/submissions-table/submissionsTable.stories.d.ts +2 -1
  40. package/dist/components/table/components/defaultArrowSort.component.d.ts +2 -1
  41. package/dist/components/table/components/defaultCellHeader.component.d.ts +2 -1
  42. package/dist/components/table/components/defaultCellOperations.component.d.ts +2 -1
  43. package/dist/components/table/components/defaultCells.component.d.ts +2 -1
  44. package/dist/components/table/components/defaultOperationButton.component.d.ts +2 -1
  45. package/dist/components/table/components/defaultRow.component.d.ts +3 -3
  46. package/dist/components/table/components/dragNDropContainer.d.ts +2 -2
  47. package/dist/components/table/filters/defaultColumnFilter.component.d.ts +2 -1
  48. package/dist/components/table/filters/selectColumnFilter.component.d.ts +2 -1
  49. package/dist/components/table/filters/sliderColumnFilter.component.d.ts +2 -1
  50. package/dist/components/table/hooks/useCustomTable.hook.d.ts +7 -85
  51. package/dist/components/table/hooks/useDragnDropRow.hook.d.ts +25 -18
  52. package/dist/components/table/hooks/useOperations.hook.d.ts +1 -1
  53. package/dist/components/table/table.component.d.ts +2 -2
  54. package/dist/components/table/table.stories.d.ts +3 -2
  55. package/dist/components/tabs/tabs.component.d.ts +3 -3
  56. package/dist/components/tabs/tabs.component.stories.d.ts +3 -2
  57. package/dist/index.js +439 -493
  58. package/dist/index.js.map +1 -1
  59. package/dist/index.modern.js +57 -100
  60. package/dist/index.modern.js.map +1 -1
  61. package/dist/interfaces/FormSchema.d.ts +1 -1
  62. package/dist/interfaces/Operation.d.ts +2 -2
  63. package/dist/interfaces/QueryOptions.d.ts +1 -1
  64. package/package.json +4 -3
  65. package/readme.md +17 -195
  66. package/src/components/form/form.stories.tsx +128 -122
  67. package/src/components/form/useForm.hook.ts +1 -1
  68. package/src/components/form-builder/formBuilder.stories.tsx +3540 -3537
  69. package/src/components/form-edit/formEdit.stories.tsx +320 -317
  70. package/src/components/forms-table/formsTable.component.tsx +1 -1
  71. package/src/components/modal/removeModal.component.tsx +3 -4
  72. package/src/components/table/components/defaultCellHeader.component.tsx +3 -3
  73. package/src/components/table/components/defaultCells.component.tsx +1 -1
  74. package/src/components/table/filters/defaultColumnFilter.component.tsx +1 -1
  75. package/src/components/table/hooks/useCustomTable.hook.tsx +16 -5
  76. package/tsconfig.json +2 -1
package/coverage.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "statements": 56.11,
3
- "branches": 46.65,
4
- "functions": 51.31,
5
- "lines": 56.1
2
+ "statements": 56.02,
3
+ "branches": 46.56,
4
+ "functions": 48.33,
5
+ "lines": 56.04
6
6
  }
@@ -1,10 +1,11 @@
1
+ import React from "react";
1
2
  import { ActionSchema } from "../../interfaces";
2
3
  import { TableProps } from "../table/hooks/useCustomTable.hook";
3
- export declare type ActionsTableProps = Omit<TableProps<ActionSchema>, "columns"> & {
4
+ export type ActionsTableProps = Omit<TableProps<ActionSchema>, "columns"> & {
4
5
  onAddAction?: (actionName: string) => void;
5
6
  availableActions?: {
6
7
  label: string;
7
8
  value: string;
8
9
  }[];
9
10
  };
10
- export declare function ActionsTable({ disableFilters, disablePagination, availableActions, onAddAction, ...props }: ActionsTableProps): JSX.Element;
11
+ export declare function ActionsTable({ disableFilters, disablePagination, availableActions, onAddAction, ...props }: ActionsTableProps): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { ActionsTable } from "./actionsTable.component";
2
3
  declare const _default: {
3
4
  title: string;
@@ -46,7 +47,7 @@ declare const _default: {
46
47
  };
47
48
  export default _default;
48
49
  export declare const Sandbox: {
49
- (args: any): JSX.Element;
50
+ (args: any): React.JSX.Element;
50
51
  args: {
51
52
  icon: string;
52
53
  availableActions: {
@@ -1,5 +1,6 @@
1
+ import React from "react";
1
2
  export interface AlertProps {
2
3
  error?: any | any[];
3
4
  type?: string;
4
5
  }
5
- export declare function Alert({ error, type }: AlertProps): JSX.Element | null;
6
+ export declare function Alert({ error, type }: AlertProps): React.JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { Alert } from "./alert.component";
2
3
  declare const _default: {
3
4
  title: string;
@@ -7,7 +8,7 @@ declare const _default: {
7
8
  };
8
9
  export default _default;
9
10
  export declare const Sandbox: {
10
- (args: any): JSX.Element;
11
+ (args: any): React.JSX.Element;
11
12
  args: {
12
13
  error: string;
13
14
  };
@@ -4,4 +4,4 @@ export interface CardProps {
4
4
  label: string;
5
5
  className?: string;
6
6
  }
7
- export declare function Card({ children, label, className }: PropsWithChildren<CardProps>): JSX.Element;
7
+ export declare function Card({ children, label, className }: PropsWithChildren<CardProps>): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { Card } from "./card.component";
2
3
  declare const _default: {
3
4
  title: string;
@@ -7,7 +8,7 @@ declare const _default: {
7
8
  };
8
9
  export default _default;
9
10
  export declare const Sandbox: {
10
- (args: any): JSX.Element;
11
+ (args: any): React.JSX.Element;
11
12
  args: {
12
13
  label: string;
13
14
  children: string;
@@ -1,4 +1,5 @@
1
1
  import PropTypes from "prop-types";
2
+ import React from "react";
2
3
  import { UseFormHookProps } from "./useForm.hook";
3
4
  export interface FormProps<Data = any> extends UseFormHookProps<Data> {
4
5
  name?: string;
@@ -7,7 +8,7 @@ export interface FormProps<Data = any> extends UseFormHookProps<Data> {
7
8
  */
8
9
  className?: string;
9
10
  }
10
- export declare function Form<Data = any>(props: Partial<FormProps<Data>>): JSX.Element;
11
+ export declare function Form<Data = any>(props: Partial<FormProps<Data>>): React.JSX.Element;
11
12
  export declare namespace Form {
12
13
  var propTypes: {
13
14
  name: PropTypes.Requireable<string>;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { Form } from "./form.component";
2
3
  declare const _default: {
3
4
  title: string;
@@ -66,7 +67,6 @@ declare const _default: {
66
67
  };
67
68
  export default _default;
68
69
  export declare const Sandbox: {
69
- (args: any): JSX.Element;
70
70
  args: {
71
71
  form: {
72
72
  type: string;
@@ -3221,9 +3221,10 @@ export declare const Sandbox: {
3221
3221
  display: string;
3222
3222
  };
3223
3223
  };
3224
+ render: (args: any) => React.JSX.Element;
3224
3225
  };
3225
3226
  export declare const TriggerError: {
3226
- (args: any): JSX.Element;
3227
+ render: (args: any) => React.JSX.Element;
3227
3228
  args: {
3228
3229
  form: {
3229
3230
  type: string;
@@ -3260,7 +3261,7 @@ export declare const TriggerError: {
3260
3261
  };
3261
3262
  };
3262
3263
  export declare const ReadOnly: {
3263
- (args: any): JSX.Element;
3264
+ render: (args: any) => React.JSX.Element;
3264
3265
  args: {
3265
3266
  readonly: boolean;
3266
3267
  form: {
@@ -6418,7 +6419,7 @@ export declare const ReadOnly: {
6418
6419
  };
6419
6420
  };
6420
6421
  export declare const OnChange: {
6421
- (args: any): JSX.Element;
6422
+ render: (args: any) => React.JSX.Element;
6422
6423
  args: {
6423
6424
  form: {
6424
6425
  type: string;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { FormAccess } from "./formAccess.component";
2
3
  declare const _default: {
3
4
  title: string;
@@ -27,7 +28,7 @@ declare const _default: {
27
28
  };
28
29
  export default _default;
29
30
  export declare const Sandbox: {
30
- (args: any): JSX.Element;
31
+ (args: any): React.JSX.Element;
31
32
  args: {
32
33
  form: {
33
34
  _id: string;
@@ -8,12 +8,12 @@ export interface Access {
8
8
  roles: string[];
9
9
  type: string;
10
10
  }
11
- export declare type AccessRoles = Record<string, string[]>;
12
- export declare type FormAccessSchema = {
11
+ export type AccessRoles = Record<string, string[]>;
12
+ export type FormAccessSchema = {
13
13
  access: FormSchema;
14
14
  submissionAccess: FormSchema;
15
15
  };
16
- export declare type SubmissionAccess = {
16
+ export type SubmissionAccess = {
17
17
  access: Submission<AccessRoles>;
18
18
  submissionAccess: Submission<AccessRoles>;
19
19
  };
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { FormAction } from "./formAction.component";
2
3
  declare const _default: {
3
4
  title: string;
@@ -32,7 +33,7 @@ declare const _default: {
32
33
  };
33
34
  export default _default;
34
35
  export declare const Sandbox: {
35
- (args: any): JSX.Element;
36
+ (args: any): React.JSX.Element;
36
37
  args: {
37
38
  actionInfo: {
38
39
  name: string;
@@ -49,5 +49,5 @@ export declare class FormBuilder extends React.Component<FormBuilderProps, any>
49
49
  componentWillUnmount(): void;
50
50
  componentWillReceiveProps(nextProps: FormBuilderProps): Promise<void>;
51
51
  whenComponentsChange(components: ComponentSchema[]): void;
52
- render(): JSX.Element;
52
+ render(): React.JSX.Element;
53
53
  }
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { FormBuilder } from "../../index";
2
3
  declare const _default: {
3
4
  title: string;
@@ -33,9 +34,13 @@ declare const _default: {
33
34
  };
34
35
  export default _default;
35
36
  export declare const Sandbox: {
36
- (args: any): JSX.Element;
37
+ render: ({ display, options, components }: any) => React.JSX.Element;
37
38
  args: {
38
39
  display: string;
40
+ options: {
41
+ template: string;
42
+ iconset: string;
43
+ };
39
44
  components: ({
40
45
  label: string;
41
46
  labelPosition: string;
@@ -3003,14 +3008,10 @@ export declare const Sandbox: {
3003
3008
  minDate?: undefined;
3004
3009
  currency?: undefined;
3005
3010
  })[];
3006
- options: {
3007
- template: string;
3008
- iconset: string;
3009
- };
3010
3011
  };
3011
3012
  };
3012
3013
  export declare const Wizard: {
3013
- (args: any): JSX.Element;
3014
+ render: (args: any) => React.JSX.Element;
3014
3015
  args: {
3015
3016
  display: string;
3016
3017
  components: ({
@@ -10,7 +10,7 @@ export interface FormControlProps {
10
10
  suffix?: JSX.Element | React.ComponentType | any;
11
11
  shadow?: boolean;
12
12
  }
13
- export declare function FormControl({ children, name, required, prefix, suffix, description, label, className }: React.PropsWithChildren<FormControlProps>): JSX.Element;
13
+ export declare function FormControl({ children, name, required, prefix, suffix, description, label, className }: React.PropsWithChildren<FormControlProps>): React.JSX.Element;
14
14
  export declare namespace FormControl {
15
15
  var propTypes: {
16
16
  label: PropTypes.Requireable<string>;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { FormControl } from "./formControl.component";
2
3
  declare const _default: {
3
4
  title: string;
@@ -26,32 +27,32 @@ declare const _default: {
26
27
  };
27
28
  export default _default;
28
29
  export declare const Sandbox: {
29
- (args: any): JSX.Element;
30
+ (args: any): React.JSX.Element;
30
31
  args: {
31
32
  label: string;
32
- children: JSX.Element;
33
+ children: React.JSX.Element;
33
34
  };
34
35
  };
35
36
  export declare const WithPrefix: {
36
- (args: any): JSX.Element;
37
+ (args: any): React.JSX.Element;
37
38
  args: {
38
39
  label: string;
39
- children: JSX.Element;
40
- prefix: JSX.Element;
40
+ children: React.JSX.Element;
41
+ prefix: React.JSX.Element;
41
42
  };
42
43
  };
43
44
  export declare const WithSuffix: {
44
- (args: any): JSX.Element;
45
+ (args: any): React.JSX.Element;
45
46
  args: {
46
47
  label: string;
47
- children: JSX.Element;
48
- suffix: JSX.Element;
48
+ children: React.JSX.Element;
49
+ suffix: React.JSX.Element;
49
50
  };
50
51
  };
51
52
  export declare const WithDescription: {
52
- (args: any): JSX.Element;
53
+ (args: any): React.JSX.Element;
53
54
  args: {
54
55
  label: string;
55
- children: JSX.Element;
56
+ children: React.JSX.Element;
56
57
  };
57
58
  };
@@ -1,11 +1,12 @@
1
1
  import PropTypes from "prop-types";
2
+ import React from "react";
2
3
  import { FormOptions } from "../../interfaces/FormOptions";
3
4
  import { UseFormEditHookProps } from "./useFormEdit.hook";
4
5
  export interface FormEditProps extends UseFormEditHookProps {
5
6
  builder?: any;
6
7
  options?: FormOptions;
7
8
  }
8
- export declare function FormEdit(props: FormEditProps): JSX.Element;
9
+ export declare function FormEdit(props: FormEditProps): React.JSX.Element;
9
10
  export declare namespace FormEdit {
10
11
  var propTypes: {
11
12
  form: PropTypes.Validator<object>;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { FormEdit } from "./formEdit.component";
2
3
  declare const _default: {
3
4
  title: string;
@@ -48,8 +49,21 @@ declare const _default: {
48
49
  };
49
50
  export default _default;
50
51
  export declare const Sandbox: {
51
- (args: any): JSX.Element;
52
+ render: ({ form, typeChoices, displayChoices, enableTags, options }: any) => React.JSX.Element;
52
53
  args: {
54
+ typeChoices: {
55
+ label: string;
56
+ value: string;
57
+ }[];
58
+ displayChoices: {
59
+ label: string;
60
+ value: string;
61
+ }[];
62
+ enableTags: boolean;
63
+ options: {
64
+ template: string;
65
+ iconset: string;
66
+ };
53
67
  form: {
54
68
  type: string;
55
69
  tags: never[];
@@ -150,23 +164,10 @@ export declare const Sandbox: {
150
164
  path: string;
151
165
  machineName: string;
152
166
  };
153
- typeChoices: {
154
- label: string;
155
- value: string;
156
- }[];
157
- displayChoices: {
158
- label: string;
159
- value: string;
160
- }[];
161
- enableTags: boolean;
162
- options: {
163
- template: string;
164
- iconset: string;
165
- };
166
167
  };
167
168
  };
168
169
  export declare const WithoutTypeChoices: {
169
- (args: any): JSX.Element;
170
+ render: (args: any) => React.JSX.Element;
170
171
  args: {
171
172
  form: {
172
173
  type: string;
@@ -280,7 +281,7 @@ export declare const WithoutTypeChoices: {
280
281
  };
281
282
  };
282
283
  export declare const WithoutTags: {
283
- (args: any): JSX.Element;
284
+ render: (args: any) => React.JSX.Element;
284
285
  args: {
285
286
  form: {
286
287
  type: string;
@@ -1,7 +1,8 @@
1
+ import React from "react";
1
2
  import { FormOptions, FormSchema } from "../../interfaces";
2
3
  export interface FormSettingsProps {
3
4
  form: Partial<FormSchema>;
4
5
  onSubmit?: Function;
5
6
  options?: FormOptions;
6
7
  }
7
- export declare function FormSettings(props: FormSettingsProps): JSX.Element;
8
+ export declare function FormSettings(props: FormSettingsProps): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { FormSettings } from "./formSettings.component";
2
3
  declare const _default: {
3
4
  title: string;
@@ -27,7 +28,7 @@ declare const _default: {
27
28
  };
28
29
  export default _default;
29
30
  export declare const Sandbox: {
30
- (args: any): JSX.Element;
31
+ (args: any): React.JSX.Element;
31
32
  args: {
32
33
  form: {
33
34
  _id: string;
@@ -1,5 +1,5 @@
1
1
  import { FormSchema, Submission } from "../../interfaces";
2
- export declare type FormSettingsSchema = {
2
+ export type FormSettingsSchema = {
3
3
  action: string;
4
4
  tags: string[];
5
5
  properties: Record<string, any>;
@@ -1,6 +1,7 @@
1
+ import React from "react";
1
2
  import { CellProps } from "react-table";
2
3
  import { FormSchema } from "../../../interfaces";
3
4
  export declare function FormsCell(props: CellProps<FormSchema> & {
4
5
  icon: string;
5
6
  i18n: (f: string) => string;
6
- }): JSX.Element;
7
+ }): React.JSX.Element;
@@ -1,10 +1,11 @@
1
+ import React from "react";
1
2
  import { FormSchema } from "../../interfaces";
2
3
  import { TableProps } from "../table/hooks/useCustomTable.hook";
3
- export declare type FormsTableProps = Omit<TableProps<FormSchema>, "columns"> & {
4
+ export type FormsTableProps = Omit<TableProps<FormSchema>, "columns"> & {
4
5
  icon?: string;
5
6
  tags?: {
6
7
  label: string;
7
8
  value: string;
8
9
  }[];
9
10
  };
10
- export declare function FormsTable({ Cell, ...props }: FormsTableProps): JSX.Element;
11
+ export declare function FormsTable({ Cell, ...props }: FormsTableProps): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { FormsTable } from "./formsTable.component";
2
3
  declare const _default: {
3
4
  title: string;
@@ -49,7 +50,7 @@ declare const _default: {
49
50
  };
50
51
  export default _default;
51
52
  export declare const Sandbox: {
52
- (args: any): JSX.Element;
53
+ (args: any): React.JSX.Element;
53
54
  args: {
54
55
  icon: string;
55
56
  data: {
@@ -81,7 +82,7 @@ export declare const Sandbox: {
81
82
  };
82
83
  };
83
84
  export declare const ButtonsOutlined: {
84
- (args: any): JSX.Element;
85
+ (args: any): React.JSX.Element;
85
86
  args: {
86
87
  icon: string;
87
88
  data: {
@@ -1,4 +1,5 @@
1
1
  import PropTypes from "prop-types";
2
+ import React from "react";
2
3
  import { FormControlProps } from "../form-control/formControl.component";
3
4
  export interface InputTagsProps<T = any> extends Omit<FormControlProps, "description" | "prefix" | "suffix"> {
4
5
  value?: T;
@@ -6,7 +7,7 @@ export interface InputTagsProps<T = any> extends Omit<FormControlProps, "descrip
6
7
  placeholder?: string;
7
8
  [key: string]: any;
8
9
  }
9
- export declare function InputTags({ name, value, label, onChange, required, description, prefix, suffix, ...props }: InputTagsProps): JSX.Element;
10
+ export declare function InputTags({ name, value, label, onChange, required, description, prefix, suffix, ...props }: InputTagsProps): React.JSX.Element;
10
11
  export declare namespace InputTags {
11
12
  var propTypes: {
12
13
  label: PropTypes.Requireable<string>;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { InputTags } from "./inputTags.component";
2
3
  declare const _default: {
3
4
  title: string;
@@ -44,7 +45,7 @@ declare const _default: {
44
45
  };
45
46
  export default _default;
46
47
  export declare const Sandbox: {
47
- (args: any): JSX.Element;
48
+ (args: any): React.JSX.Element;
48
49
  args: {
49
50
  name: string;
50
51
  label: string;
@@ -54,7 +55,7 @@ export declare const Sandbox: {
54
55
  };
55
56
  };
56
57
  export declare const WithPrefix: {
57
- (args: any): JSX.Element;
58
+ (args: any): React.JSX.Element;
58
59
  args: {
59
60
  label: string;
60
61
  value: never[];
@@ -64,7 +65,7 @@ export declare const WithPrefix: {
64
65
  };
65
66
  };
66
67
  export declare const WithSuffix: {
67
- (args: any): JSX.Element;
68
+ (args: any): React.JSX.Element;
68
69
  args: {
69
70
  label: string;
70
71
  value: never[];
@@ -1,4 +1,5 @@
1
1
  import PropTypes from "prop-types";
2
+ import React from "react";
2
3
  import { FormControlProps } from "../form-control/formControl.component";
3
4
  export interface InputTextProps<T = any> extends FormControlProps {
4
5
  type?: string;
@@ -11,7 +12,7 @@ export interface InputTextProps<T = any> extends FormControlProps {
11
12
  placeholder?: string;
12
13
  [key: string]: any;
13
14
  }
14
- export declare function InputText<T = any>({ name, value, label, onChange, required, size, type, prefix, suffix, description, className, placeholder, ...props }: InputTextProps<T>): JSX.Element;
15
+ export declare function InputText<T = any>({ name, value, label, onChange, required, size, type, prefix, suffix, description, className, placeholder, ...props }: InputTextProps<T>): React.JSX.Element;
15
16
  export declare namespace InputText {
16
17
  var propTypes: {
17
18
  label: PropTypes.Requireable<string>;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { InputText } from "./inputText.component";
2
3
  declare const _default: {
3
4
  title: string;
@@ -49,7 +50,7 @@ declare const _default: {
49
50
  };
50
51
  export default _default;
51
52
  export declare const Sandbox: {
52
- (args: any): JSX.Element;
53
+ (args: any): React.JSX.Element;
53
54
  args: {
54
55
  name: string;
55
56
  label: string;
@@ -59,7 +60,7 @@ export declare const Sandbox: {
59
60
  };
60
61
  };
61
62
  export declare const WithPrefix: {
62
- (args: any): JSX.Element;
63
+ (args: any): React.JSX.Element;
63
64
  args: {
64
65
  label: string;
65
66
  value: string;
@@ -68,7 +69,7 @@ export declare const WithPrefix: {
68
69
  };
69
70
  };
70
71
  export declare const WithSuffix: {
71
- (args: any): JSX.Element;
72
+ (args: any): React.JSX.Element;
72
73
  args: {
73
74
  label: string;
74
75
  value: string;
@@ -77,7 +78,7 @@ export declare const WithSuffix: {
77
78
  };
78
79
  };
79
80
  export declare const TypeNumber: {
80
- (args: any): JSX.Element;
81
+ (args: any): React.JSX.Element;
81
82
  args: {
82
83
  label: string;
83
84
  type: string;
@@ -88,7 +89,7 @@ export declare const TypeNumber: {
88
89
  };
89
90
  };
90
91
  export declare const Sizing: {
91
- (args: any): JSX.Element;
92
+ (args: any): React.JSX.Element;
92
93
  args: {
93
94
  label: string;
94
95
  type: string;
@@ -1,12 +1,12 @@
1
1
  import PropTypes from "prop-types";
2
- import { PropsWithChildren } from "react";
2
+ import React, { PropsWithChildren } from "react";
3
3
  export interface LoaderProps {
4
4
  isActive?: boolean;
5
5
  color?: string;
6
6
  icon?: string;
7
7
  className?: string;
8
8
  }
9
- export declare function Loader({ isActive, color, icon, className }: PropsWithChildren<LoaderProps>): JSX.Element | null;
9
+ export declare function Loader({ isActive, color, icon, className }: PropsWithChildren<LoaderProps>): React.JSX.Element | null;
10
10
  export declare namespace Loader {
11
11
  var propTypes: {
12
12
  isActive: PropTypes.Requireable<boolean>;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { Loader } from "./loader.component";
2
3
  declare const _default: {
3
4
  title: string;
@@ -7,7 +8,7 @@ declare const _default: {
7
8
  };
8
9
  export default _default;
9
10
  export declare const Sandbox: {
10
- (args: any): JSX.Element;
11
+ (args: any): React.JSX.Element;
11
12
  args: {
12
13
  isActive: boolean;
13
14
  };
@@ -12,4 +12,4 @@ export interface ModalProps extends Record<string, any> {
12
12
  footer?: any;
13
13
  title?: string;
14
14
  }
15
- export declare function Modal({ show, children, closeModal, onClose, title, footer: ModalFooter, style, className, ...props }: PropsWithChildren<ModalProps>): JSX.Element | null;
15
+ export declare function Modal({ show, children, closeModal, onClose, title, footer: ModalFooter, style, className, ...props }: PropsWithChildren<ModalProps>): React.JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { Modal, ModalProps } from "./modal.component";
2
3
  import { RemoveModalProps } from "./removeModal.component";
3
4
  declare const _default: {
@@ -19,23 +20,23 @@ declare const _default: {
19
20
  };
20
21
  export default _default;
21
22
  export declare const Sandbox: {
22
- (args: ModalProps): JSX.Element;
23
+ (args: ModalProps): React.JSX.Element;
23
24
  args: {};
24
25
  };
25
26
  export declare const WithTitle: {
26
- (args: ModalProps): JSX.Element;
27
+ (args: ModalProps): React.JSX.Element;
27
28
  args: {
28
29
  title: string;
29
30
  };
30
31
  };
31
32
  export declare const WithFooter: {
32
- (args: ModalProps): JSX.Element;
33
+ (args: ModalProps): React.JSX.Element;
33
34
  args: {
34
35
  title: string;
35
36
  };
36
37
  };
37
38
  export declare const WithRemoveModal: {
38
- (args: RemoveModalProps): JSX.Element;
39
+ (args: RemoveModalProps): React.JSX.Element;
39
40
  args: {
40
41
  valueToCompare: string;
41
42
  itemType: string;
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from "react";
1
+ import React, { PropsWithChildren } from "react";
2
2
  import { ModalProps } from "./modal.component";
3
3
  export interface RemoveModalProps extends ModalProps {
4
4
  valueToCompare: string;
@@ -6,4 +6,4 @@ export interface RemoveModalProps extends ModalProps {
6
6
  i18n?: (f: string) => string;
7
7
  maxWidth?: string;
8
8
  }
9
- export declare function RemoveModal({ maxWidth, children, ...props }: PropsWithChildren<RemoveModalProps>): JSX.Element;
9
+ export declare function RemoveModal({ maxWidth, children, ...props }: PropsWithChildren<RemoveModalProps>): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export interface PaginationProps {
2
3
  className?: string;
3
4
  pageSizes?: number[];
@@ -13,4 +14,4 @@ export interface PaginationProps {
13
14
  setPageSize: any;
14
15
  i18n?: (f: string) => string;
15
16
  }
16
- export declare function Pagination(props: PaginationProps): JSX.Element;
17
+ export declare function Pagination(props: PaginationProps): React.JSX.Element;