@rio-cloud/rio-uikit 0.16.2-beta.3 → 0.16.2-beta.4
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.
- package/.DS_Store +0 -0
- package/components/.DS_Store +0 -0
- package/components/filepicker/FilePicker.js +5 -4
- package/components/map/.DS_Store +0 -0
- package/components/map/assets/icon_map_settings_maptype_night_active.svg +12 -0
- package/components/map/assets/icon_map_settings_maptype_night_inactive.svg +12 -0
- package/components/map/components/.DS_Store +0 -0
- package/components/map/components/Map.js +54 -44
- package/components/map/components/constants.js +2 -4
- package/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +4 -5
- package/components/map/components/features/layers/baselayers/DefaultVectorLayer.js +4 -3
- package/components/map/components/features/layers/baselayers/FleetStyleLayer.js +2 -2
- package/components/map/components/features/layers/baselayers/NightLayer.js +17 -0
- package/components/map/components/features/layers/baselayers/SatelliteLayer.js +2 -2
- package/components/map/components/features/layers/baselayers/TerrainLayer.js +2 -2
- package/components/map/components/features/layers/baselayers/useBaseLayer.js +27 -15
- package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +9 -3
- package/components/map/components/mapUtils.js +37 -7
- package/components/map/icons/MapIcon.js +64 -0
- package/components/mapMarker/SingleMapMarker.js +6 -0
- package/components/numberControl/NumberControl.js +34 -11
- package/components/numberInput/NumberInput.js +52 -50
- package/hooks/useDarkMode.js +29 -0
- package/hooks/useMutationObserver.js +29 -0
- package/lib/.DS_Store +0 -0
- package/lib/es/.DS_Store +0 -0
- package/lib/es/components/.DS_Store +0 -0
- package/lib/es/components/filepicker/FilePicker.js +5 -4
- package/lib/es/components/map/assets/icon_map_settings_maptype_night_active.svg +12 -0
- package/lib/es/components/map/assets/icon_map_settings_maptype_night_inactive.svg +12 -0
- package/lib/es/components/map/components/Map.js +53 -43
- package/lib/es/components/map/components/constants.js +3 -4
- package/lib/es/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +4 -5
- package/lib/es/components/map/components/features/layers/baselayers/DefaultVectorLayer.js +4 -3
- package/lib/es/components/map/components/features/layers/baselayers/FleetStyleLayer.js +2 -2
- package/lib/es/components/map/components/features/layers/baselayers/NightLayer.js +23 -0
- package/lib/es/components/map/components/features/layers/baselayers/SatelliteLayer.js +2 -2
- package/lib/es/components/map/components/features/layers/baselayers/TerrainLayer.js +2 -2
- package/lib/es/components/map/components/features/layers/baselayers/useBaseLayer.js +28 -16
- package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +7 -1
- package/lib/es/components/map/components/mapUtils.js +37 -7
- package/lib/es/components/map/icons/MapIcon.js +67 -1
- package/lib/es/components/mapMarker/SingleMapMarker.js +6 -0
- package/lib/es/components/numberControl/NumberControl.js +33 -10
- package/lib/es/components/numberInput/NumberInput.js +51 -50
- package/lib/es/hooks/useDarkMode.js +37 -0
- package/lib/es/hooks/useMutationObserver.js +35 -0
- package/lib/es/styles/.DS_Store +0 -0
- package/lib/es/styles/components/Dialog.less +1 -1
- package/lib/es/styles/mapping/color-map.less +11 -11
- package/lib/es/themes/.DS_Store +0 -0
- package/lib/es/themes/Website/styles/rio-website.less +10 -5
- package/lib/es/types.ts +8 -2
- package/lib/es/utils/colorScheme.js +12 -3
- package/lib/es/version.json +1 -1
- package/package.json +2 -2
- package/styles/.DS_Store +0 -0
- package/styles/components/Dialog.less +1 -1
- package/styles/mapping/color-map.less +11 -11
- package/themes/.DS_Store +0 -0
- package/themes/Volkswagen/.DS_Store +0 -0
- package/themes/Website/.DS_Store +0 -0
- package/themes/Website/styles/rio-website.less +10 -5
- package/types.ts +8 -2
- package/utils/colorScheme.js +7 -3
- package/version.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@import (less) '../../../styles/rio-uikit-core.less';
|
|
3
3
|
|
|
4
4
|
// Theme
|
|
5
|
-
|
|
5
|
+
@hasDarkmode: false;
|
|
6
6
|
|
|
7
7
|
// Utility Classes
|
|
8
8
|
@import (less) '../../../styles/design/responsive/_imports.less';
|
|
@@ -194,7 +194,6 @@ body .module-content {
|
|
|
194
194
|
|
|
195
195
|
.ApplicationHeader {
|
|
196
196
|
.navbar-brand {
|
|
197
|
-
//background-image: url('https://@{cdnBase}/svg/common/ico_rio.svg') !important;
|
|
198
197
|
background-size: cover;
|
|
199
198
|
}
|
|
200
199
|
|
|
@@ -1939,6 +1938,11 @@ blockquote {
|
|
|
1939
1938
|
}
|
|
1940
1939
|
}
|
|
1941
1940
|
|
|
1941
|
+
// Rounded Images
|
|
1942
|
+
.rounded-image .img-responsive {
|
|
1943
|
+
border-radius: 10px
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1942
1946
|
.anchor {
|
|
1943
1947
|
display: block;
|
|
1944
1948
|
position: absolute;
|
|
@@ -1962,7 +1966,6 @@ blockquote {
|
|
|
1962
1966
|
}
|
|
1963
1967
|
|
|
1964
1968
|
.ApplicationLayoutBody {
|
|
1965
|
-
|
|
1966
1969
|
@media (min-width: @screen-ls) {
|
|
1967
1970
|
.module-content {
|
|
1968
1971
|
display: flex;
|
|
@@ -2096,12 +2099,13 @@ blockquote {
|
|
|
2096
2099
|
}
|
|
2097
2100
|
}
|
|
2098
2101
|
|
|
2102
|
+
// Button Hover
|
|
2099
2103
|
[class*="btn-"]:hover {
|
|
2100
2104
|
transform: none !important;
|
|
2101
2105
|
box-shadow: none !important;
|
|
2102
2106
|
}
|
|
2103
2107
|
|
|
2104
|
-
//
|
|
2108
|
+
// Cookie Disclaimer
|
|
2105
2109
|
#cookieDisclaimer > .position-absolute {
|
|
2106
2110
|
position: fixed !important;
|
|
2107
2111
|
|
|
@@ -2172,6 +2176,7 @@ form[id*="contactForm"] {
|
|
|
2172
2176
|
}
|
|
2173
2177
|
}
|
|
2174
2178
|
|
|
2179
|
+
// Tables
|
|
2175
2180
|
body:not(.legal-documents) {
|
|
2176
2181
|
.table-responsive {
|
|
2177
2182
|
@media (min-width: @screen-ls) {
|
|
@@ -2222,7 +2227,7 @@ body:not(.legal-documents) {
|
|
|
2222
2227
|
}
|
|
2223
2228
|
}
|
|
2224
2229
|
|
|
2225
|
-
//
|
|
2230
|
+
// Section Clippig
|
|
2226
2231
|
.section-wrapper {
|
|
2227
2232
|
&[class*="clip-"]:after {
|
|
2228
2233
|
content: "";
|
package/types.ts
CHANGED
|
@@ -674,7 +674,9 @@ export interface FilePickerProps {
|
|
|
674
674
|
maxSize?: number; // max file size
|
|
675
675
|
onPick: (files: FileList | null) => void;
|
|
676
676
|
className?: string;
|
|
677
|
-
accept?:
|
|
677
|
+
accept?: {
|
|
678
|
+
[mimeType: string]: string[];
|
|
679
|
+
};
|
|
678
680
|
children?: ({ isDragActive }: FilePickerRenderProps) => any;
|
|
679
681
|
}
|
|
680
682
|
|
|
@@ -1087,6 +1089,9 @@ export interface NumberControlProps {
|
|
|
1087
1089
|
className?: string;
|
|
1088
1090
|
unit?: string | React.ReactNode;
|
|
1089
1091
|
inputAddon?: string;
|
|
1092
|
+
digitPrecision?: number;
|
|
1093
|
+
placeholder?: string;
|
|
1094
|
+
ref?: React.MutableRefObject<object>;
|
|
1090
1095
|
}
|
|
1091
1096
|
|
|
1092
1097
|
export interface NumberInputProps {
|
|
@@ -1094,13 +1099,14 @@ export interface NumberInputProps {
|
|
|
1094
1099
|
max?: number;
|
|
1095
1100
|
value?: number;
|
|
1096
1101
|
step?: number;
|
|
1097
|
-
type?: string;
|
|
1098
1102
|
disabled?: boolean;
|
|
1099
1103
|
onValueChanged?: (value: number) => void;
|
|
1100
1104
|
bsSize?: 'sm' | 'lg';
|
|
1101
1105
|
className?: string;
|
|
1102
1106
|
unit?: string | React.ReactNode;
|
|
1103
1107
|
inputAddon?: string;
|
|
1108
|
+
placeholder?: string;
|
|
1109
|
+
ref?: React.MutableRefObject<object>;
|
|
1104
1110
|
}
|
|
1105
1111
|
|
|
1106
1112
|
// O --------------------------------------------------------------------------------------------------
|
package/utils/colorScheme.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
var COOKIE_NAME = 'uikit-color-scheme';
|
|
3
|
-
var THEME_DATA_ATTRIBUTE = 'data-theme';
|
|
3
|
+
export var THEME_DATA_ATTRIBUTE = 'data-theme';
|
|
4
4
|
var PATH = '/';
|
|
5
5
|
var DOMAIN = '.rio.cloud';
|
|
6
6
|
var EXPIRATION_DATE = 'Thu, 18 Dec 2030 12:00:00 UTC';
|
|
7
|
+
export var THEME_DEFAULT = 'default';
|
|
8
|
+
export var THEME_SYSTEM = 'system';
|
|
9
|
+
export var THEME_LIGHT = 'light';
|
|
10
|
+
export var THEME_DARK = 'dark';
|
|
7
11
|
export var getColorScheme = function getColorScheme() {
|
|
8
12
|
return readColorSchemeFromCookie();
|
|
9
13
|
};
|
|
@@ -29,11 +33,11 @@ var readColorSchemeFromCookie = function readColorSchemeFromCookie() {
|
|
|
29
33
|
return;
|
|
30
34
|
}
|
|
31
35
|
var html = document.documentElement;
|
|
32
|
-
if (colorScheme ===
|
|
36
|
+
if (colorScheme === THEME_DEFAULT || colorScheme === THEME_SYSTEM) {
|
|
33
37
|
html.removeAttribute(THEME_DATA_ATTRIBUTE);
|
|
34
38
|
return colorScheme;
|
|
35
39
|
}
|
|
36
|
-
if (colorScheme ===
|
|
40
|
+
if (colorScheme === THEME_LIGHT || colorScheme === THEME_DARK) {
|
|
37
41
|
html.setAttribute(THEME_DATA_ATTRIBUTE, colorScheme);
|
|
38
42
|
return colorScheme;
|
|
39
43
|
}
|
package/version.json
CHANGED