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

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 (241) hide show
  1. package/ColorScheme.d.ts +4 -0
  2. package/ColorScheme.js +2 -0
  3. package/Colors.js +1 -1
  4. package/TruckLayer.js +1 -1
  5. package/components/assetTree/Tree.js +1 -1
  6. package/components/charts/chartHelper.js +1 -1
  7. package/components/map/components/Map.js +147 -130
  8. package/components/map/components/constants.js +4 -1
  9. package/components/map/components/features/layers/RoadRestrictionLayer.js +26 -0
  10. package/components/map/components/features/layers/TrafficLayer.js +19 -6
  11. package/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +20 -0
  12. package/components/map/components/features/layers/baselayers/DefaultVectorLayer.js +14 -0
  13. package/components/map/components/features/layers/baselayers/FleetStyleLayer.js +13 -17
  14. package/components/map/components/features/layers/baselayers/SatelliteLayer.js +13 -17
  15. package/components/map/components/features/layers/baselayers/TerrainLayer.js +13 -17
  16. package/components/map/components/features/layers/baselayers/useBaseLayer.js +41 -0
  17. package/components/map/components/mapUtils.js +4 -1
  18. package/components/mapMarker/ClusterMapMarker.js +2 -2
  19. package/components/mapMarker/SingleMapMarker.js +2 -2
  20. package/components/sidebars/Sidebar.js +2 -2
  21. package/hooks/useHereMap.ts +23 -0
  22. package/hooks/useScripts.ts +52 -0
  23. package/hooks/useScrollPosition.js +72 -0
  24. package/index.js +4 -1
  25. package/lib/es/ColorScheme.d.ts +4 -0
  26. package/lib/es/ColorScheme.js +18 -0
  27. package/lib/es/Colors.js +1 -1
  28. package/lib/es/TruckLayer.js +2 -2
  29. package/lib/es/components/assetTree/Tree.js +1 -1
  30. package/lib/es/components/charts/chartHelper.js +1 -1
  31. package/lib/es/components/map/components/Map.js +145 -125
  32. package/lib/es/components/map/components/constants.js +3 -0
  33. package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.js +34 -0
  34. package/lib/es/components/map/components/features/layers/TrafficLayer.js +18 -6
  35. package/lib/es/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +26 -0
  36. package/lib/es/components/map/components/features/layers/baselayers/DefaultVectorLayer.js +21 -0
  37. package/lib/es/components/map/components/features/layers/baselayers/FleetStyleLayer.js +13 -18
  38. package/lib/es/components/map/components/features/layers/baselayers/SatelliteLayer.js +13 -18
  39. package/lib/es/components/map/components/features/layers/baselayers/TerrainLayer.js +13 -18
  40. package/lib/es/components/map/components/features/layers/baselayers/useBaseLayer.js +49 -0
  41. package/lib/es/components/map/components/mapUtils.js +6 -3
  42. package/lib/es/components/mapMarker/ClusterMapMarker.js +2 -2
  43. package/lib/es/components/mapMarker/SingleMapMarker.js +2 -2
  44. package/lib/es/components/sidebars/Sidebar.js +2 -2
  45. package/lib/es/hooks/useHereMap.ts +23 -0
  46. package/lib/es/hooks/useScripts.ts +52 -0
  47. package/lib/es/hooks/useScrollPosition.js +80 -0
  48. package/lib/es/index.js +24 -1
  49. package/lib/es/mapIndex.js +2 -2
  50. package/lib/es/styles/components/Activity.less +9 -10
  51. package/lib/es/styles/components/ApplicationHeader.less +24 -29
  52. package/lib/es/styles/components/ApplicationLayout.less +7 -7
  53. package/lib/es/styles/components/AssetTree.less +30 -28
  54. package/lib/es/styles/components/AutoSuggest.less +2 -2
  55. package/lib/es/styles/components/BottomSheet.less +1 -2
  56. package/lib/es/styles/components/Carousel.less +13 -9
  57. package/lib/es/styles/components/Checkbox.less +15 -16
  58. package/lib/es/styles/components/ClearableInput.less +3 -3
  59. package/lib/es/styles/components/Counter.less +12 -12
  60. package/lib/es/styles/components/DataTabs.less +2 -2
  61. package/lib/es/styles/components/DatePicker.less +27 -27
  62. package/lib/es/styles/components/Dialog.less +15 -11
  63. package/lib/es/styles/components/Dropdown.less +11 -11
  64. package/lib/es/styles/components/Expander.less +7 -7
  65. package/lib/es/styles/components/ListMenu.less +8 -8
  66. package/lib/es/styles/components/MapHere.less +3 -2
  67. package/lib/es/styles/components/MapMarker.less +16 -17
  68. package/lib/es/styles/components/MapSettings.less +5 -5
  69. package/lib/es/styles/components/NoData.less +1 -1
  70. package/lib/es/styles/components/Notification.less +12 -12
  71. package/lib/es/styles/components/RadioButton.less +11 -12
  72. package/lib/es/styles/components/Resizer.less +1 -1
  73. package/lib/es/styles/components/Select.less +16 -26
  74. package/lib/es/styles/components/Sidebar.less +29 -21
  75. package/lib/es/styles/components/Slider.less +18 -18
  76. package/lib/es/styles/components/Spinner.less +6 -6
  77. package/lib/es/styles/components/StatsWidget.less +5 -5
  78. package/lib/es/styles/components/SteppedProgressBar.less +32 -29
  79. package/lib/es/styles/components/SupportMarker.less +1 -1
  80. package/lib/es/styles/components/Switch.less +8 -8
  81. package/lib/es/styles/components/TableSettingsDialog.less +7 -7
  82. package/lib/es/styles/components/TableToolbar.less +1 -1
  83. package/lib/es/styles/components/Tag.less +10 -10
  84. package/lib/es/styles/components/Timeline.less +3 -3
  85. package/lib/es/styles/components/Tooltip.less +10 -10
  86. package/lib/es/styles/design/badges.less +10 -10
  87. package/lib/es/styles/design/border.less +1 -1
  88. package/lib/es/styles/design/breadcrumbs.less +2 -2
  89. package/lib/es/styles/design/button-groups.less +25 -1
  90. package/lib/es/styles/design/buttons.less +53 -109
  91. package/lib/es/styles/design/callouts.less +3 -3
  92. package/lib/es/styles/design/code.less +4 -6
  93. package/lib/es/styles/design/colors.less +20 -20
  94. package/lib/es/styles/design/form-input-groups.less +4 -4
  95. package/lib/es/styles/design/form-inputs.less +33 -31
  96. package/lib/es/styles/design/images.less +2 -2
  97. package/lib/es/styles/design/labels.less +11 -11
  98. package/lib/es/styles/design/list-group.less +14 -12
  99. package/lib/es/styles/design/navs.less +27 -27
  100. package/lib/es/styles/design/normalize.less +0 -9
  101. package/lib/es/styles/design/pagination.less +10 -10
  102. package/lib/es/styles/design/panels.less +10 -10
  103. package/lib/es/styles/design/popovers.less +8 -8
  104. package/lib/es/styles/design/progress-bars.less +8 -8
  105. package/lib/es/styles/design/shadows.less +14 -7
  106. package/lib/es/styles/design/tables.less +68 -106
  107. package/lib/es/styles/design/text.less +5 -19
  108. package/lib/es/styles/design/theme.less +10 -10
  109. package/lib/es/styles/design/thumbnails.less +2 -2
  110. package/lib/es/styles/design/type.less +4 -4
  111. package/lib/es/styles/design/wells.less +1 -1
  112. package/lib/es/styles/mapping/color-map.less +65 -64
  113. package/lib/es/styles/mixins/_imports.less +14 -0
  114. package/lib/es/styles/mixins/buttons.less +24 -56
  115. package/lib/es/styles/mixins/forms.less +19 -55
  116. package/lib/es/styles/mixins/hsl.less +19 -0
  117. package/lib/es/styles/mixins/panels.less +2 -2
  118. package/lib/es/styles/print/print.less +7 -7
  119. package/lib/es/styles/rio-uikit-core.less +2 -2
  120. package/lib/es/styles/rio-uikit-print-utilities.less +2 -2
  121. package/lib/es/styles/rio-uikit-responsive-utilities.less +2 -2
  122. package/lib/es/styles/variables/_index.less +196 -0
  123. package/lib/es/styles/variables/colors.json +67 -0
  124. package/lib/es/styles/variables/concated_css_variables.less +66 -0
  125. package/lib/es/styles/variables/dark_colors.less +88 -0
  126. package/lib/es/styles/variables/dark_css_variables.less +28 -0
  127. package/lib/es/styles/variables/dark_css_variables_map.less +96 -0
  128. package/lib/es/styles/variables/light_colors.less +92 -0
  129. package/lib/es/styles/variables/light_css_variables.less +17 -0
  130. package/lib/es/styles/variables/light_css_variables_map.less +100 -0
  131. package/lib/es/styles/variables/screens.less +7 -0
  132. package/lib/es/styles/variables/text.less +23 -0
  133. package/lib/es/themes/BuyButton/styles/rio-buyButton.less +13 -8
  134. package/lib/es/themes/MAN/styles/man-uikit.less +3 -0
  135. package/lib/es/themes/SCANIA/styles/scania-uikit.less +3 -0
  136. package/lib/es/themes/Volkswagen/styles/vw-uikit.less +21 -30
  137. package/lib/es/themes/Website/styles/rio-website.less +145 -120
  138. package/lib/es/themes/Xmas/styles/rio-xmas.less +59 -29
  139. package/lib/es/types.ts +6 -1
  140. package/lib/es/useScrollPosition.d.ts +4 -0
  141. package/lib/es/useScrollPosition.js +13 -0
  142. package/lib/es/utils/colorScheme.js +59 -0
  143. package/lib/es/utils/init.js +2 -0
  144. package/lib/es/version.json +1 -1
  145. package/mapIndex.js +1 -1
  146. package/package.json +4 -3
  147. package/styles/components/Activity.less +9 -10
  148. package/styles/components/ApplicationHeader.less +24 -29
  149. package/styles/components/ApplicationLayout.less +7 -7
  150. package/styles/components/AssetTree.less +30 -28
  151. package/styles/components/AutoSuggest.less +2 -2
  152. package/styles/components/BottomSheet.less +1 -2
  153. package/styles/components/Carousel.less +13 -9
  154. package/styles/components/Checkbox.less +15 -16
  155. package/styles/components/ClearableInput.less +3 -3
  156. package/styles/components/Counter.less +12 -12
  157. package/styles/components/DataTabs.less +2 -2
  158. package/styles/components/DatePicker.less +27 -27
  159. package/styles/components/Dialog.less +15 -11
  160. package/styles/components/Dropdown.less +11 -11
  161. package/styles/components/Expander.less +7 -7
  162. package/styles/components/ListMenu.less +8 -8
  163. package/styles/components/MapHere.less +3 -2
  164. package/styles/components/MapMarker.less +16 -17
  165. package/styles/components/MapSettings.less +5 -5
  166. package/styles/components/NoData.less +1 -1
  167. package/styles/components/Notification.less +12 -12
  168. package/styles/components/RadioButton.less +11 -12
  169. package/styles/components/Resizer.less +1 -1
  170. package/styles/components/Select.less +16 -26
  171. package/styles/components/Sidebar.less +29 -21
  172. package/styles/components/Slider.less +18 -18
  173. package/styles/components/Spinner.less +6 -6
  174. package/styles/components/StatsWidget.less +5 -5
  175. package/styles/components/SteppedProgressBar.less +32 -29
  176. package/styles/components/SupportMarker.less +1 -1
  177. package/styles/components/Switch.less +8 -8
  178. package/styles/components/TableSettingsDialog.less +7 -7
  179. package/styles/components/TableToolbar.less +1 -1
  180. package/styles/components/Tag.less +10 -10
  181. package/styles/components/Timeline.less +3 -3
  182. package/styles/components/Tooltip.less +10 -10
  183. package/styles/design/badges.less +10 -10
  184. package/styles/design/border.less +1 -1
  185. package/styles/design/breadcrumbs.less +2 -2
  186. package/styles/design/button-groups.less +25 -1
  187. package/styles/design/buttons.less +53 -109
  188. package/styles/design/callouts.less +3 -3
  189. package/styles/design/code.less +4 -6
  190. package/styles/design/colors.less +20 -20
  191. package/styles/design/form-input-groups.less +4 -4
  192. package/styles/design/form-inputs.less +33 -31
  193. package/styles/design/images.less +2 -2
  194. package/styles/design/labels.less +11 -11
  195. package/styles/design/list-group.less +14 -12
  196. package/styles/design/navs.less +27 -27
  197. package/styles/design/normalize.less +0 -9
  198. package/styles/design/pagination.less +10 -10
  199. package/styles/design/panels.less +10 -10
  200. package/styles/design/popovers.less +8 -8
  201. package/styles/design/progress-bars.less +8 -8
  202. package/styles/design/shadows.less +14 -7
  203. package/styles/design/tables.less +68 -106
  204. package/styles/design/text.less +5 -19
  205. package/styles/design/theme.less +10 -10
  206. package/styles/design/thumbnails.less +2 -2
  207. package/styles/design/type.less +4 -4
  208. package/styles/design/wells.less +1 -1
  209. package/styles/mapping/color-map.less +65 -64
  210. package/styles/mixins/_imports.less +14 -0
  211. package/styles/mixins/buttons.less +24 -56
  212. package/styles/mixins/forms.less +19 -55
  213. package/styles/mixins/hsl.less +19 -0
  214. package/styles/mixins/panels.less +2 -2
  215. package/styles/print/print.less +7 -7
  216. package/styles/rio-uikit-core.less +2 -2
  217. package/styles/rio-uikit-print-utilities.less +2 -2
  218. package/styles/rio-uikit-responsive-utilities.less +2 -2
  219. package/styles/variables/_index.less +196 -0
  220. package/styles/variables/colors.json +67 -0
  221. package/styles/variables/concated_css_variables.less +66 -0
  222. package/styles/variables/dark_colors.less +88 -0
  223. package/styles/variables/dark_css_variables.less +28 -0
  224. package/styles/variables/dark_css_variables_map.less +96 -0
  225. package/styles/variables/light_colors.less +92 -0
  226. package/styles/variables/light_css_variables.less +17 -0
  227. package/styles/variables/light_css_variables_map.less +100 -0
  228. package/styles/variables/screens.less +7 -0
  229. package/styles/variables/text.less +23 -0
  230. package/themes/BuyButton/styles/rio-buyButton.less +13 -8
  231. package/themes/MAN/styles/man-uikit.less +3 -0
  232. package/themes/SCANIA/styles/scania-uikit.less +3 -0
  233. package/themes/Volkswagen/styles/vw-uikit.less +21 -30
  234. package/themes/Website/styles/rio-website.less +145 -120
  235. package/themes/Xmas/styles/rio-xmas.less +59 -29
  236. package/types.ts +6 -1
  237. package/useScrollPosition.d.ts +4 -0
  238. package/useScrollPosition.js +2 -0
  239. package/utils/colorScheme.js +50 -0
  240. package/utils/init.js +2 -0
  241. package/version.json +1 -1
