@mailstep/design-system 0.6.2-beta.6 → 0.6.2-beta.8

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 (368) hide show
  1. package/package.json +6 -6
  2. package/ui/Blocks/CommonGrid/CommonGrid.js +38 -33
  3. package/ui/Blocks/CommonGrid/CommonGridContainer.js +33 -28
  4. package/ui/Blocks/CommonGrid/HoC/withReduxActions.js +10 -8
  5. package/ui/Blocks/CommonGrid/StandardButtons.js +20 -11
  6. package/ui/Blocks/CommonGrid/components/ActionHead/ActionHead.js +26 -21
  7. package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownMenu.js +13 -8
  8. package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownSelect.js +48 -20
  9. package/ui/Blocks/CommonGrid/components/ActionHead/index.js +7 -2
  10. package/ui/Blocks/CommonGrid/components/BooleanSelect/BooleanSelect.js +15 -10
  11. package/ui/Blocks/CommonGrid/components/BooleanSelect/index.js +7 -2
  12. package/ui/Blocks/CommonGrid/components/ButtonMore/ButtonMore.js +19 -14
  13. package/ui/Blocks/CommonGrid/components/ButtonMore/index.js +7 -2
  14. package/ui/Blocks/CommonGrid/components/ColumnFilterCell.js +22 -17
  15. package/ui/Blocks/CommonGrid/components/ColumnTitle/ColumnTitle.js +50 -22
  16. package/ui/Blocks/CommonGrid/components/ColumnTitle/index.js +7 -2
  17. package/ui/Blocks/CommonGrid/components/ColumnTitle.js +13 -8
  18. package/ui/Blocks/CommonGrid/components/ControlButtons/ControlButtons.js +38 -9
  19. package/ui/Blocks/CommonGrid/components/ControlButtons/index.js +7 -2
  20. package/ui/Blocks/CommonGrid/components/DataCell.js +18 -13
  21. package/ui/Blocks/CommonGrid/components/DataRow.js +35 -30
  22. package/ui/Blocks/CommonGrid/components/DatePickerRange/DatePickerRange.js +59 -31
  23. package/ui/Blocks/CommonGrid/components/DatePickerRange/index.js +7 -2
  24. package/ui/Blocks/CommonGrid/components/DatePickerRange/utils/sameDate.js +5 -1
  25. package/ui/Blocks/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.js +41 -12
  26. package/ui/Blocks/CommonGrid/components/ExtraControlButtons/index.js +7 -2
  27. package/ui/Blocks/CommonGrid/components/FilterDropdown.js +13 -8
  28. package/ui/Blocks/CommonGrid/components/FilterRow.js +20 -15
  29. package/ui/Blocks/CommonGrid/components/FloatingButton/FloatingButton.js +23 -17
  30. package/ui/Blocks/CommonGrid/components/FloatingButton/index.js +7 -2
  31. package/ui/Blocks/CommonGrid/components/GridSelect/GridSelect.js +15 -10
  32. package/ui/Blocks/CommonGrid/components/GridSelect/index.js +7 -2
  33. package/ui/Blocks/CommonGrid/components/GroupRow.js +15 -10
  34. package/ui/Blocks/CommonGrid/components/HeadCell.js +19 -14
  35. package/ui/Blocks/CommonGrid/components/HeadRow.js +45 -17
  36. package/ui/Blocks/CommonGrid/components/IconList/IconList.js +18 -12
  37. package/ui/Blocks/CommonGrid/components/IconList/index.js +7 -2
  38. package/ui/Blocks/CommonGrid/components/ManageColumnForm/ManageColumnForm.js +14 -12
  39. package/ui/Blocks/CommonGrid/components/ManageColumnForm/components/ActionRow.js +24 -17
  40. package/ui/Blocks/CommonGrid/components/ManageColumnForm/index.js +7 -2
  41. package/ui/Blocks/CommonGrid/components/NumberRange/NumberRange.js +28 -23
  42. package/ui/Blocks/CommonGrid/components/NumberRange/index.js +7 -2
  43. package/ui/Blocks/CommonGrid/components/NumberRange/types.js +2 -1
  44. package/ui/Blocks/CommonGrid/components/OversizedScroll.js +39 -11
  45. package/ui/Blocks/CommonGrid/components/ReadEditButtonCell/ReadEditButtonCell.js +12 -10
  46. package/ui/Blocks/CommonGrid/components/ReadEditButtonCell/index.js +7 -2
  47. package/ui/Blocks/CommonGrid/components/Resize.js +12 -7
  48. package/ui/Blocks/CommonGrid/components/Table.js +37 -9
  49. package/ui/Blocks/CommonGrid/components/TablePagination/TablePagination.js +40 -12
  50. package/ui/Blocks/CommonGrid/components/TablePagination/index.js +7 -2
  51. package/ui/Blocks/CommonGrid/components/TextRange/TextRange.js +36 -30
  52. package/ui/Blocks/CommonGrid/components/TextRange/index.js +7 -2
  53. package/ui/Blocks/CommonGrid/components/TextRange/types.js +2 -1
  54. package/ui/Blocks/CommonGrid/components/gridCells/BoolIcon.js +41 -12
  55. package/ui/Blocks/CommonGrid/components/gridCells/ButtonInCell.js +11 -4
  56. package/ui/Blocks/CommonGrid/components/gridCells/Date.js +13 -6
  57. package/ui/Blocks/CommonGrid/components/gridCells/DateTime.js +13 -6
  58. package/ui/Blocks/CommonGrid/components/gridCells/EnumInCell.js +16 -9
  59. package/ui/Blocks/CommonGrid/components/gridCells/HoverBubble.js +15 -8
  60. package/ui/Blocks/CommonGrid/components/gridCells/IconButtonInCell.js +15 -8
  61. package/ui/Blocks/CommonGrid/components/gridCells/ImageCell.js +16 -9
  62. package/ui/Blocks/CommonGrid/components/gridCells/LinkInCell.js +9 -3
  63. package/ui/Blocks/CommonGrid/components/gridCells/RemoveItem.js +18 -11
  64. package/ui/Blocks/CommonGrid/components/gridCells/RowActionsCell.js +20 -13
  65. package/ui/Blocks/CommonGrid/components/gridCells/StringJoin.js +12 -5
  66. package/ui/Blocks/CommonGrid/components/gridCells/SwitchInCell.js +11 -4
  67. package/ui/Blocks/CommonGrid/components/gridCells/ToggleCell.js +40 -10
  68. package/ui/Blocks/CommonGrid/components/gridCells/index.js +31 -14
  69. package/ui/Blocks/CommonGrid/components/icons/Edit.js +5 -3
  70. package/ui/Blocks/CommonGrid/components/icons/EyeOpen.js +5 -3
  71. package/ui/Blocks/CommonGrid/components/icons/Sorting.js +8 -3
  72. package/ui/Blocks/CommonGrid/components/utils.js +7 -3
  73. package/ui/Blocks/CommonGrid/hooks/useAddFilter.js +10 -6
  74. package/ui/Blocks/CommonGrid/hooks/useColumnSizes.js +18 -13
  75. package/ui/Blocks/CommonGrid/hooks/useEditReadAsColumn.js +12 -7
  76. package/ui/Blocks/CommonGrid/hooks/useFloatingButton.js +5 -3
  77. package/ui/Blocks/CommonGrid/hooks/useGetGridHeight.js +11 -9
  78. package/ui/Blocks/CommonGrid/hooks/useGridActionTrigger.js +14 -7
  79. package/ui/Blocks/CommonGrid/hooks/useManageColumn.js +8 -6
  80. package/ui/Blocks/CommonGrid/hooks/useRowsKeyControls.js +8 -3
  81. package/ui/Blocks/CommonGrid/hooks/useToggleAllCheckbox.js +8 -4
  82. package/ui/Blocks/CommonGrid/hooks/useUxReset.js +9 -4
  83. package/ui/Blocks/CommonGrid/index.js +51 -10
  84. package/ui/Blocks/CommonGrid/store/index.js +86 -77
  85. package/ui/Blocks/CommonGrid/store/migrateState.js +3 -1
  86. package/ui/Blocks/CommonGrid/storybook/stories/complexWithPaginationAndRedux.stories.js +24 -17
  87. package/ui/Blocks/CommonGrid/storybook/stories/default.stories.js +19 -12
  88. package/ui/Blocks/CommonGrid/storybook/stories/loading.stories.js +15 -8
  89. package/ui/Blocks/CommonGrid/storybook/stories/manyColumnsNoScrollLayout.stories.js +15 -8
  90. package/ui/Blocks/CommonGrid/storybook/stories/manyColumnsNormalLayout.stories.js +15 -8
  91. package/ui/Blocks/CommonGrid/storybook/stories/styledCommonGrid.stories.js +19 -12
  92. package/ui/Blocks/CommonGrid/storybook/stories/withCustomGridActions.stories.js +17 -10
  93. package/ui/Blocks/CommonGrid/storybook/stories/withForcedCheckboxes.stories.js +19 -12
  94. package/ui/Blocks/CommonGrid/storybook/utils/actions.js +11 -4
  95. package/ui/Blocks/CommonGrid/storybook/utils/columnDefinition.js +17 -11
  96. package/ui/Blocks/CommonGrid/storybook/utils/linguiContainer.js +10 -6
  97. package/ui/Blocks/CommonGrid/storybook/utils/utils.js +35 -26
  98. package/ui/Blocks/CommonGrid/storybook/utils/withRedux.js +17 -10
  99. package/ui/Blocks/CommonGrid/storybook/utils/withRouter.js +6 -4
  100. package/ui/Blocks/CommonGrid/storybook/utils/withTheme.js +3 -1
  101. package/ui/Blocks/CommonGrid/styles.js +39 -10
  102. package/ui/Blocks/CommonGrid/translations.js +5 -3
  103. package/ui/Blocks/CommonGrid/types.js +6 -3
  104. package/ui/Blocks/CommonGrid/utils/index.js +40 -23
  105. package/ui/Blocks/CornerDialog/CornerDialog.js +15 -11
  106. package/ui/Blocks/CornerDialog/index.js +4 -2
  107. package/ui/Blocks/CornerDialog/stories/CornerDialog.stories.js +10 -7
  108. package/ui/Blocks/CornerDialog/styles.js +35 -9
  109. package/ui/Blocks/CornerDialog/types.js +2 -1
  110. package/ui/Blocks/CornerDialog/utils.js +5 -2
  111. package/ui/Blocks/HidePrint/HidePrint.js +10 -5
  112. package/ui/Blocks/ImageList/ImageList.js +42 -15
  113. package/ui/Blocks/ImageList/components/AddPhoto/index.js +11 -7
  114. package/ui/Blocks/ImageList/components/AddPhoto/styles.js +29 -3
  115. package/ui/Blocks/ImageList/components/CloseButton/index.js +9 -5
  116. package/ui/Blocks/ImageList/components/CloseButton/styles.js +29 -3
  117. package/ui/Blocks/ImageList/components/ImageElement/index.js +11 -7
  118. package/ui/Blocks/ImageList/components/ImageElement/styles.js +29 -3
  119. package/ui/Blocks/ImageList/components/ImageTag/index.js +12 -5
  120. package/ui/Blocks/ImageList/components/ImageTag/styles.js +8 -2
  121. package/ui/Blocks/ImageList/index.js +4 -2
  122. package/ui/Blocks/ImageList/stories/ImageList.stories.js +9 -6
  123. package/ui/Blocks/ImageList/styles.js +8 -2
  124. package/ui/Blocks/ImageList/types.js +2 -1
  125. package/ui/Blocks/LightBox/LightBox.js +15 -8
  126. package/ui/Blocks/LightBox/hooks/useLightBox.js +9 -5
  127. package/ui/Blocks/LightBox/index.js +7 -3
  128. package/ui/Blocks/LightBox/stories/LightBox.stories.js +7 -4
  129. package/ui/Blocks/LightBox/styles.js +11 -5
  130. package/ui/Blocks/LightBox/types.js +2 -1
  131. package/ui/Blocks/Modal/Modal.js +20 -17
  132. package/ui/Blocks/Modal/hooks/useClickOutside.js +10 -6
  133. package/ui/Blocks/Modal/hooks/useModal.js +10 -6
  134. package/ui/Blocks/Modal/index.js +9 -4
  135. package/ui/Blocks/Modal/stories/Modal.stories.js +48 -42
  136. package/ui/Blocks/Modal/styles.js +46 -20
  137. package/ui/Blocks/Modal/types.js +2 -1
  138. package/ui/Blocks/Modal/utils.js +4 -1
  139. package/ui/Blocks/Popover/index.js +15 -10
  140. package/ui/Blocks/Tabs/TabContent.js +5 -1
  141. package/ui/Blocks/Tabs/Tabs.js +14 -10
  142. package/ui/Blocks/Tabs/hooks/useTabs.js +8 -4
  143. package/ui/Blocks/Tabs/index.js +9 -4
  144. package/ui/Blocks/Tabs/stories/Tabs.stories.js +9 -6
  145. package/ui/Blocks/Tabs/styles.js +34 -8
  146. package/ui/Blocks/Tabs/types.js +2 -1
  147. package/ui/Elements/Alert/Alert.js +12 -10
  148. package/ui/Elements/Alert/index.js +9 -3
  149. package/ui/Elements/Alert/stories/Alert.stories.js +14 -11
  150. package/ui/Elements/Alert/styles.js +20 -14
  151. package/ui/Elements/Alert/types.js +2 -1
  152. package/ui/Elements/Avatar/Avatar.js +14 -7
  153. package/ui/Elements/Avatar/index.js +7 -3
  154. package/ui/Elements/Avatar/stories/Avatar.stories.js +8 -5
  155. package/ui/Elements/Avatar/types.js +2 -1
  156. package/ui/Elements/Badge/Badge.js +38 -13
  157. package/ui/Elements/Badge/index.js +9 -3
  158. package/ui/Elements/Badge/stories/Badge.stories.js +11 -5
  159. package/ui/Elements/BorderedBox/BorderedBox.js +30 -5
  160. package/ui/Elements/BorderedBox/index.js +9 -3
  161. package/ui/Elements/BorderedBox/stories/BorderedBox.stories.js +7 -4
  162. package/ui/Elements/BorderedBox/types.js +2 -1
  163. package/ui/Elements/Button/Button.js +7 -5
  164. package/ui/Elements/Button/index.js +9 -3
  165. package/ui/Elements/Button/stories/Button.stories.js +16 -13
  166. package/ui/Elements/Button/styles.js +14 -8
  167. package/ui/Elements/Button/types.js +2 -1
  168. package/ui/Elements/Card/Card.js +20 -14
  169. package/ui/Elements/Card/index.js +12 -3
  170. package/ui/Elements/Card/stories/Card.stories.js +11 -8
  171. package/ui/Elements/Card/stories/CardComponent.stories.js +12 -6
  172. package/ui/Elements/Card/styles.js +38 -12
  173. package/ui/Elements/Card/types.js +2 -1
  174. package/ui/Elements/DatePicker/DatePicker.js +53 -25
  175. package/ui/Elements/DatePicker/Datetime/DateTime.js +31 -26
  176. package/ui/Elements/DatePicker/Datetime/components/Timepicker.js +47 -20
  177. package/ui/Elements/DatePicker/Datetime/components/ViewNavigation.js +6 -3
  178. package/ui/Elements/DatePicker/Datetime/types.js +2 -1
  179. package/ui/Elements/DatePicker/Datetime/views/DaysView.js +18 -13
  180. package/ui/Elements/DatePicker/Datetime/views/MonthsView.js +14 -9
  181. package/ui/Elements/DatePicker/Datetime/views/YearsView.js +14 -9
  182. package/ui/Elements/DatePicker/index.js +7 -2
  183. package/ui/Elements/DatePicker/styles.js +29 -3
  184. package/ui/Elements/Dropdown/Dropdown.js +15 -10
  185. package/ui/Elements/Dropdown/index.js +9 -3
  186. package/ui/Elements/Dropdown/stories/Dropdown.stories.js +10 -4
  187. package/ui/Elements/Dropdown/types.js +2 -1
  188. package/ui/Elements/DropdownMenu/DropdownMenu.js +15 -8
  189. package/ui/Elements/DropdownMenu/components/DefaultItem.js +32 -7
  190. package/ui/Elements/DropdownMenu/components/MenuItem.js +15 -10
  191. package/ui/Elements/DropdownMenu/components/MenuList.js +10 -5
  192. package/ui/Elements/DropdownMenu/index.js +5 -1
  193. package/ui/Elements/DropdownMenu/types.js +2 -1
  194. package/ui/Elements/DropdownSelect/DropdownSelect.js +50 -21
  195. package/ui/Elements/DropdownSelect/index.js +10 -3
  196. package/ui/Elements/ErrorMessage/ErrorMessage.js +34 -9
  197. package/ui/Elements/ErrorMessage/index.js +9 -3
  198. package/ui/Elements/ErrorMessage/stories/ErrorMessage.stories.js +11 -5
  199. package/ui/Elements/ErrorMessage/types.js +2 -1
  200. package/ui/Elements/HighlightBox/HighlightBox.js +38 -12
  201. package/ui/Elements/HighlightBox/index.js +7 -2
  202. package/ui/Elements/Icon/BadgeIcon.js +17 -10
  203. package/ui/Elements/Icon/Icon.js +245 -216
  204. package/ui/Elements/Icon/icons/AddPhoto.js +6 -2
  205. package/ui/Elements/Icon/icons/BarcodeScan.js +6 -2
  206. package/ui/Elements/Icon/icons/Box.js +6 -2
  207. package/ui/Elements/Icon/icons/Calendar.js +6 -2
  208. package/ui/Elements/Icon/icons/Cancel.js +6 -2
  209. package/ui/Elements/Icon/icons/CheckedBox.js +6 -2
  210. package/ui/Elements/Icon/icons/Company.js +6 -2
  211. package/ui/Elements/Icon/icons/Complaint.js +6 -2
  212. package/ui/Elements/Icon/icons/Consolidation.js +6 -2
  213. package/ui/Elements/Icon/icons/Dispatch.js +6 -2
  214. package/ui/Elements/Icon/icons/EmptyRack.js +6 -2
  215. package/ui/Elements/Icon/icons/Expeditions.js +6 -2
  216. package/ui/Elements/Icon/icons/FlagCZ.js +6 -2
  217. package/ui/Elements/Icon/icons/FlagEL.js +6 -2
  218. package/ui/Elements/Icon/icons/FlagESP.js +6 -2
  219. package/ui/Elements/Icon/icons/FlagITA.js +6 -2
  220. package/ui/Elements/Icon/icons/FlagRUS.js +6 -2
  221. package/ui/Elements/Icon/icons/FlagSVK.js +6 -2
  222. package/ui/Elements/Icon/icons/FlagUSA.js +6 -2
  223. package/ui/Elements/Icon/icons/Gift.js +6 -2
  224. package/ui/Elements/Icon/icons/Group.js +6 -2
  225. package/ui/Elements/Icon/icons/HamburgerMenu.js +6 -2
  226. package/ui/Elements/Icon/icons/HelpCircle1.js +6 -2
  227. package/ui/Elements/Icon/icons/ImagePlaceholder.js +6 -2
  228. package/ui/Elements/Icon/icons/Income.js +6 -2
  229. package/ui/Elements/Icon/icons/Info.js +6 -2
  230. package/ui/Elements/Icon/icons/Integrations.js +6 -2
  231. package/ui/Elements/Icon/icons/Inventory.js +6 -2
  232. package/ui/Elements/Icon/icons/Inventory2.js +6 -2
  233. package/ui/Elements/Icon/icons/Link.js +6 -2
  234. package/ui/Elements/Icon/icons/Location.js +6 -2
  235. package/ui/Elements/Icon/icons/Logout1.js +6 -2
  236. package/ui/Elements/Icon/icons/MakePhoto.js +6 -2
  237. package/ui/Elements/Icon/icons/MenuItems.js +6 -2
  238. package/ui/Elements/Icon/icons/MobileCancel.js +6 -2
  239. package/ui/Elements/Icon/icons/Notification2.js +6 -2
  240. package/ui/Elements/Icon/icons/OpenBox.js +6 -2
  241. package/ui/Elements/Icon/icons/Plus1.js +6 -2
  242. package/ui/Elements/Icon/icons/Print.js +6 -2
  243. package/ui/Elements/Icon/icons/Product.js +6 -2
  244. package/ui/Elements/Icon/icons/Products.js +6 -2
  245. package/ui/Elements/Icon/icons/Profile.js +6 -2
  246. package/ui/Elements/Icon/icons/Puzzle1.js +6 -2
  247. package/ui/Elements/Icon/icons/QRCode.js +6 -2
  248. package/ui/Elements/Icon/icons/Rack.js +6 -2
  249. package/ui/Elements/Icon/icons/Return.js +6 -2
  250. package/ui/Elements/Icon/icons/Rows.js +6 -2
  251. package/ui/Elements/Icon/icons/Settings2.js +6 -2
  252. package/ui/Elements/Icon/icons/ShoppingBag.js +6 -2
  253. package/ui/Elements/Icon/icons/ThreeDots.js +6 -2
  254. package/ui/Elements/Icon/icons/Transfer.js +6 -2
  255. package/ui/Elements/Icon/icons/Truck.js +6 -2
  256. package/ui/Elements/Icon/icons/TwoBoxes.js +6 -2
  257. package/ui/Elements/Icon/icons/TwoCheckedBoxes.js +6 -2
  258. package/ui/Elements/Icon/icons/TwoUsers.js +6 -2
  259. package/ui/Elements/Icon/icons/index.js +114 -55
  260. package/ui/Elements/Icon/index.js +26 -5
  261. package/ui/Elements/Icon/stories/BadgeIcon.stories.js +12 -6
  262. package/ui/Elements/Icon/stories/Icon.stories.js +12 -9
  263. package/ui/Elements/Icon/types.js +2 -1
  264. package/ui/Elements/Image/Image.js +6 -4
  265. package/ui/Elements/Image/index.js +9 -3
  266. package/ui/Elements/Image/stories/Image.stories.js +15 -9
  267. package/ui/Elements/Image/types.js +2 -1
  268. package/ui/Elements/Label/Label.js +35 -9
  269. package/ui/Elements/Label/index.js +8 -3
  270. package/ui/Elements/Label/stories/Label.stories.js +8 -5
  271. package/ui/Elements/Line/Line.js +10 -5
  272. package/ui/Elements/Line/index.js +9 -3
  273. package/ui/Elements/Line/stories/Line.stories.js +16 -10
  274. package/ui/Elements/Line/types.js +2 -1
  275. package/ui/Elements/Link/Link.js +39 -14
  276. package/ui/Elements/Link/index.js +9 -3
  277. package/ui/Elements/Link/stories/Link.stories.js +13 -10
  278. package/ui/Elements/Logo/Logo.js +30 -25
  279. package/ui/Elements/Logo/index.js +9 -3
  280. package/ui/Elements/Logo/stories/Logo.stories.js +24 -18
  281. package/ui/Elements/Logo/types.js +2 -1
  282. package/ui/Elements/MultiSelect/MultiSelect.js +9 -4
  283. package/ui/Elements/MultiSelect/index.js +7 -2
  284. package/ui/Elements/Pagination/Pagination.js +9 -7
  285. package/ui/Elements/Pagination/index.js +9 -3
  286. package/ui/Elements/Pagination/stories/Pagination.stories.js +8 -5
  287. package/ui/Elements/Pagination/styled.js +41 -12
  288. package/ui/Elements/Portal/index.js +14 -7
  289. package/ui/Elements/ProgressBar/ProgressBar.js +6 -4
  290. package/ui/Elements/ProgressBar/index.js +9 -3
  291. package/ui/Elements/ProgressBar/stories/ProgressBar.stories.js +12 -6
  292. package/ui/Elements/ProgressBar/styles.js +38 -12
  293. package/ui/Elements/Select/Select.js +25 -20
  294. package/ui/Elements/Select/index.js +7 -2
  295. package/ui/Elements/Select/styles.js +13 -7
  296. package/ui/Elements/Select/themes/CustomComponents.js +72 -37
  297. package/ui/Elements/Select/themes/baseStyles.js +12 -6
  298. package/ui/Elements/Select/themes/formStyles.js +27 -23
  299. package/ui/Elements/Select/themes/index.js +20 -16
  300. package/ui/Elements/Select/types.js +2 -1
  301. package/ui/Elements/SimpleLink/SimpleLink.js +31 -6
  302. package/ui/Elements/SimpleLink/index.js +9 -3
  303. package/ui/Elements/SingleSelect/SingleSelect.js +32 -27
  304. package/ui/Elements/SingleSelect/index.js +7 -2
  305. package/ui/Elements/SpaceAround/SpaceAround.js +36 -11
  306. package/ui/Elements/SpaceAround/index.js +9 -3
  307. package/ui/Elements/SpaceAround/stories/SpaceAround.stories.js +8 -5
  308. package/ui/Elements/SpaceAround/types.js +2 -1
  309. package/ui/Elements/Spinner/Spinner.js +12 -8
  310. package/ui/Elements/Spinner/index.js +9 -3
  311. package/ui/Elements/Spinner/stories/Spinner.stories.js +16 -13
  312. package/ui/Elements/Spinner/styles.js +33 -7
  313. package/ui/Elements/Spinner/types.js +2 -1
  314. package/ui/Elements/Tag/Tag.js +31 -6
  315. package/ui/Elements/Tag/index.js +10 -3
  316. package/ui/Elements/Tag/palletes.js +4 -1
  317. package/ui/Elements/Tag/stories/Tag.stories.js +21 -15
  318. package/ui/Elements/Tag/stories/components/predefinedTags.js +11 -6
  319. package/ui/Elements/Tag/types.js +2 -1
  320. package/ui/Elements/Text/Text.js +6 -4
  321. package/ui/Elements/Text/index.js +8 -2
  322. package/ui/Elements/Text/stories/Text.stories.js +15 -9
  323. package/ui/Elements/Text/types.js +2 -1
  324. package/ui/Elements/Toast/Toast.js +15 -10
  325. package/ui/Elements/Toast/index.js +9 -3
  326. package/ui/Elements/Toggle/Toggle.js +38 -13
  327. package/ui/Elements/Toggle/index.js +9 -3
  328. package/ui/Elements/Toggle/stories/Toggle.stories.js +13 -7
  329. package/ui/Elements/Toggle/types.js +2 -1
  330. package/ui/Elements/Typography/Typography.js +44 -28
  331. package/ui/Elements/Typography/index.js +19 -3
  332. package/ui/Elements/Typography/stories/Typography.stories.js +18 -15
  333. package/ui/Forms/Checkbox/Checkbox.js +11 -9
  334. package/ui/Forms/Checkbox/index.js +9 -3
  335. package/ui/Forms/Checkbox/stories/Checkbox.stories.js +13 -7
  336. package/ui/Forms/Checkbox/styles.js +32 -6
  337. package/ui/Forms/Checkbox/types.js +2 -1
  338. package/ui/Forms/Input/Input.js +20 -16
  339. package/ui/Forms/Input/index.js +6 -3
  340. package/ui/Forms/Input/stories/Input.stories.js +14 -11
  341. package/ui/Forms/Input/styles.js +46 -20
  342. package/ui/Forms/Input/types.js +2 -1
  343. package/ui/Forms/RadioButton/RadioButton.js +8 -6
  344. package/ui/Forms/RadioButton/index.js +9 -3
  345. package/ui/Forms/RadioButton/stories/RadioButton.stories.js +13 -7
  346. package/ui/Forms/RadioButton/styles.js +13 -7
  347. package/ui/Forms/RadioButton/types.js +2 -1
  348. package/ui/Forms/TextArea/TextArea.js +13 -8
  349. package/ui/Forms/TextArea/index.js +7 -2
  350. package/ui/Forms/TextArea/styles.js +39 -13
  351. package/ui/System/Fonts/index.js +14 -9
  352. package/ui/ThemeProvider/ThemeProvider.js +13 -7
  353. package/ui/ThemeProvider/index.js +25 -5
  354. package/ui/ThemeProvider/themes/default.js +3 -1
  355. package/ui/ThemeProvider/themes/index.js +12 -7
  356. package/ui/ThemeProvider/themes/light.js +3 -1
  357. package/ui/ThemeProvider/themes/mailwise.js +3 -1
  358. package/ui/ThemeProvider/types.js +2 -1
  359. package/ui/index.es.js +23359 -19683
  360. package/ui/index.js +146 -85
  361. package/ui/index.umd.js +510 -484
  362. package/ui/utils/CreateRgba/createRgba.js +12 -5
  363. package/ui/utils/CreateRgba/types.js +2 -1
  364. package/ui/utils/KeyPress/KeyPress.js +6 -4
  365. package/ui/utils/KeyPress/KeyPress.stories.js +12 -6
  366. package/ui/utils/KeyPress/index.js +7 -2
  367. package/ui/utils/KeyPress/types.js +2 -1
  368. package/ui/utils/index.js +13 -6
