@rio-cloud/rio-uikit 1.0.0 → 1.2.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 (370) hide show
  1. package/.DS_Store +0 -0
  2. package/DropdownHeader.d.ts +2 -0
  3. package/DropdownHeader.js +2 -0
  4. package/FeedbackInlineButtons.d.ts +2 -0
  5. package/FeedbackInlineButtons.js +2 -0
  6. package/FeedbackRating.d.ts +2 -0
  7. package/FeedbackRating.js +2 -0
  8. package/FeedbackReactions.d.ts +2 -0
  9. package/FeedbackReactions.js +2 -0
  10. package/MapAdditionalLayerSettings.d.ts +2 -0
  11. package/MapAdditionalLayerSettings.js +2 -0
  12. package/MapSettingsDropdownHeader.d.ts +2 -0
  13. package/MapSettingsDropdownHeader.js +2 -0
  14. package/SmoothScrollbars.d.ts +2 -0
  15. package/SmoothScrollbars.js +2 -0
  16. package/components/.DS_Store +0 -0
  17. package/components/actionBarItem/ActionBarItemListItem.js +2 -2
  18. package/components/assetTree/AssetTree.js +2 -1
  19. package/components/assetTree/Tree.d.ts +4 -0
  20. package/components/assetTree/Tree.js +2 -2
  21. package/components/assetTree/TreeOptions.d.ts +1 -0
  22. package/components/assetTree/TreeOptions.js +16 -2
  23. package/components/assetTree/TreeSidebarCategories.js +1 -1
  24. package/components/calendarStripe/CalendarStripe.js +2 -2
  25. package/components/feedback/FeedbackInlineButtons.d.ts +13 -0
  26. package/components/feedback/FeedbackInlineButtons.js +9 -0
  27. package/components/feedback/FeedbackRating.d.ts +65 -0
  28. package/components/feedback/FeedbackRating.js +23 -0
  29. package/components/feedback/FeedbackReactions.d.ts +71 -0
  30. package/components/feedback/FeedbackReactions.js +26 -0
  31. package/components/listMenu/ListMenu.d.ts +5 -1
  32. package/components/listMenu/ListMenu.js +2 -2
  33. package/components/map/.DS_Store +0 -0
  34. package/components/map/components/.DS_Store +0 -0
  35. package/components/map/components/features/basics/Marker.js +1 -1
  36. package/components/map/components/features/settings/MapSettingsItem.d.ts +1 -0
  37. package/components/map/components/features/settings/MapSettingsItem.js +14 -11
  38. package/components/map/components/features/settings/MapSettingsTile.d.ts +3 -2
  39. package/components/map/components/features/settings/MapSettingsTile.js +40 -5
  40. package/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.d.ts +9 -0
  41. package/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.js +15 -0
  42. package/components/map/components/features/settings/builtinSettings/MapClusterSettings.d.ts +3 -0
  43. package/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +8 -2
  44. package/components/map/components/features/settings/builtinSettings/MapLayerSettings.js +15 -9
  45. package/components/map/components/features/settings/builtinSettings/MapTypeSettings.d.ts +6 -0
  46. package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +20 -2
  47. package/components/map/components/features/settings/buttons/MapCenterMarkerButton.js +2 -2
  48. package/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.d.ts +2 -0
  49. package/components/map/components/features/settings/items/MapLayerIncidentsItem.d.ts +2 -0
  50. package/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.d.ts +2 -0
  51. package/components/map/components/features/settings/items/MapLayerTrafficItem.d.ts +2 -0
  52. package/components/map/components/features/settings/items/MapSettingsDropdownHeader.d.ts +4 -0
  53. package/components/map/components/features/settings/items/MapSettingsDropdownHeader.js +9 -0
  54. package/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.d.ts +2 -0
  55. package/components/map/icons/MapIcon.d.ts +1 -2
  56. package/components/map/icons/MapIcon.js +3 -1
  57. package/components/map/utils/mapTypes.d.ts +1 -1
  58. package/components/map/utils/mapTypes.js +12 -4
  59. package/components/mapMarker/ClusterMapMarker.d.ts +8 -0
  60. package/components/mapMarker/ClusterMapMarker.js +5 -4
  61. package/components/mapMarker/SingleMapMarker.d.ts +40 -5
  62. package/components/mapMarker/SingleMapMarker.js +19 -6
  63. package/components/selects/DropdownHeader.d.ts +1 -0
  64. package/components/selects/DropdownHeader.js +2 -2
  65. package/components/selects/Multiselect.js +2 -2
  66. package/components/selects/MultiselectToggleFilter.js +1 -1
  67. package/components/states/CustomState.js +21 -8
  68. package/components/states/StateButton.d.ts +8 -1
  69. package/components/states/StateButton.js +5 -4
  70. package/hooks/useAfterMount.js +8 -4
  71. package/lib/.DS_Store +0 -0
  72. package/lib/es/.DS_Store +0 -0
  73. package/lib/es/DropdownHeader.d.ts +2 -0
  74. package/lib/es/DropdownHeader.js +7 -0
  75. package/lib/es/FeedbackInlineButtons.d.ts +2 -0
  76. package/lib/es/FeedbackInlineButtons.js +7 -0
  77. package/lib/es/FeedbackRating.d.ts +2 -0
  78. package/lib/es/FeedbackRating.js +7 -0
  79. package/lib/es/FeedbackReactions.d.ts +2 -0
  80. package/lib/es/FeedbackReactions.js +7 -0
  81. package/lib/es/MapAdditionalLayerSettings.d.ts +2 -0
  82. package/lib/es/MapAdditionalLayerSettings.js +7 -0
  83. package/lib/es/MapSettingsDropdownHeader.d.ts +2 -0
  84. package/lib/es/MapSettingsDropdownHeader.js +7 -0
  85. package/lib/es/SmoothScrollbars.d.ts +2 -0
  86. package/lib/es/SmoothScrollbars.js +7 -0
  87. package/lib/es/components/.DS_Store +0 -0
  88. package/lib/es/components/actionBarItem/ActionBarItemListItem.js +2 -2
  89. package/lib/es/components/assetTree/AssetTree.js +2 -1
  90. package/lib/es/components/assetTree/Tree.d.ts +4 -0
  91. package/lib/es/components/assetTree/Tree.js +2 -2
  92. package/lib/es/components/assetTree/TreeOptions.d.ts +1 -0
  93. package/lib/es/components/assetTree/TreeOptions.js +16 -2
  94. package/lib/es/components/assetTree/TreeSidebarCategories.js +1 -1
  95. package/lib/es/components/calendarStripe/CalendarStripe.js +1 -1
  96. package/lib/es/components/feedback/FeedbackInlineButtons.d.ts +13 -0
  97. package/lib/es/components/feedback/FeedbackInlineButtons.js +11 -0
  98. package/lib/es/components/feedback/FeedbackRating.d.ts +65 -0
  99. package/lib/es/components/feedback/FeedbackRating.js +25 -0
  100. package/lib/es/components/feedback/FeedbackReactions.d.ts +71 -0
  101. package/lib/es/components/feedback/FeedbackReactions.js +28 -0
  102. package/lib/es/components/listMenu/ListMenu.d.ts +5 -1
  103. package/lib/es/components/listMenu/ListMenu.js +2 -2
  104. package/lib/es/components/map/components/features/basics/Marker.js +1 -1
  105. package/lib/es/components/map/components/features/settings/MapSettingsItem.d.ts +1 -0
  106. package/lib/es/components/map/components/features/settings/MapSettingsItem.js +13 -10
  107. package/lib/es/components/map/components/features/settings/MapSettingsTile.d.ts +3 -2
  108. package/lib/es/components/map/components/features/settings/MapSettingsTile.js +39 -4
  109. package/lib/es/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.d.ts +9 -0
  110. package/lib/es/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.js +17 -0
  111. package/lib/es/components/map/components/features/settings/builtinSettings/MapClusterSettings.d.ts +3 -0
  112. package/lib/es/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +8 -2
  113. package/lib/es/components/map/components/features/settings/builtinSettings/MapLayerSettings.js +14 -8
  114. package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.d.ts +6 -0
  115. package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +20 -2
  116. package/lib/es/components/map/components/features/settings/buttons/MapCenterMarkerButton.js +1 -1
  117. package/lib/es/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.d.ts +2 -0
  118. package/lib/es/components/map/components/features/settings/items/MapLayerIncidentsItem.d.ts +2 -0
  119. package/lib/es/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.d.ts +2 -0
  120. package/lib/es/components/map/components/features/settings/items/MapLayerTrafficItem.d.ts +2 -0
  121. package/lib/es/components/map/components/features/settings/items/MapSettingsDropdownHeader.d.ts +4 -0
  122. package/lib/es/components/map/components/features/settings/items/MapSettingsDropdownHeader.js +11 -0
  123. package/lib/es/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.d.ts +2 -0
  124. package/lib/es/components/map/icons/MapIcon.d.ts +1 -2
  125. package/lib/es/components/map/icons/MapIcon.js +3 -1
  126. package/lib/es/components/map/utils/mapTypes.d.ts +1 -1
  127. package/lib/es/components/map/utils/mapTypes.js +12 -4
  128. package/lib/es/components/mapMarker/ClusterMapMarker.d.ts +8 -0
  129. package/lib/es/components/mapMarker/ClusterMapMarker.js +5 -4
  130. package/lib/es/components/mapMarker/SingleMapMarker.d.ts +40 -5
  131. package/lib/es/components/mapMarker/SingleMapMarker.js +18 -5
  132. package/lib/es/components/selects/DropdownHeader.d.ts +1 -0
  133. package/lib/es/components/selects/DropdownHeader.js +2 -2
  134. package/lib/es/components/selects/Multiselect.js +1 -1
  135. package/lib/es/components/selects/MultiselectToggleFilter.js +1 -1
  136. package/lib/es/components/states/CustomState.js +20 -7
  137. package/lib/es/components/states/StateButton.d.ts +8 -1
  138. package/lib/es/components/states/StateButton.js +5 -4
  139. package/lib/es/hooks/useAfterMount.js +8 -4
  140. package/lib/es/styles/variables/colors/colors.json +8 -10
  141. package/lib/es/utils/deviceUtils.d.ts +1 -0
  142. package/lib/es/utils/deviceUtils.js +3 -1
  143. package/lib/es/version.json +1 -1
  144. package/package.json +30 -27
  145. package/styles/variables/colors/colors.json +8 -10
  146. package/utils/deviceUtils.d.ts +1 -0
  147. package/utils/deviceUtils.js +1 -0
  148. package/version.json +1 -1
  149. package/BrowserWarning.d.ts +0 -5
  150. package/BrowserWarning.js +0 -2
  151. package/DomMarker.d.ts +0 -5
  152. package/DomMarker.js +0 -2
  153. package/EnhancedMapEvent.d.ts +0 -11
  154. package/GroupSelectionUtil.d.ts +0 -2
  155. package/GroupSelectionUtil.js +0 -2
  156. package/IncidentsLayer.d.ts +0 -4
  157. package/IncidentsLayer.js +0 -2
  158. package/TrafficLayer.d.ts +0 -4
  159. package/TrafficLayer.js +0 -2
  160. package/TruckLayer.d.ts +0 -4
  161. package/TruckLayer.js +0 -2
  162. package/components/assetTree/excludeFromList.d.ts +0 -1
  163. package/components/assetTree/excludeFromList.js +0 -1
  164. package/components/browserWarning/BrowserIcons.d.ts +0 -2
  165. package/components/browserWarning/BrowserIcons.js +0 -5
  166. package/components/browserWarning/BrowserWarning.d.ts +0 -15
  167. package/components/browserWarning/BrowserWarning.js +0 -46
  168. package/components/browserWarning/BrowserWarningMessageDE.d.ts +0 -4
  169. package/components/browserWarning/BrowserWarningMessageDE.js +0 -6
  170. package/components/browserWarning/BrowserWarningMessageEN.d.ts +0 -4
  171. package/components/browserWarning/BrowserWarningMessageEN.js +0 -6
  172. package/components/carousel/CarouselCaption.d.ts +0 -13
  173. package/components/carousel/CarouselCaption.js +0 -18
  174. package/components/carousel/CarouselItem.d.ts +0 -36
  175. package/components/carousel/CarouselItem.js +0 -85
  176. package/components/dialog/baseDialogPropTypes.d.ts +0 -14
  177. package/components/dialog/baseDialogPropTypes.js +0 -13
  178. package/components/driverName/DriverName.d.ts +0 -18
  179. package/components/driverName/DriverName.js +0 -18
  180. package/components/dropdown/menuItemsPropTypes.d.ts +0 -9
  181. package/components/dropdown/menuItemsPropTypes.js +0 -8
  182. package/components/map/components/MapSettingContext.d.ts +0 -15
  183. package/components/map/components/MapSettingContext.js +0 -5
  184. package/components/map/components/context.d.ts +0 -2
  185. package/components/map/components/context.js +0 -3
  186. package/components/map/components/features/basics/MapLayerGroup.d.ts +0 -23
  187. package/components/map/components/features/basics/MapLayerGroup.js +0 -45
  188. package/components/map/components/features/basics/marker/DomMarker.d.ts +0 -33
  189. package/components/map/components/features/basics/marker/DomMarker.js +0 -55
  190. package/components/map/components/features/basics/marker/Marker.d.ts +0 -21
  191. package/components/map/components/features/basics/marker/Marker.js +0 -116
  192. package/components/map/components/features/basics/marker/TextMarker.d.ts +0 -17
  193. package/components/map/components/features/basics/marker/TextMarker.js +0 -28
  194. package/components/map/components/features/layers/IncidentsLayer.d.ts +0 -2
  195. package/components/map/components/features/layers/IncidentsLayer.js +0 -25
  196. package/components/map/components/features/layers/Layer.d.ts +0 -15
  197. package/components/map/components/features/layers/Layer.js +0 -23
  198. package/components/map/components/features/layers/RoadRestrictionLayer.d.ts +0 -2
  199. package/components/map/components/features/layers/RoadRestrictionLayer.js +0 -26
  200. package/components/map/components/features/layers/TrafficLayer.d.ts +0 -2
  201. package/components/map/components/features/layers/TrafficLayer.js +0 -39
  202. package/components/map/components/features/layers/baselayers/DefaultRasterLayer.d.ts +0 -2
  203. package/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +0 -17
  204. package/components/map/components/features/layers/baselayers/DefaultVectorLayer.d.ts +0 -2
  205. package/components/map/components/features/layers/baselayers/DefaultVectorLayer.js +0 -14
  206. package/components/map/components/features/layers/baselayers/FleetStyleLayer.d.ts +0 -2
  207. package/components/map/components/features/layers/baselayers/FleetStyleLayer.js +0 -15
  208. package/components/map/components/features/layers/baselayers/NightLayer.d.ts +0 -2
  209. package/components/map/components/features/layers/baselayers/NightLayer.js +0 -14
  210. package/components/map/components/features/layers/baselayers/SatelliteLayer.d.ts +0 -2
  211. package/components/map/components/features/layers/baselayers/SatelliteLayer.js +0 -15
  212. package/components/map/components/features/layers/baselayers/TerrainLayer.d.ts +0 -2
  213. package/components/map/components/features/layers/baselayers/TerrainLayer.js +0 -15
  214. package/components/map/components/features/layers/baselayers/useBaseLayer.d.ts +0 -2
  215. package/components/map/components/features/layers/baselayers/useBaseLayer.js +0 -47
  216. package/components/map/components/mapUtils.d.ts +0 -50
  217. package/components/map/components/mapUtils.js +0 -148
  218. package/components/map/herePolyfill.d.ts +0 -0
  219. package/components/map/herePolyfill.js +0 -7
  220. package/components/map/utils/proptypes.d.ts +0 -47
  221. package/components/map/utils/proptypes.js +0 -50
  222. package/components/map/utils/validation.d.ts +0 -2
  223. package/components/map/utils/validation.js +0 -8
  224. package/components/mapMarker/MarkerColor.d.ts +0 -3
  225. package/components/mapMarker/MarkerColor.js +0 -12
  226. package/components/menuItems/getMenuItems.d.ts +0 -2
  227. package/components/menuItems/getMenuItems.js +0 -7
  228. package/components/selects/BaseDropdownMenu.d.ts +0 -83
  229. package/components/selects/BaseDropdownMenu.js +0 -255
  230. package/components/selects/WithFeedback.d.ts +0 -27
  231. package/components/selects/WithFeedback.js +0 -12
  232. package/components/states/baseStatePropTypes.d.ts +0 -26
  233. package/components/states/baseStatePropTypes.js +0 -26
  234. package/components/table/tableSettingsPropTypes.d.ts +0 -8
  235. package/components/table/tableSettingsPropTypes.js +0 -6
  236. package/lib/es/BrowserWarning.d.ts +0 -5
  237. package/lib/es/BrowserWarning.js +0 -6
  238. package/lib/es/DomMarker.d.ts +0 -5
  239. package/lib/es/DomMarker.js +0 -6
  240. package/lib/es/EnhancedMapEvent.d.ts +0 -11
  241. package/lib/es/GroupSelectionUtil.d.ts +0 -2
  242. package/lib/es/GroupSelectionUtil.js +0 -5
  243. package/lib/es/IncidentsLayer.d.ts +0 -4
  244. package/lib/es/IncidentsLayer.js +0 -6
  245. package/lib/es/TrafficLayer.d.ts +0 -4
  246. package/lib/es/TrafficLayer.js +0 -6
  247. package/lib/es/TruckLayer.d.ts +0 -4
  248. package/lib/es/TruckLayer.js +0 -6
  249. package/lib/es/components/assetTree/autoAnimateFrames.d.ts +0 -1
  250. package/lib/es/components/assetTree/autoAnimateFrames.js +0 -55
  251. package/lib/es/components/assetTree/excludeFromList.d.ts +0 -1
  252. package/lib/es/components/assetTree/excludeFromList.js +0 -5
  253. package/lib/es/components/browserWarning/BrowserIcons.d.ts +0 -2
  254. package/lib/es/components/browserWarning/BrowserIcons.js +0 -11
  255. package/lib/es/components/browserWarning/BrowserWarning.d.ts +0 -15
  256. package/lib/es/components/browserWarning/BrowserWarning.js +0 -49
  257. package/lib/es/components/browserWarning/BrowserWarningMessageDE.d.ts +0 -4
  258. package/lib/es/components/browserWarning/BrowserWarningMessageDE.js +0 -9
  259. package/lib/es/components/browserWarning/BrowserWarningMessageEN.d.ts +0 -4
  260. package/lib/es/components/browserWarning/BrowserWarningMessageEN.js +0 -9
  261. package/lib/es/components/carousel/CarouselCaption.d.ts +0 -13
  262. package/lib/es/components/carousel/CarouselCaption.js +0 -20
  263. package/lib/es/components/carousel/CarouselItem.d.ts +0 -36
  264. package/lib/es/components/carousel/CarouselItem.js +0 -87
  265. package/lib/es/components/charts/Sector.d.ts +0 -0
  266. package/lib/es/components/charts/Sector.js +0 -1
  267. package/lib/es/components/dialog/baseDialogPropTypes.d.ts +0 -14
  268. package/lib/es/components/dialog/baseDialogPropTypes.js +0 -16
  269. package/lib/es/components/driverName/DriverName.d.ts +0 -18
  270. package/lib/es/components/driverName/DriverName.js +0 -23
  271. package/lib/es/components/dropdown/menuItemsPropTypes.d.ts +0 -9
  272. package/lib/es/components/dropdown/menuItemsPropTypes.js +0 -11
  273. package/lib/es/components/map/components/MapSettingContext.d.ts +0 -15
  274. package/lib/es/components/map/components/MapSettingContext.js +0 -8
  275. package/lib/es/components/map/components/context.d.ts +0 -2
  276. package/lib/es/components/map/components/context.js +0 -6
  277. package/lib/es/components/map/components/features/basics/MapLayerGroup.d.ts +0 -23
  278. package/lib/es/components/map/components/features/basics/MapLayerGroup.js +0 -48
  279. package/lib/es/components/map/components/features/basics/marker/DomMarker.d.ts +0 -33
  280. package/lib/es/components/map/components/features/basics/marker/DomMarker.js +0 -58
  281. package/lib/es/components/map/components/features/basics/marker/Marker.d.ts +0 -21
  282. package/lib/es/components/map/components/features/basics/marker/Marker.js +0 -123
  283. package/lib/es/components/map/components/features/basics/marker/TextMarker.d.ts +0 -17
  284. package/lib/es/components/map/components/features/basics/marker/TextMarker.js +0 -31
  285. package/lib/es/components/map/components/features/layers/IncidentsLayer.d.ts +0 -2
  286. package/lib/es/components/map/components/features/layers/IncidentsLayer.js +0 -27
  287. package/lib/es/components/map/components/features/layers/Layer.d.ts +0 -15
  288. package/lib/es/components/map/components/features/layers/Layer.js +0 -26
  289. package/lib/es/components/map/components/features/layers/MapBaseLayer.d.ts +0 -8
  290. package/lib/es/components/map/components/features/layers/MapBaseLayer.js +0 -35
  291. package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.d.ts +0 -2
  292. package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.js +0 -28
  293. package/lib/es/components/map/components/features/layers/TrafficLayer.d.ts +0 -2
  294. package/lib/es/components/map/components/features/layers/TrafficLayer.js +0 -41
  295. package/lib/es/components/map/components/features/layers/baselayers/DefaultRasterLayer.d.ts +0 -4
  296. package/lib/es/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +0 -36
  297. package/lib/es/components/map/components/features/layers/baselayers/DefaultVectorLayer.d.ts +0 -4
  298. package/lib/es/components/map/components/features/layers/baselayers/DefaultVectorLayer.js +0 -16
  299. package/lib/es/components/map/components/features/layers/baselayers/FleetStyleLayer.d.ts +0 -4
  300. package/lib/es/components/map/components/features/layers/baselayers/FleetStyleLayer.js +0 -17
  301. package/lib/es/components/map/components/features/layers/baselayers/NightLayer.d.ts +0 -4
  302. package/lib/es/components/map/components/features/layers/baselayers/NightLayer.js +0 -16
  303. package/lib/es/components/map/components/features/layers/baselayers/SatelliteLayer.d.ts +0 -4
  304. package/lib/es/components/map/components/features/layers/baselayers/SatelliteLayer.js +0 -34
  305. package/lib/es/components/map/components/features/layers/baselayers/TerrainLayer.d.ts +0 -4
  306. package/lib/es/components/map/components/features/layers/baselayers/TerrainLayer.js +0 -17
  307. package/lib/es/components/map/components/features/layers/baselayers/useBaseLayer.d.ts +0 -11
  308. package/lib/es/components/map/components/features/layers/baselayers/useBaseLayer.js +0 -76
  309. package/lib/es/components/map/components/mapUtils.d.ts +0 -50
  310. package/lib/es/components/map/components/mapUtils.js +0 -154
  311. package/lib/es/components/map/herePolyfill.d.ts +0 -0
  312. package/lib/es/components/map/herePolyfill.js +0 -7
  313. package/lib/es/components/map/utils/proptypes.d.ts +0 -47
  314. package/lib/es/components/map/utils/proptypes.js +0 -53
  315. package/lib/es/components/map/utils/validation.d.ts +0 -2
  316. package/lib/es/components/map/utils/validation.js +0 -14
  317. package/lib/es/components/mapMarker/MarkerColor.d.ts +0 -3
  318. package/lib/es/components/mapMarker/MarkerColor.js +0 -15
  319. package/lib/es/components/menuItems/getMenuItems.d.ts +0 -2
  320. package/lib/es/components/menuItems/getMenuItems.js +0 -10
  321. package/lib/es/components/selects/BaseDropdownMenu.d.ts +0 -83
  322. package/lib/es/components/selects/BaseDropdownMenu.js +0 -260
  323. package/lib/es/components/selects/WithFeedback.d.ts +0 -27
  324. package/lib/es/components/selects/WithFeedback.js +0 -15
  325. package/lib/es/components/states/baseStatePropTypes.d.ts +0 -26
  326. package/lib/es/components/states/baseStatePropTypes.js +0 -30
  327. package/lib/es/components/table/tableSettingsPropTypes.d.ts +0 -8
  328. package/lib/es/components/table/tableSettingsPropTypes.js +0 -10
  329. package/lib/es/mapIndex.d.ts +0 -38
  330. package/lib/es/mapIndex.js +0 -77
  331. package/lib/es/styles/variables/colors.json +0 -74
  332. package/lib/es/themes/Volkswagen/components/applicationHeader/modulePropTypes.d.ts +0 -6
  333. package/lib/es/themes/Volkswagen/components/applicationHeader/modulePropTypes.js +0 -8
  334. package/lib/es/types.d.ts +0 -71
  335. package/lib/es/types.js +0 -2
  336. package/lib/es/utils/GroupSelectionUtil.d.ts +0 -1
  337. package/lib/es/utils/GroupSelectionUtil.js +0 -85
  338. package/lib/es/utils/addEventListener.d.ts +0 -3
  339. package/lib/es/utils/addEventListener.js +0 -17
  340. package/lib/es/utils/addFocusListener.d.ts +0 -3
  341. package/lib/es/utils/addFocusListener.js +0 -24
  342. package/lib/es/utils/getOffsetTopWholeScreen.d.ts +0 -1
  343. package/lib/es/utils/getOffsetTopWholeScreen.js +0 -9
  344. package/lib/es/utils/init.d.ts +0 -2
  345. package/lib/es/utils/init.js +0 -121
  346. package/lib/es/utils/logPropError.d.ts +0 -3
  347. package/lib/es/utils/logPropError.js +0 -28
  348. package/lib/es/utils/ownerDocument.d.ts +0 -1
  349. package/lib/es/utils/ownerDocument.js +0 -12
  350. package/mapIndex.d.ts +0 -38
  351. package/mapIndex.js +0 -42
  352. package/styles/variables/colors.json +0 -74
  353. package/themes/Volkswagen/components/applicationHeader/modulePropTypes.d.ts +0 -6
  354. package/themes/Volkswagen/components/applicationHeader/modulePropTypes.js +0 -5
  355. package/types.d.ts +0 -71
  356. package/types.js +0 -1
  357. package/utils/GroupSelectionUtil.d.ts +0 -1
  358. package/utils/GroupSelectionUtil.js +0 -80
  359. package/utils/addEventListener.d.ts +0 -3
  360. package/utils/addEventListener.js +0 -13
  361. package/utils/addFocusListener.d.ts +0 -3
  362. package/utils/addFocusListener.js +0 -21
  363. package/utils/getOffsetTopWholeScreen.d.ts +0 -1
  364. package/utils/getOffsetTopWholeScreen.js +0 -6
  365. package/utils/init.d.ts +0 -2
  366. package/utils/init.js +0 -117
  367. package/utils/logPropError.d.ts +0 -3
  368. package/utils/logPropError.js +0 -23
  369. package/utils/ownerDocument.d.ts +0 -1
  370. package/utils/ownerDocument.js +0 -8
