intelicoreact 1.6.2 → 1.6.3

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 (467) hide show
  1. package/dist/ArrayElement.d.ts +13 -0
  2. package/dist/AsyncReturnType.d.ts +17 -0
  3. package/dist/Atomic/FormElements/ActionAlert/ActionAlert.interface.js +4 -1
  4. package/dist/Atomic/FormElements/ActionAlert/ActionAlert.js +69 -14
  5. package/dist/Atomic/FormElements/ActionAlert/ActionAlert.stories.js +30 -7
  6. package/dist/Atomic/FormElements/ActionAlert/ActionAlert.test.js +43 -34
  7. package/dist/Atomic/FormElements/ActionAlert/index.js +17 -2
  8. package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.interface.js +4 -1
  9. package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.js +26 -11
  10. package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.stories.js +35 -12
  11. package/dist/Atomic/FormElements/AdvancedStatus/AdvancedStatus.test.js +29 -20
  12. package/dist/Atomic/FormElements/AdvancedStatus/index.js +17 -2
  13. package/dist/Atomic/FormElements/Calendar/Calendar.js +109 -53
  14. package/dist/Atomic/FormElements/Calendar/Calendar.props.js +4 -1
  15. package/dist/Atomic/FormElements/Calendar/Calendar.stories.js +74 -10
  16. package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.interface.js +4 -1
  17. package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.js +27 -12
  18. package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.stories.js +39 -16
  19. package/dist/Atomic/FormElements/CheckboxInput/CheckboxInput.test.js +46 -37
  20. package/dist/Atomic/FormElements/CheckboxInput/index.js +17 -2
  21. package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.interface.js +4 -1
  22. package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.js +24 -9
  23. package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.stories.js +33 -10
  24. package/dist/Atomic/FormElements/CheckboxesLine/CheckboxesLine.test.js +34 -25
  25. package/dist/Atomic/FormElements/CheckboxesLine/index.js +17 -2
  26. package/dist/Atomic/FormElements/Datepicker/Datepicker.js +160 -104
  27. package/dist/Atomic/FormElements/Datepicker/Datepicker.stories.js +31 -8
  28. package/dist/Atomic/FormElements/Datepicker/components/Calendar.js +89 -33
  29. package/dist/Atomic/FormElements/Dropdown/Dropdown.js +154 -98
  30. package/dist/Atomic/FormElements/Dropdown/Dropdown.stories.js +82 -18
  31. package/dist/Atomic/FormElements/Dropdown/components/DropdownLoader.js +25 -10
  32. package/dist/Atomic/FormElements/DropdownLiveSearch/DropdownLiveSearch.js +138 -82
  33. package/dist/Atomic/FormElements/DropdownLiveSearch/DropdownLiveSearch.stories.js +79 -15
  34. package/dist/Atomic/FormElements/FileLoader/FileLoader.js +69 -13
  35. package/dist/Atomic/FormElements/FileLoader/FileLoader.stories.js +86 -22
  36. package/dist/Atomic/FormElements/FileLoader/partial/LoadZone.js +69 -13
  37. package/dist/Atomic/FormElements/FileLoader/partial/LoadedContent.js +71 -15
  38. package/dist/Atomic/FormElements/FileLoaderDescription/FileLoaderDescription.js +91 -35
  39. package/dist/Atomic/FormElements/FileLoaderDescription/FileLoaderDescription.stories.js +82 -18
  40. package/dist/Atomic/FormElements/FileLoaderLocal/FileLoaderLocal.js +40 -25
  41. package/dist/Atomic/FormElements/FileLoaderLocal/FileLoaderLocal.stories.js +79 -15
  42. package/dist/Atomic/FormElements/FileLoaderLocalGroup/FileLoaderLocalGroup.js +78 -22
  43. package/dist/Atomic/FormElements/FileLoaderLocalGroup/FileLoaderLocalGroup.stories.js +33 -10
  44. package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN.js +73 -17
  45. package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN.stories.js +73 -9
  46. package/dist/Atomic/FormElements/FormattedRawSSN/FormattedRawSSN_old.js +75 -19
  47. package/dist/Atomic/FormElements/Input/Input.js +100 -45
  48. package/dist/Atomic/FormElements/Input/Input.stories.js +73 -9
  49. package/dist/Atomic/FormElements/InputCalendar/InputCalendar.js +85 -29
  50. package/dist/Atomic/FormElements/InputCalendar/InputCalendar.stories.js +78 -14
  51. package/dist/Atomic/FormElements/InputColor/InputColor.js +30 -15
  52. package/dist/Atomic/FormElements/InputColor/InputColor.stories.js +73 -9
  53. package/dist/Atomic/FormElements/InputCurrency/InputCurrency.interface.js +4 -1
  54. package/dist/Atomic/FormElements/InputCurrency/InputCurrency.js +73 -17
  55. package/dist/Atomic/FormElements/InputCurrency/InputCurrency.stories.js +52 -14
  56. package/dist/Atomic/FormElements/InputCurrency/InputCurrency.test.js +45 -36
  57. package/dist/Atomic/FormElements/InputCurrency/index.js +16 -1
  58. package/dist/Atomic/FormElements/InputDateRange/InputDateRange.js +128 -72
  59. package/dist/Atomic/FormElements/InputDateRange/InputDateRange.stories.js +75 -11
  60. package/dist/Atomic/FormElements/InputDateRange/components/DateInput.js +30 -15
  61. package/dist/Atomic/FormElements/InputDateRange/components/Datepicker.js +182 -126
  62. package/dist/Atomic/FormElements/InputDateRange/components/OpenedPart.js +98 -42
  63. package/dist/Atomic/FormElements/InputDateRange/components/SelectItem.js +24 -9
  64. package/dist/Atomic/FormElements/InputDateRange/dependencies.js +144 -53
  65. package/dist/Atomic/FormElements/InputLink/InputLink.js +76 -20
  66. package/dist/Atomic/FormElements/InputLink/InputLink.stories.js +73 -9
  67. package/dist/Atomic/FormElements/InputMask/InputCarretPosition.js +20 -2
  68. package/dist/Atomic/FormElements/InputMask/InputMask.js +158 -103
  69. package/dist/Atomic/FormElements/InputMask/InputMask.stories.js +81 -17
  70. package/dist/Atomic/FormElements/InputMask/config.js +1 -0
  71. package/dist/Atomic/FormElements/InputMask/functions.js +59 -14
  72. package/dist/Atomic/FormElements/InputMask2/InputMask2.js +129 -73
  73. package/dist/Atomic/FormElements/InputMask2/InputMask2.stories.js +77 -13
  74. package/dist/Atomic/FormElements/InputMask2/config.js +1 -0
  75. package/dist/Atomic/FormElements/InputMask2/functions.js +59 -14
  76. package/dist/Atomic/FormElements/InputMask3/InputMask3.js +133 -77
  77. package/dist/Atomic/FormElements/InputMask3/InputMask3.stories.js +79 -15
  78. package/dist/Atomic/FormElements/InputMask3/config.js +1 -0
  79. package/dist/Atomic/FormElements/InputMask3/functions.js +59 -14
  80. package/dist/Atomic/FormElements/InputWithAction/InputWithAction.js +79 -23
  81. package/dist/Atomic/FormElements/InputWithAction/InputWithAction.stories.js +72 -8
  82. package/dist/Atomic/FormElements/InputsRow/InputsRow.js +81 -25
  83. package/dist/Atomic/FormElements/InputsRow/InputsRow.stories.js +31 -8
  84. package/dist/Atomic/FormElements/Label/Label.interface.js +4 -1
  85. package/dist/Atomic/FormElements/Label/Label.js +31 -16
  86. package/dist/Atomic/FormElements/Label/Label.stories.js +30 -7
  87. package/dist/Atomic/FormElements/Label/Label.test.js +46 -37
  88. package/dist/Atomic/FormElements/Label/index.js +17 -2
  89. package/dist/Atomic/FormElements/MobileCalendar/MobileCalendar.js +124 -68
  90. package/dist/Atomic/FormElements/MobileCalendar/MobileCalendar.stories.js +74 -10
  91. package/dist/Atomic/FormElements/MultiSelect/MultiSelect.js +67 -11
  92. package/dist/Atomic/FormElements/MultiSelect/MultiSelect.stories.js +73 -9
  93. package/dist/Atomic/FormElements/NumericInput/NumericInput.js +105 -49
  94. package/dist/Atomic/FormElements/NumericInput/NumericInput.stories.js +75 -11
  95. package/dist/Atomic/FormElements/RadioGroup/RadioGroup.js +67 -11
  96. package/dist/Atomic/FormElements/RadioGroup/RadioGroup.stories.js +31 -8
  97. package/dist/Atomic/FormElements/RadioGroupWithInput/RadioGroupWithInput.js +33 -18
  98. package/dist/Atomic/FormElements/RadioGroupWithInput/RadioGroupWithInput.stories.js +73 -9
  99. package/dist/Atomic/FormElements/RadioInput/RadioInput.js +27 -12
  100. package/dist/Atomic/FormElements/RadioInput/RadioInput.stories.js +31 -8
  101. package/dist/Atomic/FormElements/RadioRowSwitcher/RadioRowSwitcher.js +25 -10
  102. package/dist/Atomic/FormElements/RadioRowSwitcher/RadioRowSwitcher.stories.js +73 -9
  103. package/dist/Atomic/FormElements/RangeCalendar/RangeCalendar.js +92 -36
  104. package/dist/Atomic/FormElements/RangeCalendar/RangeCalendar.stories.js +85 -21
  105. package/dist/Atomic/FormElements/RangeInputs/RangeInputs.js +81 -25
  106. package/dist/Atomic/FormElements/RangeInputs/RangeInputs.stories.js +74 -10
  107. package/dist/Atomic/FormElements/RangeList/RangeList.js +89 -34
  108. package/dist/Atomic/FormElements/RangeList/RangeList.stories.js +81 -14
  109. package/dist/Atomic/FormElements/RangeList/partial/RangeListRow.js +37 -14
  110. package/dist/Atomic/FormElements/RangeSlider/RangeSlider.js +120 -64
  111. package/dist/Atomic/FormElements/RangeSlider/RangeSlider.stories.js +102 -38
  112. package/dist/Atomic/FormElements/RangeSlider2/RangeSlider2.js +137 -81
  113. package/dist/Atomic/FormElements/RangeSlider2/RangeSlider2.stories.js +82 -18
  114. package/dist/Atomic/FormElements/SwitchableRow/SwitchableRow.js +26 -11
  115. package/dist/Atomic/FormElements/SwitchableRow/SwitchableRow.stories.js +85 -21
  116. package/dist/Atomic/FormElements/Switcher/Switcher.js +31 -16
  117. package/dist/Atomic/FormElements/Switcher/Switcher.stories.js +74 -10
  118. package/dist/Atomic/FormElements/SwitcherCheckbox/SwitcherCheckbox.js +26 -11
  119. package/dist/Atomic/FormElements/SwitcherCheckbox/SwitcherCheckbox.stories.js +75 -11
  120. package/dist/Atomic/FormElements/SwitcherHide/SwitcherHide.js +24 -9
  121. package/dist/Atomic/FormElements/SwitcherHide/SwitcherHide.stories.js +75 -11
  122. package/dist/Atomic/FormElements/SwitcherRadio/SwitcherRadio.js +68 -13
  123. package/dist/Atomic/FormElements/SwitcherRadio/SwitcherRadio.stories.js +74 -10
  124. package/dist/Atomic/FormElements/SwitcherRange/SwitcherRange.js +64 -8
  125. package/dist/Atomic/FormElements/SwitcherRange/SwitcherRange.stories.js +75 -11
  126. package/dist/Atomic/FormElements/SwitcherRangeList/SwitcherRangeList.js +26 -11
  127. package/dist/Atomic/FormElements/SwitcherRangeList/SwitcherRangeList.stories.js +76 -12
  128. package/dist/Atomic/FormElements/SwitcherTagsDropdown/SwitcherTagsDropdown.js +81 -25
  129. package/dist/Atomic/FormElements/SwitcherTagsDropdown/SwitcherTagsDropdown.stories.js +78 -14
  130. package/dist/Atomic/FormElements/SwitcherTagsDropdown/partial/States.js +11 -1
  131. package/dist/Atomic/FormElements/SwitcherTextarea/SwitcherTextarea.js +30 -15
  132. package/dist/Atomic/FormElements/SwitcherTextarea/SwitcherTextarea.stories.js +76 -12
  133. package/dist/Atomic/FormElements/TagListToDropdown/TagListToDropdown.js +70 -14
  134. package/dist/Atomic/FormElements/TagListToDropdown/TagListToDropdown.stories.js +73 -9
  135. package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.js +208 -152
  136. package/dist/Atomic/FormElements/TagsDropdown/TagsDropdown.stories.js +80 -16
  137. package/dist/Atomic/FormElements/Text/Text.js +25 -10
  138. package/dist/Atomic/FormElements/Text/Text.stories.js +30 -7
  139. package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.js +27 -12
  140. package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.stories.js +74 -10
  141. package/dist/Atomic/FormElements/TextSwitcher/TextSwitcher.test.js +26 -17
  142. package/dist/Atomic/FormElements/Textarea/Textarea.js +69 -13
  143. package/dist/Atomic/FormElements/Textarea/Textarea.stories.js +75 -11
  144. package/dist/Atomic/FormElements/TieredCheckboxes/TieredCheckboxes.js +77 -22
  145. package/dist/Atomic/FormElements/TieredCheckboxes/TieredCheckboxes.stories.js +76 -12
  146. package/dist/Atomic/FormElements/TieredCheckboxes/partial/AccordionWithCheckbox.js +27 -12
  147. package/dist/Atomic/FormElements/TimeRange/TimeRange.interface.js +4 -1
  148. package/dist/Atomic/FormElements/TimeRange/TimeRange.js +79 -23
  149. package/dist/Atomic/FormElements/TimeRange/TimeRange.stories.js +30 -7
  150. package/dist/Atomic/FormElements/TimeRange/TimeRange.test.js +59 -50
  151. package/dist/Atomic/FormElements/TimeRange/index.js +17 -2
  152. package/dist/Atomic/FormElements/UserContacts/UserContact.test.js +77 -68
  153. package/dist/Atomic/FormElements/UserContacts/UserContacts.interface.js +4 -1
  154. package/dist/Atomic/FormElements/UserContacts/UserContacts.js +79 -23
  155. package/dist/Atomic/FormElements/UserContacts/UserContacts.stories.js +31 -8
  156. package/dist/Atomic/FormElements/UserContacts/index.js +17 -2
  157. package/dist/Atomic/FormElements/VariantsListRadio/VariantsListRadio.js +71 -15
  158. package/dist/Atomic/FormElements/VariantsListRadio/VariantsListRadio.stories.js +78 -14
  159. package/dist/Atomic/FormElements/VariantsListRadio/partials/VariantsListRadioItem.js +39 -24
  160. package/dist/Atomic/FormElements/WidgetPseudoTable/WidgetPseudoTable.js +45 -30
  161. package/dist/Atomic/FormElements/WidgetPseudoTable/WidgetPseudoTable.stories.js +81 -17
  162. package/dist/Atomic/FormElements/WidgetPseudoTable/partial/constructor.js +11 -1
  163. package/dist/Atomic/FormElements/WidgetWithSwitchableRows/WidgetWithSwitchableRows.js +45 -30
  164. package/dist/Atomic/FormElements/WidgetWithSwitchableRows/WidgetWithSwitchableRows.stories.js +82 -18
  165. package/dist/Atomic/FormElements/WidgetWithSwitchableRows/partial/constructor.js +11 -1
  166. package/dist/Atomic/Layout/Header/Header.js +83 -27
  167. package/dist/Atomic/Layout/Header/Header.stories.js +31 -8
  168. package/dist/Atomic/Layout/MainMenu/MainMenu.js +107 -51
  169. package/dist/Atomic/Layout/MainMenu/MainMenu.stories.js +31 -8
  170. package/dist/Atomic/Layout/Spinner/Spinner.interface.js +4 -1
  171. package/dist/Atomic/Layout/Spinner/Spinner.js +28 -13
  172. package/dist/Atomic/Layout/Spinner/Spinner.stories.js +30 -7
  173. package/dist/Atomic/Layout/Spinner/Spinner.test.js +22 -13
  174. package/dist/Atomic/Layout/Spinner/index.js +17 -2
  175. package/dist/Atomic/UI/Accordion/Accordion.interface.js +4 -1
  176. package/dist/Atomic/UI/Accordion/Accordion.js +77 -21
  177. package/dist/Atomic/UI/Accordion/Accordion.stories.js +36 -10
  178. package/dist/Atomic/UI/Accordion/Accordion.test.js +18 -9
  179. package/dist/Atomic/UI/Accordion/AccordionItem.js +84 -28
  180. package/dist/Atomic/UI/Accordion/AccordionItem.test.js +18 -9
  181. package/dist/Atomic/UI/Accordion/index.js +17 -2
  182. package/dist/Atomic/UI/AccordionTable/AccordionTable.js +99 -43
  183. package/dist/Atomic/UI/AccordionTable/AccordionTable.stories.js +80 -16
  184. package/dist/Atomic/UI/AccordionText/AccordionText.js +73 -18
  185. package/dist/Atomic/UI/AccordionText/AccordionText.stories.js +59 -36
  186. package/dist/Atomic/UI/AdvancedTag/AdvTag.js +94 -38
  187. package/dist/Atomic/UI/AdvancedTag/AdvancedTags.js +70 -14
  188. package/dist/Atomic/UI/AdvancedTag/AdvancedTags.stories.js +31 -8
  189. package/dist/Atomic/UI/Alert/Alert.js +78 -22
  190. package/dist/Atomic/UI/Alert/Alert.stories.js +38 -12
  191. package/dist/Atomic/UI/Arrow/Arrow.js +78 -22
  192. package/dist/Atomic/UI/Arrow/Arrow.stories.js +31 -8
  193. package/dist/Atomic/UI/Box/Box.js +22 -8
  194. package/dist/Atomic/UI/Box/Box.stories.js +41 -18
  195. package/dist/Atomic/UI/Button/Button.js +24 -9
  196. package/dist/Atomic/UI/Button/Button.stories.js +32 -9
  197. package/dist/Atomic/UI/Button/Button.test.js +51 -42
  198. package/dist/Atomic/UI/ButtonsBar/ButtonsBar.js +30 -15
  199. package/dist/Atomic/UI/ButtonsBar/ButtonsBar.stories.js +35 -13
  200. package/dist/Atomic/UI/Chart/Chart.js +105 -49
  201. package/dist/Atomic/UI/Chart/Chart.stories.js +31 -8
  202. package/dist/Atomic/UI/Chart/partial/Chart.constants.js +44 -8
  203. package/dist/Atomic/UI/Chart/partial/ChartTypeSwitcherIcon/ChartTypeSwitcherIcon.js +30 -15
  204. package/dist/Atomic/UI/Chart/partial/datasetSetters.js +34 -9
  205. package/dist/Atomic/UI/Chart/partial/optionsConstructor.js +41 -16
  206. package/dist/Atomic/UI/Chart/partial/optionsSetters.js +24 -3
  207. package/dist/Atomic/UI/Chart/partial/utils.js +45 -13
  208. package/dist/Atomic/UI/CircleProgressBar/CircleProgressBar.js +76 -20
  209. package/dist/Atomic/UI/CircleProgressBar/CircleProgressBar.stories.js +32 -9
  210. package/dist/Atomic/UI/DateTime/DateTime.js +70 -14
  211. package/dist/Atomic/UI/DateTime/DateTime.stories.js +32 -9
  212. package/dist/Atomic/UI/DebugContainer/DebugContainer.js +65 -14
  213. package/dist/Atomic/UI/DebugContainer/useDebugContainer.js +62 -6
  214. package/dist/Atomic/UI/DoubleString/DoubleString.js +85 -29
  215. package/dist/Atomic/UI/DoubleString/DoubleString.stories.js +39 -13
  216. package/dist/Atomic/UI/DynamicIcon/DynamicIcon.interface.js +4 -1
  217. package/dist/Atomic/UI/DynamicIcon/DynamicIcon.js +58 -7
  218. package/dist/Atomic/UI/DynamicIcon/DynamicIcon.stories.js +72 -8
  219. package/dist/Atomic/UI/DynamicIcon/DynamicIcon.test.js +24 -15
  220. package/dist/Atomic/UI/DynamicIcon/index.js +17 -2
  221. package/dist/Atomic/UI/ExampleChartIntegration/ExampleChartIntegration.js +101 -46
  222. package/dist/Atomic/UI/ExampleChartIntegration/ExampleChartIntegration.stories.js +72 -8
  223. package/dist/Atomic/UI/ExampleChartIntegration/partial/utils.js +41 -12
  224. package/dist/Atomic/UI/Hint/Hint.interface.js +4 -1
  225. package/dist/Atomic/UI/Hint/Hint.js +93 -37
  226. package/dist/Atomic/UI/Hint/Hint.stories.js +38 -15
  227. package/dist/Atomic/UI/Hint/Hint.test.js +13 -4
  228. package/dist/Atomic/UI/Hint/index.js +17 -2
  229. package/dist/Atomic/UI/Hint/partials/_utils.js +36 -11
  230. package/dist/Atomic/UI/Modal/Modal.interface.js +4 -1
  231. package/dist/Atomic/UI/Modal/Modal.js +61 -35
  232. package/dist/Atomic/UI/Modal/Modal.stories.js +85 -38
  233. package/dist/Atomic/UI/Modal/ModalHOC.js +68 -12
  234. package/dist/Atomic/UI/Modal/ModalHOC.stories.js +59 -27
  235. package/dist/Atomic/UI/Modal/ModalHOC.test.js +47 -38
  236. package/dist/Atomic/UI/Modal/index.js +26 -4
  237. package/dist/Atomic/UI/Modal/partials/ModalFooter.js +63 -7
  238. package/dist/Atomic/UI/Modal/partials/ModalFooter.test.js +40 -31
  239. package/dist/Atomic/UI/Modal/partials/ModalTitle.js +71 -15
  240. package/dist/Atomic/UI/Modal/partials/ModalTitle.test.js +39 -30
  241. package/dist/Atomic/UI/Modal/partials/useMobileModal.js +34 -19
  242. package/dist/Atomic/UI/Modal/partials/useMobileModal.test.js +28 -19
  243. package/dist/Atomic/UI/MonoAccordion/MonoAccordion._test.js +34 -25
  244. package/dist/Atomic/UI/MonoAccordion/MonoAccordion.interface.js +4 -1
  245. package/dist/Atomic/UI/MonoAccordion/MonoAccordion.js +73 -17
  246. package/dist/Atomic/UI/MonoAccordion/MonoAccordion.stories.js +184 -101
  247. package/dist/Atomic/UI/MonoAccordion/index.js +17 -2
  248. package/dist/Atomic/UI/NavLine/NavLine.interface.js +4 -1
  249. package/dist/Atomic/UI/NavLine/NavLine.js +102 -46
  250. package/dist/Atomic/UI/NavLine/NavLine.stories.js +116 -32
  251. package/dist/Atomic/UI/NavLine/NavLine.test.js +53 -44
  252. package/dist/Atomic/UI/NavLine/index.js +17 -2
  253. package/dist/Atomic/UI/PageTitle/PageTitle.interface.js +4 -1
  254. package/dist/Atomic/UI/PageTitle/PageTitle.js +34 -19
  255. package/dist/Atomic/UI/PageTitle/PageTitle.stories.js +33 -10
  256. package/dist/Atomic/UI/PageTitle/PageTitle.test.js +51 -42
  257. package/dist/Atomic/UI/PageTitle/index.js +17 -2
  258. package/dist/Atomic/UI/PieChart/PieChart.js +35 -66
  259. package/dist/Atomic/UI/PieChart/PieChart.scss +11 -87
  260. package/dist/Atomic/UI/PieChart/PieChart.stories.js +81 -56
  261. package/dist/Atomic/UI/Price/Price.interface.js +4 -1
  262. package/dist/Atomic/UI/Price/Price.js +24 -9
  263. package/dist/Atomic/UI/Price/Price.stories.js +30 -7
  264. package/dist/Atomic/UI/Price/Price.test.js +21 -12
  265. package/dist/Atomic/UI/Price/index.js +17 -2
  266. package/dist/Atomic/UI/PriceRange/PriceRange.interface.js +4 -1
  267. package/dist/Atomic/UI/PriceRange/PriceRange.js +26 -11
  268. package/dist/Atomic/UI/PriceRange/PriceRange.stories.js +30 -7
  269. package/dist/Atomic/UI/PriceRange/PriceRange.test.js +18 -9
  270. package/dist/Atomic/UI/PriceRange/index.js +17 -2
  271. package/dist/Atomic/UI/ProgressLine/ProgressLine.interface.js +4 -1
  272. package/dist/Atomic/UI/ProgressLine/ProgressLine.js +32 -17
  273. package/dist/Atomic/UI/ProgressLine/ProgressLine.stories.js +30 -7
  274. package/dist/Atomic/UI/ProgressLine/ProgressLine.test.js +18 -9
  275. package/dist/Atomic/UI/ProgressLine/index.js +17 -2
  276. package/dist/Atomic/UI/Status/Status.interface.js +4 -1
  277. package/dist/Atomic/UI/Status/Status.js +31 -16
  278. package/dist/Atomic/UI/Status/Status.stories.js +34 -8
  279. package/dist/Atomic/UI/Status/Status.test.js +32 -23
  280. package/dist/Atomic/UI/Status/index.js +17 -2
  281. package/dist/Atomic/UI/Table/Partials/TdCell.js +79 -23
  282. package/dist/Atomic/UI/Table/Partials/TdHeader.js +32 -17
  283. package/dist/Atomic/UI/Table/Partials/TdRow.js +81 -25
  284. package/dist/Atomic/UI/Table/Partials/TdTitle.js +75 -19
  285. package/dist/Atomic/UI/Table/Table.js +32 -17
  286. package/dist/Atomic/UI/Table/Table.stories.js +73 -9
  287. package/dist/Atomic/UI/Table/TdTypes/TdActions.js +74 -18
  288. package/dist/Atomic/UI/Table/TdTypes/TdPriority.js +28 -13
  289. package/dist/Atomic/UI/Table/TdTypes/TdRange.js +16 -6
  290. package/dist/Atomic/UI/Table/TdTypes/TdWeight.js +32 -17
  291. package/dist/Atomic/UI/Tag/Tag.interface.js +4 -1
  292. package/dist/Atomic/UI/Tag/Tag.js +80 -24
  293. package/dist/Atomic/UI/Tag/Tag.stories.js +38 -15
  294. package/dist/Atomic/UI/Tag/Tag.test.js +30 -21
  295. package/dist/Atomic/UI/Tag/index.js +17 -2
  296. package/dist/Atomic/UI/TagList/TagList.js +84 -28
  297. package/dist/Atomic/UI/TagList/TagList.stories.js +80 -16
  298. package/dist/Atomic/UI/UserBox/UserBox.interface.js +4 -1
  299. package/dist/Atomic/UI/UserBox/UserBox.js +37 -22
  300. package/dist/Atomic/UI/UserBox/UserBox.stories.js +30 -7
  301. package/dist/Atomic/UI/UserBox/UserBox.test.js +74 -24
  302. package/dist/Atomic/UI/UserBox/index.js +17 -2
  303. package/dist/Atomic/UI/WizardStepper/WizardStepper.stories.js +34 -11
  304. package/dist/Atomic/UI/WizardStepper/constructor.js +34 -11
  305. package/dist/Atomic/UI/WizardStepper/index.js +17 -2
  306. package/dist/Atomic/UI/WizardStepper/ui/StateIcon/StateIcon.js +31 -16
  307. package/dist/Atomic/UI/WizardStepper/ui/StateIcon/index.js +12 -2
  308. package/dist/Atomic/UI/WizardStepper/ui/StepRow/StepRow.js +39 -25
  309. package/dist/Atomic/UI/WizardStepper/ui/StepRow/index.js +17 -2
  310. package/dist/Atomic/UI/WizardStepper/ui/StepWrapper/StepWrapper.js +34 -19
  311. package/dist/Atomic/UI/WizardStepper/ui/StepWrapper/index.js +17 -2
  312. package/dist/Atomic/UI/WizardStepper/ui/icons.js +39 -24
  313. package/dist/Atomic/UI/WizardStepper/ui/index.js +17 -2
  314. package/dist/Classes/AbortableFetch.js +12 -2
  315. package/dist/Classes/AnimatedHandler.js +11 -1
  316. package/dist/Classes/RESTAPI/index.js +24 -9
  317. package/dist/Classes/RESTAPI/partials/AbortableFetch.js +12 -2
  318. package/dist/Classes/RESTAPI/partials/ApiBase.js +18 -3
  319. package/dist/Classes/RESTAPI/partials/ApiRequestCreators.js +25 -10
  320. package/dist/Classes/RESTAPI/partials/ApiUtils.js +22 -7
  321. package/dist/Classes/RESTAPI/partials/CredentialsProcessing.js +20 -5
  322. package/dist/Classes/RESTAPI/partials/Utils.js +14 -4
  323. package/dist/Classes/RESTAPI/partials/_outerDependencies.js +18 -3
  324. package/dist/Classes/RESTAPI/partials/_utils.js +43 -10
  325. package/dist/Constants/index.constants.js +40 -7
  326. package/dist/DeepPartial.d.ts +40 -0
  327. package/dist/DeepReadonly.d.ts +38 -0
  328. package/dist/DeepRequired.d.ts +50 -0
  329. package/dist/Flatten.d.ts +34 -0
  330. package/dist/FunctionType.d.ts +37 -0
  331. package/dist/Functions/Portal.js +62 -6
  332. package/dist/Functions/customEventListener.js +1 -0
  333. package/dist/Functions/dateTime.js +31 -21
  334. package/dist/Functions/fieldValueFormatters.js +79 -61
  335. package/dist/Functions/guards/assertions.js +19 -4
  336. package/dist/Functions/guards/safeValue.js +21 -6
  337. package/dist/Functions/guards/typeGuards.js +12 -2
  338. package/dist/Functions/hooks/useFormFieldsChangesManager.js +55 -4
  339. package/dist/Functions/locale/createTranslator.js +13 -3
  340. package/dist/Functions/operations.js +11 -1
  341. package/dist/Functions/presets/inputMaskPresets.js +12 -2
  342. package/dist/Functions/presets/inputPresets.js +14 -4
  343. package/dist/Functions/presets/mobileKeyboardTypesPresets.js +24 -32
  344. package/dist/Functions/schemas.js +77 -15
  345. package/dist/Functions/useBodyScrollLock.js +13 -3
  346. package/dist/Functions/useClickOutside.js +13 -3
  347. package/dist/Functions/useDebounce.js +55 -4
  348. package/dist/Functions/useFieldFocus.js +17 -7
  349. package/dist/Functions/useFormTools/form-drivers/ArrayWithObjects.js +18 -3
  350. package/dist/Functions/useFormTools/form-drivers/ObjectWithIterableObjects.js +11 -1
  351. package/dist/Functions/useFormTools/form-drivers/ObjectWithNamedKeyObjects.js +18 -3
  352. package/dist/Functions/useFormTools/functions/General.js +11 -1
  353. package/dist/Functions/useFormTools/functions/RenderFields.js +16 -6
  354. package/dist/Functions/useFormTools/functions/usePrevious.js +14 -4
  355. package/dist/Functions/useFormTools/index.js +50 -35
  356. package/dist/Functions/useInputHighlightError.js +68 -9
  357. package/dist/Functions/useIsMobile/index.js +17 -2
  358. package/dist/Functions/useIsMobile/useIsMobile.js +14 -4
  359. package/dist/Functions/useIsMobile/useIsMobile.test.js +18 -9
  360. package/dist/Functions/useKeyPress/useHandleKeyPress.js +21 -6
  361. package/dist/Functions/useKeyPress/useHandleKeyPress.test.js +20 -11
  362. package/dist/Functions/useKeyPress/useKeyPress.js +16 -6
  363. package/dist/Functions/useKeyPress/useKeyPress.test.js +25 -16
  364. package/dist/Functions/useLocalStorage.js +13 -3
  365. package/dist/Functions/useLocationParams.js +14 -4
  366. package/dist/Functions/useMediaQuery.js +13 -3
  367. package/dist/Functions/useMetaInfo.js +27 -9
  368. package/dist/Functions/useMouseUpOutside.js +13 -3
  369. package/dist/Functions/useOnlineStatus.js +14 -4
  370. package/dist/Functions/usePasswordChecker.js +69 -13
  371. package/dist/Functions/usePrevious.js +14 -4
  372. package/dist/Functions/useResize.js +15 -5
  373. package/dist/Functions/useScrollTo.js +15 -5
  374. package/dist/Functions/useToggle.js +16 -6
  375. package/dist/Functions/utils.js +173 -67
  376. package/dist/If.d.ts +34 -0
  377. package/dist/KeysType.d.ts +10 -0
  378. package/dist/Molecular/CustomIcons/components/AffiliateNetworks.js +57 -6
  379. package/dist/Molecular/CustomIcons/components/AlertCircle.js +57 -6
  380. package/dist/Molecular/CustomIcons/components/AppStore.js +59 -8
  381. package/dist/Molecular/CustomIcons/components/Arrow.js +62 -11
  382. package/dist/Molecular/CustomIcons/components/ArrowDown.js +55 -4
  383. package/dist/Molecular/CustomIcons/components/ArrowLeft.js +56 -5
  384. package/dist/Molecular/CustomIcons/components/ArrowRight.js +56 -5
  385. package/dist/Molecular/CustomIcons/components/ArrowUp.js +55 -4
  386. package/dist/Molecular/CustomIcons/components/Bell.js +55 -4
  387. package/dist/Molecular/CustomIcons/components/Button.js +55 -4
  388. package/dist/Molecular/CustomIcons/components/Campaigns.js +55 -4
  389. package/dist/Molecular/CustomIcons/components/Check.js +55 -4
  390. package/dist/Molecular/CustomIcons/components/Check2.js +55 -4
  391. package/dist/Molecular/CustomIcons/components/ChevronDown.js +55 -4
  392. package/dist/Molecular/CustomIcons/components/ChevronDownDisabled.js +55 -4
  393. package/dist/Molecular/CustomIcons/components/ChevronLeft.js +55 -4
  394. package/dist/Molecular/CustomIcons/components/ChevronRight.js +55 -4
  395. package/dist/Molecular/CustomIcons/components/ChevronUp.js +55 -4
  396. package/dist/Molecular/CustomIcons/components/ChevronUpDown.js +58 -7
  397. package/dist/Molecular/CustomIcons/components/Close.js +56 -5
  398. package/dist/Molecular/CustomIcons/components/ColumnsOrder.js +60 -9
  399. package/dist/Molecular/CustomIcons/components/Delete.js +55 -4
  400. package/dist/Molecular/CustomIcons/components/Edit.js +55 -4
  401. package/dist/Molecular/CustomIcons/components/Email.js +59 -8
  402. package/dist/Molecular/CustomIcons/components/FinturfLogo.js +60 -9
  403. package/dist/Molecular/CustomIcons/components/FinturfLogo2.js +59 -8
  404. package/dist/Molecular/CustomIcons/components/Flows.js +55 -4
  405. package/dist/Molecular/CustomIcons/components/Gift.js +56 -5
  406. package/dist/Molecular/CustomIcons/components/GoogleAuth.js +59 -8
  407. package/dist/Molecular/CustomIcons/components/GooglePlay.js +59 -8
  408. package/dist/Molecular/CustomIcons/components/HelpCircle.js +56 -5
  409. package/dist/Molecular/CustomIcons/components/HelpCircle2.js +56 -5
  410. package/dist/Molecular/CustomIcons/components/HelpCircleFilled.js +56 -5
  411. package/dist/Molecular/CustomIcons/components/Home.js +56 -5
  412. package/dist/Molecular/CustomIcons/components/Home2.js +56 -5
  413. package/dist/Molecular/CustomIcons/components/Key.js +55 -4
  414. package/dist/Molecular/CustomIcons/components/Landers.js +56 -5
  415. package/dist/Molecular/CustomIcons/components/Lock.js +55 -4
  416. package/dist/Molecular/CustomIcons/components/Mail.js +57 -6
  417. package/dist/Molecular/CustomIcons/components/Mastercard.js +67 -16
  418. package/dist/Molecular/CustomIcons/components/Minus.js +58 -7
  419. package/dist/Molecular/CustomIcons/components/Offers.js +55 -4
  420. package/dist/Molecular/CustomIcons/components/Pause.js +58 -7
  421. package/dist/Molecular/CustomIcons/components/PayPal.js +61 -10
  422. package/dist/Molecular/CustomIcons/components/PayPalLightLarge.js +59 -8
  423. package/dist/Molecular/CustomIcons/components/Phone.js +58 -7
  424. package/dist/Molecular/CustomIcons/components/Play.js +58 -7
  425. package/dist/Molecular/CustomIcons/components/Plus.js +58 -7
  426. package/dist/Molecular/CustomIcons/components/Profile.js +56 -5
  427. package/dist/Molecular/CustomIcons/components/QRCode.js +59 -8
  428. package/dist/Molecular/CustomIcons/components/Rectangle.js +55 -4
  429. package/dist/Molecular/CustomIcons/components/Revert.js +56 -5
  430. package/dist/Molecular/CustomIcons/components/Star.js +55 -4
  431. package/dist/Molecular/CustomIcons/components/Star2.js +55 -4
  432. package/dist/Molecular/CustomIcons/components/TrafficSources.js +57 -6
  433. package/dist/Molecular/CustomIcons/components/Trash.js +55 -4
  434. package/dist/Molecular/CustomIcons/components/TrashRed.js +55 -4
  435. package/dist/Molecular/CustomIcons/components/Triggers.js +55 -4
  436. package/dist/Molecular/CustomIcons/components/User.js +56 -5
  437. package/dist/Molecular/CustomIcons/components/Visa.js +61 -10
  438. package/dist/Molecular/CustomIcons/components/X.js +55 -4
  439. package/dist/Molecular/CustomIcons/index.js +78 -61
  440. package/dist/Molecular/FormElement/FormElement.js +28 -13
  441. package/dist/Molecular/FormElement/FormElement.stories.js +33 -10
  442. package/dist/Molecular/FormWithDependOn/FormWithDependOn.js +74 -19
  443. package/dist/Molecular/FormWithDependOn/FormWithDependOn.stories.js +81 -17
  444. package/dist/Molecular/FormWithDependOn/partials/_utils.js +13 -3
  445. package/dist/Molecular/InputAddress/InputAddress.js +139 -83
  446. package/dist/Molecular/InputAddress/InputAddress.stories.js +78 -14
  447. package/dist/Molecular/InputPassword/InputPassword.js +73 -17
  448. package/dist/Molecular/InputPassword/InputPassword.stories.js +72 -8
  449. package/dist/NonNullableType.d.ts +13 -0
  450. package/dist/ObjectType.d.ts +9 -0
  451. package/dist/OnlyObjectKeys.d.ts +65 -0
  452. package/dist/PrettyPrint.d.ts +29 -0
  453. package/dist/RequiredFields.d.ts +21 -0
  454. package/dist/TupleType.d.ts +10 -0
  455. package/dist/ValuesType.d.ts +10 -0
  456. package/dist/lib/src/Atomic/UI/PieChart/PieChart.d.ts +7 -3
  457. package/dist/lib/src/Atomic/UI/PieChart/PieChart.stories.d.ts +15 -6
  458. package/dist/tsconfig.tsbuildinfo +1 -1
  459. package/dist/types/base.interface.js +4 -1
  460. package/dist/types/base.types.js +4 -1
  461. package/package.json +16 -3
  462. package/dist/Atomic/UI/PieChart/PieChar.interface.js +0 -1
  463. package/dist/Atomic/UI/PieChart/PieChart.test.js +0 -133
  464. package/dist/Atomic/UI/PieChart/index.js +0 -5
  465. package/dist/lib/src/Atomic/UI/PieChart/PieChar.interface.d.ts +0 -36
  466. package/dist/lib/src/Atomic/UI/PieChart/PieChart.test.d.ts +0 -1
  467. package/dist/lib/src/Atomic/UI/PieChart/index.d.ts +0 -13
