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