@@ -0,0 +1,15 @@
1
+ import { __rest } from "tslib";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ // @ts-ignore-next-line importsNotUsedAsValues
4
+ import 'react';
5
+ import isEmpty from 'lodash/fp/isEmpty';
6
+ import union from 'lodash/fp/union';
7
+ import MapSettingsTile from '../MapSettingsTile';
8
+ import { MapIcon } from '../../../../icons/MapIcon';
9
+ const MapAdditionalLayerSettings = (props) => {
10
+ const { activeBuiltinLayers = [], activeLayers = [], layers = [] } = props, remainingProps = __rest(props, ["activeBuiltinLayers", "activeLayers", "layers"]);
11
+ const allActiveLayer = union(activeBuiltinLayers, activeLayers);
12
+ const isActive = !isEmpty(allActiveLayer);
13
+ return (_jsx(MapSettingsTile, Object.assign({ className: 'MapAdditionalLayerSettings', isActive: !isEmpty(allActiveLayer), activeIcon: isActive ? (_jsx(MapIcon, { name: 'rioglyph-layer-pois text-color-primary', className: 'MapAdditionalLayerIcon' })) : undefined, inactiveIcon: !isActive ? (_jsx(MapIcon, { name: 'rioglyph-layer-pois text-color-gray', className: 'MapAdditionalLayerIconInactive' })) : undefined, items: layers }, remainingProps)));
14
+ };
15
+ export default MapAdditionalLayerSettings;
@@ -3,6 +3,9 @@ export type MapClusterSettingsProps = {
3
3
  onToggle?: (setShowCluster: boolean) => void;
4
4
  onShowClusterChange?: (setShowCluster: boolean) => boolean;
5
5
  showCluster?: boolean;
6
+ clusterEnabledLabel?: string | JSX.Element;
7
+ clusterDisabledLabel?: string | JSX.Element;
8
+ dropdownHeaderText?: string | JSX.Element;
6
9
  tooltip?: string | React.ReactNode;
7
10
  };
