@rio-cloud/rio-uikit 0.16.2-beta.9 → 0.16.3-beta.1

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 (283) hide show
  1. package/.DS_Store +0 -0
  2. package/AspectRatioPlaceholder.d.ts +5 -0
  3. package/AspectRatioPlaceholder.js +2 -0
  4. package/AspectRatioPlaceholder.ts +5 -0
  5. package/ConfirmationDialog.d.ts +2 -0
  6. package/Dialog.d.ts +2 -0
  7. package/Map.d.ts +2 -1
  8. package/README.md +11 -1
  9. package/ResponsiveColumnStripe.d.ts +5 -0
  10. package/ResponsiveColumnStripe.js +2 -0
  11. package/RuleConnector.d.ts +2 -1
  12. package/RuleContainer.d.ts +3 -2
  13. package/RulesWrapper.d.ts +2 -1
  14. package/SaveDialog.d.ts +2 -0
  15. package/SimpleDialog.d.ts +2 -0
  16. package/SplitDialog.d.ts +2 -0
  17. package/components/activity/Activity.js +6 -4
  18. package/components/animatedNumber/AnimatedNumber.js +6 -4
  19. package/components/applicationHeader/AppMenu.js +6 -3
  20. package/components/applicationHeader/AppMenuDropdown.js +6 -2
  21. package/components/applicationHeader/ApplicationHeader.js +16 -8
  22. package/components/applicationHeader/MobileAppMenu.js +8 -4
  23. package/components/applicationLayout/ApplicationLayout.js +8 -8
  24. package/components/applicationLayout/ApplicationLayoutBody.js +6 -3
  25. package/components/applicationLayout/ApplicationLayoutBodyBanner.js +4 -3
  26. package/components/applicationLayout/ApplicationLayoutBodyBottomBar.js +6 -4
  27. package/components/applicationLayout/ApplicationLayoutBodyNavigation.js +6 -4
  28. package/components/applicationLayout/ApplicationLayoutHeader.js +9 -7
  29. package/components/aspectRatioPlaceholder/AspectRatioPlaceholder.js +25 -0
  30. package/components/assetTree/AssetTree.js +6 -3
  31. package/components/assetTree/TypeCounter.js +6 -4
  32. package/components/dialog/Dialog.js +3 -1
  33. package/components/dialog/MediaDialog.js +5 -1
  34. package/components/dialog/SaveDialog.js +5 -2
  35. package/components/fade/Fade.js +5 -0
  36. package/components/filepicker/FilePicker.js +1 -1
  37. package/components/map/assets/icon_map_settings_bounding_box_active.svg +1 -1
  38. package/components/map/assets/icon_map_settings_bounding_box_inactive.svg +1 -1
  39. package/components/map/assets/icon_map_settings_construction_active.svg +1 -1
  40. package/components/map/assets/icon_map_settings_construction_inactive.svg +1 -1
  41. package/components/map/assets/icon_map_settings_layer_active.svg +1 -1
  42. package/components/map/assets/icon_map_settings_layer_inactive.svg +1 -1
  43. package/components/map/assets/icon_map_settings_maptype_flat_active.svg +1 -1
  44. package/components/map/assets/icon_map_settings_maptype_flat_inactive.svg +1 -1
  45. package/components/map/assets/icon_map_settings_maptype_flat_truck_active.svg +1 -1
  46. package/components/map/assets/icon_map_settings_maptype_flat_truck_inactive.svg +1 -1
  47. package/components/map/assets/icon_map_settings_maptype_night_active.svg +1 -12
  48. package/components/map/assets/icon_map_settings_maptype_night_inactive.svg +1 -12
  49. package/components/map/assets/icon_map_settings_maptype_satelite_active.svg +1 -1
  50. package/components/map/assets/icon_map_settings_maptype_satelite_inactive.svg +1 -1
  51. package/components/map/assets/icon_map_settings_maptype_terrain_active.svg +1 -1
  52. package/components/map/assets/icon_map_settings_maptype_terrain_inactive.svg +1 -1
  53. package/components/map/assets/icon_map_settings_road_restrictions_active.svg +1 -1
  54. package/components/map/assets/icon_map_settings_road_restrictions_inactive.svg +1 -1
  55. package/components/map/assets/icon_map_settings_system_pois_active.svg +1 -1
  56. package/components/map/assets/icon_map_settings_system_pois_inactive.svg +1 -1
  57. package/components/map/assets/icon_map_settings_workshop_pois_active.svg +1 -1
  58. package/components/map/assets/icon_map_settings_workshop_pois_inactive.svg +1 -1
  59. package/components/map/components/Map.js +47 -36
  60. package/components/map/components/features/ContextMenu.js +1 -1
  61. package/components/map/components/features/Route.js +1 -9
  62. package/components/map/components/features/basics/Circle.js +11 -6
  63. package/components/map/components/features/basics/MapLayerGroup.js +8 -5
  64. package/components/map/components/features/basics/Polygon.js +6 -5
  65. package/components/map/components/features/basics/Polyline.js +39 -42
  66. package/components/map/components/features/basics/marker/DomMarker.js +9 -3
  67. package/components/map/components/features/basics/marker/Marker.js +101 -121
  68. package/components/map/components/features/basics/marker/TextMarker.js +15 -43
  69. package/components/map/components/features/layers/Layer.js +1 -1
  70. package/components/map/components/features/layers/MarkerLayer.js +7 -4
  71. package/components/map/components/features/layers/RoadRestrictionLayer.js +1 -2
  72. package/components/map/components/features/layers/TrafficLayer.js +2 -2
  73. package/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +2 -1
  74. package/components/map/components/features/layers/baselayers/useBaseLayer.js +4 -1
  75. package/components/map/components/features/layers/clustering/ClusterLayer.js +25 -9
  76. package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +18 -3
  77. package/components/map/icons/MapIcon.js +46 -66
  78. package/components/map/utils/hooks.js +3 -3
  79. package/components/mapMarker/ClusterMapMarker.js +16 -20
  80. package/components/mapMarker/SingleMapMarker.js +16 -30
  81. package/components/numberControl/NumberControl.js +13 -7
  82. package/components/numberInput/NumberInput.js +30 -12
  83. package/components/responsiveColumnStripe/ResponsiveColumnStripe.js +255 -0
  84. package/components/rules/RuleContainer.js +4 -0
  85. package/components/rules/RulesWrapper.js +3 -3
  86. package/hooks/useDarkMode.js +3 -2
  87. package/hooks/useMutationObserver.js +13 -4
  88. package/hooks/useScrollPosition.js +6 -7
  89. package/index.d.ts +31 -29
  90. package/index.js +4 -0
  91. package/lib/es/AspectRatioPlaceholder.d.ts +5 -0
  92. package/lib/es/AspectRatioPlaceholder.js +13 -0
  93. package/lib/es/AspectRatioPlaceholder.ts +5 -0
  94. package/lib/es/ConfirmationDialog.d.ts +2 -0
  95. package/lib/es/Dialog.d.ts +2 -0
  96. package/lib/es/Map.d.ts +2 -1
  97. package/lib/es/ResponsiveColumnStripe.d.ts +5 -0
  98. package/lib/es/ResponsiveColumnStripe.js +13 -0
  99. package/lib/es/RuleConnector.d.ts +2 -1
  100. package/lib/es/RuleContainer.d.ts +3 -2
  101. package/lib/es/RulesWrapper.d.ts +2 -1
  102. package/lib/es/SaveDialog.d.ts +2 -0
  103. package/lib/es/SimpleDialog.d.ts +2 -0
  104. package/lib/es/SplitDialog.d.ts +2 -0
  105. package/lib/es/components/activity/Activity.js +9 -4
  106. package/lib/es/components/animatedNumber/AnimatedNumber.js +5 -3
  107. package/lib/es/components/applicationHeader/AppMenu.js +6 -3
  108. package/lib/es/components/applicationHeader/AppMenuDropdown.js +6 -2
  109. package/lib/es/components/applicationHeader/ApplicationHeader.js +15 -7
  110. package/lib/es/components/applicationHeader/MobileAppMenu.js +8 -4
  111. package/lib/es/components/applicationLayout/ApplicationLayout.js +11 -8
  112. package/lib/es/components/applicationLayout/ApplicationLayoutBody.js +5 -2
  113. package/lib/es/components/applicationLayout/ApplicationLayoutBodyBanner.js +7 -3
  114. package/lib/es/components/applicationLayout/ApplicationLayoutBodyBottomBar.js +9 -4
  115. package/lib/es/components/applicationLayout/ApplicationLayoutBodyNavigation.js +9 -4
  116. package/lib/es/components/applicationLayout/ApplicationLayoutHeader.js +12 -7
  117. package/lib/es/components/aspectRatioPlaceholder/AspectRatioPlaceholder.js +33 -0
  118. package/lib/es/components/assetTree/AssetTree.js +5 -2
  119. package/lib/es/components/assetTree/TypeCounter.js +9 -4
  120. package/lib/es/components/dialog/Dialog.js +3 -1
  121. package/lib/es/components/dialog/MediaDialog.js +5 -1
  122. package/lib/es/components/dialog/SaveDialog.js +5 -2
  123. package/lib/es/components/fade/Fade.js +5 -0
  124. package/lib/es/components/filepicker/FilePicker.js +1 -1
  125. package/lib/es/components/map/assets/icon_map_settings_bounding_box_active.svg +1 -1
  126. package/lib/es/components/map/assets/icon_map_settings_bounding_box_inactive.svg +1 -1
  127. package/lib/es/components/map/assets/icon_map_settings_construction_active.svg +1 -1
  128. package/lib/es/components/map/assets/icon_map_settings_construction_inactive.svg +1 -1
  129. package/lib/es/components/map/assets/icon_map_settings_layer_active.svg +1 -1
  130. package/lib/es/components/map/assets/icon_map_settings_layer_inactive.svg +1 -1
  131. package/lib/es/components/map/assets/icon_map_settings_maptype_flat_active.svg +1 -1
  132. package/lib/es/components/map/assets/icon_map_settings_maptype_flat_inactive.svg +1 -1
  133. package/lib/es/components/map/assets/icon_map_settings_maptype_flat_truck_active.svg +1 -1
  134. package/lib/es/components/map/assets/icon_map_settings_maptype_flat_truck_inactive.svg +1 -1
  135. package/lib/es/components/map/assets/icon_map_settings_maptype_night_active.svg +1 -12
  136. package/lib/es/components/map/assets/icon_map_settings_maptype_night_inactive.svg +1 -12
  137. package/lib/es/components/map/assets/icon_map_settings_maptype_satelite_active.svg +1 -1
  138. package/lib/es/components/map/assets/icon_map_settings_maptype_satelite_inactive.svg +1 -1
  139. package/lib/es/components/map/assets/icon_map_settings_maptype_terrain_active.svg +1 -1
  140. package/lib/es/components/map/assets/icon_map_settings_maptype_terrain_inactive.svg +1 -1
  141. package/lib/es/components/map/assets/icon_map_settings_road_restrictions_active.svg +1 -1
  142. package/lib/es/components/map/assets/icon_map_settings_road_restrictions_inactive.svg +1 -1
  143. package/lib/es/components/map/assets/icon_map_settings_system_pois_active.svg +1 -1
  144. package/lib/es/components/map/assets/icon_map_settings_system_pois_inactive.svg +1 -1
  145. package/lib/es/components/map/assets/icon_map_settings_workshop_pois_active.svg +1 -1
  146. package/lib/es/components/map/assets/icon_map_settings_workshop_pois_inactive.svg +1 -1
  147. package/lib/es/components/map/components/Map.js +47 -36
  148. package/lib/es/components/map/components/features/ContextMenu.js +1 -1
  149. package/lib/es/components/map/components/features/Route.js +1 -9
  150. package/lib/es/components/map/components/features/basics/Circle.js +10 -5
  151. package/lib/es/components/map/components/features/basics/MapLayerGroup.js +8 -5
  152. package/lib/es/components/map/components/features/basics/Polygon.js +6 -5
  153. package/lib/es/components/map/components/features/basics/Polyline.js +39 -42
  154. package/lib/es/components/map/components/features/basics/marker/DomMarker.js +8 -3
  155. package/lib/es/components/map/components/features/basics/marker/Marker.js +105 -120
  156. package/lib/es/components/map/components/features/basics/marker/TextMarker.js +15 -42
  157. package/lib/es/components/map/components/features/layers/Layer.js +1 -1
  158. package/lib/es/components/map/components/features/layers/MarkerLayer.js +7 -4
  159. package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.js +1 -2
  160. package/lib/es/components/map/components/features/layers/TrafficLayer.js +2 -2
  161. package/lib/es/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +2 -1
  162. package/lib/es/components/map/components/features/layers/baselayers/useBaseLayer.js +4 -1
  163. package/lib/es/components/map/components/features/layers/clustering/ClusterLayer.js +25 -9
  164. package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +18 -3
  165. package/lib/es/components/map/icons/MapIcon.js +46 -66
  166. package/lib/es/components/map/utils/hooks.js +3 -3
  167. package/lib/es/components/mapMarker/ClusterMapMarker.js +16 -20
  168. package/lib/es/components/mapMarker/SingleMapMarker.js +16 -30
  169. package/lib/es/components/numberControl/NumberControl.js +13 -7
  170. package/lib/es/components/numberInput/NumberInput.js +31 -12
  171. package/lib/es/components/responsiveColumnStripe/ResponsiveColumnStripe.js +266 -0
  172. package/lib/es/components/rules/RuleContainer.js +4 -0
  173. package/lib/es/components/rules/RulesWrapper.js +3 -3
  174. package/lib/es/hooks/useDarkMode.js +4 -3
  175. package/lib/es/hooks/useMutationObserver.js +15 -4
  176. package/lib/es/hooks/useScrollPosition.js +6 -7
  177. package/lib/es/index.d.ts +31 -29
  178. package/lib/es/index.js +24 -0
  179. package/lib/es/styles/components/ApplicationHeader.less +2 -0
  180. package/lib/es/styles/components/Dialog.less +41 -23
  181. package/lib/es/styles/components/MapMarker.less +224 -14
  182. package/lib/es/styles/components/MapSettings.less +45 -29
  183. package/lib/es/styles/components/Notification.less +1 -1
  184. package/lib/es/styles/design/alerts.less +7 -9
  185. package/lib/es/styles/design/aspect-ratio.less +1 -0
  186. package/lib/es/styles/design/blur.less +7 -0
  187. package/lib/es/styles/design/border.less +51 -14
  188. package/lib/es/styles/design/callouts.less +12 -11
  189. package/lib/es/styles/design/colors.less +15 -6
  190. package/lib/es/styles/design/cols.less +19 -18
  191. package/lib/es/styles/design/divide.less +165 -0
  192. package/lib/es/styles/design/divider.less +90 -0
  193. package/lib/es/styles/design/responsive/_imports.less +1 -0
  194. package/lib/es/styles/design/responsive/gap.less +0 -8
  195. package/lib/es/styles/design/responsive/spacing.less +25 -0
  196. package/lib/es/styles/design/text.less +16 -2
  197. package/lib/es/styles/mapping/color-map.less +10 -0
  198. package/lib/es/styles/mapping/spacings-map.less +5 -0
  199. package/lib/es/styles/rio-uikit-core.less +2 -0
  200. package/lib/es/styles/variables/colors.json +6 -0
  201. package/lib/es/styles/variables/concated_css_variables.less +6 -0
  202. package/lib/es/styles/variables/dark_colors.less +7 -0
  203. package/lib/es/styles/variables/dark_css_variables_map.less +7 -0
  204. package/lib/es/styles/variables/light_colors.less +7 -0
  205. package/lib/es/styles/variables/light_css_variables_map.less +7 -0
  206. package/lib/es/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +14 -5
  207. package/lib/es/types.ts +71 -25
  208. package/lib/es/useDarkMode.d.ts +4 -0
  209. package/lib/es/useDarkMode.js +13 -0
  210. package/lib/es/useMutationObserver.d.ts +4 -0
  211. package/lib/es/useMutationObserver.js +13 -0
  212. package/lib/es/version.json +1 -1
  213. package/package.json +1 -1
  214. package/styles/components/ApplicationHeader.less +2 -0
  215. package/styles/components/Dialog.less +41 -23
  216. package/styles/components/MapMarker.less +224 -14
  217. package/styles/components/MapSettings.less +45 -29
  218. package/styles/components/Notification.less +1 -1
  219. package/styles/design/alerts.less +7 -9
  220. package/styles/design/aspect-ratio.less +1 -0
  221. package/styles/design/blur.less +7 -0
  222. package/styles/design/border.less +51 -14
  223. package/styles/design/callouts.less +12 -11
  224. package/styles/design/colors.less +15 -6
  225. package/styles/design/cols.less +19 -18
  226. package/styles/design/divide.less +165 -0
  227. package/styles/design/divider.less +90 -0
  228. package/styles/design/responsive/_imports.less +1 -0
  229. package/styles/design/responsive/gap.less +0 -8
  230. package/styles/design/responsive/spacing.less +25 -0
  231. package/styles/design/text.less +16 -2
  232. package/styles/mapping/color-map.less +10 -0
  233. package/styles/mapping/spacings-map.less +5 -0
  234. package/styles/rio-uikit-core.less +2 -0
  235. package/styles/variables/colors.json +6 -0
  236. package/styles/variables/concated_css_variables.less +6 -0
  237. package/styles/variables/dark_colors.less +7 -0
  238. package/styles/variables/dark_css_variables_map.less +7 -0
  239. package/styles/variables/light_colors.less +7 -0
  240. package/styles/variables/light_css_variables_map.less +7 -0
  241. package/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +15 -6
  242. package/types.ts +71 -25
  243. package/useDarkMode.d.ts +4 -0
  244. package/useDarkMode.js +2 -0
  245. package/useMutationObserver.d.ts +4 -0
  246. package/useMutationObserver.js +2 -0
  247. package/version.json +1 -1
  248. package/components/.DS_Store +0 -0
  249. package/components/map/.DS_Store +0 -0
  250. package/components/map/components/.DS_Store +0 -0
  251. package/components/map/components/features/layers/TruckLayer.js +0 -20
  252. package/components/map/components/features/layers/baselayers/BaseLayer.js +0 -33
  253. package/components/map/components/features/layers/baselayers/DefaultLayer.js +0 -23
  254. package/hooks/useHereMap.ts +0 -23
  255. package/hooks/useScripts.ts +0 -52
  256. package/lib/.DS_Store +0 -0
  257. package/lib/es/.DS_Store +0 -0
  258. package/lib/es/components/.DS_Store +0 -0
  259. package/lib/es/components/map/components/features/layers/TruckLayer.js +0 -28
  260. package/lib/es/components/map/components/features/layers/baselayers/BaseLayer.js +0 -41
  261. package/lib/es/components/map/components/features/layers/baselayers/DefaultLayer.js +0 -30
  262. package/lib/es/hooks/useHereMap.ts +0 -23
  263. package/lib/es/hooks/useScripts.ts +0 -52
  264. package/lib/es/styles/.DS_Store +0 -0
  265. package/lib/es/styles/mixins/_mixins.less +0 -13
  266. package/lib/es/styles/mixins/alerts.less +0 -13
  267. package/lib/es/styles/shared/colors.json +0 -56
  268. package/lib/es/styles/shared/colors.less +0 -73
  269. package/lib/es/styles/shared/screens.less +0 -7
  270. package/lib/es/styles/shared/text.less +0 -23
  271. package/lib/es/styles/variables.less +0 -186
  272. package/lib/es/themes/.DS_Store +0 -0
  273. package/styles/.DS_Store +0 -0
  274. package/styles/mixins/_mixins.less +0 -13
  275. package/styles/mixins/alerts.less +0 -13
  276. package/styles/shared/colors.json +0 -56
  277. package/styles/shared/colors.less +0 -73
  278. package/styles/shared/screens.less +0 -7
  279. package/styles/shared/text.less +0 -23
  280. package/styles/variables.less +0 -186
  281. package/themes/.DS_Store +0 -0
  282. package/themes/Volkswagen/.DS_Store +0 -0
  283. package/themes/Website/.DS_Store +0 -0