@@ -1,7 +1,7 @@
1
1
  // Pagination
2
- @pagination-color: @gray-dark;
3
- @pagination-active-bg: @gray-lighter;
4
- @pagination-active-color: @gray-dark;
2
+ @pagination-color: var(--gray-dark);
3
+ @pagination-active-bg: var(--gray-lighter);
4
+ @pagination-active-color: var(--gray-dark);
5
5
 
6
6
  .pagination {
7
7
  .reset-list();
@@ -60,16 +60,16 @@
60
60
  }
61
61
 
62
62
  &:empty {
63
- background: @color-highlight-decent;
63
+ background: var(--color-highlight-decent);
64
64
  border-radius: @border-radius-sm;
65
- border: 1px solid @color-highlight;
65
+ border: 1px solid var(--color-highlight);
66
66
  height: 10px;
67
67
  margin: 0 5px;
68
68
  width: 20px;
69
69
 
70
70
  &.active,
71
71
  &:hover {
72
- background: @color-highlight;
72
+ background: var(--color-highlight);
73
73
  }
74
74
  }
75
75
 
@@ -96,9 +96,9 @@
96
96
  }
97
97
 
98
98
  // Pager
99
- @pager-border: @gray-light;
100
- @pager-hover-bg: @gray-lighter;
101
- @pager-active-bg: @gray;
99
+ @pager-border: var(--gray-light);
100
+ @pager-hover-bg: var(--gray-lighter);
101
+ @pager-active-bg: var(--gray);
102
102
  @pager-active-color: @pagination-active-color;
