@mailstep/design-system 0.8.26-beta.7 → 0.8.27-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (563) hide show
  1. package/README.md +76 -76
  2. package/package.json +146 -146
  3. package/ui/Blocks/CommonGrid/CommonGrid.js +104 -152
  4. package/ui/Blocks/CommonGrid/CommonGridContainer.js +187 -368
  5. package/ui/Blocks/CommonGrid/HoC/withProps.js +9 -37
  6. package/ui/Blocks/CommonGrid/HoC/withReduxActions.js +29 -46
  7. package/ui/Blocks/CommonGrid/components/ActionHead/ActionHead.js +105 -196
  8. package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownMenu.js +37 -49
  9. package/ui/Blocks/CommonGrid/components/ActionHead/components/ActionDropdownSelect.js +76 -162
  10. package/ui/Blocks/CommonGrid/components/ActionHead/index.js +3 -1
  11. package/ui/Blocks/CommonGrid/components/ButtonMore/ButtonMore.js +43 -124
  12. package/ui/Blocks/CommonGrid/components/ButtonMore/index.js +3 -1
  13. package/ui/Blocks/CommonGrid/components/ColumnFilterCell.js +50 -112
  14. package/ui/Blocks/CommonGrid/components/ColumnTitle/ColumnTitle.js +130 -251
  15. package/ui/Blocks/CommonGrid/components/ColumnTitle/index.js +3 -1
  16. package/ui/Blocks/CommonGrid/components/ColumnTitle.js +36 -104
  17. package/ui/Blocks/CommonGrid/components/ControlButtons/ControlButtons.js +156 -252
  18. package/ui/Blocks/CommonGrid/components/ControlButtons/index.js +3 -1
  19. package/ui/Blocks/CommonGrid/components/ControlButtons/styles.js +40 -53
  20. package/ui/Blocks/CommonGrid/components/DataCell.js +34 -97
  21. package/ui/Blocks/CommonGrid/components/DataRow.js +60 -74
  22. package/ui/Blocks/CommonGrid/components/DropdownButton/DropdownButton.js +67 -154
  23. package/ui/Blocks/CommonGrid/components/DropdownButton/index.js +3 -1
  24. package/ui/Blocks/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.js +57 -149
  25. package/ui/Blocks/CommonGrid/components/ExtraControlButtons/index.js +3 -1
  26. package/ui/Blocks/CommonGrid/components/FilterDropdown.js +30 -48
  27. package/ui/Blocks/CommonGrid/components/FilterRow.js +28 -36
  28. package/ui/Blocks/CommonGrid/components/Filters/ActionsFilter/ActionsFilter.js +32 -83
  29. package/ui/Blocks/CommonGrid/components/Filters/ActionsFilter/index.js +3 -1
  30. package/ui/Blocks/CommonGrid/components/Filters/BooleanSelect/BooleanSelect.js +34 -90
  31. package/ui/Blocks/CommonGrid/components/Filters/BooleanSelect/index.js +4 -2
  32. package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/DatePickerRange.js +149 -373
  33. package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/index.js +3 -1
  34. package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/utils/getCleanValues.js +7 -12
  35. package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/utils/pickerRangeToString.js +13 -25
  36. package/ui/Blocks/CommonGrid/components/Filters/DatePickerRange/utils/sameDate.js +3 -3
  37. package/ui/Blocks/CommonGrid/components/Filters/GridSelect/GridSelect.js +92 -376
  38. package/ui/Blocks/CommonGrid/components/Filters/GridSelect/guards.js +4 -8
  39. package/ui/Blocks/CommonGrid/components/Filters/GridSelect/index.js +4 -2
  40. package/ui/Blocks/CommonGrid/components/Filters/NumberRange/NumberRange.js +142 -293
  41. package/ui/Blocks/CommonGrid/components/Filters/NumberRange/index.js +3 -1
  42. package/ui/Blocks/CommonGrid/components/Filters/NumberRange/types.js +1 -0
  43. package/ui/Blocks/CommonGrid/components/Filters/TextRange/TextRange.js +160 -320
  44. package/ui/Blocks/CommonGrid/components/Filters/TextRange/index.js +3 -1
  45. package/ui/Blocks/CommonGrid/components/Filters/TextRange/types.js +1 -0
  46. package/ui/Blocks/CommonGrid/components/FloatingButton/FloatingButton.js +79 -156
  47. package/ui/Blocks/CommonGrid/components/FloatingButton/index.js +3 -1
  48. package/ui/Blocks/CommonGrid/components/GridInfo/index.js +30 -41
  49. package/ui/Blocks/CommonGrid/components/GridModals/index.js +132 -134
  50. package/ui/Blocks/CommonGrid/components/GridStatus/index.js +23 -25
  51. package/ui/Blocks/CommonGrid/components/GroupRow.js +26 -87
  52. package/ui/Blocks/CommonGrid/components/HeadCell.js +33 -89
  53. package/ui/Blocks/CommonGrid/components/HeadRow.js +69 -192
  54. package/ui/Blocks/CommonGrid/components/IconList/IconList.js +61 -99
  55. package/ui/Blocks/CommonGrid/components/IconList/index.js +3 -1
  56. package/ui/Blocks/CommonGrid/components/ManageColumnForm/ManageColumnForm.js +52 -114
  57. package/ui/Blocks/CommonGrid/components/ManageColumnForm/components/ManageColumnRow.js +66 -171
  58. package/ui/Blocks/CommonGrid/components/ManageColumnForm/index.js +3 -1
  59. package/ui/Blocks/CommonGrid/components/ManageColumnForm/styles.js +16 -34
  60. package/ui/Blocks/CommonGrid/components/ManageColumnForm/utils.js +7 -9
  61. package/ui/Blocks/CommonGrid/components/MobileFilterModal.js +110 -228
  62. package/ui/Blocks/CommonGrid/components/MobileOverlayWrapper.js +13 -21
  63. package/ui/Blocks/CommonGrid/components/MobileSortModal.js +64 -88
  64. package/ui/Blocks/CommonGrid/components/OversizedScroll.js +34 -86
  65. package/ui/Blocks/CommonGrid/components/PresetsModalBody/components/TagRemove.js +17 -20
  66. package/ui/Blocks/CommonGrid/components/PresetsModalBody/index.js +88 -201
  67. package/ui/Blocks/CommonGrid/components/QuickFilter/QuickFilter.js +29 -54
  68. package/ui/Blocks/CommonGrid/components/QuickFilter/index.js +3 -1
  69. package/ui/Blocks/CommonGrid/components/Resize.js +46 -53
  70. package/ui/Blocks/CommonGrid/components/Table.js +40 -94
  71. package/ui/Blocks/CommonGrid/components/TablePagination/TablePagination.js +63 -113
  72. package/ui/Blocks/CommonGrid/components/TablePagination/index.js +3 -1
  73. package/ui/Blocks/CommonGrid/components/gridCells/BoolIcon.js +16 -32
  74. package/ui/Blocks/CommonGrid/components/gridCells/ButtonInCell.js +10 -58
  75. package/ui/Blocks/CommonGrid/components/gridCells/Date.js +7 -7
  76. package/ui/Blocks/CommonGrid/components/gridCells/DateTime.js +9 -12
  77. package/ui/Blocks/CommonGrid/components/gridCells/EnumInCell.js +27 -100
  78. package/ui/Blocks/CommonGrid/components/gridCells/HoverBubble.js +48 -48
  79. package/ui/Blocks/CommonGrid/components/gridCells/IconButtonInCell.js +31 -33
  80. package/ui/Blocks/CommonGrid/components/gridCells/ImageCell.js +28 -50
  81. package/ui/Blocks/CommonGrid/components/gridCells/LinkInCell.js +8 -22
  82. package/ui/Blocks/CommonGrid/components/gridCells/RemoveItem.js +37 -63
  83. package/ui/Blocks/CommonGrid/components/gridCells/RowActionsCell.js +75 -113
  84. package/ui/Blocks/CommonGrid/components/gridCells/StringJoin.js +7 -7
  85. package/ui/Blocks/CommonGrid/components/gridCells/SwitchInCell.js +9 -57
  86. package/ui/Blocks/CommonGrid/components/gridCells/ToggleCell.js +30 -82
  87. package/ui/Blocks/CommonGrid/components/gridCells/index.js +14 -14
  88. package/ui/Blocks/CommonGrid/components/icons/Edit.js +13 -65
  89. package/ui/Blocks/CommonGrid/components/icons/EyeOpen.js +13 -65
  90. package/ui/Blocks/CommonGrid/components/icons/Sorting.js +19 -72
  91. package/ui/Blocks/CommonGrid/components/utils.js +18 -67
  92. package/ui/Blocks/CommonGrid/hooks/useAddFilter.js +14 -14
  93. package/ui/Blocks/CommonGrid/hooks/useColumnSizes.js +85 -119
  94. package/ui/Blocks/CommonGrid/hooks/useCreatePreset.js +29 -77
  95. package/ui/Blocks/CommonGrid/hooks/useDeletePreset.js +21 -32
  96. package/ui/Blocks/CommonGrid/hooks/useEditReadAsColumn.js +56 -91
  97. package/ui/Blocks/CommonGrid/hooks/useEvent.js +10 -14
  98. package/ui/Blocks/CommonGrid/hooks/useFloatingButton.js +14 -15
  99. package/ui/Blocks/CommonGrid/hooks/useGridActionTrigger.js +25 -42
  100. package/ui/Blocks/CommonGrid/hooks/useGridAutoRowsPerPage.js +10 -20
  101. package/ui/Blocks/CommonGrid/hooks/useManageColumn.js +97 -220
  102. package/ui/Blocks/CommonGrid/hooks/usePresetFileHandlers.js +54 -124
  103. package/ui/Blocks/CommonGrid/hooks/usePresetsState.js +13 -57
  104. package/ui/Blocks/CommonGrid/hooks/useQuickFilter.js +76 -149
  105. package/ui/Blocks/CommonGrid/hooks/useRowsKeyControls.js +19 -23
  106. package/ui/Blocks/CommonGrid/hooks/useSelectPreset.js +18 -80
  107. package/ui/Blocks/CommonGrid/hooks/useToggleAllCheckbox.js +17 -28
  108. package/ui/Blocks/CommonGrid/hooks/useUxReset.js +12 -63
  109. package/ui/Blocks/CommonGrid/index.js +26 -10
  110. package/ui/Blocks/CommonGrid/store/index.js +286 -430
  111. package/ui/Blocks/CommonGrid/store/migrateState.js +10 -10
  112. package/ui/Blocks/CommonGrid/store/store.d.js +1 -0
  113. package/ui/Blocks/CommonGrid/storybook/components/ComplexCell.js +16 -20
  114. package/ui/Blocks/CommonGrid/storybook/components/EnumCellExample.js +17 -22
  115. package/ui/Blocks/CommonGrid/storybook/utils/actions.js +9 -15
  116. package/ui/Blocks/CommonGrid/storybook/utils/columnDefinition.js +121 -156
  117. package/ui/Blocks/CommonGrid/storybook/utils/utils.js +106 -145
  118. package/ui/Blocks/CommonGrid/storybook/utils/withRedux.js +11 -14
  119. package/ui/Blocks/CommonGrid/storybook/utils/withRouter.js +5 -7
  120. package/ui/Blocks/CommonGrid/storybook/utils/withTheme.js +4 -5
  121. package/ui/Blocks/CommonGrid/styles.js +252 -97
  122. package/ui/Blocks/CommonGrid/types.js +22 -14
  123. package/ui/Blocks/CommonGrid/utils/constants.js +24 -22
  124. package/ui/Blocks/CommonGrid/utils/getExtendedExtraControlButtons.js +15 -44
  125. package/ui/Blocks/CommonGrid/utils/getRowsPerPage.js +8 -9
  126. package/ui/Blocks/CommonGrid/utils/hasSortTerminated.js +8 -9
  127. package/ui/Blocks/CommonGrid/utils/index.js +69 -107
  128. package/ui/Blocks/CornerDialog/CornerDialog.js +40 -94
  129. package/ui/Blocks/CornerDialog/index.d.js +1 -2
  130. package/ui/Blocks/CornerDialog/index.js +3 -1
  131. package/ui/Blocks/CornerDialog/styles.js +56 -83
  132. package/ui/Blocks/CornerDialog/types.js +1 -0
  133. package/ui/Blocks/CornerDialog/utils.js +28 -26
  134. package/ui/Blocks/Header/components/MenuItems/components/MenuItem/index.js +12 -11
  135. package/ui/Blocks/Header/components/MenuItems/index.js +6 -11
  136. package/ui/Blocks/Header/components/MenuItems/styles.js +21 -35
  137. package/ui/Blocks/Header/components/UserMenu/components/UserInfo/index.js +20 -28
  138. package/ui/Blocks/Header/components/UserMenu/components/UserInfo/styles.js +13 -31
  139. package/ui/Blocks/Header/components/UserMenu/hooks/index.js +1 -1
  140. package/ui/Blocks/Header/components/UserMenu/hooks/useLogout.js +8 -9
  141. package/ui/Blocks/Header/components/UserMenu/index.js +45 -99
  142. package/ui/Blocks/Header/components/UserMenu/styles.js +24 -44
  143. package/ui/Blocks/Header/hooks/useChangeLanguage.js +7 -8
  144. package/ui/Blocks/Header/index.js +41 -57
  145. package/ui/Blocks/Header/styles.js +33 -54
  146. package/ui/Blocks/Header/types.js +1 -0
  147. package/ui/Blocks/Header/utils/constants.js +3 -1
  148. package/ui/Blocks/Header/utils/languageItems.js +13 -18
  149. package/ui/Blocks/HidePrint/HidePrint.js +11 -28
  150. package/ui/Blocks/ImageList/ImageList.js +76 -131
  151. package/ui/Blocks/ImageList/components/AddPhoto/index.js +33 -182
  152. package/ui/Blocks/ImageList/components/AddPhoto/styles.js +29 -42
  153. package/ui/Blocks/ImageList/components/CloseButton/index.js +15 -13
  154. package/ui/Blocks/ImageList/components/CloseButton/styles.js +17 -25
  155. package/ui/Blocks/ImageList/components/ImageElement/index.js +26 -27
  156. package/ui/Blocks/ImageList/components/ImageElement/styles.js +21 -63
  157. package/ui/Blocks/ImageList/components/ImageTag/index.js +12 -15
  158. package/ui/Blocks/ImageList/components/ImageTag/styles.js +8 -21
  159. package/ui/Blocks/ImageList/hooks/useControls.js +12 -66
  160. package/ui/Blocks/ImageList/hooks/useOnElementClick.js +12 -70
  161. package/ui/Blocks/ImageList/index.d.js +1 -2
  162. package/ui/Blocks/ImageList/index.js +3 -1
  163. package/ui/Blocks/ImageList/styles.js +28 -47
  164. package/ui/Blocks/ImageList/types.js +1 -0
  165. package/ui/Blocks/LanguageSwitch/LanguageSwitch.js +50 -136
  166. package/ui/Blocks/LanguageSwitch/index.js +3 -1
  167. package/ui/Blocks/LanguageSwitch/styles.js +31 -49
  168. package/ui/Blocks/LanguageSwitch/types.js +1 -0
  169. package/ui/Blocks/LightBox/LightBox.js +37 -46
  170. package/ui/Blocks/LightBox/hooks/useLightBox.js +14 -19
  171. package/ui/Blocks/LightBox/index.d.js +1 -3
  172. package/ui/Blocks/LightBox/index.js +4 -2
  173. package/ui/Blocks/LightBox/styles.js +27 -51
  174. package/ui/Blocks/LightBox/types.js +1 -0
  175. package/ui/Blocks/LoginPage/LoginPage.js +60 -77
  176. package/ui/Blocks/LoginPage/assets/mailship.js +4 -0
  177. package/ui/Blocks/LoginPage/components/LoginForm.js +165 -220
  178. package/ui/Blocks/LoginPage/components/SocialLinks.js +78 -98
  179. package/ui/Blocks/LoginPage/index.js +4 -2
  180. package/ui/Blocks/LoginPage/styles.js +74 -94
  181. package/ui/Blocks/LoginPage/types.js +1 -0
  182. package/ui/Blocks/LoginPage/utils/links.js +9 -7
  183. package/ui/Blocks/Modal/Modal.js +122 -148
  184. package/ui/Blocks/Modal/hooks/useClickOutside.js +25 -35
  185. package/ui/Blocks/Modal/hooks/useModal.js +17 -64
  186. package/ui/Blocks/Modal/index.d.js +1 -3
  187. package/ui/Blocks/Modal/index.js +5 -3
  188. package/ui/Blocks/Modal/styles.js +181 -255
  189. package/ui/Blocks/Modal/types.js +1 -0
  190. package/ui/Blocks/Modal/utils.js +8 -6
  191. package/ui/Blocks/Popover/index.js +29 -50
  192. package/ui/Blocks/Scheduler/Scheduler.js +40 -104
  193. package/ui/Blocks/Scheduler/components/BookedTimeSlots/index.js +35 -123
  194. package/ui/Blocks/Scheduler/components/BookedTimeSlots/styles.js +34 -53
  195. package/ui/Blocks/Scheduler/components/CurrentTimeMarker/hooks/useCurrentTime.js +14 -61
  196. package/ui/Blocks/Scheduler/components/CurrentTimeMarker/index.js +11 -15
  197. package/ui/Blocks/Scheduler/components/CurrentTimeMarker/styles.js +29 -51
  198. package/ui/Blocks/Scheduler/components/DateChanger/index.js +46 -50
  199. package/ui/Blocks/Scheduler/components/DateChanger/styles.js +22 -35
  200. package/ui/Blocks/Scheduler/components/Groups/index.js +8 -14
  201. package/ui/Blocks/Scheduler/components/Groups/styles.js +31 -53
  202. package/ui/Blocks/Scheduler/components/TimeSlots/hooks/useRangeSelection.js +43 -114
  203. package/ui/Blocks/Scheduler/components/TimeSlots/hooks/useScroll.js +13 -17
  204. package/ui/Blocks/Scheduler/components/TimeSlots/index.js +45 -53
  205. package/ui/Blocks/Scheduler/components/TimeSlots/styles.js +51 -75
  206. package/ui/Blocks/Scheduler/hooks/useChangeDate.js +32 -83
  207. package/ui/Blocks/Scheduler/index.js +1 -1
  208. package/ui/Blocks/Scheduler/styles.js +21 -32
  209. package/ui/Blocks/Scheduler/types.js +1 -0
  210. package/ui/Blocks/Scheduler/utils/constants.js +8 -6
  211. package/ui/Blocks/Scheduler/utils/convertDateToTime.js +4 -4
  212. package/ui/Blocks/Scheduler/utils/convertIndexToISOString.js +9 -7
  213. package/ui/Blocks/Scheduler/utils/convertMinutesToDuration.js +8 -10
  214. package/ui/Blocks/Scheduler/utils/formatDate.js +7 -8
  215. package/ui/Blocks/Scheduler/utils/generateTimeArray.js +17 -15
  216. package/ui/Blocks/Scheduler/utils/getClosestStep.js +10 -8
  217. package/ui/Blocks/Scheduler/utils/getMinutesFromString.js +5 -5
  218. package/ui/Blocks/Scheduler/utils/getMinutesFromTime.js +5 -49
  219. package/ui/Blocks/Scheduler/utils/isActiveTime.js +9 -8
  220. package/ui/Blocks/Scheduler/utils/isToday.js +5 -3
  221. package/ui/Blocks/SideMenu/MenuItem.js +98 -191
  222. package/ui/Blocks/SideMenu/SideMenu.js +35 -80
  223. package/ui/Blocks/SideMenu/components/Footer.js +61 -95
  224. package/ui/Blocks/SideMenu/components/HamburgerMenu.js +49 -68
  225. package/ui/Blocks/SideMenu/components/SubitemTooltip.js +49 -133
  226. package/ui/Blocks/SideMenu/context/LeftMenuContext.js +17 -67
  227. package/ui/Blocks/SideMenu/context/useLeftMenuContext.js +7 -5
  228. package/ui/Blocks/SideMenu/hooks/useOutsideHover.js +23 -76
  229. package/ui/Blocks/SideMenu/index.js +5 -3
  230. package/ui/Blocks/SideMenu/stories/menuItems.js +106 -100
  231. package/ui/Blocks/SideMenu/styles.js +308 -415
  232. package/ui/Blocks/SideMenu/types.js +1 -0
  233. package/ui/Blocks/SideMenu/utils/constants.js +4 -2
  234. package/ui/Blocks/Stepper/Stepper.js +31 -50
  235. package/ui/Blocks/Stepper/components/StepCircle/index.js +14 -13
  236. package/ui/Blocks/Stepper/components/StepCircle/styles.js +22 -47
  237. package/ui/Blocks/Stepper/components/StepItem/index.js +48 -58
  238. package/ui/Blocks/Stepper/components/StepItem/styles.js +77 -86
  239. package/ui/Blocks/Stepper/hooks/useStepper.js +30 -78
  240. package/ui/Blocks/Stepper/index.js +3 -3
  241. package/ui/Blocks/Stepper/styles.js +24 -39
  242. package/ui/Blocks/Stepper/types.js +1 -0
  243. package/ui/Blocks/Table/Table.js +10 -31
  244. package/ui/Blocks/Table/index.js +1 -1
  245. package/ui/Blocks/Table/types.js +1 -0
  246. package/ui/Blocks/Tabs/TabContent.js +7 -8
  247. package/ui/Blocks/Tabs/Tabs.js +42 -53
  248. package/ui/Blocks/Tabs/hooks/useTabs.js +11 -59
  249. package/ui/Blocks/Tabs/index.d.js +1 -3
  250. package/ui/Blocks/Tabs/index.js +5 -3
  251. package/ui/Blocks/Tabs/styles.js +94 -109
  252. package/ui/Blocks/Tabs/types.js +1 -0
  253. package/ui/Elements/Alert/Alert.js +71 -95
  254. package/ui/Elements/Alert/index.d.js +1 -3
  255. package/ui/Elements/Alert/index.js +3 -1
  256. package/ui/Elements/Alert/styles.js +81 -126
  257. package/ui/Elements/Alert/types.js +1 -0
  258. package/ui/Elements/AsyncSelect/AsyncSelect.js +31 -157
  259. package/ui/Elements/AsyncSelect/index.js +3 -1
  260. package/ui/Elements/Avatar/Avatar.js +35 -150
  261. package/ui/Elements/Avatar/index.d.js +1 -2
  262. package/ui/Elements/Avatar/index.js +4 -3
  263. package/ui/Elements/Avatar/types.js +1 -0
  264. package/ui/Elements/Badge/Badge.js +50 -105
  265. package/ui/Elements/Badge/index.d.js +1 -2
  266. package/ui/Elements/Badge/index.js +3 -1
  267. package/ui/Elements/BarChartSymbol/BarChartSymbol.js +19 -22
  268. package/ui/Elements/BarChartSymbol/index.js +1 -1
  269. package/ui/Elements/BarChartSymbol/styles.js +8 -32
  270. package/ui/Elements/BorderedBox/BorderedBox.js +20 -124
  271. package/ui/Elements/BorderedBox/index.d.js +1 -3
  272. package/ui/Elements/BorderedBox/index.js +3 -1
  273. package/ui/Elements/BorderedBox/types.js +1 -0
  274. package/ui/Elements/Button/Button.d.js +1 -2
  275. package/ui/Elements/Button/Button.js +43 -153
  276. package/ui/Elements/Button/index.d.js +1 -3
  277. package/ui/Elements/Button/index.js +3 -1
  278. package/ui/Elements/Button/styles.js +224 -95
  279. package/ui/Elements/Button/types.js +1 -0
  280. package/ui/Elements/Card/Card.js +13 -13
  281. package/ui/Elements/Card/index.d.js +1 -2
  282. package/ui/Elements/Card/index.js +3 -1
  283. package/ui/Elements/Card/styles.js +21 -49
  284. package/ui/Elements/Card/types.js +1 -0
  285. package/ui/Elements/CheckedCircle/index.js +12 -11
  286. package/ui/Elements/CheckedCircle/styles.js +14 -29
  287. package/ui/Elements/DatePicker/DatePicker.js +84 -206
  288. package/ui/Elements/DatePicker/Datetime/DateTime.js +422 -724
  289. package/ui/Elements/DatePicker/Datetime/components/DateRepeater.js +62 -126
  290. package/ui/Elements/DatePicker/Datetime/components/FooterRow.js +10 -24
  291. package/ui/Elements/DatePicker/Datetime/components/FooterRowLabel.js +14 -20
  292. package/ui/Elements/DatePicker/Datetime/components/TimeInput.js +15 -21
  293. package/ui/Elements/DatePicker/Datetime/components/Timepicker.js +160 -254
  294. package/ui/Elements/DatePicker/Datetime/components/ViewNavigation.js +28 -84
  295. package/ui/Elements/DatePicker/Datetime/types.js +13 -11
  296. package/ui/Elements/DatePicker/Datetime/views/DaysView.js +134 -334
  297. package/ui/Elements/DatePicker/Datetime/views/MonthsView.js +71 -265
  298. package/ui/Elements/DatePicker/Datetime/views/YearsView.js +81 -276
  299. package/ui/Elements/DatePicker/index.js +5 -3
  300. package/ui/Elements/DatePicker/styles.js +233 -35
  301. package/ui/Elements/DatePicker/utils/constants.js +27 -33
  302. package/ui/Elements/Dropdown/Dropdown.js +53 -88
  303. package/ui/Elements/Dropdown/index.js +3 -1
  304. package/ui/Elements/Dropdown/types.js +1 -0
  305. package/ui/Elements/DropdownMenu/DropdownMenu.js +32 -134
  306. package/ui/Elements/DropdownMenu/components/DefaultItem.js +30 -56
  307. package/ui/Elements/DropdownMenu/components/MenuItem.js +56 -103
  308. package/ui/Elements/DropdownMenu/components/MenuList.js +13 -14
  309. package/ui/Elements/DropdownMenu/index.js +1 -1
  310. package/ui/Elements/DropdownMenu/types.js +1 -0
  311. package/ui/Elements/DropdownSelect/DropdownSelect.js +126 -205
  312. package/ui/Elements/DropdownSelect/index.js +3 -2
  313. package/ui/Elements/ErrorMessage/ErrorMessage.js +62 -56
  314. package/ui/Elements/ErrorMessage/index.d.js +1 -3
  315. package/ui/Elements/ErrorMessage/index.js +3 -1
  316. package/ui/Elements/ErrorMessage/types.js +1 -0
  317. package/ui/Elements/HighlightBox/HighlightBox.js +97 -99
  318. package/ui/Elements/HighlightBox/index.js +3 -1
  319. package/ui/Elements/Icon/BadgeIcon.js +26 -121
  320. package/ui/Elements/Icon/Icon.js +182 -255
  321. package/ui/Elements/Icon/icons/Add.js +31 -91
  322. package/ui/Elements/Icon/icons/AddPhoto.js +32 -84
  323. package/ui/Elements/Icon/icons/Admin.js +24 -79
  324. package/ui/Elements/Icon/icons/ArrowDown.js +16 -68
  325. package/ui/Elements/Icon/icons/ArrowForward.js +10 -64
  326. package/ui/Elements/Icon/icons/ArrowUp.js +16 -68
  327. package/ui/Elements/Icon/icons/ArrowUpRightDownLeft.js +19 -77
  328. package/ui/Elements/Icon/icons/ArrowsLeftRight.js +10 -64
  329. package/ui/Elements/Icon/icons/ArrowsUpDown.js +10 -64
  330. package/ui/Elements/Icon/icons/BarcodeScan.js +11 -65
  331. package/ui/Elements/Icon/icons/Box.js +15 -67
  332. package/ui/Elements/Icon/icons/Calendar.js +37 -89
  333. package/ui/Elements/Icon/icons/Cancel.js +16 -68
  334. package/ui/Elements/Icon/icons/CheckedBox.js +21 -76
  335. package/ui/Elements/Icon/icons/CircleHalfStroke.js +10 -64
  336. package/ui/Elements/Icon/icons/Company.js +80 -137
  337. package/ui/Elements/Icon/icons/Complaint.js +57 -114
  338. package/ui/Elements/Icon/icons/Consolidation.js +11 -65
  339. package/ui/Elements/Icon/icons/Container.js +11 -65
  340. package/ui/Elements/Icon/icons/Dashboard.js +34 -86
  341. package/ui/Elements/Icon/icons/Desktop.js +61 -118
  342. package/ui/Elements/Icon/icons/Dispatch.js +11 -65
  343. package/ui/Elements/Icon/icons/EmptyRack.js +32 -32
  344. package/ui/Elements/Icon/icons/Expeditions.js +60 -112
  345. package/ui/Elements/Icon/icons/Filter.js +15 -67
  346. package/ui/Elements/Icon/icons/FlagCZ.js +53 -108
  347. package/ui/Elements/Icon/icons/FlagEL.js +48 -100
  348. package/ui/Elements/Icon/icons/FlagESP.js +91 -143
  349. package/ui/Elements/Icon/icons/FlagHU.js +25 -77
  350. package/ui/Elements/Icon/icons/FlagITA.js +53 -108
  351. package/ui/Elements/Icon/icons/FlagNL.js +25 -77
  352. package/ui/Elements/Icon/icons/FlagRUS.js +53 -108
  353. package/ui/Elements/Icon/icons/FlagSVK.js +90 -145
  354. package/ui/Elements/Icon/icons/FlagUK.js +18 -73
  355. package/ui/Elements/Icon/icons/FlagUSA.js +104 -168
  356. package/ui/Elements/Icon/icons/Foldable.js +32 -84
  357. package/ui/Elements/Icon/icons/Fragile.js +40 -92
  358. package/ui/Elements/Icon/icons/Gift.js +39 -91
  359. package/ui/Elements/Icon/icons/Group.js +15 -67
  360. package/ui/Elements/Icon/icons/HamburgerMenu.js +39 -91
  361. package/ui/Elements/Icon/icons/HelpCircle1.js +30 -82
  362. package/ui/Elements/Icon/icons/HorizontalLines.js +34 -86
  363. package/ui/Elements/Icon/icons/ImagePlaceholder.js +15 -67
  364. package/ui/Elements/Icon/icons/Income.js +20 -75
  365. package/ui/Elements/Icon/icons/Info.js +31 -83
  366. package/ui/Elements/Icon/icons/Integrations.js +15 -67
  367. package/ui/Elements/Icon/icons/Inventory.js +43 -100
  368. package/ui/Elements/Icon/icons/Inventory2.js +64 -121
  369. package/ui/Elements/Icon/icons/Layout.js +41 -91
  370. package/ui/Elements/Icon/icons/Link.js +18 -73
  371. package/ui/Elements/Icon/icons/Liquid.js +20 -75
  372. package/ui/Elements/Icon/icons/Location.js +11 -65
  373. package/ui/Elements/Icon/icons/Logout1.js +30 -82
  374. package/ui/Elements/Icon/icons/MachinePackingForbidden.js +68 -120
  375. package/ui/Elements/Icon/icons/MakePhoto.js +33 -85
  376. package/ui/Elements/Icon/icons/MenuItems.js +37 -91
  377. package/ui/Elements/Icon/icons/Message.js +36 -96
  378. package/ui/Elements/Icon/icons/MobileCancel.js +20 -75
  379. package/ui/Elements/Icon/icons/MobilePhone.js +45 -97
  380. package/ui/Elements/Icon/icons/Moon.js +10 -64
  381. package/ui/Elements/Icon/icons/Notification2.js +23 -78
  382. package/ui/Elements/Icon/icons/OpenBox.js +35 -87
  383. package/ui/Elements/Icon/icons/Pallet.js +34 -93
  384. package/ui/Elements/Icon/icons/Plus1.js +15 -67
  385. package/ui/Elements/Icon/icons/Print.js +39 -91
  386. package/ui/Elements/Icon/icons/Product.js +15 -67
  387. package/ui/Elements/Icon/icons/Products.js +14 -66
  388. package/ui/Elements/Icon/icons/Profile.js +23 -78
  389. package/ui/Elements/Icon/icons/Puzzle1.js +16 -68
  390. package/ui/Elements/Icon/icons/QRCode.js +17 -69
  391. package/ui/Elements/Icon/icons/Rack.js +63 -115
  392. package/ui/Elements/Icon/icons/Reload.js +11 -65
  393. package/ui/Elements/Icon/icons/Return.js +17 -72
  394. package/ui/Elements/Icon/icons/Rows.js +37 -89
  395. package/ui/Elements/Icon/icons/Settings2.js +31 -91
  396. package/ui/Elements/Icon/icons/ShieldUser.js +7 -61
  397. package/ui/Elements/Icon/icons/ShoppingBag.js +16 -67
  398. package/ui/Elements/Icon/icons/Sort.js +21 -76
  399. package/ui/Elements/Icon/icons/Sun.js +10 -64
  400. package/ui/Elements/Icon/icons/ThreeDots.js +37 -89
  401. package/ui/Elements/Icon/icons/ToastError.js +25 -82
  402. package/ui/Elements/Icon/icons/ToastSuccess.js +25 -82
  403. package/ui/Elements/Icon/icons/Transfer.js +19 -74
  404. package/ui/Elements/Icon/icons/TrashBin.js +31 -83
  405. package/ui/Elements/Icon/icons/Truck.js +71 -127
  406. package/ui/Elements/Icon/icons/TwoBoxes.js +18 -73
  407. package/ui/Elements/Icon/icons/TwoCheckedBoxes.js +27 -27
  408. package/ui/Elements/Icon/icons/TwoUsers.js +40 -91
  409. package/ui/Elements/Icon/icons/UserCowboy.js +7 -61
  410. package/ui/Elements/Icon/icons/Valuable.js +32 -83
  411. package/ui/Elements/Icon/icons/Weight.js +10 -64
  412. package/ui/Elements/Icon/icons/index.js +188 -92
  413. package/ui/Elements/Icon/index.js +96 -4
  414. package/ui/Elements/Icon/types.js +1 -0
  415. package/ui/Elements/Image/Image.js +13 -154
  416. package/ui/Elements/Image/index.js +3 -1
  417. package/ui/Elements/Image/types.js +1 -0
  418. package/ui/Elements/Label/Label.js +22 -61
  419. package/ui/Elements/Label/index.js +4 -3
  420. package/ui/Elements/Line/Line.js +20 -44
  421. package/ui/Elements/Line/index.d.js +1 -3
  422. package/ui/Elements/Line/index.js +3 -1
  423. package/ui/Elements/Line/types.js +1 -0
  424. package/ui/Elements/Link/Link.js +42 -126
  425. package/ui/Elements/Link/index.js +3 -1
  426. package/ui/Elements/Logo/Logo.js +65 -162
  427. package/ui/Elements/Logo/assets/mailship/logo_black.js +4 -0
  428. package/ui/Elements/Logo/assets/mailship/logo_m.js +4 -0
  429. package/ui/Elements/Logo/assets/mailship/logo_white.js +4 -0
  430. package/ui/Elements/Logo/assets/mailship/mailship-logo.js +4 -0
  431. package/ui/Elements/Logo/assets/mailship/mailship-logo.svg +12 -12
  432. package/ui/Elements/Logo/assets/mailstep/mailstep_black.js +4 -0
  433. package/ui/Elements/Logo/assets/mailstep/mailstep_black.svg +17 -17
  434. package/ui/Elements/Logo/assets/mailstep/mailstep_white.js +4 -0
  435. package/ui/Elements/Logo/assets/mailstep/mailstep_white.svg +17 -17
  436. package/ui/Elements/Logo/assets/mailstock/mailstock.js +4 -0
  437. package/ui/Elements/Logo/assets/mailstock/mailstock.svg +12 -12
  438. package/ui/Elements/Logo/assets/mailwise/mailwiseLogo.js +4 -0
  439. package/ui/Elements/Logo/assets/mailwise/mailwiseLogo.svg +46 -46
  440. package/ui/Elements/Logo/assets/mailwise/mailwiseLogoSmall.js +4 -0
  441. package/ui/Elements/Logo/assets/mailwise/mailwiseLogoSmall.svg +19 -19
  442. package/ui/Elements/Logo/assets/mailwrap/mailwrapLogo.js +4 -0
  443. package/ui/Elements/Logo/assets/mailwrap/mailwrapLogoSmall.js +4 -0
  444. package/ui/Elements/Logo/assets/mailwrap/mailwrapLogoSmall.svg +4 -4
  445. package/ui/Elements/Logo/assets/warehouse/manager.js +4 -0
  446. package/ui/Elements/Logo/assets/warehouse/manager.svg +5 -5
  447. package/ui/Elements/Logo/assets/warehouse/manager2.js +4 -0
  448. package/ui/Elements/Logo/assets/warehouse/manager2.svg +5 -5
  449. package/ui/Elements/Logo/assets/warehouse/manager3.js +4 -0
  450. package/ui/Elements/Logo/assets/warehouse/manager3.svg +4 -4
  451. package/ui/Elements/Logo/default.d.js +1 -0
  452. package/ui/Elements/Logo/index.d.js +1 -2
  453. package/ui/Elements/Logo/index.js +3 -1
  454. package/ui/Elements/Logo/types.js +1 -0
  455. package/ui/Elements/Pagination/Pagination.js +61 -85
  456. package/ui/Elements/Pagination/index.d.js +2 -3
  457. package/ui/Elements/Pagination/index.js +3 -1
  458. package/ui/Elements/Pagination/styled.js +62 -89
  459. package/ui/Elements/Portal/index.js +20 -68
  460. package/ui/Elements/ProgressBar/ProgressBar.js +15 -19
  461. package/ui/Elements/ProgressBar/index.js +3 -1
  462. package/ui/Elements/ProgressBar/styles.js +69 -114
  463. package/ui/Elements/Select/Select.js +94 -442
  464. package/ui/Elements/Select/components/ChevronOption.js +29 -87
  465. package/ui/Elements/Select/components/ConnectedMenu.js +24 -85
  466. package/ui/Elements/Select/components/CountMultiValue.js +40 -132
  467. package/ui/Elements/Select/components/CustomInput.js +11 -61
  468. package/ui/Elements/Select/components/DropdownIndicator.js +28 -94
  469. package/ui/Elements/Select/components/IconValueContainer.js +27 -139
  470. package/ui/Elements/Select/components/SelectAll.js +87 -164
  471. package/ui/Elements/Select/components/SelectedIndicator.js +7 -23
  472. package/ui/Elements/Select/components/SimplifiedOption.js +15 -23
  473. package/ui/Elements/Select/index.js +3 -1
  474. package/ui/Elements/Select/styles.js +16 -44
  475. package/ui/Elements/Select/themes/index.js +37 -44
  476. package/ui/Elements/Select/themes/selectStyles.js +194 -302
  477. package/ui/Elements/Select/types.js +1 -0
  478. package/ui/Elements/SimpleLink/SimpleLink.js +35 -64
  479. package/ui/Elements/SimpleLink/index.js +5 -3
  480. package/ui/Elements/SingleSelect/SingleSelect.js +145 -509
  481. package/ui/Elements/SingleSelect/index.js +3 -1
  482. package/ui/Elements/SpaceAround/SpaceAround.js +31 -166
  483. package/ui/Elements/SpaceAround/index.js +3 -1
  484. package/ui/Elements/SpaceAround/types.js +1 -0
  485. package/ui/Elements/Spinner/Spinner.js +35 -36
  486. package/ui/Elements/Spinner/index.d.js +1 -2
  487. package/ui/Elements/Spinner/index.js +3 -1
  488. package/ui/Elements/Spinner/styles.js +35 -65
  489. package/ui/Elements/Spinner/types.js +1 -0
  490. package/ui/Elements/Table/Table.js +44 -77
  491. package/ui/Elements/Table/index.js +1 -1
  492. package/ui/Elements/Tag/Tag.js +47 -82
  493. package/ui/Elements/Tag/index.d.js +1 -3
  494. package/ui/Elements/Tag/index.js +4 -2
  495. package/ui/Elements/Tag/palettes.js +50 -45
  496. package/ui/Elements/Tag/stories/components/predefinedTags.js +17 -18
  497. package/ui/Elements/Tag/types.js +1 -0
  498. package/ui/Elements/Text/Text.js +9 -75
  499. package/ui/Elements/Text/index.d.js +1 -2
  500. package/ui/Elements/Text/index.js +1 -1
  501. package/ui/Elements/Text/types.js +1 -0
  502. package/ui/Elements/Toast/Toast.js +33 -55
  503. package/ui/Elements/Toast/constants.js +17 -15
  504. package/ui/Elements/Toast/index.d.js +2 -3
  505. package/ui/Elements/Toast/index.js +3 -1
  506. package/ui/Elements/Toast/styles.js +74 -104
  507. package/ui/Elements/Toggle/Toggle.js +120 -258
  508. package/ui/Elements/Toggle/index.d.js +1 -2
  509. package/ui/Elements/Toggle/index.js +3 -1
  510. package/ui/Elements/Toggle/types.js +1 -0
  511. package/ui/Elements/Tooltip/Tooltip.js +49 -119
  512. package/ui/Elements/Tooltip/index.d.js +1 -2
  513. package/ui/Elements/Tooltip/index.js +3 -1
  514. package/ui/Elements/Typography/Typography.js +73 -158
  515. package/ui/Elements/Typography/index.d.js +1 -2
  516. package/ui/Elements/Typography/index.js +4 -3
  517. package/ui/Forms/Checkbox/Checkbox.js +39 -40
  518. package/ui/Forms/Checkbox/index.d.js +1 -2
  519. package/ui/Forms/Checkbox/index.js +5 -3
  520. package/ui/Forms/Checkbox/styles.js +92 -74
  521. package/ui/Forms/Checkbox/types.js +1 -0
  522. package/ui/Forms/Input/Input.js +125 -258
  523. package/ui/Forms/Input/index.d.js +1 -3
  524. package/ui/Forms/Input/index.js +3 -1
  525. package/ui/Forms/Input/styles.js +217 -201
  526. package/ui/Forms/Input/types.js +1 -0
  527. package/ui/Forms/RadioButton/RadioButton.js +22 -101
  528. package/ui/Forms/RadioButton/index.d.js +1 -2
  529. package/ui/Forms/RadioButton/index.js +3 -1
  530. package/ui/Forms/RadioButton/styles.js +85 -75
  531. package/ui/Forms/RadioButton/types.js +1 -0
  532. package/ui/Forms/TextArea/TextArea.js +33 -153
  533. package/ui/Forms/TextArea/index.js +3 -1
  534. package/ui/Forms/TextArea/styles.js +75 -99
  535. package/ui/System/Fonts/font.d.js +1 -0
  536. package/ui/System/Fonts/index.js +52 -15
  537. package/ui/ThemeProvider/ThemeProvider.d.js +0 -1
  538. package/ui/ThemeProvider/ThemeProvider.js +15 -18
  539. package/ui/ThemeProvider/index.d.js +1 -3
  540. package/ui/ThemeProvider/index.js +5 -4
  541. package/ui/ThemeProvider/themes/default.js +185 -193
  542. package/ui/ThemeProvider/themes/index.js +10 -9
  543. package/ui/ThemeProvider/themes/light.js +7 -8
  544. package/ui/ThemeProvider/themes/mailwise.js +229 -236
  545. package/ui/ThemeProvider/types.js +1 -0
  546. package/ui/_virtual/_rolldown/runtime.js +13 -0
  547. package/ui/hooks/useToggleAndClose.js +15 -62
  548. package/ui/index.js +179 -94
  549. package/ui/packages/assets/fonts/Inter-Bold_mailstep.js +4 -0
  550. package/ui/packages/assets/fonts/Inter-Light_mailstep.js +4 -0
  551. package/ui/packages/assets/fonts/Inter-Medium_mailstep.js +4 -0
  552. package/ui/packages/assets/fonts/Inter-Regular_mailstep.js +4 -0
  553. package/ui/packages/assets/fonts/Inter-SemiBold_mailstep.js +4 -0
  554. package/ui/utils/CheckDeviceWidth/checkDeviceWidth.js +14 -63
  555. package/ui/utils/CreateRgba/createRgba.js +11 -16
  556. package/ui/utils/CreateRgba/types.js +1 -0
  557. package/ui/utils/KeyPress/KeyPress.js +15 -22
  558. package/ui/utils/KeyPress/index.js +4 -2
  559. package/ui/utils/KeyPress/types.js +1 -0
  560. package/ui/utils/LinguiContainer/index.js +7 -6
  561. package/ui/utils/index.d.js +1 -3
  562. package/ui/utils/index.js +7 -5
  563. package/ui/utils/translations.js +334 -333
