@arquimedes.co/eureka-forms 1.9.74-test → 1.9.76-test

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 (217) hide show
  1. package/dist/@Types/@Types.d.ts +2 -0
  2. package/dist/@Types/@Types.js +1 -0
  3. package/dist/@Types/AYFFormStep.d.ts +19 -0
  4. package/dist/@Types/AYFFormStep.js +1 -0
  5. package/dist/@Types/CBRFormStep.d.ts +74 -0
  6. package/dist/@Types/CBRFormStep.js +1 -0
  7. package/dist/@Types/Form.d.ts +65 -0
  8. package/dist/@Types/Form.js +1 -0
  9. package/dist/@Types/FormStep.d.ts +138 -0
  10. package/dist/@Types/FormStep.js +1 -0
  11. package/dist/@Types/GenericFormSteps.d.ts +60 -0
  12. package/dist/@Types/GenericFormSteps.js +1 -0
  13. package/dist/@Types/Organization.d.ts +17 -0
  14. package/dist/@Types/Organization.js +1 -0
  15. package/dist/@Types/index.d.ts +1 -0
  16. package/dist/@Types/index.js +1 -0
  17. package/dist/App.d.ts +58 -0
  18. package/dist/App.js +470 -0
  19. package/dist/App.module.css +34 -0
  20. package/dist/AxiosAPI.d.ts +2 -0
  21. package/dist/AxiosAPI.js +8 -0
  22. package/dist/AxiosWidget.d.ts +2 -0
  23. package/dist/AxiosWidget.js +8 -0
  24. package/dist/FormComponents/Form/ColumnForm/ColumnForm.d.ts +7 -0
  25. package/dist/FormComponents/Form/ColumnForm/ColumnForm.js +379 -0
  26. package/dist/FormComponents/Form/ColumnForm/ColumnForm.module.css +51 -0
  27. package/dist/FormComponents/Form/ConfirmationDialog/ConfirmationDialog.d.ts +12 -0
  28. package/dist/FormComponents/Form/ConfirmationDialog/ConfirmationDialog.js +31 -0
  29. package/dist/FormComponents/Form/ConfirmationDialog/ConfirmationDialog.module.css +64 -0
  30. package/dist/FormComponents/Form/Form.d.ts +41 -0
  31. package/dist/FormComponents/Form/Form.js +147 -0
  32. package/dist/FormComponents/Form/Form.module.css +39 -0
  33. package/dist/FormComponents/Form/StepperForm/StepperForm.d.ts +4 -0
  34. package/dist/FormComponents/Form/StepperForm/StepperForm.js +6 -0
  35. package/dist/FormComponents/Form/StepperForm/StepperForm.module.css +0 -0
  36. package/dist/FormComponents/Section/MaterialSection/MaterialSection.d.ts +4 -0
  37. package/dist/FormComponents/Section/MaterialSection/MaterialSection.js +42 -0
  38. package/dist/FormComponents/Section/MaterialSection/MaterialSection.module.css +8 -0
  39. package/dist/FormComponents/Section/Section.d.ts +38 -0
  40. package/dist/FormComponents/Section/Section.js +23 -0
  41. package/dist/FormComponents/Step/@Construction/CBRElementStep/CBRElementStep.d.ts +8 -0
  42. package/dist/FormComponents/Step/@Construction/CBRElementStep/CBRElementStep.js +139 -0
  43. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/CBRIncidentsStep.d.ts +9 -0
  44. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/CBRIncidentsStep.js +23 -0
  45. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.d.ts +8 -0
  46. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.js +49 -0
  47. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.module.css +60 -0
  48. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.d.ts +11 -0
  49. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.js +121 -0
  50. package/dist/FormComponents/Step/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.module.css +34 -0
  51. package/dist/FormComponents/Step/@Construction/CBRPropertyStep/CBRPropertyStep.d.ts +8 -0
  52. package/dist/FormComponents/Step/@Construction/CBRPropertyStep/CBRPropertyStep.js +138 -0
  53. package/dist/FormComponents/Step/@Construction/CBRPropertyStep/CBRPropertyStep.module.css +54 -0
  54. package/dist/FormComponents/Step/AYFStepMapper.d.ts +12 -0
  55. package/dist/FormComponents/Step/AYFStepMapper.js +170 -0
  56. package/dist/FormComponents/Step/CBRStepMapper.d.ts +13 -0
  57. package/dist/FormComponents/Step/CBRStepMapper.js +202 -0
  58. package/dist/FormComponents/Step/CheckBoxStep/CheckBoxStep.d.ts +9 -0
  59. package/dist/FormComponents/Step/CheckBoxStep/CheckBoxStep.js +35 -0
  60. package/dist/FormComponents/Step/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.d.ts +4 -0
  61. package/dist/FormComponents/Step/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.js +65 -0
  62. package/dist/FormComponents/Step/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.module.css +37 -0
  63. package/dist/FormComponents/Step/ClassifierSelectorStep/ClassifierSelectorStep.d.ts +9 -0
  64. package/dist/FormComponents/Step/ClassifierSelectorStep/ClassifierSelectorStep.js +35 -0
  65. package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.d.ts +4 -0
  66. package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.js +121 -0
  67. package/dist/FormComponents/Step/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.module.css +25 -0
  68. package/dist/FormComponents/Step/CollapsibleStep/CollapsibleStep.d.ts +9 -0
  69. package/dist/FormComponents/Step/CollapsibleStep/CollapsibleStep.js +37 -0
  70. package/dist/FormComponents/Step/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.d.ts +4 -0
  71. package/dist/FormComponents/Step/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.js +75 -0
  72. package/dist/FormComponents/Step/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.module.css +62 -0
  73. package/dist/FormComponents/Step/DatePickerStep/DatePickerStep.d.ts +11 -0
  74. package/dist/FormComponents/Step/DatePickerStep/DatePickerStep.js +23 -0
  75. package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.d.ts +4 -0
  76. package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.js +48 -0
  77. package/dist/FormComponents/Step/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.module.css +9 -0
  78. package/dist/FormComponents/Step/EntityValueStep/EntityValuePickerStep.d.ts +15 -0
  79. package/dist/FormComponents/Step/EntityValueStep/EntityValuePickerStep.js +35 -0
  80. package/dist/FormComponents/Step/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.d.ts +4 -0
  81. package/dist/FormComponents/Step/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.js +203 -0
  82. package/dist/FormComponents/Step/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.module.css +25 -0
  83. package/dist/FormComponents/Step/FileUploadStep/FileUploadStep.d.ts +9 -0
  84. package/dist/FormComponents/Step/FileUploadStep/FileUploadStep.js +23 -0
  85. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.d.ts +13 -0
  86. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.js +123 -0
  87. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.module.css +60 -0
  88. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.d.ts +16 -0
  89. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.js +272 -0
  90. package/dist/FormComponents/Step/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.module.css +59 -0
  91. package/dist/FormComponents/Step/MapperStep/MapperStep.d.ts +15 -0
  92. package/dist/FormComponents/Step/MapperStep/MapperStep.js +35 -0
  93. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/MapperElement.d.ts +10 -0
  94. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/MapperElement.js +27 -0
  95. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/MapperElement.module.css +60 -0
  96. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/PillElementContainer/PillElementContainer.d.ts +13 -0
  97. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/PillElementContainer/PillElementContainer.js +33 -0
  98. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/Element/PillElementContainer/PillElementContainer.module.css +60 -0
  99. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/MaterialMapperStep.d.ts +15 -0
  100. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/MaterialMapperStep.js +275 -0
  101. package/dist/FormComponents/Step/MapperStep/MaterialMapperStep/MaterialMapperStep.module.css +42 -0
  102. package/dist/FormComponents/Step/RatingStep/MaterialRatingStep/MaterialRatingStep.d.ts +4 -0
  103. package/dist/FormComponents/Step/RatingStep/MaterialRatingStep/MaterialRatingStep.js +71 -0
  104. package/dist/FormComponents/Step/RatingStep/MaterialRatingStep/MaterialRatingStep.module.css +30 -0
  105. package/dist/FormComponents/Step/RatingStep/RatingStep.d.ts +9 -0
  106. package/dist/FormComponents/Step/RatingStep/RatingStep.js +23 -0
  107. package/dist/FormComponents/Step/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.d.ts +4 -0
  108. package/dist/FormComponents/Step/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.js +104 -0
  109. package/dist/FormComponents/Step/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.module.css +25 -0
  110. package/dist/FormComponents/Step/SelectorStep/SelectorStep.d.ts +9 -0
  111. package/dist/FormComponents/Step/SelectorStep/SelectorStep.js +35 -0
  112. package/dist/FormComponents/Step/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.d.ts +4 -0
  113. package/dist/FormComponents/Step/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.js +11 -0
  114. package/dist/FormComponents/Step/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.module.css +7 -0
  115. package/dist/FormComponents/Step/SeparatorStep/SeparatorStep.d.ts +9 -0
  116. package/dist/FormComponents/Step/SeparatorStep/SeparatorStep.js +35 -0
  117. package/dist/FormComponents/Step/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.d.ts +10 -0
  118. package/dist/FormComponents/Step/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.js +241 -0
  119. package/dist/FormComponents/Step/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.module.css +9 -0
  120. package/dist/FormComponents/Step/SmartSelectStep/SmartSelectStep.d.ts +33 -0
  121. package/dist/FormComponents/Step/SmartSelectStep/SmartSelectStep.js +23 -0
  122. package/dist/FormComponents/Step/Step.d.ts +11 -0
  123. package/dist/FormComponents/Step/Step.js +108 -0
  124. package/dist/FormComponents/Step/StepFunctions.d.ts +5 -0
  125. package/dist/FormComponents/Step/StepFunctions.js +65 -0
  126. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/DraftEditor.css +96 -0
  127. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.d.ts +13 -0
  128. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.js +213 -0
  129. package/dist/FormComponents/Step/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.module.css +93 -0
  130. package/dist/FormComponents/Step/TextAreaStep/TextAreaStep.d.ts +10 -0
  131. package/dist/FormComponents/Step/TextAreaStep/TextAreaStep.js +23 -0
  132. package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.d.ts +4 -0
  133. package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.js +76 -0
  134. package/dist/FormComponents/Step/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.module.css +9 -0
  135. package/dist/FormComponents/Step/TextInputStep/TextInputStep.d.ts +13 -0
  136. package/dist/FormComponents/Step/TextInputStep/TextInputStep.js +23 -0
  137. package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.d.ts +4 -0
  138. package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.js +20 -0
  139. package/dist/FormComponents/Step/TitleStep/MaterialTitleStep/MaterialTitleStep.module.css +19 -0
  140. package/dist/FormComponents/Step/TitleStep/TitleStep.d.ts +9 -0
  141. package/dist/FormComponents/Step/TitleStep/TitleStep.js +35 -0
  142. package/dist/FormComponents/Term/MaterialTerm/MaterialTerm.d.ts +4 -0
  143. package/dist/FormComponents/Term/MaterialTerm/MaterialTerm.js +88 -0
  144. package/dist/FormComponents/Term/MaterialTerm/MaterialTerm.module.css +83 -0
  145. package/dist/FormComponents/Term/Term.d.ts +15 -0
  146. package/dist/FormComponents/Term/Term.js +23 -0
  147. package/dist/Icons/Construction/LeakIcon.d.ts +3 -0
  148. package/dist/Icons/Construction/LeakIcon.js +16 -0
  149. package/dist/Icons/Construction/ProjectIcon.d.ts +3 -0
  150. package/dist/Icons/Construction/ProjectIcon.js +16 -0
  151. package/dist/Icons/Construction/PropertyIcon.d.ts +3 -0
  152. package/dist/Icons/Construction/PropertyIcon.js +16 -0
  153. package/dist/Icons/Construction/SpaceIcon.d.ts +3 -0
  154. package/dist/Icons/Construction/SpaceIcon.js +16 -0
  155. package/dist/Icons/DocumentIcon.d.ts +3 -0
  156. package/dist/Icons/DocumentIcon.js +16 -0
  157. package/dist/Icons/Entities/GenericEntityIcon.d.ts +2 -0
  158. package/dist/Icons/Entities/GenericEntityIcon.js +17 -0
  159. package/dist/Icons/Entities/HandshakeIcon.d.ts +2 -0
  160. package/dist/Icons/Entities/HandshakeIcon.js +17 -0
  161. package/dist/Widget.d.ts +1 -0
  162. package/dist/Widget.js +61 -0
  163. package/dist/constants/AYFFormStepTypes.d.ts +9 -0
  164. package/dist/constants/AYFFormStepTypes.js +10 -0
  165. package/dist/constants/CBRFormStepTypes.d.ts +21 -0
  166. package/dist/constants/CBRFormStepTypes.js +22 -0
  167. package/dist/constants/Files/FileExtensions.d.ts +3 -0
  168. package/dist/constants/Files/FileExtensions.js +68 -0
  169. package/dist/constants/Files/FileMaxSize.d.ts +2 -0
  170. package/dist/constants/Files/FileMaxSize.js +2 -0
  171. package/dist/constants/FormStepTypes.d.ts +46 -0
  172. package/dist/constants/FormStepTypes.js +54 -0
  173. package/dist/constants/IconTypes.d.ts +10 -0
  174. package/dist/constants/IconTypes.js +11 -0
  175. package/dist/constants/InternalFormStyle.d.ts +3 -0
  176. package/dist/constants/InternalFormStyle.js +16 -0
  177. package/dist/constants/MaterialClassNameSeed.d.ts +1 -0
  178. package/dist/constants/MaterialClassNameSeed.js +1 -0
  179. package/dist/controllers/FileService.d.ts +5 -0
  180. package/dist/controllers/FileService.js +92 -0
  181. package/dist/index.d.ts +1 -0
  182. package/dist/index.js +29 -0
  183. package/dist/index.lib.d.ts +7 -0
  184. package/dist/index.lib.js +5 -0
  185. package/dist/index.module.css +14 -0
  186. package/dist/shared/InputIcon/InputIcon.d.ts +7 -0
  187. package/dist/shared/InputIcon/InputIcon.js +81 -0
  188. package/dist/shared/Loader/Loader.d.ts +18 -0
  189. package/dist/shared/Loader/Loader.js +26 -0
  190. package/dist/shared/Loader/Loader.module.css +12 -0
  191. package/dist/shared/Navbar/Navbar.d.ts +9 -0
  192. package/dist/shared/Navbar/Navbar.js +18 -0
  193. package/dist/shared/Navbar/Navbar.module.css +18 -0
  194. package/dist/shared/Rating/Rating.d.ts +16 -0
  195. package/dist/shared/Rating/Rating.js +41 -0
  196. package/dist/shared/Rating/Rating.module.css +32 -0
  197. package/dist/shared/Rating/Ratings/LikeRating.d.ts +4 -0
  198. package/dist/shared/Rating/Ratings/LikeRating.js +43 -0
  199. package/dist/shared/Rating/Ratings/SatisfactionRating.d.ts +4 -0
  200. package/dist/shared/Rating/Ratings/SatisfactionRating.js +61 -0
  201. package/dist/shared/Rating/Ratings/ScaleRating.d.ts +4 -0
  202. package/dist/shared/Rating/Ratings/ScaleRating.js +63 -0
  203. package/dist/shared/RoundedButton/RoundedButton.d.ts +30 -0
  204. package/dist/shared/RoundedButton/RoundedButton.js +45 -0
  205. package/dist/shared/RoundedCheckBox/RoundedCheckBox.d.ts +24 -0
  206. package/dist/shared/RoundedCheckBox/RoundedCheckBox.js +101 -0
  207. package/dist/shared/RoundedDatePicker/RoundedDatePicker.d.ts +48 -0
  208. package/dist/shared/RoundedDatePicker/RoundedDatePicker.js +348 -0
  209. package/dist/shared/RoundedSelect/RoundedSelect.d.ts +68 -0
  210. package/dist/shared/RoundedSelect/RoundedSelect.js +214 -0
  211. package/dist/shared/RoundedSmartSelect/RoundedSmartSelect.d.ts +66 -0
  212. package/dist/shared/RoundedSmartSelect/RoundedSmartSelect.js +234 -0
  213. package/dist/shared/RoundedTextField/RoundedTextField.d.ts +45 -0
  214. package/dist/shared/RoundedTextField/RoundedTextField.js +175 -0
  215. package/dist/utils/CbrFunctions.d.ts +8 -0
  216. package/dist/utils/CbrFunctions.js +53 -0
  217. package/package.json +1 -1
