@rio-cloud/rio-uikit 0.16.2-beta.8 → 0.16.2

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 (270) hide show
  1. package/.DS_Store +0 -0
  2. package/AspectRatioPlaceholder.js +2 -0
  3. package/AspectRatioPlaceholder.ts +5 -0
  4. package/Map.d.ts +2 -1
  5. package/ResponsiveColumnStripe.d.ts +5 -0
  6. package/ResponsiveColumnStripe.js +2 -0
  7. package/RuleConnector.d.ts +2 -1
  8. package/RuleContainer.d.ts +3 -2
  9. package/RulesWrapper.d.ts +2 -1
  10. package/components/activity/Activity.js +6 -4
  11. package/components/animatedNumber/AnimatedNumber.js +6 -4
  12. package/components/applicationHeader/AppMenu.js +6 -3
  13. package/components/applicationHeader/AppMenuDropdown.js +6 -2
  14. package/components/applicationHeader/ApplicationHeader.js +16 -8
  15. package/components/applicationHeader/MobileAppMenu.js +8 -4
  16. package/components/applicationLayout/ApplicationLayout.js +8 -8
  17. package/components/applicationLayout/ApplicationLayoutBody.js +6 -3
  18. package/components/applicationLayout/ApplicationLayoutBodyBanner.js +4 -3
  19. package/components/applicationLayout/ApplicationLayoutBodyBottomBar.js +6 -4
  20. package/components/applicationLayout/ApplicationLayoutBodyNavigation.js +6 -4
  21. package/components/applicationLayout/ApplicationLayoutHeader.js +9 -7
  22. package/components/aspectRatioPlaceholder/AspectRatioPlaceholder.js +25 -0
  23. package/components/assetTree/AssetTree.js +6 -3
  24. package/components/assetTree/TypeCounter.js +6 -4
  25. package/components/clearableInput/ClearableInput.js +2 -1
  26. package/components/datepicker/DatePicker.js +8 -4
  27. package/components/dialog/MediaDialog.js +5 -1
  28. package/components/dialog/SaveDialog.js +5 -2
  29. package/components/fade/Fade.js +5 -0
  30. package/components/filepicker/FilePicker.js +1 -1
  31. package/components/map/assets/icon_map_settings_bounding_box_active.svg +1 -1
  32. package/components/map/assets/icon_map_settings_bounding_box_inactive.svg +1 -1
  33. package/components/map/assets/icon_map_settings_construction_active.svg +1 -1
  34. package/components/map/assets/icon_map_settings_construction_inactive.svg +1 -1
  35. package/components/map/assets/icon_map_settings_layer_active.svg +1 -1
  36. package/components/map/assets/icon_map_settings_layer_inactive.svg +1 -1
  37. package/components/map/assets/icon_map_settings_maptype_flat_active.svg +1 -1
  38. package/components/map/assets/icon_map_settings_maptype_flat_inactive.svg +1 -1
  39. package/components/map/assets/icon_map_settings_maptype_flat_truck_active.svg +1 -1
  40. package/components/map/assets/icon_map_settings_maptype_flat_truck_inactive.svg +1 -1
  41. package/components/map/assets/icon_map_settings_maptype_night_active.svg +1 -12
  42. package/components/map/assets/icon_map_settings_maptype_night_inactive.svg +1 -12
  43. package/components/map/assets/icon_map_settings_maptype_satelite_active.svg +1 -1
  44. package/components/map/assets/icon_map_settings_maptype_satelite_inactive.svg +1 -1
  45. package/components/map/assets/icon_map_settings_maptype_terrain_active.svg +1 -1
  46. package/components/map/assets/icon_map_settings_maptype_terrain_inactive.svg +1 -1
  47. package/components/map/assets/icon_map_settings_road_restrictions_active.svg +1 -1
  48. package/components/map/assets/icon_map_settings_road_restrictions_inactive.svg +1 -1
  49. package/components/map/assets/icon_map_settings_system_pois_active.svg +1 -1
  50. package/components/map/assets/icon_map_settings_system_pois_inactive.svg +1 -1
  51. package/components/map/assets/icon_map_settings_workshop_pois_active.svg +1 -1
  52. package/components/map/assets/icon_map_settings_workshop_pois_inactive.svg +1 -1
  53. package/components/map/components/Map.js +47 -36
  54. package/components/map/components/features/ContextMenu.js +1 -1
  55. package/components/map/components/features/Route.js +1 -10
  56. package/components/map/components/features/basics/Circle.js +11 -6
  57. package/components/map/components/features/basics/MapLayerGroup.js +8 -5
  58. package/components/map/components/features/basics/Polygon.js +6 -5
  59. package/components/map/components/features/basics/Polyline.js +42 -40
  60. package/components/map/components/features/basics/marker/DomMarker.js +9 -3
  61. package/components/map/components/features/basics/marker/Marker.js +101 -121
  62. package/components/map/components/features/basics/marker/TextMarker.js +15 -43
  63. package/components/map/components/features/layers/Layer.js +1 -1
  64. package/components/map/components/features/layers/MarkerLayer.js +7 -4
  65. package/components/map/components/features/layers/RoadRestrictionLayer.js +1 -2
  66. package/components/map/components/features/layers/TrafficLayer.js +2 -2
  67. package/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +2 -1
  68. package/components/map/components/features/layers/baselayers/useBaseLayer.js +4 -1
  69. package/components/map/components/features/layers/clustering/ClusterLayer.js +25 -9
  70. package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +18 -3
  71. package/components/map/icons/MapIcon.js +46 -66
  72. package/components/map/utils/hooks.js +3 -3
  73. package/components/mapMarker/ClusterMapMarker.js +16 -20
  74. package/components/mapMarker/SingleMapMarker.js +16 -30
  75. package/components/numberControl/NumberControl.js +13 -7
  76. package/components/numberInput/NumberInput.js +30 -12
  77. package/components/responsiveColumnStripe/ResponsiveColumnStripe.js +255 -0
  78. package/components/rules/RuleContainer.js +4 -0
  79. package/components/rules/RulesWrapper.js +3 -3
  80. package/hooks/useDarkMode.js +3 -2
  81. package/hooks/useMutationObserver.js +13 -4
  82. package/hooks/useScrollPosition.js +6 -7
  83. package/index.d.ts +29 -29
  84. package/index.js +4 -0
  85. package/lib/es/AspectRatioPlaceholder.js +13 -0
  86. package/lib/es/AspectRatioPlaceholder.ts +5 -0
  87. package/lib/es/Map.d.ts +2 -1
  88. package/lib/es/ResponsiveColumnStripe.d.ts +5 -0
  89. package/lib/es/ResponsiveColumnStripe.js +13 -0
  90. package/lib/es/RuleConnector.d.ts +2 -1
  91. package/lib/es/RuleContainer.d.ts +3 -2
  92. package/lib/es/RulesWrapper.d.ts +2 -1
  93. package/lib/es/components/activity/Activity.js +9 -4
  94. package/lib/es/components/animatedNumber/AnimatedNumber.js +5 -3
  95. package/lib/es/components/applicationHeader/AppMenu.js +6 -3
  96. package/lib/es/components/applicationHeader/AppMenuDropdown.js +6 -2
  97. package/lib/es/components/applicationHeader/ApplicationHeader.js +15 -7
  98. package/lib/es/components/applicationHeader/MobileAppMenu.js +8 -4
  99. package/lib/es/components/applicationLayout/ApplicationLayout.js +11 -8
  100. package/lib/es/components/applicationLayout/ApplicationLayoutBody.js +5 -2
  101. package/lib/es/components/applicationLayout/ApplicationLayoutBodyBanner.js +7 -3
  102. package/lib/es/components/applicationLayout/ApplicationLayoutBodyBottomBar.js +9 -4
  103. package/lib/es/components/applicationLayout/ApplicationLayoutBodyNavigation.js +9 -4
  104. package/lib/es/components/applicationLayout/ApplicationLayoutHeader.js +12 -7
  105. package/lib/es/components/aspectRatioPlaceholder/AspectRatioPlaceholder.js +33 -0
  106. package/lib/es/components/assetTree/AssetTree.js +5 -2
  107. package/lib/es/components/assetTree/TypeCounter.js +9 -4
  108. package/lib/es/components/clearableInput/ClearableInput.js +2 -1
  109. package/lib/es/components/datepicker/DatePicker.js +7 -3
  110. package/lib/es/components/dialog/MediaDialog.js +5 -1
  111. package/lib/es/components/dialog/SaveDialog.js +5 -2
  112. package/lib/es/components/fade/Fade.js +5 -0
  113. package/lib/es/components/filepicker/FilePicker.js +1 -1
  114. package/lib/es/components/map/assets/icon_map_settings_bounding_box_active.svg +1 -1
  115. package/lib/es/components/map/assets/icon_map_settings_bounding_box_inactive.svg +1 -1
  116. package/lib/es/components/map/assets/icon_map_settings_construction_active.svg +1 -1
  117. package/lib/es/components/map/assets/icon_map_settings_construction_inactive.svg +1 -1
  118. package/lib/es/components/map/assets/icon_map_settings_layer_active.svg +1 -1
  119. package/lib/es/components/map/assets/icon_map_settings_layer_inactive.svg +1 -1
  120. package/lib/es/components/map/assets/icon_map_settings_maptype_flat_active.svg +1 -1
  121. package/lib/es/components/map/assets/icon_map_settings_maptype_flat_inactive.svg +1 -1
  122. package/lib/es/components/map/assets/icon_map_settings_maptype_flat_truck_active.svg +1 -1
  123. package/lib/es/components/map/assets/icon_map_settings_maptype_flat_truck_inactive.svg +1 -1
  124. package/lib/es/components/map/assets/icon_map_settings_maptype_night_active.svg +1 -12
  125. package/lib/es/components/map/assets/icon_map_settings_maptype_night_inactive.svg +1 -12
  126. package/lib/es/components/map/assets/icon_map_settings_maptype_satelite_active.svg +1 -1
  127. package/lib/es/components/map/assets/icon_map_settings_maptype_satelite_inactive.svg +1 -1
  128. package/lib/es/components/map/assets/icon_map_settings_maptype_terrain_active.svg +1 -1
  129. package/lib/es/components/map/assets/icon_map_settings_maptype_terrain_inactive.svg +1 -1
  130. package/lib/es/components/map/assets/icon_map_settings_road_restrictions_active.svg +1 -1
  131. package/lib/es/components/map/assets/icon_map_settings_road_restrictions_inactive.svg +1 -1
  132. package/lib/es/components/map/assets/icon_map_settings_system_pois_active.svg +1 -1
  133. package/lib/es/components/map/assets/icon_map_settings_system_pois_inactive.svg +1 -1
  134. package/lib/es/components/map/assets/icon_map_settings_workshop_pois_active.svg +1 -1
  135. package/lib/es/components/map/assets/icon_map_settings_workshop_pois_inactive.svg +1 -1
  136. package/lib/es/components/map/components/Map.js +47 -36
  137. package/lib/es/components/map/components/features/ContextMenu.js +1 -1
  138. package/lib/es/components/map/components/features/Route.js +1 -10
  139. package/lib/es/components/map/components/features/basics/Circle.js +10 -5
  140. package/lib/es/components/map/components/features/basics/MapLayerGroup.js +8 -5
  141. package/lib/es/components/map/components/features/basics/Polygon.js +6 -5
  142. package/lib/es/components/map/components/features/basics/Polyline.js +42 -42
  143. package/lib/es/components/map/components/features/basics/marker/DomMarker.js +8 -3
  144. package/lib/es/components/map/components/features/basics/marker/Marker.js +105 -120
  145. package/lib/es/components/map/components/features/basics/marker/TextMarker.js +15 -42
  146. package/lib/es/components/map/components/features/layers/Layer.js +1 -1
  147. package/lib/es/components/map/components/features/layers/MarkerLayer.js +7 -4
  148. package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.js +1 -2
  149. package/lib/es/components/map/components/features/layers/TrafficLayer.js +2 -2
  150. package/lib/es/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +2 -1
  151. package/lib/es/components/map/components/features/layers/baselayers/useBaseLayer.js +4 -1
  152. package/lib/es/components/map/components/features/layers/clustering/ClusterLayer.js +25 -9
  153. package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +18 -3
  154. package/lib/es/components/map/icons/MapIcon.js +46 -66
  155. package/lib/es/components/map/utils/hooks.js +3 -3
  156. package/lib/es/components/mapMarker/ClusterMapMarker.js +16 -20
  157. package/lib/es/components/mapMarker/SingleMapMarker.js +16 -30
  158. package/lib/es/components/numberControl/NumberControl.js +13 -7
  159. package/lib/es/components/numberInput/NumberInput.js +31 -12
  160. package/lib/es/components/responsiveColumnStripe/ResponsiveColumnStripe.js +266 -0
  161. package/lib/es/components/rules/RuleContainer.js +4 -0
  162. package/lib/es/components/rules/RulesWrapper.js +3 -3
  163. package/lib/es/hooks/useDarkMode.js +4 -3
  164. package/lib/es/hooks/useMutationObserver.js +15 -4
  165. package/lib/es/hooks/useScrollPosition.js +6 -7
  166. package/lib/es/index.d.ts +29 -29
  167. package/lib/es/index.js +24 -0
  168. package/lib/es/styles/components/Dialog.less +13 -10
  169. package/lib/es/styles/components/MapMarker.less +224 -14
  170. package/lib/es/styles/components/MapSettings.less +45 -29
  171. package/lib/es/styles/components/Notification.less +1 -1
  172. package/lib/es/styles/design/alerts.less +7 -9
  173. package/lib/es/styles/design/aspect-ratio.less +1 -0
  174. package/lib/es/styles/design/blur.less +7 -0
  175. package/lib/es/styles/design/border.less +51 -14
  176. package/lib/es/styles/design/callouts.less +12 -11
  177. package/lib/es/styles/design/colors.less +15 -6
  178. package/lib/es/styles/design/cols.less +19 -18
  179. package/lib/es/styles/design/divide.less +165 -0
  180. package/lib/es/styles/design/divider.less +90 -0
  181. package/lib/es/styles/design/responsive/_imports.less +1 -0
  182. package/lib/es/styles/design/responsive/gap.less +0 -8
  183. package/lib/es/styles/design/responsive/spacing.less +25 -0
  184. package/lib/es/styles/design/text.less +16 -2
  185. package/lib/es/styles/mapping/color-map.less +10 -0
  186. package/lib/es/styles/mapping/spacings-map.less +5 -0
  187. package/lib/es/styles/rio-uikit-core.less +2 -0
  188. package/lib/es/styles/variables/colors.json +6 -0
  189. package/lib/es/styles/variables/concated_css_variables.less +6 -0
  190. package/lib/es/styles/variables/dark_colors.less +7 -0
  191. package/lib/es/styles/variables/dark_css_variables_map.less +7 -0
  192. package/lib/es/styles/variables/light_colors.less +7 -0
  193. package/lib/es/styles/variables/light_css_variables_map.less +7 -0
  194. package/lib/es/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +14 -5
  195. package/lib/es/types.ts +69 -23
  196. package/lib/es/useDarkMode.d.ts +4 -0
  197. package/lib/es/useDarkMode.js +13 -0
  198. package/lib/es/useMutationObserver.d.ts +4 -0
  199. package/lib/es/useMutationObserver.js +13 -0
  200. package/lib/es/version.json +1 -1
  201. package/package.json +2 -2
  202. package/styles/components/Dialog.less +13 -10
  203. package/styles/components/MapMarker.less +224 -14
  204. package/styles/components/MapSettings.less +45 -29
  205. package/styles/components/Notification.less +1 -1
  206. package/styles/design/alerts.less +7 -9
  207. package/styles/design/aspect-ratio.less +1 -0
  208. package/styles/design/blur.less +7 -0
  209. package/styles/design/border.less +51 -14
  210. package/styles/design/callouts.less +12 -11
  211. package/styles/design/colors.less +15 -6
  212. package/styles/design/cols.less +19 -18
  213. package/styles/design/divide.less +165 -0
  214. package/styles/design/divider.less +90 -0
  215. package/styles/design/responsive/_imports.less +1 -0
  216. package/styles/design/responsive/gap.less +0 -8
  217. package/styles/design/responsive/spacing.less +25 -0
  218. package/styles/design/text.less +16 -2
  219. package/styles/mapping/color-map.less +10 -0
  220. package/styles/mapping/spacings-map.less +5 -0
  221. package/styles/rio-uikit-core.less +2 -0
  222. package/styles/variables/colors.json +6 -0
  223. package/styles/variables/concated_css_variables.less +6 -0
  224. package/styles/variables/dark_colors.less +7 -0
  225. package/styles/variables/dark_css_variables_map.less +7 -0
  226. package/styles/variables/light_colors.less +7 -0
  227. package/styles/variables/light_css_variables_map.less +7 -0
  228. package/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +15 -6
  229. package/types.ts +69 -23
  230. package/useDarkMode.d.ts +4 -0
  231. package/useDarkMode.js +2 -0
  232. package/useMutationObserver.d.ts +4 -0
  233. package/useMutationObserver.js +2 -0
  234. package/version.json +1 -1
  235. package/components/.DS_Store +0 -0
  236. package/components/map/.DS_Store +0 -0
  237. package/components/map/components/.DS_Store +0 -0
  238. package/components/map/components/features/layers/TruckLayer.js +0 -20
  239. package/components/map/components/features/layers/baselayers/BaseLayer.js +0 -33
  240. package/components/map/components/features/layers/baselayers/DefaultLayer.js +0 -23
  241. package/hooks/useHereMap.ts +0 -23
  242. package/hooks/useScripts.ts +0 -52
  243. package/lib/.DS_Store +0 -0
  244. package/lib/es/.DS_Store +0 -0
  245. package/lib/es/components/.DS_Store +0 -0
  246. package/lib/es/components/map/components/features/layers/TruckLayer.js +0 -28
  247. package/lib/es/components/map/components/features/layers/baselayers/BaseLayer.js +0 -41
  248. package/lib/es/components/map/components/features/layers/baselayers/DefaultLayer.js +0 -30
  249. package/lib/es/hooks/useHereMap.ts +0 -23
  250. package/lib/es/hooks/useScripts.ts +0 -52
  251. package/lib/es/styles/.DS_Store +0 -0
  252. package/lib/es/styles/mixins/_mixins.less +0 -13
  253. package/lib/es/styles/mixins/alerts.less +0 -13
  254. package/lib/es/styles/shared/colors.json +0 -56
  255. package/lib/es/styles/shared/colors.less +0 -73
  256. package/lib/es/styles/shared/screens.less +0 -7
  257. package/lib/es/styles/shared/text.less +0 -23
  258. package/lib/es/styles/variables.less +0 -186
  259. package/lib/es/themes/.DS_Store +0 -0
  260. package/styles/.DS_Store +0 -0
  261. package/styles/mixins/_mixins.less +0 -13
  262. package/styles/mixins/alerts.less +0 -13
  263. package/styles/shared/colors.json +0 -56
  264. package/styles/shared/colors.less +0 -73
  265. package/styles/shared/screens.less +0 -7
  266. package/styles/shared/text.less +0 -23
  267. package/styles/variables.less +0 -186
  268. package/themes/.DS_Store +0 -0
  269. package/themes/Volkswagen/.DS_Store +0 -0
  270. package/themes/Website/.DS_Store +0 -0