8
11
  declare const MapClusterSettings: (props: MapClusterSettingsProps) => import("react/jsx-runtime").JSX.Element;
@@ -3,16 +3,22 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  // @ts-ignore-next-line importsNotUsedAsValues
4
4
  import 'react';
5
5
  import noop from 'lodash/fp/noop';
6
+ import compact from 'lodash/fp/compact';
6
7
  import MapSettingsPanel from '../MapSettingsPanel';
7
8
  import MapSettingsItem from '../MapSettingsItem';
8
9
  import MapSettingsTile from '../MapSettingsTile';
9
10
  import { MapIcon, CLUSTER_ACTIVE, CLUSTER_INACTIVE, NO_CLUSTER_ACTIVE, NO_CLUSTER_INACTIVE, } from '../../../../icons/MapIcon';
11
+ import MapSettingsDropdownHeader from '../items/MapSettingsDropdownHeader';
10
12
  const MapClusterSettings = (props) => {
11
- const { showCluster = true, onShowClusterChange = noop, onToggle = noop } = props, remainingProps = __rest(props, ["showCluster", "onShowClusterChange", "onToggle"]);
13
+ const { showCluster = true, onShowClusterChange = noop, onToggle = noop, clusterEnabledLabel, clusterDisabledLabel, dropdownHeaderText } = props, remainingProps = __rest(props, ["showCluster", "onShowClusterChange", "onToggle", "clusterEnabledLabel", "clusterDisabledLabel", "dropdownHeaderText"]);
12
14
  const handleShowCluster = (setShowCluster) => {
13
15
  onShowClusterChange(setShowCluster);
14
16
  onToggle(setShowCluster);
15
17
  };
16
- return (_jsx(MapSettingsTile, Object.assign({ className: 'MapClusterSettings', isActive: showCluster, activeIcon: _jsx(MapIcon, { name: CLUSTER_INACTIVE }), inactiveIcon: _jsx(MapIcon, { name: NO_CLUSTER_INACTIVE }), panel: _jsxs(MapSettingsPanel, { children: [_jsx(MapSettingsItem, { onClick: () => handleShowCluster(true), isActive: showCluster, activeIcon: _jsx(MapIcon, { name: CLUSTER_ACTIVE, className: 'MapClusterIcon' }), inactiveIcon: _jsx(MapIcon, { name: CLUSTER_INACTIVE, className: 'MapClusterIconInactive' }) }), _jsx(MapSettingsItem, { onClick: () => handleShowCluster(false), isActive: !showCluster, activeIcon: _jsx(MapIcon, { name: NO_CLUSTER_ACTIVE, className: 'MapNoClusterIcon' }), inactiveIcon: _jsx(MapIcon, { name: NO_CLUSTER_INACTIVE, className: 'MapNoClusterIconInactive' }) })] }) }, remainingProps)));
18
+ const hasLabels = !!clusterEnabledLabel || !!clusterDisabledLabel;
19
+ const dropdownHeader = dropdownHeaderText && (_jsx(MapSettingsDropdownHeader, { label: dropdownHeaderText }, 'mapClusterDropdownHeader'));
20
+ const enableClusterButtons = (_jsx(MapSettingsItem, { onClick: () => handleShowCluster(true), isActive: showCluster, activeIcon: _jsx(MapIcon, { name: CLUSTER_ACTIVE, className: 'MapClusterIcon' }), inactiveIcon: _jsx(MapIcon, { name: CLUSTER_INACTIVE, className: 'MapClusterIconInactive' }), label: clusterEnabledLabel }, 'enableClusterButtons'));
21
+ const disableClusterButton = (_jsx(MapSettingsItem, { onClick: () => handleShowCluster(false), isActive: !showCluster, activeIcon: _jsx(MapIcon, { name: NO_CLUSTER_ACTIVE, className: 'MapNoClusterIcon' }), inactiveIcon: _jsx(MapIcon, { name: NO_CLUSTER_INACTIVE, className: 'MapNoClusterIconInactive' }), label: clusterDisabledLabel }, 'disableClusterButton'));
22
+ return (_jsx(MapSettingsTile, Object.assign({ className: 'MapClusterSettings', isActive: showCluster, activeIcon: _jsx(MapIcon, { name: CLUSTER_INACTIVE }), inactiveIcon: _jsx(MapIcon, { name: NO_CLUSTER_INACTIVE }), items: hasLabels ? compact([dropdownHeader, enableClusterButtons, disableClusterButton]) : undefined, panel: !hasLabels && (_jsxs(MapSettingsPanel, { children: [enableClusterButtons, disableClusterButton] })) }, remainingProps)));
17
23
  };
