intelicoreact 1.5.40 → 1.6.0

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 (350) hide show
  1. package/dist/Atomic/FormElements/ActionAlert/ActionAlert.js +93 -44
  2. package/dist/Atomic/FormElements/ActionAlert/ActionAlert.scss +23 -13
  3. package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.js +43 -38
  4. package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.scss +20 -10
  5. package/dist/Atomic/FormElements/Calendar/Calendar.js +243 -164
  6. package/dist/Atomic/FormElements/Calendar/Calendar.scss +1 -0
  7. package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.js +60 -51
  8. package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.scss +21 -11
  9. package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.js +47 -39
  10. package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.scss +5 -2
  11. package/dist/Atomic/FormElements/Datepicker/Datepicker.js +410 -308
  12. package/dist/Atomic/FormElements/Datepicker/components/Calendar.js +169 -109
  13. package/dist/Atomic/FormElements/Dropdown/Dropdown.js +680 -527
  14. package/dist/Atomic/FormElements/Dropdown/Dropdown.scss +58 -56
  15. package/dist/Atomic/FormElements/Dropdown/components/DropdownLoader.js +28 -15
  16. package/dist/Atomic/FormElements/DropdownLiveSearch/DropdownLiveSearch.js +498 -378
  17. package/dist/Atomic/FormElements/DropdownLiveSearch/DropdownLiveSearch.scss +33 -29
  18. package/dist/Atomic/FormElements/FileLoader/FileLoader.js +103 -70
  19. package/dist/Atomic/FormElements/FileLoader/FileLoader.scss +0 -2
  20. package/dist/Atomic/FormElements/FileLoader/partial/LoadZone.js +138 -91
  21. package/dist/Atomic/FormElements/FileLoader/partial/LoadedContent.js +109 -55
  22. package/dist/Atomic/FormElements/FileLoaderDescription/FileLoaderDescription.js +254 -193
  23. package/dist/Atomic/FormElements/FileLoaderDescription/FileLoaderDescription.scss +19 -16
  24. package/dist/Atomic/FormElements/FileLoaderLocal/FileLoaderLocal.js +156 -140
  25. package/dist/Atomic/FormElements/FileLoaderLocal/FileLoaderLocal.scss +8 -4
  26. package/dist/Atomic/FormElements/FileLoaderLocalGroup/FileLoaderLocalGroup.js +222 -156
  27. package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN.js +158 -114
  28. package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN_old.js +151 -92
  29. package/dist/Atomic/FormElements/Input/Input.js +340 -330
  30. package/dist/Atomic/FormElements/InputCalendar/InputCalendar.js +156 -110
  31. package/dist/Atomic/FormElements/InputColor/InputColor.js +57 -58
  32. package/dist/Atomic/FormElements/InputCurrency/InputCurrency.js +189 -145
  33. package/dist/Atomic/FormElements/InputDateRange/InputDateRange.js +294 -228
  34. package/dist/Atomic/FormElements/InputDateRange/components/DateInput.js +55 -56
  35. package/dist/Atomic/FormElements/InputDateRange/components/Datepicker.js +645 -536
  36. package/dist/Atomic/FormElements/InputDateRange/components/OpenedPart.js +220 -190
  37. package/dist/Atomic/FormElements/InputDateRange/components/SelectItem.js +33 -31
  38. package/dist/Atomic/FormElements/InputDateRange/dependencies.js +247 -169
  39. package/dist/Atomic/FormElements/InputLink/InputLink.js +118 -71
  40. package/dist/Atomic/FormElements/InputMask/InputCarretPosition.js +47 -38
  41. package/dist/Atomic/FormElements/InputMask/InputMask.js +938 -1053
  42. package/dist/Atomic/FormElements/InputMask/config.js +16 -15
  43. package/dist/Atomic/FormElements/InputMask/functions.js +77 -51
  44. package/dist/Atomic/FormElements/InputMask2/InputMask2.js +569 -592
  45. package/dist/Atomic/FormElements/InputMask2/config.js +16 -15
  46. package/dist/Atomic/FormElements/InputMask2/functions.js +77 -51
  47. package/dist/Atomic/FormElements/InputMask3/InputMask3.js +651 -679
  48. package/dist/Atomic/FormElements/InputMask3/config.js +16 -15
  49. package/dist/Atomic/FormElements/InputMask3/functions.js +77 -51
  50. package/dist/Atomic/FormElements/InputWithAction/InputWithAction.js +127 -88
  51. package/dist/Atomic/FormElements/InputsRow/InputsRow.js +182 -111
  52. package/dist/Atomic/FormElements/Label/Label.js +82 -55
  53. package/dist/Atomic/FormElements/Label/Label.scss +18 -8
  54. package/dist/Atomic/FormElements/MobileCalendar/MobileCalendar.js +437 -382
  55. package/dist/Atomic/FormElements/MultiSelect/MultiSelect.js +88 -50
  56. package/dist/Atomic/FormElements/NumericInput/NumericInput.js +314 -264
  57. package/dist/Atomic/FormElements/RadioGroup/RadioGroup.js +93 -51
  58. package/dist/Atomic/FormElements/RadioGroupWithInput/RadioGroupWithInput.js +69 -55
  59. package/dist/Atomic/FormElements/RadioInput/RadioInput.js +51 -45
  60. package/dist/Atomic/FormElements/RadioInput/RadioInput.scss +4 -4
  61. package/dist/Atomic/FormElements/RadioRowSwitcher/RadioRowSwitcher.js +53 -40
  62. package/dist/Atomic/FormElements/RangeCalendar/RangeCalendar.js +169 -120
  63. package/dist/Atomic/FormElements/RangeInputs/RangeInputs.js +195 -141
  64. package/dist/Atomic/FormElements/RangeList/RangeList.js +199 -140
  65. package/dist/Atomic/FormElements/RangeList/RangeList.scss +2 -2
  66. package/dist/Atomic/FormElements/RangeList/partial/AnyOuterClass.scss +0 -3
  67. package/dist/Atomic/FormElements/RangeList/partial/RangeListRow.js +57 -44
  68. package/dist/Atomic/FormElements/RangeSlider/RangeSlider.js +463 -377
  69. package/dist/Atomic/FormElements/RangeSlider2/RangeSlider2.js +760 -759
  70. package/dist/Atomic/FormElements/SwitchableRow/SwitchableRow.js +36 -31
  71. package/dist/Atomic/FormElements/SwitchableRow/SwitchableRow.scss +0 -2
  72. package/dist/Atomic/FormElements/Switcher/Switcher.js +52 -44
  73. package/dist/Atomic/FormElements/Switcher/Switcher.scss +3 -3
  74. package/dist/Atomic/FormElements/SwitcherCheckbox/SwitcherCheckbox.js +43 -44
  75. package/dist/Atomic/FormElements/SwitcherCheckbox/SwitcherCheckbox.scss +0 -2
  76. package/dist/Atomic/FormElements/SwitcherHide/SwitcherHide.js +37 -36
  77. package/dist/Atomic/FormElements/SwitcherHide/SwitcherHide.scss +0 -2
  78. package/dist/Atomic/FormElements/SwitcherRadio/SwitcherRadio.js +93 -56
  79. package/dist/Atomic/FormElements/SwitcherRadio/SwitcherRadio.scss +0 -2
  80. package/dist/Atomic/FormElements/SwitcherRange/SwitcherRange.js +86 -53
  81. package/dist/Atomic/FormElements/SwitcherRange/SwitcherRange.scss +0 -2
  82. package/dist/Atomic/FormElements/SwitcherRangeList/SwitcherRangeList.js +46 -54
  83. package/dist/Atomic/FormElements/SwitcherTagsDropdown/SwitcherTagsDropdown.js +172 -102
  84. package/dist/Atomic/FormElements/SwitcherTagsDropdown/SwitcherTagsDropdown.scss +4 -6
  85. package/dist/Atomic/FormElements/SwitcherTagsDropdown/partial/States.js +209 -154
  86. package/dist/Atomic/FormElements/SwitcherTextarea/SwitcherTextarea.js +59 -56
  87. package/dist/Atomic/FormElements/SwitcherTextarea/SwitcherTextarea.scss +2 -2
  88. package/dist/Atomic/FormElements/TagListToDropdown/TagListToDropdown.js +140 -112
  89. package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.js +1035 -919
  90. package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.scss +153 -116
  91. package/dist/Atomic/FormElements/Text/Text.js +88 -97
  92. package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.js +44 -35
  93. package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.scss +8 -8
  94. package/dist/Atomic/FormElements/Textarea/Textarea.js +102 -64
  95. package/dist/Atomic/FormElements/Textarea/Textarea.scss +4 -8
  96. package/dist/Atomic/FormElements/TieredCheckboxes/TieredCheckboxes.js +172 -133
  97. package/dist/Atomic/FormElements/TieredCheckboxes/partial/AccordionWithCheckbox.js +48 -49
  98. package/dist/Atomic/FormElements/TimeRange/TimeRange.js +114 -63
  99. package/dist/Atomic/FormElements/TimeRange/TimeRange.scss +9 -3
  100. package/dist/Atomic/FormElements/UserContacts/UserContacts.js +179 -122
  101. package/dist/Atomic/FormElements/UserContacts/UserContacts.scss +10 -5
  102. package/dist/Atomic/FormElements/VariantsListRadio/VariantsListRadio.js +101 -65
  103. package/dist/Atomic/FormElements/VariantsListRadio/partials/VariantsListRadioItem.js +80 -71
  104. package/dist/Atomic/FormElements/WidgetPseudoTable/WidgetPseudoTable.js +79 -64
  105. package/dist/Atomic/FormElements/WidgetPseudoTable/WidgetPseudoTable.scss +0 -2
  106. package/dist/Atomic/FormElements/WidgetPseudoTable/partial/constructor.js +42 -34
  107. package/dist/Atomic/FormElements/WidgetWithSwitchableRows/WidgetWithSwitchableRows.js +102 -83
  108. package/dist/Atomic/FormElements/WidgetWithSwitchableRows/WidgetWithSwitchableRows.scss +0 -2
  109. package/dist/Atomic/FormElements/WidgetWithSwitchableRows/partial/constructor.js +42 -35
  110. package/dist/Atomic/Layout/Header/Header.js +148 -80
  111. package/dist/Atomic/Layout/MainMenu/MainMenu.js +213 -133
  112. package/dist/Atomic/Layout/MainMenu/MainMenu.scss +7 -7
  113. package/dist/Atomic/Layout/Spinner/Spinner.js +39 -22
  114. package/dist/Atomic/Layout/Spinner/Spinner.scss +36 -16
  115. package/dist/Atomic/UI/Accordion/Accordion.js +102 -53
  116. package/dist/Atomic/UI/Accordion/Accordion.scss +25 -14
  117. package/dist/Atomic/UI/Accordion/AccordionItem.js +170 -102
  118. package/dist/Atomic/UI/AccordionTable/AccordionTable.js +251 -167
  119. package/dist/Atomic/UI/AccordionText/AccordionText.js +105 -54
  120. package/dist/Atomic/UI/AccordionText/AccordionText.scss +22 -9
  121. package/dist/Atomic/UI/AdvancedTag/AdvTag.js +207 -135
  122. package/dist/Atomic/UI/AdvancedTag/AdvancedTags.js +100 -46
  123. package/dist/Atomic/UI/Alert/Alert.js +116 -63
  124. package/dist/Atomic/UI/Alert/Alert.scss +2 -2
  125. package/dist/Atomic/UI/Arrow/Arrow.js +163 -110
  126. package/dist/Atomic/UI/Box/Box.js +37 -37
  127. package/dist/Atomic/UI/Box/Box.scss +11 -11
  128. package/dist/Atomic/UI/Button/Button.js +43 -41
  129. package/dist/Atomic/UI/ButtonsBar/ButtonsBar.js +61 -67
  130. package/dist/Atomic/UI/Chart/Chart.js +170 -96
  131. package/dist/Atomic/UI/Chart/partial/Chart.constants.js +142 -74
  132. package/dist/Atomic/UI/Chart/partial/ChartTypeSwitcherIcon/ChartTypeSwitcherIcon.js +91 -77
  133. package/dist/Atomic/UI/Chart/partial/datasetSetters.js +120 -117
  134. package/dist/Atomic/UI/Chart/partial/optionsConstructor.js +314 -292
  135. package/dist/Atomic/UI/Chart/partial/optionsSetters.js +54 -39
  136. package/dist/Atomic/UI/Chart/partial/utils.js +56 -33
  137. package/dist/Atomic/UI/CircleProgressBar/CircleProgressBar.js +145 -88
  138. package/dist/Atomic/UI/DateTime/DateTime.js +89 -37
  139. package/dist/Atomic/UI/DateTime/DateTime.scss +2 -2
  140. package/dist/Atomic/UI/DebugContainer/DebugContainer.js +93 -31
  141. package/dist/Atomic/UI/DebugContainer/useDebugContainer.js +66 -18
  142. package/dist/Atomic/UI/DoubleString/DoubleString.js +134 -77
  143. package/dist/Atomic/UI/DoubleString/DoubleString.scss +6 -4
  144. package/dist/Atomic/UI/DynamicIcon/DynamicIcon.js +65 -22
  145. package/dist/Atomic/UI/ExampleChartIntegration/ExampleChartIntegration.js +251 -170
  146. package/dist/Atomic/UI/ExampleChartIntegration/partial/utils.js +109 -84
  147. package/dist/Atomic/UI/Hint/Hint.interface.js +4 -0
  148. package/dist/Atomic/UI/Hint/Hint.js +247 -204
  149. package/dist/Atomic/UI/Hint/Hint.scss +4 -2
  150. package/dist/Atomic/UI/Hint/Hint.stories.js +10 -5
  151. package/dist/Atomic/UI/Hint/Hint.test.js +96 -0
  152. package/dist/Atomic/UI/Hint/index.js +3 -2
  153. package/dist/Atomic/UI/Hint/partials/_utils.js +60 -46
  154. package/dist/Atomic/UI/Modal/Modal.js +171 -172
  155. package/dist/Atomic/UI/Modal/Modal.scss +91 -65
  156. package/dist/Atomic/UI/Modal/Modal.stories.js +1 -1
  157. package/dist/Atomic/UI/Modal/ModalHOC.js +92 -38
  158. package/dist/Atomic/UI/Modal/ModalMobile.scss +26 -14
  159. package/dist/Atomic/UI/Modal/partials/ModalFooter.js +68 -18
  160. package/dist/Atomic/UI/Modal/partials/ModalTitle.js +107 -38
  161. package/dist/Atomic/UI/Modal/partials/useMobileModal.js +130 -153
  162. package/dist/Atomic/UI/MonoAccordion/MonoAccordion.js +118 -62
  163. package/dist/Atomic/UI/MonoAccordion/MonoAccordion.scss +172 -25
  164. package/dist/Atomic/UI/NavLine/NavLine.js +306 -273
  165. package/dist/Atomic/UI/NavLine/NavLine.scss +202 -155
  166. package/dist/Atomic/UI/NavLine/NavLine.test.js +1 -1
  167. package/dist/Atomic/UI/PageTitle/PageTitle.js +73 -52
  168. package/dist/Atomic/UI/PageTitle/PageTitle.scss +52 -14
  169. package/dist/Atomic/UI/PieChart/PieChart.js +105 -42
  170. package/dist/Atomic/UI/PieChart/PieChart.scss +87 -11
  171. package/dist/Atomic/UI/Price/Price.js +27 -20
  172. package/dist/Atomic/UI/PriceRange/PriceRange.js +40 -18
  173. package/dist/Atomic/UI/ProgressLine/ProgressLine.js +92 -73
  174. package/dist/Atomic/UI/ProgressLine/ProgressLine.scss +66 -52
  175. package/dist/Atomic/UI/Status/Status.js +62 -51
  176. package/dist/Atomic/UI/Status/Status.scss +48 -29
  177. package/dist/Atomic/UI/Table/Partials/TdCell.js +126 -88
  178. package/dist/Atomic/UI/Table/Partials/TdHeader.js +58 -39
  179. package/dist/Atomic/UI/Table/Partials/TdRow.js +124 -73
  180. package/dist/Atomic/UI/Table/Partials/TdTitle.js +113 -45
  181. package/dist/Atomic/UI/Table/Table.js +61 -43
  182. package/dist/Atomic/UI/Table/Table.scss +0 -3
  183. package/dist/Atomic/UI/Table/TdTypes/TdActions.js +108 -64
  184. package/dist/Atomic/UI/Table/TdTypes/TdPriority.js +44 -31
  185. package/dist/Atomic/UI/Table/TdTypes/TdRange.js +24 -10
  186. package/dist/Atomic/UI/Table/TdTypes/TdWeight.js +59 -48
  187. package/dist/Atomic/UI/Tag/Tag.js +157 -113
  188. package/dist/Atomic/UI/Tag/Tag.scss +104 -47
  189. package/dist/Atomic/UI/TagList/TagList.js +223 -179
  190. package/dist/Atomic/UI/TagList/TagList.scss +13 -9
  191. package/dist/Atomic/UI/UserBox/UserBox.js +80 -56
  192. package/dist/Atomic/UI/UserBox/UserBox.scss +45 -21
  193. package/dist/Atomic/UI/UserBox/UserBox.test.js +2 -2
  194. package/dist/Atomic/UI/WizardStepper/constructor.js +127 -89
  195. package/dist/Atomic/UI/WizardStepper/index.js +14 -6
  196. package/dist/Atomic/UI/WizardStepper/ui/StateIcon/StateIcon.js +53 -51
  197. package/dist/Atomic/UI/WizardStepper/ui/StateIcon/StateIcon.scss +11 -7
  198. package/dist/Atomic/UI/WizardStepper/ui/StateIcon/index.js +9 -5
  199. package/dist/Atomic/UI/WizardStepper/ui/StepRow/StepRow.js +84 -67
  200. package/dist/Atomic/UI/WizardStepper/ui/StepRow/StepRow.scss +13 -7
  201. package/dist/Atomic/UI/WizardStepper/ui/StepRow/index.js +14 -6
  202. package/dist/Atomic/UI/WizardStepper/ui/StepWrapper/StepWrapper.js +50 -45
  203. package/dist/Atomic/UI/WizardStepper/ui/StepWrapper/StepWrapper.scss +24 -18
  204. package/dist/Atomic/UI/WizardStepper/ui/StepWrapper/index.js +14 -6
  205. package/dist/Atomic/UI/WizardStepper/ui/icons.js +138 -106
  206. package/dist/Atomic/UI/WizardStepper/ui/index.js +14 -6
  207. package/dist/Classes/AbortableFetch.js +394 -326
  208. package/dist/Classes/AnimatedHandler.js +31 -44
  209. package/dist/Classes/RESTAPI/index.js +131 -173
  210. package/dist/Classes/RESTAPI/partials/AbortableFetch.js +399 -334
  211. package/dist/Classes/RESTAPI/partials/ApiBase.js +30 -30
  212. package/dist/Classes/RESTAPI/partials/ApiRequestCreators.js +107 -88
  213. package/dist/Classes/RESTAPI/partials/ApiUtils.js +144 -166
  214. package/dist/Classes/RESTAPI/partials/CredentialsProcessing.js +180 -204
  215. package/dist/Classes/RESTAPI/partials/Utils.js +80 -83
  216. package/dist/Classes/RESTAPI/partials/_outerDependencies.js +16 -8
  217. package/dist/Classes/RESTAPI/partials/_utils.js +139 -125
  218. package/dist/Constants/index.constants.js +102 -22
  219. package/dist/Functions/Portal.js +67 -23
  220. package/dist/Functions/customEventListener.js +48 -50
  221. package/dist/Functions/dateTime.js +130 -177
  222. package/dist/Functions/fieldValueFormatters.js +275 -346
  223. package/dist/Functions/guards/assertions.js +294 -0
  224. package/dist/Functions/guards/safeValue.js +75 -0
  225. package/dist/Functions/guards/typeGuards.js +374 -0
  226. package/dist/Functions/hooks/useFormFieldsChangesManager.js +125 -96
  227. package/dist/Functions/locale/createTranslator.js +29 -27
  228. package/dist/Functions/operations.js +129 -102
  229. package/dist/Functions/presets/inputMaskPresets.js +88 -99
  230. package/dist/Functions/presets/inputPresets.js +41 -35
  231. package/dist/Functions/presets/mobileKeyboardTypesPresets.js +30 -49
  232. package/dist/Functions/schemas.js +78 -20
  233. package/dist/Functions/useBodyScrollLock.js +21 -15
  234. package/dist/Functions/useClickOutside.js +21 -16
  235. package/dist/Functions/useDebounce.js +62 -21
  236. package/dist/Functions/useFieldFocus.js +83 -79
  237. package/dist/Functions/useFormTools/form-drivers/ArrayWithObjects.js +39 -46
  238. package/dist/Functions/useFormTools/form-drivers/ObjectWithIterableObjects.js +132 -137
  239. package/dist/Functions/useFormTools/form-drivers/ObjectWithNamedKeyObjects.js +63 -73
  240. package/dist/Functions/useFormTools/functions/General.js +117 -129
  241. package/dist/Functions/useFormTools/functions/RenderFields.js +75 -85
  242. package/dist/Functions/useFormTools/functions/usePrevious.js +16 -10
  243. package/dist/Functions/useFormTools/index.js +647 -709
  244. package/dist/Functions/useInputHighlightError.js +104 -53
  245. package/dist/Functions/useKeyPress/useHandleKeyPress.js +40 -33
  246. package/dist/Functions/useKeyPress/useKeyPress.js +48 -39
  247. package/dist/Functions/useLocalStorage.js +38 -31
  248. package/dist/Functions/useLocationParams.js +31 -24
  249. package/dist/Functions/useMediaQuery.js +14 -10
  250. package/dist/Functions/useMetaInfo.js +45 -35
  251. package/dist/Functions/useMouseUpOutside.js +21 -15
  252. package/dist/Functions/useOnlineStatus.js +25 -21
  253. package/dist/Functions/usePasswordChecker.js +183 -111
  254. package/dist/Functions/usePrevious.js +16 -10
  255. package/dist/Functions/useResize.js +32 -28
  256. package/dist/Functions/useScrollTo.js +26 -16
  257. package/dist/Functions/useToggle.js +20 -16
  258. package/dist/Functions/utils.js +493 -469
  259. package/dist/Molecular/CustomIcons/components/AffiliateNetworks.js +75 -28
  260. package/dist/Molecular/CustomIcons/components/AlertCircle.js +77 -28
  261. package/dist/Molecular/CustomIcons/components/AppStore.js +84 -32
  262. package/dist/Molecular/CustomIcons/components/Arrow.js +93 -38
  263. package/dist/Molecular/CustomIcons/components/ArrowDown.js +63 -20
  264. package/dist/Molecular/CustomIcons/components/ArrowLeft.js +71 -23
  265. package/dist/Molecular/CustomIcons/components/ArrowRight.js +71 -23
  266. package/dist/Molecular/CustomIcons/components/ArrowUp.js +63 -20
  267. package/dist/Molecular/CustomIcons/components/Bell.js +61 -18
  268. package/dist/Molecular/CustomIcons/components/Button.js +61 -18
  269. package/dist/Molecular/CustomIcons/components/Campaigns.js +62 -19
  270. package/dist/Molecular/CustomIcons/components/Check.js +62 -19
  271. package/dist/Molecular/CustomIcons/components/Check2.js +61 -18
  272. package/dist/Molecular/CustomIcons/components/ChevronDown.js +61 -18
  273. package/dist/Molecular/CustomIcons/components/ChevronDownDisabled.js +61 -18
  274. package/dist/Molecular/CustomIcons/components/ChevronLeft.js +61 -18
  275. package/dist/Molecular/CustomIcons/components/ChevronRight.js +61 -18
  276. package/dist/Molecular/CustomIcons/components/ChevronUp.js +61 -18
  277. package/dist/Molecular/CustomIcons/components/ChevronUpDown.js +81 -33
  278. package/dist/Molecular/CustomIcons/components/Close.js +64 -20
  279. package/dist/Molecular/CustomIcons/components/ColumnsOrder.js +95 -45
  280. package/dist/Molecular/CustomIcons/components/Delete.js +62 -19
  281. package/dist/Molecular/CustomIcons/components/Edit.js +61 -18
  282. package/dist/Molecular/CustomIcons/components/Email.js +87 -36
  283. package/dist/Molecular/CustomIcons/components/FinturfLogo.js +82 -26
  284. package/dist/Molecular/CustomIcons/components/FinturfLogo2.js +83 -34
  285. package/dist/Molecular/CustomIcons/components/Flows.js +61 -18
  286. package/dist/Molecular/CustomIcons/components/Gift.js +71 -23
  287. package/dist/Molecular/CustomIcons/components/GoogleAuth.js +84 -32
  288. package/dist/Molecular/CustomIcons/components/GooglePlay.js +84 -32
  289. package/dist/Molecular/CustomIcons/components/HelpCircle.js +67 -21
  290. package/dist/Molecular/CustomIcons/components/HelpCircle2.js +68 -22
  291. package/dist/Molecular/CustomIcons/components/HelpCircleFilled.js +67 -21
  292. package/dist/Molecular/CustomIcons/components/Home.js +67 -21
  293. package/dist/Molecular/CustomIcons/components/Home2.js +70 -24
  294. package/dist/Molecular/CustomIcons/components/Key.js +69 -26
  295. package/dist/Molecular/CustomIcons/components/Landers.js +68 -22
  296. package/dist/Molecular/CustomIcons/components/Lock.js +61 -18
  297. package/dist/Molecular/CustomIcons/components/Mail.js +75 -26
  298. package/dist/Molecular/CustomIcons/components/Mastercard.js +128 -68
  299. package/dist/Molecular/CustomIcons/components/Minus.js +79 -31
  300. package/dist/Molecular/CustomIcons/components/Offers.js +62 -19
  301. package/dist/Molecular/CustomIcons/components/Pause.js +79 -31
  302. package/dist/Molecular/CustomIcons/components/PayPal.js +96 -45
  303. package/dist/Molecular/CustomIcons/components/PayPalLightLarge.js +81 -32
  304. package/dist/Molecular/CustomIcons/components/Phone.js +81 -33
  305. package/dist/Molecular/CustomIcons/components/Play.js +79 -31
  306. package/dist/Molecular/CustomIcons/components/Plus.js +79 -31
  307. package/dist/Molecular/CustomIcons/components/Profile.js +69 -23
  308. package/dist/Molecular/CustomIcons/components/QRCode.js +85 -33
  309. package/dist/Molecular/CustomIcons/components/Rectangle.js +61 -18
  310. package/dist/Molecular/CustomIcons/components/Revert.js +67 -21
  311. package/dist/Molecular/CustomIcons/components/Star.js +60 -17
  312. package/dist/Molecular/CustomIcons/components/Star2.js +62 -19
  313. package/dist/Molecular/CustomIcons/components/TrafficSources.js +68 -21
  314. package/dist/Molecular/CustomIcons/components/Trash.js +61 -18
  315. package/dist/Molecular/CustomIcons/components/TrashRed.js +61 -18
  316. package/dist/Molecular/CustomIcons/components/Triggers.js +61 -18
  317. package/dist/Molecular/CustomIcons/components/User.js +71 -23
  318. package/dist/Molecular/CustomIcons/components/Visa.js +88 -34
  319. package/dist/Molecular/CustomIcons/components/X.js +61 -18
  320. package/dist/Molecular/CustomIcons/index.js +76 -674
  321. package/dist/Molecular/FormElement/FormElement.js +44 -41
  322. package/dist/Molecular/FormWithDependOn/FormWithDependOn.js +179 -161
  323. package/dist/Molecular/FormWithDependOn/partials/_utils.js +49 -56
  324. package/dist/Molecular/InputAddress/InputAddress.js +496 -421
  325. package/dist/Molecular/InputAddress/InputAddress.scss +12 -14
  326. package/dist/Molecular/InputPassword/InputPassword.js +99 -47
  327. package/dist/index.js +11 -8
  328. package/dist/scss/_mixins.scss +2 -2
  329. package/dist/scss/_vars.scss +1 -2
  330. package/dist/scss/main.scss +4 -3
  331. package/dist/types/declaration/ArrayElement.d.js +4 -0
  332. package/dist/types/declaration/AsyncReturnType.d.js +4 -0
  333. package/dist/types/declaration/DeepPartial.d.js +4 -0
  334. package/dist/types/declaration/DeepReadonly.d.js +4 -0
  335. package/dist/types/declaration/DeepRequired.d.js +4 -0
  336. package/dist/types/declaration/Flatten.d.js +4 -0
  337. package/dist/types/declaration/FunctionType.d.js +4 -0
  338. package/dist/types/declaration/If.d.js +4 -0
  339. package/dist/types/declaration/KeysType.d.js +4 -0
  340. package/dist/types/declaration/NonNullableType.d.js +4 -0
  341. package/dist/types/declaration/ObjectType.d.js +4 -0
  342. package/dist/types/declaration/OnlyObjectKeys.d.js +4 -0
  343. package/dist/types/declaration/PrettyPrint.d.js +31 -0
  344. package/dist/types/declaration/RequiredFields.d.js +4 -0
  345. package/dist/types/declaration/TupleType.d.js +4 -0
  346. package/dist/types/declaration/ValuesType.d.js +4 -0
  347. package/package.json +18 -21
  348. package/dist/Atomic/UI/NavLine/Tabs.js +0 -115
  349. package/dist/Functions/animatingFunctions/getAnimatedHandler.js +0 -1
  350. package/dist/Functions/useIsMobile.js +0 -26
