@arquimedes.co/eureka-forms 0.1.2 → 0.2.5

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 (117) hide show
  1. package/dist/@Types/@Types.d.ts +1 -1
  2. package/dist/@Types/@Types.js +1 -1
  3. package/dist/@Types/Form.d.ts +63 -63
  4. package/dist/@Types/Form.js +1 -1
  5. package/dist/@Types/FormStep.d.ts +105 -105
  6. package/dist/@Types/FormStep.js +1 -1
  7. package/dist/@Types/Organization.d.ts +16 -16
  8. package/dist/@Types/Organization.js +1 -1
  9. package/dist/App.d.ts +34 -32
  10. package/dist/App.js +262 -261
  11. package/dist/App.module.css +21 -0
  12. package/dist/FormComponents/Form/ColumnForm/ColumnForm.d.ts +4 -4
  13. package/dist/FormComponents/Form/ColumnForm/ColumnForm.js +232 -232
  14. package/dist/FormComponents/Form/ColumnForm/ColumnForm.module.css +46 -0
  15. package/dist/FormComponents/Form/ConfirmationDialog/ConfirmationDialog.d.ts +12 -12
  16. package/dist/FormComponents/Form/ConfirmationDialog/ConfirmationDialog.js +33 -33
  17. package/dist/FormComponents/Form/ConfirmationDialog/ConfirmationDialog.module.css +48 -0
  18. package/dist/FormComponents/Form/Form.d.ts +24 -23
  19. package/dist/FormComponents/Form/Form.js +116 -116
  20. package/dist/FormComponents/Form/Form.module.css +39 -0
  21. package/dist/FormComponents/Form/StepperForm/StepperForm.d.ts +4 -4
  22. package/dist/FormComponents/Form/StepperForm/StepperForm.js +6 -6
  23. package/dist/FormComponents/Form/StepperForm/StepperForm.module.css +0 -0
  24. package/dist/FormComponents/Section/MaterialSection/MaterialSection.d.ts +4 -4
  25. package/dist/FormComponents/Section/MaterialSection/MaterialSection.js +42 -42
  26. package/dist/FormComponents/Section/MaterialSection/MaterialSection.module.css +8 -0
  27. package/dist/FormComponents/Section/Section.d.ts +24 -23
  28. package/dist/FormComponents/Section/Section.js +25 -25
  29. package/dist/FormComponents/Step/ClassifierSelectorStep/ClassifierSelectorStep.d.ts +9 -9
  30. package/dist/FormComponents/Step/ClassifierSelectorStep/ClassifierSelectorStep.js +37 -37
  31. package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.d.ts +4 -4
  32. package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.js +105 -105
  33. package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.module.css +25 -0
  34. package/dist/FormComponents/Step/DatePickerStep/DatePickerStep.d.ts +9 -9
  35. package/dist/FormComponents/Step/DatePickerStep/DatePickerStep.js +25 -25
  36. package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.d.ts +4 -4
  37. package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.js +35 -35
  38. package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.module.css +9 -0
  39. package/dist/FormComponents/Step/FileUploadStep/FileUploadStep.d.ts +9 -9
  40. package/dist/FormComponents/Step/FileUploadStep/FileUploadStep.js +25 -25
  41. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.d.ts +11 -11
  42. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.js +110 -110
  43. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.module.css +52 -0
  44. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.d.ts +13 -13
  45. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.js +165 -165
  46. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.module.css +45 -0
  47. package/dist/FormComponents/Step/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.d.ts +4 -4
  48. package/dist/FormComponents/Step/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.js +99 -99
  49. package/dist/FormComponents/Step/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.module.css +25 -0
  50. package/dist/FormComponents/Step/SelectorStep/SelectorStep.d.ts +9 -9
  51. package/dist/FormComponents/Step/SelectorStep/SelectorStep.js +37 -37
  52. package/dist/FormComponents/Step/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.d.ts +4 -4
  53. package/dist/FormComponents/Step/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.js +11 -11
  54. package/dist/FormComponents/Step/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.module.css +7 -0
  55. package/dist/FormComponents/Step/SeparatorStep/SeparatorStep.d.ts +9 -9
  56. package/dist/FormComponents/Step/SeparatorStep/SeparatorStep.js +37 -37
  57. package/dist/FormComponents/Step/Step.d.ts +10 -10
  58. package/dist/FormComponents/Step/Step.js +73 -64
  59. package/dist/FormComponents/Step/StepFunctions.d.ts +5 -5
  60. package/dist/FormComponents/Step/StepFunctions.js +51 -51
  61. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/DraftEditor.css +35 -0
  62. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.d.ts +6 -6
  63. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.js +112 -112
  64. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.module.css +58 -0
  65. package/dist/FormComponents/Step/TextAreaStep/TextAreaStep.d.ts +9 -9
  66. package/dist/FormComponents/Step/TextAreaStep/TextAreaStep.js +25 -25
  67. package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.d.ts +4 -4
  68. package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.js +43 -43
  69. package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.module.css +9 -0
  70. package/dist/FormComponents/Step/TextInputStep/TextInputStep.d.ts +9 -9
  71. package/dist/FormComponents/Step/TextInputStep/TextInputStep.js +25 -25
  72. package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.d.ts +4 -4
  73. package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.js +18 -18
  74. package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.module.css +35 -0
  75. package/dist/FormComponents/Step/TitleStep/TitleStep.d.ts +9 -9
  76. package/dist/FormComponents/Step/TitleStep/TitleStep.js +37 -37
  77. package/dist/FormComponents/Term/MaterialTerm/MaterialTerm.d.ts +4 -4
  78. package/dist/FormComponents/Term/MaterialTerm/MaterialTerm.js +77 -77
  79. package/dist/FormComponents/Term/MaterialTerm/MaterialTerm.module.css +73 -0
  80. package/dist/FormComponents/Term/Term.d.ts +15 -15
  81. package/dist/FormComponents/Term/Term.js +25 -25
  82. package/dist/Widget.d.ts +1 -1
  83. package/dist/Widget.js +39 -56
  84. package/dist/constants/Files/FileExtensions.d.ts +3 -3
  85. package/dist/constants/Files/FileExtensions.js +65 -65
  86. package/dist/constants/Files/FileMaxSize.d.ts +2 -2
  87. package/dist/constants/Files/FileMaxSize.js +2 -2
  88. package/dist/constants/FormStepTypes.d.ts +33 -33
  89. package/dist/constants/FormStepTypes.js +39 -39
  90. package/dist/constants/InternalFormStyle.d.ts +3 -3
  91. package/dist/constants/InternalFormStyle.js +12 -12
  92. package/dist/constants/MaterialClassNameSeed.d.ts +1 -1
  93. package/dist/constants/MaterialClassNameSeed.js +1 -1
  94. package/dist/controllers/FileService.d.ts +5 -5
  95. package/dist/controllers/FileService.js +89 -89
  96. package/dist/index.d.ts +1 -2
  97. package/dist/index.js +16 -17
  98. package/dist/index.lib.d.ts +3 -0
  99. package/dist/index.lib.js +3 -0
  100. package/dist/index.module.css +14 -0
  101. package/dist/shared/Loader/Loader.d.ts +18 -18
  102. package/dist/shared/Loader/Loader.js +26 -26
  103. package/dist/shared/Loader/Loader.module.css +12 -0
  104. package/dist/shared/Navbar/Navbar.d.ts +9 -9
  105. package/dist/shared/Navbar/Navbar.js +18 -18
  106. package/dist/shared/Navbar/Navbar.module.css +18 -0
  107. package/dist/shared/RoundedButton/RoundedButton.d.ts +30 -30
  108. package/dist/shared/RoundedButton/RoundedButton.js +45 -45
  109. package/dist/shared/RoundedCheckBox/RoundedCheckBox.d.ts +24 -24
  110. package/dist/shared/RoundedCheckBox/RoundedCheckBox.js +101 -101
  111. package/dist/shared/RoundedDatePicker/RoundedDatePicker.d.ts +40 -40
  112. package/dist/shared/RoundedDatePicker/RoundedDatePicker.js +246 -246
  113. package/dist/shared/RoundedSelect/RoundedSelect.d.ts +42 -42
  114. package/dist/shared/RoundedSelect/RoundedSelect.js +171 -171
  115. package/dist/shared/RoundedTextField/RoundedTextField.d.ts +41 -41
  116. package/dist/shared/RoundedTextField/RoundedTextField.js +138 -138
  117. package/package.json +2 -2