103
103
 
104
104
  .pager {
@@ -153,7 +153,7 @@
153
153
  &,
154
154
  &:hover,
155
155
  &:focus {
156
- color: @gray-light;
156
+ color: var(--gray-light);
157
157
  cursor: not-allowed;
158
158
  }
159
159
  }
@@ -2,7 +2,7 @@
2
2
  @panel-y-padding: 10px;
3
3
 
4
4
  .panel {
5
- background-color: @color-white;
5
+ background-color: var(--color-white);
6
6
  border-radius: @border-radius-default;
7
7
  border: 1px solid transparent;
8
8
  margin-bottom: @grid-gutter-height;
@@ -13,15 +13,15 @@
13
13
 
14
14
  &.panel-default {
15
15
  &.active {
16
- background-color: @color-highlight-decent;
17
- border: 1px solid @brand-primary;
18
- box-shadow: inset 0 0 0 1px @brand-primary;
16
+ background-color: var(--color-highlight-decent);
17
+ border: 1px solid var(--brand-primary);
18
+ box-shadow: inset 0 0 0 1px var(--brand-primary);
19
19
 
20
20
  .panel-heading,
21
21
  .panel-footer {
22
- background-color: @color-highlight-decent;
23
- border-color: @brand-primary;
24
- box-shadow: inset 0 0 0 1px @brand-primary;
22
+ background-color: var(--color-highlight-decent);
23
+ border-color: var(--brand-primary);
24
+ box-shadow: inset 0 0 0 1px var(--brand-primary);
25
25
  }
26
26
  }
27
27
  }
@@ -66,7 +66,7 @@
66
66
  }