package/.DS_Store CHANGED
Binary file
@@ -0,0 +1,5 @@
1
+ declare module '@rio-cloud/rio-uikit/AspectRatioPlaceholder' {
2
+ import React from 'react';
3
+ import { AspectRatioPlaceholderProps } from './types';
4
+ export default class AspectRatioPlaceholder extends React.Component<AspectRatioPlaceholderProps> {}
5
+ }
@@ -0,0 +1,2 @@
1
+ import { default as _AspectRatioPlaceholder } from './components/aspectRatioPlaceholder/AspectRatioPlaceholder';
2
+ export { _AspectRatioPlaceholder as default };
@@ -0,0 +1,5 @@
1
+ declare module '@rio-cloud/rio-uikit/lib/es/AspectRatioPlaceholder' {
2
+ import React from 'react';
3
+ import { AspectRatioPlaceholderProps } from './types';
4
+ export default class AspectRatioPlaceholder extends React.Component<AspectRatioPlaceholderProps> {}
5
+ }
@@ -7,6 +7,8 @@ declare module '@rio-cloud/rio-uikit/ConfirmationDialog' {
7
7
  static SIZE_LG = 'lg';
8
8
  static SIZE_XL = 'xl';
9
9
  static SIZE_FULL = 'full';
10
+ static SIZE_FULL_WIDTH = 'fullwidth';
11
+ static SIZE_FULL_HEIGHT = 'fullheight';
10
12
  static SIZE_FULL_SCREEN = 'fullscreen';
11
13
  }