@@ -1,4 +1,6 @@
1
1
  .callout {
2
+ position: relative;
3
+ overflow: hidden;
2
4
  background-color: var(--color-white);
3
5
  border-radius: @border-radius-default;
4
6
  border: 1px solid var(--gray-light);
@@ -8,20 +10,19 @@
8
10
  margin-bottom: 0;
9
11
  }
10
12
 
11
- // default
12
- // primary
13
- // secondary
14
- // info
15
- // success
16
- // warning
17
- // danger
18
- &-default {
19
- box-shadow: inset 5px 0 0 0 var(--gray);
13
+ &::before {
14
+ content: "";
15
+ position: absolute;
16
+ top: 0;
17
+ left: 0;
18
+ height: 100%;
19
+ width: 5px;
20
+ background-color: var(--gray);
20
21
  }
21
22
 
22
23
  each(@colors-brand-and-status-map, {
23
- &-@{key} {
24
- box-shadow: inset 5px 0 0 0 @value;
24
+ &-@{key}::before {
25
+ background-color: @value;
25
26
  }
26
27
  })
27
28
  }
@@ -83,6 +83,15 @@ each(@colors-map-marker-map, {
83
83
  }
84
84
  })
85
85
 
86
+ each(@colors-map-marker-night-map, {
87
+ .bg-@{key} {
88
+ background-color: @value !important;
89
+ }
90
+ .hover-bg-@{key}:hover {
91
+ background-color: @value !important;
92
+ }
93
+ })
94
+
86
95
  // rating-1