@@ -1,96 +1,42 @@
1
- function _tagged_template_literal(strings, raw) {
2
- if (!raw) {
3
- raw = strings.slice(0);
4
- }
5
- return Object.freeze(Object.defineProperties(strings, {
6
- raw: {
7
- value: Object.freeze(raw)
8
- }
9
- }));
10
- }
11
- function _templateObject() {
12
- var data = _tagged_template_literal([
13
- "\n ",
14
- ";\n display: flex;\n min-height: 32px;\n border-bottom: 1px solid rgb(228, 231, 235);\n cursor: ",
15
- ";\n"
16
- ]);
17
- _templateObject = function _templateObject() {
18
- return data;
19
- };
20
- return data;
21
- }
22
- function _templateObject1() {
23
- var data = _tagged_template_literal([
24
- "\n ",
25
- ";\n display: flex;\n overflow: hidden;\n align-items: center;\n justify-content: ",
26
- ";\n transition: ",
27
- ";\n transform: ",
28
- ";\n"
29
- ]);
30
- _templateObject1 = function _templateObject() {
31
- return data;
32
- };
33
- return data;
34
- }
35
- function _templateObject2() {
36
- var data = _tagged_template_literal([
37
- "\n background-color: ",
38
- ";\n"
39
- ]);
40
- _templateObject2 = function _templateObject() {
41
- return data;
42
- };
43
- return data;
44
- }
45
- function _templateObject3() {
46
- var data = _tagged_template_literal([
47
- "\n text-overflow: ellipsis;\n white-space: nowrap;\n"
48
- ]);
49
- _templateObject3 = function _templateObject() {
50
- return data;
51
- };
52
- return data;
53
- }
54
- function _templateObject4() {
55
- var data = _tagged_template_literal([
56
- "\n width: 100vw;\n position: sticky;\n left: 0;\n justify-content: center;\n"
57
- ]);
58
- _templateObject4 = function _templateObject() {
59
- return data;
60
- };
61
- return data;
62
- }
63
- function _templateObject5() {
64
- var data = _tagged_template_literal([
65
- "\n padding: 2px 10px;\n border-radius: 4px;\n color: ",
66
- ";\n"
67
- ]);
68
- _templateObject5 = function _templateObject() {
69
- return data;
70
- };
71
- return data;
72
- }
73
- import styled, { system, th } from "@xstyled/styled-components";
74
- var Row = styled.div(_templateObject(), system, function(props) {
75
- return props.hasRowClick ? "pointer" : "auto";
76
- });
77
- var Cell = styled.div(_templateObject1(), system, function(props) {
78
- return props.align;
79
- }, function(props) {
80
- return props.transition;
81
- }, function(props) {
82
- return props.transform;
83
- });
84
- var StyledDataRow = styled(Row)(_templateObject2(), function(props) {
85
- return props.isEven ? th("colors.bgLightGray") : "white";
86
- });
87
- var TextCell = styled(Cell)(_templateObject3());
88
- var MessageCell = styled(Cell)(_templateObject4());
89
- var variantColors = {
90
- error: th("colors.red1"),
91
- info: th("colors.gray1")
1
+ import styled$1, { system, th } from "@xstyled/styled-components";
2
+ //#region packages/ui/Blocks/CommonGrid/components/Table.tsx
3
+ const Row = styled$1.div`
4
+ ${system};
5
+ display: flex;
6
+ min-height: 32px;
7
+ border-bottom: 1px solid rgb(228, 231, 235);
8
+ cursor: ${(props) => props.hasRowClick ? "pointer" : "auto"};
9
+ `;
10
+ const Cell = styled$1.div`
11
+ ${system};
12
+ display: flex;
13
+ overflow: hidden;
14
+ align-items: center;
15
+ justify-content: ${(props) => props.align};
16
+ transition: ${(props) => props.transition};
17
+ transform: ${(props) => props.transform};
18
+ `;
19
+ const StyledDataRow = styled$1(Row)`
20
+ background-color: ${(props) => props.isEven ? th("colors.bgLightGray") : "white"};
21
+ `;
22
+ const TextCell = styled$1(Cell)`
23
+ text-overflow: ellipsis;
24
+ white-space: nowrap;
25
+ `;
26
+ const MessageCell = styled$1(Cell)`
27
+ width: 100vw;
28
+ position: sticky;
29
+ left: 0;
30
+ justify-content: center;
31
+ `;
32
+ const variantColors = {
33
+ error: th("colors.red1"),
34
+ info: th("colors.gray1")
92
35
  };
93
- var MessageCellBody = styled(Cell)(_templateObject5(), function(props) {
94
- return variantColors[props.variant];
95
- });
36
+ const MessageCellBody = styled$1(Cell)`
37
+ padding: 2px 10px;
38
+ border-radius: 4px;
39
+ color: ${(props) => variantColors[props.variant]};
40
+ `;
41
+ //#endregion
96
42
  export { Cell, MessageCell, MessageCellBody, Row, StyledDataRow, TextCell };
@@ -1,116 +1,66 @@
1
- function _array_like_to_array(arr, len) {
2
- if (len == null || len > arr.length) len = arr.length;
3
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
4
- return arr2;
5
- }
6
- function _array_without_holes(arr) {
7
- if (Array.isArray(arr)) return _array_like_to_array(arr);
8
- }
9
- function _iterable_to_array(iter) {
10
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
11
- }
12
- function _non_iterable_spread() {
13
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
14
- }
15
- function _tagged_template_literal(strings, raw) {
16
- if (!raw) {
17
- raw = strings.slice(0);
18
- }
19
- return Object.freeze(Object.defineProperties(strings, {
20
- raw: {
21
- value: Object.freeze(raw)
22
- }
23
- }));
24
- }
25
- function _to_consumable_array(arr) {
26
- return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
27
- }
28
- function _unsupported_iterable_to_array(o, minLen) {
29
- if (!o) return;
30
- if (typeof o === "string") return _array_like_to_array(o, minLen);
31
- var n = Object.prototype.toString.call(o).slice(8, -1);
32
- if (n === "Object" && o.constructor) n = o.constructor.name;
33
- if (n === "Map" || n === "Set") return Array.from(n);
34
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
35
- }
36
- function _templateObject() {
37
- var data = _tagged_template_literal([
38
- "\n display: flex;\n align-items: center;\n & > :nth-child(2) {\n display: none;\n @media (min-width: 1024px) {\n display: block;\n }\n }\n"
39
- ]);
40
- _templateObject = function _templateObject() {
41
- return data;
42
- };
43
- return data;
44
- }
45
- function _templateObject1() {
46
- var data = _tagged_template_literal([
47
- "\n margin-right: 15px;\n @media (min-width: 1024px) {\n margin-right: 8px;\n }\n"
48
- ]);
49
- _templateObject1 = function _templateObject() {
50
- return data;
51
- };
52
- return data;
53
- }
54
- import { jsx, jsxs } from "react/jsx-runtime";
1
+ import { Paragraph4 } from "../../../../Elements/Typography/Typography.js";
2
+ import Select from "../../../../Elements/Select/Select.js";
3
+ import { rowsPerPageOptions } from "../../utils/constants.js";
55
4
  import { useCallback, useMemo } from "react";
56
- import Select from "../../../../Elements/Select/Select";
57
- import { Paragraph4 } from "../../../../Elements/Typography/Typography";
58
- import { rowsPerPageOptions } from "../../utils/constants";
5
+ import styled$1, { x } from "@xstyled/styled-components";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
59
7
  import { Trans } from "@lingui/react";
60
- import styled, { x } from "@xstyled/styled-components";
61
- var Wrapper = styled.span(_templateObject());
62
- var StyledSelect = styled(x.div)(_templateObject1());
63
- var TablePagination = function TablePagination(param) {
64
- var gridActions = param.gridActions, gridSelectors = param.gridSelectors, autoRowsPerPage = param.autoRowsPerPage, customPaginationHandler = param.customPaginationHandler;
65
- var setRowsPerPage = gridActions.setRowsPerPage;
66
- var page = gridSelectors.page;
67
- var rowsPerPage = gridSelectors.rowsPerPage || 10;
68
- var options = useMemo(function() {
69
- return autoRowsPerPage ? _to_consumable_array(rowsPerPageOptions).concat([
70
- {
71
- value: autoRowsPerPage,
72
- label: "auto (".concat(autoRowsPerPage, ")")
73
- }
74
- ]) : rowsPerPageOptions;
75
- }, [
76
- autoRowsPerPage
77
- ]);
78
- var onSetRowsPerPage = useCallback(function(option) {
79
- if (option && "value" in option) {
80
- var value = Number(option.value);
81
- setRowsPerPage === null || setRowsPerPage === void 0 ? void 0 : setRowsPerPage(value);
82
- customPaginationHandler === null || customPaginationHandler === void 0 ? void 0 : customPaginationHandler(page !== null && page !== void 0 ? page : 1, value);
83
- }
84
- }, [
85
- setRowsPerPage,
86
- page,
87
- customPaginationHandler
88
- ]);
89
- return /* @__PURE__ */ jsxs(Wrapper, {
90
- children: [
91
- /* @__PURE__ */ jsx(StyledSelect, {
92
- minWidth: "110px",
93
- children: /* @__PURE__ */ jsx(Select, {
94
- name: "rowsPerPage",
95
- menuPlacement: "top",
96
- style: "gridFilter",
97
- placeholder: "".concat(rowsPerPage),
98
- options: options,
99
- value: rowsPerPage,
100
- isDarkPlaceholderText: true,
101
- onChange: onSetRowsPerPage
102
- })
103
- }),
104
- /* @__PURE__ */ jsx(Paragraph4, {
105
- variant: "normal",
106
- mr: "20px",
107
- children: /* @__PURE__ */ jsx(Trans, {
108
- id: "dataGrid.resultsPerPage",
109
- message: "Results per page"
110
- })
111
- })
112
- ]
113
- });
8
+ //#region packages/ui/Blocks/CommonGrid/components/TablePagination/TablePagination.tsx
9
+ const Wrapper = styled$1.span`
10
+ display: flex;
11
+ align-items: center;
12
+ & > :nth-child(2) {
13
+ display: none;
14
+ @media (min-width: 1024px) {
15
+ display: block;
16
+ }
17
+ }
18
+ `;
19
+ const StyledSelect = styled$1(x.div)`
20
+ margin-right: 15px;
21
+ @media (min-width: 1024px) {
22
+ margin-right: 8px;
23
+ }
24
+ `;
25
+ const TablePagination = ({ gridActions, gridSelectors, autoRowsPerPage, customPaginationHandler }) => {
26
+ const { setRowsPerPage } = gridActions;
27
+ const { page } = gridSelectors;
28
+ const rowsPerPage = gridSelectors.rowsPerPage || 10;
29
+ const options = useMemo(() => autoRowsPerPage ? [...rowsPerPageOptions, {
30
+ value: autoRowsPerPage,
31
+ label: `auto (${autoRowsPerPage})`
32
+ }] : rowsPerPageOptions, [autoRowsPerPage]);
33
+ const onSetRowsPerPage = useCallback((option) => {
34
+ if (option && "value" in option) {
35
+ const value = Number(option.value);
36
+ setRowsPerPage?.(value);
37
+ customPaginationHandler?.(page ?? 1, value);
38
+ }
39
+ }, [
40
+ setRowsPerPage,
41
+ page,
42
+ customPaginationHandler
43
+ ]);
44
+ return /* @__PURE__ */ jsxs(Wrapper, { children: [/* @__PURE__ */ jsx(StyledSelect, {
45
+ minWidth: "110px",
46
+ children: /* @__PURE__ */ jsx(Select, {
47
+ name: "rowsPerPage",
48
+ menuPlacement: "top",
49
+ style: "gridFilter",
50
+ placeholder: `${rowsPerPage}`,
51
+ options,
52
+ value: rowsPerPage,
53
+ isDarkPlaceholderText: true,
54
+ onChange: onSetRowsPerPage
55
+ })
56
+ }), /* @__PURE__ */ jsx(Paragraph4, {
57
+ variant: "normal",
58
+ mr: "20px",
59
+ children: /* @__PURE__ */ jsx(Trans, {
60
+ id: "dataGrid.resultsPerPage",
61
+ message: "Results per page"
62
+ })
63
+ })] });
114
64
  };
115
- var TablePagination_default = TablePagination;
116
- export { TablePagination_default as default };
65
+ //#endregion
66
+ export { TablePagination as default };
@@ -1,3 +1,5 @@
1
- import TablePagination from "./TablePagination";
1
+ import TablePagination from "./TablePagination.js";
2
+ //#region packages/ui/Blocks/CommonGrid/components/TablePagination/index.tsx
2
3
  var TablePagination_default = TablePagination;
4
+ //#endregion
3
5
  export { TablePagination_default as default };
@@ -1,35 +1,19 @@
1
- function _tagged_template_literal(strings, raw) {
2
- if (!raw) {
3
- raw = strings.slice(0);
4
- }
5
- return Object.freeze(Object.defineProperties(strings, {
6
- raw: {
7
- value: Object.freeze(raw)
8
- }
9
- }));
10
- }
11
- function _templateObject() {
12
- var data = _tagged_template_literal([
13
- "\n display: flex;\n justify-content: center;\n width: 100%;\n"
14
- ]);
15
- _templateObject = function _templateObject() {
16
- return data;
17
- };
18
- return data;
19
- }
20
- import { jsx } from "react/jsx-runtime";
1
+ import { ToastSuccess } from "../../../../Elements/Icon/icons/ToastSuccess.js";
2
+ import { ToastError } from "../../../../Elements/Icon/icons/ToastError.js";
3
+ import "../../../../Elements/Icon/index.js";
21
4
  import React from "react";
22
- import { ToastError, ToastSuccess } from "../../../../Elements/Icon";
23
- import styled from "@xstyled/styled-components";
24
- import get from "lodash/fp/get";
25
- var Center = styled.div(_templateObject());
26
- var BoolIcon = function BoolIcon(param) {
27
- var rowData = param.rowData, column = param.column;
28
- var value = get(column.name, rowData);
29
- var icon = value ? /* @__PURE__ */ jsx(ToastSuccess, {}) : /* @__PURE__ */ jsx(ToastError, {});
30
- return /* @__PURE__ */ jsx(Center, {
31
- children: icon
32
- });
5
+ import styled$1 from "@xstyled/styled-components";
6
+ import { jsx } from "react/jsx-runtime";
7
+ import get from "lodash/fp/get.js";
8
+ //#region packages/ui/Blocks/CommonGrid/components/gridCells/BoolIcon.tsx
9
+ const Center = styled$1.div`
10
+ display: flex;
11
+ justify-content: center;
12
+ width: 100%;
13
+ `;
14
+ const BoolIcon = ({ rowData, column }) => {
15
+ return /* @__PURE__ */ jsx(Center, { children: get(column.name, rowData) ? /* @__PURE__ */ jsx(ToastSuccess, {}) : /* @__PURE__ */ jsx(ToastError, {}) });
33
16
  };
34
- var BoolIconCell = React.memo(BoolIcon);
17
+ const BoolIconCell = React.memo(BoolIcon);
18
+ //#endregion
35
19
  export { BoolIconCell };
@@ -1,61 +1,13 @@
1
- function _define_property(obj, key, value) {
2
- if (key in obj) {
3
- Object.defineProperty(obj, key, {
4
- value: value,
5
- enumerable: true,
6
- configurable: true,
7
- writable: true
8
- });
9
- } else {
10
- obj[key] = value;
11
- }
12
- return obj;
13
- }
14
- function _object_spread(target) {
15
- for(var i = 1; i < arguments.length; i++){
16
- var source = arguments[i] != null ? arguments[i] : {};
17
- var ownKeys = Object.keys(source);
18
- if (typeof Object.getOwnPropertySymbols === "function") {
19
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
- }));
22
- }
23
- ownKeys.forEach(function(key) {
24
- _define_property(target, key, source[key]);
25
- });
26
- }
27
- return target;
28
- }
29
- function ownKeys(object, enumerableOnly) {
30
- var keys = Object.keys(object);
31
- if (Object.getOwnPropertySymbols) {
32
- var symbols = Object.getOwnPropertySymbols(object);
33
- if (enumerableOnly) {
34
- symbols = symbols.filter(function(sym) {
35
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
36
- });
37
- }
38
- keys.push.apply(keys, symbols);
39
- }
40
- return keys;
41
- }
42
- function _object_spread_props(target, source) {
43
- source = source != null ? source : {};
44
- if (Object.getOwnPropertyDescriptors) {
45
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
46
- } else {
47
- ownKeys(Object(source)).forEach(function(key) {
48
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
49
- });
50
- }
51
- return target;
52
- }
1
+ import Button from "../../../../Elements/Button/Button.js";
2
+ import "react";
53
3
  import { jsx } from "react/jsx-runtime";