12
14
  }
package/Dialog.d.ts CHANGED
@@ -5,6 +5,8 @@ declare module '@rio-cloud/rio-uikit/Dialog' {
5
5
  export default class Dialog extends React.Component<DialogProps> {
6
6
  public static SIZE_FULL_SCREEN: 'fullscreen';
7
7
  public static SIZE_FULL: 'full';
8
+ public static SIZE_FULL_WIDTH: 'fullwidth';
9
+ public static SIZE_FULL_HEIGHT: 'fullheight';
8
10
  public static SIZE_XL: 'xl';
9
11
  public static SIZE_LG: 'lg';
10
12
  public static SIZE_MD: 'md';
package/Map.d.ts CHANGED
@@ -3,9 +3,10 @@ import { MapProps } from './types';
3
3
 
4
4
  export { BoundingBox } from './types';
5
5
 
6
- export default class Map extends React.Component<MapProps> {
6
+ export default class Map extends React.Component<React.PropsWithChildren<MapProps>> {
7
7
  static TYPE_DEFAULT = 'DEFAULT';
8
8
  static TYPE_FLEET_STYLE = 'FLEET_STYLE';
9
9
  static TYPE_SATELLITE = 'SATELLITE';
10
10
  static TYPE_TERRAIN = 'TERRAIN';
11
+ static TYPE_NIGHT = 'NIGHT';
11
12
  }
package/README.md CHANGED
@@ -17,6 +17,13 @@ When releasing a new version:
17
17
  1. Create new `release/${VERSION}` branch and trigger pipeline with a commit
18
18
  2. After the new uikit-demo is published, update `versionsList.json` in `master` branch.
19
19
 
20
+ Create a new development beta version:
21
+
22
+ 1. Update the `package.json`. Example `0.16.3-beta.1`
23
+ 2. Update the `version.json`. Example `0.16.3-beta.1`
24
+ 3. run `npm i` or update `package-lock.json`. Example `0.16.3-beta.1`
25
+ 4. Update the `uikit-demo/package.json`. Example `0.16.3`
26
+
20
27
  ## Development
21
28
 
22
29
  To run the UIKIT and the UIKIT Demo locally for development, use:
@@ -69,14 +76,17 @@ We introduced a versions list containing all the versions for which a uikit-demo
69
76
  The UIKIT needs to be published to NPM for the JavaScript components and the UIKIT CDN for the CSS files.
70
77
 
71
78
  ### Publish to NPM
79
+
72
80
  Run `npm run build:npm` to compile the components via babel to the `package` folder. The UIKIT exports CommonJS and ESM files. Later ones are directly in the package root. CommonJS components are generated in `package/lib/es` due to backwards compatibility reasons as Services import those components from `lib/es`.
73
81
 
74
- __Publish__ the UIKIT __only from__ the __package__ folder. All required files like package.json, README and License files are copied there during the build.
82
+ **Publish** the UIKIT **only from** the **package** folder. All required files like package.json, README and License files are copied there during the build.
75
83
 
76
84
  ### Publishing to UIKIT CDN
85
+
77
86
  Run `npm run build` to build the production bundle and compile the styles to inspect locally. When comitting to the main development branch the build outcome from `dist` is published via our internal CICD pipeline.
78
87
 
79
88
  ### Beta Versions
89
+
80
90
  Beta versions of the UIKIT ideally should be kept in synch in NPM and CDN. After a new beta has been released, increase the version number to avoid overwriting published stylings.
81
91
 
82
92
  ## License
@@ -0,0 +1,5 @@
1
+ declare module '@rio-cloud/rio-uikit/ResponsiveColumnStripe' {
2
+ import React from 'react';
3
+ import { ResponsiveColumnStripeProps } from './types';
4
+ export default class ResponsiveColumnStripe extends React.Component<ResponsiveColumnStripeProps> {}
5
+ }
@@ -0,0 +1,2 @@
1
+ import { default as _ResponsiveColumnStripe } from './components/responsiveColumnStripe/ResponsiveColumnStripe';
2
+ export { _ResponsiveColumnStripe as default };
@@ -1,7 +1,8 @@
1
1
  declare module '@rio-cloud/rio-uikit/RuleConnector' {
2
2
  import React from 'react';
3
3
  import { RuleConnectorProps } from './types';
4
- export default class RuleConnector extends React.Component<RuleConnectorProps> {
4
+
5
+ export default class RuleConnector extends React.Component<React.PropsWithChildren<RuleConnectorProps>> {
5
6
  static START = 'start';
6
7
  static CENTER = 'center';
7
8
  static END = 'end';
@@ -1,5 +1,6 @@
1
1
  declare module '@rio-cloud/rio-uikit/RuleContainer' {
2
2
  import React from 'react';
3
3
  import { RuleContainerProps } from './types';
4
- export default class RuleContainer extends React.Component<RuleContainerProps> {}
5
- }
4
+
5
+ export default class RuleContainer extends React.Component<React.PropsWithChildren<RuleContainerProps>> {}
6
+ }
package/RulesWrapper.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  declare module '@rio-cloud/rio-uikit/RulesWrapper' {
2
2
  import React from 'react';
3
3
  import { RulesWrapperProps } from './types';
4
+
4
5
  export default class RulesWrapper extends React.Component<RulesWrapperProps> {}
5
- }
6
+ }
package/SaveDialog.d.ts CHANGED
@@ -7,6 +7,8 @@ declare module '@rio-cloud/rio-uikit/SaveDialog' {
7
7
  static SIZE_LG = 'lg';
8
8
  static SIZE_XL = 'xl';
9
9
  static SIZE_FULL = 'full';
10
+ static SIZE_FULL_WIDTH: 'fullwidth';
11
+ static SIZE_FULL_HEIGHT: 'fullheight';
10
12
  static SIZE_FULL_SCREEN = 'fullscreen';
11
13
  }
12
14
  }
package/SimpleDialog.d.ts CHANGED
@@ -7,6 +7,8 @@ declare module '@rio-cloud/rio-uikit/SimpleDialog' {
7
7
  static SIZE_LG = 'lg';
8
8
  static SIZE_XL = 'xl';
9
9
  static SIZE_FULL = 'full';
10
+ static SIZE_FULL_WIDTH: 'fullwidth';
11
+ static SIZE_FULL_HEIGHT: 'fullheight';
10
12
  static SIZE_FULL_SCREEN = 'fullscreen';
11
13
  }
12
14
  }
package/SplitDialog.d.ts CHANGED
@@ -7,6 +7,8 @@ declare module '@rio-cloud/rio-uikit/SplitDialog' {
7
7
  static SIZE_LG = 'lg';
8
8
  static SIZE_XL = 'xl';
9
9
  static SIZE_FULL = 'full';
10
+ static SIZE_FULL_WIDTH: 'fullwidth';
11
+ static SIZE_FULL_HEIGHT: 'fullheight';
10
12
  static SIZE_FULL_SCREEN = 'fullscreen';
11
13
  }
12
14
  }
@@ -3,10 +3,10 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _Activity$icons;
5
5
  var _excluded = ["activity", "duration", "isOutdated", "bsSize", "onClick", "className"];
6
- import React from 'react';
6
+ import React, { forwardRef } from 'react';
7
7
  import PropTypes from 'prop-types';
8
8
  import classNames from 'classnames';
9
- var Activity = function Activity(props) {
9
+ var Activity = /*#__PURE__*/forwardRef(function (props, ref) {
10
10
  var activity = props.activity,
11
11
  duration = props.duration,
12
12
  isOutdated = props.isOutdated,
@@ -19,7 +19,9 @@ var Activity = function Activity(props) {
19
19
  }
20
20
  var icon = Activity.icons[activity];
21
21
  var wrapperClassNames = classNames('activity', "activity-".concat(activity), isOutdated && 'opacity-50', bsSize && "activity-".concat(bsSize), className && className);
22
- return /*#__PURE__*/React.createElement("div", _extends({}, remainingProps, {
22
+ return /*#__PURE__*/React.createElement("div", _extends({
23
+ ref: ref
24
+ }, remainingProps, {
23
25
  className: wrapperClassNames,
24
26
  onClick: onClick
25
27
  }), /*#__PURE__*/React.createElement("span", {
@@ -29,7 +31,7 @@ var Activity = function Activity(props) {
29
31
  })), duration && /*#__PURE__*/React.createElement("span", {
30
32
  className: "activity-text"
31
33
  }, duration));
32
- };
34
+ });
33
35
  Activity.AVAILABLE = 'available';
34
36
  Activity.DRIVING = 'driving';
35
37
  Activity.RESTING = 'resting';
@@ -2,11 +2,11 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["start", "end", "prefix", "unit", "speed", "decreasing", "onEnd", "className"];
5
- import React, { useState, useEffect } from 'react';
5
+ import React, { useState, useEffect, forwardRef } from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import useInterval from '../../hooks/useInterval';
8
8
  var TIMER = 10;
9
- export var AnimatedNumber = function AnimatedNumber(props) {
9
+ export var AnimatedNumber = /*#__PURE__*/forwardRef(function (props, ref) {
10
10
  var start = props.start,
11
11
  end = props.end,
12
12
  prefix = props.prefix,
@@ -34,10 +34,12 @@ export var AnimatedNumber = function AnimatedNumber(props) {
34
34
  onEnd();
35
35
  }
36
36
  });
37
- return /*#__PURE__*/React.createElement("span", _extends({}, remainingProps, {
37
+ return /*#__PURE__*/React.createElement("span", _extends({
38
+ ref: ref
39
+ }, remainingProps, {
38
40
  className: className
39
41
  }), "".concat(prefix).concat(value).concat(unit));
40
- };
42
+ });
41
43
  AnimatedNumber.defaultProps = {
42
44
  prefix: '',
43
45
  unit: '',
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["label", "appMenuItems", "appNavigatorClassName", "appNavigator"];
3
+ var _excluded = ["label", "appMenuItems", "appNavigatorClassName", "appNavigator", "onToggleAppMenu"];
4
4
  import React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import classname from 'classnames';
@@ -33,6 +33,7 @@ export var AppMenu = function AppMenu(props) {
33
33
  appMenuItems = props.appMenuItems,
34
34
  appNavigatorClassName = props.appNavigatorClassName,
35
35
  appNavigator = props.appNavigator,
36
+ onToggleAppMenu = props.onToggleAppMenu,
36
37
  remainigProps = _objectWithoutProperties(props, _excluded);
37
38
  var hasItems = !!(appMenuItems && appMenuItems.length || appNavigator);
38
39
  var classNames = classname('ModuleNavigation AppMenu', 'user-select-none', {
@@ -42,7 +43,8 @@ export var AppMenu = function AppMenu(props) {
42
43
  className: classNames
43
44
  }), /*#__PURE__*/React.createElement(AppMenuDropdown, {
44
45
  title: label,
45
- caret: hasItems
46
+ caret: hasItems,
47
+ onToggleAppMenu: onToggleAppMenu
46
48
  }, /*#__PURE__*/React.createElement(MenuContent, props)));
47
49
  };
48
50
  AppMenu.defaultProps = {
@@ -52,5 +54,6 @@ AppMenu.propTypes = {
52
54
  // Support a list of items for services without the app navigator like internal MDM services
53
55
  appMenuItems: PropTypes.arrayOf(modulePropTypes),
54
56
  appNavigator: PropTypes.element,
55
- appNavigatorClassName: PropTypes.string
57
+ appNavigatorClassName: PropTypes.string,
58
+ onToggleAppMenu: PropTypes.func
56
59
  };
@@ -42,6 +42,7 @@ var AppMenuDropdownOpener = /*#__PURE__*/React.forwardRef(function (props, ref)
42
42
  export var AppMenuDropdown = function AppMenuDropdown(props) {
43
43
  var title = props.title,
44
44
  caret = props.caret,
45
+ onToggleAppMenu = props.onToggleAppMenu,
45
46
  children = props.children;
46
47
  var _useState = useState(false),
47
48
  _useState2 = _slicedToArray(_useState, 2),
@@ -51,7 +52,9 @@ export var AppMenuDropdown = function AppMenuDropdown(props) {
51
52
  return setIsOpen(false);
52
53
  });
53
54
  var handleDropdownClick = function handleDropdownClick() {
54
- return setIsOpen(!isOpen);
55
+ var newState = !isOpen;
56
+ setIsOpen(newState);
57
+ onToggleAppMenu(newState);
55
58
  };
56
59
  var openWithChildren = !isEmpty(children) && isOpen;
57
60
  return /*#__PURE__*/React.createElement(AppMenuDropdownOpener, {
@@ -69,5 +72,6 @@ AppMenuDropdown.defaultProps = {
69
72
  };
70
73
  AppMenuDropdown.propTypes = {
71
74
  title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]).isRequired,
72
- caret: PropTypes.bool
75
+ caret: PropTypes.bool,
76
+ onToggleAppMenu: PropTypes.func
73
77
  };
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
- var _excluded = ["homeRoute", "showHomeIcon", "label", "className", "appNavigator", "appNavigatorClassName", "appMenuItems", "navItems", "actionBarItems"];
5
- import React, { useState, useRef, useEffect, useCallback } from 'react';
4
+ var _excluded = ["homeRoute", "showHomeIcon", "label", "className", "appNavigator", "appNavigatorClassName", "appMenuItems", "navItems", "actionBarItems", "onToggleAppMenu"];
5
+ import React, { useState, useRef, forwardRef, useCallback, useImperativeHandle } from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import debounce from 'lodash/fp/debounce';
8
8
  import isEmpty from 'lodash/fp/isEmpty';
@@ -16,7 +16,7 @@ import modulePropTypes from './modulePropTypes';
16
16
  import { MobileAppMenu } from './MobileAppMenu';
17
17
  var SCREEN_SM = 768; // @screen-sm: 768px;
18
18
 
19
- export var ApplicationHeader = function ApplicationHeader(props) {
19
+ export var ApplicationHeader = /*#__PURE__*/forwardRef(function (props, ref) {
20
20
  var homeRoute = props.homeRoute,
21
21
  showHomeIcon = props.showHomeIcon,
22
22
  label = props.label,
@@ -26,12 +26,16 @@ export var ApplicationHeader = function ApplicationHeader(props) {
26
26
  appMenuItems = props.appMenuItems,
27
27
  navItems = props.navItems,
28
28
  actionBarItems = props.actionBarItems,
29
+ onToggleAppMenu = props.onToggleAppMenu,
29
30
  remainigProps = _objectWithoutProperties(props, _excluded);
30
31
  var actionBarRef = useRef();
31
32
  var _useResizeObserver = useResizeObserver(),
32
33
  _useResizeObserver2 = _slicedToArray(_useResizeObserver, 2),
33
34
  navRef = _useResizeObserver2[0],
34
35
  contentRect = _useResizeObserver2[1].contentRect;
36
+ useImperativeHandle(ref, function () {
37
+ return navRef;
38
+ }, []);
35
39
  var getContentRect = useCallback(function (key) {
36
40
  return contentRect && Math.round(contentRect[key]);
37
41
  }, [contentRect]);
@@ -46,7 +50,8 @@ export var ApplicationHeader = function ApplicationHeader(props) {
46
50
  showHomeIcon: showHomeIcon,
47
51
  homeRoute: homeRoute,
48
52
  appMenuItems: appMenuItems,
49
- appNavigator: appNavigator
53
+ appNavigator: appNavigator,
54
+ onToggleAppMenu: onToggleAppMenu
50
55
  }), /*#__PURE__*/React.createElement("div", {
51
56
  className: "flex-1-1-0 display-flex gap-10"
52
57
  }, /*#__PURE__*/React.createElement(MobileSubmoduleNavigation, {
@@ -66,7 +71,8 @@ export var ApplicationHeader = function ApplicationHeader(props) {
66
71
  key: "AppMenu",
67
72
  appMenuItems: appMenuItems,
68
73
  appNavigator: appNavigator,
69
- appNavigatorClassName: appNavigatorClassName
74
+ appNavigatorClassName: appNavigatorClassName,
75
+ onToggleAppMenu: onToggleAppMenu
70
76
  }), isEmpty(navItems) && /*#__PURE__*/React.createElement("ul", {
71
77
  className: "SubmoduleNavigation nav"
72
78
  }), !isEmpty(navItems) && /*#__PURE__*/React.createElement(NavItems, {
@@ -78,7 +84,7 @@ export var ApplicationHeader = function ApplicationHeader(props) {
78
84
  nodeRef: actionBarRef,
79
85
  items: actionBarItems
80
86
  })));
81
- };
87
+ });
82
88
  var Divider = function Divider() {
83
89
  return /*#__PURE__*/React.createElement("div", {
84
90
  className: "divider display-flex align-items-center"
@@ -90,7 +96,8 @@ export default ApplicationHeader;
90
96
  ApplicationHeader.defaultProps = {
91
97
  homeRoute: '',
92
98
  showHomeIcon: true,
93
- actionBarItems: []
99
+ actionBarItems: [],
100
+ onToggleAppMenu: function onToggleAppMenu() {}
94
101
  };
95
102
  ApplicationHeader.propTypes = {
96
103
  label: PropTypes.node,
@@ -101,5 +108,6 @@ ApplicationHeader.propTypes = {
101
108
  appNavigator: PropTypes.node,
102
109
  appNavigatorClassName: PropTypes.string,
103
110
  navItems: PropTypes.arrayOf(modulePropTypes),
104
- actionBarItems: PropTypes.arrayOf(PropTypes.node)
111
+ actionBarItems: PropTypes.arrayOf(PropTypes.node),
112
+ onToggleAppMenu: PropTypes.func
105
113
  };
@@ -8,15 +8,18 @@ export var MobileAppMenu = function MobileAppMenu(props) {
8
8
  var appMenuItems = props.appMenuItems,
9
9
  appNavigator = props.appNavigator,
10
10
  showHomeIcon = props.showHomeIcon,
11
- homeRoute = props.homeRoute;
11
+ homeRoute = props.homeRoute,
12
+ onToggleAppMenu = props.onToggleAppMenu;
12
13
  var _useState = useState(false),
13
14
  _useState2 = _slicedToArray(_useState, 2),
14
15
  isShown = _useState2[0],
15
16
  setIsShown = _useState2[1];
16
17
  var handleToggleNavigation = function handleToggleNavigation() {
17
- return setIsShown(!isShown);
18
+ var newState = !isShown;
19
+ setIsShown(newState);
20
+ onToggleAppMenu(newState);
18
21
  };
19
- var hasAppContent = !isNil(appMenuItems) || !isNil(appNavigator);
22
+ var hasAppContent = !(isNil(appMenuItems) && isNil(appNavigator));
20
23
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
21
24
  className: "navbar-header min-width-50 padding-5 overflow-hidden position-relative display-flex align-items-center",
22
25
  onClick: handleToggleNavigation
@@ -47,5 +50,6 @@ MobileAppMenu.propTypes = {
47
50
  homeRoute: PropTypes.node,
48
51
  showHomeIcon: PropTypes.bool,
49
52
  appMenuItems: PropTypes.arrayOf(modulePropTypes),
50
- appNavigator: PropTypes.element
53
+ appNavigator: PropTypes.element,
54
+ onToggleAppMenu: PropTypes.func
51
55
  };
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["className", "layoutRef", "children"];
4
- import React from 'react';
4
+ import React, { forwardRef } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import classNames from 'classnames';
7
7
  import ApplicationLayoutHeader from './ApplicationLayoutHeader';
@@ -11,17 +11,17 @@ import ApplicationLayoutBody from './ApplicationLayoutBody';
11
11
  // initializes document bootstrapping - keep the import to avoid being tree-shaked
12
12
  import { initDocumentBootstrapping } from '../../utils/init';
13
13
  initDocumentBootstrapping;
14
- export var ApplicationLayout = function ApplicationLayout(_ref) {
15
- var className = _ref.className,
16
- layoutRef = _ref.layoutRef,
17
- children = _ref.children,
18
- remainigProps = _objectWithoutProperties(_ref, _excluded);
14
+ export var ApplicationLayout = /*#__PURE__*/forwardRef(function (props, ref) {
15
+ var className = props.className,
16
+ layoutRef = props.layoutRef,
17
+ children = props.children,
18
+ remainigProps = _objectWithoutProperties(props, _excluded);
19
19
  var classes = classNames('ApplicationLayout', className);
20
20
  return /*#__PURE__*/React.createElement("div", _extends({}, remainigProps, {
21
- ref: layoutRef,
21
+ ref: ref || layoutRef,
22
22
  className: classes
23
23
  }), children);
24
- };
24
+ });
25
25
  ApplicationLayout.Header = ApplicationLayoutHeader;
26
26
  ApplicationLayout.Sidebar = ApplicationLayoutSidebar;
27
27
  ApplicationLayout.Body = ApplicationLayoutBody;
@@ -2,12 +2,12 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["className", "innerClassName", "forceScrollbar", "enableScrollToTop", "banner", "navigation", "bottomBar", "bottomBarHeight", "children"];
5
- import React, { useState, useRef, useEffect } from 'react';
5
+ import React, { useState, useRef, useEffect, forwardRef, useImperativeHandle } from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import debounce from 'lodash/fp/debounce';
8
8
  import classNames from 'classnames';
9
9
  var RESIZE_THROTTELING = 200;
10
- export var ApplicationLayoutBody = function ApplicationLayoutBody(props) {
10
+ export var ApplicationLayoutBody = /*#__PURE__*/forwardRef(function (props, ref) {
11
11
  var className = props.className,
12
12
  innerClassName = props.innerClassName,
13
13
  forceScrollbar = props.forceScrollbar,
@@ -24,6 +24,9 @@ export var ApplicationLayoutBody = function ApplicationLayoutBody(props) {
24
24
  setOffset = _useState2[1];
25
25
  var moduleContentRef = useRef();
26
26
  var layoutBodyRef = useRef();
27
+ useImperativeHandle(ref, function () {
28
+ return layoutBodyRef;
29
+ }, []);
27
30
  useEffect(function () {
28
31
  if (layoutBodyRef.current) {
29
32
  layoutBodyRef.current.parentNode.style = "--ApplicationLayoutBodyBottomBarHeight: ".concat(bottomBarHeight, "px");
@@ -66,7 +69,7 @@ export var ApplicationLayoutBody = function ApplicationLayoutBody(props) {
66
69
  }, /*#__PURE__*/React.createElement("span", {
67
70
  className: "rioglyph rioglyph-arrow-up"
68
71
  })))), bottomBar && bottomBar);
69
- };
72
+ });
70
73
  ApplicationLayoutBody.defaultProps = {
71
74
  className: '',
72
75
  enableScrollToTop: true,
@@ -1,10 +1,10 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["textColor", "backgroundColor", "isSticky", "className", "children"];
4
- import React from 'react';
4
+ import React, { forwardRef } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import classNames from 'classnames';
7
- export var ApplicationLayoutBodyBanner = function ApplicationLayoutBodyBanner(props) {
7
+ export var ApplicationLayoutBodyBanner = /*#__PURE__*/forwardRef(function (props, ref) {
8
8
  var textColor = props.textColor,
9
9
  backgroundColor = props.backgroundColor,
10
10
  isSticky = props.isSticky,
@@ -13,9 +13,10 @@ export var ApplicationLayoutBodyBanner = function ApplicationLayoutBodyBanner(pr
13
13
  remainingProps = _objectWithoutProperties(props, _excluded);
14
14
  var bannerClasses = classNames('ApplicationLayoutBodyBanner', textColor, backgroundColor, isSticky && 'position-sticky top-0 z-index-3', className);
15
15
  return /*#__PURE__*/React.createElement("div", _extends({}, remainingProps, {
16
+ ref: ref,
16
17
  className: bannerClasses
17
18
  }), children);
18
- };
19
+ });
19
20
  ApplicationLayoutBodyBanner.defaultProps = {
20
21
  textColor: 'text-color-white',
21
22
  backgroundColor: 'bg-primary',
@@ -1,20 +1,22 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["className", "buttonAlignment", "useBodyPaddings", "children"];
4
- import React from 'react';
4
+ import React, { forwardRef } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import classNames from 'classnames';
7
- export var ApplicationLayoutBodyBottomBar = function ApplicationLayoutBodyBottomBar(_ref) {
7
+ export var ApplicationLayoutBodyBottomBar = /*#__PURE__*/forwardRef(function (_ref, ref) {
8
8
  var className = _ref.className,
9
9
  buttonAlignment = _ref.buttonAlignment,
10
10
  useBodyPaddings = _ref.useBodyPaddings,
11
11
  children = _ref.children,
12
12
  remainigProps = _objectWithoutProperties(_ref, _excluded);
13
13
  var classes = classNames('ApplicationLayoutBodyBottomBar', buttonAlignment === 'left' && 'justify-content-start', buttonAlignment === 'right' && 'justify-content-end', buttonAlignment !== 'left' && buttonAlignment !== 'right' && 'justify-content-between', useBodyPaddings && 'use-body-padding', className && className);
14
- return /*#__PURE__*/React.createElement("div", _extends({}, remainigProps, {
14
+ return /*#__PURE__*/React.createElement("div", _extends({
15
+ ref: ref
16
+ }, remainigProps, {
15
17
  className: classes
16
18
  }), children);
17
- };
19
+ });
18
20
  ApplicationLayoutBodyBottomBar.LEFT = 'left';
19
21
  ApplicationLayoutBodyBottomBar.RIGHT = 'right';
20
22
  ApplicationLayoutBodyBottomBar.defaultProps = {
@@ -1,18 +1,20 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["className", "children"];
4
- import React from 'react';
4
+ import React, { forwardRef } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import classNames from 'classnames';
7
- export var ApplicationLayoutBodyNavigation = function ApplicationLayoutBodyNavigation(props) {
7
+ export var ApplicationLayoutBodyNavigation = /*#__PURE__*/forwardRef(function (props, ref) {
8
8
  var className = props.className,
9
9
  children = props.children,
10
10
  remainingProps = _objectWithoutProperties(props, _excluded);
11
11
  var navigationClasses = classNames('ApplicationLayoutBodyNavigation', className);
12
- return /*#__PURE__*/React.createElement("div", _extends({}, remainingProps, {
12
+ return /*#__PURE__*/React.createElement("div", _extends({
13
+ ref: ref
14
+ }, remainingProps, {
13
15
  className: navigationClasses
14
16
  }), children);
15
- };
17
+ });
16
18
  ApplicationLayoutBodyNavigation.propTypes = {
17
19
  className: PropTypes.string
18
20
  };
@@ -1,19 +1,21 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["className", "children"];
4
- import React from 'react';
4
+ import React, { forwardRef } from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import classNames from 'classnames';
7
- export var ApplicationLayoutHeader = function ApplicationLayoutHeader(_ref) {
8
- var className = _ref.className,
9
- children = _ref.children,
10
- remainigProps = _objectWithoutProperties(_ref, _excluded);
7
+ export var ApplicationLayoutHeader = /*#__PURE__*/forwardRef(function (props, ref) {
8
+ var className = props.className,
9
+ children = props.children,
10
+ remainigProps = _objectWithoutProperties(props, _excluded);
11
11
  var classes = classNames('ApplicationLayoutHeader', className);
12
- return /*#__PURE__*/React.createElement("div", _extends({}, remainigProps, {
12
+ return /*#__PURE__*/React.createElement("div", _extends({
13
+ ref: ref
14
+ }, remainigProps, {
13
15
  className: classes,
14
16
  id: "ApplicationLayoutHeader"
15
17
  }), children);
16
- };
18
+ });
17
19
  ApplicationLayoutHeader.propTypes = {
18
20
  className: PropTypes.string
19
21
  };
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ var AspectRatioPlaceholder = function AspectRatioPlaceholder(props) {
4
+ var width = props.width,
5
+ height = props.height,
6
+ _props$className = props.className,
7
+ className = _props$className === void 0 ? '' : _props$className,
8
+ children = props.children;
9
+ return /*#__PURE__*/React.createElement("div", {
10
+ className: "position-relative ".concat(className),
11
+ style: {
12
+ aspectRatio: "".concat(width, " / ").concat(height)
13
+ }
14
+ }, children);
15
+ };
16
+ AspectRatioPlaceholder.defaultProps = {
17
+ width: 16,
18
+ height: 9
19
+ };
20
+ AspectRatioPlaceholder.propTypes = {
21
+ width: PropTypes.number,
22
+ height: PropTypes.number,
23
+ className: PropTypes.string
24
+ };
25
+ export default AspectRatioPlaceholder;
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["className", "resizable", "width", "maxWidth", "minWidth", "height", "bordered", "currentCategoryId", "isOpen", "useOffscreen", "fly", "onCategoryChange", "onToggleTree", "onResizeEnd", "children"];
5
- import React, { memo, useState, useEffect, useRef } from 'react';
5
+ import React, { memo, useState, useEffect, useRef, forwardRef, useImperativeHandle } from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import classNames from 'classnames';
8
8
  import head from 'lodash/fp/head';
@@ -38,7 +38,7 @@ var renderTreesOffscreen = function renderTreesOffscreen(children, categoryId) {
38
38
  }, child);
39
39
  });
40
40
  };
41
- var AssetTree = /*#__PURE__*/memo(function (props) {
41
+ var AssetTree = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (props, ref) {
42
42
  var className = props.className,
43
43
  resizable = props.resizable,
44
44
  width = props.width,
@@ -71,6 +71,9 @@ var AssetTree = /*#__PURE__*/memo(function (props) {
71
71
  sidebarMode = _useState6[0],
72
72
  setSidebarMode = _useState6[1];
73
73
  var sidebarRef = useRef();
74
+ useImperativeHandle(ref, function () {
75
+ return sidebarRef;
76
+ }, []);
74
77
 
75
78
  // Update internal state when props change
76
79
  useEffect(function () {
@@ -150,7 +153,7 @@ var AssetTree = /*#__PURE__*/memo(function (props) {
150
153
  direction: Resizer.HORIZONTAL,
151
154
  position: Resizer.RIGHT
152
155
  }));
153
- });
156
+ }));
154
157
  AssetTree.displayName = 'AssetTree';
155
158
  AssetTree.MODE_FLY = 'fly';
156
159
  AssetTree.MODE_FLUID = 'fluid';