@rio-cloud/rio-uikit 0.16.1-beta-7 → 0.16.1-beta-10
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/lib/.DS_Store +0 -0
- package/lib/components/.DS_Store +0 -0
- package/lib/components/applicationHeader/AppMenu.js +3 -2
- package/lib/components/applicationHeader/AppMenuDropdown.js +7 -5
- package/lib/components/applicationHeader/ApplicationHeader.js +84 -162
- package/lib/components/applicationHeader/MobileAppMenu.js +77 -0
- package/lib/components/applicationHeader/MobileHeaderModal.js +90 -0
- package/lib/components/applicationHeader/MobileSubmoduleNavigation.js +89 -0
- package/lib/components/applicationHeader/NavItems.js +167 -274
- package/lib/components/applicationLayout/ApplicationLayoutBody.js +1 -3
- package/lib/components/applicationLayout/SubNavigation.js +60 -0
- package/lib/components/assetTree/AssetTree.js +4 -7
- package/lib/components/assetTree/Tree.js +46 -54
- package/lib/components/assetTree/TreeLeaf.js +1 -1
- package/lib/components/assetTree/TreeSelectAll.js +2 -1
- package/lib/components/assetTree/TreeSidebar.js +10 -22
- package/lib/components/assetTree/TypeCounter.js +10 -8
- package/lib/components/charts/AreaChart.js +5 -3
- package/lib/components/charts/BarChart.js +5 -3
- package/lib/components/charts/ChartTooltip.js +14 -0
- package/lib/components/charts/LineChart.js +4 -2
- package/lib/components/charts/PieChart.js +5 -3
- package/lib/components/charts/RadialBarChart.js +4 -4
- package/lib/components/charts/chartHelper.js +1 -1
- package/lib/components/dialog/Dialog.js +4 -4
- package/lib/components/dialog/baseDialogPropTypes.js +1 -1
- package/lib/components/map/.DS_Store +0 -0
- package/lib/components/map/components/.DS_Store +0 -0
- package/lib/components/map/components/features/.DS_Store +0 -0
- package/lib/components/map/components/features/settings/.DS_Store +0 -0
- package/lib/components/steppedProgressBar/SteppedProgressBar.js +59 -107
- package/lib/es/ChartTooltip.d.ts +5 -0
- package/lib/es/ChartTooltip.js +15 -0
- package/lib/es/Colors.js +1 -1
- package/lib/es/DeviceUtils.d.ts +5 -1
- package/lib/es/SubNavigation.d.ts +5 -0
- package/lib/es/SubNavigation.js +15 -0
- package/lib/es/VolkswagenApplicationHeader.d.ts +5 -0
- package/lib/es/VolkswagenApplicationHeader.js +15 -0
- package/lib/es/deviceUtils.js +24 -0
- package/lib/hooks/useClickOutside.js +2 -1
- package/lib/index.js +1 -1
- package/lib/style/css/_exports/rio-website.less +36 -22
- package/lib/style/css/_exports/vw-uikit.less +5 -1
- package/lib/style/css/components/ApplicationHeader.less +288 -257
- package/lib/style/css/components/ApplicationLayout.less +7 -5
- package/lib/style/css/components/AssetTree.less +3 -3
- package/lib/style/css/variables.less +1 -1
- package/lib/style/fonts/rioglyph/rioglyph.less +56 -1
- package/lib/style/fonts/rioglyph/rioglyph.svg +68 -2
- package/lib/style/fonts/rioglyph/rioglyph.ttf +0 -0
- package/lib/style/fonts/rioglyph/rioglyph.woff +0 -0
- package/lib/styles/animations/_imports.less +10 -0
- package/lib/styles/animations/collapse.less +16 -0
- package/lib/styles/animations/fade.less +28 -0
- package/lib/styles/animations/pinging.less +7 -0
- package/lib/styles/animations/pulsing.less +5 -0
- package/lib/styles/animations/rotate.less +52 -0
- package/lib/styles/animations/scale.less +35 -0
- package/lib/styles/animations/slide.less +39 -0
- package/lib/styles/animations/spinning.less +4 -0
- package/lib/styles/animations/transition.less +129 -0
- package/lib/styles/animations/translate.less +28 -0
- package/lib/styles/components/Activity.less +93 -0
- package/lib/styles/components/ApplicationHeader.less +469 -0
- package/lib/styles/components/ApplicationLayout.less +240 -0
- package/lib/styles/components/AssetTree.less +439 -0
- package/lib/styles/components/AutoSuggest.less +22 -0
- package/lib/styles/components/BottomSheet.less +14 -0
- package/lib/styles/components/Carousel.less +212 -0
- package/lib/styles/components/Checkbox.less +224 -0
- package/lib/styles/components/ClearableInput.less +115 -0
- package/lib/styles/components/Counter.less +142 -0
- package/lib/styles/components/DataTabs.less +100 -0
- package/lib/styles/components/DatePicker.less +391 -0
- package/lib/styles/components/Dialog.less +484 -0
- package/lib/styles/components/Dropdown.less +185 -0
- package/lib/styles/components/Expander.less +196 -0
- package/lib/styles/components/FilePicker.less +8 -0
- package/lib/styles/components/ListMenu.less +77 -0
- package/lib/styles/components/MapHere.less +91 -0
- package/lib/styles/components/MapMarker.less +347 -0
- package/lib/styles/components/MapSettings.less +140 -0
- package/lib/styles/components/NoData.less +8 -0
- package/lib/styles/components/Notification.less +234 -0
- package/lib/styles/components/RadioButton.less +173 -0
- package/lib/styles/components/Resizer.less +43 -0
- package/lib/styles/components/Select.less +287 -0
- package/lib/styles/components/Sidebar.less +157 -0
- package/lib/styles/components/Slider.less +278 -0
- package/lib/styles/components/Spinner.less +49 -0
- package/lib/styles/components/StatsWidget.less +111 -0
- package/lib/styles/components/SteppedProgressBar.less +310 -0
- package/lib/styles/components/SupportMarker.less +34 -0
- package/lib/styles/components/Switch.less +145 -0
- package/lib/styles/components/TableSettingsDialog.less +96 -0
- package/lib/styles/components/TableSortArrows.less +54 -0
- package/lib/styles/components/TableToolbar.less +121 -0
- package/lib/styles/components/Tag.less +246 -0
- package/lib/styles/components/TagManager.less +4 -0
- package/lib/styles/components/Teaser.less +12 -0
- package/lib/styles/components/Timeline.less +69 -0
- package/lib/styles/components/Tooltip.less +222 -0
- package/lib/styles/design/alerts.less +55 -0
- package/lib/styles/design/aspect-ratio.less +23 -0
- package/lib/styles/design/badges.less +120 -0
- package/lib/styles/design/blockquote.less +49 -0
- package/lib/styles/design/border.less +192 -0
- package/lib/styles/design/breadcrumbs.less +20 -0
- package/lib/styles/design/button-groups.less +194 -0
- package/lib/styles/design/buttons.less +543 -0
- package/lib/styles/design/callouts.less +27 -0
- package/lib/styles/design/caret.less +28 -0
- package/lib/styles/design/close.less +12 -0
- package/lib/styles/design/code.less +45 -0
- package/lib/styles/design/colors.less +202 -0
- package/lib/styles/design/cols.less +56 -0
- package/lib/styles/design/container.less +29 -0
- package/lib/styles/design/cursors.less +19 -0
- package/lib/styles/design/custom.less +20 -0
- package/lib/styles/design/ellipsis.less +46 -0
- package/lib/styles/design/flexgrid.less +7 -0
- package/lib/styles/design/fonts.less +458 -0
- package/lib/styles/design/form-input-groups.less +245 -0
- package/lib/styles/design/form-inputs.less +655 -0
- package/lib/styles/design/iframe.less +80 -0
- package/lib/styles/design/images.less +47 -0
- package/lib/styles/design/labels.less +66 -0
- package/lib/styles/design/list-group.less +100 -0
- package/lib/styles/design/navs.less +262 -0
- package/lib/styles/design/normalize.less +436 -0
- package/lib/styles/design/opacity.less +26 -0
- package/lib/styles/design/overflow.less +1 -0
- package/lib/styles/design/pagination.less +161 -0
- package/lib/styles/design/panels.less +105 -0
- package/lib/styles/design/popovers.less +119 -0
- package/lib/styles/design/position.less +16 -0
- package/lib/styles/design/progress-bars.less +131 -0
- package/lib/styles/design/responsive/_imports.less +67 -0
- package/lib/styles/design/responsive/backgrounds.less +32 -0
- package/lib/styles/design/responsive/display.less +9 -0
- package/lib/styles/design/responsive/flexgrid.less +75 -0
- package/lib/styles/design/responsive/floating.less +4 -0
- package/lib/styles/design/responsive/gap.less +41 -0
- package/lib/styles/design/responsive/margin.less +127 -0
- package/lib/styles/design/responsive/overflow.less +16 -0
- package/lib/styles/design/responsive/padding.less +71 -0
- package/lib/styles/design/responsive/position.less +103 -0
- package/lib/styles/design/responsive/sizing.less +96 -0
- package/lib/styles/design/responsive/text.less +71 -0
- package/lib/styles/design/responsive-embed.less +31 -0
- package/lib/styles/design/responsive-video.less +22 -0
- package/lib/styles/design/rioglyph.less +13 -0
- package/lib/styles/design/rounded.less +44 -0
- package/lib/styles/design/shadows.less +65 -0
- package/lib/styles/design/sizing.less +18 -0
- package/lib/styles/design/tables.less +855 -0
- package/lib/styles/design/text.less +201 -0
- package/lib/styles/design/theme.less +206 -0
- package/lib/styles/design/thumbnails.less +29 -0
- package/lib/styles/design/transition.less +33 -0
- package/lib/styles/design/type.less +159 -0
- package/lib/styles/design/utilities.less +75 -0
- package/lib/styles/design/visibility.less +186 -0
- package/lib/styles/design/wells.less +17 -0
- package/lib/styles/design/z-index.less +21 -0
- package/lib/styles/filter/_imports.less +1 -0
- package/lib/styles/filter/blur.less +17 -0
- package/lib/styles/mapping/breakpoint-map.less +44 -0
- package/lib/styles/mapping/color-map.less +200 -0
- package/lib/styles/mapping/cols-map.less +15 -0
- package/lib/styles/mapping/numbers-map.less +16 -0
- package/lib/styles/mapping/positions-map.less +21 -0
- package/lib/styles/mapping/sizes-map.less +129 -0
- package/lib/styles/mapping/spacings-map.less +28 -0
- package/lib/styles/mixins/_mixins.less +13 -0
- package/lib/styles/mixins/alerts.less +13 -0
- package/lib/styles/mixins/border-radius.less +16 -0
- package/lib/styles/mixins/buttons.less +117 -0
- package/lib/styles/mixins/clearfix.less +9 -0
- package/lib/styles/mixins/cols.less +59 -0
- package/lib/styles/mixins/forms.less +61 -0
- package/lib/styles/mixins/panels.less +27 -0
- package/lib/styles/mixins/placeholder.less +17 -0
- package/lib/styles/mixins/reset.less +27 -0
- package/lib/styles/mixins/sizings.less +21 -0
- package/lib/styles/mixins/spinner.less +30 -0
- package/lib/styles/mixins/table.less +26 -0
- package/lib/styles/mixins/tabs.less +4 -0
- package/lib/styles/mixins/text.less +5 -0
- package/lib/styles/print/print.less +163 -0
- package/lib/styles/rio-uikit-core.less +114 -0
- package/lib/styles/rio-uikit-print-utilities.less +16 -0
- package/lib/styles/rio-uikit-responsive-utilities.less +16 -0
- package/lib/styles/shared/colors.json +56 -0
- package/lib/styles/shared/colors.less +73 -0
- package/lib/styles/shared/screens.less +7 -0
- package/lib/styles/shared/text.less +23 -0
- package/lib/styles/variables.less +180 -0
- package/lib/themes/BuyButton/styles/rio-buyButton.less +183 -0
- package/lib/themes/MAN/styles/man-uikit.less +48 -0
- package/lib/themes/RIO/styles/rio-uikit.less +20 -0
- package/lib/themes/SCANIA/styles/scania-uikit.less +36 -0
- package/lib/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +94 -0
- package/lib/themes/Volkswagen/components/applicationHeader/modulePropTypes.js +17 -0
- package/lib/themes/Volkswagen/styles/vw-uikit.less +205 -0
- package/lib/themes/Website/styles/rio-website.less +2236 -0
- package/lib/themes/Xmas/styles/rio-xmas.less +36 -0
- package/lib/types.ts +19 -11
- package/lib/utils/deviceUtils.js +9 -1
- package/lib/version.json +1 -1
- package/package.json +96 -95
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// Core
|
|
2
|
+
@import (less) '../../../styles/rio-uikit-core.less';
|
|
3
|
+
|
|
4
|
+
// Utility Classes
|
|
5
|
+
@import (less) '../../../styles/design/responsive/_imports.less';
|
|
6
|
+
.import-reponsive(
|
|
7
|
+
@default: true;
|
|
8
|
+
@xs: true;
|
|
9
|
+
@ls: true;
|
|
10
|
+
@sm: true;
|
|
11
|
+
@md: true;
|
|
12
|
+
@lg: true;
|
|
13
|
+
@xl: true;
|
|
14
|
+
@print: false;
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
// Fonts
|
|
18
|
+
@font-man: true;
|
|
19
|
+
|
|
20
|
+
// MAN font
|
|
21
|
+
@font-family-base: MANEuropeLight, 'serif';
|
|
22
|
+
@headings-font-family: MANEuropeCondensed, 'serif';
|
|
23
|
+
|
|
24
|
+
// Colors
|
|
25
|
+
@brand-primary: #303c49;
|
|
26
|
+
@brand-secondary: #d22b40;
|
|
27
|
+
@brand-info: #4b96d2;
|
|
28
|
+
@brand-primary: #303c49;
|
|
29
|
+
@brand-danger: #d90000;
|
|
30
|
+
@brand-warning: #ff8e3c;
|
|
31
|
+
|
|
32
|
+
// used by MAN only
|
|
33
|
+
@color-base-dark: #4c5667;
|
|
34
|
+
@color-base-light: #d0d8de;
|
|
35
|
+
|
|
36
|
+
// Color - Custom highlight colors
|
|
37
|
+
@color-highlight-darkest: darken(@brand-primary, 30%);
|
|
38
|
+
@color-highlight-darker: darken(@brand-primary, 20%);
|
|
39
|
+
@color-highlight-dark: darken(@brand-primary, 10%);
|
|
40
|
+
@color-highlight: @brand-primary;
|
|
41
|
+
@color-highlight-light: lighten(@brand-primary, 25%);
|
|
42
|
+
@color-highlight-lighter: lighten(@brand-primary, 41%);
|
|
43
|
+
@color-highlight-lightest: lighten(@brand-primary, 48%);
|
|
44
|
+
@color-highlight-decent: lighten(@brand-primary, 50%);
|
|
45
|
+
|
|
46
|
+
@color-map-marker-poi: @brand-info;
|
|
47
|
+
|
|
48
|
+
@border-radius-default: 2px;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Styles
|
|
2
|
+
@import (less) '../../../styles/rio-uikit-core.less';
|
|
3
|
+
|
|
4
|
+
// Utility Classes
|
|
5
|
+
@import (less) '../../../styles/design/responsive/_imports.less';
|
|
6
|
+
.import-reponsive(
|
|
7
|
+
@default: true;
|
|
8
|
+
@xs: true;
|
|
9
|
+
@ls: true;
|
|
10
|
+
@sm: true;
|
|
11
|
+
@md: true;
|
|
12
|
+
@lg: true;
|
|
13
|
+
@xl: true;
|
|
14
|
+
@print: false;
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
// Fonts
|
|
18
|
+
@font-source-sans: true;
|
|
19
|
+
@font-san-francisco: true;
|
|
20
|
+
@font-roboto: true;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Core
|
|
2
|
+
@import (less) '../../../styles/rio-uikit-core.less';
|
|
3
|
+
|
|
4
|
+
// Utility Classes
|
|
5
|
+
@import (less) '../../../styles/design/responsive/_imports.less';
|
|
6
|
+
.import-reponsive(
|
|
7
|
+
@default: true;
|
|
8
|
+
@xs: true;
|
|
9
|
+
@ls: true;
|
|
10
|
+
@sm: true;
|
|
11
|
+
@md: true;
|
|
12
|
+
@lg: true;
|
|
13
|
+
@xl: true;
|
|
14
|
+
@print: false;
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
// Fonts
|
|
18
|
+
@font-scania: true;
|
|
19
|
+
@font-family-base: Scania Sans, 'serif';
|
|
20
|
+
|
|
21
|
+
// Colors
|
|
22
|
+
@brand-primary: #081c38;
|
|
23
|
+
@brand-secondary: #132d55;
|
|
24
|
+
@brand-info: #4580e9;
|
|
25
|
+
@brand-success: #3d9e81;
|
|
26
|
+
@brand-warning: #ebba3d;
|
|
27
|
+
@brand-danger: #cd3835;
|
|
28
|
+
|
|
29
|
+
// Color - Grays
|
|
30
|
+
@gray-darkest: #0f1113;
|
|
31
|
+
@gray-darker: #4d5a6d;
|
|
32
|
+
@gray-dark: #7b8496;
|
|
33
|
+
@gray: #c6cbd5;
|
|
34
|
+
@gray-light: #e3e6eb;
|
|
35
|
+
@gray-lighter: #eaedf1;
|
|
36
|
+
@gray-lightest: #f8f9fa;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports.default = exports.VolkswagenApplicationHeader = void 0;
|
|
11
|
+
|
|
12
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
+
|
|
16
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
|
+
|
|
18
|
+
var _isEmpty = _interopRequireDefault(require("lodash/fp/isEmpty"));
|
|
19
|
+
|
|
20
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
21
|
+
|
|
22
|
+
var _ApplicationActionBar = require("../../../../components/applicationHeader/ApplicationActionBar");
|
|
23
|
+
|
|
24
|
+
var _useResizeObserver3 = _interopRequireDefault(require("../../../../hooks/useResizeObserver"));
|
|
25
|
+
|
|
26
|
+
var _modulePropTypes = _interopRequireDefault(require("./modulePropTypes"));
|
|
27
|
+
|
|
28
|
+
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); }
|
|
29
|
+
|
|
30
|
+
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; }
|
|
31
|
+
|
|
32
|
+
var VolkswagenApplicationHeader = function VolkswagenApplicationHeader(props) {
|
|
33
|
+
var homeRoute = props.homeRoute,
|
|
34
|
+
className = props.className,
|
|
35
|
+
appNavigator = props.appNavigator,
|
|
36
|
+
appNavigatorClassName = props.appNavigatorClassName,
|
|
37
|
+
appMenuItems = props.appMenuItems,
|
|
38
|
+
navItems = props.navItems,
|
|
39
|
+
actionBarItems = props.actionBarItems;
|
|
40
|
+
var actionBarRef = (0, _react.useRef)();
|
|
41
|
+
|
|
42
|
+
var _useResizeObserver = (0, _useResizeObserver3.default)(),
|
|
43
|
+
_useResizeObserver2 = (0, _slicedToArray2.default)(_useResizeObserver, 2),
|
|
44
|
+
navRef = _useResizeObserver2[0],
|
|
45
|
+
contentRect = _useResizeObserver2[1].contentRect; // const getContentRect = useCallback(key => contentRect && Math.round(contentRect[key]), [contentRect]);
|
|
46
|
+
// const containerWidth = getContentRect('width') || 0;
|
|
47
|
+
// const isMobileWidth = containerWidth <= MOBILE_MAX_WIDTH;
|
|
48
|
+
// const hasActionBarItems = !isEmpty(actionBarItems);
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
var classNames = (0, _classnames.default)('ApplicationHeader VolkswagenApplicationHeader', 'user-select-none', className && className);
|
|
52
|
+
return /*#__PURE__*/_react.default.createElement("nav", {
|
|
53
|
+
className: classNames,
|
|
54
|
+
ref: navRef
|
|
55
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
56
|
+
className: "brand"
|
|
57
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
58
|
+
className: "logo"
|
|
59
|
+
})), (0, _isEmpty.default)(navItems) && /*#__PURE__*/_react.default.createElement("ul", {
|
|
60
|
+
className: "SubmoduleNavigation nav"
|
|
61
|
+
}), !(0, _isEmpty.default)(navItems) && /*#__PURE__*/_react.default.createElement("ul", {
|
|
62
|
+
className: "SubmoduleNavigation nav"
|
|
63
|
+
}, navItems.map(function (navItem) {
|
|
64
|
+
return /*#__PURE__*/_react.default.createElement("li", {
|
|
65
|
+
key: navItem.key,
|
|
66
|
+
className: "submodule",
|
|
67
|
+
"data-nav-item-key": navItem.key
|
|
68
|
+
}, navItem.route);
|
|
69
|
+
})), /*#__PURE__*/_react.default.createElement(_ApplicationActionBar.ApplicationActionBar, {
|
|
70
|
+
nodeRef: actionBarRef,
|
|
71
|
+
items: actionBarItems
|
|
72
|
+
}));
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
exports.VolkswagenApplicationHeader = VolkswagenApplicationHeader;
|
|
76
|
+
var _default = VolkswagenApplicationHeader;
|
|
77
|
+
exports.default = _default;
|
|
78
|
+
VolkswagenApplicationHeader.defaultProps = {
|
|
79
|
+
homeRoute: '',
|
|
80
|
+
actionBarItems: [],
|
|
81
|
+
onMount: function onMount() {},
|
|
82
|
+
onUnmount: function onUnmount() {}
|
|
83
|
+
};
|
|
84
|
+
VolkswagenApplicationHeader.propTypes = {
|
|
85
|
+
className: _propTypes.default.string,
|
|
86
|
+
homeRoute: _propTypes.default.node.isRequired,
|
|
87
|
+
appMenuItems: _propTypes.default.arrayOf(_modulePropTypes.default),
|
|
88
|
+
appNavigator: _propTypes.default.node,
|
|
89
|
+
appNavigatorClassName: _propTypes.default.string,
|
|
90
|
+
navItems: _propTypes.default.arrayOf(_modulePropTypes.default),
|
|
91
|
+
actionBarItems: _propTypes.default.arrayOf(_propTypes.default.node),
|
|
92
|
+
onMount: _propTypes.default.func,
|
|
93
|
+
onUnmount: _propTypes.default.func
|
|
94
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
var _default = _propTypes.default.shape({
|
|
13
|
+
key: _propTypes.default.string.isRequired,
|
|
14
|
+
route: _propTypes.default.node.isRequired
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
exports.default = _default;
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
// Core
|
|
2
|
+
@import (less) '../../../styles/rio-uikit-core.less';
|
|
3
|
+
|
|
4
|
+
// Utility Classes
|
|
5
|
+
@import (less) '../../../styles/design/responsive/_imports.less';
|
|
6
|
+
.import-reponsive(
|
|
7
|
+
@default: true;
|
|
8
|
+
@xs: true;
|
|
9
|
+
@ls: true;
|
|
10
|
+
@sm: true;
|
|
11
|
+
@md: true;
|
|
12
|
+
@lg: true;
|
|
13
|
+
@xl: true;
|
|
14
|
+
@print: false;
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
// Fonts
|
|
18
|
+
@font-vw: true;
|
|
19
|
+
@font-family-base: VWAGTheSans, 'serif';
|
|
20
|
+
|
|
21
|
+
// ApplicationHeader
|
|
22
|
+
@logo-height: 42px;
|
|
23
|
+
@logo-width: 204px;
|
|
24
|
+
@navbar-height: 178px;
|
|
25
|
+
|
|
26
|
+
// Colors - Text
|
|
27
|
+
@color-white: #ffffff;
|
|
28
|
+
@color-black: #000000;
|
|
29
|
+
|
|
30
|
+
// Color - Grays
|
|
31
|
+
@gray-darkest: #1b1e1f;
|
|
32
|
+
@gray-darker: #4c5356;
|
|
33
|
+
@gray-dark: #636a6d;
|
|
34
|
+
@gray: #91979c;
|
|
35
|
+
@gray-light: #cacdd2;
|
|
36
|
+
@gray-lighter: #dfe2e6;
|
|
37
|
+
@gray-lightest: #f0f1f2;
|
|
38
|
+
|
|
39
|
+
// Color - Brand Colors
|
|
40
|
+
@brand-primary: #004666;
|
|
41
|
+
@brand-secondary: #b23672;
|
|
42
|
+
@brand-success: #64a844;
|
|
43
|
+
@brand-warning: #ff9b00;
|
|
44
|
+
@brand-danger: #da0c1f;
|
|
45
|
+
@brand-info: #4B80A6;
|
|
46
|
+
|
|
47
|
+
// Color - Driver Status
|
|
48
|
+
@color-status-available: #239b7d;
|
|
49
|
+
@color-status-driving: #3690ae;
|
|
50
|
+
@color-status-resting: #626b72;
|
|
51
|
+
@color-status-working: #94488b;
|
|
52
|
+
|
|
53
|
+
// Color - Map Marker
|
|
54
|
+
@color-map-marker-asset: #2a3740;
|
|
55
|
+
@color-map-marker-poi: #b23672;
|
|
56
|
+
@color-map-marker-geofence: #5a4876;
|
|
57
|
+
@color-map-marker-route: #3690ae;
|
|
58
|
+
|
|
59
|
+
// Color - Rating Status
|
|
60
|
+
@color-rating-1: #da0c1f;
|
|
61
|
+
@color-rating-2: #e68b00;
|
|
62
|
+
@color-rating-3: #ffc061;
|
|
63
|
+
@color-rating-4: #64a844;
|
|
64
|
+
@color-rating-5: #46752f;
|
|
65
|
+
|
|
66
|
+
// Color - Buttons
|
|
67
|
+
@btn-primary-bg: @brand-primary;
|
|
68
|
+
@btn-primary-border: @brand-primary;
|
|
69
|
+
@btn-primary-color: @color-white;
|
|
70
|
+
|
|
71
|
+
@btn-default-border: @brand-primary;
|
|
72
|
+
@btn-default-color: @brand-primary;
|
|
73
|
+
|
|
74
|
+
// Color - Custom highlight colors
|
|
75
|
+
@color-highlight-darkest: #114146;
|
|
76
|
+
@color-highlight-darker: #1c686e;
|
|
77
|
+
@color-highlight-dark: #268e97;
|
|
78
|
+
@color-highlight: #8DBFCF;
|
|
79
|
+
@color-highlight-light: #8ddbe3;
|
|
80
|
+
@color-highlight-lighter: #cef0f3;
|
|
81
|
+
@color-highlight-lightest: #ebf9fa;
|
|
82
|
+
@color-highlight-decent: #f3fbfc;
|
|
83
|
+
|
|
84
|
+
@border-radius-sm: 0;
|
|
85
|
+
@border-radius-default: 0;
|
|
86
|
+
@border-radius-lg: 0;
|
|
87
|
+
|
|
88
|
+
.btn.btn-default {
|
|
89
|
+
.button-variant(
|
|
90
|
+
~'';
|
|
91
|
+
@btn-default-bg;
|
|
92
|
+
@btn-default-border;
|
|
93
|
+
@btn-default-color;
|
|
94
|
+
@color-highlight-lightest;
|
|
95
|
+
@color-highlight-lighter;
|
|
96
|
+
@color-highlight-lighter;
|
|
97
|
+
@color-highlight-lighter;
|
|
98
|
+
@btn-default-border;
|
|
99
|
+
@btn-default-border;
|
|
100
|
+
@btn-default-border;
|
|
101
|
+
@btn-default-border;
|
|
102
|
+
@btn-default-color;
|
|
103
|
+
@btn-default-color;
|
|
104
|
+
@btn-default-color;
|
|
105
|
+
@btn-default-color;
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.btn.btn-primary {
|
|
110
|
+
.button-variant(
|
|
111
|
+
~'';
|
|
112
|
+
@btn-primary-bg;
|
|
113
|
+
@btn-primary-border;
|
|
114
|
+
@btn-primary-color;
|
|
115
|
+
darken(@btn-primary-bg, 5%);
|
|
116
|
+
darken(@btn-primary-bg, 10%);
|
|
117
|
+
darken(@btn-primary-bg, 10%);
|
|
118
|
+
darken(@btn-primary-bg, 10%);
|
|
119
|
+
darken(@btn-primary-bg, 10%);
|
|
120
|
+
darken(@btn-primary-bg, 10%);
|
|
121
|
+
darken(@btn-primary-bg, 10%);
|
|
122
|
+
darken(@btn-primary-bg, 10%);
|
|
123
|
+
@btn-primary-color;
|
|
124
|
+
@btn-primary-color;
|
|
125
|
+
@btn-primary-color;
|
|
126
|
+
@btn-primary-color;
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.VolkswagenApplicationHeader {
|
|
131
|
+
background-color: @color-white;
|
|
132
|
+
display: block;
|
|
133
|
+
height: @navbar-height;
|
|
134
|
+
position: relative;
|
|
135
|
+
|
|
136
|
+
.brand {
|
|
137
|
+
display: grid;
|
|
138
|
+
height: @logo-height * 3;
|
|
139
|
+
place-items: center;
|
|
140
|
+
|
|
141
|
+
.logo {
|
|
142
|
+
height: @logo-height;
|
|
143
|
+
width: @logo-width;
|
|
144
|
+
background-image: url('@{cdnBase}/svg/common/ico_vw_brandless.svg') !important;
|
|
145
|
+
background-position: center;
|
|
146
|
+
background-repeat: no-repeat;
|
|
147
|
+
background-size: auto 100%;
|
|
148
|
+
|
|
149
|
+
.vw-aktiengesellschaft & {
|
|
150
|
+
background-image: url('@{cdnBase}/svg/common/ico_vw_aktiengesellschaft.svg') !important;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.vw-konzernlogistik & {
|
|
154
|
+
background-image: url('@{cdnBase}/svg/common/ico_vw_konzernlogistik.svg') !important;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.ModuleNavigation {
|
|
160
|
+
display: none;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.nav {
|
|
164
|
+
display: flex;
|
|
165
|
+
justify-content: center !important;
|
|
166
|
+
|
|
167
|
+
&.SubmoduleNavigation {
|
|
168
|
+
border-top: 1px solid @gray-lighter;
|
|
169
|
+
padding-left: 0;
|
|
170
|
+
width: 100%;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
> li {
|
|
174
|
+
margin: 0 !important;
|
|
175
|
+
|
|
176
|
+
> a {
|
|
177
|
+
line-height: 20px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&:only-child:not(.CollapsedDropdown) {
|
|
181
|
+
> a {
|
|
182
|
+
pointer-events: none;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.ApplicationActionBar {
|
|
189
|
+
position: absolute;
|
|
190
|
+
right: 0;
|
|
191
|
+
top: 50%;
|
|
192
|
+
transform: translateY(calc(~"-50% - 25px"));
|
|
193
|
+
z-index: 1;
|
|
194
|
+
|
|
195
|
+
> .navigationItem {
|
|
196
|
+
height: 50px;
|
|
197
|
+
width: auto;
|
|
198
|
+
|
|
199
|
+
> .ActionBarItem {
|
|
200
|
+
height: 50px;
|
|
201
|
+
width: 50px;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|