54
- import Button from "../../../../Elements/Button/Button";
55
- var ButtonInCell = function ButtonInCell(props) {
56
- return /* @__PURE__ */ jsx(Button, _object_spread_props(_object_spread({}, props), {
57
- appearance: "primary",
58
- variant: "link"
59
- }));
4
+ //#region packages/ui/Blocks/CommonGrid/components/gridCells/ButtonInCell.tsx
5
+ const ButtonInCell = (props) => {
6
+ return /* @__PURE__ */ jsx(Button, {
7
+ ...props,
8
+ appearance: "primary",
9
+ variant: "link"
10
+ });
60
11
  };
12
+ //#endregion
61
13
  export { ButtonInCell };
@@ -1,11 +1,11 @@
1
+ import "react";
1
2
  import { jsx } from "react/jsx-runtime";
2
3
  import { DateTime } from "luxon";
3
- import get from "lodash/fp/get";
4
- var DateCell = function DateCell(param) {
5
- var rowData = param.rowData, column = param.column;
6
- var value = get(column.name, rowData);
7
- return value ? /* @__PURE__ */ jsx("span", {
8
- children: DateTime.fromISO(value).toFormat("dd. MM. yyyy")
9
- }) : null;
4
+ import get from "lodash/fp/get.js";
5
+ //#region packages/ui/Blocks/CommonGrid/components/gridCells/Date.tsx
6
+ const DateCell = ({ rowData, column }) => {
7
+ const value = get(column.name, rowData);
8
+ return value ? /* @__PURE__ */ jsx("span", { children: DateTime.fromISO(value).toFormat("dd. MM. yyyy") }) : null;
10
9
  };
10
+ //#endregion
11
11
  export { DateCell };
@@ -1,16 +1,13 @@
1
+ import "react";
1
2
  import { jsx } from "react/jsx-runtime";
2
3
  import { DateTime } from "luxon";
3
- import get from "lodash/fp/get";
4
- var defaultProps = {
5
- dateTimeFormat: "dd. MM. yyyy HH:mm"
6
- };
7
- var DateTimeCell = function DateTimeCell(param) {
8
- var rowData = param.rowData, column = param.column;
9
- var _ref;
10
- var value = get(column.name, rowData);
11
- var dateTimeFormat = ((_ref = column === null || column === void 0 ? void 0 : column.passProps) !== null && _ref !== void 0 ? _ref : defaultProps).dateTimeFormat;
12
- return value ? /* @__PURE__ */ jsx("span", {
13
- children: DateTime.fromISO(value).toFormat(dateTimeFormat)
14
- }) : null;
4
+ import get from "lodash/fp/get.js";
5
+ //#region packages/ui/Blocks/CommonGrid/components/gridCells/DateTime.tsx
6
+ const defaultProps = { dateTimeFormat: "dd. MM. yyyy HH:mm" };
7
+ const DateTimeCell = ({ rowData, column }) => {
8
+ const value = get(column.name, rowData);
9
+ const { dateTimeFormat } = column?.passProps ?? defaultProps;
10
+ return value ? /* @__PURE__ */ jsx("span", { children: DateTime.fromISO(value).toFormat(dateTimeFormat) }) : null;
15
11
  };
12
+ //#endregion
16
13
  export { DateTimeCell };
@@ -1,103 +1,30 @@
1
- function _define_property(obj, key, value) {
2
- if (key in obj) {
3
- Object.defineProperty(obj, key, {
4
- value: value,
5
- enumerable: true,
6
- configurable: true,
7
- writable: true
8
- });
9
- } else {
10
- obj[key] = value;
11
- }
12
- return obj;
13
- }
14
- function _object_spread(target) {
15
- for(var i = 1; i < arguments.length; i++){
16
- var source = arguments[i] != null ? arguments[i] : {};
17
- var ownKeys = Object.keys(source);
18
- if (typeof Object.getOwnPropertySymbols === "function") {
19
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
- }));
22
- }
23
- ownKeys.forEach(function(key) {
24
- _define_property(target, key, source[key]);
25
- });
26
- }
27
- return target;
28
- }
29
- function ownKeys(object, enumerableOnly) {
30
- var keys = Object.keys(object);
31
- if (Object.getOwnPropertySymbols) {
32
- var symbols = Object.getOwnPropertySymbols(object);
33
- if (enumerableOnly) {
34
- symbols = symbols.filter(function(sym) {
35
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
36
- });
37
- }
38
- keys.push.apply(keys, symbols);
39
- }
40
- return keys;
41
- }
42
- function _object_spread_props(target, source) {
43
- source = source != null ? source : {};
44
- if (Object.getOwnPropertyDescriptors) {
45
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
46
- } else {
47
- ownKeys(Object(source)).forEach(function(key) {
48
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
49
- });
50
- }
51
- return target;
52
- }
53
- function _tagged_template_literal(strings, raw) {
54
- if (!raw) {
55
- raw = strings.slice(0);
56
- }
57
- return Object.freeze(Object.defineProperties(strings, {
58
- raw: {
59
- value: Object.freeze(raw)
60
- }
61
- }));
62
- }
63
- function _templateObject() {
64
- var data = _tagged_template_literal([
65
- "\n display: flex;\n justify-content: flex-start;\n width: 100%;\n"
66
- ]);
67
- _templateObject = function _templateObject() {
68
- return data;
69
- };
70
- return data;
71
- }
72
- import { jsx } from "react/jsx-runtime";
1
+ import HighlightBox_default from "../../../../Elements/HighlightBox/index.js";
73
2
  import { useMemo } from "react";