18
24
  export default MapClusterSettings;
@@ -7,17 +7,23 @@ import union from 'lodash/fp/union';
7
7
  import noop from 'lodash/fp/noop';
8
8
  import MapSettingsPanel from '../MapSettingsPanel';
9
9
  import MapSettingsTile from '../MapSettingsTile';
10
- import { MapIcon, LAYER_ACTIVE, LAYER_INACTIVE } from '../../../../icons/MapIcon';
10
+ import { MapIcon } from '../../../../icons/MapIcon';
11
11
  const MapLayerSettings = (props) => {
12
+ var _a;
12
13
  const { activeBuiltinLayers = [], activeLayers = [], layers = [], onMapLayerChange = noop } = props, remainingProps = __rest(props, ["activeBuiltinLayers", "activeLayers", "layers", "onMapLayerChange"]);
13
14
  const allActiveLayer = union(activeBuiltinLayers, activeLayers);
14
- return (_jsx(MapSettingsTile, Object.assign({ className: 'MapLayerSettings', isActive: !isEmpty(allActiveLayer), activeIcon: _jsx(MapIcon, { name: LAYER_ACTIVE, className: 'MapLayerIcon' }), inactiveIcon: _jsx(MapIcon, { name: LAYER_INACTIVE, className: 'MapLayerIconInactive' }), panel: _jsx(MapSettingsPanel, { children: map(layer => {
15
- var _a;
16
- return React.cloneElement(layer, {
17
- key: (_a = layer === null || layer === void 0 ? void 0 : layer.key) !== null && _a !== void 0 ? _a : `MapLayerSettings_${crypto.randomUUID()}`,
18
- activeBuiltinLayers,
19
- onMapLayerChange,
20
- });
21
- }, layers) }) }, remainingProps)));
15
+ const hasLabels = !!((_a = layers.at(0)) === null || _a === void 0 ? void 0 : _a.props.label);
16
+ const isActive = !isEmpty(allActiveLayer);
17
+ // Inject onMapLayerChange from the MapContext which will be handled
18
+ // in the main Map component.
19
+ const enrichedLayers = map(layer => {
20
+ var _a;
21
+ return React.cloneElement(layer, {
22
+ key: (_a = layer === null || layer === void 0 ? void 0 : layer.key) !== null && _a !== void 0 ? _a : `MapLayerSettings_${crypto.randomUUID()}`,
23
+ activeBuiltinLayers,
24
+ onMapLayerChange,
25
+ });
26
+ }, layers);
27
+ return (_jsx(MapSettingsTile, Object.assign({ className: 'MapLayerSettings', isActive: isActive, activeIcon: isActive ? (_jsx(MapIcon, { name: 'rioglyph-construction text-color-primary', className: 'MapLayerIcon' })) : undefined, inactiveIcon: !isActive ? (_jsx(MapIcon, { name: 'rioglyph-construction text-color-gray', className: 'MapLayerIconInactive' })) : undefined, items: hasLabels ? enrichedLayers : undefined, panel: !hasLabels && _jsx(MapSettingsPanel, { children: enrichedLayers }) }, remainingProps)));
22
28
  };
23
29
  export default MapLayerSettings;
@@ -4,7 +4,13 @@ export type MapTypeSettingsProps = {
4
4
  mapType?: string;
5
5
  enableNightMap?: boolean;
6
6
  onMapTypeChange?: () => MapType;
7
+ defaultTypeLabel?: string | JSX.Element;
8
+ truckTypeLabel?: string | JSX.Element;
9
+ terrainTypeLabel?: string | JSX.Element;
10
+ satelliteTypeLabel?: string | JSX.Element;
11
+ nightTypeLabel?: string | JSX.Element;
7
12
  tooltip?: string | React.ReactNode;
13
+ dropdownHeaderText?: string | JSX.Element;
8
14
  };
9
15
  declare const MapTypeSettings: (props: MapTypeSettingsProps) => import("react/jsx-runtime").JSX.Element;