package/dist/Widget.js ADDED
@@ -0,0 +1,61 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var _a;
13
+ import { jsx as _jsx } from "react/jsx-runtime";
14
+ import ReactDOM from 'react-dom';
15
+ import App from './App';
16
+ var WIDGET_ID = 'widget:eureka';
17
+ var element = document.getElementById(WIDGET_ID);
18
+ var props = {};
19
+ if (element) {
20
+ var url = element.getAttribute('data-formurl');
21
+ if (url) {
22
+ var splitUrl = url.split('/');
23
+ if (splitUrl.length > 0) {
24
+ props.apiKey = splitUrl[splitUrl.length - 1];
25
+ }
26
+ var domain = (_a = /:\/\/([^\/]+)/.exec(url)) === null || _a === void 0 ? void 0 : _a[1];
27
+ if (domain) {
28
+ var splitDomain = domain.split('.');
29
+ if (splitDomain.length > 0 && splitDomain[0] !== 'forms') {
30
+ props.domain = splitDomain[0];
31
+ }
32
+ }
33
+ }
34
+ var formDataString = element.getAttribute('data-formdata');
35
+ if (formDataString) {
36
+ props.formData = JSON.parse(formDataString);
37
+ }
38
+ var valuesString = element.getAttribute('data-values');
39
+ if (valuesString) {
40
+ props.valuesData = JSON.parse(valuesString);
41
+ }
42
+ var internal = element.getAttribute('data-internal');
43
+ if (internal) {
44
+ props.internal = true;
45
+ }
46
+ var postview = element.getAttribute('data-postview');
47
+ if (postview) {
48
+ props.postview = true;
49
+ }
50
+ var preview = element.getAttribute('data-preview');
51
+ if (preview) {
52
+ props.preview = true;
53
+ }
54
+ var partial = element.getAttribute('data-partial');
55
+ if (partial) {
56
+ props.partial = true;
57
+ }
58
+ // eslint-disable-next-line no-console
59
+ console.log(props);
60
+ }
61
+ ReactDOM.render(_jsx(App, __assign({ isWidget: true }, props)), document.getElementById(WIDGET_ID));
@@ -0,0 +1,9 @@
1
+ export declare enum AYFFormStepTypes {
2
+ AYF_START_MONTH = "AYF_START_MONTH",
3
+ AYF_END_MONTH = "AYF_END_MONTH",
4
+ AYF_YEAR = "AYF_YEAR",
5
+ AYF_BILL_NUM = "AYF_BILL_NUM",
6
+ AYF_CUT_OFF_DATE = "AYF_CUT_OFF_DATE",
7
+ AYF_ICA_CITY = "AYF_ICA_CITY"
8
+ }
9
+ export default AYFFormStepTypes;
@@ -0,0 +1,10 @@
1
+ export var AYFFormStepTypes;
2
+ (function (AYFFormStepTypes) {
3
+ AYFFormStepTypes["AYF_START_MONTH"] = "AYF_START_MONTH";
4
+ AYFFormStepTypes["AYF_END_MONTH"] = "AYF_END_MONTH";
5
+ AYFFormStepTypes["AYF_YEAR"] = "AYF_YEAR";
6
+ AYFFormStepTypes["AYF_BILL_NUM"] = "AYF_BILL_NUM";
7
+ AYFFormStepTypes["AYF_CUT_OFF_DATE"] = "AYF_CUT_OFF_DATE";
8
+ AYFFormStepTypes["AYF_ICA_CITY"] = "AYF_ICA_CITY";
9
+ })(AYFFormStepTypes || (AYFFormStepTypes = {}));
10
+ export default AYFFormStepTypes;
@@ -0,0 +1,21 @@
1
+ declare enum TYPES {
2
+ CBR_MACRO_PROYECTO = "CBR_MACRO_PROYECTO",
3
+ CBR_POSTVENTA = "CBR_POSTVENTA",
4
+ CBR_FIRST_NAME = "CBR_FIRST_NAME",
5
+ CBR_MIDDLE_NAME = "CBR_MIDDLE_NAME",
6
+ CBR_LAST_NAME = "CBR_LAST_NAME",
7
+ CBR_SECOND_LAST_NAME = "CBR_SECOND_LAST_NAME",
8
+ CBR_DOC = "CBR_DOC",
9
+ CBR_CEL = "CBR_CEL",
10
+ CBR_PHONE = "CBR_PHONE",
11
+ CBR_EMAIL = "CBR_EMAIL",
12
+ CBR_PROYECTO = "CBR_PROYECTO",
13
+ CBR_TIPO_DOC = "CBR_TIPO_DOC",
14
+ CBR_TIPO_SOLICITANTE = "CBR_TIPO_SOLICITANTE",
15
+ CBR_INMUEBLE = "CBR_INMUEBLE",
16
+ CBR_TIPO_ESPACIO = "CBR_TIPO_ESPACIO",
17
+ CBR_LOCATIVAS = "CBR_LOCATIVAS",
18
+ CBR_INCIDENCIAS = "CBR_INCIDENCIAS",
19
+ CBR_COMENTARIO = "CBR_COMENTARIO"
20
+ }
21
+ export default TYPES;
@@ -0,0 +1,22 @@
1
+ var TYPES;
2
+ (function (TYPES) {
3
+ TYPES["CBR_MACRO_PROYECTO"] = "CBR_MACRO_PROYECTO";
4
+ TYPES["CBR_POSTVENTA"] = "CBR_POSTVENTA";
5
+ TYPES["CBR_FIRST_NAME"] = "CBR_FIRST_NAME";
6
+ TYPES["CBR_MIDDLE_NAME"] = "CBR_MIDDLE_NAME";
7
+ TYPES["CBR_LAST_NAME"] = "CBR_LAST_NAME";
8
+ TYPES["CBR_SECOND_LAST_NAME"] = "CBR_SECOND_LAST_NAME";
9
+ TYPES["CBR_DOC"] = "CBR_DOC";
10
+ TYPES["CBR_CEL"] = "CBR_CEL";
11
+ TYPES["CBR_PHONE"] = "CBR_PHONE";
12
+ TYPES["CBR_EMAIL"] = "CBR_EMAIL";
13
+ TYPES["CBR_PROYECTO"] = "CBR_PROYECTO";
14
+ TYPES["CBR_TIPO_DOC"] = "CBR_TIPO_DOC";
15
+ TYPES["CBR_TIPO_SOLICITANTE"] = "CBR_TIPO_SOLICITANTE";
16
+ TYPES["CBR_INMUEBLE"] = "CBR_INMUEBLE";
17
+ TYPES["CBR_TIPO_ESPACIO"] = "CBR_TIPO_ESPACIO";
18
+ TYPES["CBR_LOCATIVAS"] = "CBR_LOCATIVAS";
19
+ TYPES["CBR_INCIDENCIAS"] = "CBR_INCIDENCIAS";
20
+ TYPES["CBR_COMENTARIO"] = "CBR_COMENTARIO";
21
+ })(TYPES || (TYPES = {}));
22
+ export default TYPES;
@@ -0,0 +1,3 @@
1
+ export declare const getAcceptedExtensions: () => string;
2
+ declare const extensions: string[];
3
+ export default extensions;
@@ -0,0 +1,68 @@
1
+ export var getAcceptedExtensions = function () {
2
+ var extensionString = extensions.reduce(function (acc, current) { return acc + ',.' + current; });
3
+ extensionString = '.' + extensionString;
4
+ return extensionString;
5
+ };
6
+ var extensions = [
7
+ 'aif',
8
+ 'cda',
9
+ 'mid',
10
+ 'midi',
11
+ 'mp3',
12
+ 'mpa',
13
+ 'ogg',
14
+ 'wav',
15
+ 'wma',
16
+ 'wpl',
17
+ 'ai',
18
+ 'bmp',
19
+ 'gif',
20
+ 'ico',
21
+ 'jpeg',
22
+ 'jpg',
23
+ 'png',
24
+ 'ps',
25
+ 'psd',
26
+ 'svg',
27
+ 'tif',
28
+ 'tiff',
29
+ 'key',
30
+ 'odp',
31
+ 'pps',
32
+ 'ppt',
33
+ 'pptx',
34
+ 'ods',
35
+ 'xls',
36
+ 'xlsm',
37
+ 'xlsx',
38
+ '3g2',
39
+ '3gp',
40
+ 'avi',
41
+ 'flv',
42
+ 'h264',
43
+ 'm4v',
44
+ 'mkv',
45
+ 'mov',
46
+ 'mp4',
47
+ 'mpg',
48
+ 'mpeg',
49
+ 'rm',
50
+ 'swf',
51
+ 'vob',
52
+ 'wmv',
53
+ 'doc',
54
+ 'docx',
55
+ 'docm',
56
+ 'odt',
57
+ 'pdf',
58
+ 'rtf',
59
+ 'tex',
60
+ 'txt',
61
+ 'wpd',
62
+ 'csv',
63
+ 'tex',
64
+ 'msg',
65
+ 'zip',
66
+ 'rar',
67
+ ];
68
+ export default extensions;
@@ -0,0 +1,2 @@
1
+ declare const maxSize = 31457280;
2
+ export default maxSize;
@@ -0,0 +1,2 @@
1
+ var maxSize = 31457280;
2
+ export default maxSize;
@@ -0,0 +1,46 @@
1
+ export declare enum FormTypes {
2
+ STEPPER = "STEPPER",
3
+ COLUMN = "COLUMN"
4
+ }
5
+ export declare enum FormStyleTypes {
6
+ MATERIAL = "MATERIAL"
7
+ }
8
+ export declare enum StepTypes {
9
+ TITLE = "TITLE",
10
+ RATING = "RATING",
11
+ CHECKBOX = "CHECKBOX",
12
+ TEXTAREA = "TEXTAREA",
13
+ DATEPICKER = "DATEPICKER",
14
+ FILEUPLOAD = "FILEUPLOAD",
15
+ TEXTINPUT = "TEXTINPUT",
16
+ SEPARATOR = "SEPARATOR",
17
+ SELECTOR = "SELECTOR",
18
+ CLASSIFIER_SELECTOR = "CLASSIFIER_SELECTOR",
19
+ COLLAPSIBLE = "COLLAPSIBLE",
20
+ MAPPER = "MAPPER",
21
+ ENTITYVALUEPICKER = "ENTITYVALUEPICKER"
22
+ }
23
+ export declare enum OptionTypes {
24
+ DEFAULT = "DEFAULT",
25
+ NESTED = "NESTED",
26
+ ADD_SECTION = "ADD_SECTION"
27
+ }
28
+ export declare enum ClassifierOptionTypes {
29
+ HIDE = "CLASSIFIER_HIDE",
30
+ NESTED = "CLASSIFIER_NESTED"
31
+ }
32
+ export declare enum EntityValueOptionTypes {
33
+ HIDE = "ENTITY_VALUE_HIDE",
34
+ NESTED = "ENTITY_VALUE_NESTED"
35
+ }
36
+ export declare enum RatingTypes {
37
+ SCALE = "SCALE",
38
+ SATISFACTION = "SATISFACTION",
39
+ LIKE = "LIKE"
40
+ }
41
+ export default StepTypes;
42
+ export declare enum MapperStyleTypes {
43
+ PILL = "PILL",
44
+ LIST = "LIST",
45
+ INLINE = "INLINE"
46
+ }
@@ -0,0 +1,54 @@
1
+ export var FormTypes;
2
+ (function (FormTypes) {
3
+ FormTypes["STEPPER"] = "STEPPER";
4
+ FormTypes["COLUMN"] = "COLUMN";
5
+ })(FormTypes || (FormTypes = {}));
6
+ export var FormStyleTypes;
7
+ (function (FormStyleTypes) {
8
+ FormStyleTypes["MATERIAL"] = "MATERIAL";
9
+ })(FormStyleTypes || (FormStyleTypes = {}));
10
+ export var StepTypes;
11
+ (function (StepTypes) {
12
+ StepTypes["TITLE"] = "TITLE";
13
+ StepTypes["RATING"] = "RATING";
14
+ StepTypes["CHECKBOX"] = "CHECKBOX";
15
+ StepTypes["TEXTAREA"] = "TEXTAREA";
16
+ StepTypes["DATEPICKER"] = "DATEPICKER";
17
+ StepTypes["FILEUPLOAD"] = "FILEUPLOAD";
18
+ StepTypes["TEXTINPUT"] = "TEXTINPUT";
19
+ StepTypes["SEPARATOR"] = "SEPARATOR";
20
+ StepTypes["SELECTOR"] = "SELECTOR";
21
+ StepTypes["CLASSIFIER_SELECTOR"] = "CLASSIFIER_SELECTOR";
22
+ StepTypes["COLLAPSIBLE"] = "COLLAPSIBLE";
23
+ StepTypes["MAPPER"] = "MAPPER";
24
+ StepTypes["ENTITYVALUEPICKER"] = "ENTITYVALUEPICKER";
25
+ })(StepTypes || (StepTypes = {}));
26
+ export var OptionTypes;
27
+ (function (OptionTypes) {
28
+ OptionTypes["DEFAULT"] = "DEFAULT";
29
+ OptionTypes["NESTED"] = "NESTED";
30
+ OptionTypes["ADD_SECTION"] = "ADD_SECTION";
31
+ })(OptionTypes || (OptionTypes = {}));
32
+ export var ClassifierOptionTypes;
33
+ (function (ClassifierOptionTypes) {
34
+ ClassifierOptionTypes["HIDE"] = "CLASSIFIER_HIDE";
35
+ ClassifierOptionTypes["NESTED"] = "CLASSIFIER_NESTED";
36
+ })(ClassifierOptionTypes || (ClassifierOptionTypes = {}));
37
+ export var EntityValueOptionTypes;
38
+ (function (EntityValueOptionTypes) {
39
+ EntityValueOptionTypes["HIDE"] = "ENTITY_VALUE_HIDE";
40
+ EntityValueOptionTypes["NESTED"] = "ENTITY_VALUE_NESTED";
41
+ })(EntityValueOptionTypes || (EntityValueOptionTypes = {}));
42
+ export var RatingTypes;
43
+ (function (RatingTypes) {
44
+ RatingTypes["SCALE"] = "SCALE";
45
+ RatingTypes["SATISFACTION"] = "SATISFACTION";
46
+ RatingTypes["LIKE"] = "LIKE";
47
+ })(RatingTypes || (RatingTypes = {}));
48
+ export default StepTypes;
49
+ export var MapperStyleTypes;
50
+ (function (MapperStyleTypes) {
51
+ MapperStyleTypes["PILL"] = "PILL";
52
+ MapperStyleTypes["LIST"] = "LIST";
53
+ MapperStyleTypes["INLINE"] = "INLINE";
54
+ })(MapperStyleTypes || (MapperStyleTypes = {}));
@@ -0,0 +1,10 @@
1
+ export declare enum IconTypes {
2
+ PROJECT = "PROJECT",
3
+ PROPERTY = "PROPERTY",
4
+ SPACE = "SPACE",
5
+ LEAK = "LEAK",
6
+ DOCUMENT = "DOCUMENT",
7
+ HANDSHAKE = "HANDSHAKE",
8
+ GENERIC = "GENERIC"
9
+ }
10
+ export default IconTypes;
@@ -0,0 +1,11 @@
1
+ export var IconTypes;
2
+ (function (IconTypes) {
3
+ IconTypes["PROJECT"] = "PROJECT";
4
+ IconTypes["PROPERTY"] = "PROPERTY";
5
+ IconTypes["SPACE"] = "SPACE";
6
+ IconTypes["LEAK"] = "LEAK";
7
+ IconTypes["DOCUMENT"] = "DOCUMENT";
8
+ IconTypes["HANDSHAKE"] = "HANDSHAKE";
9
+ IconTypes["GENERIC"] = "GENERIC";
10
+ })(IconTypes || (IconTypes = {}));
11
+ export default IconTypes;
@@ -0,0 +1,3 @@
1
+ import { MaterialStyle } from '../@Types/Form';
2
+ declare const InternalFormStyle: MaterialStyle;
3
+ export default InternalFormStyle;
@@ -0,0 +1,16 @@
1
+ import { FormStyleTypes } from './FormStepTypes';
2
+ var InternalFormStyle = {
3
+ type: FormStyleTypes.MATERIAL,
4
+ standAloneBackgroundColor: '#ffffff',
5
+ backgroundColor: '#ffffff',
6
+ stepBackgroundColor: '#ffffff',
7
+ primaryColor: '#3d5a7f',
8
+ secondaryColor: '#98c1d9',
9
+ primaryContrastColor: '#ffffff',
10
+ secondaryContrastColor: '#ee6c4d',
11
+ errorColor: '#cc2936',
12
+ textColor: '#293241',
13
+ outlineColor: '#b8b8b8',
14
+ descriptionTextColor: '#989898',
15
+ };
16
+ export default InternalFormStyle;
@@ -0,0 +1 @@
1
+ export declare const SEED = "EF";
@@ -0,0 +1 @@
1
+ export var SEED = 'EF';
@@ -0,0 +1,5 @@
1
+ export declare function getUploadUrls(files: Array<File>, domain?: string): Promise<(Record<string, any> | string)[]>;
2
+ export declare function postFile(file: File, postInfo: Record<string, any>): Promise<{
3
+ fileName: string;
4
+ S3Key: string;
5
+ }>;
@@ -0,0 +1,92 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
12
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
36
+ };
37
+ import axios from 'axios';
38
+ import axiosInstance from '../AxiosAPI';
39
+ import widgetInstance from '../AxiosWidget';
40
+ export function getUploadUrls(files, domain) {
41
+ var _a;
42
+ return __awaiter(this, void 0, void 0, function () {
43
+ var filesArray, response;
44
+ return __generator(this, function (_b) {
45
+ switch (_b.label) {
46
+ case 0:
47
+ filesArray = files.map(function (file) { return ({
48
+ publicFile: false,
49
+ extension: file.name.split('.').pop(),
50
+ }); });
51
+ if (!domain) return [3 /*break*/, 2];
52
+ return [4 /*yield*/, widgetInstance.post("/uploadfile?idOrganization=".concat(domain), filesArray)];
53
+ case 1:
54
+ response = _b.sent();
55
+ return [3 /*break*/, 4];
56
+ case 2: return [4 /*yield*/, axiosInstance.post('/uploadfile', filesArray)];
57
+ case 3:
58
+ response = _b.sent();
59
+ _b.label = 4;
60
+ case 4: return [2 /*return*/, (_a = response.data) !== null && _a !== void 0 ? _a : undefined];
61
+ }
62
+ });
63
+ });
64
+ }
65
+ export function postFile(file, postInfo) {
66
+ return __awaiter(this, void 0, void 0, function () {
67
+ var formData;
68
+ return __generator(this, function (_a) {
69
+ switch (_a.label) {
70
+ case 0:
71
+ formData = new FormData();
72
+ Object.keys(postInfo.postInfo.fields).forEach(function (key) {
73
+ formData.append(key, postInfo.postInfo.fields[key]);
74
+ });
75
+ // Actual file has to be appended last.
76
+ formData.append('file', file);
77
+ return [4 /*yield*/, axios.post(postInfo.postInfo.url, formData, {
78
+ timeout: 300000,
79
+ headers: {
80
+ 'Content-Type': 'multipart/form-data',
81
+ },
82
+ })];
83
+ case 1:
84
+ _a.sent();
85
+ return [2 /*return*/, {
86
+ fileName: file.name,
87
+ S3Key: postInfo.S3Key,
88
+ }];
89
+ }
90
+ });
91
+ });
92
+ }
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.js ADDED
@@ -0,0 +1,29 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import * as ReactDOM from 'react-dom';
14
+ import App from './App';
15
+ import styles from './index.module.css';
16
+ var urlParams = new URLSearchParams(window.location.search);
17
+ var values = urlParams.get('data-values');
18
+ var dataValues = undefined;
19
+ if (values) {
20
+ try {
21
+ dataValues = JSON.parse(decodeURIComponent(values));
22
+ // eslint-disable-next-line no-console
23
+ console.log('DATA:', dataValues);
24
+ }
25
+ catch (error) {
26
+ console.error('Invalid data-values JSON', error);
27
+ }
28
+ }
29
+ ReactDOM.render(_jsx("div", __assign({ className: styles.eurekaForm }, { children: _jsx(App, { isWidget: false, apiKey: window.location.pathname.replace('/', ''), valuesData: dataValues }) })), document.getElementById('eureka-root'));
@@ -0,0 +1,7 @@
1
+ import EurekaForm, { AppProps as EurekaFormProps } from './App';
2
+ import { StepProps } from './FormComponents/Step/Step';
3
+ import * as StepFunctions from './FormComponents/Step/StepFunctions';
4
+ export type { StepProps, EurekaFormProps };
5
+ export { EurekaForm, StepFunctions };
6
+ export default EurekaForm;
7
+ export { default as ReactFromModule } from 'react';
@@ -0,0 +1,5 @@
1
+ import EurekaForm from './App';
2
+ import * as StepFunctions from './FormComponents/Step/StepFunctions';
3
+ export { EurekaForm, StepFunctions };
4
+ export default EurekaForm;
5
+ export { default as ReactFromModule } from 'react';
@@ -0,0 +1,14 @@
1
+ @import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,600;1,700;1,800;1,900&display=swap');
2
+
3
+ body {
4
+ font-family: 'Nunito';
5
+ }
6
+
7
+ .eurekaForm {
8
+ min-height: 100vh;
9
+ width: 100%;
10
+ scroll-behavior: smooth;
11
+ overflow: hidden;
12
+ overflow-x: hidden;
13
+ overflow-y: auto;
14
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export interface InputIconProps {
3
+ icon: string;
4
+ fill?: string;
5
+ }
6
+ declare function InputIcon({ icon, fill, ...others }: InputIconProps): JSX.Element;
7
+ export default InputIcon;
@@ -0,0 +1,81 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import LeakIcon from '../../Icons/Construction/LeakIcon';
25
+ import ProjectIcon from '../../Icons/Construction/ProjectIcon';
26
+ import PropertyIcon from '../../Icons/Construction/PropertyIcon';
27
+ import SpaceIcon from '../../Icons/Construction/SpaceIcon';
28
+ import DocumentIcon from '../../Icons/DocumentIcon';
29
+ import GenericEntityIcon from '../../Icons/Entities/GenericEntityIcon';
30
+ import HandShakeIcon from '../../Icons/Entities/HandshakeIcon';
31
+ import IconTypes from '../../constants/IconTypes';
32
+ function InputIcon(_a) {
33
+ var icon = _a.icon, _b = _a.fill, fill = _b === void 0 ? '#757575' : _b, others = __rest(_a, ["icon", "fill"]);
34
+ switch (icon) {
35
+ case IconTypes.PROJECT:
36
+ return (_jsx(ProjectIcon, __assign({ style: {
37
+ display: 'flex',
38
+ height: 24,
39
+ width: 24,
40
+ }, fill: fill }, others)));
41
+ case IconTypes.PROPERTY:
42
+ return (_jsx(PropertyIcon, __assign({ style: {
43
+ display: 'flex',
44
+ height: 23,
45
+ width: 23,
46
+ }, fill: fill }, others)));
47
+ case IconTypes.SPACE:
48
+ return (_jsx(SpaceIcon, __assign({ style: {
49
+ display: 'flex',
50
+ height: 23,
51
+ width: 23,
52
+ }, fill: fill }, others)));
53
+ case IconTypes.LEAK:
54
+ return (_jsx(LeakIcon, __assign({ style: {
55
+ display: 'flex',
56
+ height: 23,
57
+ width: 23,
58
+ marginTop: 2,
59
+ }, fill: fill }, others)));
60
+ case IconTypes.DOCUMENT:
61
+ return (_jsx(DocumentIcon, __assign({ style: {
62
+ display: 'flex',
63
+ height: 23,
64
+ width: 23,
65
+ }, fill: fill }, others)));
66
+ case IconTypes.HANDSHAKE:
67
+ return (_jsx(HandShakeIcon, __assign({ style: {
68
+ display: 'flex',
69
+ height: 23,
70
+ width: 23,
71
+ }, fill: fill }, others)));
72
+ case IconTypes.GENERIC:
73
+ default:
74
+ return (_jsx(GenericEntityIcon, __assign({ style: {
75
+ display: 'flex',
76
+ height: 23,
77
+ width: 23,
78
+ }, fill: fill }, others)));
79
+ }
80
+ }
81
+ export default InputIcon;
@@ -0,0 +1,18 @@
1
+ /// <reference types="react" />
2
+ interface LoaderProps {
3
+ /** The color of the loader */
4
+ color?: string;
5
+ /** If the loader should show a curtain behind it */
6
+ curtain?: boolean;
7
+ /** The zIndex of the loader */
8
+ zIndex?: number;
9
+ /** The size of the loader */
10
+ size?: number;
11
+ /** The position of the loader */
12
+ position?: any;
13
+ }
14
+ /**
15
+ * Generic Loader Component with optional curtain.
16
+ */
17
+ declare function Loader({ color, curtain, zIndex, size, position, }: LoaderProps): JSX.Element;
18
+ export default Loader;