67
67
 
68
68
  // default
69
- .panel-variant(@color-white, @gray-light, @gray-darkest);
69
+ .panel-variant(var(--color-white), var(--gray-light), var(--gray-darkest));
70
70
 
71
71
  // primary
72
72
  // secondary
@@ -76,7 +76,7 @@
76
76
  // danger
77
77
  each(@colors-brand-and-status-map, {
78
78
  &.panel-@{key} {
79
- .panel-variant(@value, @value, @color-white);
79
+ .panel-variant(@value, @value, var(--color-white));
80
80
  }
81
81
  })
82
82
  }
@@ -86,7 +86,7 @@
86
86
  padding: @panel-x-padding;
87
87
 
88
88
  ~ .table {
89
- border-top: 1px solid @gray-light;
89
+ border-top: 1px solid var(--gray-light);
90
90
  margin-bottom: 0
91
91
  }
92
92
 
@@ -1,6 +1,6 @@
1
1
  @popover-max-width: 550px;
2
- @popover-color: @color-white;
3
- @popover-arrow-color: @color-white;
2
+ @popover-color: var(--color-white);
3
+ @popover-arrow-color: var(--color-white);
4
4
  @popover-arrow-width: 12px;
5
5
  @popover-arrow-outer-width: 11px;
6
6
 
@@ -9,14 +9,14 @@
9
9
  background-clip: padding-box;
10
10
  background-color: @popover-color;
11
11
  border-radius: @border-radius-lg;