10
16
  export default MapTypeSettings;
@@ -2,13 +2,15 @@ import { __rest } from "tslib";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { useMemo } from 'react';
4
4
  import noop from 'lodash/fp/noop';
5
+ import compact from 'lodash/fp/compact';
5
6
  import { MAP_TYPE_DEFAULT, MAP_TYPE_FLEET_STYLE, MAP_TYPE_NIGHT, MAP_TYPE_SATELLITE, MAP_TYPE_TERRAIN, } from '../../../constants';
6
7
  import MapSettingsPanel from '../MapSettingsPanel';
7
8
  import MapSettingsItem from '../MapSettingsItem';
8
9
  import MapSettingsTile from '../MapSettingsTile';
9
10
  import { MapIcon, MAP_TYPE_FLAT_ACTIVE, MAP_TYPE_FLAT_INACTIVE, MAP_TYPE_FLAT_TRUCK_ACTIVE, MAP_TYPE_FLAT_TRUCK_INACTIVE, MAP_TYPE_SATELLITE_ACTIVE, MAP_TYPE_SATELLITE_INACTIVE, MAP_TYPE_TERRAIN_ACTIVE, MAP_TYPE_TERRAIN_INACTIVE, MAP_TYPE_NIGHT_ACTIVE, MAP_TYPE_NIGHT_INACTIVE, } from '../../../../icons/MapIcon';