@@ -1,13 +1,68 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import cn from "classnames";
3
- import React, { useEffect, useMemo, useRef, useState } from "react";
4
- // import InputMask from 'react-input-mask';
5
- import { KEYBOARD_SERVICE_KEYS } from "../../../Constants/index.constants";
6
- import { filterNumeric, formatToAddBitDepthPoints as addCommas, formatToOnlyASCIICodeText, formatToRemoveComa as removeCommas, getSafelyValue } from "../../../Functions/fieldValueFormatters";
7
- import { getIsOnlyAnObject } from "../../../Functions/utils";
8
- import Spinner from "../../Layout/Spinner/Spinner";
9
- import DynamicIcon from "../../UI/DynamicIcon/DynamicIcon";
10
- import "./Input.scss";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return _default;
9
+ }
10
+ });
11
+ const _jsxruntime = require("react/jsx-runtime");
12
+ const _classnames = /*#__PURE__*/ _interop_require_default(require("classnames"));
13
+ const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
14
+ const _indexconstants = require("../../../Constants/index.constants");
15
+ const _fieldValueFormatters = require("../../../Functions/fieldValueFormatters");
16
+ const _utils = require("../../../Functions/utils");
17
+ const _Spinner = /*#__PURE__*/ _interop_require_default(require("../../Layout/Spinner/Spinner"));
18
+ const _DynamicIcon = /*#__PURE__*/ _interop_require_default(require("../../UI/DynamicIcon/DynamicIcon"));
19
+ require("./Input.scss");
20
+ function _interop_require_default(obj) {
21
+ return obj && obj.__esModule ? obj : {
22
+ default: obj
23
+ };
24
+ }
25
+ function _getRequireWildcardCache(nodeInterop) {
26
+ if (typeof WeakMap !== "function") return null;
27
+ var cacheBabelInterop = new WeakMap();
28
+ var cacheNodeInterop = new WeakMap();
29
+ return (_getRequireWildcardCache = function(nodeInterop) {
30
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
31
+ })(nodeInterop);
32
+ }
33
+ function _interop_require_wildcard(obj, nodeInterop) {
34
+ if (!nodeInterop && obj && obj.__esModule) {
35
+ return obj;
36
+ }
37
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
38
+ return {
39
+ default: obj
40
+ };
41
+ }
42
+ var cache = _getRequireWildcardCache(nodeInterop);
43
+ if (cache && cache.has(obj)) {
44
+ return cache.get(obj);
45
+ }
46
+ var newObj = {
47
+ __proto__: null
48
+ };
49
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
50
+ for(var key in obj){
51
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
52
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
53
+ if (desc && (desc.get || desc.set)) {
54
+ Object.defineProperty(newObj, key, desc);
55
+ } else {
56
+ newObj[key] = obj[key];
57
+ }
58
+ }
59
+ }
60
+ newObj.default = obj;
61
+ if (cache) {
62
+ cache.set(obj, newObj);
63
+ }
64
+ return newObj;
65
+ }
11
66
  const HIDE_SYMBOL = "\u2022";
