@rio-cloud/rio-uikit 1.6.0 → 1.7.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 (851) hide show
  1. package/.DS_Store +0 -0
  2. package/AccentBar.d.ts +2 -0
  3. package/AccentBar.js +2 -0
  4. package/Avatar.d.ts +2 -0
  5. package/Avatar.js +2 -0
  6. package/AvatarGroup.d.ts +2 -0
  7. package/AvatarGroup.js +2 -0
  8. package/Banner.d.ts +2 -0
  9. package/Banner.js +2 -0
  10. package/ButtonToolbar.d.ts +2 -0
  11. package/ButtonToolbar.js +2 -0
  12. package/Card.d.ts +2 -0
  13. package/Card.js +2 -0
  14. package/DateRangePicker.js +2 -3
  15. package/FormLabel.d.ts +2 -0
  16. package/FormLabel.js +2 -0
  17. package/LabeledElement.d.ts +2 -0
  18. package/LabeledElement.js +2 -0
  19. package/StepButton.d.ts +2 -0
  20. package/StepButton.js +2 -0
  21. package/VirtualList.d.ts +2 -0
  22. package/VirtualList.js +2 -0
  23. package/components/accentBar/AccentBar.d.ts +21 -0
  24. package/components/accentBar/AccentBar.js +12 -0
  25. package/components/actionBarItem/ActionBarItem.d.ts +2 -6
  26. package/components/actionBarItem/ActionBarItem.js +6 -7
  27. package/components/actionBarItem/ActionBarItemIcon.d.ts +2 -2
  28. package/components/actionBarItem/ActionBarItemIcon.js +2 -3
  29. package/components/actionBarItem/ActionBarItemList.js +2 -6
  30. package/components/actionBarItem/ActionBarItemListItem.js +2 -5
  31. package/components/actionBarItem/ActionBarItemListSeparator.js +2 -6
  32. package/components/actionBarItem/ActionBarItemPopoverContent.js +2 -6
  33. package/components/actionBarItem/ActionBarOverlay.d.ts +1 -1
  34. package/components/actionBarItem/ActionBarOverlay.js +3 -4
  35. package/components/activity/Activity.js +2 -3
  36. package/components/animatedNumber/AnimatedNumber.d.ts +6 -6
  37. package/components/animatedNumber/AnimatedNumber.js +2 -3
  38. package/components/applicationHeader/AppMenu.js +3 -6
  39. package/components/applicationHeader/AppMenuContent.js +2 -4
  40. package/components/applicationHeader/AppMenuDropdown.js +4 -4
  41. package/components/applicationHeader/ApplicationActionBar.js +4 -7
  42. package/components/applicationHeader/ApplicationHeader.js +4 -5
  43. package/components/applicationHeader/CollapsedNavItem.js +3 -3
  44. package/components/applicationHeader/MobileAppMenu.js +2 -2
  45. package/components/applicationHeader/MobileHeaderModal.js +2 -2
  46. package/components/applicationHeader/MobileSubmoduleNavigation.js +3 -3
  47. package/components/applicationHeader/NavItems.js +2 -2
  48. package/components/applicationLayout/ApplicationLayout.js +2 -4
  49. package/components/applicationLayout/ApplicationLayoutBody.d.ts +1 -1
  50. package/components/applicationLayout/ApplicationLayoutBody.js +9 -9
  51. package/components/applicationLayout/ApplicationLayoutBodyBanner.d.ts +1 -1
  52. package/components/applicationLayout/ApplicationLayoutBodyBanner.js +2 -3
  53. package/components/applicationLayout/ApplicationLayoutBodyBottomBar.js +2 -3
  54. package/components/applicationLayout/ApplicationLayoutBodyNavigation.d.ts +1 -1
  55. package/components/applicationLayout/ApplicationLayoutBodyNavigation.js +2 -3
  56. package/components/applicationLayout/ApplicationLayoutHeader.d.ts +1 -1
  57. package/components/applicationLayout/ApplicationLayoutHeader.js +2 -3
  58. package/components/applicationLayout/ApplicationLayoutSidebar.d.ts +1 -1
  59. package/components/applicationLayout/ApplicationLayoutSidebar.js +2 -3
  60. package/components/applicationLayout/SubNavigation.js +2 -3
  61. package/components/aspectRatioPlaceholder/AspectRatioPlaceholder.js +1 -3
  62. package/components/assetTree/AssetTree.d.ts +1 -1
  63. package/components/assetTree/AssetTree.js +4 -5
  64. package/components/assetTree/Tree.d.ts +2 -2
  65. package/components/assetTree/Tree.js +9 -12
  66. package/components/assetTree/TreeLeaf.js +1 -1
  67. package/components/assetTree/TreeLeafList.js +0 -2
  68. package/components/assetTree/TreeNode.js +1 -1
  69. package/components/assetTree/TreeNodeContainer.js +1 -3
  70. package/components/assetTree/TreeNothingFound.js +2 -2
  71. package/components/assetTree/TreeOption.js +2 -5
  72. package/components/assetTree/TreeOptions.js +3 -5
  73. package/components/assetTree/TreeRoot.js +1 -3
  74. package/components/assetTree/TreeSearch.js +1 -1
  75. package/components/assetTree/TreeSelectAll.js +1 -3
  76. package/components/assetTree/TreeSidebar.js +2 -3
  77. package/components/assetTree/TreeSidebarCategories.js +2 -4
  78. package/components/assetTree/TreeSummary.js +1 -1
  79. package/components/assetTree/TreeSummaryRow.js +1 -3
  80. package/components/assetTree/TypeCounter.js +2 -3
  81. package/components/assetTree/treeReducer.js +8 -8
  82. package/components/assetTree/treeUtils.d.ts +0 -2
  83. package/components/assetTree/treeUtils.js +14 -11
  84. package/components/autosuggest/AutoSuggest.js +12 -16
  85. package/components/autosuggest/AutoSuggestAddons.js +1 -3
  86. package/components/autosuggest/DropdownSpinner.js +1 -2
  87. package/components/autosuggest/NoItemMessage.js +1 -3
  88. package/components/avatar/Avatar.d.ts +54 -0
  89. package/components/avatar/Avatar.js +27 -0
  90. package/components/avatar/AvatarContent.d.ts +10 -0
  91. package/components/avatar/AvatarContent.js +20 -0
  92. package/components/avatar/AvatarGroup.d.ts +15 -0
  93. package/components/avatar/AvatarGroup.js +23 -0
  94. package/components/banner/Banner.d.ts +66 -0
  95. package/components/banner/Banner.js +49 -0
  96. package/components/banner/BannerActions.d.ts +9 -0
  97. package/components/banner/BannerActions.js +5 -0
  98. package/components/banner/BannerContent.d.ts +25 -0
  99. package/components/banner/BannerContent.js +16 -0
  100. package/components/banner/BannerIcon.d.ts +9 -0
  101. package/components/banner/BannerIcon.js +5 -0
  102. package/components/banner/BannerPage.d.ts +9 -0
  103. package/components/banner/BannerPage.js +5 -0
  104. package/components/bottomSheet/BottomSheet.d.ts +2 -2
  105. package/components/bottomSheet/BottomSheet.js +5 -6
  106. package/components/bottomSheet/TimedBottomSheet.js +3 -4
  107. package/components/button/Button.d.ts +2 -0
  108. package/components/button/Button.js +4 -5
  109. package/components/button/ButtonToolbar.d.ts +13 -0
  110. package/components/button/ButtonToolbar.js +8 -0
  111. package/components/button/StepButton.d.ts +12 -0
  112. package/components/button/StepButton.js +8 -0
  113. package/components/button/ToggleButton.js +1 -3
  114. package/components/calendarStripe/CalendarStripe.js +1 -1
  115. package/components/card/Card.d.ts +21 -0
  116. package/components/card/Card.js +8 -0
  117. package/components/carousel/Carousel.d.ts +4 -6
  118. package/components/charts/AreaChart.js +6 -9
  119. package/components/charts/AreaGradient.js +1 -2
  120. package/components/charts/BarChart.js +13 -12
  121. package/components/charts/ChartGrid.js +1 -1
  122. package/components/charts/ChartLabel.d.ts +0 -1
  123. package/components/charts/ChartNeedle.js +13 -4
  124. package/components/charts/ComposedChart.js +13 -16
  125. package/components/charts/Legend.js +0 -2
  126. package/components/charts/LineChart.js +7 -10
  127. package/components/charts/PieChart.js +6 -9
  128. package/components/charts/RadialBarChart.js +5 -8
  129. package/components/charts/ReferenceLine.js +3 -6
  130. package/components/charts/ResponsiveContainer.js +1 -1
  131. package/components/charts/XAxis.js +2 -2
  132. package/components/charts/YAxis.d.ts +0 -1
  133. package/components/charts/chartHelper.d.ts +2 -2
  134. package/components/charts/chartHelper.js +1 -1
  135. package/components/checkbox/Checkbox.js +4 -7
  136. package/components/checkbox/CheckboxIcon.js +1 -1
  137. package/components/clearableInput/ClearableInput.js +18 -7
  138. package/components/collapse/Collapse.d.ts +1 -1
  139. package/components/collapse/Collapse.js +1 -3
  140. package/components/contentLoader/ContentLoader.js +2 -5
  141. package/components/dataTabs/DataTab.js +3 -6
  142. package/components/dataTabs/DataTabHeader.js +1 -1
  143. package/components/dataTabs/DataTabs.js +7 -9
  144. package/components/datepicker/DatePicker.d.ts +16 -16
  145. package/components/datepicker/DatePicker.js +3 -4
  146. package/components/datepicker/DateRangePicker.d.ts +55 -55
  147. package/components/datepicker/DateRangePicker.js +28 -14
  148. package/components/dialog/ConfirmationDialog.js +3 -6
  149. package/components/dialog/Dialog.d.ts +2 -2
  150. package/components/dialog/Dialog.js +13 -13
  151. package/components/dialog/DialogBody.js +2 -6
  152. package/components/dialog/DialogFooter.js +2 -5
  153. package/components/dialog/DialogHeader.js +2 -3
  154. package/components/dialog/FrameDialog.js +2 -2
  155. package/components/dialog/InfoDialog.js +2 -5
  156. package/components/dialog/MediaDialog.js +7 -9
  157. package/components/dialog/OnboardingDialog.js +2 -5
  158. package/components/dialog/ReleaseNotesDialog.js +1 -3
  159. package/components/dialog/SaveDialog.js +3 -6
  160. package/components/dialog/SimpleDialog.js +2 -5
  161. package/components/dialog/SplitDialog.js +3 -6
  162. package/components/divider/Divider.js +3 -5
  163. package/components/dropdown/ButtonDropdown.d.ts +1 -1
  164. package/components/dropdown/ButtonDropdown.js +11 -11
  165. package/components/dropdown/Caret.js +0 -2
  166. package/components/dropdown/DropdownSubmenu.js +2 -3
  167. package/components/dropdown/DropdownToggleButton.js +2 -3
  168. package/components/dropdown/SimpleButtonDropdown.js +1 -3
  169. package/components/dropdown/SingleButtonDropdown.js +1 -3
  170. package/components/dropdown/SplitButtonDropdown.js +1 -3
  171. package/components/dropdown/SplitCaretButton.js +2 -3
  172. package/components/editableContent/EditableContent.js +6 -9
  173. package/components/expander/ExpanderList.js +5 -5
  174. package/components/expander/ExpanderPanel.js +2 -3
  175. package/components/fade/Fade.js +2 -2
  176. package/components/fade/FadeExpander.js +2 -2
  177. package/components/fade/FadeUp.js +2 -3
  178. package/components/feedback/FeedbackInlineButtons.js +2 -5
  179. package/components/feedback/FeedbackRating.js +4 -6
  180. package/components/feedback/FeedbackReactions.js +4 -5
  181. package/components/filepicker/FilePicker.js +5 -6
  182. package/components/formLabel/FormLabel.d.ts +13 -0
  183. package/components/formLabel/FormLabel.js +17 -0
  184. package/components/formLabel/LabeledElement.d.ts +28 -0
  185. package/components/formLabel/LabeledElement.js +11 -0
  186. package/components/groupedItemList/GroupedItemList.js +2 -5
  187. package/components/licensePlate/LicensePlate.js +4 -6
  188. package/components/listMenu/ListMenu.d.ts +1 -0
  189. package/components/listMenu/ListMenu.js +11 -11
  190. package/components/listMenu/ListMenuGroup.d.ts +17 -0
  191. package/components/listMenu/ListMenuGroup.js +1 -3
  192. package/components/listMenu/ListMenuHeader.d.ts +3 -1
  193. package/components/listMenu/ListMenuHeader.js +3 -5
  194. package/components/loadMore/LoadMoreButton.js +2 -5
  195. package/components/loadMore/LoadMoreProgress.js +1 -1
  196. package/components/map/components/Map.js +5 -7
  197. package/components/map/components/MapContext.d.ts +0 -1
  198. package/components/map/components/MapElements.js +1 -1
  199. package/components/map/components/MapPosition.js +3 -5
  200. package/components/map/components/MapSize.js +3 -3
  201. package/components/map/components/constants.d.ts +1 -2
  202. package/components/map/components/features/ContextMenu.d.ts +0 -2
  203. package/components/map/components/features/ContextMenu.js +3 -4
  204. package/components/map/components/features/ContextMenuItem.d.ts +0 -1
  205. package/components/map/components/features/MapSettings.d.ts +0 -1
  206. package/components/map/components/features/MapSettings.js +6 -7
  207. package/components/map/components/features/MapZoom.js +6 -9
  208. package/components/map/components/features/Route.d.ts +1 -1
  209. package/components/map/components/features/Route.js +23 -4
  210. package/components/map/components/features/basics/Circle.d.ts +0 -1
  211. package/components/map/components/features/basics/Circle.js +3 -5
  212. package/components/map/components/features/basics/InfoBubble.d.ts +0 -1
  213. package/components/map/components/features/basics/InfoBubble.js +4 -6
  214. package/components/map/components/features/basics/Marker.d.ts +2 -3
  215. package/components/map/components/features/basics/Marker.js +2 -4
  216. package/components/map/components/features/basics/Polygon.d.ts +0 -1
  217. package/components/map/components/features/basics/Polygon.js +3 -5
  218. package/components/map/components/features/basics/Polyline.d.ts +0 -1
  219. package/components/map/components/features/basics/Polyline.js +18 -7
  220. package/components/map/components/features/basics/TextMarker.js +2 -5
  221. package/components/map/components/features/layers/MapLayerGroup.js +11 -7
  222. package/components/map/components/features/layers/MapOverlayLayers.js +0 -1
  223. package/components/map/components/features/layers/MarkerLayer.js +6 -6
  224. package/components/map/components/features/layers/clustering/ClusterLayer.d.ts +0 -1
  225. package/components/map/components/features/layers/clustering/ClusterLayer.js +2 -4
  226. package/components/map/components/features/layers/clustering/SimpleClusterLayer.js +2 -4
  227. package/components/map/components/features/layers/overlayLayers/IncidentsLayer.js +13 -16
  228. package/components/map/components/features/layers/overlayLayers/Layer.d.ts +0 -1
  229. package/components/map/components/features/layers/overlayLayers/Layer.js +4 -8
  230. package/components/map/components/features/layers/overlayLayers/RoadRestrictionLayer.js +2 -5
  231. package/components/map/components/features/layers/overlayLayers/TrafficLayer.js +4 -8
  232. package/components/map/components/features/settings/MapSettingsItem.js +3 -3
  233. package/components/map/components/features/settings/MapSettingsPanel.js +2 -4
  234. package/components/map/components/features/settings/MapSettingsTile.js +9 -10
  235. package/components/map/components/features/settings/ZoomButtons.js +1 -3
  236. package/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.js +2 -5
  237. package/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +2 -5
  238. package/components/map/components/features/settings/builtinSettings/MapLayerSettings.js +8 -13
  239. package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +3 -4
  240. package/components/map/components/features/settings/buttons/MapBoundingBoxButton.js +2 -5
  241. package/components/map/components/features/settings/buttons/MapCenterMarkerButton.js +2 -5
  242. package/components/map/components/features/settings/buttons/MapLockMarkerButton.js +2 -5
  243. package/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.d.ts +0 -1
  244. package/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.js +2 -4
  245. package/components/map/components/features/settings/items/MapLayerIncidentsItem.d.ts +0 -1
  246. package/components/map/components/features/settings/items/MapLayerIncidentsItem.js +2 -4
  247. package/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.d.ts +0 -1
  248. package/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.js +2 -4
  249. package/components/map/components/features/settings/items/MapLayerTrafficItem.d.ts +0 -1
  250. package/components/map/components/features/settings/items/MapLayerTrafficItem.js +2 -4
  251. package/components/map/components/features/settings/items/MapSettingsDropdownHeader.js +2 -4
  252. package/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.d.ts +0 -1
  253. package/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.js +2 -4
  254. package/components/map/icons/MapIcon.js +35 -35
  255. package/components/map/utils/clustering.d.ts +0 -1
  256. package/components/map/utils/eventHandling.d.ts +0 -1
  257. package/components/map/utils/eventHandling.js +1 -1
  258. package/components/map/utils/mapTypes.d.ts +0 -2
  259. package/components/map/utils/mapUi.d.ts +0 -1
  260. package/components/map/utils/mapUtils.d.ts +0 -1
  261. package/components/map/utils/mapUtils.js +5 -5
  262. package/components/map/utils/positions.js +2 -2
  263. package/components/map/utils/rendering.d.ts +0 -1
  264. package/components/map/utils/rendering.js +8 -10
  265. package/components/mapMarker/ClusterMapMarker.js +1 -2
  266. package/components/mapMarker/SingleMapMarker.js +4 -7
  267. package/components/menuItems/MenuItem.js +1 -1
  268. package/components/menuItems/MenuItemList.js +2 -3
  269. package/components/menuItems/MenuItems.js +1 -5
  270. package/components/navigation/AppNavigationBar.d.ts +17 -0
  271. package/components/navigation/AppNavigationBar.js +3 -4
  272. package/components/noData/NoData.js +3 -6
  273. package/components/notification/Notification.d.ts +50 -30
  274. package/components/notification/Notification.js +96 -3
  275. package/components/notification/NotificationsContainer.d.ts +2 -0
  276. package/components/notification/NotificationsContainer.js +2 -4
  277. package/components/numberControl/NumberControl.js +3 -4
  278. package/components/numberInput/NumberInput.js +4 -5
  279. package/components/onboarding/OnboardingTip.js +3 -5
  280. package/components/overlay/OverlayTrigger.js +29 -14
  281. package/components/page/Page.js +1 -3
  282. package/components/pager/Pager.js +4 -5
  283. package/components/popover/Popover.d.ts +5 -5
  284. package/components/popover/Popover.js +4 -6
  285. package/components/position/Position.js +1 -2
  286. package/components/radiobutton/RadioButton.js +3 -4
  287. package/components/releaseNotes/ReleaseNotes.js +3 -6
  288. package/components/resizer/Resizer.js +2 -3
  289. package/components/responsiveColumnStripe/ResponsiveColumnStripe.d.ts +1 -1
  290. package/components/responsiveColumnStripe/ResponsiveColumnStripe.js +8 -12
  291. package/components/rules/RuleConnector.js +2 -5
  292. package/components/rules/RuleContainer.js +4 -6
  293. package/components/rules/RulesWrapper.js +3 -9
  294. package/components/saveableInput/SaveableInput.js +4 -6
  295. package/components/selects/BaseSelectDropdown.js +9 -9
  296. package/components/selects/ClearButton.js +1 -3
  297. package/components/selects/DropdownHeader.js +1 -3
  298. package/components/selects/Multiselect.js +7 -9
  299. package/components/selects/MultiselectToggleCounter.js +1 -3
  300. package/components/selects/MultiselectToggleFilter.js +0 -2
  301. package/components/selects/MultiselectTogglePlaceholder.js +1 -3
  302. package/components/selects/MultiselectToggleSelection.js +5 -7
  303. package/components/selects/NoItemMessage.js +1 -3
  304. package/components/selects/Select.js +5 -7
  305. package/components/selects/SelectFilter.js +0 -2
  306. package/components/selects/SelectedOption.js +6 -8
  307. package/components/selects/WithFeedbackAndAddon.js +1 -3
  308. package/components/sidebars/Sidebar.js +8 -10
  309. package/components/sidebars/SidebarBackdrop.js +0 -1
  310. package/components/sidebars/SidebarCloseButton.js +1 -2
  311. package/components/sidebars/SidebarFooter.js +1 -3
  312. package/components/sidebars/SidebarFullscreenToggle.js +2 -3
  313. package/components/slider/RangeSlider.js +2 -3
  314. package/components/slider/Slider.js +2 -3
  315. package/components/smoothScrollbars/SmoothScrollbars.d.ts +1 -1
  316. package/components/smoothScrollbars/SmoothScrollbars.js +7 -7
  317. package/components/spinner/Spinner.js +6 -9
  318. package/components/states/BaseStateProps.js +1 -2
  319. package/components/states/CustomState.js +12 -15
  320. package/components/states/EmptyState.js +2 -5
  321. package/components/states/ErrorState.js +2 -5
  322. package/components/states/ForbiddenState.js +2 -5
  323. package/components/states/MaintenanceState.js +2 -5
  324. package/components/states/NotBookedState.js +4 -7
  325. package/components/states/NotFoundState.js +2 -5
  326. package/components/states/StateButton.js +2 -4
  327. package/components/states/StateIcon.js +0 -1
  328. package/components/statsWidget/StatsWidget.d.ts +4 -4
  329. package/components/statsWidget/StatsWidget.js +3 -6
  330. package/components/statsWidget/StatsWidgetBody.js +2 -5
  331. package/components/statsWidget/StatsWidgetFooter.js +2 -5
  332. package/components/statsWidget/StatsWidgetHeader.js +2 -5
  333. package/components/statsWidget/StatsWidgetNumber.js +2 -5
  334. package/components/statsWidget/StatsWidgetSpacer.js +2 -4
  335. package/components/statsWidget/StatsWidgets.js +2 -5
  336. package/components/statusBar/StatusBar.js +3 -5
  337. package/components/statusBar/StatusBarIcon.js +2 -5
  338. package/components/statusBar/StatusBarLabel.js +2 -5
  339. package/components/statusBar/StatusBarProgressBar.js +2 -3
  340. package/components/steppedProgressBar/SteppedProgressBar.js +1 -1
  341. package/components/switch/Switch.d.ts +4 -6
  342. package/components/switch/Switch.js +2 -3
  343. package/components/table/SortArrowDown.js +0 -1
  344. package/components/table/SortArrowUp.js +0 -1
  345. package/components/table/SortArrows.js +0 -1
  346. package/components/table/TableCardsSorting.js +1 -1
  347. package/components/table/TableSearch.js +2 -4
  348. package/components/table/TableSettingsColumnButtons.js +3 -4
  349. package/components/table/TableSettingsColumnDetails.js +1 -3
  350. package/components/table/TableSettingsDialog.js +8 -6
  351. package/components/table/TableSettingsDialog.types.d.ts +0 -1
  352. package/components/table/TableSettingsDialogFooter.js +1 -3
  353. package/components/table/TableSettingsListContainer.js +1 -1
  354. package/components/table/TableSettingsListItem.js +2 -4
  355. package/components/table/TableToolbar.js +1 -3
  356. package/components/table/TableViewToggles.js +4 -5
  357. package/components/tag/Tag.js +2 -3
  358. package/components/tag/TagList.js +3 -6
  359. package/components/tagManager/CustomSuggestionItem.js +1 -3
  360. package/components/tagManager/TagManager.js +2 -3
  361. package/components/tagManager/TagManagerItemList.js +3 -4
  362. package/components/teaser/Teaser.js +11 -15
  363. package/components/teaser/TeaserContainer.js +3 -3
  364. package/components/timepicker/TimePicker.js +3 -4
  365. package/components/tooltip/SimpleTooltip.js +2 -5
  366. package/components/tooltip/Tooltip.js +2 -3
  367. package/components/video/ResponsiveVideo.js +1 -2
  368. package/components/virtualList/VirtualList.d.ts +59 -0
  369. package/components/virtualList/VirtualList.js +140 -0
  370. package/components/virtualList/VirtualListItemWrapper.d.ts +10 -0
  371. package/components/virtualList/VirtualListItemWrapper.js +13 -0
  372. package/components/virtualList/useVirtualListResizeObserver.d.ts +2 -0
  373. package/components/virtualList/useVirtualListResizeObserver.js +44 -0
  374. package/hooks/useClickOutside.d.ts +4 -3
  375. package/hooks/useClickOutside.js +10 -4
  376. package/hooks/useClipboard.js +1 -1
  377. package/hooks/useDebugInfo.js +6 -3
  378. package/hooks/useFocusTrap.js +7 -7
  379. package/hooks/useFullscreen.js +8 -9
  380. package/hooks/useHover.d.ts +2 -2
  381. package/hooks/useInterval.js +1 -1
  382. package/hooks/useKey.d.ts +1 -1
  383. package/hooks/useMutationObserver.js +1 -1
  384. package/hooks/usePostMessage.d.ts +1 -1
  385. package/hooks/useResizeObserver.js +3 -4
  386. package/hooks/useStorage.d.ts +2 -3
  387. package/hooks/useTimeout.js +2 -2
  388. package/hooks/useToggle.d.ts +13 -0
  389. package/hooks/useToggle.js +31 -0
  390. package/hooks/useUncontrollable.js +7 -4
  391. package/lib/es/AccentBar.d.ts +2 -0
  392. package/lib/es/AccentBar.js +7 -0
  393. package/lib/es/Avatar.d.ts +2 -0
  394. package/lib/es/Avatar.js +7 -0
  395. package/lib/es/AvatarGroup.d.ts +2 -0
  396. package/lib/es/AvatarGroup.js +7 -0
  397. package/lib/es/Banner.d.ts +2 -0
  398. package/lib/es/Banner.js +7 -0
  399. package/lib/es/ButtonToolbar.d.ts +2 -0
  400. package/lib/es/ButtonToolbar.js +7 -0
  401. package/lib/es/Card.d.ts +2 -0
  402. package/lib/es/Card.js +7 -0
  403. package/lib/es/Colors.js +2 -4
  404. package/lib/es/DateRangePicker.js +2 -2
  405. package/lib/es/FormLabel.d.ts +2 -0
  406. package/lib/es/FormLabel.js +7 -0
  407. package/lib/es/LabeledElement.d.ts +2 -0
  408. package/lib/es/LabeledElement.js +7 -0
  409. package/lib/es/StatsWidgets.js +2 -4
  410. package/lib/es/StepButton.d.ts +2 -0
  411. package/lib/es/{Onboarding.js → StepButton.js} +3 -3
  412. package/lib/es/TagList.js +2 -4
  413. package/lib/es/VirtualList.d.ts +2 -0
  414. package/lib/es/VirtualList.js +7 -0
  415. package/lib/es/components/accentBar/AccentBar.d.ts +21 -0
  416. package/lib/es/components/accentBar/AccentBar.js +15 -0
  417. package/lib/es/components/actionBarItem/ActionBarItem.d.ts +2 -6
  418. package/lib/es/components/actionBarItem/ActionBarItem.js +6 -6
  419. package/lib/es/components/actionBarItem/ActionBarItemIcon.d.ts +2 -2
  420. package/lib/es/components/actionBarItem/ActionBarItemIcon.js +2 -2
  421. package/lib/es/components/actionBarItem/ActionBarItemList.js +2 -5
  422. package/lib/es/components/actionBarItem/ActionBarItemListItem.js +2 -4
  423. package/lib/es/components/actionBarItem/ActionBarItemListSeparator.js +2 -5
  424. package/lib/es/components/actionBarItem/ActionBarItemPopoverContent.js +2 -5
  425. package/lib/es/components/actionBarItem/ActionBarOverlay.d.ts +1 -1
  426. package/lib/es/components/actionBarItem/ActionBarOverlay.js +3 -3
  427. package/lib/es/components/activity/Activity.js +2 -2
  428. package/lib/es/components/animatedNumber/AnimatedNumber.d.ts +6 -6
  429. package/lib/es/components/animatedNumber/AnimatedNumber.js +2 -2
  430. package/lib/es/components/applicationHeader/AppMenu.js +3 -5
  431. package/lib/es/components/applicationHeader/AppMenuContent.js +2 -4
  432. package/lib/es/components/applicationHeader/AppMenuDropdown.js +4 -4
  433. package/lib/es/components/applicationHeader/ApplicationActionBar.js +4 -7
  434. package/lib/es/components/applicationHeader/ApplicationHeader.js +4 -4
  435. package/lib/es/components/applicationHeader/CollapsedNavItem.js +3 -3
  436. package/lib/es/components/applicationHeader/MobileAppMenu.js +2 -2
  437. package/lib/es/components/applicationHeader/MobileHeaderModal.js +2 -2
  438. package/lib/es/components/applicationHeader/MobileSubmoduleNavigation.js +3 -3
  439. package/lib/es/components/applicationHeader/NavItems.js +2 -2
  440. package/lib/es/components/applicationLayout/ApplicationLayout.js +2 -3
  441. package/lib/es/components/applicationLayout/ApplicationLayoutBody.d.ts +1 -1
  442. package/lib/es/components/applicationLayout/ApplicationLayoutBody.js +9 -8
  443. package/lib/es/components/applicationLayout/ApplicationLayoutBodyBanner.d.ts +1 -1
  444. package/lib/es/components/applicationLayout/ApplicationLayoutBodyBanner.js +2 -2
  445. package/lib/es/components/applicationLayout/ApplicationLayoutBodyBottomBar.js +2 -2
  446. package/lib/es/components/applicationLayout/ApplicationLayoutBodyNavigation.d.ts +1 -1
  447. package/lib/es/components/applicationLayout/ApplicationLayoutBodyNavigation.js +2 -2
  448. package/lib/es/components/applicationLayout/ApplicationLayoutHeader.d.ts +1 -1
  449. package/lib/es/components/applicationLayout/ApplicationLayoutHeader.js +2 -2
  450. package/lib/es/components/applicationLayout/ApplicationLayoutSidebar.d.ts +1 -1
  451. package/lib/es/components/applicationLayout/ApplicationLayoutSidebar.js +2 -2
  452. package/lib/es/components/applicationLayout/SubNavigation.js +2 -2
  453. package/lib/es/components/aspectRatioPlaceholder/AspectRatioPlaceholder.js +1 -3
  454. package/lib/es/components/assetTree/AssetTree.d.ts +1 -1
  455. package/lib/es/components/assetTree/AssetTree.js +4 -4
  456. package/lib/es/components/assetTree/Tree.d.ts +2 -2
  457. package/lib/es/components/assetTree/Tree.js +9 -11
  458. package/lib/es/components/assetTree/TreeLeaf.js +1 -1
  459. package/lib/es/components/assetTree/TreeLeafList.js +0 -2
  460. package/lib/es/components/assetTree/TreeNode.js +1 -1
  461. package/lib/es/components/assetTree/TreeNodeContainer.js +1 -3
  462. package/lib/es/components/assetTree/TreeNothingFound.js +2 -2
  463. package/lib/es/components/assetTree/TreeOption.js +2 -4
  464. package/lib/es/components/assetTree/TreeOptions.js +3 -5
  465. package/lib/es/components/assetTree/TreeRoot.js +1 -3
  466. package/lib/es/components/assetTree/TreeSearch.js +1 -1
  467. package/lib/es/components/assetTree/TreeSelectAll.js +1 -3
  468. package/lib/es/components/assetTree/TreeSidebar.js +2 -2
  469. package/lib/es/components/assetTree/TreeSidebarCategories.js +2 -4
  470. package/lib/es/components/assetTree/TreeSummary.js +1 -1
  471. package/lib/es/components/assetTree/TreeSummaryRow.js +1 -3
  472. package/lib/es/components/assetTree/TypeCounter.js +2 -2
  473. package/lib/es/components/assetTree/treeReducer.js +8 -8
  474. package/lib/es/components/assetTree/treeUtils.d.ts +0 -2
  475. package/lib/es/components/assetTree/treeUtils.js +14 -11
  476. package/lib/es/components/autosuggest/AutoSuggest.js +12 -15
  477. package/lib/es/components/autosuggest/AutoSuggestAddons.js +1 -3
  478. package/lib/es/components/autosuggest/DropdownSpinner.js +1 -2
  479. package/lib/es/components/autosuggest/NoItemMessage.js +1 -3
  480. package/lib/es/components/avatar/Avatar.d.ts +54 -0
  481. package/lib/es/components/avatar/Avatar.js +30 -0
  482. package/lib/es/components/avatar/AvatarContent.d.ts +10 -0
  483. package/lib/es/components/avatar/AvatarContent.js +22 -0
  484. package/lib/es/components/avatar/AvatarGroup.d.ts +15 -0
  485. package/lib/es/components/avatar/AvatarGroup.js +26 -0
  486. package/lib/es/components/banner/Banner.d.ts +66 -0
  487. package/lib/es/components/banner/Banner.js +52 -0
  488. package/lib/es/components/banner/BannerActions.d.ts +9 -0
  489. package/lib/es/components/banner/BannerActions.js +7 -0
  490. package/lib/es/components/banner/BannerContent.d.ts +25 -0
  491. package/lib/es/components/banner/BannerContent.js +19 -0
  492. package/lib/es/components/banner/BannerIcon.d.ts +9 -0
  493. package/lib/es/components/banner/BannerIcon.js +7 -0
  494. package/lib/es/components/banner/BannerPage.d.ts +9 -0
  495. package/lib/es/components/banner/BannerPage.js +7 -0
  496. package/lib/es/components/bottomSheet/BottomSheet.d.ts +2 -2
  497. package/lib/es/components/bottomSheet/BottomSheet.js +5 -5
  498. package/lib/es/components/bottomSheet/TimedBottomSheet.js +3 -3
  499. package/lib/es/components/button/Button.d.ts +2 -0
  500. package/lib/es/components/button/Button.js +4 -4
  501. package/lib/es/components/button/ButtonToolbar.d.ts +13 -0
  502. package/lib/es/components/button/ButtonToolbar.js +11 -0
  503. package/lib/es/components/button/StepButton.d.ts +12 -0
  504. package/lib/es/components/button/StepButton.js +11 -0
  505. package/lib/es/components/button/ToggleButton.js +1 -3
  506. package/lib/es/components/calendarStripe/CalendarStripe.js +1 -1
  507. package/lib/es/components/card/Card.d.ts +21 -0
  508. package/lib/es/components/card/Card.js +11 -0
  509. package/lib/es/components/carousel/Carousel.d.ts +4 -6
  510. package/lib/es/components/charts/AreaChart.js +6 -8
  511. package/lib/es/components/charts/AreaGradient.js +1 -2
  512. package/lib/es/components/charts/BarChart.js +13 -11
  513. package/lib/es/components/charts/ChartGrid.js +0 -1
  514. package/lib/es/components/charts/ChartLabel.d.ts +0 -1
  515. package/lib/es/components/charts/ChartNeedle.js +13 -4
  516. package/lib/es/components/charts/ComposedChart.js +13 -15
  517. package/lib/es/components/charts/Legend.js +0 -2
  518. package/lib/es/components/charts/LineChart.js +7 -9
  519. package/lib/es/components/charts/PieChart.js +6 -8
  520. package/lib/es/components/charts/RadialBarChart.js +5 -7
  521. package/lib/es/components/charts/ReferenceLine.js +3 -6
  522. package/lib/es/components/charts/ResponsiveContainer.js +0 -1
  523. package/lib/es/components/charts/XAxis.js +2 -2
  524. package/lib/es/components/charts/YAxis.d.ts +0 -1
  525. package/lib/es/components/charts/chartHelper.d.ts +2 -2
  526. package/lib/es/components/charts/chartHelper.js +1 -1
  527. package/lib/es/components/checkbox/Checkbox.js +4 -6
  528. package/lib/es/components/checkbox/CheckboxIcon.js +1 -1
  529. package/lib/es/components/clearableInput/ClearableInput.js +18 -6
  530. package/lib/es/components/collapse/Collapse.d.ts +1 -1
  531. package/lib/es/components/collapse/Collapse.js +1 -3
  532. package/lib/es/components/contentLoader/ContentLoader.js +2 -4
  533. package/lib/es/components/dataTabs/DataTab.js +3 -6
  534. package/lib/es/components/dataTabs/DataTabHeader.js +1 -1
  535. package/lib/es/components/dataTabs/DataTabs.js +7 -8
  536. package/lib/es/components/datepicker/DatePicker.d.ts +16 -16
  537. package/lib/es/components/datepicker/DatePicker.js +3 -3
  538. package/lib/es/components/datepicker/DateRangePicker.d.ts +55 -55
  539. package/lib/es/components/datepicker/DateRangePicker.js +28 -14
  540. package/lib/es/components/dialog/ConfirmationDialog.js +3 -5
  541. package/lib/es/components/dialog/Dialog.d.ts +2 -2
  542. package/lib/es/components/dialog/Dialog.js +12 -11
  543. package/lib/es/components/dialog/DialogBody.js +2 -5
  544. package/lib/es/components/dialog/DialogFooter.js +2 -4
  545. package/lib/es/components/dialog/DialogHeader.js +2 -2
  546. package/lib/es/components/dialog/FrameDialog.js +2 -2
  547. package/lib/es/components/dialog/InfoDialog.js +2 -4
  548. package/lib/es/components/dialog/MediaDialog.js +6 -7
  549. package/lib/es/components/dialog/OnboardingDialog.js +2 -4
  550. package/lib/es/components/dialog/ReleaseNotesDialog.js +1 -3
  551. package/lib/es/components/dialog/SaveDialog.js +3 -5
  552. package/lib/es/components/dialog/SimpleDialog.js +2 -4
  553. package/lib/es/components/dialog/SplitDialog.js +3 -5
  554. package/lib/es/components/divider/Divider.js +3 -5
  555. package/lib/es/components/dropdown/ButtonDropdown.d.ts +1 -1
  556. package/lib/es/components/dropdown/ButtonDropdown.js +11 -10
  557. package/lib/es/components/dropdown/Caret.js +0 -2
  558. package/lib/es/components/dropdown/DropdownSubmenu.js +2 -2
  559. package/lib/es/components/dropdown/DropdownToggleButton.js +2 -2
  560. package/lib/es/components/dropdown/SimpleButtonDropdown.js +1 -3
  561. package/lib/es/components/dropdown/SingleButtonDropdown.js +1 -3
  562. package/lib/es/components/dropdown/SplitButtonDropdown.js +1 -3
  563. package/lib/es/components/dropdown/SplitCaretButton.js +2 -2
  564. package/lib/es/components/editableContent/EditableContent.js +6 -8
  565. package/lib/es/components/expander/ExpanderList.js +5 -5
  566. package/lib/es/components/expander/ExpanderPanel.js +2 -2
  567. package/lib/es/components/fade/Fade.js +2 -2
  568. package/lib/es/components/fade/FadeExpander.js +2 -2
  569. package/lib/es/components/fade/FadeUp.js +2 -2
  570. package/lib/es/components/feedback/FeedbackInlineButtons.js +2 -5
  571. package/lib/es/components/feedback/FeedbackRating.js +4 -5
  572. package/lib/es/components/feedback/FeedbackReactions.js +4 -4
  573. package/lib/es/components/filepicker/FilePicker.js +5 -5
  574. package/lib/es/components/formLabel/FormLabel.d.ts +13 -0
  575. package/lib/es/components/formLabel/FormLabel.js +20 -0
  576. package/lib/es/components/formLabel/LabeledElement.d.ts +28 -0
  577. package/lib/es/components/formLabel/LabeledElement.js +14 -0
  578. package/lib/es/components/groupedItemList/GroupedItemList.js +2 -5
  579. package/lib/es/components/licensePlate/LicensePlate.js +4 -6
  580. package/lib/es/components/listMenu/ListMenu.d.ts +1 -0
  581. package/lib/es/components/listMenu/ListMenu.js +11 -10
  582. package/lib/es/components/listMenu/ListMenuGroup.d.ts +17 -0
  583. package/lib/es/components/listMenu/ListMenuGroup.js +1 -3
  584. package/lib/es/components/listMenu/ListMenuHeader.d.ts +3 -1
  585. package/lib/es/components/listMenu/ListMenuHeader.js +2 -4
  586. package/lib/es/components/loadMore/LoadMoreButton.js +2 -4
  587. package/lib/es/components/loadMore/LoadMoreProgress.js +1 -1
  588. package/lib/es/components/map/components/Map.js +5 -7
  589. package/lib/es/components/map/components/MapContext.d.ts +0 -1
  590. package/lib/es/components/map/components/MapElements.js +1 -1
  591. package/lib/es/components/map/components/MapPosition.js +3 -5
  592. package/lib/es/components/map/components/MapSize.js +3 -3
  593. package/lib/es/components/map/components/constants.d.ts +1 -2
  594. package/lib/es/components/map/components/features/ContextMenu.d.ts +0 -2
  595. package/lib/es/components/map/components/features/ContextMenu.js +3 -4
  596. package/lib/es/components/map/components/features/ContextMenuItem.d.ts +0 -1
  597. package/lib/es/components/map/components/features/MapSettings.d.ts +0 -1
  598. package/lib/es/components/map/components/features/MapSettings.js +6 -7
  599. package/lib/es/components/map/components/features/MapZoom.js +6 -9
  600. package/lib/es/components/map/components/features/Route.d.ts +1 -1
  601. package/lib/es/components/map/components/features/Route.js +24 -5
  602. package/lib/es/components/map/components/features/basics/Circle.d.ts +0 -1
  603. package/lib/es/components/map/components/features/basics/Circle.js +3 -5
  604. package/lib/es/components/map/components/features/basics/InfoBubble.d.ts +0 -1
  605. package/lib/es/components/map/components/features/basics/InfoBubble.js +4 -6
  606. package/lib/es/components/map/components/features/basics/Marker.d.ts +2 -3
  607. package/lib/es/components/map/components/features/basics/Marker.js +2 -4
  608. package/lib/es/components/map/components/features/basics/Polygon.d.ts +0 -1
  609. package/lib/es/components/map/components/features/basics/Polygon.js +3 -5
  610. package/lib/es/components/map/components/features/basics/Polyline.d.ts +0 -1
  611. package/lib/es/components/map/components/features/basics/Polyline.js +18 -7
  612. package/lib/es/components/map/components/features/basics/TextMarker.js +2 -4
  613. package/lib/es/components/map/components/features/layers/MapLayerGroup.js +11 -7
  614. package/lib/es/components/map/components/features/layers/MapOverlayLayers.js +0 -1
  615. package/lib/es/components/map/components/features/layers/MarkerLayer.js +6 -5
  616. package/lib/es/components/map/components/features/layers/clustering/ClusterLayer.d.ts +0 -1
  617. package/lib/es/components/map/components/features/layers/clustering/ClusterLayer.js +2 -4
  618. package/lib/es/components/map/components/features/layers/clustering/SimpleClusterLayer.js +2 -3
  619. package/lib/es/components/map/components/features/layers/overlayLayers/IncidentsLayer.js +13 -16
  620. package/lib/es/components/map/components/features/layers/overlayLayers/Layer.d.ts +0 -1
  621. package/lib/es/components/map/components/features/layers/overlayLayers/Layer.js +4 -8
  622. package/lib/es/components/map/components/features/layers/overlayLayers/RoadRestrictionLayer.js +2 -5
  623. package/lib/es/components/map/components/features/layers/overlayLayers/TrafficLayer.js +4 -8
  624. package/lib/es/components/map/components/features/settings/MapSettingsItem.js +3 -3
  625. package/lib/es/components/map/components/features/settings/MapSettingsPanel.js +2 -4
  626. package/lib/es/components/map/components/features/settings/MapSettingsTile.js +9 -9
  627. package/lib/es/components/map/components/features/settings/ZoomButtons.js +1 -3
  628. package/lib/es/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.js +2 -4
  629. package/lib/es/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +2 -4
  630. package/lib/es/components/map/components/features/settings/builtinSettings/MapLayerSettings.js +8 -12
  631. package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +3 -3
  632. package/lib/es/components/map/components/features/settings/buttons/MapBoundingBoxButton.js +2 -4
  633. package/lib/es/components/map/components/features/settings/buttons/MapCenterMarkerButton.js +2 -4
  634. package/lib/es/components/map/components/features/settings/buttons/MapLockMarkerButton.js +2 -4
  635. package/lib/es/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.d.ts +0 -1
  636. package/lib/es/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.js +2 -3
  637. package/lib/es/components/map/components/features/settings/items/MapLayerIncidentsItem.d.ts +0 -1
  638. package/lib/es/components/map/components/features/settings/items/MapLayerIncidentsItem.js +2 -3
  639. package/lib/es/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.d.ts +0 -1
  640. package/lib/es/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.js +2 -3
  641. package/lib/es/components/map/components/features/settings/items/MapLayerTrafficItem.d.ts +0 -1
  642. package/lib/es/components/map/components/features/settings/items/MapLayerTrafficItem.js +2 -3
  643. package/lib/es/components/map/components/features/settings/items/MapSettingsDropdownHeader.js +2 -3
  644. package/lib/es/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.d.ts +0 -1
  645. package/lib/es/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.js +2 -3
  646. package/lib/es/components/map/icons/MapIcon.js +35 -35
  647. package/lib/es/components/map/utils/clustering.d.ts +0 -1
  648. package/lib/es/components/map/utils/eventHandling.d.ts +0 -1
  649. package/lib/es/components/map/utils/eventHandling.js +1 -1
  650. package/lib/es/components/map/utils/mapTypes.d.ts +0 -2
  651. package/lib/es/components/map/utils/mapUi.d.ts +0 -1
  652. package/lib/es/components/map/utils/mapUtils.d.ts +0 -1
  653. package/lib/es/components/map/utils/mapUtils.js +5 -5
  654. package/lib/es/components/map/utils/positions.js +2 -2
  655. package/lib/es/components/map/utils/rendering.d.ts +0 -1
  656. package/lib/es/components/map/utils/rendering.js +8 -10
  657. package/lib/es/components/mapMarker/ClusterMapMarker.js +1 -2
  658. package/lib/es/components/mapMarker/SingleMapMarker.js +4 -7
  659. package/lib/es/components/menuItems/MenuItem.js +1 -1
  660. package/lib/es/components/menuItems/MenuItemList.js +2 -2
  661. package/lib/es/components/menuItems/MenuItems.js +1 -5
  662. package/lib/es/components/navigation/AppNavigationBar.d.ts +17 -0
  663. package/lib/es/components/navigation/AppNavigationBar.js +3 -3
  664. package/lib/es/components/noData/NoData.js +3 -5
  665. package/lib/es/components/notification/Notification.d.ts +50 -30
  666. package/lib/es/components/notification/Notification.js +99 -4
  667. package/lib/es/components/notification/NotificationsContainer.d.ts +2 -0
  668. package/lib/es/components/notification/NotificationsContainer.js +2 -4
  669. package/lib/es/components/numberControl/NumberControl.js +3 -3
  670. package/lib/es/components/numberInput/NumberInput.js +4 -4
  671. package/lib/es/components/onboarding/OnboardingTip.js +3 -5
  672. package/lib/es/components/overlay/OverlayTrigger.js +29 -14
  673. package/lib/es/components/page/Page.js +1 -3
  674. package/lib/es/components/pager/Pager.js +4 -4
  675. package/lib/es/components/popover/Popover.d.ts +5 -5
  676. package/lib/es/components/popover/Popover.js +4 -5
  677. package/lib/es/components/position/Position.js +1 -2
  678. package/lib/es/components/radiobutton/RadioButton.js +3 -3
  679. package/lib/es/components/releaseNotes/ReleaseNotes.js +3 -5
  680. package/lib/es/components/resizer/Resizer.js +2 -2
  681. package/lib/es/components/responsiveColumnStripe/ResponsiveColumnStripe.d.ts +1 -1
  682. package/lib/es/components/responsiveColumnStripe/ResponsiveColumnStripe.js +8 -11
  683. package/lib/es/components/rules/RuleConnector.js +2 -4
  684. package/lib/es/components/rules/RuleContainer.js +4 -5
  685. package/lib/es/components/rules/RulesWrapper.js +3 -9
  686. package/lib/es/components/saveableInput/SaveableInput.js +4 -5
  687. package/lib/es/components/selects/BaseSelectDropdown.js +8 -8
  688. package/lib/es/components/selects/ClearButton.js +1 -3
  689. package/lib/es/components/selects/DropdownHeader.js +1 -3
  690. package/lib/es/components/selects/Multiselect.js +7 -8
  691. package/lib/es/components/selects/MultiselectToggleCounter.js +1 -3
  692. package/lib/es/components/selects/MultiselectToggleFilter.js +0 -2
  693. package/lib/es/components/selects/MultiselectTogglePlaceholder.js +1 -3
  694. package/lib/es/components/selects/MultiselectToggleSelection.js +5 -7
  695. package/lib/es/components/selects/NoItemMessage.js +1 -3
  696. package/lib/es/components/selects/Select.js +5 -6
  697. package/lib/es/components/selects/SelectFilter.js +0 -2
  698. package/lib/es/components/selects/SelectedOption.js +5 -7
  699. package/lib/es/components/selects/WithFeedbackAndAddon.js +1 -3
  700. package/lib/es/components/sidebars/Sidebar.js +8 -9
  701. package/lib/es/components/sidebars/SidebarBackdrop.js +0 -1
  702. package/lib/es/components/sidebars/SidebarCloseButton.js +1 -2
  703. package/lib/es/components/sidebars/SidebarFooter.js +1 -3
  704. package/lib/es/components/sidebars/SidebarFullscreenToggle.js +2 -3
  705. package/lib/es/components/slider/RangeSlider.js +2 -2
  706. package/lib/es/components/slider/Slider.js +2 -2
  707. package/lib/es/components/smoothScrollbars/SmoothScrollbars.d.ts +1 -1
  708. package/lib/es/components/smoothScrollbars/SmoothScrollbars.js +7 -7
  709. package/lib/es/components/spinner/Spinner.js +6 -8
  710. package/lib/es/components/states/BaseStateProps.js +0 -2
  711. package/lib/es/components/states/CustomState.js +12 -14
  712. package/lib/es/components/states/EmptyState.js +2 -4
  713. package/lib/es/components/states/ErrorState.js +2 -4
  714. package/lib/es/components/states/ForbiddenState.js +2 -4
  715. package/lib/es/components/states/MaintenanceState.js +2 -4
  716. package/lib/es/components/states/NotBookedState.js +3 -5
  717. package/lib/es/components/states/NotFoundState.js +2 -4
  718. package/lib/es/components/states/StateButton.js +2 -4
  719. package/lib/es/components/states/StateIcon.js +0 -1
  720. package/lib/es/components/statsWidget/StatsWidget.d.ts +4 -4
  721. package/lib/es/components/statsWidget/StatsWidget.js +3 -5
  722. package/lib/es/components/statsWidget/StatsWidgetBody.js +2 -4
  723. package/lib/es/components/statsWidget/StatsWidgetFooter.js +2 -4
  724. package/lib/es/components/statsWidget/StatsWidgetHeader.js +2 -4
  725. package/lib/es/components/statsWidget/StatsWidgetNumber.js +2 -4
  726. package/lib/es/components/statsWidget/StatsWidgetSpacer.js +2 -3
  727. package/lib/es/components/statsWidget/StatsWidgets.js +2 -4
  728. package/lib/es/components/statusBar/StatusBar.js +3 -5
  729. package/lib/es/components/statusBar/StatusBarIcon.js +2 -5
  730. package/lib/es/components/statusBar/StatusBarLabel.js +2 -5
  731. package/lib/es/components/statusBar/StatusBarProgressBar.js +2 -3
  732. package/lib/es/components/steppedProgressBar/SteppedProgressBar.js +1 -1
  733. package/lib/es/components/switch/Switch.d.ts +4 -6
  734. package/lib/es/components/switch/Switch.js +2 -2
  735. package/lib/es/components/table/SortArrowDown.js +0 -1
  736. package/lib/es/components/table/SortArrowUp.js +0 -1
  737. package/lib/es/components/table/SortArrows.js +0 -1
  738. package/lib/es/components/table/TableCardsSorting.js +1 -1
  739. package/lib/es/components/table/TableSearch.js +2 -3
  740. package/lib/es/components/table/TableSettingsColumnButtons.js +3 -4
  741. package/lib/es/components/table/TableSettingsColumnDetails.js +1 -3
  742. package/lib/es/components/table/TableSettingsDialog.js +8 -6
  743. package/lib/es/components/table/TableSettingsDialog.types.d.ts +0 -1
  744. package/lib/es/components/table/TableSettingsDialogFooter.js +1 -3
  745. package/lib/es/components/table/TableSettingsListContainer.js +1 -1
  746. package/lib/es/components/table/TableSettingsListItem.js +2 -4
  747. package/lib/es/components/table/TableToolbar.js +1 -3
  748. package/lib/es/components/table/TableViewToggles.js +4 -4
  749. package/lib/es/components/tag/Tag.js +2 -2
  750. package/lib/es/components/tag/TagList.js +3 -5
  751. package/lib/es/components/tagManager/CustomSuggestionItem.js +1 -3
  752. package/lib/es/components/tagManager/TagManager.js +2 -2
  753. package/lib/es/components/tagManager/TagManagerItemList.js +3 -4
  754. package/lib/es/components/teaser/Teaser.js +11 -15
  755. package/lib/es/components/teaser/TeaserContainer.js +3 -3
  756. package/lib/es/components/timepicker/TimePicker.js +3 -3
  757. package/lib/es/components/tooltip/SimpleTooltip.js +2 -4
  758. package/lib/es/components/tooltip/Tooltip.js +2 -2
  759. package/lib/es/components/video/ResponsiveVideo.js +1 -2
  760. package/lib/es/components/virtualList/VirtualList.d.ts +59 -0
  761. package/lib/es/components/virtualList/VirtualList.js +145 -0
  762. package/lib/es/components/virtualList/VirtualListItemWrapper.d.ts +10 -0
  763. package/lib/es/components/virtualList/VirtualListItemWrapper.js +16 -0
  764. package/lib/es/components/virtualList/useVirtualListResizeObserver.d.ts +2 -0
  765. package/lib/es/components/virtualList/useVirtualListResizeObserver.js +46 -0
  766. package/lib/es/hooks/useClickOutside.d.ts +4 -3
  767. package/lib/es/hooks/useClickOutside.js +11 -5
  768. package/lib/es/hooks/useClipboard.js +1 -1
  769. package/lib/es/hooks/useDebugInfo.js +6 -3
  770. package/lib/es/hooks/useFocusTrap.js +7 -7
  771. package/lib/es/hooks/useFullscreen.js +8 -8
  772. package/lib/es/hooks/useHover.d.ts +2 -2
  773. package/lib/es/hooks/useInterval.js +1 -1
  774. package/lib/es/hooks/useKey.d.ts +1 -1
  775. package/lib/es/hooks/useMutationObserver.js +1 -1
  776. package/lib/es/hooks/usePostMessage.d.ts +1 -1
  777. package/lib/es/hooks/useResizeObserver.js +3 -4
  778. package/lib/es/hooks/useStorage.d.ts +2 -3
  779. package/lib/es/hooks/useTimeout.js +2 -2
  780. package/lib/es/hooks/useToggle.d.ts +13 -0
  781. package/lib/es/hooks/useToggle.js +33 -0
  782. package/lib/es/hooks/useUncontrollable.js +10 -8
  783. package/lib/es/styles/variables/colors/colors.json +7 -1
  784. package/lib/es/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.d.ts +7 -7
  785. package/lib/es/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +2 -2
  786. package/lib/es/useAfterMount.js +2 -4
  787. package/lib/es/useClipboard.js +2 -4
  788. package/lib/es/useDarkMode.js +2 -4
  789. package/lib/es/useDebugInfo.js +2 -4
  790. package/lib/es/useEffectOnce.js +2 -4
  791. package/lib/es/useElementSize.js +2 -4
  792. package/lib/es/useEsc.js +2 -4
  793. package/lib/es/useEvent.js +2 -4
  794. package/lib/es/useFocusTrap.js +2 -4
  795. package/lib/es/useFullscreen.js +2 -4
  796. package/lib/es/useHover.js +2 -4
  797. package/lib/es/useInterval.js +2 -4
  798. package/lib/es/useKey.js +2 -4
  799. package/lib/es/useToggle.d.ts +2 -0
  800. package/lib/es/useToggle.js +7 -0
  801. package/lib/es/utils/colorScheme.js +2 -3
  802. package/lib/es/utils/darkModeCDN.js +1 -1
  803. package/lib/es/utils/deviceUtils.js +5 -6
  804. package/lib/es/utils/init/checkForReleaseVersion.d.ts +1 -0
  805. package/lib/es/utils/init/checkForReleaseVersion.js +21 -0
  806. package/lib/es/utils/init/doNotUseTailwind.d.ts +1 -0
  807. package/lib/es/utils/init/doNotUseTailwind.js +57 -0
  808. package/lib/es/utils/init/initCSS.js +1 -2
  809. package/lib/es/utils/init/initDocumentBootstrapping.js +23 -27
  810. package/lib/es/utils/init/styledLogs.d.ts +3 -0
  811. package/lib/es/utils/init/styledLogs.js +7 -0
  812. package/lib/es/utils/init/usedUikitVersion.d.ts +1 -0
  813. package/lib/es/utils/init/usedUikitVersion.js +11 -0
  814. package/lib/es/utils/init/weAreHiring.d.ts +1 -0
  815. package/lib/es/utils/init/weAreHiring.js +10 -0
  816. package/lib/es/utils/mergeRefs.d.ts +2 -2
  817. package/lib/es/utils/mergeRefs.js +0 -2
  818. package/lib/es/utils/routeUtils.d.ts +1 -1
  819. package/lib/es/utils/routeUtils.js +3 -3
  820. package/lib/es/utils/urlFeatureToggles.d.ts +0 -1
  821. package/lib/es/utils/urlFeatureToggles.js +1 -2
  822. package/lib/es/version.json +1 -1
  823. package/package.json +39 -39
  824. package/styles/variables/colors/colors.json +7 -1
  825. package/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.d.ts +7 -7
  826. package/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +2 -3
  827. package/useToggle.d.ts +2 -0
  828. package/useToggle.js +2 -0
  829. package/utils/colorScheme.js +2 -3
  830. package/utils/darkModeCDN.js +1 -1
  831. package/utils/deviceUtils.js +5 -6
  832. package/utils/init/checkForReleaseVersion.d.ts +1 -0
  833. package/utils/init/checkForReleaseVersion.js +17 -0
  834. package/utils/init/doNotUseTailwind.d.ts +1 -0
  835. package/utils/init/doNotUseTailwind.js +53 -0
  836. package/utils/init/initCSS.js +1 -2
  837. package/utils/init/initDocumentBootstrapping.js +24 -28
  838. package/utils/init/styledLogs.d.ts +3 -0
  839. package/utils/init/styledLogs.js +3 -0
  840. package/utils/init/usedUikitVersion.d.ts +1 -0
  841. package/utils/init/usedUikitVersion.js +7 -0
  842. package/utils/init/weAreHiring.d.ts +1 -0
  843. package/utils/init/weAreHiring.js +6 -0
  844. package/utils/mergeRefs.d.ts +2 -2
  845. package/utils/mergeRefs.js +0 -2
  846. package/utils/routeUtils.d.ts +1 -1
  847. package/utils/routeUtils.js +3 -3
  848. package/utils/urlFeatureToggles.d.ts +0 -1
  849. package/utils/urlFeatureToggles.js +1 -2
  850. package/version.json +1 -1
  851. package/lib/es/Onboarding.d.ts +0 -2