87
96
  // rating-2
88
97
  // rating-3
@@ -161,9 +170,9 @@ each(@colors-highlight-map, {
161
170
  .hover-bg-@{key}:hover {
162
171
  background-color: @value !important;
163
172
  }
164
- .fill-@{key} {
165
- fill: @value !important;
166
- }
173
+ // .fill-@{key} {
174
+ // fill: @value !important;
175
+ // }
167
176
  })
168
177
  .bg-coldplay-wine,
169
178
  .bg-coldplay-aubergine,
@@ -189,9 +198,9 @@ each(@colors-highlight-map, {
189
198
  .hover-bg-@{key}:hover {
190
199
  background-color: @value !important;
191
200
  }
192
- .fill-@{key} {
193
- fill: @value !important;
194
- }
201
+ // .fill-@{key} {
202
+ // fill: @value !important;
203
+ // }
195
204
  })
196
205
  .bg-warmup-crimson,
197
206
  .bg-warmup-victoria,
@@ -13,26 +13,27 @@
13
13
  padding-right: floor((@grid-gutter-width / 2));
14
14
  //
15
15
  float: left;
16
+ width: 100%;
16
17
  }
17
- }
18
18
 
19
- // Columns
20
- .make-grid-columns();
21
-
22
- // col-
23
- .make-grid(~'-');
24
- .make-grid(~'-xs-'); // BS remains
25
-
26
- // col-sm
27
- // col-ls
28
- // col-md
29
- // col-lg
30
- // col-xl
31
- each(@breakpoint-ls-to-xl, {
32
- @media (min-width: @value) {
33
- .make-grid(~'-@{key}-');
34
- }
35
- })
19
+ // Columns
20
+ .make-grid-columns();
21
+
22
+ // col-
23
+ .make-grid(~'-');
24
+ .make-grid(~'-xs-'); // BS remains
25
+
26
+ // col-ls
27
+ // col-sm
28
+ // col-md
29
+ // col-lg
30
+ // col-xl
31
+ each(@breakpoint-ls-to-xl, {
32
+ @media (min-width: @value) {
33
+ .make-grid(~'-@{key}-');
34
+ }
35
+ })
36
+ }
36
37
 