12
67
  /**
13
68
  * Input компонент.
@@ -43,26 +98,26 @@ const HIDE_SYMBOL = "\u2022";
43
98
  * @param {boolean} props.isFocusDefault - Определяет, будет ли элемент получать фокус при загрузке страницы.
44
99
  * @param {boolean} props.isNotValidateASCII - Отключает проверку ASCII для вводимых символов.
45
100
  * @param {boolean} props.isNumericMobileKeyboard - Отображает цифровую клавиатуру на мобильных устройствах.
46
- */ const Input = /*#__PURE__*/ React.forwardRef(({ blurTrim, autocomplete = "off", isSelect, onChange = ()=>{}, onBlur = ()=>{}, onFocus = ()=>{}, onKeyUp = ()=>{}, onKeyDown = ()=>{}, isNotBlinkErrors, isPriceInput, onlyNumbers, disabled, withDelete, value, placeholder, className, type = "text", mask, maskChar, formatChars, error, icon, iconDynamicKey, iconDynamicProps = {}, symbolsLimit, blinkTime, isFocusDefault = false, isNotValidateASCII = false, isNumericMobileKeyboard = false, isCropFirstNool = false, testId = "input", action, isUseAutoSelect = true, isReadOnly = false, isLoading = false, name, fieldKey, id, attributesOfNativeInput = {} }, ref)=>{
101
+ */ const Input = /*#__PURE__*/ _react.default.forwardRef(({ blurTrim, autocomplete = "off", isSelect, onChange = ()=>{}, onBlur = ()=>{}, onFocus = ()=>{}, onKeyUp = ()=>{}, onKeyDown = ()=>{}, isNotBlinkErrors, isPriceInput, onlyNumbers, disabled, withDelete, value, placeholder, className, type = "text", mask, maskChar, formatChars, error, icon, iconDynamicKey, iconDynamicProps = {}, symbolsLimit, blinkTime, isFocusDefault = false, isNotValidateASCII = false, isNumericMobileKeyboard = false, isCropFirstNool = false, testId = "input", action, isUseAutoSelect = true, isReadOnly = false, isLoading = false, name, fieldKey, id, attributesOfNativeInput = {} }, ref)=>{
47
102
  const { trimStart, trimEnd, characters } = blurTrim || {};
48
- const DynamicIconComponent = iconDynamicKey && !icon ? /*#__PURE__*/ _jsx(DynamicIcon, {
103
+ const DynamicIconComponent = iconDynamicKey && !icon ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_DynamicIcon.default, {
49
104
  iconKey: iconDynamicKey,
50
105
  ...iconDynamicProps
51
106
  }) : null;
52
107
  const DEFAULT_BLINK_TIME = 100;
53
108
  // STATES
54
- const [isFocused, setIsFocused] = useState(false);
55
- const [isEditing, setEditing] = useState(false);
56
- const inputInnerRef = useRef(null);
57
- const inputRef = useMemo(()=>ref || inputInnerRef, [
109
+ const [isFocused, setIsFocused] = (0, _react.useState)(false);
110
+ const [isEditing, setEditing] = (0, _react.useState)(false);
111
+ const inputInnerRef = (0, _react.useRef)(null);
112
+ const inputRef = (0, _react.useMemo)(()=>ref || inputInnerRef, [
58
113
  ref
59
114
  ]);
60
115
  // const previousValueRef = useRef(value);
61
- const [isAttemptToChange, setIsAttemptToChange] = useState(false);
62
- const [isToHighlightError, setIsToHighlightError] = useState(false);
63
- const [onInputHover, setOnInputHover] = useState(false);
64
- const [prevValue, setPreviousValue] = useState(value);
65
- const [keyDownData, setKeyDownData] = useState({
116
+ const [isAttemptToChange, setIsAttemptToChange] = (0, _react.useState)(false);
117
+ const [isToHighlightError, setIsToHighlightError] = (0, _react.useState)(false);
118
+ const [onInputHover, setOnInputHover] = (0, _react.useState)(false);
119
+ const [prevValue, setPreviousValue] = (0, _react.useState)(value);
120
+ const [keyDownData, setKeyDownData] = (0, _react.useState)({
66
121
  start: null,
67
122
  end: null,
68
123
  keyCode: null
@@ -75,11 +130,11 @@ const HIDE_SYMBOL = "\u2022";
75
130
  const handle = {
76
131
  correctMinMax: (value, correctionType)=>{
77
132
  if (!onlyNumbers) return value;
78
- const { min, max, isOnlyPositive, isNoEmptyValues } = getIsOnlyAnObject(onlyNumbers) ? onlyNumbers : {};
133
+ const { min, max, isOnlyPositive, isNoEmptyValues } = (0, _utils.getIsOnlyAnObject)(onlyNumbers) ? onlyNumbers : {};
79
134
  const minimum = !Number.isNaN(Number(min)) && min !== null && (min >= 0 || !isOnlyPositive) ? min : undefined;
80
135
  const maximum = !Number.isNaN(Number(max)) && max !== null && (max >= 0 || !isOnlyPositive) ? max : undefined;
81
136
  let minusSymbol;
82
- let inputValue = getSafelyValue(value);
137
+ let inputValue = (0, _fieldValueFormatters.getSafelyValue)(value);
83
138
  const checkMin = ()=>{
84
139
  if (!inputValue && isNoEmptyValues) inputValue = minimum !== undefined ? minimum : "0";
85
140
  else if (inputValue && !Number.isNaN(Number(minimum)) && Number(minimum) > Number((minusSymbol !== null && minusSymbol !== void 0 ? minusSymbol : "") + inputValue)) inputValue = minimum;
@@ -90,12 +145,12 @@ const HIDE_SYMBOL = "\u2022";
90
145
  minusSymbol = null;
91
146
  }
92
147
  };
93
- if (isUseBitDepthPoints) inputValue = removeCommas(inputValue);
148
+ if (isUseBitDepthPoints) inputValue = (0, _fieldValueFormatters.formatToRemoveComa)(inputValue);
94
149
  if (!isOnlyPositive && inputValue[0] === "-") {
95
150
  minusSymbol = "-";
96
151
  inputValue = inputValue.slice(1);
97
152
  }
98
- inputValue = filterNumeric(inputValue, onlyNumbers);
153
+ inputValue = (0, _fieldValueFormatters.filterNumeric)(inputValue, onlyNumbers);
99
154
  switch(correctionType){
100
155
  case "min":
101
156
  checkMin();
@@ -139,19 +194,19 @@ const HIDE_SYMBOL = "\u2022";
139
194
  return output;
140
195
  },
141
196
  change: (e)=>{
142
- const { isOnlyPositive } = getIsOnlyAnObject(onlyNumbers) ? onlyNumbers : {};
197
+ const { isOnlyPositive } = (0, _utils.getIsOnlyAnObject)(onlyNumbers) ? onlyNumbers : {};
143
198
  let minusSymbol;
144
199
  let inputValue = e.target ? e.target.value : e;
145
200
  if (isPseudoPasswordMode) inputValue = inputValue.includes(HIDE_SYMBOL) ? handle.processPseudoValue(inputValue, value, e) : inputValue;
146
201
  // If user typed comma(',') replace it to dot('.') for float value typing
147
202
  if (isPriceInput && inputValue.charAt(inputValue.length - 1) === ',') inputValue = inputValue.substring(0, inputValue.length - 1).concat('.');
148
- if (isUseBitDepthPoints) inputValue = removeCommas(inputValue);
203
+ if (isUseBitDepthPoints) inputValue = (0, _fieldValueFormatters.formatToRemoveComa)(inputValue);
149
204
  if (onlyNumbers) inputValue = inputValue.replace(/,/g, ".");
150
205
  if (onlyNumbers && !isOnlyPositive && inputValue[0] === "-") {
151
206
  minusSymbol = "-";
152
207
  inputValue = inputValue.slice(1);
153
208
  }
154
- if (!isNotValidateASCII) inputValue = formatToOnlyASCIICodeText(inputValue);
209
+ if (!isNotValidateASCII) inputValue = (0, _fieldValueFormatters.formatToOnlyASCIICodeText)(inputValue);
155
210
  if (symbolsLimit && inputValue.length > Number(symbolsLimit)) inputValue = inputValue.substring(0, Number(symbolsLimit));
156
211
  if (isCropFirstNool && inputValue[0] == 0) return "";
157
212
  else if (onlyNumbers) inputValue = handle.correctMinMax(inputValue, "max");
@@ -166,7 +221,7 @@ const HIDE_SYMBOL = "\u2022";
166
221
  onFocus(e);
167
222
  },
168
223
  blur: (e)=>{
169
- let inputValue = handle.correctMinMax(getSafelyValue(value), "min");
224
+ let inputValue = handle.correctMinMax((0, _fieldValueFormatters.getSafelyValue)(value), "min");
170
225
  if (trimStart) inputValue = inputValue.replace(new RegExp(`^[${characters}]+`), "");
171
226
  if (trimEnd) inputValue = inputValue.replace(new RegExp(`[${characters}]+$`), "");
172
227
  if (value !== inputValue) onChange(inputValue);
@@ -210,24 +265,24 @@ const HIDE_SYMBOL = "\u2022";
210
265
  const samePart = infoAboutDifferencesSameness.same.join("");
211
266
  const differencesLength = infoAboutDifferencesSameness.differences.length;
212
267
  const currentSet = changedValue === null || changedValue === void 0 ? void 0 : changedValue.replace(samePart, "");
213
- if (!KEYBOARD_SERVICE_KEYS.includes(e.key) && changedValue === previousValue) setIsAttemptToChange(!(!differencesLength && e.key === currentSet));
268
+ if (!_indexconstants.KEYBOARD_SERVICE_KEYS.includes(e.key) && changedValue === previousValue) setIsAttemptToChange(!(!differencesLength && e.key === currentSet));
214
269
  }
215
270
  onKeyUp(e.keyCode, e);
216
271
  }
217
272
  };
218
- useEffect(()=>{
273
+ (0, _react.useEffect)(()=>{
219
274
  var _inputRef_current_focus, _inputRef_current;
220
275
  if (isEditing) inputRef === null || inputRef === void 0 ? void 0 : (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : (_inputRef_current_focus = _inputRef_current.focus) === null || _inputRef_current_focus === void 0 ? void 0 : _inputRef_current_focus.call(_inputRef_current);
221
276
  }, [
222
277
  isEditing,
223
278
  isFocused
224
279
  ]);
225
- useEffect(()=>{
280
+ (0, _react.useEffect)(()=>{
226
281
  setEditing(isSelect !== null && isSelect !== void 0 ? isSelect : false);
227
282
  }, [
228
283
  isSelect
229
284
  ]);
230
- useEffect(()=>{
285
+ (0, _react.useEffect)(()=>{
231
286
  if (isUseErrorsBlink && isAttemptToChange) {
232
287
  setIsAttemptToChange(null);
233
288
  setIsToHighlightError(true);
@@ -238,7 +293,7 @@ const HIDE_SYMBOL = "\u2022";
238
293
  }, [
239
294
  isAttemptToChange
240
295
  ]);
241
- useEffect(()=>{
296
+ (0, _react.useEffect)(()=>{
242
297
  if ((inputRef === null || inputRef === void 0 ? void 0 : inputRef.current) && typeof isFocusDefault === "boolean") setIsFocused(isFocusDefault);
243
298
  setEditing(isFocusDefault);
244
299
  }, [
@@ -250,16 +305,16 @@ const HIDE_SYMBOL = "\u2022";
250
305
  return type;
251
306
  };
252
307
  const formatedValue = (()=>{
253
- let safelyValue = getSafelyValue(value);
308
+ let safelyValue = (0, _fieldValueFormatters.getSafelyValue)(value);
254
309
  const hideSymbols = ()=>safelyValue.split("").map(()=>HIDE_SYMBOL).join("");
255
310
  if (isPseudoPasswordMode) return hideSymbols();
256
311
  if (onlyNumbers === null || onlyNumbers === void 0 ? void 0 : onlyNumbers.isNoEmptyValues) safelyValue = handle.correctMinMax(safelyValue, "min");
257
- if (isUseBitDepthPoints) safelyValue = addCommas(safelyValue, onlyNumbers);
312
+ if (isUseBitDepthPoints) safelyValue = (0, _fieldValueFormatters.formatToAddBitDepthPoints)(safelyValue, onlyNumbers);
258
313
  return safelyValue;
259
314
  })();
260
315
  const uniProps = {
261
316
  name: inputName,
262
- className: cn("input", className, {
317
+ className: (0, _classnames.default)("input", className, {
263
318
  "input--with-icon": icon,
264
319
  "input--with-delete": withDelete
265
320
  }),
@@ -279,9 +334,9 @@ const HIDE_SYMBOL = "\u2022";
279
334
  formatChars
280
335
  } : {}
281
336
  };
282
- return /*#__PURE__*/ _jsxs("div", {
337
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
283
338
  "data-testid": testId,
284
- className: cn(`input__wrap`, {
339
+ className: (0, _classnames.default)(`input__wrap`, {
285
340
  [`input__wrap_focus`]: isFocused
286
341
  }, {
287
342
  [`input__wrap_error`]: error || isToHighlightError
@@ -291,7 +346,7 @@ const HIDE_SYMBOL = "\u2022";
291
346
  onMouseEnter: ()=>setOnInputHover(true),
292
347
  onMouseLeave: ()=>setOnInputHover(false),
293
348
  children: [
294
- /*#__PURE__*/ _jsx("input", {
349
+ /*#__PURE__*/ (0, _jsxruntime.jsx)("input", {
295
350
  readOnly: isReadOnly,
296
351
  ...uniProps,
297
352
  ref: inputRef,
@@ -312,16 +367,16 @@ const HIDE_SYMBOL = "\u2022";
312
367
  }),
313
368
  DynamicIconComponent !== null && DynamicIconComponent !== void 0 ? DynamicIconComponent : icon,
314
369
  action,
315
- withDelete && onInputHover && /*#__PURE__*/ _jsx("span", {
316
- className: cn(`input__close`, {
317
- hidden: !getSafelyValue(value)
370
+ withDelete && onInputHover && /*#__PURE__*/ (0, _jsxruntime.jsx)("span", {
371
+ className: (0, _classnames.default)(`input__close`, {
372
+ hidden: !(0, _fieldValueFormatters.getSafelyValue)(value)
318
373
  }),
319
374
  onClick: handle.toggleEdit
320
375
  }),
321
- isLoading && /*#__PURE__*/ _jsx(Spinner, {
376
+ isLoading && /*#__PURE__*/ (0, _jsxruntime.jsx)(_Spinner.default, {
322
377
  size: "small"
323
378
  })
324
379
  ]
325
380
  });
326
381
  });
327
- export default Input;
382
+ const _default = Input;
@@ -1,11 +1,75 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import React, { useState } from 'react';
3
- import Input from './Input';
4
- import '../../../../../scss/main.scss';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ InputTemplate: function() {
13
+ return InputTemplate;
14
+ },
15
+ default: function() {
16
+ return _default;
17
+ }
18
+ });
19
+ const _jsxruntime = require("react/jsx-runtime");
20
+ const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
21
+ const _Input = /*#__PURE__*/ _interop_require_default(require("./Input"));
22
+ require("../../../../../scss/main.scss");
23
+ function _interop_require_default(obj) {
24
+ return obj && obj.__esModule ? obj : {
25
+ default: obj
26
+ };
27
+ }
28
+ function _getRequireWildcardCache(nodeInterop) {
29
+ if (typeof WeakMap !== "function") return null;
30
+ var cacheBabelInterop = new WeakMap();
31
+ var cacheNodeInterop = new WeakMap();
32
+ return (_getRequireWildcardCache = function(nodeInterop) {
33
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
34
+ })(nodeInterop);
35
+ }
36
+ function _interop_require_wildcard(obj, nodeInterop) {
37
+ if (!nodeInterop && obj && obj.__esModule) {
38
+ return obj;
39
+ }
40
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
41
+ return {
42
+ default: obj
43
+ };
44
+ }
45
+ var cache = _getRequireWildcardCache(nodeInterop);
46
+ if (cache && cache.has(obj)) {
47
+ return cache.get(obj);
48
+ }
49
+ var newObj = {
50
+ __proto__: null
51
+ };
52
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
53
+ for(var key in obj){
54
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
55
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
56
+ if (desc && (desc.get || desc.set)) {
57
+ Object.defineProperty(newObj, key, desc);
58
+ } else {
59
+ newObj[key] = obj[key];
60
+ }
61
+ }
62
+ }
63
+ newObj.default = obj;
64
+ if (cache) {
65
+ cache.set(obj, newObj);
66
+ }
67
+ return newObj;
68
+ }
5
69
  global.lng = 'en';
6
- export default {
70
+ const _default = {
7
71
  title: 'Form Elements/Input',
8
- component: Input,
72
+ component: _Input.default,
9
73
  argTypes: {
10
74
  disabled: {
11
75
  description: 'Disable input. Default is false.',
@@ -126,15 +190,15 @@ const styles = {
126
190
  with: '200px'
127
191
  };
128
192
  const Template = (args)=>{
129
- const [value, setValue] = useState();
130
- return /*#__PURE__*/ _jsx(Input, {
193
+ const [value, setValue] = (0, _react.useState)();
194
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Input.default, {
131
195
  ...args,
132
196
  style: styles,
133
197
  value: value,
134
198
  onChange: setValue
135
199
  });
136
200
  };
137
- export const InputTemplate = Template.bind({});
201
+ const InputTemplate = Template.bind({});
138
202
  InputTemplate.args = {
139
203
  onlyNumbers: {
140
204
  type: 'float',
@@ -1,21 +1,77 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import React, { useEffect, useRef, useState } from "react";
3
- import cn from "classnames";
4
- import moment from "moment-timezone";
5
- import InputMask from "react-input-mask";
6
- import { useClickOutside } from "../../../Functions/useClickOutside";
7
- import Calendar from "../Calendar/Calendar";
8
- import "./InputCalendar.scss";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return _default;
9
+ }
10
+ });
11
+ const _jsxruntime = require("react/jsx-runtime");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
13
+ const _classnames = /*#__PURE__*/ _interop_require_default(require("classnames"));
14
+ const _momenttimezone = /*#__PURE__*/ _interop_require_default(require("moment-timezone"));
15
+ const _reactinputmask = /*#__PURE__*/ _interop_require_default(require("react-input-mask"));
16
+ const _useClickOutside = require("../../../Functions/useClickOutside");
17
+ const _Calendar = /*#__PURE__*/ _interop_require_default(require("../Calendar/Calendar"));
18
+ require("./InputCalendar.scss");
19
+ function _interop_require_default(obj) {
20
+ return obj && obj.__esModule ? obj : {
21
+ default: obj
22
+ };
23
+ }
24
+ function _getRequireWildcardCache(nodeInterop) {
25
+ if (typeof WeakMap !== "function") return null;
26
+ var cacheBabelInterop = new WeakMap();
27
+ var cacheNodeInterop = new WeakMap();
28
+ return (_getRequireWildcardCache = function(nodeInterop) {
29
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
30
+ })(nodeInterop);
31
+ }
32
+ function _interop_require_wildcard(obj, nodeInterop) {
33
+ if (!nodeInterop && obj && obj.__esModule) {
34
+ return obj;
35
+ }
36
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
37
+ return {
38
+ default: obj
39
+ };
40
+ }
41
+ var cache = _getRequireWildcardCache(nodeInterop);
42
+ if (cache && cache.has(obj)) {
43
+ return cache.get(obj);
44
+ }
45
+ var newObj = {
46
+ __proto__: null
47
+ };
48
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
49
+ for(var key in obj){
50
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
51
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
52
+ if (desc && (desc.get || desc.set)) {
53
+ Object.defineProperty(newObj, key, desc);
54
+ } else {
55
+ newObj[key] = obj[key];
56
+ }
57
+ }
58
+ }
59
+ newObj.default = obj;
60
+ if (cache) {
61
+ cache.set(obj, newObj);
62
+ }
63
+ return newObj;
64
+ }
9
65
  const InputCalendar = ({ value, minDate, maxDate, format = "MM/DD/YYYY", isDontLimitFuture, onChange, className = "", placeholder = "mm/dd/yyyy", mask = "99/99/9999", isListTop, disabled, disabledFormattedMaxDate = false, testId = "input-calendar", onKeyDown: onKeyDownProp = (e)=>{}, onKeyUp: onKeyUpProp = (e)=>{}, onBlur: onBlurProp = (e)=>{} })=>{
10
- const [isOpened, setIsOpened] = useState(null);
11
- const [isOpenedByEnter, setOpenedByEnter] = useState(false);
12
- const calendarRef = useRef(null);
13
- const inputRef = useRef(null);
14
- const formattedMinDate = moment(minDate, format).format(format) !== "Invalid date" ? moment(minDate, format).format(format) : null;
15
- const formattedMaxDate = moment(maxDate, format).format(format) !== "Invalid date" ? moment(maxDate, format).format(format) : null;
16
- const momentMinDate = moment(formattedMinDate, format).startOf("day");
17
- const momentMaxDate = moment(formattedMaxDate, format).startOf("day");
18
- useClickOutside(calendarRef, ()=>setIsOpened(false));
66
+ const [isOpened, setIsOpened] = (0, _react.useState)(null);
67
+ const [isOpenedByEnter, setOpenedByEnter] = (0, _react.useState)(false);
68
+ const calendarRef = (0, _react.useRef)(null);
69
+ const inputRef = (0, _react.useRef)(null);
70
+ const formattedMinDate = (0, _momenttimezone.default)(minDate, format).format(format) !== "Invalid date" ? (0, _momenttimezone.default)(minDate, format).format(format) : null;
71
+ const formattedMaxDate = (0, _momenttimezone.default)(maxDate, format).format(format) !== "Invalid date" ? (0, _momenttimezone.default)(maxDate, format).format(format) : null;
72
+ const momentMinDate = (0, _momenttimezone.default)(formattedMinDate, format).startOf("day");
73
+ const momentMaxDate = (0, _momenttimezone.default)(formattedMaxDate, format).startOf("day");
74
+ (0, _useClickOutside.useClickOutside)(calendarRef, ()=>setIsOpened(false));
19
75
  const changeInputValue = (val)=>{
20
76
  if (onChange) onChange(val);
21
77
  };
@@ -23,11 +79,11 @@ const InputCalendar = ({ value, minDate, maxDate, format = "MM/DD/YYYY", isDontL
23
79
  if (onChange) onChange(val);
24
80
  };
25
81
  const getCalendarValue = (value)=>{
26
- const date = moment(value).format("L");
82
+ const date = (0, _momenttimezone.default)(value).format("L");
27
83
  if (date !== "Invalid date") return date;
28
- return moment(new Date()).format("L");
84
+ return (0, _momenttimezone.default)(new Date()).format("L");
29
85
  };
30
- useEffect(()=>{
86
+ (0, _react.useEffect)(()=>{
31
87
  if (typeof isOpened === "boolean" && !isOpened) {
32
88
  handleBlur();
33
89
  }
@@ -37,10 +93,10 @@ const InputCalendar = ({ value, minDate, maxDate, format = "MM/DD/YYYY", isDontL
37
93
  const handleBlur = (e)=>{
38
94
  var _inputRef_current;
39
95
  let value = inputRef === null || inputRef === void 0 ? void 0 : (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.value;
40
- if (moment(value, format).format(format) === "Invalid date" || value.indexOf("_") > -1) value = "";
41
- if (value && typeof isOpened === "boolean" && moment(value, format).startOf("day").isBefore(momentMinDate, "days")) onChange(formattedMinDate);
42
- else if (value && typeof isOpened === "boolean" && moment(value, format).endOf("day").isAfter(momentMaxDate, "days")) onChange(formattedMaxDate);
43
- else if (value) onChange(moment(value, format).format(format));
96
+ if ((0, _momenttimezone.default)(value, format).format(format) === "Invalid date" || value.indexOf("_") > -1) value = "";
97
+ if (value && typeof isOpened === "boolean" && (0, _momenttimezone.default)(value, format).startOf("day").isBefore(momentMinDate, "days")) onChange(formattedMinDate);
98
+ else if (value && typeof isOpened === "boolean" && (0, _momenttimezone.default)(value, format).endOf("day").isAfter(momentMaxDate, "days")) onChange(formattedMaxDate);
99
+ else if (value) onChange((0, _momenttimezone.default)(value, format).format(format));
44
100
  };
45
101
  const onKeyDown = (e)=>{
46
102
  if (isOpened && [
@@ -70,14 +126,14 @@ const InputCalendar = ({ value, minDate, maxDate, format = "MM/DD/YYYY", isDontL
70
126
  }
71
127
  onKeyUpProp(e);
72
128
  };
73
- return /*#__PURE__*/ _jsxs("div", {
129
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
74
130
  "data-testid": testId,
75
- className: cn("input__wrap calendar-container", className, {
131
+ className: (0, _classnames.default)("input__wrap calendar-container", className, {
76
132
  "calendar-container_disabled": disabled
77
133
  }),
78
134
  ref: calendarRef,
79
135
  children: [
80
- /*#__PURE__*/ _jsx(InputMask, {
136
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_reactinputmask.default, {
81
137
  mask: mask,
82
138
  placeholder: placeholder,
83
139
  value: value,
@@ -89,7 +145,7 @@ const InputCalendar = ({ value, minDate, maxDate, format = "MM/DD/YYYY", isDontL
89
145
  onBlur: onBlurProp,
90
146
  ref: inputRef
91
147
  }),
92
- isOpened ? /*#__PURE__*/ _jsx(Calendar, {
148
+ isOpened ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_Calendar.default, {
93
149
  date: getCalendarValue(value),
94
150
  setDate: (newDate)=>changeCalendarDay(newDate),
95
151
  params: {
@@ -106,4 +162,4 @@ const InputCalendar = ({ value, minDate, maxDate, format = "MM/DD/YYYY", isDontL
106
162
  ]
107
163
  });
108
164
  };
109
- export default InputCalendar;
165
+ const _default = InputCalendar;
@@ -1,11 +1,75 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import React, { useState } from 'react';
3
- import InputCalendar from './InputCalendar';
4
- import '../../../../../scss/main.scss';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ CalendarTemplate: function() {
13
+ return CalendarTemplate;
14
+ },
15
+ default: function() {
16
+ return _default;
17
+ }
18
+ });
19
+ const _jsxruntime = require("react/jsx-runtime");
20
+ const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
21
+ const _InputCalendar = /*#__PURE__*/ _interop_require_default(require("./InputCalendar"));
22
+ require("../../../../../scss/main.scss");
23
+ function _interop_require_default(obj) {
24
+ return obj && obj.__esModule ? obj : {
25
+ default: obj
26
+ };
27
+ }
28
+ function _getRequireWildcardCache(nodeInterop) {
29
+ if (typeof WeakMap !== "function") return null;
30
+ var cacheBabelInterop = new WeakMap();
31
+ var cacheNodeInterop = new WeakMap();
32
+ return (_getRequireWildcardCache = function(nodeInterop) {
33
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
34
+ })(nodeInterop);
35
+ }
36
+ function _interop_require_wildcard(obj, nodeInterop) {
37
+ if (!nodeInterop && obj && obj.__esModule) {
38
+ return obj;
39
+ }
40
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
41
+ return {
42
+ default: obj
43
+ };
44
+ }
45
+ var cache = _getRequireWildcardCache(nodeInterop);
46
+ if (cache && cache.has(obj)) {
47
+ return cache.get(obj);
48
+ }
49
+ var newObj = {
50
+ __proto__: null
51
+ };
52
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
53
+ for(var key in obj){
54
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
55
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
56
+ if (desc && (desc.get || desc.set)) {
57
+ Object.defineProperty(newObj, key, desc);
58
+ } else {
59
+ newObj[key] = obj[key];
60
+ }
61
+ }
62
+ }
63
+ newObj.default = obj;
64
+ if (cache) {
65
+ cache.set(obj, newObj);
66
+ }
67
+ return newObj;
68
+ }
5
69
  global.lng = 'en';
6
- export default {
70
+ const _default = {
7
71
  title: 'Form Elements/Input Calendar',
8
- component: InputCalendar,
72
+ component: _InputCalendar.default,
9
73
  argTypes: {
10
74
  value: {
11
75
  description: 'string (mm.dd.yyyy)'
@@ -13,25 +77,25 @@ export default {
13
77
  }
14
78
  };
15
79
  const Template = (args)=>{
16
- const [date, setDate] = useState('');
17
- const [disabled, setDisabled] = useState(false);
18
- return /*#__PURE__*/ _jsxs(_Fragment, {
80
+ const [date, setDate] = (0, _react.useState)('');
81
+ const [disabled, setDisabled] = (0, _react.useState)(false);
82
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
19
83
  children: [
20
- /*#__PURE__*/ _jsx("input", {}),
21
- /*#__PURE__*/ _jsx(InputCalendar, {
84
+ /*#__PURE__*/ (0, _jsxruntime.jsx)("input", {}),
85
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_InputCalendar.default, {
22
86
  ...args,
23
87
  value: date,
24
88
  onChange: (val)=>setDate(val),
25
89
  disabled: disabled
26
90
  }),
27
- /*#__PURE__*/ _jsx("div", {
91
+ /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
28
92
  style: {
29
93
  display: 'flex',
30
94
  flexFlow: 'row nowrap',
31
95
  justifyContent: 'flex-end',
32
96
  marginTop: '10px'
33
97
  },
34
- children: /*#__PURE__*/ _jsx("button", {
98
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)("button", {
35
99
  style: {
36
100
  border: 'solid 1px black',
37
101
  padding: '10px',
@@ -44,7 +108,7 @@ const Template = (args)=>{
44
108
  ]
45
109
  });
46
110
  };
47
- export const CalendarTemplate = Template.bind({});
111
+ const CalendarTemplate = Template.bind({});
48
112
  CalendarTemplate.args = {
49
113
  minDate: '01/10/1990',
50
114
  maxDate: '04/20/2022'