11
+ import MapSettingsDropdownHeader from '../items/MapSettingsDropdownHeader';
10
12
  const MapTypeSettings = (props) => {
11
- const { mapType, onMapTypeChange = noop, enableNightMap = true } = props, remainingProps = __rest(props, ["mapType", "onMapTypeChange", "enableNightMap"]);
13
+ const { mapType, onMapTypeChange = noop, enableNightMap = true, defaultTypeLabel, truckTypeLabel, terrainTypeLabel, satelliteTypeLabel, nightTypeLabel, dropdownHeaderText } = props, remainingProps = __rest(props, ["mapType", "onMapTypeChange", "enableNightMap", "defaultTypeLabel", "truckTypeLabel", "terrainTypeLabel", "satelliteTypeLabel", "nightTypeLabel", "dropdownHeaderText"]);
12
14
  const type = useMemo(() => ({
13
15
  isDefault: mapType === MAP_TYPE_DEFAULT,
14
16
  isFleetStyle: mapType === MAP_TYPE_FLEET_STYLE,
@@ -33,6 +35,22 @@ const MapTypeSettings = (props) => {
33
35
  return _jsx(MapIcon, { name: MAP_TYPE_NIGHT_INACTIVE });
34
36
  }
35
37
  };
36
- return (_jsx(MapSettingsTile, Object.assign({ className: 'MapTypeSettings', inactiveIcon: getIcon(type), panel: _jsxs(MapSettingsPanel, { children: [enableNightMap && (_jsx(MapSettingsItem, { className: 'MapTypeNight', onClick: () => onMapTypeChange(MAP_TYPE_NIGHT), isActive: type.isNight, activeIcon: _jsx(MapIcon, { name: MAP_TYPE_NIGHT_ACTIVE }), inactiveIcon: _jsx(MapIcon, { name: MAP_TYPE_NIGHT_INACTIVE }) })), _jsx(MapSettingsItem, { className: 'MapTypeSatelite', onClick: () => onMapTypeChange(MAP_TYPE_SATELLITE), isActive: type.isSatellite, activeIcon: _jsx(MapIcon, { name: MAP_TYPE_SATELLITE_ACTIVE }), inactiveIcon: _jsx(MapIcon, { name: MAP_TYPE_SATELLITE_INACTIVE }) }), _jsx(MapSettingsItem, { className: 'MapTypeTerrain', onClick: () => onMapTypeChange(MAP_TYPE_TERRAIN), isActive: type.isTerrain, activeIcon: _jsx(MapIcon, { name: MAP_TYPE_TERRAIN_ACTIVE }), inactiveIcon: _jsx(MapIcon, { name: MAP_TYPE_TERRAIN_INACTIVE }) }), _jsx(MapSettingsItem, { className: 'MapTypeFlatTruck', onClick: () => onMapTypeChange(MAP_TYPE_FLEET_STYLE), isActive: type.isFleetStyle, activeIcon: _jsx(MapIcon, { name: MAP_TYPE_FLAT_TRUCK_ACTIVE }), inactiveIcon: _jsx(MapIcon, { name: MAP_TYPE_FLAT_TRUCK_INACTIVE }) }), _jsx(MapSettingsItem, { className: 'MapTypeFlat', onClick: () => onMapTypeChange(MAP_TYPE_DEFAULT), isActive: type.isDefault, activeIcon: _jsx(MapIcon, { name: MAP_TYPE_FLAT_ACTIVE }), inactiveIcon: _jsx(MapIcon, { name: MAP_TYPE_FLAT_INACTIVE }) })] }) }, remainingProps)));
38
+ const dropdownHeader = dropdownHeaderText && (_jsx(MapSettingsDropdownHeader, { label: dropdownHeaderText }, 'mapTypeDropdownHeader'));
39
+ const mapTypeNight = (_jsx(MapSettingsItem, { className: 'MapTypeNight', onClick: () => onMapTypeChange(MAP_TYPE_NIGHT), isActive: type.isNight, activeIcon: _jsx(MapIcon, { name: MAP_TYPE_NIGHT_ACTIVE }), inactiveIcon: _jsx(MapIcon, { name: MAP_TYPE_NIGHT_INACTIVE }), label: nightTypeLabel }, 'MapTypeNight'));
40
+ const mapTypeSatellite = (_jsx(MapSettingsItem, { className: 'MapTypeSatellite', onClick: () => onMapTypeChange(MAP_TYPE_SATELLITE), isActive: type.isSatellite, activeIcon: _jsx(MapIcon, { name: MAP_TYPE_SATELLITE_ACTIVE }), inactiveIcon: _jsx(MapIcon, { name: MAP_TYPE_SATELLITE_INACTIVE }), label: satelliteTypeLabel }, 'MapTypeSatellite'));
41
+ const mapTypeTerrain = (_jsx(MapSettingsItem, { className: 'MapTypeTerrain', onClick: () => onMapTypeChange(MAP_TYPE_TERRAIN), isActive: type.isTerrain, activeIcon: _jsx(MapIcon, { name: MAP_TYPE_TERRAIN_ACTIVE }), inactiveIcon: _jsx(MapIcon, { name: MAP_TYPE_TERRAIN_INACTIVE }), label: terrainTypeLabel }, 'MapTypeTerrain'));
42
+ const mapTypeTruck = (_jsx(MapSettingsItem, { className: 'MapTypeFlatTruck', onClick: () => onMapTypeChange(MAP_TYPE_FLEET_STYLE), isActive: type.isFleetStyle, activeIcon: _jsx(MapIcon, { name: MAP_TYPE_FLAT_TRUCK_ACTIVE }), inactiveIcon: _jsx(MapIcon, { name: MAP_TYPE_FLAT_TRUCK_INACTIVE }), label: truckTypeLabel }, 'MapTypeFlatTruck'));
43
+ const mapTypeDefault = (_jsx(MapSettingsItem, { className: 'MapTypeFlat', onClick: () => onMapTypeChange(MAP_TYPE_DEFAULT), isActive: type.isDefault, activeIcon: _jsx(MapIcon, { name: MAP_TYPE_FLAT_ACTIVE }), inactiveIcon: _jsx(MapIcon, { name: MAP_TYPE_FLAT_INACTIVE }), label: defaultTypeLabel }, 'MapTypeFlat'));
44
+ const hasLabels = !!defaultTypeLabel || !!truckTypeLabel || !!terrainTypeLabel || !!satelliteTypeLabel || !!nightTypeLabel;
45
+ return (_jsx(MapSettingsTile, Object.assign({ className: 'MapTypeSettings', inactiveIcon: getIcon(type), items: hasLabels
46
+ ? compact([
47
+ dropdownHeader,
48
+ mapTypeNight,
49
+ mapTypeSatellite,
50
+ mapTypeTerrain,
51
+ mapTypeTruck,
52
+ mapTypeDefault,
53
+ ])
54
+ : undefined, panel: !hasLabels && (_jsxs(MapSettingsPanel, { children: [enableNightMap && mapTypeNight, mapTypeSatellite, mapTypeTerrain, mapTypeTruck, mapTypeDefault] })) }, remainingProps)));
37
55
  };
38
56
  export default MapTypeSettings;
@@ -3,9 +3,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  // @ts-ignore-next-line importsNotUsedAsValues
4
4
  import 'react';
5
5
  import MapSettingsTile from '../MapSettingsTile';
6
- import { MapIcon, CENTER_MARKER_ACTIVE, CENTER_MARKER_INACTIVE } from '../../../../icons/MapIcon';
6
+ import { MapIcon } from '../../../../icons/MapIcon';
7
7
  const MapCenterMarkerButton = (props) => {
8
8
  const { isActive = false, onToggle } = props, remainingProps = __rest(props, ["isActive", "onToggle"]);
9
- return (_jsx(MapSettingsTile, Object.assign({ className: 'MapCenterMarkerButton', isActive: isActive, activeIcon: _jsx(MapIcon, { name: CENTER_MARKER_ACTIVE, className: 'MapCenterMarkerButtonIcon' }), inactiveIcon: _jsx(MapIcon, { name: CENTER_MARKER_INACTIVE, className: 'MapCenterMarkerButtonIconInactive' }), onToggle: onToggle }, remainingProps)));
9
+ return (_jsx(MapSettingsTile, Object.assign({ className: 'MapCenterMarkerButton', isActive: isActive, activeIcon: isActive ? (_jsx(MapIcon, { name: 'rioglyph-position text-color-primary', className: 'MapCenterMarkerButtonIcon' })) : undefined, inactiveIcon: !isActive ? (_jsx(MapIcon, { name: 'rioglyph-position text-color-gray', className: 'MapCenterMarkerButtonIconInactive' })) : undefined, onToggle: onToggle }, remainingProps)));
10
10
  };
11
11
  export default MapCenterMarkerButton;
@@ -1,6 +1,8 @@
1
+ /// <reference types="react" />
1
2
  export type MapCustomerPoiSettingsItemProps = {
2
3
  onToggle?: (setIsShown: boolean) => void;
3
4
  isActive?: boolean;
5
+ label?: string | JSX.Element;
4
6
  };
5
7
  declare const MapCustomerPoiSettingsItem: (props: MapCustomerPoiSettingsItemProps) => import("react/jsx-runtime").JSX.Element;
6
8
  export default MapCustomerPoiSettingsItem;
@@ -1,5 +1,7 @@
1
+ /// <reference types="react" />
1
2
  export type MapLayerIncidentsItemProps = {
2
3
  activeBuiltinLayers?: string[];
4
+ label?: string | JSX.Element;
3
5
  onToggle?: () => void;
4
6
  onMapLayerChange?: (layer: string) => string;
5
7
  };
@@ -1,5 +1,7 @@
1
+ /// <reference types="react" />
1
2
  export type MapLayerRoadRestrictionsItemProps = {
2
3
  activeBuiltinLayers?: string[];
4
+ label?: string | JSX.Element;
3
5
  onToggle?: () => void;
4
6
  onMapLayerChange?: (layer: string) => string;
5
7
  };
@@ -1,5 +1,7 @@
1
+ /// <reference types="react" />
1
2
  export type MapLayerTrafficItemProps = {
2
3
  activeBuiltinLayers?: string[];
4
+ label?: string | JSX.Element;
3
5
  onToggle?: () => void;
4
6
  onMapLayerChange?: (layer: string) => string;
5
7
  };
@@ -0,0 +1,4 @@
1
+ import { type DropdownHeaderProps } from '../../../../../selects/DropdownHeader';
2
+ export type MapSettingsDropdownHeaderProps = DropdownHeaderProps & {};
3
+ declare const MapSettingsDropdownHeader: (props: MapSettingsDropdownHeaderProps) => import("react/jsx-runtime").JSX.Element;
4
+ export default MapSettingsDropdownHeader;
@@ -0,0 +1,9 @@
1
+ import { __rest } from "tslib";
2
+ import { jsx as _jsx } from "react/jsx-runtime";
3
+ import 'react';
4
+ import DropdownHeader from '../../../../../selects/DropdownHeader';
5
+ const MapSettingsDropdownHeader = (props) => {
6
+ const remainingProps = __rest(props, []);
7
+ return _jsx(DropdownHeader, Object.assign({ className: 'MapSettingsDropdownHeader' }, remainingProps));
8
+ };
9
+ export default MapSettingsDropdownHeader;
@@ -1,6 +1,8 @@
1
+ /// <reference types="react" />
1
2
  export type MapWorkshopPoiSettingsItemProps = {
2
3
  onToggle?: (setIsShown: boolean) => void;
3
4
  isActive?: boolean;
5
+ label?: string | JSX.Element;
4
6
  };
5
7
  declare const MapWorkshopPoiSettingsItem: (props: MapWorkshopPoiSettingsItemProps) => import("react/jsx-runtime").JSX.Element;
6
8
  export default MapWorkshopPoiSettingsItem;
@@ -1,11 +1,10 @@
1
- import React from 'react';
2
1
  export type MapIconProps = {
3
2
  name?: string;
4
3
  height?: number;
5
4
  width?: number;
6
5
  className?: string;
7
6
  };
8
- export declare const MapIcon: (props: MapIconProps) => React.FunctionComponentElement<any>;
7
+ export declare const MapIcon: (props: MapIconProps) => import("react/jsx-runtime").JSX.Element;
9
8
  export declare const ZOOM_IN = "zoomIn";
10
9
  export declare const ZOOM_OUT = "zoomOut";
11
10
  export declare const BOUNDING_BOX_ACTIVE = "boundingBoxActive";
@@ -3,7 +3,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import React from 'react';
4
4
  export const MapIcon = (props) => {
5
5
  const { className = '', name = '', height = 40, width = 40 } = props;
6
- // const fillColor = active ? '#30B4C0' : '#A7AFBB';
6
+ if (name.includes('rioglyph')) {
7
+ return (_jsx("div", Object.assign({ className: 'height-40 width-40 text-size-16 display-grid place-items-center hover-scale-110' }, { children: _jsx("span", { className: `rioglyph ${name} text-size-200pct` }) })));
8
+ }
7
9
  return React.cloneElement(icons[name], {
8
10
  className,
9
11
  height,
@@ -161,6 +161,6 @@ export type IncidentDataPoint = {
161
161
  roadClosed: boolean;
162
162
  position: Position;
163
163
  };
164
- export declare const markerColorOptions: readonly ["bg-map-marker-asset", "bg-map-marker-poi", "bg-map-marker-geofence", "bg-map-marker-route"];
164
+ export declare const markerColorOptions: readonly ["bg-map-marker-asset", "bg-map-marker-poi", "bg-map-marker-geofence", "bg-map-marker-route", "bg-map-marker-info", "bg-map-marker-success", "bg-map-marker-warning", "bg-map-marker-danger"];
165
165
  export type MarkerColor = (typeof markerColorOptions)[number];
166
166
  export declare const markerColorMapping: Record<MarkerColor, string>;
@@ -15,10 +15,18 @@ export const markerColorOptions = [
15
15
  'bg-map-marker-poi',
16
16
  'bg-map-marker-geofence',
17
17
  'bg-map-marker-route',
18
+ 'bg-map-marker-info',
19
+ 'bg-map-marker-success',
20
+ 'bg-map-marker-warning',
21
+ 'bg-map-marker-danger',
18
22
  ];
19
23
  export const markerColorMapping = {
20
- 'bg-map-marker-asset': 'map-marker-type-asset',
21
- 'bg-map-marker-poi': 'map-marker-type-poi',
22
- 'bg-map-marker-geofence': 'map-marker-type-geofence',
23
- 'bg-map-marker-route': 'map-marker-type-route',
24
+ 'bg-map-marker-asset': '--color-map-marker-asset',
25
+ 'bg-map-marker-poi': '--color-map-marker-poi',
26
+ 'bg-map-marker-geofence': '--color-map-marker-geofence',
27
+ 'bg-map-marker-route': '--color-map-marker-route',
28
+ 'bg-map-marker-info': '--color-map-marker-info',
29
+ 'bg-map-marker-success': '--color-map-marker-success',
30
+ 'bg-map-marker-warning': '--color-map-marker-warning',
31
+ 'bg-map-marker-danger': '--color-map-marker-danger',
24
32
  };
@@ -36,6 +36,10 @@ export type ClusterMapMarkerProps = {
36
36
  * - `bg-map-marker-poi`
37
37
  * - `bg-map-marker-geofence`
38
38
  * - `bg-map-marker-route`
39
+ * - `bg-map-marker-info`
40
+ * - `bg-map-marker-success`
41
+ * - `bg-map-marker-warning`
42
+ * - `bg-map-marker-danger`
39
43
  *
40
44
  * @default 'bg-map-marker-asset'
41
45
  */
@@ -44,6 +48,10 @@ export type ClusterMapMarkerProps = {
44
48
  * Name of a rioglyph icon.
45
49
  */
46
50
  iconName?: string;
51
+ /**
52
+ * Marker cursor
53
+ */
54
+ cursor?: 'cursor-pointer' | 'cursor-grab' | 'cursor-not-allowed';
47
55
  };
48
56
  declare const ClusterMapMarker: (props: ClusterMapMarkerProps) => import("react/jsx-runtime").JSX.Element;
49
57
  export default ClusterMapMarker;
@@ -3,9 +3,10 @@ import 'react';
3
3
  import classNames from 'classnames';
4
4
  import { markerColorMapping } from '../map/utils/mapTypes';
5
5
  const ClusterMapMarker = (props) => {
6
- const { count, exceptionCount = 0, markerColor = 'bg-map-marker-asset', warningCount = 0, active = false, clickable = true, iconName, } = props;
7
- const classes = classNames(active && 'active', 'rio-map-marker', 'rio-map-marker-center-center', !clickable && 'pointer-events-none');
8
- const clusterClasses = classNames('rio-map-cluster-circle', active && 'active', markerColorMapping[markerColor]);
9
- return (_jsx("div", Object.assign({ className: classes }, { 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 }))] })) })), _jsx("div", Object.assign({ className: 'rio-map-bubble exception' }, { children: exceptionCount > 0 && exceptionCount })), _jsx("div", Object.assign({ className: 'rio-map-bubble warning' }, { children: warningCount > 0 && warningCount }))] })) })) })));
6
+ const { count, exceptionCount = 0, markerColor = 'bg-map-marker-asset', warningCount = 0, active = false, clickable = true, iconName, cursor = 'cursor-pointer', } = props;
7
+ const clusterClasses = classNames('rio-map-cluster-circle', active && 'active', cursor);
8
+ const classes = classNames(active && 'active', 'rio-map-marker', 'rio-map-marker-center-center', !clickable && 'not-clickable');
9
+ 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 }))] })) })) })));
10
11
  };
