@rio-cloud/rio-uikit 0.16.1 → 0.16.2-beta.11

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 (306) hide show
  1. package/.DS_Store +0 -0
  2. package/ColorScheme.d.ts +4 -0
  3. package/ColorScheme.js +2 -0
  4. package/Colors.js +1 -1
  5. package/TruckLayer.js +1 -1
  6. package/components/.DS_Store +0 -0
  7. package/components/applicationHeader/AppMenu.js +6 -3
  8. package/components/applicationHeader/AppMenuDropdown.js +6 -2
  9. package/components/applicationHeader/ApplicationHeader.js +10 -5
  10. package/components/applicationHeader/MobileAppMenu.js +8 -4
  11. package/components/assetTree/Tree.js +1 -1
  12. package/components/autosuggest/AutoSuggest.js +2 -2
  13. package/components/charts/chartHelper.js +1 -1
  14. package/components/clearableInput/ClearableInput.js +2 -1
  15. package/components/datepicker/DatePicker.js +8 -4
  16. package/components/filepicker/FilePicker.js +5 -4
  17. package/components/map/.DS_Store +0 -0
  18. package/components/map/assets/icon_map_settings_maptype_night_active.svg +12 -0
  19. package/components/map/assets/icon_map_settings_maptype_night_inactive.svg +12 -0
  20. package/components/map/components/.DS_Store +0 -0
  21. package/components/map/components/Map.js +167 -140
  22. package/components/map/components/constants.js +1 -0
  23. package/components/map/components/features/Route.js +6 -7
  24. package/components/map/components/features/basics/Polyline.js +10 -5
  25. package/components/map/components/features/layers/RoadRestrictionLayer.js +27 -0
  26. package/components/map/components/features/layers/TrafficLayer.js +19 -5
  27. package/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +19 -0
  28. package/components/map/components/features/layers/baselayers/DefaultVectorLayer.js +15 -0
  29. package/components/map/components/features/layers/baselayers/FleetStyleLayer.js +13 -17
  30. package/components/map/components/features/layers/baselayers/NightLayer.js +17 -0
  31. package/components/map/components/features/layers/baselayers/SatelliteLayer.js +13 -17
  32. package/components/map/components/features/layers/baselayers/TerrainLayer.js +13 -17
  33. package/components/map/components/features/layers/baselayers/useBaseLayer.js +53 -0
  34. package/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +1 -1
  35. package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +9 -3
  36. package/components/map/components/mapUtils.js +44 -8
  37. package/components/map/icons/MapIcon.js +64 -0
  38. package/components/mapMarker/ClusterMapMarker.js +2 -2
  39. package/components/mapMarker/SingleMapMarker.js +8 -2
  40. package/components/numberControl/NumberControl.js +43 -14
  41. package/components/numberInput/NumberInput.js +75 -55
  42. package/components/sidebars/Sidebar.js +2 -2
  43. package/hooks/useDarkMode.js +30 -0
  44. package/hooks/useElementSize.js +1 -1
  45. package/hooks/useFullscreen.js +37 -41
  46. package/hooks/useHereMap.ts +23 -0
  47. package/hooks/useMutationObserver.js +38 -0
  48. package/hooks/useScripts.ts +52 -0
  49. package/hooks/useScrollPosition.js +72 -0
  50. package/index.js +6 -1
  51. package/lib/.DS_Store +0 -0
  52. package/lib/es/.DS_Store +0 -0
  53. package/lib/es/ColorScheme.d.ts +4 -0
  54. package/lib/es/ColorScheme.js +18 -0
  55. package/lib/es/Colors.js +1 -1
  56. package/lib/es/TruckLayer.js +2 -2
  57. package/lib/es/components/.DS_Store +0 -0
  58. package/lib/es/components/applicationHeader/AppMenu.js +6 -3
  59. package/lib/es/components/applicationHeader/AppMenuDropdown.js +6 -2
  60. package/lib/es/components/applicationHeader/ApplicationHeader.js +10 -5
  61. package/lib/es/components/applicationHeader/MobileAppMenu.js +8 -4
  62. package/lib/es/components/assetTree/Tree.js +1 -1
  63. package/lib/es/components/autosuggest/AutoSuggest.js +2 -2
  64. package/lib/es/components/charts/chartHelper.js +1 -1
  65. package/lib/es/components/clearableInput/ClearableInput.js +2 -1
  66. package/lib/es/components/datepicker/DatePicker.js +7 -3
  67. package/lib/es/components/filepicker/FilePicker.js +5 -4
  68. package/lib/es/components/map/assets/icon_map_settings_maptype_night_active.svg +12 -0
  69. package/lib/es/components/map/assets/icon_map_settings_maptype_night_inactive.svg +12 -0
  70. package/lib/es/components/map/components/Map.js +165 -135
  71. package/lib/es/components/map/components/constants.js +3 -1
  72. package/lib/es/components/map/components/features/Route.js +6 -7
  73. package/lib/es/components/map/components/features/basics/Polyline.js +10 -7
  74. package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.js +35 -0
  75. package/lib/es/components/map/components/features/layers/TrafficLayer.js +18 -5
  76. package/lib/es/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +25 -0
  77. package/lib/es/components/map/components/features/layers/baselayers/DefaultVectorLayer.js +22 -0
  78. package/lib/es/components/map/components/features/layers/baselayers/FleetStyleLayer.js +12 -17
  79. package/lib/es/components/map/components/features/layers/baselayers/NightLayer.js +23 -0
  80. package/lib/es/components/map/components/features/layers/baselayers/SatelliteLayer.js +12 -17
  81. package/lib/es/components/map/components/features/layers/baselayers/TerrainLayer.js +12 -17
  82. package/lib/es/components/map/components/features/layers/baselayers/useBaseLayer.js +61 -0
  83. package/lib/es/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +1 -1
  84. package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +7 -1
  85. package/lib/es/components/map/components/mapUtils.js +44 -10
  86. package/lib/es/components/map/icons/MapIcon.js +67 -1
  87. package/lib/es/components/mapMarker/ClusterMapMarker.js +2 -2
  88. package/lib/es/components/mapMarker/SingleMapMarker.js +8 -2
  89. package/lib/es/components/numberControl/NumberControl.js +42 -13
  90. package/lib/es/components/numberInput/NumberInput.js +75 -55
  91. package/lib/es/components/sidebars/Sidebar.js +2 -2
  92. package/lib/es/hooks/useDarkMode.js +38 -0
  93. package/lib/es/hooks/useElementSize.js +1 -1
  94. package/lib/es/hooks/useFullscreen.js +37 -41
  95. package/lib/es/hooks/useHereMap.ts +23 -0
  96. package/lib/es/hooks/useMutationObserver.js +46 -0
  97. package/lib/es/hooks/useScripts.ts +52 -0
  98. package/lib/es/hooks/useScrollPosition.js +80 -0
  99. package/lib/es/index.js +40 -1
  100. package/lib/es/mapIndex.js +2 -2
  101. package/lib/es/styles/.DS_Store +0 -0
  102. package/lib/es/styles/components/Activity.less +9 -10
  103. package/lib/es/styles/components/ApplicationHeader.less +24 -29
  104. package/lib/es/styles/components/ApplicationLayout.less +7 -7
  105. package/lib/es/styles/components/AssetTree.less +30 -28
  106. package/lib/es/styles/components/AutoSuggest.less +2 -2
  107. package/lib/es/styles/components/BottomSheet.less +1 -2
  108. package/lib/es/styles/components/Carousel.less +13 -9
  109. package/lib/es/styles/components/Checkbox.less +15 -16
  110. package/lib/es/styles/components/ClearableInput.less +3 -3
  111. package/lib/es/styles/components/Counter.less +12 -12
  112. package/lib/es/styles/components/DataTabs.less +2 -2
  113. package/lib/es/styles/components/DatePicker.less +27 -27
  114. package/lib/es/styles/components/Dialog.less +15 -11
  115. package/lib/es/styles/components/Dropdown.less +11 -11
  116. package/lib/es/styles/components/Expander.less +7 -7
  117. package/lib/es/styles/components/ListMenu.less +8 -8
  118. package/lib/es/styles/components/MapHere.less +3 -2
  119. package/lib/es/styles/components/MapMarker.less +16 -17
  120. package/lib/es/styles/components/MapSettings.less +5 -5
  121. package/lib/es/styles/components/NoData.less +1 -1
  122. package/lib/es/styles/components/Notification.less +12 -12
  123. package/lib/es/styles/components/RadioButton.less +11 -12
  124. package/lib/es/styles/components/Resizer.less +1 -1
  125. package/lib/es/styles/components/Select.less +16 -26
  126. package/lib/es/styles/components/Sidebar.less +29 -21
  127. package/lib/es/styles/components/Slider.less +18 -18
  128. package/lib/es/styles/components/Spinner.less +6 -6
  129. package/lib/es/styles/components/StatsWidget.less +5 -5
  130. package/lib/es/styles/components/SteppedProgressBar.less +32 -29
  131. package/lib/es/styles/components/SupportMarker.less +1 -1
  132. package/lib/es/styles/components/Switch.less +8 -8
  133. package/lib/es/styles/components/TableSettingsDialog.less +7 -7
  134. package/lib/es/styles/components/TableToolbar.less +1 -1
  135. package/lib/es/styles/components/Tag.less +10 -10
  136. package/lib/es/styles/components/Timeline.less +3 -3
  137. package/lib/es/styles/components/Tooltip.less +10 -10
  138. package/lib/es/styles/design/badges.less +10 -10
  139. package/lib/es/styles/design/border.less +1 -1
  140. package/lib/es/styles/design/breadcrumbs.less +2 -2
  141. package/lib/es/styles/design/button-groups.less +25 -1
  142. package/lib/es/styles/design/buttons.less +53 -109
  143. package/lib/es/styles/design/callouts.less +3 -3
  144. package/lib/es/styles/design/code.less +4 -6
  145. package/lib/es/styles/design/colors.less +20 -20
  146. package/lib/es/styles/design/form-input-groups.less +4 -4
  147. package/lib/es/styles/design/form-inputs.less +33 -31
  148. package/lib/es/styles/design/images.less +2 -2
  149. package/lib/es/styles/design/labels.less +11 -11
  150. package/lib/es/styles/design/list-group.less +14 -12
  151. package/lib/es/styles/design/navs.less +27 -27
  152. package/lib/es/styles/design/normalize.less +0 -9
  153. package/lib/es/styles/design/pagination.less +10 -10
  154. package/lib/es/styles/design/panels.less +10 -10
  155. package/lib/es/styles/design/popovers.less +8 -8
  156. package/lib/es/styles/design/progress-bars.less +8 -8
  157. package/lib/es/styles/design/shadows.less +14 -7
  158. package/lib/es/styles/design/tables.less +68 -106
  159. package/lib/es/styles/design/text.less +5 -19
  160. package/lib/es/styles/design/theme.less +10 -10
  161. package/lib/es/styles/design/thumbnails.less +2 -2
  162. package/lib/es/styles/design/type.less +4 -4
  163. package/lib/es/styles/design/wells.less +1 -1
  164. package/lib/es/styles/mapping/color-map.less +76 -75
  165. package/lib/es/styles/mixins/_imports.less +14 -0
  166. package/lib/es/styles/mixins/buttons.less +24 -56
  167. package/lib/es/styles/mixins/forms.less +19 -55
  168. package/lib/es/styles/mixins/hsl.less +19 -0
  169. package/lib/es/styles/mixins/panels.less +2 -2
  170. package/lib/es/styles/print/print.less +7 -7
  171. package/lib/es/styles/rio-uikit-core.less +2 -2
  172. package/lib/es/styles/rio-uikit-print-utilities.less +2 -2
  173. package/lib/es/styles/rio-uikit-responsive-utilities.less +2 -2
  174. package/lib/es/styles/variables/_index.less +196 -0
  175. package/lib/es/styles/variables/colors.json +67 -0
  176. package/lib/es/styles/variables/concated_css_variables.less +66 -0
  177. package/lib/es/styles/variables/dark_colors.less +88 -0
  178. package/lib/es/styles/variables/dark_css_variables.less +28 -0
  179. package/lib/es/styles/variables/dark_css_variables_map.less +96 -0
  180. package/lib/es/styles/variables/light_colors.less +92 -0
  181. package/lib/es/styles/variables/light_css_variables.less +17 -0
  182. package/lib/es/styles/variables/light_css_variables_map.less +100 -0
  183. package/lib/es/styles/variables/screens.less +7 -0
  184. package/lib/es/styles/variables/text.less +23 -0
  185. package/lib/es/themes/.DS_Store +0 -0
  186. package/lib/es/themes/BuyButton/styles/rio-buyButton.less +13 -8
  187. package/lib/es/themes/MAN/styles/man-uikit.less +3 -0
  188. package/lib/es/themes/SCANIA/styles/scania-uikit.less +3 -0
  189. package/lib/es/themes/Volkswagen/styles/vw-uikit.less +21 -30
  190. package/lib/es/themes/Website/styles/rio-website.less +154 -124
  191. package/lib/es/themes/Xmas/styles/rio-xmas.less +59 -29
  192. package/lib/es/types.ts +30 -5
  193. package/lib/es/useDarkMode.d.ts +4 -0
  194. package/lib/es/useDarkMode.js +13 -0
  195. package/lib/es/useMutationObserver.d.ts +4 -0
  196. package/lib/es/useMutationObserver.js +13 -0
  197. package/lib/es/useScrollPosition.d.ts +4 -0
  198. package/lib/es/useScrollPosition.js +13 -0
  199. package/lib/es/utils/colorScheme.js +69 -0
  200. package/lib/es/utils/init.js +34 -34
  201. package/lib/es/version.json +1 -1
  202. package/mapIndex.js +1 -1
  203. package/package.json +34 -33
  204. package/styles/.DS_Store +0 -0
  205. package/styles/components/Activity.less +9 -10
  206. package/styles/components/ApplicationHeader.less +24 -29
  207. package/styles/components/ApplicationLayout.less +7 -7
  208. package/styles/components/AssetTree.less +30 -28
  209. package/styles/components/AutoSuggest.less +2 -2
  210. package/styles/components/BottomSheet.less +1 -2
  211. package/styles/components/Carousel.less +13 -9
  212. package/styles/components/Checkbox.less +15 -16
  213. package/styles/components/ClearableInput.less +3 -3
  214. package/styles/components/Counter.less +12 -12
  215. package/styles/components/DataTabs.less +2 -2
  216. package/styles/components/DatePicker.less +27 -27
  217. package/styles/components/Dialog.less +15 -11
  218. package/styles/components/Dropdown.less +11 -11
  219. package/styles/components/Expander.less +7 -7
  220. package/styles/components/ListMenu.less +8 -8
  221. package/styles/components/MapHere.less +3 -2
  222. package/styles/components/MapMarker.less +16 -17
  223. package/styles/components/MapSettings.less +5 -5
  224. package/styles/components/NoData.less +1 -1
  225. package/styles/components/Notification.less +12 -12
  226. package/styles/components/RadioButton.less +11 -12
  227. package/styles/components/Resizer.less +1 -1
  228. package/styles/components/Select.less +16 -26
  229. package/styles/components/Sidebar.less +29 -21
  230. package/styles/components/Slider.less +18 -18
  231. package/styles/components/Spinner.less +6 -6
  232. package/styles/components/StatsWidget.less +5 -5
  233. package/styles/components/SteppedProgressBar.less +32 -29
  234. package/styles/components/SupportMarker.less +1 -1
  235. package/styles/components/Switch.less +8 -8
  236. package/styles/components/TableSettingsDialog.less +7 -7
  237. package/styles/components/TableToolbar.less +1 -1
  238. package/styles/components/Tag.less +10 -10
  239. package/styles/components/Timeline.less +3 -3
  240. package/styles/components/Tooltip.less +10 -10
  241. package/styles/design/badges.less +10 -10
  242. package/styles/design/border.less +1 -1
  243. package/styles/design/breadcrumbs.less +2 -2
  244. package/styles/design/button-groups.less +25 -1
  245. package/styles/design/buttons.less +53 -109
  246. package/styles/design/callouts.less +3 -3
  247. package/styles/design/code.less +4 -6
  248. package/styles/design/colors.less +20 -20
  249. package/styles/design/form-input-groups.less +4 -4
  250. package/styles/design/form-inputs.less +33 -31
  251. package/styles/design/images.less +2 -2
  252. package/styles/design/labels.less +11 -11
  253. package/styles/design/list-group.less +14 -12
  254. package/styles/design/navs.less +27 -27
  255. package/styles/design/normalize.less +0 -9
  256. package/styles/design/pagination.less +10 -10
  257. package/styles/design/panels.less +10 -10
  258. package/styles/design/popovers.less +8 -8
  259. package/styles/design/progress-bars.less +8 -8
  260. package/styles/design/shadows.less +14 -7
  261. package/styles/design/tables.less +68 -106
  262. package/styles/design/text.less +5 -19
  263. package/styles/design/theme.less +10 -10
  264. package/styles/design/thumbnails.less +2 -2
  265. package/styles/design/type.less +4 -4
  266. package/styles/design/wells.less +1 -1
  267. package/styles/mapping/color-map.less +76 -75
  268. package/styles/mixins/_imports.less +14 -0
  269. package/styles/mixins/buttons.less +24 -56
  270. package/styles/mixins/forms.less +19 -55
  271. package/styles/mixins/hsl.less +19 -0
  272. package/styles/mixins/panels.less +2 -2
  273. package/styles/print/print.less +7 -7
  274. package/styles/rio-uikit-core.less +2 -2
  275. package/styles/rio-uikit-print-utilities.less +2 -2
  276. package/styles/rio-uikit-responsive-utilities.less +2 -2
  277. package/styles/variables/_index.less +196 -0
  278. package/styles/variables/colors.json +67 -0
  279. package/styles/variables/concated_css_variables.less +66 -0
  280. package/styles/variables/dark_colors.less +88 -0
  281. package/styles/variables/dark_css_variables.less +28 -0
  282. package/styles/variables/dark_css_variables_map.less +96 -0
  283. package/styles/variables/light_colors.less +92 -0
  284. package/styles/variables/light_css_variables.less +17 -0
  285. package/styles/variables/light_css_variables_map.less +100 -0
  286. package/styles/variables/screens.less +7 -0
  287. package/styles/variables/text.less +23 -0
  288. package/themes/.DS_Store +0 -0
  289. package/themes/BuyButton/styles/rio-buyButton.less +13 -8
  290. package/themes/MAN/styles/man-uikit.less +3 -0
  291. package/themes/SCANIA/styles/scania-uikit.less +3 -0
  292. package/themes/Volkswagen/.DS_Store +0 -0
  293. package/themes/Volkswagen/styles/vw-uikit.less +21 -30
  294. package/themes/Website/.DS_Store +0 -0
  295. package/themes/Website/styles/rio-website.less +154 -124
  296. package/themes/Xmas/styles/rio-xmas.less +59 -29
  297. package/types.ts +30 -5
  298. package/useDarkMode.d.ts +4 -0
  299. package/useDarkMode.js +2 -0
  300. package/useMutationObserver.d.ts +4 -0
  301. package/useMutationObserver.js +2 -0
  302. package/useScrollPosition.d.ts +4 -0
  303. package/useScrollPosition.js +2 -0
  304. package/utils/colorScheme.js +55 -0
  305. package/utils/init.js +34 -34
  306. package/version.json +1 -1