@@ -1,32 +1,37 @@
1
- import React from 'react';
2
- import sum from 'lodash/sum';
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var react_1 = __importDefault(require("react"));
7
+ var sum_1 = __importDefault(require("lodash/sum"));
3
8
  var useColumnSizes = function (displayColumnsDefinitions, storeColumnsWidth, storeColumnsWidthVariant, setColumnWidth, columnLayout, minColumnWidth) {
4
9
  /**
5
10
  * decorate grid resize with layout and reset grid widths if layout changes
6
11
  */
7
12
  if (minColumnWidth === void 0) { minColumnWidth = 50; }
8
- var handleSetColumnWidth = React.useCallback(function (columnWidth) { return setColumnWidth(columnWidth, columnLayout); }, [columnLayout, setColumnWidth]);
9
- React.useEffect(function () {
13
+ var handleSetColumnWidth = react_1.default.useCallback(function (columnWidth) { return setColumnWidth(columnWidth, columnLayout); }, [columnLayout, setColumnWidth]);
14
+ react_1.default.useEffect(function () {
10
15
  if (storeColumnsWidthVariant != columnLayout)
11
16
  handleSetColumnWidth(null);
12
17
  }, [columnLayout, storeColumnsWidthVariant, handleSetColumnWidth]);
13
18
  /**
14
19
  * base width of each displayed column and of all displayed columns put together
15
20
  */
16
- var displayColumnsWidth = React.useMemo(function () {
21
+ var displayColumnsWidth = react_1.default.useMemo(function () {
17
22
  var displayColumnsWidth = {};
18
23
  displayColumnsDefinitions.forEach(function (column) { return (displayColumnsWidth[column.name] = (storeColumnsWidth === null || storeColumnsWidth === void 0 ? void 0 : storeColumnsWidth[column.name]) || column.flexBasis); });
19
24
  return displayColumnsWidth;
20
25
  }, [displayColumnsDefinitions, storeColumnsWidth]);
21
- var totalColumnsWidth = React.useMemo(function () {
22
- return sum(Object.values(displayColumnsWidth));
26
+ var totalColumnsWidth = react_1.default.useMemo(function () {
27
+ return (0, sum_1.default)(Object.values(displayColumnsWidth));
23
28
  }, [displayColumnsWidth]);
24
29
  /**
25
30
  * handling of remaining space
26
31
  */
27
32
  // TODO optimize better
28
- var gridBoxRef = React.useRef(null);
29
- var testAdjustLastColumn = React.useCallback(function () {
33
+ var gridBoxRef = react_1.default.useRef(null);
34
+ var testAdjustLastColumn = react_1.default.useCallback(function () {
30
35
  var _a;
31
36
  var _b;
32
37
  var gridWidth = ((_b = gridBoxRef === null || gridBoxRef === void 0 ? void 0 : gridBoxRef.current) === null || _b === void 0 ? void 0 : _b.clientWidth) || null;
@@ -38,17 +43,17 @@ var useColumnSizes = function (displayColumnsDefinitions, storeColumnsWidth, sto
38
43
  }
39
44
  }
40
45
  }, [columnLayout, displayColumnsDefinitions, displayColumnsWidth, gridBoxRef, handleSetColumnWidth, totalColumnsWidth]);
41
- React.useEffect(function () {
46
+ react_1.default.useEffect(function () {
42
47
  testAdjustLastColumn();
43
48
  }, [testAdjustLastColumn]);
44
- React.useLayoutEffect(function () {
49
+ react_1.default.useLayoutEffect(function () {
45
50
  window.addEventListener('resize', testAdjustLastColumn);
46
51
  return function () { return window.removeEventListener('resize', testAdjustLastColumn); };
47
52
  }, [testAdjustLastColumn]);
48
53
  /**
49
54
  * resizing of columns
50
55
  */
51
- var handleResizeDrag = React.useCallback(function (columnName, width) {
56
+ var handleResizeDrag = react_1.default.useCallback(function (columnName, width) {
52
57
  var _a, _b;
53
58
  var _c;
54
59
  var i = displayColumnsDefinitions.findIndex(function (_a) {
@@ -80,4 +85,4 @@ var useColumnSizes = function (displayColumnsDefinitions, storeColumnsWidth, sto
80
85
  }, [displayColumnsDefinitions, columnLayout, displayColumnsWidth, totalColumnsWidth, minColumnWidth, handleSetColumnWidth]);
81
86
  return { totalColumnsWidth: totalColumnsWidth, gridBoxRef: gridBoxRef, displayColumnsWidth: displayColumnsWidth, handleResizeDrag: handleResizeDrag };
82
87
  };
83
- export default useColumnSizes;
88
+ exports.default = useColumnSizes;
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2
3
  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3
4
  if (ar || !(i in from)) {
@@ -7,8 +8,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
7
8
  }
8
9
  return to.concat(ar || Array.prototype.slice.call(from));
9
10
  };
10
- import { useCallback, useMemo } from 'react';
11
- import getReadEditButtonCell from '../components/ReadEditButtonCell/index.js';
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ var react_1 = require("react");
16
+ var ReadEditButtonCell_1 = __importDefault(require("../components/ReadEditButtonCell"));
12
17
  /**
13
18
  * Because in new design we are displaying lot of the controlls differently, including read and edit buttons in grid,
14
19
  * easiest way to make all the definition changes is to just overwrite the here once, instead of modifying every single grid (33 instances atm).
@@ -16,7 +21,7 @@ import getReadEditButtonCell from '../components/ReadEditButtonCell/index.js';
16
21
  * */
17
22
  var useEditReadAsColumn = function (props) {
18
23
  var onRowAction = props.onRowAction, actionColumnDefinition = props.actionColumnDefinition, columnsDefinitions = props.columnsDefinitions, onRowEditClick = props.onRowEditClick, onRowReadClick = props.onRowReadClick;
19
- var modifiedActionColumnDefinition = useMemo(function () {
24
+ var modifiedActionColumnDefinition = (0, react_1.useMemo)(function () {
20
25
  var _a;
21
26
  if ((actionColumnDefinition === null || actionColumnDefinition === void 0 ? void 0 : actionColumnDefinition.forceCheckboxes) || ((_a = actionColumnDefinition === null || actionColumnDefinition === void 0 ? void 0 : actionColumnDefinition.actionOptions) === null || _a === void 0 ? void 0 : _a.length)) {
22
27
  // note: this also removes actions, because we render action trigger outside the grid anyway
@@ -29,7 +34,7 @@ var useEditReadAsColumn = function (props) {
29
34
  return undefined;
30
35
  }
31
36
  }, [actionColumnDefinition]);
32
- var modifiedOnRowAction = useCallback(function (id, field, value) {
37
+ var modifiedOnRowAction = (0, react_1.useCallback)(function (id, field, value) {
33
38
  if (field === 'row_edit' || field === 'row_read') {
34
39
  if (field === 'row_edit' && onRowEditClick)
35
40
  onRowEditClick(id, value);
@@ -41,8 +46,8 @@ var useEditReadAsColumn = function (props) {
41
46
  }
42
47
  }, [onRowAction, onRowEditClick, onRowReadClick]);
43
48
  // TODO Entire logic of row edit / row read need to be completely refactored.
44
- var CellComponent = useMemo(function () { return getReadEditButtonCell(actionColumnDefinition); }, [actionColumnDefinition]);
45
- var modifiedColumnsDefinitions = useMemo(function () {
49
+ var CellComponent = (0, react_1.useMemo)(function () { return (0, ReadEditButtonCell_1.default)(actionColumnDefinition); }, [actionColumnDefinition]);
50
+ var modifiedColumnsDefinitions = (0, react_1.useMemo)(function () {
46
51
  if ((actionColumnDefinition === null || actionColumnDefinition === void 0 ? void 0 : actionColumnDefinition.canRowEdit) !== undefined || (actionColumnDefinition === null || actionColumnDefinition === void 0 ? void 0 : actionColumnDefinition.canRowRead) !== undefined) {
47
52
  return __spreadArray(__spreadArray([], columnsDefinitions, true), [
48
53
  {
@@ -67,4 +72,4 @@ var useEditReadAsColumn = function (props) {
67
72
  onRowAction: modifiedOnRowAction,
68
73
  };
69
74
  };
70
- export default useEditReadAsColumn;
75
+ exports.default = useEditReadAsColumn;
@@ -1,6 +1,8 @@
1
- import { useMemo } from 'react';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var react_1 = require("react");
2
4
  var useFloatingButton = function (hasPermission, onClick, options, onSelect) {
3
- return useMemo(function () {
5
+ return (0, react_1.useMemo)(function () {
4
6
  if (!hasPermission)
5
7
  return;
6
8
  return {
@@ -10,4 +12,4 @@ var useFloatingButton = function (hasPermission, onClick, options, onSelect) {
10
12
  };
11
13
  }, [hasPermission, onClick, options, onSelect]);
12
14
  };
13
- export default useFloatingButton;
15
+ exports.default = useFloatingButton;
@@ -1,11 +1,13 @@
1
- import { useEffect, useMemo, useRef, useState } from 'react';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var react_1 = require("react");
2
4
  var useGetGridHeight = function () {
3
- var _a = useState(window.innerHeight), windowHeight = _a[0], setWindowHeight = _a[1];
4
- var _b = useState(0), topDistance = _b[0], setTopDistance = _b[1];
5
- var _c = useState(0), bottomDistance = _c[0], setBottomDistance = _c[1];
6
- var gridRef = useRef(null);
7
- var paginationRef = useRef(null);
8
- useEffect(function () {
5
+ var _a = (0, react_1.useState)(window.innerHeight), windowHeight = _a[0], setWindowHeight = _a[1];
6
+ var _b = (0, react_1.useState)(0), topDistance = _b[0], setTopDistance = _b[1];
7
+ var _c = (0, react_1.useState)(0), bottomDistance = _c[0], setBottomDistance = _c[1];
8
+ var gridRef = (0, react_1.useRef)(null);
9
+ var paginationRef = (0, react_1.useRef)(null);
10
+ (0, react_1.useEffect)(function () {
9
11
  var handleResize = function () {
10
12
  var _a, _b;
11
13
  setTopDistance(((_a = gridRef.current) === null || _a === void 0 ? void 0 : _a.offsetTop) || 0);
@@ -18,7 +20,7 @@ var useGetGridHeight = function () {
18
20
  window.removeEventListener('resize', handleResize);
19
21
  };
20
22
  }, []);
21
- var gridHeight = useMemo(function () {
23
+ var gridHeight = (0, react_1.useMemo)(function () {
22
24
  var calculatedHeight = windowHeight - topDistance - bottomDistance;
23
25
  if (calculatedHeight !== windowHeight && calculatedHeight > 360) {
24
26
  return calculatedHeight - 25;
@@ -30,4 +32,4 @@ var useGetGridHeight = function () {
30
32
  }, [bottomDistance, topDistance, windowHeight]);
31
33
  return { gridHeight: gridHeight, gridRef: gridRef, paginationRef: paginationRef };
32
34
  };
33
- export default useGetGridHeight;
35
+ exports.default = useGetGridHeight;
@@ -1,25 +1,32 @@
1
- import { useMemo, useCallback } from 'react';
2
- import find from 'lodash/find';
3
- export var useGridActionTrigger = function (rowsData, uxState, actionOptions, onBatchAction) {
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useGridActionTrigger = void 0;
7
+ var react_1 = require("react");
8
+ var find_1 = __importDefault(require("lodash/find"));
9
+ var useGridActionTrigger = function (rowsData, uxState, actionOptions, onBatchAction) {
4
10
  if (actionOptions === void 0) { actionOptions = []; }
5
- var actionRows = useMemo(function () {
11
+ var actionRows = (0, react_1.useMemo)(function () {
6
12
  return (rowsData || []).filter(function (row) { var _a; return (_a = uxState.checkedRows) === null || _a === void 0 ? void 0 : _a[row.id]; });
7
13
  }, [uxState, rowsData]);
8
- var enabledActions = useMemo(function () {
14
+ var enabledActions = (0, react_1.useMemo)(function () {
9
15
  var actionsOptions = actionOptions || [];
10
16
  return actionsOptions.filter(function (action) {
11
17
  if (action.isEnabled) {
12
18
  return action.isEnabled(actionRows);
13
19
  }
14
20
  else {
15
- return uxState.checkedRows && find(uxState.checkedRows, Boolean);
21
+ return uxState.checkedRows && (0, find_1.default)(uxState.checkedRows, Boolean);
16
22
  }
17
23
  });
18
24
  }, [uxState, actionRows, actionOptions]);
19
- var handleBatchAction = useCallback(function (value) {
25
+ var handleBatchAction = (0, react_1.useCallback)(function (value) {
20
26
  var actionsOptions = actionOptions || [];
21
27
  var action = actionsOptions.find(function (option) { return option.value == value; });
22
28
  action && onBatchAction && onBatchAction(action, actionRows);
23
29
  }, [actionOptions, onBatchAction, actionRows]);
24
30
  return [enabledActions, handleBatchAction];
25
31
  };
32
+ exports.useGridActionTrigger = useGridActionTrigger;
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __assign = (this && this.__assign) || function () {
2
3
  __assign = Object.assign || function(t) {
3
4
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -9,26 +10,27 @@ var __assign = (this && this.__assign) || function () {
9
10
  };
10
11
  return __assign.apply(this, arguments);
11
12
  };
12
- import { useCallback, useMemo, useState } from 'react';
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ var react_1 = require("react");
13
15
  var useManageColumn = function (_a) {
14
16
  var columns = _a.columns, gridSelectors = _a.gridSelectors, gridActions = _a.gridActions, onClose = _a.onClose;
15
17
  var resetGrid = gridActions.resetGrid, setColumnConfig = gridActions.setColumnConfig;
16
18
  var columnConfig = gridSelectors.columnConfig;
17
- var _b = useState(__assign({}, columnConfig)), columnsConfigOptions = _b[0], setColumnsConfigOptions = _b[1];
18
- var columnsConfigValues = useMemo(function () {
19
+ var _b = (0, react_1.useState)(__assign({}, columnConfig)), columnsConfigOptions = _b[0], setColumnsConfigOptions = _b[1];
20
+ var columnsConfigValues = (0, react_1.useMemo)(function () {
19
21
  return columns === null || columns === void 0 ? void 0 : columns.filter(function (column) {
20
22
  var _a;
21
23
  var isHidden = (_a = columnConfig === null || columnConfig === void 0 ? void 0 : columnConfig[column.name]) === null || _a === void 0 ? void 0 : _a.isHidden;
22
24
  return (column === null || column === void 0 ? void 0 : column.alwaysOn) || typeof isHidden === 'boolean' ? !isHidden : !(column === null || column === void 0 ? void 0 : column.defaultHidden);
23
25
  }).map(function (column) { return column.name; });
24
26
  }, [columnConfig, columns]);
25
- var onConfirmForm = useCallback(function () {
27
+ var onConfirmForm = (0, react_1.useCallback)(function () {
26
28
  (setColumnConfig === null || setColumnConfig === void 0 ? void 0 : setColumnConfig(columnsConfigOptions)) && (onClose === null || onClose === void 0 ? void 0 : onClose());
27
29
  }, [columnsConfigOptions, onClose, setColumnConfig]);
28
- var resetColumnConfig = useCallback(function () {
30
+ var resetColumnConfig = (0, react_1.useCallback)(function () {
29
31
  (resetGrid === null || resetGrid === void 0 ? void 0 : resetGrid()) && (onClose === null || onClose === void 0 ? void 0 : onClose());
30
32
  setColumnsConfigOptions(columnConfig || {});
31
33
  }, [onClose, resetGrid]);
32
34
  return { columnsConfigValues: columnsConfigValues, setColumnsConfigOptions: setColumnsConfigOptions, onConfirmForm: onConfirmForm, resetColumnConfig: resetColumnConfig };
33
35
  };
34
- export default useManageColumn;
36
+ exports.default = useManageColumn;
@@ -1,6 +1,11 @@
1
- import React from 'react';
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var react_1 = __importDefault(require("react"));
2
7
  var useRowsKeyControls = function (rowsData, uxState, onUxChange) {
3
- return React.useCallback(function (e) {
8
+ return react_1.default.useCallback(function (e) {
4
9
  var _a, _b;
5
10
  var selectedRowId = uxState.selectedRow;
6
11
  if (!selectedRowId)
@@ -18,4 +23,4 @@ var useRowsKeyControls = function (rowsData, uxState, onUxChange) {
18
23
  onUxChange === null || onUxChange === void 0 ? void 0 : onUxChange('selectedRow', null);
19
24
  }, [uxState, rowsData, onUxChange]);
20
25
  };
21
- export default useRowsKeyControls;
26
+ exports.default = useRowsKeyControls;
@@ -1,7 +1,10 @@
1
- import { useMemo, useCallback } from 'react';
2
- export var useToggleAllCheckbox = function (rowsData, uxState, handleUxChange) {
3
- var allChecked = useMemo(function () { return (rowsData || []).length >= 1 && rowsData.every(function (row) { var _a; return (_a = uxState.checkedRows) === null || _a === void 0 ? void 0 : _a[row.id]; }); }, [rowsData, uxState.checkedRows]);
4
- var toggleAllHandler = useCallback(function () {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useToggleAllCheckbox = void 0;
4
+ var react_1 = require("react");
5
+ var useToggleAllCheckbox = function (rowsData, uxState, handleUxChange) {
6
+ var allChecked = (0, react_1.useMemo)(function () { return (rowsData || []).length >= 1 && rowsData.every(function (row) { var _a; return (_a = uxState.checkedRows) === null || _a === void 0 ? void 0 : _a[row.id]; }); }, [rowsData, uxState.checkedRows]);
7
+ var toggleAllHandler = (0, react_1.useCallback)(function () {
5
8
  var checkedRows = {};
6
9
  // if check all is not check, we check all
7
10
  if (!allChecked && rowsData) {
@@ -13,3 +16,4 @@ export var useToggleAllCheckbox = function (rowsData, uxState, handleUxChange) {
13
16
  }, [handleUxChange, rowsData, allChecked]);
14
17
  return [allChecked, toggleAllHandler];
15
18
  };
19
+ exports.useToggleAllCheckbox = useToggleAllCheckbox;
@@ -1,7 +1,12 @@
1
- import React from 'react';
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var react_1 = __importDefault(require("react"));
2
7
  var useUxReset = function (rowsData, uxState, clearUxState) {
3
- var _a = React.useState('|'), previous = _a[0], setPrevious = _a[1];
4
- React.useEffect(function () {
8
+ var _a = react_1.default.useState('|'), previous = _a[0], setPrevious = _a[1];
9
+ react_1.default.useEffect(function () {
5
10
  var ids = (rowsData || []).map(function (row) { return row.id; }).join('|');
6
11
  // clear uxState if listed rows change and uxState is not clear already
7
12
  if (ids !== previous) {
@@ -12,4 +17,4 @@ var useUxReset = function (rowsData, uxState, clearUxState) {
12
17
  setPrevious(ids);
13
18
  }, [rowsData]); // eslint-disable-line react-hooks/exhaustive-deps
14
19
  };
15
- export default useUxReset;
20
+ exports.default = useUxReset;
@@ -1,10 +1,51 @@
1
- import CommonGrid from './CommonGridContainer.js';
2
- import withReduxActions from './HoC/withReduxActions.js';
3
- import reducer, { actionPrefix, createActions, createSelectors, createFullSelector, actionTypes } from './store/index.js';
4
- import useFloatingButton from './hooks/useFloatingButton.js';
5
- import * as Types from './types.js';
6
- export * from './StandardButtons.js';
7
- export * from './components/gridCells/index.js';
8
- import { useAddFilter } from './hooks/useAddFilter.js';
9
- export default CommonGrid;
10
- export { withReduxActions, reducer, actionPrefix, actionTypes, createActions, createSelectors, createFullSelector, Types, useFloatingButton, useAddFilter, };
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
+ };
28
+ var __importDefault = (this && this.__importDefault) || function (mod) {
29
+ return (mod && mod.__esModule) ? mod : { "default": mod };
30
+ };
31
+ Object.defineProperty(exports, "__esModule", { value: true });
32
+ exports.useAddFilter = exports.useFloatingButton = exports.Types = exports.createFullSelector = exports.createSelectors = exports.createActions = exports.actionTypes = exports.actionPrefix = exports.reducer = exports.withReduxActions = void 0;
33
+ var CommonGridContainer_1 = __importDefault(require("./CommonGridContainer"));
34
+ var withReduxActions_1 = __importDefault(require("./HoC/withReduxActions"));
35
+ exports.withReduxActions = withReduxActions_1.default;
36
+ var store_1 = __importStar(require("./store"));
37
+ exports.reducer = store_1.default;
38
+ Object.defineProperty(exports, "actionPrefix", { enumerable: true, get: function () { return store_1.actionPrefix; } });
39
+ Object.defineProperty(exports, "createActions", { enumerable: true, get: function () { return store_1.createActions; } });
40
+ Object.defineProperty(exports, "createSelectors", { enumerable: true, get: function () { return store_1.createSelectors; } });
41
+ Object.defineProperty(exports, "createFullSelector", { enumerable: true, get: function () { return store_1.createFullSelector; } });
42
+ Object.defineProperty(exports, "actionTypes", { enumerable: true, get: function () { return store_1.actionTypes; } });
43
+ var useFloatingButton_1 = __importDefault(require("./hooks/useFloatingButton"));
44
+ exports.useFloatingButton = useFloatingButton_1.default;
45
+ var Types = __importStar(require("./types"));
46
+ exports.Types = Types;
47
+ __exportStar(require("./StandardButtons"), exports);
48
+ __exportStar(require("./components/gridCells"), exports);
49
+ var useAddFilter_1 = require("./hooks/useAddFilter");
50
+ Object.defineProperty(exports, "useAddFilter", { enumerable: true, get: function () { return useAddFilter_1.useAddFilter; } });
51
+ exports.default = CommonGridContainer_1.default;