37
38
  .no-gutter {
38
39
  margin-right: 0;
@@ -0,0 +1,165 @@
1
+ [class*="divider-y"] > :not([hidden]) ~ :not([hidden]) {
2
+ border-bottom-width: 0;
3
+ border-top-style: solid;
4
+ }
5
+
6
+ [class*="divider-x"] > :not([hidden]) ~ :not([hidden]) {
7
+ border-right-width: 0;
8
+ border-left-style: solid;
9
+ }
10
+
11
+ .divider-y-1 {
12
+ &> :not([hidden]) ~ :not([hidden]) {
13
+ border-top-width: 1px;
14
+ }
15
+ }
16
+
17
+ .divider-y-2 > :not([hidden]) ~ :not([hidden]) {
18
+ border-top-width: 2px;
19
+ }
20
+
21
+ .divider-y-3 > :not([hidden]) ~ :not([hidden]) {
22
+ border-top-width: 3px;
23
+ }
24
+
25
+ .divider-x-1 {
26
+ &> :not([hidden]) ~ :not([hidden]) {
27
+ border-left-width: 1px;
28
+ }
29
+ }
30
+
31
+ .divider-x-2 > :not([hidden]) ~ :not([hidden]) {
32
+ border-left-width: 2px;
33
+ }
34
+
35
+ .divider-x-3 > :not([hidden]) ~ :not([hidden]) {
36
+ border-left-width: 3px;
37
+ }
38
+
39
+ // coloring
40
+
41
+ .divider-color {
42
+ // white
43
+ // black
44
+ each(@colors-text-map, {
45
+ &-@{key} > :not([hidden]) ~ :not([hidden]) {
46
+ border-color: @value !important;
47
+ }
48
+ })
49
+
50
+ // primary
51
+ // secondary
52
+ each(@colors-brand-map, {
53
+ &-@{key} > :not([hidden]) ~ :not([hidden]) {
54
+ border-color: @value !important;
55
+ }
56
+ })
57
+
58
+ // info
59
+ // success
60
+ // warning
61
+ // danger
62
+ each(@colors-status-map, {
63
+ &-@{key} > :not([hidden]) ~ :not([hidden]) {
64
+ border-color: @value !important;
65
+ }
66
+ })
67
+
68
+ // darkest
69
+ // darker
70
+ // dark
71
+ // gray
72
+ // light
73
+ // lighter
74
+ // lightest
75
+ each(@colors-gray-map, {
76
+ &-@{key} > :not([hidden]) ~ :not([hidden]) {
77
+ border-color: @value !important;
78
+ }
79
+ })
80
+
81
+ // map-marker-asset
82
+ // map-marker-poi
83
+ // map-marker-geofence
84
+ // map-marker-route
85
+ each(@colors-map-marker-map, {
86
+ &-@{key} > :not([hidden]) ~ :not([hidden]) {
87
+ border-color: @value !important;
88
+ }
89
+ })
90
+
91
+ each(@colors-map-marker-night-map, {
92
+ &-@{key} > :not([hidden]) ~ :not([hidden]) {
93
+ border-color: @value !important;
94
+ }
95
+ })
96
+
97
+ // rating-1
98
+ // rating-2
99
+ // rating-3
100
+ // rating-4
101
+ // rating-5
102
+ each(@colors-rating-map, {
103
+ &-@{key} > :not([hidden]) ~ :not([hidden]) {
104
+ border-color: @value !important;
105
+ }
106
+ })
107
+
108
+ // status-available
109
+ // status-driving
110
+ // status-resting
111
+ // status-working
112
+ each(@colors-driving-status-map, {
113
+ &-@{key} > :not([hidden]) ~ :not([hidden]) {
114
+ border-color: @value !important;
115
+ }
116
+ })
117
+
118
+ // highlight-darkest
119
+ // highlight-darker
120
+ // highlight-dark
121
+ // highlight
122
+ // highlight-light
123
+ // highlight-lighter
124
+ // highlight-lightest
125
+ // highlight-decent
126
+ each(@colors-highlight-map, {
127
+ &-@{key} > :not([hidden]) ~ :not([hidden]) {
128
+ border-color: @value !important;
129
+ }
130
+ })
131
+
132
+ // coldplay-wine
133
+ // coldplay-aubergine
134
+ // coldplay-kashmir
135
+ // coldplay-fountain
136
+ // coldplay-turquoise
137
+ // coldplay-bermuda
138
+ // coldplay-moos
139
+ // coldplay-primrose
140
+ // coldplay-khaki
141
+ // & when (@buildColdplayColors = true) {
142
+ // each(@colors-coldplay-map, {
143
+ // &-@{key} > :not([hidden]) ~ :not([hidden]) {
144
+ // border-color: @value !important;
145
+ // }
146
+ // })
147
+ // }
148
+
149
+ // warmup-crimson
150
+ // warmup-victoria
151
+ // warmup-cadillac
152
+ // warmup-raspberry
153
+ // warmup-cerise
154
+ // warmup-charm
155
+ // warmup-salmon
156
+ // warmup-cherokee
157
+ // warmup-corn
158
+ // & when (@buildWarmupColors = true) {
159
+ // each(@colors-warmup-map, {
160
+ // &-@{key} > :not([hidden]) ~ :not([hidden]) {
161
+ // border-color: @value !important;
162
+ // }
163
+ // })
164
+ // }
165
+ }
@@ -0,0 +1,90 @@
1
+ .divider-y {
2
+ > * ~ * {
3
+ border-bottom-width: 0;
4
+ border-color: var(--gray-light);
5
+ border-top-style: solid;
6
+ border-top-width: 1px;
7
+ }
8
+ }
9
+
10
+ .divider-x {
11
+ > * ~ * {
12
+ border-color: var(--gray-light);
13
+ border-left-style: solid;
14
+ border-left-width: 1px;
15
+ border-right-width: 0;
16
+ }
17
+ }
18
+
19
+ [class*="divider-y"] {
20
+ &> * ~ * {
21
+ border-bottom-width: 0 !important;
22
+ }
23
+
24
+ &.divider-style-solid > * ~ * { border-top-style: solid !important}
25
+ &.divider-style-dotted > * ~ * { border-top-style: dotted !important}
26
+ &.divider-style-dashed > * ~ * { border-top-style: dashed !important}
27
+ }
28
+
29
+ [class*="divider-x"] {
30
+ &> * ~ * {
31
+ border-right-width: 0;
32
+ }
33
+
34
+ &.divider-style-solid > * ~ * { border-left-style: solid !important}
35
+ &.divider-style-dotted > * ~ * { border-left-style: dotted !important}
36
+ &.divider-style-dashed > * ~ * { border-left-style: dashed !important}
37
+ }
38
+
39
+ .divider-y-1 {
40
+ &> * ~ * {
41
+ border-top-width: 1px !important;
42
+ }
43
+ }
44
+
45
+ .divider-y-2 > * ~ * {
46
+ border-top-width: 2px !important;
47
+ }
48
+
49
+ .divider-y-3 > * ~ * {
50
+ border-top-width: 3px !important;
51
+ }
52
+
53
+ .divider-x-1 {
54
+ &> * ~ * {
55
+ border-left-width: 1px !important;
56
+ }
57
+ }
58
+
59
+ .divider-x-2 > * ~ * {
60
+ border-left-width: 2px !important;
61
+ }
62
+
63
+ .divider-x-3 > * ~ * {
64
+ border-left-width: 3px !important;
65
+ }
66
+
67
+ // coloring
68
+
69
+ .divider-color {
70
+ // white
71
+ // black
72
+ each(@colors-text-map, {
73
+ &-@{key} > * ~ * {
74
+ border-color: @value !important;
75
+ }
76
+ })
77
+
78
+ // darkest
79
+ // darker
80
+ // dark
81
+ // gray
82
+ // light
83
+ // lighter
84
+ // lightest
85
+ each(@colors-gray-map, {
86
+ &-@{key} > * ~ * {
87
+ border-color: @value !important;
88
+ }
89
+ })
90
+ }
@@ -11,6 +11,7 @@
11
11
  @import (multiple) "padding.less";
12
12
  @import (multiple) "position.less";
13
13
  @import (multiple) "sizing.less";
14
+ @import (multiple) "spacing.less";
14
15
  @import (multiple) "text.less";
15
16
  }