74
- import HighlightBox from "../../../../Elements/HighlightBox";
75
- import styled from "@xstyled/styled-components";
76
- var Center = styled.div(_templateObject());
77
- var EnumInCell = function EnumInCell(param) {
78
- var value = param.value, enumObj = param.enumObj, appearanceMap = param.appearanceMap, size = param.size;
79
- var finalLabel = useMemo(function() {
80
- return enumObj[value] ? enumObj[value]() : value;
81
- }, [
82
- enumObj,
83
- value
84
- ]);
85
- var coloringProp = useMemo(function() {
86
- return {
87
- appearance: appearanceMap[value]
88
- };
89
- }, [
90
- appearanceMap,
91
- value
92
- ]);
93
- if (!finalLabel) return null;
94
- return /* @__PURE__ */ jsx(Center, {
95
- "data-propagation": "true",
96
- children: /* @__PURE__ */ jsx(HighlightBox, _object_spread_props(_object_spread({}, coloringProp), {
97
- size: size,
98
- prefix: "grid",
99
- children: finalLabel
100
- }))
101
- });
3
+ import styled$1 from "@xstyled/styled-components";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region packages/ui/Blocks/CommonGrid/components/gridCells/EnumInCell.tsx
6
+ const Center = styled$1.div`
7
+ display: flex;
8
+ justify-content: flex-start;
9
+ width: 100%;
10
+ `;
11
+ const EnumInCell = ({ value, enumObj, appearanceMap, size }) => {
12
+ const finalLabel = useMemo(() => {
13
+ return enumObj[value] ? enumObj[value]() : value;
14
+ }, [enumObj, value]);
15
+ const coloringProp = useMemo(() => {
16
+ return { appearance: appearanceMap[value] };
17
+ }, [appearanceMap, value]);
18
+ if (!finalLabel) return null;
19
+ return /* @__PURE__ */ jsx(Center, {
20
+ "data-propagation": "true",
21
+ children: /* @__PURE__ */ jsx(HighlightBox_default, {
22
+ ...coloringProp,
23
+ size,
24
+ prefix: "grid",
25
+ children: finalLabel
26
+ })
27
+ });
102
28
  };
29
+ //#endregion
103
30
  export { EnumInCell };