@@ -1,139 +1,127 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
5
4
  });
6
- exports.default = General;
7
- function General() {
8
- let {
9
- form,
10
- FormFields = []
11
- } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
12
- const joinData = function () {
13
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
14
- args[_key] = arguments[_key];
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return General;
15
9
  }
16
- const [mainArg] = args;
17
- const MainArgProto = Array.isArray(mainArg) ? "Array" : typeof mainArg === "object" ? "Object" : undefined;
18
- const template = Array.isArray(mainArg) ? [] : typeof mainArg === "object" ? {} : null;
19
- if (!template) return undefined;
20
- return args.reduce((result, item) => {
21
- if (MainArgProto === "Array") {
22
- if (Array.isArray(item)) {
23
- return [...result, ...item];
10
+ });
11
+ function General({ form, FormFields = [] } = {}) {
12
+ const joinData = (...args)=>{
13
+ const [mainArg] = args;
14
+ const MainArgProto = Array.isArray(mainArg) ? "Array" : typeof mainArg === "object" ? "Object" : undefined;
15
+ const template = Array.isArray(mainArg) ? [] : typeof mainArg === "object" ? {} : null;
16
+ if (!template) return undefined;
17
+ return args.reduce((result, item)=>{
18
+ if (MainArgProto === "Array") {
19
+ if (Array.isArray(item)) {
20
+ return [
21
+ ...result,
22
+ ...item
23
+ ];
24
+ } else {
25
+ return [
26
+ ...result,
27
+ item
28
+ ];
29
+ }
30
+ } else if (MainArgProto === "Object") {
31
+ return {
32
+ ...result,
33
+ ...item
34
+ };
35
+ } else {
36
+ return template;
37
+ }
38
+ }, template);
39
+ };
40
+ const getFieldData = (key)=>{
41
+ if (Array.isArray(FormFields)) {
42
+ if (FormFields[key]) {
43
+ return {
44
+ ...FormFields[key]
45
+ };
46
+ } else {
47
+ return {
48
+ ...FormFields.find((f)=>f.key === key)
49
+ };
50
+ }
51
+ } else if (typeof FormFields === "object") {
52
+ return {
53
+ ...FormFields[key]
54
+ } || {
55
+ ...Object.values(FormFields).find((f)=>f.key === key)
56
+ };
24
57
  } else {
25
- return [...result, item];
58
+ return undefined;
26
59
  }
27
- } else if (MainArgProto === "Object") {
28
- return {
29
- ...result,
30
- ...item
31
- };
32
- } else {
33
- return template;
34
- }
35
- }, template);
36
- };
37
- const getFieldData = key => {
38
- if (Array.isArray(FormFields)) {
39
- if (FormFields[key]) {
40
- return {
41
- ...FormFields[key]
42
- };
43
- } else {
44
- return {
45
- ...FormFields.find(f => f.key === key)
60
+ };
61
+ const getFormFields = (argForm = form)=>{
62
+ return (argForm === null || argForm === void 0 ? void 0 : argForm.fields) || argForm;
63
+ };
64
+ const getFormFieldsAsArray = (fields)=>{
65
+ if (Array.isArray(fields)) return fields;
66
+ if (typeof fields === "object") {
67
+ return Object.values(fields);
68
+ }
69
+ return fields;
70
+ };
71
+ const getFormFieldsKeys = (fields = getFormFields())=>{
72
+ if (Array.isArray(fields)) return fields.map(({ key })=>key);
73
+ if (typeof fields === "object") {
74
+ return Object.values(fields).map(({ key })=>key);
75
+ }
76
+ return fields;
77
+ };
78
+ const popFormField = (fields, key)=>{
79
+ const result = {
80
+ item: undefined,
81
+ itemIndex: undefined
46
82
  };
47
- }
48
- } else if (typeof FormFields === "object") {
49
- return {
50
- ...FormFields[key]
51
- } || {
52
- ...Object.values(FormFields).find(f => f.key === key)
53
- };
54
- } else {
55
- return undefined;
56
- }
57
- };
58
- const getFormFields = function () {
59
- let argForm = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : form;
60
- return argForm?.fields || argForm;
61
- };
62
- const getFormFieldsAsArray = fields => {
63
- if (Array.isArray(fields)) return fields;
64
- if (typeof fields === "object") {
65
- return Object.values(fields);
66
- }
67
- return fields;
68
- };
69
- const getFormFieldsKeys = function () {
70
- let fields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getFormFields();
71
- if (Array.isArray(fields)) return fields.map(_ref => {
72
- let {
73
- key
74
- } = _ref;
75
- return key;
76
- });
77
- if (typeof fields === "object") {
78
- return Object.values(fields).map(_ref2 => {
79
- let {
80
- key
81
- } = _ref2;
82
- return key;
83
- });
84
- }
85
- return fields;
86
- };
87
- const popFormField = (fields, key) => {
88
- const result = {
89
- item: undefined,
90
- itemIndex: undefined
83
+ if (Array.isArray(fields)) {
84
+ result.item = fields === null || fields === void 0 ? void 0 : fields.find((f)=>f.key === key);
85
+ result.itemIndex = result.item ? fields.findIndex((f)=>f.key === key) : fields.length;
86
+ } else if (typeof fields === "object") {
87
+ result.item = fields[key] || Object.values(fields).find((f)=>f.key === key);
88
+ result.itemIndex = result.item ? fields[key] ? key : Object.values(fields).findIndex((f)=>f.key === key) : key;
89
+ }
90
+ return result;
91
91
  };
92
- if (Array.isArray(fields)) {
93
- result.item = fields?.find(f => f.key === key);
94
- result.itemIndex = result.item ? fields.findIndex(f => f.key === key) : fields.length;
95
- } else if (typeof fields === "object") {
96
- result.item = fields[key] || Object.values(fields).find(f => f.key === key);
97
- result.itemIndex = result.item ? fields[key] ? key : Object.values(fields).findIndex(f => f.key === key) : key;
98
- }
99
- return result;
100
- };
101
- const updateFormField = (fields, data, key) => {
102
- const isFunction = typeof data === "function";
103
- //KEY is NULLable
104
- if (!key) {
105
- return data.key ? Object.values(fields).reduce((result, field, i) => {
106
- const index = fields[field.key] ? field.key : i;
107
- return {
108
- ...result,
109
- [index]: data.key === field.key ? isFunction ? data(field) : data : field
92
+ const updateFormField = (fields, data, key)=>{
93
+ const isFunction = typeof data === "function";
94
+ //KEY is NULLable
95
+ if (!key) {
96
+ return data.key ? Object.values(fields).reduce((result, field, i)=>{
97
+ const index = fields[field.key] ? field.key : i;
98
+ return {
99
+ ...result,
100
+ [index]: data.key === field.key ? isFunction ? data(field) : data : field
101
+ };
102
+ }, {}) : {
103
+ ...fields,
104
+ [fields.length || 0]: isFunction ? data({}) : data
105
+ };
106
+ }
107
+ const { item: field = data, itemIndex } = popFormField(fields, key);
108
+ fields[itemIndex] = isFunction ? data(field || {}) : {
109
+ ...field,
110
+ ...data
110
111
  };
111
- }, {}) : {
112
- ...fields,
113
- [fields.length || 0]: isFunction ? data({}) : data
114
- };
115
- }
116
- const {
117
- item: field = data,
118
- itemIndex
119
- } = popFormField(fields, key);
120
- fields[itemIndex] = isFunction ? data(field || {}) : {
121
- ...field,
122
- ...data
112
+ return fields;
113
+ };
114
+ const getFieldClassName = (key, type)=>{
115
+ return `form-${type}_field-${key}`;
116
+ };
117
+ return {
118
+ joinData,
119
+ getFieldData,
120
+ popFormField,
121
+ updateFormField,
122
+ getFormFields,
123
+ getFormFieldsAsArray,
124
+ getFieldClassName,
125
+ getFormFieldsKeys
123
126
  };
124
- return fields;
125
- };
126
- const getFieldClassName = (key, type) => {
127
- return `form-${type}_field-${key}`;
128
- };
129
- return {
130
- joinData,
131
- getFieldData,
132
- popFormField,
133
- updateFormField,
134
- getFormFields,
135
- getFormFieldsAsArray,
136
- getFieldClassName,
137
- getFormFieldsKeys
138
- };
139
- }
127
+ }
@@ -1,93 +1,83 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
5
4
  });