16
17
 
@@ -26,16 +26,8 @@ each(@spacings-px, {
26
26
 
27
27
  // gap pct
28
28
  each(@spacings-pct, {
29
- // x & y
30
- // .gap-@{key}@{suffix} {
31
- // gap: @value !important;
32
- // }
33
29
  // x
34
30
  .column-gap-@{key}@{suffix} {
35
31
  column-gap: @value !important;
36
32
  }
37
- // y
38
- // .row-gap-@{key}@{suffix} {
39
- // row-gap: @value !important;
40
- // }
41
33
  })
@@ -0,0 +1,25 @@
1
+ // spacing px
2
+ each(@spacings-px, {
3
+ .space-x-@{key}@{suffix} > * ~ * {
4
+ margin-left: @value !important;
5
+ margin-right: 0 !important;
6
+ }
7
+
8
+ .space-y-@{key}@{suffix} > * ~ * {
9
+ margin-top: @value !important;
10
+ margin-bottom: 0 !important;
11
+ }
12
+ })
13
+
14
+ // nagative 1-3 px
15
+ each(@spacings--px, {
16
+ .space-x-@{key}@{suffix} > * ~ * {
17
+ margin-left: @value !important;
18
+ margin-right: 0 !important;
19
+ }
20
+
21
+ .space-y-@{key}@{suffix} > * ~ * {
22
+ margin-top: @value !important;
23
+ margin-bottom: 0 !important;
24
+ }
25
+ })
@@ -55,7 +55,6 @@ each(@colors-gray-map, {
55
55
  // map-marker-poi
56
56
  // map-marker-geofence
57
57
  // map-marker-route
58
- .color-map-marker-text { color: var(--color-map-marker-text) !important }
59
58
  each(@colors-map-marker-map, {
60
59
  .text-color-@{key},
61
60
  .hover-text-color-@{key}:hover {
@@ -63,6 +62,16 @@ each(@colors-map-marker-map, {
63
62
  }
64
63
  })
65
64
 
65
+ each(@colors-map-marker-night-map, {
66
+ .text-color-@{key},
67
+ .hover-text-color-@{key}:hover {
68
+ color: @value !important;
69
+ }
70
+ })
71
+
72
+ // .text-color-map-marker-text { color: var(--color-map-marker-text) !important }
73
+ // .text-color-map-marker-text-night { color: var(--color-map-marker-text-night) !important }
74
+
66
75
  // rating-1
67
76
  // rating-2
68
77
  // rating-3
@@ -173,9 +182,14 @@ h2, h3, h4, h5, h6, [class*='text-size-h'] {
173
182
 
174
183
  /* Text - Decoration */
175
184
  .text-decoration-none { text-decoration: none !important }
176
- .text-decoration-underline { text-decoration: underline !important }
177
185
  .text-decoration-line-through { text-decoration: line-through !important }
178
186
 
187
+ .text-decoration-underline { text-decoration: underline !important }
188
+ .text-decoration-underline-offset-2 { text-decoration: underline !important; text-underline-offset: 2px !important }
189
+ .text-decoration-underline-offset-3 { text-decoration: underline !important; text-underline-offset: 3px !important }
190
+ .text-decoration-underline-offset-4 { text-decoration: underline !important; text-underline-offset: 4px !important }
191
+ .text-decoration-underline-offset-5 { text-decoration: underline !important; text-underline-offset: 5px !important }
192
+
179
193
  .hover-text-decoration-underline:hover { text-decoration: underline !important }
180
194
  .hover-text-decoration-none:hover { text-decoration: none !important }
181
195
 
@@ -115,6 +115,7 @@
115
115
  // map-marker-geofence
116
116
  // map-marker-route
117
117
  @colors-map-marker-map: {
118
+ map-marker-text: var(--color-map-marker-text);
118
119
  map-marker-active: var(--color-map-marker-active);
119
120
  map-marker-asset: var(--color-map-marker-asset);
120
121
  map-marker-poi: var(--color-map-marker-poi);
@@ -122,6 +123,15 @@
122
123
  map-marker-route: var(--color-map-marker-route);
123
124
  }
124
125
 
126
+ @colors-map-marker-night-map: {
127
+ map-marker-text-night: var(--color-map-marker-text-night);
128
+ map-marker-active-night: var(--color-map-marker-active-night);
129
+ map-marker-asset-night: var(--color-map-marker-asset-night);
130
+ map-marker-poi-night: var(--color-map-marker-poi-night);
131
+ map-marker-geofence-night: var(--color-map-marker-geofence-night);
132
+ map-marker-route-night: var(--color-map-marker-route-night);
133
+ }
134
+
125
135
  // Color Map - Rating
126
136
  // rating-1
127
137
  // rating-2
@@ -1,5 +1,10 @@
1
1
  // These values must always be kept in sync with those of the demo page
2
2
  // uikit-demo/src/utils/spacings.js
3
+ @spacings--px: {
4
+ -1: -1px;
5
+ -2: -2px;
6
+ -3: -3px;
7
+ }
3
8
 
4
9
  @spacings-px: {
5
10
  1: 1px;
@@ -42,6 +42,8 @@
42
42
  @import (less) './design/aspect-ratio.less';
43
43
  @import (less) './design/colors.less';
44
44
  @import (less) './design/border.less';
45
+ @import (less) './design/blur.less';
46
+ @import (less) './design/divider.less';
45
47
  @import (less) './design/cursors.less';
46
48
  @import (less) './design/custom.less';
47
49
  @import (less) './design/ellipsis.less';
@@ -33,6 +33,12 @@
33
33
  "color-map-marker-geofence": "#5a4876",
34
34
  "color-map-marker-route": "#3690ae",
35
35
  "color-map-marker-text": "#ffffff",
36
+ "color-map-marker-active-night": "#ededed",
37
+ "color-map-marker-asset-night": "#6e757a",
38
+ "color-map-marker-poi-night": "#b23672",
39
+ "color-map-marker-geofence-night": "#79619f",
40
+ "color-map-marker-route-night": "#3b9fc1",
41
+ "color-map-marker-text-night": "#ededed",
36
42
  "color-rating-1": "#d90000",
37
43
  "color-rating-2": "#ff8e3c",
38
44
  "color-rating-3": "#f8c575",
@@ -33,6 +33,12 @@
33
33
  @color-map-marker-geofence-hsl: var(--color-map-marker-geofence-h), var(--color-map-marker-geofence-s), var(--color-map-marker-geofence-l);
34
34
  @color-map-marker-route-hsl: var(--color-map-marker-route-h), var(--color-map-marker-route-s), var(--color-map-marker-route-l);
35
35
  @color-map-marker-text-hsl: var(--color-map-marker-text-h), var(--color-map-marker-text-s), var(--color-map-marker-text-l);
36
+ @color-map-marker-active-night-hsl: var(--color-map-marker-active-night-h), var(--color-map-marker-active-night-s), var(--color-map-marker-active-night-l);
37
+ @color-map-marker-asset-night-hsl: var(--color-map-marker-asset-night-h), var(--color-map-marker-asset-night-s), var(--color-map-marker-asset-night-l);
38
+ @color-map-marker-poi-night-hsl: var(--color-map-marker-poi-night-h), var(--color-map-marker-poi-night-s), var(--color-map-marker-poi-night-l);
39
+ @color-map-marker-geofence-night-hsl: var(--color-map-marker-geofence-night-h), var(--color-map-marker-geofence-night-s), var(--color-map-marker-geofence-night-l);
40
+ @color-map-marker-route-night-hsl: var(--color-map-marker-route-night-h), var(--color-map-marker-route-night-s), var(--color-map-marker-route-night-l);
41
+ @color-map-marker-text-night-hsl: var(--color-map-marker-text-night-h), var(--color-map-marker-text-night-s), var(--color-map-marker-text-night-l);
36
42
  @color-highlight-darkest-hsl: var(--color-highlight-darkest-h), var(--color-highlight-darkest-s), var(--color-highlight-darkest-l);
37
43
  @color-highlight-darker-hsl: var(--color-highlight-darker-h), var(--color-highlight-darker-s), var(--color-highlight-darker-l);
38
44
  @color-highlight-dark-hsl: var(--color-highlight-dark-h), var(--color-highlight-dark-s), var(--color-highlight-dark-l);
@@ -48,6 +48,13 @@
48
48
  @dark-color-map-marker-route: @color-map-marker-route;
49
49
  @dark-color-map-marker-text: @color-map-marker-text;
50
50
 
51
+ @dark-color-map-marker-active-night: @color-map-marker-active-night;
52
+ @dark-color-map-marker-asset-night: @color-map-marker-asset-night;
53
+ @dark-color-map-marker-poi-night: @color-map-marker-poi-night;
54
+ @dark-color-map-marker-geofence-night: @color-map-marker-geofence-night;
55
+ @dark-color-map-marker-route-night: @color-map-marker-route-night;
56
+ @dark-color-map-marker-text-night: @color-map-marker-text-night;
57
+
51
58
  // Color - Rating // CURRENTLY NO DIFFERENCES TO THE LIGHT THEME
52
59
  @dark-color-rating-1: @color-rating-1;
53
60
  @dark-color-rating-2: @color-rating-2;
@@ -49,6 +49,13 @@
49
49
  // color-map-marker-route: @dark-color-map-marker-route;
50
50
  // color-map-marker-text: @dark-color-map-marker-text;
51
51
 
52
+ // color-map-marker-active-night: @dark-color-map-marker-active-night;
53
+ // color-map-marker-asset-night: @dark-color-map-marker-asset-night;
54
+ // color-map-marker-poi-night: @dark-color-map-marker-poi-night;
55
+ // color-map-marker-geofence-night: @dark-color-map-marker-geofence-night;
56
+ // color-map-marker-route-night: @dark-color-map-marker-route-night;
57
+ // color-map-marker-text-night: @dark-color-map-marker-text-night;
58
+
52
59
  // Color - Highlight
53
60
  color-highlight-darkest: @dark-color-highlight-darkest;
54
61
  color-highlight-darker: @dark-color-highlight-darker;
@@ -52,6 +52,13 @@
52
52
  @color-map-marker-route: #3690ae;
53
53
  @color-map-marker-text: #ffffff;
54
54
 
55
+ @color-map-marker-active-night: #ededed;
56
+ @color-map-marker-asset-night: #6e757a;
57
+ @color-map-marker-poi-night: #b23672;
58
+ @color-map-marker-geofence-night: #79619f;
59
+ @color-map-marker-route-night: #3b9fc1;
60
+ @color-map-marker-text-night: #ededed;
61
+
55
62
  // Color - Rating
56
63
  @color-rating-1: #d90000;
57
64
  @color-rating-2: #ff8e3c;
@@ -53,6 +53,13 @@
53
53
  color-map-marker-route: @color-map-marker-route;
54
54
  color-map-marker-text: @color-map-marker-text;
55
55
 
56
+ color-map-marker-active-night: @color-map-marker-active-night;
57
+ color-map-marker-asset-night: @color-map-marker-asset-night;
58
+ color-map-marker-poi-night: @color-map-marker-poi-night;
59
+ color-map-marker-geofence-night: @color-map-marker-geofence-night;
60
+ color-map-marker-route-night: @color-map-marker-route-night;
61
+ color-map-marker-text-night: @color-map-marker-text-night;
62
+
56
63
  // Color - Highlight
57
64
  color-highlight-darkest: @color-highlight-darkest;
58
65
  color-highlight-darker: @color-highlight-darker;
@@ -6,7 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports["default"] = exports.VolkswagenApplicationHeader = void 0;
9
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
12
  var _react = _interopRequireWildcard(require("react"));
11
13
  var _propTypes = _interopRequireDefault(require("prop-types"));
12
14
  var _isEmpty = _interopRequireDefault(require("lodash/fp/isEmpty"));
@@ -14,21 +16,26 @@ var _classnames = _interopRequireDefault(require("classnames"));
14
16
  var _ApplicationActionBar = require("../../../../components/applicationHeader/ApplicationActionBar");
15
17
  var _useResizeObserver3 = _interopRequireDefault(require("../../../../hooks/useResizeObserver"));
16
18
  var _modulePropTypes = _interopRequireDefault(require("./modulePropTypes"));
19
+ var _excluded = ["homeRoute", "className", "appNavigator", "appNavigatorClassName", "appMenuItems", "navItems", "actionBarItems"];
17
20
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
18
21
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
- var VolkswagenApplicationHeader = function VolkswagenApplicationHeader(props) {
22
+ var VolkswagenApplicationHeader = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
20
23
  var homeRoute = props.homeRoute,
21
24
  className = props.className,
22
25
  appNavigator = props.appNavigator,
23
26
  appNavigatorClassName = props.appNavigatorClassName,
24
27
  appMenuItems = props.appMenuItems,
25
28
  navItems = props.navItems,
26
- actionBarItems = props.actionBarItems;
29
+ actionBarItems = props.actionBarItems,
30
+ remainingProps = (0, _objectWithoutProperties2["default"])(props, _excluded);
27
31
  var actionBarRef = (0, _react.useRef)();
28
32
  var _useResizeObserver = (0, _useResizeObserver3["default"])(),
29
33
  _useResizeObserver2 = (0, _slicedToArray2["default"])(_useResizeObserver, 2),
30
34
  navRef = _useResizeObserver2[0],
31
35
  contentRect = _useResizeObserver2[1].contentRect;
36
+ (0, _react.useImperativeHandle)(ref, function () {
37
+ return navRef;
38
+ }, []);
32
39
 
33
40
  // const getContentRect = useCallback(key => contentRect && Math.round(contentRect[key]), [contentRect]);
34
41
  // const containerWidth = getContentRect('width') || 0;
@@ -37,9 +44,11 @@ var VolkswagenApplicationHeader = function VolkswagenApplicationHeader(props) {
37
44
  // const hasActionBarItems = !isEmpty(actionBarItems);
38
45
 
39
46
  var classNames = (0, _classnames["default"])('ApplicationHeader VolkswagenApplicationHeader', 'user-select-none', className && className);
40
- return /*#__PURE__*/_react["default"].createElement("nav", {
47
+ return /*#__PURE__*/_react["default"].createElement("nav", (0, _extends2["default"])({}, remainingProps, {
41
48
  className: classNames,
42
49
  ref: navRef
50
+ }), /*#__PURE__*/_react["default"].createElement("div", {
51
+ className: "width-100pct"
43
52
  }, /*#__PURE__*/_react["default"].createElement("div", {
44
53
  className: "brand"
45
54
  }, /*#__PURE__*/_react["default"].createElement("div", {
@@ -57,8 +66,8 @@ var VolkswagenApplicationHeader = function VolkswagenApplicationHeader(props) {
57
66
  })), /*#__PURE__*/_react["default"].createElement(_ApplicationActionBar.ApplicationActionBar, {
58
67
  nodeRef: actionBarRef,
59
68
  items: actionBarItems
60
- }));
61
- };
69
+ })));
70
+ });
62
71
  exports.VolkswagenApplicationHeader = VolkswagenApplicationHeader;
63
72
  var _default = VolkswagenApplicationHeader;
64
73
  exports["default"] = _default;