@@ -8,7 +8,7 @@
8
8
 
9
9
  li {
10
10
  width: 100%;
11
- color: @gray-darkest;
11
+ color: var(--color-black);
12
12
 
13
13
  &.ListMenuHeader {
14
14
  display: block;
@@ -23,12 +23,12 @@
23
23
  }
24
24
 
25
25
  a {
26
- color: @gray-darkest;
26
+ color: var(--color-black);
27
27
 
28
28
  &:hover,
29
29
  &.active {
30
30
  text-decoration: none;
31
- color: @brand-primary;
31
+ color: var(--brand-primary);
32
32
  }
33
33
  }
34
34
  }
@@ -41,7 +41,7 @@
41
41
 
42
42
  > span,
43
43
  a {
44
- border-left: 2px solid @gray-light;
44
+ border-left: 2px solid var(--gray-light);
45
45
  display: block;
46
46
  font-weight: normal;
47
47
  margin: 0 0 0 10px;
@@ -52,7 +52,7 @@
52
52
  &.disabled {
53
53
  > span,
54
54
  a {
55
- color: @gray-light;
55
+ color: var(--gray-light);
56
56
  cursor: not-allowed;
57
57
  }
58
58
  }
@@ -60,14 +60,14 @@
60
60
  &:not(.disabled) {
61
61
  > span,
62
62
  a {
63
- color: @gray-darker;
63
+ color: var(--gray-darker);
64
64
  cursor: pointer;
65
65
 
66
66
  &:hover,
67
67
  &.active {
68
- border-left-color: @brand-primary;
68
+ border-left-color: var(--brand-primary);
69
69
  border-width: 3px;
70
- color: @brand-primary;
70
+ color: var(--brand-primary);
71
71
  }
72
72
  }
73
73
  }
@@ -40,7 +40,7 @@
40
40
  margin-bottom: 0;
41
41
  min-height: 24px; // in case there is a spinner as label
42
42
  padding: 7px 10px;
43
- color: @gray-darkest;
43
+ color: var(--gray-darkest);
44
44
 
45
45
  &.disabled {
46
46
  opacity: 0.5;
@@ -67,7 +67,7 @@
67
67
  }
68
68
 
69
69
  .H_context_menu_item_separator {
70
- background: @gray-lighter;
70
+ background: var(--gray-lighter);
71
71
  border: none;
72
72
  height: 1px;
73
73
  padding-bottom: 0;
@@ -80,6 +80,7 @@
80
80
  >div:first-child {
81
81
  >div {
82
82
  z-index: auto !important;
83
+ pointer-events: none;
83
84
  }
84
85
 
85
86
  >canvas {
@@ -1,13 +1,12 @@
1
- @clusterSize: 40px;
2
- @singleSize: 60px;
1
+ @animationDuration: 0.25s ease;
3
2
  @bubbleSize: @singleSize * 0.4;
3
+ @clusterSize: 40px;
4
4
  @iconSize: @bubbleSize * 1.25;
5
+ @nameMaxWidth: 200px;
5
6
  @positionSize: ceil(@bubbleSize * 0.3);
6
7
  @positionTriangleSize: @iconSize * 0.2;
7
- @animationDuration: 0.25s ease;
8
- @shadowStyle: 0 0 5px rgba(0, 0, 0, 0.5);
9
-
10
- @nameMaxWidth: 200px;
8
+ @shadowStyle: 0 0 5px .hsla(@always-color-black-hsl, 0.5)[@result];
9
+ @singleSize: 60px;
11
10
 
12
11
  .rio-map-name {
13
12
  font-size: @bubbleSize * 0.6;
@@ -23,7 +22,7 @@
23
22
 
24
23
  .rio-map-bubble {
25
24
  border-radius: @border-radius-round;
26
- color: @color-white;
25
+ color: var(--color-map-marker-text);
27
26
  text-align: center;
28
27
 
29
28
  &.exception {
@@ -87,7 +86,7 @@
87
86
  border-width: 1px;
88
87
  cursor: pointer;
89
88
  display: block;
90
- filter: drop-shadow(0 0 1px rgba(0,0,0,.2));
89
+ filter: drop-shadow(0 0 1px .hsla(@always-color-black-hsl, 0.2)[@result]);
91
90
  font-size: @clusterSize * 0.36;
92
91
  font-weight: 500;
93
92
  height: @clusterSize;
@@ -139,7 +138,7 @@
139
138
  border-width: 1px;
140
139
  cursor: pointer;
141
140
  display: flex;
142
- filter: drop-shadow(0 0 1px rgba(0,0,0,.2));
141
+ filter: drop-shadow(0 0 1px .hsla(@always-color-black-hsl, 0.2)[@result]);
143
142
  pointer-events: initial;
144
143
  position: relative;
145
144
  transition: background-color @animationDuration, filter @animationDuration, margin-bottom @animationDuration;
@@ -207,7 +206,7 @@
207
206
 
208
207
  .rio-map-direction {
209
208
  border-radius: @border-radius-round;
210
- background-color: lighten(@color-map-marker-asset, 5%);
209
+ background-color: .hslb(@color-map-marker-asset-hsl, '+', '5%')[@result];
211
210
  background-image: url(~'data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2250%22%20height%3D%2250%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20fill-rule%3D%22nonzero%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22transparent%22%20d%3D%22M0%200h50v50H0z%22%2F%3E%3Cpath%20d%3D%22M25%2012L12%2036s6.5-5%2013-5%2013%205%2013%205L25%2012z%22%20fill%3D%22%23FFF%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E');
212
211
  background-repeat: no-repeat;
213
212
  background-size: @iconSize;
@@ -227,7 +226,7 @@
227
226
  }
228
227
 
229
228
  .rio-map-position-arrow {
230
- background-color: @color-white;
229
+ background-color: var(--color-map-marker-text);
231
230
  bottom: (@iconSize * 0.5) - (@positionTriangleSize * 0.45);
232
231
  color: transparent;
233
232
  height: @positionTriangleSize;
@@ -240,7 +239,7 @@
240
239
  }
241
240
 
242
241
  .rio-map-position {
243
- background-color: @color-white;
242
+ background-color: var(--color-map-marker-text);
244
243
  border-radius: @border-radius-round;
245
244
  border-style: solid;
246
245
  border-width: ceil(@positionSize * 0.3);
@@ -300,8 +299,8 @@
300
299
  }
301
300
 
302
301
  #rio-map-context-menu {
303
- background-color: @color-map-marker-asset;
304
- border: 1px solid @color-map-marker-asset;
302
+ background-color: var(--color-map-marker-asset);
303
+ border: 1px solid var(--color-map-marker-asset);
305
304
  box-shadow: @shadowStyle;
306
305
  display: none;
307
306
  position: absolute;
@@ -317,7 +316,7 @@
317
316
  padding: 0;
318
317
 
319
318
  > li {
320
- color: @color-white;
319
+ color: var(--color-white);
321
320
  display: flex;
322
321
  padding: 0 @bubbleSize * 0.4;
323
322
 
@@ -326,12 +325,12 @@
326
325
 
327
326
  &:hover,
328
327
  &.hover {
329
- background-color: darken(@color-map-marker-asset, 5%);
328
+ background-color: .hslb(@color-map-marker-asset-hsl, '-', '5%')[@result];
330
329
  }
331
330
  }
332
331
 
333
332
  &:not(:last-child) {
334
- border-bottom: 1px solid darken(@color-map-marker-asset, 5%);
333
+ border-bottom: 1px solid .hslb(@color-map-marker-asset-hsl, '-', '5%')[@result];
335
334
  margin-bottom: 0;
336
335
  }
337
336
 
@@ -7,7 +7,7 @@
7
7
 
8
8
  .MapSettingsTile {
9
9
  &:extend(.shadow-smooth);
10
- background: @color-white;
10
+ background: var(--color-white);
11
11
  cursor: pointer;
12
12
  padding: 3px;
13
13
  }
@@ -57,21 +57,21 @@
57
57
  }
58
58
 
59
59
  .MapSettingsButton {
60
- background: @color-white;
60
+ background: var(--color-white);
61
61
  cursor: pointer;
62
62
  padding: 5px;
63
63
  }
64
64
 
65
65
  .MapSettingsPanel {
66
66
  &:extend(.shadow-smooth);
67
- background: @color-white;
67
+ background: var(--color-white);
68
68
  display: flex;
69
69
  flex-direction: column;
70
70
  margin-bottom: 10px;
71
71
  padding: 5px;
72
72
 
73
73
  .MapSettingsItem {
74
- background: @color-white;
74
+ background: var(--color-white);
75
75
  cursor: pointer;
76
76
  }
77
77
  }
@@ -127,7 +127,7 @@
127
127
 
128
128
  .MapSettingsPanel {
129
129
  &:extend(.shadow-smooth);
130
- background: @color-white;
130
+ background: var(--color-white);
131
131
  display: flex;
132
132
  margin-bottom: 10px;
133
133
 
@@ -2,7 +2,7 @@
2
2
  display: flex;
3
3
  align-items: center;
4
4
  font-size: 12px;
5
- color: @gray-lighter;
5
+ color: var(--gray-lighter);
6
6
  white-space: nowrap;
7
7
  text-transform: uppercase;
8
8
  }
@@ -6,8 +6,8 @@
6
6
 
7
7
  .notification {
8
8
  &:extend(.shadow-smooth);
9
- background-color: @color-white;
10
- color: @color-white;
9
+ background-color: var(--color-white);
10
+ color: var(--always-color-white);
11
11
  cursor: pointer;
12
12
  font-size: 14px;
13
13
  line-height: 16px;
@@ -39,7 +39,7 @@
39
39
 
40
40
  .title {
41
41
  font-size: 16px;
42
- color: @color-white;
42
+ color: var(--always-color-white);
43
43
  font-weight: @font-medium;
44
44
  margin: 0 0 5px 0;
45
45
  }
@@ -60,7 +60,7 @@
60
60
  }
61
61
 
62
62
  .notification-close {
63
- color: @color-white;
63
+ color: var(--color-white);
64
64
  padding: 4px;
65
65
  position: absolute;
66
66
  text-decoration: none;
@@ -68,10 +68,10 @@
68
68
  }
69
69
 
70
70
  &.notification-info {
71
- border-bottom-color: darken(@brand-info, 5%);
71
+ border-bottom-color: .hslb(@brand-info-hsl, '-', '5%')[@result];
72
72
 
73
73
  .notification-message {
74
- background-color: fade(@brand-info, 80%);
74
+ background-color: .hsla(@brand-info-hsl, 0.8)[@result];
75
75
 
76
76
  &:before {
77
77
  content: @rioglyph-info-sign;
@@ -81,10 +81,10 @@
81
81
  }
82
82
 
83
83
  &.notification-success {
84
- border-bottom-color: darken(@brand-success, 5%);
84
+ border-bottom-color: .hslb(@brand-success-hsl, '-', '5%')[@result];
85
85
 
86
86
  .notification-message {
87
- background-color: fade(@brand-success, 80%);
87
+ background-color: .hsla(@brand-success-hsl, 0.8)[@result];
88
88
 
89
89
  &:before {
90
90
  content: @rioglyph-ok;
@@ -94,10 +94,10 @@
94
94
  }
95
95
 
96
96
  &.notification-warning {
97
- border-bottom-color: darken(@brand-warning, 5%);
97
+ border-bottom-color: .hslb(@brand-warning-hsl, '-', '5%')[@result];
98
98
 
99
99
  .notification-message {
100
- background-color: fade(@brand-warning, 80%);
100
+ background-color: .hsla(@brand-warning-hsl, 0.8)[@result];
101
101
 
102
102
  &:before {
103
103
  content: @rioglyph-exclamation-sign;
@@ -107,10 +107,10 @@
107
107
  }
108
108
 
109
109
  &.notification-error {
110
- border-bottom-color: darken(@brand-danger, 5%);
110
+ border-bottom-color: .hslb(@brand-danger-hsl, '-', '5%')[@result];
111
111
 
112
112
  .notification-message {
113
- background-color: fade(@brand-danger, 80%);
113
+ background-color: .hsla(@brand-danger-hsl, 0.8)[@result];
114
114
 
115
115
  &:before {
116
116
  content: @rioglyph-error-sign;
@@ -1,9 +1,8 @@
1
1
  @dim-radio-size-default: 14px;
2
- @color-disabled-inverted: darken(@gray-darker, 20%);
3
2
  @input-margin: 7px;
4
3
 
5
4
  .radio {
6
- color: @gray-darkest;
5
+ color: var(--gray-darkest);
7
6
  font-size: @font-size-default;
8
7
  margin-bottom: 0;
9
8
  margin-top: 0;
@@ -38,7 +37,7 @@
38
37
  + .radio-text-wrapper > .radio-text {
39
38
  &:before,
40
39
  &:after {
41
- border-color: @gray-darker;
40
+ border-color: var(--gray-darker);
42
41
  }
43
42
  }
44
43
 
@@ -46,7 +45,7 @@
46
45
  + .radio-text {
47
46
  &:before,
48
47
  &:after {
49
- box-shadow: inset 0px 0px 0px 1px @gray-darker;
48
+ box-shadow: inset 0px 0px 0px 1px var(--gray-darker);
50
49
  }
51
50
  }
52
51
  }
@@ -63,9 +62,9 @@
63
62
  &:before,
64
63
  &:after {
65
64
  -webkit-font-smoothing: antialiased;
66
- background-color: @color-white;
65
+ background-color: var(--color-white);
67
66
  border-radius: 50%;
68
- border: 1px solid @gray;
67
+ border: 1px solid var(--gray);
69
68
  display: inline-block;
70
69
  font-style: normal;
71
70
  font-weight: @font-normal;
@@ -104,12 +103,12 @@
104
103
  }
105
104
 
106
105
  .rioglyph {
107
- color: @gray;
106
+ color: var(--gray);
108
107
  display: block;
109
108
  }
110
109
 
111
110
  .radio-label {
112
- color: @gray-darker;
111
+ color: var(--gray-darker);
113
112
  }
114
113
  }
115
114
 
@@ -133,7 +132,7 @@
133
132
  &:before,
134
133
  &:after {
135
134
  animation: radio-tick 100ms ease-in;
136
- border-color: @brand-primary;
135
+ border-color: var(--brand-primary);
137
136
  border-width: 4px;
138
137
  }
139
138
  }
@@ -141,20 +140,20 @@
141
140
  + .radio-icon {
142
141
  .rioglyph {
143
142
  animation: radio-tick 100ms ease-in;
144
- color: @brand-primary;
143
+ color: var(--brand-primary);
145
144
  }
146
145
  }
147
146
  }
148
147
 
149
148
  // Define style for 'diabled' state
150
149
  &:disabled + .radio-text {
151
- //color: @gray-light;
150
+ //color: var(--gray-light);
152
151
  opacity: 0.5;
153
152
  cursor: not-allowed;
154
153
 
155
154
  &:before,
156
155
  &:after {
157
- border-color: @gray-light;
156
+ border-color: var(--gray-light);
158
157
  }
159
158
  }
160
159
  }
@@ -6,7 +6,7 @@
6
6
  transition: background-color 0.1s ease-in-out;
7
7
 
8
8
  &:hover {
9
- background-color: rgba(167, 175, 187, 0.2);
9
+ background-color: var(--gray-dark);
10
10
  }
11
11
 
12
12
  &.resize-horizontal {
@@ -6,7 +6,7 @@
6
6
  }
7
7
 
8
8
  .placeholder {
9
- color: @gray;
9
+ color: var(--gray);
10
10
  }
11
11
 
12
12
  .dropdown-toggle {
@@ -21,7 +21,7 @@
21
21
  background: @input-bg-disabled;
22
22
 
23
23
  .caret {
24
- color: @gray;
24
+ color: var(--gray);
25
25
  }
26
26
 
27
27
  > .selected-option-list {
@@ -33,18 +33,18 @@
33
33
 
34
34
  .selected-option {
35
35
  .selected-label {
36
- background-color: @gray-light;
37
- border-color: @gray-light;
38
- color: @gray-lightest !important;
36
+ background-color: var(--gray-light);
37
+ border-color: var(--gray-light);
38
+ color: var(--gray-lightest) !important;
39
39
  }
40
40
 
41
41
  .rioglyph {
42
- color: @gray-lightest !important;
42
+ color: var(--gray-lightest) !important;
43
43
  }
44
44
 
45
45
  .removeIcon {
46
- background-color: darken(@gray-light, 3%);
47
- color: @gray-lighter;
46
+ background-color: .hslb(@gray-light-hsl, '-', '3%')[@result];
47
+ color: var(--gray-lighter);
48
48
  }
49
49
  }
50
50
  }
@@ -68,23 +68,13 @@
68
68
  white-space: nowrap;
69
69
  width: 100%;
70
70
 
71
- // &:after {
72
- // content: "";
73
- // position: absolute;
74
- // top: 0;
75
- // right: 0;
76
- // width: 8px;
77
- // height: 100%;
78
- // background-image: linear-gradient(90deg, rgba(255,255,255,0), @input-bg);
79
- // }
80
-
81
71
  > .selected-option {
82
72
  border-radius: @border-radius-sm;
83
- color: @color-white !important;
73
+ color: var(--color-white) !important;
84
74
  display: flex;
85
75
 
86
76
  .rioglyph {
87
- color: @color-white !important;
77
+ color: var(--color-white) !important;
88
78
  }
89
79
 
90
80
  > .selected-label {
@@ -97,7 +87,7 @@
97
87
 
98
88
  > .removeIcon {
99
89
  align-items: center;
100
- background-color: lighten(@brand-primary, 3%);
90
+ background-color: .hslb(@brand-primary-hsl, '+', '3%')[@result];
101
91
  border-bottom-right-radius: @border-radius-sm;
102
92
  border-top-right-radius: @border-radius-sm;
103
93
  display: flex;
@@ -130,13 +120,13 @@
130
120
  width: calc(~"100% - 30px");
131
121
 
132
122
  &-active {
133
- background-color: @color-white;
123
+ background-color: var(--color-white);
134
124
  }
135
125
  }
136
126
 
137
127
  > .clearButton {
138
128
  align-items: center;
139
- color: @gray;
129
+ color: var(--gray);
140
130
  cursor: pointer;
141
131
  display: flex;
142
132
  height: 100%;
@@ -176,7 +166,7 @@
176
166
  > li {
177
167
  > a.focus {
178
168
  text-decoration: none;
179
- color: @color-white;
169
+ color: var(--color-white);
180
170
  background-color: @brand-primary;
181
171
  }
182
172
 
@@ -209,7 +199,7 @@
209
199
 
210
200
  .inactiveIcon {
211
201
  .rioglyph, span {
212
- color: @gray-light!important;
202
+ color: var(--gray-light)!important;
213
203
  }
214
204
  }
215
205
  }
@@ -280,7 +270,7 @@ select {
280
270
  background: transparent;
281
271
 
282
272
  &-active {
283
- background-color: @color-white;
273
+ background-color: var(--color-white);
284
274
  }
285
275
  }
286
276
  .multiselect-filter-input-placeholder {
@@ -1,9 +1,7 @@
1
- @sidebar-shadow-color: rgba(0, 0, 0, 0.10);
2
-
3
1
  .Sidebar {
4
2
  position: relative;
5
3
  height: 100%;
6
- background-color: @color-white;
4
+ background-color: var(--color-white);
7
5
  max-width: 100vw;
8
6
 
9
7
  &Content {
@@ -23,10 +21,11 @@
23
21
  position: relative;
24
22
 
25
23
  &.show-border {
26
- border-bottom: 1px solid @gray-light;
24
+ border-bottom: 1px solid var(--gray-light);
27
25
  }
28
26
 
29
27
  .SidebarTitle {
28
+ color: var(--color-black);
30
29
  flex: 1 1 auto;
31
30
  }
32
31
 
@@ -47,7 +46,7 @@
47
46
  }
48
47
 
49
48
  &-spacer {
50
- background-color: @gray-lighter;
49
+ background-color: var(--gray-lighter);
51
50
  height: 14px;
52
51
  width: 1.5px;
53
52
  margin: 0 5px;
@@ -72,21 +71,25 @@
72
71
  }
73
72
 
74
73
  &Footer {
75
- background: @color-white;
76
- border-top: 1px solid @gray-lighter;
74
+ background: var(--color-white);
75
+ border-top: 1px solid var(--gray-lighter);
77
76
  padding: 10px;
78
77
  position: relative;
79
78
  text-align: right;
80
79
 
81
80
  &:before {
82
- background: linear-gradient(0deg, rgba(255,255,255,1), rgba(255,255,255,0));
83
- content: "";
84
- height: 20px;
85
- left: 0;
86
- pointer-events: none;
87
- position: absolute;
88
- top: -21px;
89
- width: 100%;
81
+ content: "";
82
+ height: 20px;
83
+ left: 0;
84
+ pointer-events: none;
85
+ position: absolute;
86
+ top: -21px;
87
+ width: 100%;
88
+ background: linear-gradient(
89
+ 0deg,
90
+ .hsla(@color-white-hsl, 1.0)[@result],
91
+ .hsla(@color-white-hsl, 0)[@result],
92
+ );
90
93
  }
91
94
  }
92
95
 
@@ -104,13 +107,12 @@
104
107
  position: absolute;
105
108
  height: 100%;
106
109
  width: 0px;
107
- border: 1px dashed @gray-darkest;
110
+ border: 1px dashed var(--gray-darkest);
108
111
  opacity: 0.2;
109
112
  pointer-events: none;
110
113
  }
111
114
 
112
115
  &.fluid {
113
-
114
116
  // shadow layering order
115
117
  &:not(.closed) {
116
118
  position: relative;
@@ -126,12 +128,12 @@
126
128
  .ApplicationLayoutSidebar:not(.right) & {
127
129
  float: left;
128
130
  left: 0;
129
- box-shadow: 1px 0 0 0 @gray-light;
131
+ box-shadow: 1px 0 0 0 var(--gray-light);
130
132
  }
131
133
 
132
134
  .ApplicationLayoutSidebar.right & {
133
135
  float: right;
134
- box-shadow: -1px 0 0 0 @gray-light;
136
+ box-shadow: -1px 0 0 0 var(--gray-light);
135
137
  }
136
138
 
137
139
  }
@@ -141,12 +143,12 @@
141
143
  top: 0;
142
144
 
143
145
  .ApplicationLayoutSidebar:not(.right) & {
144
- box-shadow: 5px 5px 5px 0 @sidebar-shadow-color;
146
+ box-shadow: 5px 5px 5px 0 .hsla(@always-color-black-hsl, 0.1)[@result];
145
147
  left: 0;
146
148
  }
147
149
 
148
150
  .ApplicationLayoutSidebar.right & {
149
- box-shadow: -5px 5px 5px 0 @sidebar-shadow-color;
151
+ box-shadow: -5px 5px 5px 0 .hsla(@always-color-black-hsl, 0.1)[@result];
150
152
  right: 0;
151
153
  }
152
154
  }
@@ -155,3 +157,9 @@
155
157
  display: none;
156
158
  }
157
159
  }
160
+
161
+ .SidebarBackdrop {
162
+ &.sidebar-backdrop-bg {
163
+ background: .hsla(@always-color-black-hsl, 0.6)[@result];
164
+ }
165
+ }