12
- border: 1px solid @gray-light;
12
+ border: 1px solid var(--gray-light);
13
13
  max-width: @popover-max-width;
14
14
  padding: 0;
15
15
  position: absolute;
16
16
  z-index: @zindex-popover;
17
17
 
18
18
  .popover-title {
19
- border-bottom: 1px solid @gray-light;
19
+ border-bottom: 1px solid var(--gray-light);
20
20
  padding: 13px 14px;
21
21
  font-weight: normal;
22
22
  }
@@ -53,7 +53,7 @@
53
53
  > .arrow {
54
54
  left: 50%;
55
55
  border-bottom-width: 0;
56
- border-top-color: @gray-light;
56
+ border-top-color: var(--gray-light);
57
57
  bottom: -(@popover-arrow-outer-width);
58
58
 
59
59
  &:after {
@@ -71,7 +71,7 @@
71
71
  top: 50%;
72
72
  left: -(@popover-arrow-outer-width);
73
73
  border-left-width: 0;
74
- border-right-color: @gray-light;
74
+ border-right-color: var(--gray-light);
75
75
 
76
76
  &:after {
77
77
  content: "";
@@ -87,7 +87,7 @@
87
87
  > .arrow {
88
88
  left: 50%;
89
89
  border-top-width: 0;
90
- border-bottom-color: @gray-light;
90
+ border-bottom-color: var(--gray-light);
91
91
  top: -(@popover-arrow-outer-width);
92
92
 
93
93
  &:after {
@@ -105,7 +105,7 @@
105
105
  top: 50%;
106
106
  right: -(@popover-arrow-outer-width);
107
107
  border-right-width: 0;
108
- border-left-color: @gray-light;
108
+ border-left-color: var(--gray-light);
109
109
 
110
110
  &:after {
111
111
  content: "";
@@ -1,11 +1,11 @@
1
1
  .progress-divider {
2
2
  &:not(:last-child) {
3
- box-shadow: inset -2px 0 0 @color-white;
3
+ box-shadow: inset -2px 0 0 var(--color-white);
4
4
  }
5
5
 
6
6
  &:only-child {
7
7
  &:not([style*="width: 100%"]):not([style*="width: 99%"]):not([style*="width: 98%"]) {
8
- box-shadow: inset -2px 0 0 @color-white;
8
+ box-shadow: inset -2px 0 0 var(--color-white);
9
9
  }
10
10
  }
11
11
  }
@@ -18,13 +18,13 @@
18
18
  .progress {
19
19
  height: 10px;
20
20
  overflow: hidden;
21
- background-color: @gray-lighter;
21
+ background-color: var(--gray-lighter);
22
22
  border-radius: @border-radius-default;
23
23
  // margin-bottom: @grid-gutter-height;
24
24
 
25
25
  .progress-bar {
26
- background-color: @brand-primary;
27
- color: @color-white;
26
+ background-color: var(--brand-primary);
27
+ color: var(--color-white);
28
28
  float: left;
29
29
  font-size: @font-size-sm;
30
30
  height: 100%;
@@ -44,11 +44,11 @@
44
44
  // muted
45
45
  // white
46
46
  &.progress-bar-muted {
47
- background-color: @gray-lighter !important
47
+ background-color: var(--gray-lighter) !important
48
48
  }
49
49
 
50
50
  &.progress-bar-white {
51
- background-color: @color-white !important
51
+ background-color: var(--color-white) !important
52
52
  }
53
53
 
54
54
  // info
@@ -118,7 +118,7 @@
118
118
 
119
119
  .progress-striped .progress-bar, // backward compatibility
120
120
  .progress-bar-striped {
121
- @color: rgba(255,255,255,.15);
121
+ @color: .hsla(@color-white-hsl, 0.15)[@result];
122
122
  @angle: 45deg;
123
123
  background-size: 40px 40px;
124
124
  background-image: linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
@@ -1,19 +1,26 @@
1
- @smooth-shadow: rgba(0,0,0,.01);
2
- @hard-shadow: rgba(0,0,0,.03);
1
+ @smooth-shadow: .hsla(@always-color-black-hsl, 0.01)[@result];
2
+ @hard-shadow: .hsla(@always-color-black-hsl, 0.03)[@result];
3
+
4
+ @default-shadow-layer-1: 0 2px 1px -1px .hsla(@always-color-black-hsl, 0.1)[@result];
5
+ @default-shadow-layer-2: 0 1px 5px 0 .hsla(@always-color-black-hsl, 0.05)[@result];
6
+ @default-shadow-layer-3: 0 1px 10px 0 .hsla(@always-color-black-hsl, 0.05)[@result];
7
+
8
+ @default-accent-layer-1: 0 0 1px 0 .hsla(@always-color-black-hsl, 0.2)[@result];
9
+ @default-accent-layer-2: 0 2px 4px -1px .hsla(@always-color-black-hsl, 0.2)[@result];
3
10
 
4
11
  .shadow-none { box-shadow: none !important }
5
12
 
6
13
  .shadow-default {
7
14
  box-shadow:
8
- 0 2px 1px -1px rgba(196, 206, 214, 0.33),
9
- 0 1px 1px 0 rgba(181, 191, 199, 0.1),
10
- 0 1px 4px 0 rgba(119, 142, 160, 0.25) !important;
15
+ @default-shadow-layer-1,
16
+ @default-shadow-layer-2,
17
+ @default-shadow-layer-3 !important;
11
18
  }
12
19
 
13
20
  .shadow-accent {
14
21
  box-shadow:
15
- 0 0 1px 0 rgb(9 30 65 / 30%),
16
- 0 2px 4px -1px rgb(9 30 65 / 25%) !important;
22
+ @default-accent-layer-1,
23
+ @default-accent-layer-2 !important;
17
24
  }
18
25
 
19
26
  .shadow-smooth {
@@ -1,10 +1,5 @@
1
1
  @table-cell-padding: 12px;
2
2
  @table-condensed-cell-padding: 7px;
3
- @table-bg: @color-white;
4
- @table-bg-hover: @gray-light;
5
- @table-bg-active: @gray-light;
6
- @table-bg-highlight: @color-highlight-lightest;
7
- @table-border-color: @gray-lighter;
8
3
 
9
4
  .table {
10
5
  background-color: transparent;
@@ -33,7 +28,7 @@
33
28
 
34
29
  @media screen and (max-width: @screen-ls) {
35
30
  -ms-overflow-style: -ms-autohiding-scrollbar;
36
- border: 1px solid @table-border-color;
31
+ border: 1px solid var(--gray-lighter);
37
32
  overflow-y: hidden;
38
33
  width: 100%;
39
34
 
@@ -96,7 +91,7 @@
96
91
  // .table.table-head-filled
97
92
  &.table-head-filled {
98
93
  thead > tr th {
99
- background-color: @gray-lightest;
94
+ background-color: var(--gray-lightest);
100
95
 
101
96
  &.table-checkbox {
102
97
  z-index: 2;
@@ -143,24 +138,24 @@
143
138
  &:first-child {
144
139
  left: 0;
145
140
  z-index: 2;
146
- border-right: 4px solid @table-border-color;
141
+ border-right: 4px solid var(--gray-lighter);
147
142
  }
148
143
 
149
144
  &:last-child {
150
145
  right: 0;
151
146
  z-index: 2;
152
- border-left: 4px solid @table-border-color;
147
+ border-left: 4px solid var(--gray-lighter);
153
148
  }
154
149
  }
155
150
 
156
151
  tbody > tr {
157
152
  td {
158
153
  &:first-child {
159
- background-color: @color-white;
154
+ background-color: var(--color-white);
160
155
  left: 0;
161
156
  position: sticky;
162
157
  //z-index: 2;
163
- border-right: 4px solid @table-border-color;
158
+ border-right: 4px solid var(--gray-lighter);
164
159
  }
165
160
  }
166
161
  }
@@ -177,11 +172,11 @@
177
172
  tbody > tr {
178
173
  td {
179
174
  &:last-child {
180
- background-color: @color-white;
175
+ background-color: var(--color-white);
181
176
  right: 0;
182
177
  position: sticky;
183
178
  //z-index: 2;
184
- border-left: 4px solid @table-border-color;
179
+ border-left: 4px solid var(--gray-lighter);
185
180
  }
186
181
  }
187
182
  }
@@ -262,8 +257,8 @@
262
257
  background-color: transparent;
263
258
 
264
259
  > th {
265
- border-bottom: 2px solid @table-border-color;
266
- border-top: 1px solid @table-border-color;
260
+ border-bottom: 2px solid var(--gray-lighter);
261
+ border-top: 1px solid var(--gray-lighter);
267
262
  font-weight: @font-light;
268
263
  text-align: left;
269
264
  white-space: nowrap;
@@ -297,7 +292,7 @@
297
292
  }
298
293
 
299
294
  > tbody > tr {
300
- background-color: @table-bg;
295
+ background-color: var(--color-white);
301
296
  .table-state(info, @brand-info, false);
302
297
  .table-state(warning, @brand-warning, false);
303
298
  .table-state(success, @brand-success, false);
@@ -311,11 +306,11 @@
311
306
  }
312
307
 
313
308
  &:last-child {
314
- border-bottom: 1px solid @table-border-color;
309
+ border-bottom: 1px solid var(--gray-lighter);
315
310
  }
316
311
 
317
312
  td {
318
- border-top: 1px solid @table-border-color;
313
+ border-top: 1px solid var(--gray-lighter);
319
314
  vertical-align: middle;
320
315
 
321
316
  &:focus,
@@ -357,7 +352,7 @@
357
352
 
358
353
  &.active {
359
354
  td {
360
- .table-state(active, @brand-primary, false)
355
+ .table-state(active, var(--brand-primary), false)
361
356
  }
362
357
  }
363
358
 
@@ -380,11 +375,11 @@
380
375
  > thead > tr > th,
381
376
  > tbody > tr > td {
382
377
  border: none;
383
- border-top: 4px solid @table-border-color;
378
+ border-top: 4px solid var(--gray-lighter);
384
379
  }
385
380
 
386
381
  > tbody > tr:last-child {
387
- border-bottom: 4px solid @table-border-color;
382
+ border-bottom: 4px solid var(--gray-lighter);
388
383
  }
389
384
 
390
385
  > tbody > tr > td {
@@ -395,7 +390,7 @@
395
390
  // Zebra-striping
396
391
  &.table-striped {
397
392
  > tbody > tr:nth-of-type(odd) {
398
- background-color: darken(@table-bg, 2%);
393
+ background-color: .hslb(@color-white-hsl, '-', '2%')[@result];
399
394
  }
400
395
  }
401
396
 
@@ -408,15 +403,15 @@
408
403
  .table-state(danger, @brand-danger, true);
409
404
 
410
405
  &:hover {
411
- background-color: @table-bg;
406
+ background-color: var(--color-white);
412
407
 
413
408
  td:not([class*='bg-']) {
414
- box-shadow: inset 0 500px 0 0 @table-bg-highlight;
409
+ box-shadow: inset 0 500px 0 0 var(--color-highlight-lightest);
415
410
  }
416
411
  }
417
412
  &.active:hover {
418
413
  td {
419
- .table-state(active, @brand-primary, false)
414
+ .table-state(active, var(--brand-primary), false)
420
415
  }
421
416
  }
422
417
  }
@@ -432,7 +427,7 @@
432
427
  &.table-multi-cards {
433
428
  tbody {
434
429
  tr {
435
- border: 3px solid @gray-lighter;
430
+ border: 3px solid var(--gray-lighter);
436
431
  }
437
432
  }
438
433
  }
@@ -466,73 +461,40 @@
466
461
  text-align: left;
467
462
 
468
463
  .dropdown {
469
- &:not(.open) {
470
- .dropdown-toggle {
471
- padding: 0 6px;
472
- .button-variant(
473
- ~'!important';
474
- @btn-default-bg;
475
- @btn-default-border;
476
- @btn-default-color;
477
- @btn-default-color;
478
- @btn-default-color;
479
- @btn-default-color;
480
- darken(@btn-default-color, 17%);
481
- darken(@btn-default-border, 12%);
482
- darken(@btn-default-border, 12%);
483
- darken(@btn-default-border, 25%);
484
- darken(@btn-default-border, 25%);
485
- @btn-default-bg;
486
- @btn-default-bg;
487
- @btn-default-bg;
488
- @btn-default-bg;
489
- );
490
-
491
- &:focus,
492
- &:active {
493
- background-color: @color-white !important;
494
- border-color: @color-highlight !important;
495
-
496
- &:hover {
497
- .rioglyph {
498
- color: @color-highlight !important;
499
- }
500
- }
501
- }
464
+ .dropdown-toggle {
465
+ padding: 0 6px;
466
+
467
+ .button-style(
468
+ ~'!important';
469
+ var(--brand-primary);
470
+ @color-white-hsl;
471
+ @brand-primary-hsl;
472
+
473
+ var(--brand-primary);
474
+ .hslb(@brand-primary-hsl, '-', @btn-active-brightness)[@result];
475
+
476
+ var(--brand-primary);
477
+ .hslb(@brand-primary-hsl, '-', @btn-active-border-brightness)[@result];
478
+
479
+ var(--color-white);
480
+ var(--color-white);
481
+ );
482
+
483
+ &:focus,
484
+ &:active {
485
+ background-color: var(--color-white) !important;
486
+ border-color: var(--color-highlight) !important;
502
487
 
503
488
  &:hover {
504
489
  .rioglyph {
505
- color: @color-white !important;
490
+ color: var(--color-highlight) !important;
506
491
  }
507
492
  }
508
493
  }
509
- }
510
494
 
511
- &.open {
512
- .dropdown-toggle {
513
- .button-variant(
514
- ~'!important';
515
- @btn-default-bg;
516
- @btn-default-border;
517
- @btn-default-color;
518
- @btn-default-color;
519
- @btn-default-color;
520
- @btn-default-color;
521
- darken(@btn-default-color, 17%);
522
- darken(@btn-default-border, 12%);
523
- darken(@btn-default-border, 12%);
524
- darken(@btn-default-border, 25%);
525
- darken(@btn-default-border, 25%);
526
- @btn-default-bg;
527
- @btn-default-bg;
528
- @btn-default-bg;
529
- @btn-default-bg;
530
- );
531
-
532
- &:hover, &:active, &:focus {
533
- .rioglyph:before {
534
- color: @color-white !important;
535
- }
495
+ &:hover {
496
+ .rioglyph {
497
+ color: var(--color-white) !important;
536
498
  }
537
499
  }
538
500
  }
@@ -549,7 +511,7 @@
549
511
  margin: -(@cardsSpace * 0.5) - (@cardsSpace * 0.5) 0 - (@cardsSpace * 0.5);
550
512
 
551
513
  tr {
552
- border: 3px solid @color-white;
514
+ border: 3px solid var(--color-white);
553
515
  display: flex;
554
516
  flex-wrap: wrap;
555
517
  margin: @cardsSpace * 0.5;
@@ -574,7 +536,7 @@
574
536
  width: 100%;
575
537
 
576
538
  &:not([class*='table-']) {
577
- border-top: 1px solid @gray-lighter;
539
+ border-top: 1px solid var(--gray-lighter);
578
540
  width: 100%;
579
541
  }
580
542
 
@@ -614,7 +576,7 @@
614
576
 
615
577
  &[data-field]:not([data-field='']) {
616
578
  &:before {
617
- color: @gray;
579
+ color: var(--gray);
618
580
  content: attr(data-field) ':';
619
581
  float: left;
620
582
  margin-right: 10px;
@@ -651,12 +613,12 @@
651
613
  }
652
614
 
653
615
  &:not(.active):not(.table-card-placeholder) {
654
- background-color: @color-white !important;
616
+ background-color: var(--color-white) !important;
655
617
  }
656
618
 
657
619
  &.active {
658
- background: @table-bg-highlight !important;
659
- border-color: @brand-primary;
620
+ background: var(--color-highlight-lightest) !important;
621
+ border-color: var(--brand-primary);
660
622
 
661
623
  td {
662
624
  box-shadow: none !important;
@@ -669,15 +631,15 @@
669
631
  tbody {
670
632
  tr {
671
633
  &:hover {
672
- border-color: @table-bg-highlight;
634
+ border-color: var(--color-highlight-lightest);
673
635
 
674
636
  &.active {
675
- border-color: @brand-primary;
637
+ border-color: var(--brand-primary);
676
638
  }
677
639
 
678
640
  td {
679
- background: @table-bg-highlight;
680
- border-color: darken(@table-border-color, 8%);
641
+ background: var(--color-highlight-lightest);
642
+ border-color: .hslb(@gray-lighter-hsl, '-', '8%')[@result];
681
643
  }
682
644
  }
683
645
  }
@@ -767,19 +729,19 @@
767
729
  // grouped tr`s
768
730
  tr {
769
731
  &.compactRow {
770
- background-color: @color-white !important;
732
+ background-color: var(--color-white) !important;
771
733
  }
772
734
 
773
735
  &.extendedRow {
774
- background-color: darken(@table-bg, 2%) !important;
736
+ background-color: .hslb(@color-white-hsl, '-', '2%')[@result] !important;
775
737
 
776
738
  td {
777
- border-top: 2px solid @table-border-color !important;
739
+ border-top: 2px solid var(--gray-lighter) !important;
778
740
  }
779
741
 
780
742
  + .compactRow {
781
743
  td {
782
- border-top: 20px solid @table-border-color !important;
744
+ border-top: 20px solid var(--gray-lighter) !important;
783
745
  }
784
746
  }
785
747
  }
@@ -812,16 +774,16 @@
812
774
  .table-state(@state, @color, @hoverable) {
813
775
  & when (@state = active) {
814
776
  background-color: transparent;
815
- box-shadow: inset 0 2px 0 0 @color, inset 0 -2px 0 0 @color, inset 0 500px 0 0 @table-bg-highlight;
777
+ box-shadow: inset 0 2px 0 0 @color, inset 0 -2px 0 0 @color, inset 0 500px 0 0 var(--color-highlight-lightest);
816
778
 
817
779
  &:first-child {
818
780
  box-shadow: inset 0 2px 0 0 @color, inset 0 -2px 0 0 @color, inset 2px 0 0 0 @color,
819
- inset 0 500px 0 0 @table-bg-highlight;
781
+ inset 0 500px 0 0 var(--color-highlight-lightest);
820
782
  }
821
783
 
822
784
  &:last-child {
823
785
  box-shadow: inset 0 2px 0 0 @color, inset -2px 0 0 0 @color, inset 0 -2px 0 0 @color,
824
- inset 0 500px 0 0 @table-bg-highlight;
786
+ inset 0 500px 0 0 var(--color-highlight-lightest);
825
787
  }
826
788
  }
827
789
 
@@ -829,14 +791,14 @@
829
791
  &.@{state} {
830
792
  & when (@hoverable = true) {
831
793
  &:hover > td:first-child {
832
- box-shadow: inset 5px 0 0 0 @color, inset 0 500px 0 0 @table-bg-highlight;
794
+ box-shadow: inset 5px 0 0 0 @color, inset 0 500px 0 0 var(--color-highlight-lightest);
833
795
  }
834
796
  }
835
797
 
836
798
  &.active, &.active:hover {
837
799
  > td:first-child {
838
- box-shadow: inset 5px 0 0 0 @color, inset 0 2px 0 0 @brand-primary, inset 0 -2px 0 0 @brand-primary,
839
- inset 0 500px 0 0 @table-bg-highlight;
800
+ box-shadow: inset 5px 0 0 0 @color, inset 0 2px 0 0 var(--brand-primary), inset 0 -2px 0 0 var(--brand-primary),
801
+ inset 0 500px 0 0 var(--color-highlight-lightest);
840
802
  }
841
803
  }
842
804