11
12
  export default ClusterMapMarker;
@@ -4,7 +4,7 @@ export type SingleMapMarkerProps = {
4
4
  /**
5
5
  * Defines the rotation of the arrow in deg.
6
6
  *
7
- * @default 0
7
+ * @default 60
8
8
  */
9
9
  bearing?: number;
10
10
  /**
@@ -42,11 +42,21 @@ export type SingleMapMarkerProps = {
42
42
  */
43
43
  fixed?: boolean;
44
44
  /**
45
- * Defines if marker is displayed with rounded corners.
45
+ * Defines whether the direction icon is displayed or not.
46
46
  *
47
47
  * @default false
48
48
  */
49
49
  moving?: boolean;
50
+ /**
51
+ * Optional icon that is shown in the state indicator and used instead of the moving direction arrow.
52
+ */
53
+ stateIconName?: string;
54
+ /**
55
+ * Defines if marker is displayed with pinging animation.
56
+ *
57
+ * @default false
58
+ */
59
+ pinging?: boolean;
50
60
  /**
51
61
  * List of rioglyph icon names.
52
62
  */
@@ -59,6 +69,10 @@ export type SingleMapMarkerProps = {
59
69
  * - `bg-map-marker-poi`
60
70
  * - `bg-map-marker-geofence`
61
71
  * - `bg-map-marker-route`
72
+ * - `bg-map-marker-info`
73
+ * - `bg-map-marker-success`
74
+ * - `bg-map-marker-warning`
75
+ * - `bg-map-marker-danger`
62
76
  *
63
77
  * @default 'bg-map-marker-asset'
64
78
  */
@@ -68,7 +82,11 @@ export type SingleMapMarkerProps = {
68
82
  */
69
83
  textColor?: string;
70
84
  /**
71
- * Used to control the marker's size.
85
+ * @deprecated please use `anchorSize`
86
+ */
87
+ size?: 'md' | 'lg';
88
+ /**
89
+ * Used to control the marker's anchor size.
72
90
  *
73
91
  * Possible values are:
74
92
  * - `md`
@@ -76,13 +94,30 @@ export type SingleMapMarkerProps = {
76
94
  *
77
95
  * @default 'md'
78
96
  */
79
- size?: 'md' | 'lg';
97
+ anchorSize?: 'md' | 'lg';
98
+ /**
99
+ * @deprecated please use `markerOnHover`
100
+ */
101
+ visibleOnHover?: boolean;
80
102
  /**
81
103
  * Whether the marker is only visible on hover.
82
104
  *
83
105
  * @default false
84
106
  */
85
- visibleOnHover?: boolean;
107
+ markerOnHover?: boolean;
108
+ /**
109
+ * Optional icon that is shown on the anchor of the DOM marker.
110
+ * Use this when no marker content is shown.
111
+ */
112
+ anchorIconName?: string;
113
+ /**
114
+ * Shows only the anchor without the rest of the marker.
115
+ */
116
+ anchorOnly?: boolean;
117
+ /**
118
+ * Marker cursor
119
+ */
120
+ cursor?: 'cursor-pointer' | 'cursor-grab' | 'cursor-not-allowed';
86
121
  };
87
122
  declare const SingleMapMarker: (props: SingleMapMarkerProps) => import("react/jsx-runtime").JSX.Element;
88
123
  export default SingleMapMarker;
@@ -1,14 +1,27 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  // @ts-ignore-next-line importsNotUsedAsValues
3
3
  import 'react';
4
4
  import classNames from 'classnames';
5
5
  import { markerColorMapping } from '../map/utils/mapTypes';
6
- const MapDirection = ({ moving, bearing }) => (_jsx(_Fragment, { children: moving && _jsx("div", { className: 'rio-map-direction', style: { transform: `rotate(${bearing}deg)` } }) }));
6
+ const DEFAULT_BEARING = 60;
7
+ const MapStateIndicator = (props) => {
8
+ const { moving, bearing, stateIconName } = props;
9
+ if (!moving && !stateIconName) {
10
+ return null;
11
+ }
12
+ const stateClassName = classNames('rio-map-direction', // TODO: backwards-compatible - remove in future releases
13
+ 'rio-map-marker-state', 'rioglyph', `rioglyph-${stateIconName || 'direction'}`);
14
+ const style = stateIconName ? {} : { transform: `rotate(${bearing}deg)` };
15
+ return _jsx("div", { className: stateClassName, style: style });
16
+ };
7
17
  const getIcons = (iconNames = []) => iconNames.map((name, index) => (_jsx("div", { className: `rio-map-icon rioglyph rioglyph-${name}` }, `rio-map-icon-${name}-${index}`)));
8
18
  const SingleMapMarker = (props) => {
9
- const { bearing = 0, name, warningCount = 0, exceptionCount = 0, active = false, clickable = true, fixed = false, moving = false, iconNames, markerColor = 'bg-map-marker-asset', textColor, size = 'md', visibleOnHover = false, } = props;
10
- const classes = classNames(active && 'active', 'rio-map-marker', 'rio-map-marker-bottom-center');
11
- const singleClasses = classNames('rio-map-single', fixed && 'fixed', moving && 'moving', !clickable && 'pointer-events-none', textColor, size === 'lg' && 'rio-map-single-lg', visibleOnHover && 'rio-map-single-visible-on-hover', active && 'active', markerColorMapping[markerColor]);
12
- return (_jsx("div", Object.assign({ className: classes }, { children: _jsxs("div", Object.assign({ className: 'rio-map-marker-translate' }, { children: [_jsxs("div", Object.assign({ className: singleClasses }, { children: [_jsx(MapDirection, { moving: moving, bearing: bearing }), getIcons(iconNames), name && _jsx("div", Object.assign({ className: 'rio-map-name' }, { children: name })), _jsx("div", Object.assign({ className: 'rio-map-bubble exception' }, { children: exceptionCount > 0 && exceptionCount })), _jsx("div", Object.assign({ className: 'rio-map-bubble warning' }, { children: warningCount > 0 && warningCount }))] })), _jsx("div", { className: 'rio-map-position-arrow' }), _jsx("div", { className: `rio-map-position ${size === 'lg' ? 'rio-map-position-lg' : ''} cursor-pointer` })] })) })));
19
+ 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', } = props;
20
+ const largeAnchor = anchorSize === 'lg';
21
+ const classes = classNames(active && 'active', 'rio-map-marker', 'rio-map-marker-bottom-center', !clickable && 'not-clickable');
22
+ const anchorClasses = classNames('rio-map-anchor', largeAnchor ? 'rio-map-anchor-lg' : '', cursor);
23
+ const singleClasses = classNames('rio-map-single', fixed && 'fixed', moving && 'moving', textColor, markerOnHover && 'visible-on-hover', active && 'active', pinging && 'pinging', cursor);
24
+ const markerBackgroundColor = `var(${markerColorMapping[markerColor]})`;
25
+ return (_jsx("div", Object.assign({ className: classes, 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}` }) }))] })) })));
13
26
  };
14
27
  export default SingleMapMarker;
@@ -3,6 +3,7 @@ export type DropdownHeaderProps = {
3
3
  icon?: React.ReactNode;
4
4
  center?: boolean;
5
5
  label: string | React.ReactNode;
6
+ className?: string;
6
7
  };
7
8
  declare const DropdownHeader: (props: DropdownHeaderProps) => import("react/jsx-runtime").JSX.Element;
8
9
  export default DropdownHeader;
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  // @ts-ignore-next-line importsNotUsedAsValues
3
3
  import 'react';
4
4
  const DropdownHeader = (props) => {
5
- const { icon, label, center = true } = props;
6
- return (_jsx("li", Object.assign({ className: `dropdown-header ${center ? 'center' : ''}` }, { children: _jsxs("span", Object.assign({ className: 'dropdown-header-text' }, { children: [icon && _jsx("span", Object.assign({ className: 'margin-right-5' }, { children: icon })), label] })) })));
5
+ const { icon, label, center = true, className = '' } = props;
6
+ return (_jsx("li", Object.assign({ className: `dropdown-header ${center ? 'center' : ''} ${className}` }, { children: _jsxs("span", Object.assign({ className: 'dropdown-header-text' }, { children: [icon && _jsx("span", Object.assign({ className: 'margin-right-5' }, { children: icon })), label] })) })));
7
7
  };
8
8
  export default DropdownHeader;
@@ -1,5 +1,5 @@
1
1
  import { __rest } from "tslib";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  // @ts-ignore-next-line importsNotUsedAsValues
4
4
  import { useRef, useState } from 'react';
5
5
  import classNames from 'classnames';
@@ -75,7 +75,7 @@ const Multiselect = (props) => {
75
75
  const wrapperClassNames = classNames('dropdown-toggle', 'form-control', 'text-left', bsSize === 'sm' && 'input-sm', bsSize === 'lg' && 'input-lg', multiline && 'height-auto', disabled && 'disabled');
76
76
  const showPlaceholder = isEmpty(selectedItemIds) && !showUnselectedItemIcons;
77
77
  const showFilter = useFilter && isOpen && !counterMessage && !renderCounterMessage;
78
- const toggleButton = (_jsxs("button", Object.assign({ type: 'button', id: id, name: name, className: wrapperClassNames, "data-toggle": 'dropdown', tabIndex: tabIndex, "aria-haspopup": 'true', "aria-expanded": isOpen, onClick: onToggle, onKeyDown: handleToggleKeyDown, ref: refToggle }, { children: [showPlaceholder ? _jsx(MultiselectTogglePlaceholder, { placeholder: placeholder }) : renderSelection(), showFilter && !multiline && renderFilter(), _jsx("span", { className: 'caret' })] })));
78
+ const toggleButton = (_jsxs("button", Object.assign({ type: 'button', id: id, name: name, className: wrapperClassNames, "data-toggle": 'dropdown', tabIndex: tabIndex, "aria-haspopup": 'true', "aria-expanded": isOpen, onClick: onToggle, onKeyDown: handleToggleKeyDown, ref: refToggle }, { children: [showPlaceholder ? (_jsxs(_Fragment, { children: [_jsx(MultiselectTogglePlaceholder, { placeholder: placeholder }), showFilter && renderFilter()] })) : (renderSelection()), showFilter && !multiline && renderFilter(), _jsx("span", { className: 'caret' })] })));
79
79
  if (!inputAddon && !errorMessage && !warningMessage) {
80
80
  return toggleButton;
81
81
  }
@@ -5,7 +5,7 @@ import classNames from 'classnames';
5
5
  import isEmpty from 'lodash/fp/isEmpty';
6
6
  const MultiselectToggleFilter = (props) => {
7
7
  const { isActive, selectedItemIds, filterValue, multiline, onFilterChange } = props;
8
- const inputClasses = classNames('multiselect-filter-input', isEmpty(selectedItemIds) && 'multiselect-filter-input-placeholder', isActive && 'multiselect-filter-input-active', multiline && 'padding-left-0');
8
+ const inputClasses = classNames('multiselect-filter-input', isEmpty(selectedItemIds) && 'multiselect-filter-input-placeholder', isActive && 'multiselect-filter-input-active');
9
9
  return (_jsx("input", { type: 'text', role: 'searchbox', className: inputClasses,
10
10
  // biome-ignore lint/a11y/noAutofocus: autofocus is intentionally set to allow instant typing to filter
11
11
  autoFocus: true, onChange: onFilterChange, defaultValue: filterValue }));
@@ -1,5 +1,5 @@
1
1
  import { __rest } from "tslib";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  // @ts-ignore-next-line importsNotUsedAsValues
4
4
  import 'react';
5
5
  import classNames from 'classnames';
@@ -11,23 +11,36 @@ const justify = {
11
11
  center: 'justify-content-center',
12
12
  right: 'justify-content-end',
13
13
  };
14
+ const renderButtons = (buttons) => {
15
+ if (isEmpty(buttons)) {
16
+ return;
17
+ }
18
+ if (buttons.length === 1) {
19
+ return (_jsx("div", Object.assign({ className: 'btn-toolbar margin-top-20' }, { children: _jsx(StateButton, Object.assign({}, buttons[0])) })));
20
+ }
21
+ if (buttons.length === 2) {
22
+ return (_jsx("div", Object.assign({ className: 'btn-toolbar margin-top-20 justify-content-center-xs' }, { children: buttons.map((buttonProps, index) => (_jsx(StateButton, Object.assign({}, buttonProps), index))) })));
23
+ }
24
+ return (_jsxs(_Fragment, { children: [_jsxs("div", Object.assign({ className: 'btn-toolbar margin-top-20 justify-content-center-xs' }, { children: [_jsx(StateButton, Object.assign({}, buttons[0]), '1'), _jsx(StateButton, Object.assign({}, buttons[1]), '2')] })), _jsx("div", Object.assign({ className: 'btn-toolbar' }, { children: buttons.map((buttonProps, index) => {
25
+ return index > 1 && _jsx(StateButton, Object.assign({}, buttonProps), index);
26
+ }) }))] }));
27
+ };
14
28
  const CustomState = (props) => {
15
- const { icon = 'rioglyph-rio', icons = [], image, headline, message, buttons = [], alignment = 'center', fullWidth = false, condensed = false, outerClassName, innerClassName, children } = props, remainingProps = __rest(props, ["icon", "icons", "image", "headline", "message", "buttons", "alignment", "fullWidth", "condensed", "outerClassName", "innerClassName", "children"]);
16
- const hasCustomInnerPadding = innerClassName && innerClassName.includes('padding');
17
- const hasCustomOuterPadding = outerClassName && outerClassName.includes('padding');
29
+ const { icon, icons = [], image, headline, message, buttons = [], alignment = 'center', fullWidth = false, condensed = false, outerClassName, innerClassName, children } = props, remainingProps = __rest(props, ["icon", "icons", "image", "headline", "message", "buttons", "alignment", "fullWidth", "condensed", "outerClassName", "innerClassName", "children"]);
30
+ const hasCustomInnerPadding = innerClassName === null || innerClassName === void 0 ? void 0 : innerClassName.includes('padding');
31
+ const hasCustomOuterPadding = outerClassName === null || outerClassName === void 0 ? void 0 : outerClassName.includes('padding');
18
32
  const wrapperClasses = classNames('margin-0', 'width-100pct', !fullWidth && 'max-width-600', 'panel-default', 'panel', !hasCustomOuterPadding && condensed ? 'padding-10' : 'padding-15', outerClassName && outerClassName);
19
33
  const innerClassNames = classNames('display-flex', 'flex-column', 'align-items-center', 'text-center', !hasCustomInnerPadding && condensed ? 'padding-15' : 'padding-25', innerClassName && innerClassName);
20
34
  const iconClasses = classNames(condensed ? 'text-size-16 margin-bottom-10' : 'text-size-h2 margin-bottom-20');
21
35
  const iconsClasses = classNames(condensed ? 'text-size-16 margin-bottom-10' : 'text-size-h2 margin-bottom-20', 'display-flex', 'align-items-center', 'max-width-100pct');
22
- const headlineClassNames = classNames(condensed ? 'text-size-h4' : 'text-size-h3 text-size-h2-sm', 'line-height-125rel', 'text-color-dark', 'text-medium', 'width-500', 'max-width-100pct');
23
- const renderButtons = (_jsx("div", Object.assign({ className: 'btn-toolbar margin-top-20' }, { children: buttons.map((buttonProps, index) => (_jsx(StateButton, Object.assign({}, buttonProps), index))) })));
36
+ const headlineClassNames = classNames(condensed ? 'text-size-h4' : 'text-size-h3 text-size-h2-xl', 'line-height-125rel', 'text-color-dark', 'text-medium', 'width-500', 'max-width-100pct', 'text-wrap-balance');
24
37
  const renderIcon = (_jsx("div", Object.assign({ className: iconClasses }, { children: _jsx(StateIcon, { name: icon }) })));
25
38
  const renderIcons = (_jsx("div", Object.assign({ className: iconsClasses }, { children: icons.map((iconProps, index) => (_jsx(StateIcon, Object.assign({}, iconProps), index))) })));
26
39
  const renderChildren = _jsx("div", Object.assign({ className: 'width-500 max-width-100pct margin-top-25' }, { children: children }));
27
40
  const renderHeadline = _jsx("div", Object.assign({ className: headlineClassNames }, { children: headline }));
28
- const renderMessage = _jsx("div", Object.assign({ className: 'text-color-dark margin-top-15 width-500 max-width-100pct' }, { children: message }));
41
+ const renderMessage = (_jsx("div", Object.assign({ className: 'text-color-dark margin-top-15 width-500 max-width-100pct text-wrap-balance' }, { children: message })));
29
42
  const singleOrMultiIcon = isEmpty(icons) ? renderIcon : renderIcons;
30
43
  const imageOrIcon = image ? image : singleOrMultiIcon;
31
- return (_jsx("div", Object.assign({ className: `display-flex ${justify[alignment]} max-width-100pct` }, remainingProps, { children: _jsx("div", Object.assign({ className: wrapperClasses }, { children: _jsxs("div", Object.assign({ className: innerClassNames }, { children: [imageOrIcon, headline && renderHeadline, message && renderMessage, !isEmpty(buttons) && renderButtons, children && renderChildren] })) })) })));
44
+ return (_jsx("div", Object.assign({ className: `display-flex ${justify[alignment]} max-width-100pct` }, remainingProps, { children: _jsx("div", Object.assign({ className: wrapperClasses }, { children: _jsxs("div", Object.assign({ className: innerClassNames }, { children: [imageOrIcon, headline && renderHeadline, message && renderMessage, renderButtons(buttons), children && renderChildren] })) })) })));
32
45
  };
33
46
  export default CustomState;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import type { BUTTON_STYLE } from '../../Button';
2
3
  export type StateButtonProps = {
3
4
  /**
4
5
  * The button text.
@@ -18,10 +19,16 @@ export type StateButtonProps = {
18
19
  * This way it will render a link button instead.
19
20
  */
20
21
  href?: string;
22
+ /**
23
+ * The style of the button.
24
+ *
25
+ * @default 'primary'
26
+ */
27
+ bsStyle?: BUTTON_STYLE;
21
28
  /**
22
29
  * Additional classes assigned to the button.
23
30
  */
24
31
  className?: string;
25
32
  };
26
- declare const StateButton: ({ text, className, onClick, href }: StateButtonProps) => import("react/jsx-runtime").JSX.Element;
33
+ declare const StateButton: (props: StateButtonProps) => import("react/jsx-runtime").JSX.Element;
27
34
  export default StateButton;