@@ -1 +1 @@
1
- export type { Organization } from './Organization';
1
+ export type { Organization } from './Organization';
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,63 +1,63 @@
1
- import { FormStyleTypes, FormTypes } from '../constants/FormStepTypes';
2
- import { FormStep } from './FormStep';
3
- export interface Form {
4
- apiKey: string;
5
- sections: Record<string, Section>;
6
- steps: Record<string, FormStep>;
7
- firstSection: string;
8
- name: string;
9
- type: FormTypes;
10
- description: string;
11
- isInternal: boolean;
12
- isPublic: boolean;
13
- hasCaptcha: boolean;
14
- url: string;
15
- isStandAlone: boolean;
16
- style: FormStyle;
17
- classifiers: Record<string, ParentClassifier>;
18
- terms: Term[];
19
- blockNum: 1 | 2 | 3 | 4;
20
- blockSize: number;
21
- spacingSize: number;
22
- }
23
- export interface Term {
24
- id: string;
25
- message: string;
26
- clickEffect?: TermDialog | TermLink;
27
- }
28
- interface TermDialog {
29
- type: 'DIALOG';
30
- title: string;
31
- text: string;
32
- }
33
- interface TermLink {
34
- type: 'LINK';
35
- url: string;
36
- }
37
- interface Classifier {
38
- _id: string;
39
- name: string;
40
- }
41
- export interface ParentClassifier extends Classifier {
42
- children: Classifier[];
43
- }
44
- export declare type FormStyle = MaterialStyle;
45
- export declare type StyleKeys = keyof Omit<FormStyle, 'type'>;
46
- export interface MaterialStyle {
47
- type: FormStyleTypes.MATERIAL;
48
- backgroundColor: string;
49
- primaryColor: string;
50
- errorColor: string;
51
- primaryContrastColor: string;
52
- textColor: string;
53
- outlineColor: string;
54
- stepBackgroundColor: string;
55
- }
56
- export interface Section {
57
- _id: string;
58
- name: string;
59
- title?: string;
60
- steps: string[];
61
- nextSection: string | null;
62
- }
63
- export {};
1
+ import { FormStyleTypes, FormTypes } from '../constants/FormStepTypes';
2
+ import { FormStep } from './FormStep';
3
+ export interface Form {
4
+ apiKey: string;
5
+ sections: Record<string, Section>;
6
+ steps: Record<string, FormStep>;
7
+ firstSection: string;
8
+ name: string;
9
+ type: FormTypes;
10
+ description: string;
11
+ isInternal: boolean;
12
+ isPublic: boolean;
13
+ hasCaptcha: boolean;
14
+ url: string;
15
+ isStandAlone: boolean;
16
+ style: FormStyle;
17
+ classifiers: Record<string, ParentClassifier>;
18
+ terms: Term[];
19
+ blockNum: 1 | 2 | 3 | 4;
20
+ blockSize: number;
21
+ spacingSize: number;
22
+ }
23
+ export interface Term {
24
+ id: string;
25
+ message: string;
26
+ clickEffect?: TermDialog | TermLink;
27
+ }
28
+ interface TermDialog {
29
+ type: 'DIALOG';
30
+ title: string;
31
+ text: string;
32
+ }
33
+ interface TermLink {
34
+ type: 'LINK';
35
+ url: string;
36
+ }
37
+ interface Classifier {
38
+ _id: string;
39
+ name: string;
40
+ }
41
+ export interface ParentClassifier extends Classifier {
42
+ children: Classifier[];
43
+ }
44
+ export declare type FormStyle = MaterialStyle;
45
+ export declare type StyleKeys = keyof Omit<FormStyle, 'type'>;
46
+ export interface MaterialStyle {
47
+ type: FormStyleTypes.MATERIAL;
48
+ backgroundColor: string;
49
+ primaryColor: string;
50
+ errorColor: string;
51
+ primaryContrastColor: string;
52
+ textColor: string;
53
+ outlineColor: string;
54
+ stepBackgroundColor: string;
55
+ }
56
+ export interface Section {
57
+ _id: string;
58
+ name: string;
59
+ title?: string;
60
+ steps: string[];
61
+ nextSection: string | null;
62
+ }
63
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,105 +1,105 @@
1
- import Types, { ClassifierOptionTypes, ClientInfoTypes, OptionTypes } from '../constants/FormStepTypes';
2
- export declare type FormStep = Title | TextArea | TextInput | DatePicker | FileUpload | Separator | FormSelector | ClassifierSelector;
3
- export interface Title {
4
- id: string;
5
- type: Types.TITLE;
6
- title: string;
7
- description: string | null;
8
- }
9
- export interface FileUpload {
10
- id: string;
11
- type: Types.FILEUPLOAD;
12
- label: string;
13
- description: string | null;
14
- required: boolean;
15
- value: string[];
16
- }
17
- export interface Separator {
18
- id: string;
19
- type: Types.SEPARATOR;
20
- transparent: boolean;
21
- }
22
- export interface TextArea {
23
- id: string;
24
- type: Types.TEXTAREA;
25
- label: string;
26
- description: string | null;
27
- required: boolean;
28
- hasTextEditor: boolean;
29
- isPrimary: boolean;
30
- }
31
- export interface TextInput {
32
- id: string;
33
- type: Types.TEXTINPUT;
34
- label: string;
35
- description: string | null;
36
- validation?: FormValidation;
37
- required: boolean;
38
- isSubject: boolean;
39
- isClientInfo: boolean;
40
- clientInfoType?: ClientInfoTypes;
41
- size: 1 | 2 | 3 | 4;
42
- }
43
- export interface DatePicker {
44
- id: string;
45
- type: Types.DATEPICKER;
46
- label: string;
47
- description: string | null;
48
- required: boolean;
49
- showIcon: boolean;
50
- size: 1 | 2 | 3 | 4;
51
- }
52
- declare type FormValidation = {
53
- message: string;
54
- value: string;
55
- };
56
- export interface FormSelector {
57
- id: string;
58
- type: Types.SELECTOR;
59
- label: string;
60
- description: string;
61
- required: boolean;
62
- options: FormSelectorOption[];
63
- size: 1 | 2 | 3 | 4;
64
- maxSize: number;
65
- }
66
- export declare type FormSelectorOption = DefaultFormSelectorOption | NestedStepOption | AddSectionOption;
67
- interface DefaultFormSelectorOption {
68
- label: string;
69
- value: string;
70
- type: OptionTypes.DEFAULT;
71
- }
72
- export interface NestedStepOption {
73
- label: string;
74
- value: string;
75
- type: OptionTypes.NESTED;
76
- steps: string[];
77
- }
78
- interface AddSectionOption {
79
- label: string;
80
- value: string;
81
- type: OptionTypes.ADD_SECTION;
82
- idSection: string;
83
- }
84
- export interface ClassifierSelector {
85
- id: string;
86
- type: Types.CLASSIFIER_SELECTOR;
87
- idClassifier: string | null;
88
- label: string;
89
- description: string;
90
- options: Record<string, FormClassifierSelectorOption>;
91
- required: boolean;
92
- size: 1 | 2 | 3 | 4;
93
- maxSize: number;
94
- }
95
- export declare type FormClassifierSelectorOption = NestedStepClassifierOption | HideValueOption;
96
- interface NestedStepClassifierOption {
97
- type: ClassifierOptionTypes.NESTED;
98
- idClassifier: string;
99
- steps: string[];
100
- }
101
- interface HideValueOption {
102
- type: ClassifierOptionTypes.HIDE;
103
- idClassifier: String;
104
- }
105
- export {};
1
+ import Types, { ClassifierOptionTypes, ClientInfoTypes, OptionTypes } from '../constants/FormStepTypes';
2
+ export declare type FormStep = Title | TextArea | TextInput | DatePicker | FileUpload | Separator | FormSelector | ClassifierSelector;
3
+ export interface Title {
4
+ id: string;
5
+ type: Types.TITLE;
6
+ title: string;
7
+ description: string | null;
8
+ }
9
+ export interface FileUpload {
10
+ id: string;
11
+ type: Types.FILEUPLOAD;
12
+ label: string;
13
+ description: string | null;
14
+ required: boolean;
15
+ value: string[];
16
+ }
17
+ export interface Separator {
18
+ id: string;
19
+ type: Types.SEPARATOR;
20
+ transparent: boolean;
21
+ }
22
+ export interface TextArea {
23
+ id: string;
24
+ type: Types.TEXTAREA;
25
+ label: string;
26
+ description: string | null;
27
+ required: boolean;
28
+ hasTextEditor: boolean;
29
+ isPrimary: boolean;
30
+ }
31
+ export interface TextInput {
32
+ id: string;
33
+ type: Types.TEXTINPUT;
34
+ label: string;
35
+ description: string | null;
36
+ validation?: FormValidation;
37
+ required: boolean;
38
+ isSubject: boolean;
39
+ isClientInfo: boolean;
40
+ clientInfoType?: ClientInfoTypes;
41
+ size: 1 | 2 | 3 | 4;
42
+ }
43
+ export interface DatePicker {
44
+ id: string;
45
+ type: Types.DATEPICKER;
46
+ label: string;
47
+ description: string | null;
48
+ required: boolean;
49
+ showIcon: boolean;
50
+ size: 1 | 2 | 3 | 4;
51
+ }
52
+ declare type FormValidation = {
53
+ message: string;
54
+ value: string;
55
+ };
56
+ export interface FormSelector {
57
+ id: string;
58
+ type: Types.SELECTOR;
59
+ label: string;
60
+ description: string;
61
+ required: boolean;
62
+ options: FormSelectorOption[];
63
+ size: 1 | 2 | 3 | 4;
64
+ maxSize: number;
65
+ }
66
+ export declare type FormSelectorOption = DefaultFormSelectorOption | NestedStepOption | AddSectionOption;
67
+ interface DefaultFormSelectorOption {
68
+ label: string;
69
+ value: string;
70
+ type: OptionTypes.DEFAULT;
71
+ }
72
+ export interface NestedStepOption {
73
+ label: string;
74
+ value: string;
75
+ type: OptionTypes.NESTED;
76
+ steps: string[];
77
+ }
78
+ interface AddSectionOption {
79
+ label: string;
80
+ value: string;
81
+ type: OptionTypes.ADD_SECTION;
82
+ idSection: string;
83
+ }
84
+ export interface ClassifierSelector {
85
+ id: string;
86
+ type: Types.CLASSIFIER_SELECTOR;
87
+ idClassifier: string | null;
88
+ label: string;
89
+ description: string;
90
+ options: Record<string, FormClassifierSelectorOption>;
91
+ required: boolean;
92
+ size: 1 | 2 | 3 | 4;
93
+ maxSize: number;
94
+ }
95
+ export declare type FormClassifierSelectorOption = NestedStepClassifierOption | HideValueOption;
96
+ interface NestedStepClassifierOption {
97
+ type: ClassifierOptionTypes.NESTED;
98
+ idClassifier: string;
99
+ steps: string[];
100
+ }
101
+ interface HideValueOption {
102
+ type: ClassifierOptionTypes.HIDE;
103
+ idClassifier: String;
104
+ }
105
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,16 +1,16 @@
1
- export interface Organization {
2
- /** The Organization's id */
3
- domain: string;
4
- /** The Organization's name */
5
- name: string;
6
- /** The organization Logo url */
7
- completeLogoUrl: string;
8
- /** The organization Favicon url */
9
- partialLogoUrl?: string;
10
- /** The organization contact info */
11
- contactInfo?: Array<Record<string, string>>;
12
- /** The organization web page url*/
13
- webUrl: string;
14
- /** The color of the navbar */
15
- navbarColor: string;
16
- }
1
+ export interface Organization {
2
+ /** The Organization's id */
3
+ domain: string;
4
+ /** The Organization's name */
5
+ name: string;
6
+ /** The organization Logo url */
7
+ completeLogoUrl: string;
8
+ /** The organization Favicon url */
9
+ partialLogoUrl?: string;
10
+ /** The organization contact info */
11
+ contactInfo?: Array<Record<string, string>>;
12
+ /** The organization web page url*/
13
+ webUrl: string;
14
+ /** The color of the navbar */
15
+ navbarColor: string;
16
+ }
@@ -1 +1 @@
1
- export {};
1
+ export {};
package/dist/App.d.ts CHANGED
@@ -1,32 +1,34 @@
1
- /// <reference types="react" />
2
- import { Form } from './@Types/Form';
3
- interface AppProps {
4
- /** If the app is currently a widget */
5
- isWidget: boolean;
6
- /** The apikey of the Form */
7
- apiKey?: string;
8
- /** The domain of the form's organization */
9
- domain?: string;
10
- /** The form to display, (used for postviews) */
11
- formData?: Form;
12
- /** If the widget is usedInternally */
13
- internal?: boolean;
14
- /** If the widget is a postview (view what the user filled)*/
15
- postview?: boolean;
16
- /** If the widget is a preview (view from admin)*/
17
- preview?: boolean;
18
- /** The data to fill the form with */
19
- valuesData?: Record<string, unknown>;
20
- }
21
- declare function App({ apiKey, domain, preview, formData, postview, isWidget, internal, valuesData, ...others }: AppProps): JSX.Element;
22
- export default App;
23
- export declare enum SIZES {
24
- SMALL = "SMALL",
25
- MEDIUM = "MEDIUM",
26
- LARGE = "LARGE"
27
- }
28
- export declare const SizesToNum: {
29
- LARGE: number;
30
- MEDIUM: number;
31
- SMALL: number;
32
- };
1
+ /// <reference types="react" />
2
+ import { Form } from './@Types/Form';
3
+ interface AppProps {
4
+ /** If the app is currently a widget */
5
+ isWidget?: boolean;
6
+ /** The apikey of the Form */
7
+ apiKey?: string;
8
+ /** The domain of the form's organization */
9
+ domain?: string;
10
+ /** The form to display, (used for postviews) */
11
+ formData?: Form;
12
+ /** If the widget is usedInternally */
13
+ internal?: boolean;
14
+ /** If the widget is a postview (view what the user filled)*/
15
+ postview?: boolean;
16
+ /** If the widget is a preview (view from admin)*/
17
+ preview?: boolean;
18
+ /** The data to fill the form with */
19
+ valuesData?: Record<string, unknown>;
20
+ /** Custom steps to display */
21
+ customSteps?: Record<string, JSX.Element>;
22
+ }
23
+ declare function App({ apiKey, domain, preview, formData, postview, isWidget, internal, valuesData, customSteps, ...others }: AppProps): JSX.Element;
24
+ export default App;
25
+ export declare enum SIZES {
26
+ SMALL = "SMALL",
27
+ MEDIUM = "MEDIUM",
28
+ LARGE = "LARGE"
29
+ }
30
+ export declare const SizesToNum: {
31
+ LARGE: number;
32
+ MEDIUM: number;
33
+ SMALL: number;
34
+ };