6
- exports.default = RenderFields;
7
- const defaultRenderFieldComponent = () => {
8
- // eslint-disable-next-line no-console
9
- console.error("RenderFields: RenderFieldComponent Property is not recieved!");
10
- return null;
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return RenderFields;
9
+ }
10
+ });
11
+ const _jsxruntime = require("react/jsx-runtime");
12
+ const defaultRenderFieldComponent = ()=>{
13
+ // eslint-disable-next-line no-console
14
+ console.error("RenderFields: RenderFieldComponent Property is not recieved!");
15
+ return null;
11
16
  };
12
- const defaultFormDataDriver = () => {
13
- // eslint-disable-next-line no-console
14
- console.error("RenderFields: FormDataDriver Property is not recieved!");
15
- return null;
17
+ const defaultFormDataDriver = ()=>{
18
+ // eslint-disable-next-line no-console
19
+ console.error("RenderFields: FormDataDriver Property is not recieved!");
20
+ return null;
16
21
  };
17
- const defaultOnFieldChange = () => {
18
- // eslint-disable-next-line no-console
19
- console.warn("RenderFields: Be careful, onFieldChange handler is not recieved!");
20
- return null;
22
+ const defaultOnFieldChange = ()=>{
23
+ // eslint-disable-next-line no-console
24
+ console.warn("RenderFields: Be careful, onFieldChange handler is not recieved!");
25
+ return null;
21
26
  };
22
- const defaultOnFieldBlur = () => {
23
- // eslint-disable-next-line no-console
24
- console.warn("RenderFields: Be careful, defaultOnFieldBlur handler is not recieved!");
25
- return null;
27
+ const defaultOnFieldBlur = ()=>{
28
+ // eslint-disable-next-line no-console
29
+ console.warn("RenderFields: Be careful, defaultOnFieldBlur handler is not recieved!");
30
+ return null;
26
31
  };
27
- function RenderFields() {
28
- let {
29
- form,
30
- fields,
31
- cols = 1,
32
- FormDataDriver = defaultFormDataDriver,
33
- RenderFieldComponent = defaultRenderFieldComponent,
34
- onFieldChange = defaultOnFieldChange,
35
- onFieldBlur = defaultOnFieldBlur
36
- } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
37
- const maxColumns = 6;
38
- const maxWidth = 12;
39
- const {
40
- getFormField
41
- } = FormDataDriver({
42
- form
43
- });
44
- const getColumnsQty = () => {
45
- return cols > maxColumns ? maxColumns : cols;
46
- };
47
- const renderFormField = key => {
48
- try {
49
- const field = {
50
- ...getFormField(key),
51
- key
52
- };
53
- const {
54
- wrapperRef
55
- } = field;
56
- return /*#__PURE__*/React.createElement("div", {
57
- key: `render-field-wrapper-${key}`,
58
- id: `render-field-wrapper-${key}`,
59
- ref: wrapperRef ? typeof wrapperRef === "function" ? node => wrapperRef(node, key) : wrapperRef : null
60
- }, /*#__PURE__*/React.createElement(RenderFieldComponent, {
61
- key: key,
62
- field: field,
63
- onChange: value => onFieldChange(key, value),
64
- onBlur: function () {
65
- return onFieldBlur(...arguments);
66
- }
67
- }));
68
- } catch (e) {
69
- return null;
70
- }
71
- };
72
- const renderSingleColumn = () => {
73
- return fields.map(renderFormField);
74
- };
75
- const renderSplitColumns = () => {
76
- const fieldsLen = fields?.length || 0;
77
- const columnsQty = getColumnsQty() > fieldsLen ? fieldsLen : getColumnsQty();
78
- if (!columnsQty) return null;
79
- const parts = new Array(columnsQty).fill([]).map((v, i) => {
80
- const startIndex = fieldsLen / columnsQty * i;
81
- const endIndex = startIndex + fieldsLen / columnsQty;
82
- return fields.slice(startIndex, endIndex);
32
+ function RenderFields({ form, fields, cols = 1, FormDataDriver = defaultFormDataDriver, RenderFieldComponent = defaultRenderFieldComponent, onFieldChange = defaultOnFieldChange, onFieldBlur = defaultOnFieldBlur } = {}) {
33
+ const maxColumns = 6;
34
+ const maxWidth = 12;
35
+ const { getFormField } = FormDataDriver({
36
+ form
83
37
  });
84
- return /*#__PURE__*/React.createElement("div", {
85
- className: "row"
86
- }, parts.map((part, i) => /*#__PURE__*/React.createElement("div", {
87
- key: `render-fields-row-${i}`,
88
- className: `col-12 col-lg-${parseInt(maxWidth / columnsQty, 10)}`
89
- }, part.map(renderFormField))));
90
- };
91
- const render = cols === 1 ? renderSingleColumn : renderSplitColumns;
92
- return render();
93
- }
38
+ const getColumnsQty = ()=>{
39
+ return cols > maxColumns ? maxColumns : cols;
40
+ };
41
+ const renderFormField = (key)=>{
42
+ try {
43
+ const field = {
44
+ ...getFormField(key),
45
+ key
46
+ };
47
+ const { wrapperRef } = field;
48
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
49
+ id: `render-field-wrapper-${key}`,
50
+ ref: wrapperRef ? typeof wrapperRef === "function" ? (node)=>wrapperRef(node, key) : wrapperRef : null,
51
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(RenderFieldComponent, {
52
+ field: field,
53
+ onChange: (value)=>onFieldChange(key, value),
54
+ onBlur: (...args)=>onFieldBlur(...args)
55
+ }, key)
56
+ }, `render-field-wrapper-${key}`);
57
+ } catch (e) {
58
+ return null;
59
+ }
60
+ };
61
+ const renderSingleColumn = ()=>{
62
+ return fields.map(renderFormField);
63
+ };
64
+ const renderSplitColumns = ()=>{
65
+ const fieldsLen = (fields === null || fields === void 0 ? void 0 : fields.length) || 0;
66
+ const columnsQty = getColumnsQty() > fieldsLen ? fieldsLen : getColumnsQty();
67
+ if (!columnsQty) return null;
68
+ const parts = new Array(columnsQty).fill([]).map((v, i)=>{
69
+ const startIndex = fieldsLen / columnsQty * i;
70
+ const endIndex = startIndex + fieldsLen / columnsQty;
71
+ return fields.slice(startIndex, endIndex);
72
+ });
73
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
74
+ className: "row",
75
+ children: parts.map((part, i)=>/*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
76
+ className: `col-12 col-lg-${parseInt(maxWidth / columnsQty, 10)}`,
77
+ children: part.map(renderFormField)
78
+ }, `render-fields-row-${i}`))
79
+ });
80
+ };
81
+ const render = cols === 1 ? renderSingleColumn : renderSplitColumns;
82
+ return render();
83
+ }
@@ -1,15 +1,21 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
5
4
  });
6
- exports.default = void 0;
7
- var _react = require("react");
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return _default;
9
+ }
10
+ });
11
+ const _react = require("react");
8
12
  function usePrevious(value) {
9
- const ref = (0, _react.useRef)();
10
- (0, _react.useEffect)(() => {
11
- ref.current = value;
12
- }, [value]);
13
- return ref.current;
13
+ const ref = (0, _react.useRef)();
14
+ (0, _react.useEffect)(()=>{
15
+ ref.current = value;
16
+ }, [
17
+ value
18
+ ]);
19
+ return ref.current;
14
20
  }
15
- var _default = exports.default = usePrevious;
21
+ const _default = usePrevious;