@@ -6,14 +6,12 @@ export const getPPI = () => (window.devicePixelRatio >= 1.7 ? 200 : 100);
6
6
  // Even if webgl is enabled, some base layer cannot be rendered in HARP properly
7
7
  export const isVectorBased = (enableWebGL, baseLayer) => enableWebGL && baseLayer !== MAP_TYPE_TERRAIN && baseLayer !== MAP_TYPE_FLEET_STYLE;
8
8
  // See Migration guide: https://developer.here.com/documentation/maps/3.1.37.0/dev_guide/topics/migration.html
9
- export const getPlatform = (credentials) => {
10
- var _a;
11
- // Initiate and authenticate your connection to the HERE platform:
12
- return new H.service.Platform({
13
- apikey: (_a = credentials.apikey) !== null && _a !== void 0 ? _a : '',
14
- useHTTPS: location.protocol === 'https:' ? true : false,
15
- });
16
- };
9
+ export const getPlatform = (credentials) =>
10
+ // Initiate and authenticate your connection to the HERE platform:
11
+ new H.service.Platform({
12
+ apikey: credentials.apikey ?? '',
13
+ useHTTPS: location.protocol === 'https:' ? true : false,
14
+ });
17
15
  export const getBaseTileLayer = (rasterTileService, engineType) => {
18
16
  // @ts-ignore-next-line "H.service.rasterTile" is newer that the types
19
17
  const rasterTileProvider = new H.service.rasterTile.Provider(rasterTileService, {
@@ -24,7 +22,7 @@ export const getBaseTileLayer = (rasterTileService, engineType) => {
24
22
  };
25
23
  export const getBaseRasterTileService = (platform, style, features, lang) => {
26
24
  // @ts-ignore-next-line "getRasterTileService" is newer that the types
27
- return platform === null || platform === void 0 ? void 0 : platform.getRasterTileService({
25
+ return platform?.getRasterTileService({
28
26
  format: DEFAULT_RASTER_LAYER_FORMAT,
29
27
  queryParams: {
30
28
  // https://www.here.com/docs/bundle/raster-tile-api-migration-guide/page/README.html#5-language
@@ -72,7 +70,7 @@ export const getBaseLayer = ({ baseLayerName, defaultLayers, enableWebGL, platfo
72
70
  // );
73
71
  // const layer = new H.map.layer.TileLayer(provider, { max: 22 });
74
72
  return {
75
- baseLayer: defaultLayers === null || defaultLayers === void 0 ? void 0 : defaultLayers.vector.normal.map,
73
+ baseLayer: defaultLayers?.vector.normal.map,
76
74
  // baseLayer: layer,
77
75
  // overlayLayer: envLayer,
78
76
  };
@@ -1,5 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import 'react';
3
2
  import classNames from 'classnames';
4
3
  import { markerColorMapping } from '../map/utils/mapTypes';
5
4
  const ClusterMapMarker = (props) => {
@@ -7,6 +6,6 @@ const ClusterMapMarker = (props) => {
7
6
  const clusterClasses = classNames('rio-map-cluster-circle', active && 'active', cursor);
8
7
  const classes = classNames(active && 'active', 'rio-map-marker', 'rio-map-marker-center-center', !clickable && 'not-clickable');
9
8
  const markerBackgroundColor = `var(${markerColorMapping[markerColor]})`;
10
- return (_jsx("div", Object.assign({ className: classes, style: { color: markerBackgroundColor }, "data-marker-type": markerColor.replace('bg-', 'cluster-') }, { children: _jsx("div", Object.assign({ className: 'rio-map-marker-translate' }, { children: _jsxs("div", Object.assign({ className: 'rio-map-cluster' }, { children: [_jsx("div", Object.assign({ className: clusterClasses }, { children: _jsxs("div", Object.assign({ className: 'rio-map-cluster-content' }, { children: [iconName && _jsx("div", { className: `rio-map-icon rioglyph rioglyph-${iconName}` }), _jsx("div", Object.assign({ className: 'rio-map-count' }, { children: count }))] })) })), exceptionCount > 0 && _jsx("div", Object.assign({ className: 'rio-map-bubble exception' }, { children: exceptionCount })), warningCount > 0 && _jsx("div", Object.assign({ className: 'rio-map-bubble warning' }, { children: warningCount }))] })) })) })));
9
+ return (_jsx("div", { className: classes, style: { color: markerBackgroundColor }, "data-marker-type": markerColor.replace('bg-', 'cluster-'), children: _jsx("div", { className: 'rio-map-marker-translate', children: _jsxs("div", { className: 'rio-map-cluster', children: [_jsx("div", { className: clusterClasses, children: _jsxs("div", { className: 'rio-map-cluster-content', children: [iconName && (_jsx("span", { className: 'rio-map-icon', children: _jsx("span", { className: `rioglyph rioglyph-${iconName}` }) })), _jsx("div", { className: 'rio-map-count', children: count })] }) }), exceptionCount > 0 && _jsx("div", { className: 'rio-map-bubble exception', children: exceptionCount }), warningCount > 0 && _jsx("div", { className: 'rio-map-bubble warning', children: warningCount })] }) }) }));
11
10
  };
12
11
  export default ClusterMapMarker;
@@ -1,6 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- // @ts-ignore-next-line importsNotUsedAsValues
3
- import 'react';
4
2
  import classNames from 'classnames';
5
3
  import { markerColorMapping } from '../map/utils/mapTypes';
6
4
  const DEFAULT_BEARING = 60;
@@ -9,12 +7,11 @@ const MapStateIndicator = (props) => {
9
7
  if (!moving && !stateIconName) {
10
8
  return null;
11
9
  }
12
- const stateClassName = classNames('rio-map-direction', // TODO: backwards-compatible - remove in future releases
13
- 'rio-map-marker-state', 'rioglyph', `rioglyph-${stateIconName || 'direction'}`);
10
+ const iconClassName = classNames('rioglyph', `rioglyph-${stateIconName || 'direction'}`);
14
11
  const style = stateIconName ? {} : { transform: `rotate(${bearing}deg)` };
15
- return _jsx("div", { className: stateClassName, style: style });
12
+ return (_jsx("div", { className: `rio-map-icon rio-map-marker-state ${stateIconName ? '' : 'rio-map-direction'}`, children: _jsx("span", { className: iconClassName, style: style }) }));
16
13
  };
17
- const getIcons = (iconNames = []) => iconNames.map((name, index) => (_jsx("div", { className: `rio-map-icon rioglyph rioglyph-${name}` }, `rio-map-icon-${name}-${index}`)));
14
+ const getIcons = (iconNames = []) => iconNames.map((name, index) => (_jsx("div", { className: 'rio-map-icon', children: _jsx("span", { className: `rioglyph rioglyph-${name}` }) }, `rio-map-icon-${name}-${index}`)));
18
15
  const SingleMapMarker = (props) => {
19
16
  const { bearing = DEFAULT_BEARING, name, warningCount = 0, exceptionCount = 0, active = false, clickable = true, fixed = false, moving = false, pinging = false, anchorIconName, stateIconName, iconNames, markerColor = 'bg-map-marker-asset', textColor, anchorSize, markerOnHover = false, anchorOnly = !name && !iconNames, cursor = 'cursor-pointer', className, style, } = props;
20
17
  const largeAnchor = anchorSize === 'lg';
@@ -22,6 +19,6 @@ const SingleMapMarker = (props) => {
22
19
  const anchorClasses = classNames('rio-map-anchor', largeAnchor ? 'rio-map-anchor-lg' : '', cursor);
23
20
  const singleClasses = classNames('rio-map-single', fixed && 'fixed', moving && 'moving', textColor, markerOnHover && 'visible-on-hover', active && 'active', pinging && 'pinging', cursor);
24
21
  const markerBackgroundColor = `var(${markerColorMapping[markerColor]})`;
25
- return (_jsx("div", Object.assign({ className: classes, style: Object.assign(Object.assign({}, style), { color: markerBackgroundColor }), "data-marker-type": markerColor.replace('bg-', 'single-') }, { children: _jsxs("div", Object.assign({ className: 'rio-map-marker-translate' }, { children: [!anchorOnly && (_jsxs(_Fragment, { children: [_jsxs("div", Object.assign({ className: singleClasses }, { children: [_jsx(MapStateIndicator, { moving: moving, bearing: bearing, stateIconName: stateIconName }), getIcons(iconNames), name && _jsx("div", Object.assign({ className: 'rio-map-name' }, { children: name })), exceptionCount > 0 && _jsx("div", Object.assign({ className: 'rio-map-bubble exception' }, { children: exceptionCount })), warningCount > 0 && _jsx("div", Object.assign({ className: 'rio-map-bubble warning' }, { children: warningCount }))] })), _jsx("div", { className: 'rio-map-anchor-arrow' })] })), _jsx("div", Object.assign({ className: anchorClasses }, { children: anchorIconName && largeAnchor && _jsx("span", { className: `rioglyph rioglyph-${anchorIconName}` }) }))] })) })));
22
+ return (_jsx("div", { className: classes, style: { ...style, color: markerBackgroundColor }, "data-marker-type": markerColor.replace('bg-', 'single-'), children: _jsxs("div", { className: 'rio-map-marker-translate', children: [!anchorOnly && (_jsxs(_Fragment, { children: [_jsxs("div", { className: singleClasses, children: [_jsx(MapStateIndicator, { moving: moving, bearing: bearing, stateIconName: stateIconName }), getIcons(iconNames), name && _jsx("div", { className: 'rio-map-name', children: name }), exceptionCount > 0 && _jsx("div", { className: 'rio-map-bubble exception', children: exceptionCount }), warningCount > 0 && _jsx("div", { className: 'rio-map-bubble warning', children: warningCount })] }), _jsx("div", { className: 'rio-map-anchor-arrow' })] })), _jsx("div", { className: anchorClasses, children: anchorIconName && largeAnchor && _jsx("span", { className: `rioglyph rioglyph-${anchorIconName}` }) })] }) }));
26
23
  };
27
24
  export default SingleMapMarker;
@@ -28,6 +28,6 @@ const MenuItem = (props) => {
28
28
  if (header) {
29
29
  return _jsx(DropdownHeader, { label: value, center: false });
30
30
  }
31
- return (_jsx("li", Object.assign({ role: role, className: classes, onClick: handleSelectItem, onMouseEnter: handleItemMouseEnter, "data-item-index": index }, { children: _jsx("a", Object.assign({ role: 'menuitem' }, { children: value })) })));
31
+ return (_jsx("li", { role: role, className: classes, onClick: handleSelectItem, onMouseEnter: handleItemMouseEnter, "data-item-index": index, children: _jsx("a", { role: 'menuitem', children: value }) }));
32
32
  };
33
33
  export default MenuItem;
@@ -1,10 +1,9 @@
1
- import { __rest } from "tslib";
2
1
  import { jsx as _jsx } from "react/jsx-runtime";
3
2
  import { forwardRef } from 'react';
4
3
  import classNames from 'classnames';
5
4
  const MenuItemList = forwardRef((props, ref) => {
6
- const { pullRight, className, children } = props, remainingProps = __rest(props, ["pullRight", "className", "children"]);
5
+ const { pullRight, className, children, ...remainingProps } = props;
7
6
  const dropdownMenuClasses = classNames('dropdown-menu', pullRight && 'pull-right', className);
8
- return (_jsx("ul", Object.assign({}, remainingProps, { className: dropdownMenuClasses, ref: ref, role: 'menu' }, { children: children })));
7
+ return (_jsx("ul", { ...remainingProps, className: dropdownMenuClasses, ref: ref, role: 'menu', children: children }));
9
8
  });
10
9
  export default MenuItemList;
@@ -1,11 +1,7 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
- import 'react';
3
2
  import noop from 'lodash/fp/noop';
4
3
  import MenuItemComponent from './MenuItem';
5
4
  const MenuItems = ({ items, closeMenu = noop, onMouseEnter = noop }) => {
6
- return (_jsx(_Fragment, { children: items.map((item, index) => {
7
- var _a, _b;
8
- return (_jsx(MenuItemComponent, Object.assign({}, item, { index: (_a = item.index) !== null && _a !== void 0 ? _a : index, closeMenu: closeMenu, onMouseEnter: onMouseEnter }), (_b = item.index) !== null && _b !== void 0 ? _b : index));
9
- }) }));
5
+ return (_jsx(_Fragment, { children: items.map((item, index) => (_jsx(MenuItemComponent, { ...item, index: item.index ?? index, closeMenu: closeMenu, onMouseEnter: onMouseEnter }, item.index ?? index))) }));
10
6
  };
11
7
  export default MenuItems;
@@ -4,10 +4,27 @@ export type AppNavigationBarProps = {
4
4
  * The title for the content that is shown.
5
5
  */
6
6
  title?: string | ReactNode;
7
+ /**
8
+ * Defines the size of the title. Possible values are 'md' and 'lg'.
9
+ *
10
+ * @default 'md'
11
+ */
12
+ titleSize?: 'md' | 'lg';
13
+ /**
14
+ * Adds a subtitle below the title.
15
+ */
16
+ subtitle?: string | ReactNode;
7
17
  /**
8
18
  * Right side area for additional options of buttons like filter etc. that is relevant for the shown content..
9
19
  */
10
20
  right?: ReactNode;
21
+ backButtonText?: string | ReactNode;
22
+ /**
23
+ * Add a light bottom border to the wrapper element.
24
+ *
25
+ * @default false
26
+ */
27
+ border?: boolean;
11
28
  /**
12
29
  * Callback function for when the back navigation button is clicked.
13
30
  */
@@ -1,12 +1,11 @@
1
- import { __rest } from "tslib";
2
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
2
  import { forwardRef } from 'react';
4
3
  import classNames from 'classnames';
5
4
  import noop from 'lodash/fp/noop';
6
5
  import Button from '../button/Button';
7
6
  export const AppNavigationBar = forwardRef((props, ref) => {
8
- const { className, title, right = _jsx("span", {}), onNavigateBack = noop } = props, remainingProps = __rest(props, ["className", "title", "right", "onNavigateBack"]);
9
- const navigationClasses = classNames('AppNavigationBar', 'width-100pct display-flex align-items-center justify-content-between height-45 user-select-none padding-x-10', className);
10
- return (_jsxs("div", Object.assign({ ref: ref }, remainingProps, { className: navigationClasses }, { children: [_jsxs("div", Object.assign({ className: 'display-flex align-items-center gap-5' }, { children: [_jsx(Button, { bsStyle: 'muted', className: 'text-color-darkest', iconOnly: true, iconName: 'rioglyph-arrow-left', onClick: onNavigateBack }), _jsx("div", Object.assign({ className: 'text-medium text-color-darker' }, { children: title }))] })), _jsx("div", { children: right })] })));
7
+ const { className, title, right = _jsx("span", {}), backButtonText = '', titleSize = 'md', subtitle, border = false, onNavigateBack = noop, ...remainingProps } = props;
8
+ const navigationClasses = classNames('AppNavigationBar', 'width-100pct height-45 user-select-none padding-x-10', 'display-grid grid-stack align-items-center', titleSize === 'md' && 'text-size-14', titleSize === 'lg' && 'text-size-16', border && 'border border-bottom-only border-color-lighter', className);
9
+ return (_jsxs("div", { ref: ref, ...remainingProps, className: navigationClasses, children: [_jsxs("div", { className: 'grid-stack-item display-flex align-items-center justify-content-between', children: [_jsx(Button, { bsStyle: 'muted', className: 'text-color-darkest', iconOnly: !backButtonText, iconName: 'rioglyph-arrow-left', onClick: onNavigateBack, children: backButtonText }), _jsx("div", { className: 'btn-toolbar gap-2', children: right })] }), _jsxs("div", { className: 'grid-stack-item text-center text-medium text-color-darker margin-x-25 padding-x-5 ellipsis-1', children: [_jsx("div", { className: 'ellipsis-1', children: title }), subtitle && _jsx("div", { className: 'text-size-12 line-height-12 text-normal margin-top--2', children: subtitle })] })] }));
11
10
  });
12
11
  export default AppNavigationBar;
@@ -1,16 +1,13 @@
1
- import { __rest } from "tslib";
2
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- // @ts-ignore-next-line importsNotUsedAsValues
4
- import 'react';
5
2
  import classNames from 'classnames';
6
3
  import SimpleTooltip from '../tooltip/SimpleTooltip';
7
4
  import { PLACEMENT } from '../../values/Placement';
8
5
  const NoData = (props) => {
9
- const { text, className = '', tooltip, tooltipPlacement = PLACEMENT.BOTTOM, tooltipWidth = 'auto' } = props, remainingProps = __rest(props, ["text", "className", "tooltip", "tooltipPlacement", "tooltipWidth"]);
6
+ const { text, className = '', tooltip, tooltipPlacement = PLACEMENT.BOTTOM, tooltipWidth = 'auto', ...remainingProps } = props;
10
7
  const noDataClasses = classNames('NoData', className);
11
8
  if (tooltip) {
12
- return (_jsxs("span", Object.assign({}, remainingProps, { className: noDataClasses }, { children: [_jsx("span", Object.assign({ className: 'pointer-events-none user-select-none' }, { children: text })), _jsx(SimpleTooltip, Object.assign({ content: tooltip, placement: tooltipPlacement, width: tooltipWidth }, { children: _jsx("span", { className: 'rioglyph rioglyph-info-sign margin-left-5' }) }))] })));
9
+ return (_jsxs("span", { ...remainingProps, className: noDataClasses, children: [_jsx("span", { className: 'pointer-events-none user-select-none', children: text }), _jsx(SimpleTooltip, { content: tooltip, placement: tooltipPlacement, width: tooltipWidth, children: _jsx("span", { className: 'rioglyph rioglyph-info-sign margin-left-5' }) })] }));
13
10
  }
14
- return (_jsx("span", Object.assign({}, remainingProps, { className: noDataClasses }, { children: _jsx("span", Object.assign({ className: 'pointer-events-none user-select-none' }, { children: text })) })));
11
+ return (_jsx("span", { ...remainingProps, className: noDataClasses, children: _jsx("span", { className: 'pointer-events-none user-select-none', children: text }) }));
15
12
  };
16
13
  export default NoData;
@@ -1,32 +1,52 @@
1
1
  import React from 'react';
2
- type TriggerFunction = (
3
- /**
4
- * The message to be shown.
5
- */
6
- message: string | React.ReactNode,
7
- /**
8
- * The title to be shown.
9
- */
10
- title?: string | React.ReactNode,
11
- /**
12
- * The popup timeout in milliseconds.
13
- *
14
- * If you do not want it to automatically disappear you can define a very high timeOut.
15
- */
16
- timeOut?: number,
17
- /**
18
- * A function that gets invoked when the notification is clicked.
19
- */
20
- callback?: VoidFunction,
21
- /**
22
- * If true, the message gets inserted at the top of the notification stack.
23
- */
24
- priority?: boolean) => void;
25
- type NotificationTypeStub = {
26
- success: TriggerFunction;
27
- info: TriggerFunction;
28
- warning: TriggerFunction;
29
- error: TriggerFunction;
2
+ export declare const DEFAULT_NOTIFICATION_TIMEOUT_IN_MS = 5000;
3
+ export declare const NOTIFICATION_TIMEOUT_INFINITE = 999999;
4
+ export type NotificationOptions = {
5
+ /**
6
+ * The title to be shown.
7
+ */
8
+ title?: string | React.ReactNode;
9
+ /**
10
+ * The timeout in milliseconds after which the notification disappears.
11
+ *
12
+ * If you don`t want it to automatically disappear, set a very high number.
13
+ */
14
+ timeout?: number;
15
+ /**
16
+ * A function that gets invoked when the notification is clicked.
17
+ */
18
+ callback?: VoidFunction;
19
+ /**
20
+ * If true, the message gets inserted at the top of the notification stack.
21
+ *
22
+ * @default false
23
+ * @deprecated
24
+ */
25
+ priority?: boolean;
26
+ /**
27
+ * Flag to enable a close button.
28
+ *
29
+ * @default false
30
+ */
31
+ closeButton?: boolean;
32
+ /**
33
+ * Flag to disable close on clicking on the notification.
34
+ *
35
+ * @default true
36
+ */
37
+ closeOnClick?: boolean;
38
+ /**
39
+ * Flag to show a progress bar. By default it is not shown.
40
+ *
41
+ * @default true
42
+ */
43
+ hideProgressBar?: boolean;
30
44
  };
31
- declare const _default: NotificationTypeStub;
32
- export default _default;
45
+ declare const Notification: {
46
+ default: (message: string | React.ReactNode, optionsOrTitle?: string | React.ReactNode | NotificationOptions, timeout?: number, callback?: VoidFunction, priority?: boolean) => import("react-toastify").Id;
47
+ success: (message: string | React.ReactNode, optionsOrTitle?: string | React.ReactNode | NotificationOptions, timeout?: number, callback?: VoidFunction, priority?: boolean) => import("react-toastify").Id;
48
+ info: (message: string | React.ReactNode, optionsOrTitle?: string | React.ReactNode | NotificationOptions, timeout?: number, callback?: VoidFunction, priority?: boolean) => import("react-toastify").Id;
49
+ warning: (message: string | React.ReactNode, optionsOrTitle?: string | React.ReactNode | NotificationOptions, timeout?: number, callback?: VoidFunction, priority?: boolean) => import("react-toastify").Id;
50
+ error: (message: string | React.ReactNode, optionsOrTitle?: string | React.ReactNode | NotificationOptions, timeout?: number, callback?: VoidFunction, priority?: boolean) => import("react-toastify").Id;
51
+ };
52
+ export default Notification;
@@ -1,5 +1,98 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  // @ts-ignore-next-line importsNotUsedAsValues
2
- import 'react';
3
- // @ts-ignore-next-line 7016
4
- import { NotificationManager as Notification } from 'react-notifications';
3
+ import React from 'react';
4
+ import { toast, Slide } from 'react-toastify';
5
+ export const DEFAULT_NOTIFICATION_TIMEOUT_IN_MS = 5_000;
6
+ export const NOTIFICATION_TIMEOUT_INFINITE = 999_999;
7
+ const baseOptions = {
8
+ position: 'top-right',
9
+ hideProgressBar: true,
10
+ pauseOnHover: true,
11
+ draggable: true,
12
+ theme: 'colored',
13
+ transition: Slide,
14
+ };
15
+ const ToastMessage = (props) => {
16
+ const { title, message } = props;
17
+ return (_jsx("div", { className: 'notification', children: _jsxs("div", { className: 'notification-message', role: 'alert', children: [title && _jsx("h4", { className: 'title', children: title }), _jsx("div", { className: 'message', children: message })] }) }));
18
+ };
19
+ const normalizeArgs = (optionsOrTitle, timeout, callback, priority) => {
20
+ // Handle the new options object format
21
+ if (optionsOrTitle && typeof optionsOrTitle === 'object' && !React.isValidElement(optionsOrTitle)) {
22
+ return { ...optionsOrTitle };
23
+ }
24
+ // Handle legacy format with multiple arguments
25
+ return {
26
+ title: typeof optionsOrTitle === 'string' ? optionsOrTitle : undefined,
27
+ timeout,
28
+ callback,
29
+ priority,
30
+ };
31
+ };
32
+ const mapOptions = (options) => {
33
+ const { timeout, callback, priority, // does not work like that with react-toastify, so we ignore it
34
+ iconClassName, closeButton = false, hideProgressBar = true, closeOnClick = true, } = options;
35
+ return {
36
+ ...baseOptions,
37
+ autoClose: timeout || DEFAULT_NOTIFICATION_TIMEOUT_IN_MS,
38
+ onClick: callback,
39
+ hideProgressBar,
40
+ closeOnClick,
41
+ // replace the default built-in icons
42
+ icon: _jsx("span", { className: `rioglyph ${iconClassName}` }),
43
+ // in case a close button is requested, ignore the auto-injected "closeToast" prop
44
+ // as otherwise it will be passed onto the underlying DOM element
45
+ closeButton: closeButton
46
+ ? ({ closeToast: ignoreCloseToast }) => (_jsx("button", { className: 'notification-close', type: 'button', children: _jsx("span", { className: 'rioglyph rioglyph-remove' }) }))
47
+ : false,
48
+ };
49
+ };
50
+ const Notification = (() => {
51
+ const notify = (type, message, optionsOrTitle, timeout, callback, priority) => {
52
+ // Normalize arguments
53
+ const { title, timeout: time, callback: cb, priority: prio, closeButton, closeOnClick, hideProgressBar, } = normalizeArgs(optionsOrTitle, timeout, callback, priority);
54
+ // Map icon class names based on type
55
+ const iconClassNames = {
56
+ default: '',
57
+ success: 'rioglyph-ok text-size-18',
58
+ info: 'rioglyph-info-sign text-size-20',
59
+ warn: 'rioglyph-exclamation-sign text-size-20',
60
+ error: 'rioglyph-error-sign text-size-20',
61
+ };
62
+ if (type === 'default') {
63
+ return toast(_jsx(ToastMessage, { message: message, title: title }), mapOptions({
64
+ timeout: time,
65
+ callback: cb,
66
+ priority: prio,
67
+ closeButton,
68
+ closeOnClick,
69
+ hideProgressBar,
70
+ iconClassName: iconClassNames[type],
71
+ }));
72
+ }
73
+ // Call the appropriate toast function
74
+ return toast[type](_jsx(ToastMessage, { message: message, title: title }), mapOptions({
75
+ timeout: time,
76
+ callback: cb,
77
+ priority: prio,
78
+ closeButton,
79
+ closeOnClick,
80
+ hideProgressBar,
81
+ iconClassName: iconClassNames[type],
82
+ }));
83
+ };
84
+ // Wrappers for specific types
85
+ const defaultNotification = (message, optionsOrTitle, timeout, callback, priority) => notify('default', message, optionsOrTitle, timeout, callback, priority);
86
+ const info = (message, optionsOrTitle, timeout, callback, priority) => notify('info', message, optionsOrTitle, timeout, callback, priority);
87
+ const success = (message, optionsOrTitle, timeout, callback, priority) => notify('success', message, optionsOrTitle, timeout, callback, priority);
88
+ const warning = (message, optionsOrTitle, timeout, callback, priority) => notify('warn', message, optionsOrTitle, timeout, callback, priority);
89
+ const error = (message, optionsOrTitle, timeout, callback, priority) => notify('error', message, optionsOrTitle, timeout, callback, priority);
90
+ return {
91
+ default: defaultNotification,
92
+ success,
93
+ info,
94
+ warning,
95
+ error,
96
+ };
97
+ })();
5
98
  export default Notification;
@@ -1,6 +1,8 @@
1
1
  export type NotificationsContainerProps = {
2
2
  /**
3
3
  * Defines whether the notification are stacked.
4
+ *
5
+ * @deprecated
4
6
  */
5
7
  stacked?: boolean;
6
8
  };
@@ -1,10 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import 'react';
3
2
  import classNames from 'classnames';
4
- // @ts-ignore-next-line 7016
5
- import { NotificationContainer } from 'react-notifications';
3
+ import { ToastContainer } from 'react-toastify';
6
4
  const NotificationsContainer = ({ stacked }) => {
7
5
  const wrapperClasses = classNames('notification-container-wrapper', stacked && 'stacked');
8
- return (_jsx("div", Object.assign({ className: wrapperClasses }, { children: _jsx(NotificationContainer, {}) })));
6
+ return (_jsx("div", { className: wrapperClasses, children: _jsx(ToastContainer, { className: 'notification-container', stacked: false, limit: 5 }) }));
9
7
  };
10
8
  export default NotificationsContainer;
@@ -1,4 +1,3 @@
1
- import { __rest } from "tslib";
2
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
2
  import { useState, useRef, useEffect, forwardRef } from 'react';
4
3
  import classNames from 'classnames';
@@ -8,7 +7,7 @@ const INITIAL_TICK = 700;
8
7
  const TICK_TIME = 50;
9
8
  const DEFAULT_DIGIT_PRECISION = 3;
10
9
  const NumberControl = forwardRef((props, ref) => {
11
- const { id, min = DEFAULT_MIN, max = DEFAULT_MAX, step = DEFAULT_STEP, value, onChange, onValueChanged = () => { }, onKeyDown = noop, disabled, bsSize, className, unit, inputAddon, errorMessage, warningMessage, messageWhiteSpace, digitPrecision = DEFAULT_DIGIT_PRECISION, placeholder, noDefault } = props, remainingProps = __rest(props, ["id", "min", "max", "step", "value", "onChange", "onValueChanged", "onKeyDown", "disabled", "bsSize", "className", "unit", "inputAddon", "errorMessage", "warningMessage", "messageWhiteSpace", "digitPrecision", "placeholder", "noDefault"]);
10
+ const { id, min = DEFAULT_MIN, max = DEFAULT_MAX, step = DEFAULT_STEP, value, onChange, onValueChanged = () => { }, onKeyDown = noop, disabled, bsSize, className, unit, inputAddon, errorMessage, warningMessage, messageWhiteSpace, digitPrecision = DEFAULT_DIGIT_PRECISION, placeholder, noDefault, ...remainingProps } = props;
12
11
  // Note, "onChange" should replace "onValueChanged" in the future but it's widely used
13
12
  const callback = onChange || onValueChanged;
14
13
  const timeout = useRef(null);
@@ -108,7 +107,7 @@ const NumberControl = forwardRef((props, ref) => {
108
107
  callback(newValue);
109
108
  };
110
109
  const classes = classNames('NumberControl', className);
111
- const controls = (_jsxs("div", Object.assign({ className: 'display-flex padding-left-10', onMouseOut: handleStopHolding, onBlur: handleStopHolding }, { children: [_jsx("div", Object.assign({ onMouseDown: handleMouseDownOnDecrement, onMouseUp: handleStopHolding, role: 'button', "aria-label": 'decrement-button', className: 'decrementButton text-color-gray hover-text-color-dark' }, { children: _jsx("div", { className: 'rioglyph rioglyph-minus scale-90' }) })), _jsx("div", Object.assign({ onMouseDown: handleMouseDownOnIncrement, onMouseUp: handleStopHolding, role: 'button', "aria-label": 'increment-button', className: 'incrementButton text-color-gray hover-text-color-dark margin-left-5' }, { children: _jsx("div", { className: 'rioglyph rioglyph-plus scale-90' }) }))] })));
112
- return (_jsx("div", Object.assign({}, remainingProps, { className: classes }, { children: _jsx(NumberInput, { id: id, ref: ref, min: min, max: max, value: internalValue, step: step, bsSize: bsSize, disabled: disabled, inputAddon: inputAddon, errorMessage: errorMessage, warningMessage: warningMessage, messageWhiteSpace: messageWhiteSpace, controls: controls, unit: unit, onChange: handleUpdatedNumberInputValue, onKeyDown: onKeyDown, digitPrecision: digitPrecision, placeholder: placeholder, noDefault: noDefault }) })));
110
+ const controls = (_jsxs("div", { className: 'display-flex padding-left-10', onMouseOut: handleStopHolding, onBlur: handleStopHolding, children: [_jsx("div", { onMouseDown: handleMouseDownOnDecrement, onMouseUp: handleStopHolding, role: 'button', "aria-label": 'decrement-button', className: 'decrementButton display-flex align-items-center text-color-gray hover-text-color-dark cursor-pointer', children: _jsx("div", { className: 'rioglyph rioglyph-minus scale-90' }) }), _jsx("div", { onMouseDown: handleMouseDownOnIncrement, onMouseUp: handleStopHolding, role: 'button', "aria-label": 'increment-button', className: 'incrementButton display-flex align-items-center text-color-gray hover-text-color-dark cursor-pointer margin-left-5', children: _jsx("div", { className: 'rioglyph rioglyph-plus scale-90' }) })] }));
111
+ return (_jsx("div", { ...remainingProps, className: classes, children: _jsx(NumberInput, { id: id, ref: ref, min: min, max: max, value: internalValue, step: step, bsSize: bsSize, disabled: disabled, inputAddon: inputAddon, errorMessage: errorMessage, warningMessage: warningMessage, messageWhiteSpace: messageWhiteSpace, controls: controls, unit: unit, onChange: handleUpdatedNumberInputValue, onKeyDown: onKeyDown, digitPrecision: digitPrecision, placeholder: placeholder, noDefault: noDefault }) }));
113
112
  });
114
113
  export default NumberControl;
@@ -1,4 +1,3 @@
1
- import { __rest } from "tslib";
2
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
2
  import { useState, useRef, forwardRef } from 'react';
4
3
  import classNames from 'classnames';
@@ -59,7 +58,7 @@ const isInvalidAfter = (key, possiblePreviousKeys, event, previousKeyRef) => {
59
58
  return event.key === key && possiblePreviousKeys.includes(previousKeyRef.current);
60
59
  };
61
60
  const NumberInput = forwardRef((props, ref) => {
62
- const { id, min: propMin, max: propMax, value: propValue, step = DEFAULT_STEP, disabled = false, noDefault = false, onChange, onValueChanged = noop, onKeyDown = noop, bsSize = 'md', unit, inputAddon, errorMessage, warningMessage, messageWhiteSpace = 'normal', controls, placeholder, digitPrecision = DEFAULT_DIGIT_PRECISION, className = '' } = props, remainingProps = __rest(props, ["id", "min", "max", "value", "step", "disabled", "noDefault", "onChange", "onValueChanged", "onKeyDown", "bsSize", "unit", "inputAddon", "errorMessage", "warningMessage", "messageWhiteSpace", "controls", "placeholder", "digitPrecision", "className"]);
61
+ const { id, min: propMin, max: propMax, value: propValue, step = DEFAULT_STEP, disabled = false, noDefault = false, onChange, onValueChanged = noop, onKeyDown = noop, bsSize = 'md', unit, inputAddon, errorMessage, warningMessage, messageWhiteSpace = 'normal', controls, placeholder, digitPrecision = DEFAULT_DIGIT_PRECISION, className = '', ...remainingProps } = props;
63
62
  const previousKeyRef = useRef('');
64
63
  const callback = onChange || onValueChanged;
65
64
  const min = convertNonIntegerToDefault(propMin, DEFAULT_MIN);
@@ -157,9 +156,9 @@ const NumberInput = forwardRef((props, ref) => {
157
156
  const inputGroupClassNames = classNames('input-group', bsSize === 'sm' && 'input-group-sm', bsSize === 'lg' && 'input-group-lg');
158
157
  const inputClassNames = classNames('form-control', 'no-controls', bsSize === 'sm' && 'input-sm', bsSize === 'lg' && 'input-lg', className);
159
158
  const hasFeedback = errorMessage || warningMessage;
160
- const input = (_jsx("input", Object.assign({}, remainingProps, { id: id, type: 'number', step: step, min: min, max: max, value: state.isValid ? state.value : state.enteredValue, className: inputClassNames, disabled: disabled, onBlur: handleBlur,
159
+ const input = (_jsx("input", { ...remainingProps, id: id, type: 'number', step: step, min: min, max: max, value: state.isValid ? state.value : state.enteredValue, className: inputClassNames, disabled: disabled, onBlur: handleBlur,
161
160
  // onChange={state.value ? handleOnChange : undefined}
162
- onChange: handleOnChange, onKeyDown: handleKeyDown, ref: ref, "aria-label": 'number-input', placeholder: placeholder, onWheel: handleWheel })));
163
- return (_jsxs("div", Object.assign({ className: inputGroupClassNames }, { children: [inputAddon && (_jsx("div", Object.assign({ className: 'input-group-addon' }, { children: _jsx("span", { className: inputAddon }) }))), _jsxs("div", Object.assign({ className: 'form-control-feedback-wrapper' }, { children: [input, hasFeedback && (_jsxs(_Fragment, { children: [errorMessage && _jsx("span", { className: 'form-control-feedback rioglyph rioglyph-error-sign' }), warningMessage && _jsx("span", { className: 'form-control-feedback rioglyph rioglyph-warning-sign' }), _jsx("span", Object.assign({ className: `help-block white-space-${messageWhiteSpace}` }, { children: _jsx("span", { children: errorMessage || warningMessage }) }))] }))] })), (unit || controls) && (_jsxs("div", Object.assign({ className: `input-group-addon ${disabled ? 'disabled pointer-events-none' : ''}` }, { children: [unit && unit, controls && controls] })))] })));
161
+ onChange: handleOnChange, onKeyDown: handleKeyDown, ref: ref, "aria-label": 'number-input', placeholder: placeholder, onWheel: handleWheel }));
162
+ return (_jsxs("div", { className: inputGroupClassNames, children: [inputAddon && (_jsx("div", { className: 'input-group-addon', children: _jsx("span", { className: inputAddon }) })), _jsxs("div", { className: 'form-control-feedback-wrapper', children: [input, hasFeedback && (_jsxs(_Fragment, { children: [errorMessage && _jsx("span", { className: 'form-control-feedback rioglyph rioglyph-error-sign' }), warningMessage && _jsx("span", { className: 'form-control-feedback rioglyph rioglyph-warning-sign' }), _jsx("span", { className: `help-block white-space-${messageWhiteSpace}`, children: _jsx("span", { children: errorMessage || warningMessage }) })] }))] }), (unit || controls) && (_jsxs("div", { className: `input-group-addon ${disabled ? 'disabled pointer-events-none' : ''}`, children: [unit && unit, controls && controls] }))] }));
164
163
  });
165
164
  export default NumberInput;
@@ -1,6 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- // @ts-ignore-next-line importsNotUsedAsValues
3
- import 'react';
4
2
  import classNames from 'classnames';
5
3
  import noop from 'lodash/noop';
6
4
  import Button from '../button/Button';
@@ -11,9 +9,9 @@ import { PLACEMENT } from '../../values/Placement';
11
9
  const OnboardingTip = (props) => {
12
10
  const { id, show = false, placement = PLACEMENT.BOTTOM, title, content, onHide = noop, children, textAlignment = TEXT_ALIGNMENT.LEFT, useInDialog = false, showCloseIcon = true, clickflow = false, previousButton, nextButton, className = '', width, preventOverflow = true, popperConfig, } = props;
13
11
  // DEPRECATED in favor of driver.js - see useOnboardingTour hook
14
- const clickFlowWithButtons = (_jsxs("div", Object.assign({ className: 'display-flex flex-column gap-25' }, { children: [_jsx("div", { children: content }), _jsxs("div", Object.assign({ className: `btn-toolbar justify-content-between ${showCloseIcon ? 'margin-right--25' : ''}` }, { children: [previousButton ? (_jsxs("div", Object.assign({ className: 'position-relative' }, { children: [_jsx("div", { className: 'bg-black opacity-10 rounded display-absolute inset-0' }), _jsxs(Button, Object.assign({ bsStyle: Button.SECONDARY, variant: Button.VARIANT_OUTLINE, className: 'border-none text-color-white', onClick: previousButton.onClick }, { children: [previousButton.iconName && (_jsx("span", { className: `rioglyph ${previousButton.iconName} text-color-white` })), _jsx("span", { children: previousButton.text })] }))] }))) : (_jsx("div", {})), nextButton ? (_jsxs(Button, Object.assign({ bsStyle: Button.SECONDARY, variant: Button.VARIANT_OUTLINE, className: 'border-color-white text-color-white', onClick: nextButton.onClick, iconRight: true }, { children: [_jsx("span", { children: nextButton.text }), nextButton.iconName && _jsx("span", { className: `rioglyph ${nextButton.iconName} text-color-white` })] }))) : (_jsx("div", {}))] }))] })));
12
+ const clickFlowWithButtons = (_jsxs("div", { className: 'display-flex flex-column gap-25', children: [_jsx("div", { children: content }), _jsxs("div", { className: `btn-toolbar justify-content-between ${showCloseIcon ? 'margin-right--25' : ''}`, children: [previousButton ? (_jsxs("div", { className: 'position-relative', children: [_jsx("div", { className: 'bg-black opacity-10 rounded display-absolute inset-0' }), _jsxs(Button, { bsStyle: Button.SECONDARY, variant: Button.VARIANT_OUTLINE, className: 'border-none text-color-white', onClick: previousButton.onClick, children: [previousButton.iconName && (_jsx("span", { className: `rioglyph ${previousButton.iconName} text-color-white` })), _jsx("span", { children: previousButton.text })] })] })) : (_jsx("div", {})), nextButton ? (_jsxs(Button, { bsStyle: Button.SECONDARY, variant: Button.VARIANT_OUTLINE, className: 'border-color-white text-color-white', onClick: nextButton.onClick, iconRight: true, children: [_jsx("span", { children: nextButton.text }), nextButton.iconName && _jsx("span", { className: `rioglyph ${nextButton.iconName} text-color-white` })] })) : (_jsx("div", {}))] })] }));
15
13
  const tooltipWrapperClasses = classNames(useInDialog && 'z-index-max', className && className, clickflow && 'onboarding-clickflow');
16
- const overlay = (_jsx(Tooltip, Object.assign({ className: tooltipWrapperClasses, tooltipStyle: Tooltip.STYLE_ONBOARDING, id: id, onClick: onHide, width: width, textAlignment: textAlignment, allowOnTouch: true }, { children: _jsxs("div", Object.assign({ className: 'display-flex' }, { children: [_jsxs("div", Object.assign({ className: 'display-flex flex-column flex-1-1' }, { children: [title && _jsx("div", Object.assign({ className: 'tooltip-title' }, { children: title })), content && _jsx("div", Object.assign({ className: 'tooltip-content' }, { children: clickflow ? clickFlowWithButtons : content }))] })), showCloseIcon && _jsx("span", { className: 'tooltip-close rioglyph rioglyph-remove' })] })) })));
14
+ const overlay = (_jsx(Tooltip, { className: tooltipWrapperClasses, tooltipStyle: Tooltip.STYLE_ONBOARDING, id: id, onClick: onHide, width: width, textAlignment: textAlignment, allowOnTouch: true, children: _jsxs("div", { className: 'display-flex', children: [_jsxs("div", { className: 'display-flex flex-column flex-1-1', children: [title && _jsx("div", { className: 'tooltip-title', children: title }), content && _jsx("div", { className: 'tooltip-content', children: clickflow ? clickFlowWithButtons : content })] }), showCloseIcon && _jsx("span", { className: 'tooltip-close rioglyph rioglyph-remove' })] }) }));
17
15
  const actualPopperConfig = popperConfig || {
18
16
  strategy: 'fixed',
19
17
  modifiers: [
@@ -26,7 +24,7 @@ const OnboardingTip = (props) => {
26
24
  { name: 'arrow', options: {} },
27
25
  ],
28
26
  };
29
- const trigger = (_jsx(OverlayTrigger, Object.assign({ placement: placement, trigger: 'click', overlay: overlay, onToggle: onHide, show: show, rootClose: false, popperConfig: actualPopperConfig }, { children: children })));
27
+ const trigger = (_jsx(OverlayTrigger, { placement: placement, trigger: 'click', overlay: overlay, onToggle: onHide, show: show, rootClose: false, popperConfig: actualPopperConfig, children: children }));
30
28
  return show ? trigger : _jsx(_Fragment, { children: children });
31
29
  };
32
30
  OnboardingTip.AUTO_START = PLACEMENT.AUTO_START;