@rio-cloud/rio-uikit 1.0.0 → 1.2.0
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/DropdownHeader.d.ts +2 -0
- package/DropdownHeader.js +2 -0
- package/FeedbackInlineButtons.d.ts +2 -0
- package/FeedbackInlineButtons.js +2 -0
- package/FeedbackRating.d.ts +2 -0
- package/FeedbackRating.js +2 -0
- package/FeedbackReactions.d.ts +2 -0
- package/FeedbackReactions.js +2 -0
- package/MapAdditionalLayerSettings.d.ts +2 -0
- package/MapAdditionalLayerSettings.js +2 -0
- package/MapSettingsDropdownHeader.d.ts +2 -0
- package/MapSettingsDropdownHeader.js +2 -0
- package/SmoothScrollbars.d.ts +2 -0
- package/SmoothScrollbars.js +2 -0
- package/components/.DS_Store +0 -0
- package/components/actionBarItem/ActionBarItemListItem.js +2 -2
- package/components/assetTree/AssetTree.js +2 -1
- package/components/assetTree/Tree.d.ts +4 -0
- package/components/assetTree/Tree.js +2 -2
- package/components/assetTree/TreeOptions.d.ts +1 -0
- package/components/assetTree/TreeOptions.js +16 -2
- package/components/assetTree/TreeSidebarCategories.js +1 -1
- package/components/calendarStripe/CalendarStripe.js +2 -2
- package/components/feedback/FeedbackInlineButtons.d.ts +13 -0
- package/components/feedback/FeedbackInlineButtons.js +9 -0
- package/components/feedback/FeedbackRating.d.ts +65 -0
- package/components/feedback/FeedbackRating.js +23 -0
- package/components/feedback/FeedbackReactions.d.ts +71 -0
- package/components/feedback/FeedbackReactions.js +26 -0
- package/components/listMenu/ListMenu.d.ts +5 -1
- package/components/listMenu/ListMenu.js +2 -2
- package/components/map/.DS_Store +0 -0
- package/components/map/components/.DS_Store +0 -0
- package/components/map/components/features/basics/Marker.js +1 -1
- package/components/map/components/features/settings/MapSettingsItem.d.ts +1 -0
- package/components/map/components/features/settings/MapSettingsItem.js +14 -11
- package/components/map/components/features/settings/MapSettingsTile.d.ts +3 -2
- package/components/map/components/features/settings/MapSettingsTile.js +40 -5
- package/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.d.ts +9 -0
- package/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.js +15 -0
- package/components/map/components/features/settings/builtinSettings/MapClusterSettings.d.ts +3 -0
- package/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +8 -2
- package/components/map/components/features/settings/builtinSettings/MapLayerSettings.js +15 -9
- package/components/map/components/features/settings/builtinSettings/MapTypeSettings.d.ts +6 -0
- package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +20 -2
- package/components/map/components/features/settings/buttons/MapCenterMarkerButton.js +2 -2
- package/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.d.ts +2 -0
- package/components/map/components/features/settings/items/MapLayerIncidentsItem.d.ts +2 -0
- package/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.d.ts +2 -0
- package/components/map/components/features/settings/items/MapLayerTrafficItem.d.ts +2 -0
- package/components/map/components/features/settings/items/MapSettingsDropdownHeader.d.ts +4 -0
- package/components/map/components/features/settings/items/MapSettingsDropdownHeader.js +9 -0
- package/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.d.ts +2 -0
- package/components/map/icons/MapIcon.d.ts +1 -2
- package/components/map/icons/MapIcon.js +3 -1
- package/components/map/utils/mapTypes.d.ts +1 -1
- package/components/map/utils/mapTypes.js +12 -4
- package/components/mapMarker/ClusterMapMarker.d.ts +8 -0
- package/components/mapMarker/ClusterMapMarker.js +5 -4
- package/components/mapMarker/SingleMapMarker.d.ts +40 -5
- package/components/mapMarker/SingleMapMarker.js +19 -6
- package/components/selects/DropdownHeader.d.ts +1 -0
- package/components/selects/DropdownHeader.js +2 -2
- package/components/selects/Multiselect.js +2 -2
- package/components/selects/MultiselectToggleFilter.js +1 -1
- package/components/states/CustomState.js +21 -8
- package/components/states/StateButton.d.ts +8 -1
- package/components/states/StateButton.js +5 -4
- package/hooks/useAfterMount.js +8 -4
- package/lib/.DS_Store +0 -0
- package/lib/es/.DS_Store +0 -0
- package/lib/es/DropdownHeader.d.ts +2 -0
- package/lib/es/DropdownHeader.js +7 -0
- package/lib/es/FeedbackInlineButtons.d.ts +2 -0
- package/lib/es/FeedbackInlineButtons.js +7 -0
- package/lib/es/FeedbackRating.d.ts +2 -0
- package/lib/es/FeedbackRating.js +7 -0
- package/lib/es/FeedbackReactions.d.ts +2 -0
- package/lib/es/FeedbackReactions.js +7 -0
- package/lib/es/MapAdditionalLayerSettings.d.ts +2 -0
- package/lib/es/MapAdditionalLayerSettings.js +7 -0
- package/lib/es/MapSettingsDropdownHeader.d.ts +2 -0
- package/lib/es/MapSettingsDropdownHeader.js +7 -0
- package/lib/es/SmoothScrollbars.d.ts +2 -0
- package/lib/es/SmoothScrollbars.js +7 -0
- package/lib/es/components/.DS_Store +0 -0
- package/lib/es/components/actionBarItem/ActionBarItemListItem.js +2 -2
- package/lib/es/components/assetTree/AssetTree.js +2 -1
- package/lib/es/components/assetTree/Tree.d.ts +4 -0
- package/lib/es/components/assetTree/Tree.js +2 -2
- package/lib/es/components/assetTree/TreeOptions.d.ts +1 -0
- package/lib/es/components/assetTree/TreeOptions.js +16 -2
- package/lib/es/components/assetTree/TreeSidebarCategories.js +1 -1
- package/lib/es/components/calendarStripe/CalendarStripe.js +1 -1
- package/lib/es/components/feedback/FeedbackInlineButtons.d.ts +13 -0
- package/lib/es/components/feedback/FeedbackInlineButtons.js +11 -0
- package/lib/es/components/feedback/FeedbackRating.d.ts +65 -0
- package/lib/es/components/feedback/FeedbackRating.js +25 -0
- package/lib/es/components/feedback/FeedbackReactions.d.ts +71 -0
- package/lib/es/components/feedback/FeedbackReactions.js +28 -0
- package/lib/es/components/listMenu/ListMenu.d.ts +5 -1
- package/lib/es/components/listMenu/ListMenu.js +2 -2
- package/lib/es/components/map/components/features/basics/Marker.js +1 -1
- package/lib/es/components/map/components/features/settings/MapSettingsItem.d.ts +1 -0
- package/lib/es/components/map/components/features/settings/MapSettingsItem.js +13 -10
- package/lib/es/components/map/components/features/settings/MapSettingsTile.d.ts +3 -2
- package/lib/es/components/map/components/features/settings/MapSettingsTile.js +39 -4
- package/lib/es/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.d.ts +9 -0
- package/lib/es/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.js +17 -0
- package/lib/es/components/map/components/features/settings/builtinSettings/MapClusterSettings.d.ts +3 -0
- package/lib/es/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +8 -2
- package/lib/es/components/map/components/features/settings/builtinSettings/MapLayerSettings.js +14 -8
- package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.d.ts +6 -0
- package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +20 -2
- package/lib/es/components/map/components/features/settings/buttons/MapCenterMarkerButton.js +1 -1
- package/lib/es/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.d.ts +2 -0
- package/lib/es/components/map/components/features/settings/items/MapLayerIncidentsItem.d.ts +2 -0
- package/lib/es/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.d.ts +2 -0
- package/lib/es/components/map/components/features/settings/items/MapLayerTrafficItem.d.ts +2 -0
- package/lib/es/components/map/components/features/settings/items/MapSettingsDropdownHeader.d.ts +4 -0
- package/lib/es/components/map/components/features/settings/items/MapSettingsDropdownHeader.js +11 -0
- package/lib/es/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.d.ts +2 -0
- package/lib/es/components/map/icons/MapIcon.d.ts +1 -2
- package/lib/es/components/map/icons/MapIcon.js +3 -1
- package/lib/es/components/map/utils/mapTypes.d.ts +1 -1
- package/lib/es/components/map/utils/mapTypes.js +12 -4
- package/lib/es/components/mapMarker/ClusterMapMarker.d.ts +8 -0
- package/lib/es/components/mapMarker/ClusterMapMarker.js +5 -4
- package/lib/es/components/mapMarker/SingleMapMarker.d.ts +40 -5
- package/lib/es/components/mapMarker/SingleMapMarker.js +18 -5
- package/lib/es/components/selects/DropdownHeader.d.ts +1 -0
- package/lib/es/components/selects/DropdownHeader.js +2 -2
- package/lib/es/components/selects/Multiselect.js +1 -1
- package/lib/es/components/selects/MultiselectToggleFilter.js +1 -1
- package/lib/es/components/states/CustomState.js +20 -7
- package/lib/es/components/states/StateButton.d.ts +8 -1
- package/lib/es/components/states/StateButton.js +5 -4
- package/lib/es/hooks/useAfterMount.js +8 -4
- package/lib/es/styles/variables/colors/colors.json +8 -10
- package/lib/es/utils/deviceUtils.d.ts +1 -0
- package/lib/es/utils/deviceUtils.js +3 -1
- package/lib/es/version.json +1 -1
- package/package.json +30 -27
- package/styles/variables/colors/colors.json +8 -10
- package/utils/deviceUtils.d.ts +1 -0
- package/utils/deviceUtils.js +1 -0
- package/version.json +1 -1
- package/BrowserWarning.d.ts +0 -5
- package/BrowserWarning.js +0 -2
- package/DomMarker.d.ts +0 -5
- package/DomMarker.js +0 -2
- package/EnhancedMapEvent.d.ts +0 -11
- package/GroupSelectionUtil.d.ts +0 -2
- package/GroupSelectionUtil.js +0 -2
- package/IncidentsLayer.d.ts +0 -4
- package/IncidentsLayer.js +0 -2
- package/TrafficLayer.d.ts +0 -4
- package/TrafficLayer.js +0 -2
- package/TruckLayer.d.ts +0 -4
- package/TruckLayer.js +0 -2
- package/components/assetTree/excludeFromList.d.ts +0 -1
- package/components/assetTree/excludeFromList.js +0 -1
- package/components/browserWarning/BrowserIcons.d.ts +0 -2
- package/components/browserWarning/BrowserIcons.js +0 -5
- package/components/browserWarning/BrowserWarning.d.ts +0 -15
- package/components/browserWarning/BrowserWarning.js +0 -46
- package/components/browserWarning/BrowserWarningMessageDE.d.ts +0 -4
- package/components/browserWarning/BrowserWarningMessageDE.js +0 -6
- package/components/browserWarning/BrowserWarningMessageEN.d.ts +0 -4
- package/components/browserWarning/BrowserWarningMessageEN.js +0 -6
- package/components/carousel/CarouselCaption.d.ts +0 -13
- package/components/carousel/CarouselCaption.js +0 -18
- package/components/carousel/CarouselItem.d.ts +0 -36
- package/components/carousel/CarouselItem.js +0 -85
- package/components/dialog/baseDialogPropTypes.d.ts +0 -14
- package/components/dialog/baseDialogPropTypes.js +0 -13
- package/components/driverName/DriverName.d.ts +0 -18
- package/components/driverName/DriverName.js +0 -18
- package/components/dropdown/menuItemsPropTypes.d.ts +0 -9
- package/components/dropdown/menuItemsPropTypes.js +0 -8
- package/components/map/components/MapSettingContext.d.ts +0 -15
- package/components/map/components/MapSettingContext.js +0 -5
- package/components/map/components/context.d.ts +0 -2
- package/components/map/components/context.js +0 -3
- package/components/map/components/features/basics/MapLayerGroup.d.ts +0 -23
- package/components/map/components/features/basics/MapLayerGroup.js +0 -45
- package/components/map/components/features/basics/marker/DomMarker.d.ts +0 -33
- package/components/map/components/features/basics/marker/DomMarker.js +0 -55
- package/components/map/components/features/basics/marker/Marker.d.ts +0 -21
- package/components/map/components/features/basics/marker/Marker.js +0 -116
- package/components/map/components/features/basics/marker/TextMarker.d.ts +0 -17
- package/components/map/components/features/basics/marker/TextMarker.js +0 -28
- package/components/map/components/features/layers/IncidentsLayer.d.ts +0 -2
- package/components/map/components/features/layers/IncidentsLayer.js +0 -25
- package/components/map/components/features/layers/Layer.d.ts +0 -15
- package/components/map/components/features/layers/Layer.js +0 -23
- package/components/map/components/features/layers/RoadRestrictionLayer.d.ts +0 -2
- package/components/map/components/features/layers/RoadRestrictionLayer.js +0 -26
- package/components/map/components/features/layers/TrafficLayer.d.ts +0 -2
- package/components/map/components/features/layers/TrafficLayer.js +0 -39
- package/components/map/components/features/layers/baselayers/DefaultRasterLayer.d.ts +0 -2
- package/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +0 -17
- package/components/map/components/features/layers/baselayers/DefaultVectorLayer.d.ts +0 -2
- package/components/map/components/features/layers/baselayers/DefaultVectorLayer.js +0 -14
- package/components/map/components/features/layers/baselayers/FleetStyleLayer.d.ts +0 -2
- package/components/map/components/features/layers/baselayers/FleetStyleLayer.js +0 -15
- package/components/map/components/features/layers/baselayers/NightLayer.d.ts +0 -2
- package/components/map/components/features/layers/baselayers/NightLayer.js +0 -14
- package/components/map/components/features/layers/baselayers/SatelliteLayer.d.ts +0 -2
- package/components/map/components/features/layers/baselayers/SatelliteLayer.js +0 -15
- package/components/map/components/features/layers/baselayers/TerrainLayer.d.ts +0 -2
- package/components/map/components/features/layers/baselayers/TerrainLayer.js +0 -15
- package/components/map/components/features/layers/baselayers/useBaseLayer.d.ts +0 -2
- package/components/map/components/features/layers/baselayers/useBaseLayer.js +0 -47
- package/components/map/components/mapUtils.d.ts +0 -50
- package/components/map/components/mapUtils.js +0 -148
- package/components/map/herePolyfill.d.ts +0 -0
- package/components/map/herePolyfill.js +0 -7
- package/components/map/utils/proptypes.d.ts +0 -47
- package/components/map/utils/proptypes.js +0 -50
- package/components/map/utils/validation.d.ts +0 -2
- package/components/map/utils/validation.js +0 -8
- package/components/mapMarker/MarkerColor.d.ts +0 -3
- package/components/mapMarker/MarkerColor.js +0 -12
- package/components/menuItems/getMenuItems.d.ts +0 -2
- package/components/menuItems/getMenuItems.js +0 -7
- package/components/selects/BaseDropdownMenu.d.ts +0 -83
- package/components/selects/BaseDropdownMenu.js +0 -255
- package/components/selects/WithFeedback.d.ts +0 -27
- package/components/selects/WithFeedback.js +0 -12
- package/components/states/baseStatePropTypes.d.ts +0 -26
- package/components/states/baseStatePropTypes.js +0 -26
- package/components/table/tableSettingsPropTypes.d.ts +0 -8
- package/components/table/tableSettingsPropTypes.js +0 -6
- package/lib/es/BrowserWarning.d.ts +0 -5
- package/lib/es/BrowserWarning.js +0 -6
- package/lib/es/DomMarker.d.ts +0 -5
- package/lib/es/DomMarker.js +0 -6
- package/lib/es/EnhancedMapEvent.d.ts +0 -11
- package/lib/es/GroupSelectionUtil.d.ts +0 -2
- package/lib/es/GroupSelectionUtil.js +0 -5
- package/lib/es/IncidentsLayer.d.ts +0 -4
- package/lib/es/IncidentsLayer.js +0 -6
- package/lib/es/TrafficLayer.d.ts +0 -4
- package/lib/es/TrafficLayer.js +0 -6
- package/lib/es/TruckLayer.d.ts +0 -4
- package/lib/es/TruckLayer.js +0 -6
- package/lib/es/components/assetTree/autoAnimateFrames.d.ts +0 -1
- package/lib/es/components/assetTree/autoAnimateFrames.js +0 -55
- package/lib/es/components/assetTree/excludeFromList.d.ts +0 -1
- package/lib/es/components/assetTree/excludeFromList.js +0 -5
- package/lib/es/components/browserWarning/BrowserIcons.d.ts +0 -2
- package/lib/es/components/browserWarning/BrowserIcons.js +0 -11
- package/lib/es/components/browserWarning/BrowserWarning.d.ts +0 -15
- package/lib/es/components/browserWarning/BrowserWarning.js +0 -49
- package/lib/es/components/browserWarning/BrowserWarningMessageDE.d.ts +0 -4
- package/lib/es/components/browserWarning/BrowserWarningMessageDE.js +0 -9
- package/lib/es/components/browserWarning/BrowserWarningMessageEN.d.ts +0 -4
- package/lib/es/components/browserWarning/BrowserWarningMessageEN.js +0 -9
- package/lib/es/components/carousel/CarouselCaption.d.ts +0 -13
- package/lib/es/components/carousel/CarouselCaption.js +0 -20
- package/lib/es/components/carousel/CarouselItem.d.ts +0 -36
- package/lib/es/components/carousel/CarouselItem.js +0 -87
- package/lib/es/components/charts/Sector.d.ts +0 -0
- package/lib/es/components/charts/Sector.js +0 -1
- package/lib/es/components/dialog/baseDialogPropTypes.d.ts +0 -14
- package/lib/es/components/dialog/baseDialogPropTypes.js +0 -16
- package/lib/es/components/driverName/DriverName.d.ts +0 -18
- package/lib/es/components/driverName/DriverName.js +0 -23
- package/lib/es/components/dropdown/menuItemsPropTypes.d.ts +0 -9
- package/lib/es/components/dropdown/menuItemsPropTypes.js +0 -11
- package/lib/es/components/map/components/MapSettingContext.d.ts +0 -15
- package/lib/es/components/map/components/MapSettingContext.js +0 -8
- package/lib/es/components/map/components/context.d.ts +0 -2
- package/lib/es/components/map/components/context.js +0 -6
- package/lib/es/components/map/components/features/basics/MapLayerGroup.d.ts +0 -23
- package/lib/es/components/map/components/features/basics/MapLayerGroup.js +0 -48
- package/lib/es/components/map/components/features/basics/marker/DomMarker.d.ts +0 -33
- package/lib/es/components/map/components/features/basics/marker/DomMarker.js +0 -58
- package/lib/es/components/map/components/features/basics/marker/Marker.d.ts +0 -21
- package/lib/es/components/map/components/features/basics/marker/Marker.js +0 -123
- package/lib/es/components/map/components/features/basics/marker/TextMarker.d.ts +0 -17
- package/lib/es/components/map/components/features/basics/marker/TextMarker.js +0 -31
- package/lib/es/components/map/components/features/layers/IncidentsLayer.d.ts +0 -2
- package/lib/es/components/map/components/features/layers/IncidentsLayer.js +0 -27
- package/lib/es/components/map/components/features/layers/Layer.d.ts +0 -15
- package/lib/es/components/map/components/features/layers/Layer.js +0 -26
- package/lib/es/components/map/components/features/layers/MapBaseLayer.d.ts +0 -8
- package/lib/es/components/map/components/features/layers/MapBaseLayer.js +0 -35
- package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.d.ts +0 -2
- package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.js +0 -28
- package/lib/es/components/map/components/features/layers/TrafficLayer.d.ts +0 -2
- package/lib/es/components/map/components/features/layers/TrafficLayer.js +0 -41
- package/lib/es/components/map/components/features/layers/baselayers/DefaultRasterLayer.d.ts +0 -4
- package/lib/es/components/map/components/features/layers/baselayers/DefaultRasterLayer.js +0 -36
- package/lib/es/components/map/components/features/layers/baselayers/DefaultVectorLayer.d.ts +0 -4
- package/lib/es/components/map/components/features/layers/baselayers/DefaultVectorLayer.js +0 -16
- package/lib/es/components/map/components/features/layers/baselayers/FleetStyleLayer.d.ts +0 -4
- package/lib/es/components/map/components/features/layers/baselayers/FleetStyleLayer.js +0 -17
- package/lib/es/components/map/components/features/layers/baselayers/NightLayer.d.ts +0 -4
- package/lib/es/components/map/components/features/layers/baselayers/NightLayer.js +0 -16
- package/lib/es/components/map/components/features/layers/baselayers/SatelliteLayer.d.ts +0 -4
- package/lib/es/components/map/components/features/layers/baselayers/SatelliteLayer.js +0 -34
- package/lib/es/components/map/components/features/layers/baselayers/TerrainLayer.d.ts +0 -4
- package/lib/es/components/map/components/features/layers/baselayers/TerrainLayer.js +0 -17
- package/lib/es/components/map/components/features/layers/baselayers/useBaseLayer.d.ts +0 -11
- package/lib/es/components/map/components/features/layers/baselayers/useBaseLayer.js +0 -76
- package/lib/es/components/map/components/mapUtils.d.ts +0 -50
- package/lib/es/components/map/components/mapUtils.js +0 -154
- package/lib/es/components/map/herePolyfill.d.ts +0 -0
- package/lib/es/components/map/herePolyfill.js +0 -7
- package/lib/es/components/map/utils/proptypes.d.ts +0 -47
- package/lib/es/components/map/utils/proptypes.js +0 -53
- package/lib/es/components/map/utils/validation.d.ts +0 -2
- package/lib/es/components/map/utils/validation.js +0 -14
- package/lib/es/components/mapMarker/MarkerColor.d.ts +0 -3
- package/lib/es/components/mapMarker/MarkerColor.js +0 -15
- package/lib/es/components/menuItems/getMenuItems.d.ts +0 -2
- package/lib/es/components/menuItems/getMenuItems.js +0 -10
- package/lib/es/components/selects/BaseDropdownMenu.d.ts +0 -83
- package/lib/es/components/selects/BaseDropdownMenu.js +0 -260
- package/lib/es/components/selects/WithFeedback.d.ts +0 -27
- package/lib/es/components/selects/WithFeedback.js +0 -15
- package/lib/es/components/states/baseStatePropTypes.d.ts +0 -26
- package/lib/es/components/states/baseStatePropTypes.js +0 -30
- package/lib/es/components/table/tableSettingsPropTypes.d.ts +0 -8
- package/lib/es/components/table/tableSettingsPropTypes.js +0 -10
- package/lib/es/mapIndex.d.ts +0 -38
- package/lib/es/mapIndex.js +0 -77
- package/lib/es/styles/variables/colors.json +0 -74
- package/lib/es/themes/Volkswagen/components/applicationHeader/modulePropTypes.d.ts +0 -6
- package/lib/es/themes/Volkswagen/components/applicationHeader/modulePropTypes.js +0 -8
- package/lib/es/types.d.ts +0 -71
- package/lib/es/types.js +0 -2
- package/lib/es/utils/GroupSelectionUtil.d.ts +0 -1
- package/lib/es/utils/GroupSelectionUtil.js +0 -85
- package/lib/es/utils/addEventListener.d.ts +0 -3
- package/lib/es/utils/addEventListener.js +0 -17
- package/lib/es/utils/addFocusListener.d.ts +0 -3
- package/lib/es/utils/addFocusListener.js +0 -24
- package/lib/es/utils/getOffsetTopWholeScreen.d.ts +0 -1
- package/lib/es/utils/getOffsetTopWholeScreen.js +0 -9
- package/lib/es/utils/init.d.ts +0 -2
- package/lib/es/utils/init.js +0 -121
- package/lib/es/utils/logPropError.d.ts +0 -3
- package/lib/es/utils/logPropError.js +0 -28
- package/lib/es/utils/ownerDocument.d.ts +0 -1
- package/lib/es/utils/ownerDocument.js +0 -12
- package/mapIndex.d.ts +0 -38
- package/mapIndex.js +0 -42
- package/styles/variables/colors.json +0 -74
- package/themes/Volkswagen/components/applicationHeader/modulePropTypes.d.ts +0 -6
- package/themes/Volkswagen/components/applicationHeader/modulePropTypes.js +0 -5
- package/types.d.ts +0 -71
- package/types.js +0 -1
- package/utils/GroupSelectionUtil.d.ts +0 -1
- package/utils/GroupSelectionUtil.js +0 -80
- package/utils/addEventListener.d.ts +0 -3
- package/utils/addEventListener.js +0 -13
- package/utils/addFocusListener.d.ts +0 -3
- package/utils/addFocusListener.js +0 -21
- package/utils/getOffsetTopWholeScreen.d.ts +0 -1
- package/utils/getOffsetTopWholeScreen.js +0 -6
- package/utils/init.d.ts +0 -2
- package/utils/init.js +0 -117
- package/utils/logPropError.d.ts +0 -3
- package/utils/logPropError.js +0 -23
- package/utils/ownerDocument.d.ts +0 -1
- package/utils/ownerDocument.js +0 -8
package/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
// @ts-ignore-next-line importsNotUsedAsValues
|
|
4
|
+
import 'react';
|
|
5
|
+
import isEmpty from 'lodash/fp/isEmpty';
|
|
6
|
+
import union from 'lodash/fp/union';
|
|
7
|
+
import MapSettingsTile from '../MapSettingsTile';
|
|
8
|
+
import { MapIcon } from '../../../../icons/MapIcon';
|
|
9
|
+
const MapAdditionalLayerSettings = (props) => {
|
|
10
|
+
const { activeBuiltinLayers = [], activeLayers = [], layers = [] } = props, remainingProps = __rest(props, ["activeBuiltinLayers", "activeLayers", "layers"]);
|
|
11
|
+
const allActiveLayer = union(activeBuiltinLayers, activeLayers);
|
|
12
|
+
const isActive = !isEmpty(allActiveLayer);
|
|
13
|
+
return (_jsx(MapSettingsTile, Object.assign({ className: 'MapAdditionalLayerSettings', isActive: !isEmpty(allActiveLayer), activeIcon: isActive ? (_jsx(MapIcon, { name: 'rioglyph-layer-pois text-color-primary', className: 'MapAdditionalLayerIcon' })) : undefined, inactiveIcon: !isActive ? (_jsx(MapIcon, { name: 'rioglyph-layer-pois text-color-gray', className: 'MapAdditionalLayerIconInactive' })) : undefined, items: layers }, remainingProps)));
|
|
14
|
+
};
|
|
15
|
+
export default MapAdditionalLayerSettings;
|
|
@@ -3,6 +3,9 @@ export type MapClusterSettingsProps = {
|
|
|
3
3
|
onToggle?: (setShowCluster: boolean) => void;
|
|
4
4
|
onShowClusterChange?: (setShowCluster: boolean) => boolean;
|
|
5
5
|
showCluster?: boolean;
|
|
6
|
+
clusterEnabledLabel?: string | JSX.Element;
|
|
7
|
+
clusterDisabledLabel?: string | JSX.Element;
|
|
8
|
+
dropdownHeaderText?: string | JSX.Element;
|
|
6
9
|
tooltip?: string | React.ReactNode;
|
|
7
10
|
};
|
|
8
11
|
declare const MapClusterSettings: (props: MapClusterSettingsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,16 +3,22 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
// @ts-ignore-next-line importsNotUsedAsValues
|
|
4
4
|
import 'react';
|
|
5
5
|
import noop from 'lodash/fp/noop';
|
|
6
|
+
import compact from 'lodash/fp/compact';
|
|
6
7
|
import MapSettingsPanel from '../MapSettingsPanel';
|
|
7
8
|
import MapSettingsItem from '../MapSettingsItem';
|
|
8
9
|
import MapSettingsTile from '../MapSettingsTile';
|
|
9
10
|
import { MapIcon, CLUSTER_ACTIVE, CLUSTER_INACTIVE, NO_CLUSTER_ACTIVE, NO_CLUSTER_INACTIVE, } from '../../../../icons/MapIcon';
|
|
11
|
+
import MapSettingsDropdownHeader from '../items/MapSettingsDropdownHeader';
|
|
10
12
|
const MapClusterSettings = (props) => {
|
|
11
|
-
const { showCluster = true, onShowClusterChange = noop, onToggle = noop } = props, remainingProps = __rest(props, ["showCluster", "onShowClusterChange", "onToggle"]);
|
|
13
|
+
const { showCluster = true, onShowClusterChange = noop, onToggle = noop, clusterEnabledLabel, clusterDisabledLabel, dropdownHeaderText } = props, remainingProps = __rest(props, ["showCluster", "onShowClusterChange", "onToggle", "clusterEnabledLabel", "clusterDisabledLabel", "dropdownHeaderText"]);
|
|
12
14
|
const handleShowCluster = (setShowCluster) => {
|
|
13
15
|
onShowClusterChange(setShowCluster);
|
|
14
16
|
onToggle(setShowCluster);
|
|
15
17
|
};
|
|
16
|
-
|
|
18
|
+
const hasLabels = !!clusterEnabledLabel || !!clusterDisabledLabel;
|
|
19
|
+
const dropdownHeader = dropdownHeaderText && (_jsx(MapSettingsDropdownHeader, { label: dropdownHeaderText }, 'mapClusterDropdownHeader'));
|
|
20
|
+
const enableClusterButtons = (_jsx(MapSettingsItem, { onClick: () => handleShowCluster(true), isActive: showCluster, activeIcon: _jsx(MapIcon, { name: CLUSTER_ACTIVE, className: 'MapClusterIcon' }), inactiveIcon: _jsx(MapIcon, { name: CLUSTER_INACTIVE, className: 'MapClusterIconInactive' }), label: clusterEnabledLabel }, 'enableClusterButtons'));
|
|
21
|
+
const disableClusterButton = (_jsx(MapSettingsItem, { onClick: () => handleShowCluster(false), isActive: !showCluster, activeIcon: _jsx(MapIcon, { name: NO_CLUSTER_ACTIVE, className: 'MapNoClusterIcon' }), inactiveIcon: _jsx(MapIcon, { name: NO_CLUSTER_INACTIVE, className: 'MapNoClusterIconInactive' }), label: clusterDisabledLabel }, 'disableClusterButton'));
|
|
22
|
+
return (_jsx(MapSettingsTile, Object.assign({ className: 'MapClusterSettings', isActive: showCluster, activeIcon: _jsx(MapIcon, { name: CLUSTER_INACTIVE }), inactiveIcon: _jsx(MapIcon, { name: NO_CLUSTER_INACTIVE }), items: hasLabels ? compact([dropdownHeader, enableClusterButtons, disableClusterButton]) : undefined, panel: !hasLabels && (_jsxs(MapSettingsPanel, { children: [enableClusterButtons, disableClusterButton] })) }, remainingProps)));
|
|
17
23
|
};
|
|
18
24
|
export default MapClusterSettings;
|
|
@@ -7,17 +7,23 @@ import union from 'lodash/fp/union';
|
|
|
7
7
|
import noop from 'lodash/fp/noop';
|
|
8
8
|
import MapSettingsPanel from '../MapSettingsPanel';
|
|
9
9
|
import MapSettingsTile from '../MapSettingsTile';
|
|
10
|
-
import { MapIcon
|
|
10
|
+
import { MapIcon } from '../../../../icons/MapIcon';
|
|
11
11
|
const MapLayerSettings = (props) => {
|
|
12
|
+
var _a;
|
|
12
13
|
const { activeBuiltinLayers = [], activeLayers = [], layers = [], onMapLayerChange = noop } = props, remainingProps = __rest(props, ["activeBuiltinLayers", "activeLayers", "layers", "onMapLayerChange"]);
|
|
13
14
|
const allActiveLayer = union(activeBuiltinLayers, activeLayers);
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
const hasLabels = !!((_a = layers.at(0)) === null || _a === void 0 ? void 0 : _a.props.label);
|
|
16
|
+
const isActive = !isEmpty(allActiveLayer);
|
|
17
|
+
// Inject onMapLayerChange from the MapContext which will be handled
|
|
18
|
+
// in the main Map component.
|
|
19
|
+
const enrichedLayers = map(layer => {
|
|
20
|
+
var _a;
|
|
21
|
+
return React.cloneElement(layer, {
|
|
22
|
+
key: (_a = layer === null || layer === void 0 ? void 0 : layer.key) !== null && _a !== void 0 ? _a : `MapLayerSettings_${crypto.randomUUID()}`,
|
|
23
|
+
activeBuiltinLayers,
|
|
24
|
+
onMapLayerChange,
|
|
25
|
+
});
|
|
26
|
+
}, layers);
|
|
27
|
+
return (_jsx(MapSettingsTile, Object.assign({ className: 'MapLayerSettings', isActive: isActive, activeIcon: isActive ? (_jsx(MapIcon, { name: 'rioglyph-construction text-color-primary', className: 'MapLayerIcon' })) : undefined, inactiveIcon: !isActive ? (_jsx(MapIcon, { name: 'rioglyph-construction text-color-gray', className: 'MapLayerIconInactive' })) : undefined, items: hasLabels ? enrichedLayers : undefined, panel: !hasLabels && _jsx(MapSettingsPanel, { children: enrichedLayers }) }, remainingProps)));
|
|
22
28
|
};
|
|
23
29
|
export default MapLayerSettings;
|
|
@@ -4,7 +4,13 @@ export type MapTypeSettingsProps = {
|
|
|
4
4
|
mapType?: string;
|
|
5
5
|
enableNightMap?: boolean;
|
|
6
6
|
onMapTypeChange?: () => MapType;
|
|
7
|
+
defaultTypeLabel?: string | JSX.Element;
|
|
8
|
+
truckTypeLabel?: string | JSX.Element;
|
|
9
|
+
terrainTypeLabel?: string | JSX.Element;
|
|
10
|
+
satelliteTypeLabel?: string | JSX.Element;
|
|
11
|
+
nightTypeLabel?: string | JSX.Element;
|
|
7
12
|
tooltip?: string | React.ReactNode;
|
|
13
|
+
dropdownHeaderText?: string | JSX.Element;
|
|
8
14
|
};
|
|
9
15
|
declare const MapTypeSettings: (props: MapTypeSettingsProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
16
|
export default MapTypeSettings;
|
|
@@ -2,13 +2,15 @@ import { __rest } from "tslib";
|
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
4
|
import noop from 'lodash/fp/noop';
|
|
5
|
+
import compact from 'lodash/fp/compact';
|
|
5
6
|
import { MAP_TYPE_DEFAULT, MAP_TYPE_FLEET_STYLE, MAP_TYPE_NIGHT, MAP_TYPE_SATELLITE, MAP_TYPE_TERRAIN, } from '../../../constants';
|
|
6
7
|
import MapSettingsPanel from '../MapSettingsPanel';
|
|
7
8
|
import MapSettingsItem from '../MapSettingsItem';
|
|
8
9
|
import MapSettingsTile from '../MapSettingsTile';
|
|
9
10
|
import { MapIcon, MAP_TYPE_FLAT_ACTIVE, MAP_TYPE_FLAT_INACTIVE, MAP_TYPE_FLAT_TRUCK_ACTIVE, MAP_TYPE_FLAT_TRUCK_INACTIVE, MAP_TYPE_SATELLITE_ACTIVE, MAP_TYPE_SATELLITE_INACTIVE, MAP_TYPE_TERRAIN_ACTIVE, MAP_TYPE_TERRAIN_INACTIVE, MAP_TYPE_NIGHT_ACTIVE, MAP_TYPE_NIGHT_INACTIVE, } from '../../../../icons/MapIcon';
|
|
11
|
+
import MapSettingsDropdownHeader from '../items/MapSettingsDropdownHeader';
|
|
10
12
|
const MapTypeSettings = (props) => {
|
|
11
|
-
const { mapType, onMapTypeChange = noop, enableNightMap = true } = props, remainingProps = __rest(props, ["mapType", "onMapTypeChange", "enableNightMap"]);
|
|
13
|
+
const { mapType, onMapTypeChange = noop, enableNightMap = true, defaultTypeLabel, truckTypeLabel, terrainTypeLabel, satelliteTypeLabel, nightTypeLabel, dropdownHeaderText } = props, remainingProps = __rest(props, ["mapType", "onMapTypeChange", "enableNightMap", "defaultTypeLabel", "truckTypeLabel", "terrainTypeLabel", "satelliteTypeLabel", "nightTypeLabel", "dropdownHeaderText"]);
|
|
12
14
|
const type = useMemo(() => ({
|
|
13
15
|
isDefault: mapType === MAP_TYPE_DEFAULT,
|
|
14
16
|
isFleetStyle: mapType === MAP_TYPE_FLEET_STYLE,
|
|
@@ -33,6 +35,22 @@ const MapTypeSettings = (props) => {
|
|
|
33
35
|
return _jsx(MapIcon, { name: MAP_TYPE_NIGHT_INACTIVE });
|
|
34
36
|
}
|
|
35
37
|
};
|
|
36
|
-
|
|
38
|
+
const dropdownHeader = dropdownHeaderText && (_jsx(MapSettingsDropdownHeader, { label: dropdownHeaderText }, 'mapTypeDropdownHeader'));
|
|
39
|
+
const mapTypeNight = (_jsx(MapSettingsItem, { className: 'MapTypeNight', onClick: () => onMapTypeChange(MAP_TYPE_NIGHT), isActive: type.isNight, activeIcon: _jsx(MapIcon, { name: MAP_TYPE_NIGHT_ACTIVE }), inactiveIcon: _jsx(MapIcon, { name: MAP_TYPE_NIGHT_INACTIVE }), label: nightTypeLabel }, 'MapTypeNight'));
|
|
40
|
+
const mapTypeSatellite = (_jsx(MapSettingsItem, { className: 'MapTypeSatellite', onClick: () => onMapTypeChange(MAP_TYPE_SATELLITE), isActive: type.isSatellite, activeIcon: _jsx(MapIcon, { name: MAP_TYPE_SATELLITE_ACTIVE }), inactiveIcon: _jsx(MapIcon, { name: MAP_TYPE_SATELLITE_INACTIVE }), label: satelliteTypeLabel }, 'MapTypeSatellite'));
|
|
41
|
+
const mapTypeTerrain = (_jsx(MapSettingsItem, { className: 'MapTypeTerrain', onClick: () => onMapTypeChange(MAP_TYPE_TERRAIN), isActive: type.isTerrain, activeIcon: _jsx(MapIcon, { name: MAP_TYPE_TERRAIN_ACTIVE }), inactiveIcon: _jsx(MapIcon, { name: MAP_TYPE_TERRAIN_INACTIVE }), label: terrainTypeLabel }, 'MapTypeTerrain'));
|
|
42
|
+
const mapTypeTruck = (_jsx(MapSettingsItem, { className: 'MapTypeFlatTruck', onClick: () => onMapTypeChange(MAP_TYPE_FLEET_STYLE), isActive: type.isFleetStyle, activeIcon: _jsx(MapIcon, { name: MAP_TYPE_FLAT_TRUCK_ACTIVE }), inactiveIcon: _jsx(MapIcon, { name: MAP_TYPE_FLAT_TRUCK_INACTIVE }), label: truckTypeLabel }, 'MapTypeFlatTruck'));
|
|
43
|
+
const mapTypeDefault = (_jsx(MapSettingsItem, { className: 'MapTypeFlat', onClick: () => onMapTypeChange(MAP_TYPE_DEFAULT), isActive: type.isDefault, activeIcon: _jsx(MapIcon, { name: MAP_TYPE_FLAT_ACTIVE }), inactiveIcon: _jsx(MapIcon, { name: MAP_TYPE_FLAT_INACTIVE }), label: defaultTypeLabel }, 'MapTypeFlat'));
|
|
44
|
+
const hasLabels = !!defaultTypeLabel || !!truckTypeLabel || !!terrainTypeLabel || !!satelliteTypeLabel || !!nightTypeLabel;
|
|
45
|
+
return (_jsx(MapSettingsTile, Object.assign({ className: 'MapTypeSettings', inactiveIcon: getIcon(type), items: hasLabels
|
|
46
|
+
? compact([
|
|
47
|
+
dropdownHeader,
|
|
48
|
+
mapTypeNight,
|
|
49
|
+
mapTypeSatellite,
|
|
50
|
+
mapTypeTerrain,
|
|
51
|
+
mapTypeTruck,
|
|
52
|
+
mapTypeDefault,
|
|
53
|
+
])
|
|
54
|
+
: undefined, panel: !hasLabels && (_jsxs(MapSettingsPanel, { children: [enableNightMap && mapTypeNight, mapTypeSatellite, mapTypeTerrain, mapTypeTruck, mapTypeDefault] })) }, remainingProps)));
|
|
37
55
|
};
|
|
38
56
|
export default MapTypeSettings;
|
|
@@ -3,9 +3,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
// @ts-ignore-next-line importsNotUsedAsValues
|
|
4
4
|
import 'react';
|
|
5
5
|
import MapSettingsTile from '../MapSettingsTile';
|
|
6
|
-
import { MapIcon
|
|
6
|
+
import { MapIcon } from '../../../../icons/MapIcon';
|
|
7
7
|
const MapCenterMarkerButton = (props) => {
|
|
8
8
|
const { isActive = false, onToggle } = props, remainingProps = __rest(props, ["isActive", "onToggle"]);
|
|
9
|
-
return (_jsx(MapSettingsTile, Object.assign({ className: 'MapCenterMarkerButton', isActive: isActive, activeIcon: _jsx(MapIcon, { name:
|
|
9
|
+
return (_jsx(MapSettingsTile, Object.assign({ className: 'MapCenterMarkerButton', isActive: isActive, activeIcon: isActive ? (_jsx(MapIcon, { name: 'rioglyph-position text-color-primary', className: 'MapCenterMarkerButtonIcon' })) : undefined, inactiveIcon: !isActive ? (_jsx(MapIcon, { name: 'rioglyph-position text-color-gray', className: 'MapCenterMarkerButtonIconInactive' })) : undefined, onToggle: onToggle }, remainingProps)));
|
|
10
10
|
};
|
|
11
11
|
export default MapCenterMarkerButton;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export type MapCustomerPoiSettingsItemProps = {
|
|
2
3
|
onToggle?: (setIsShown: boolean) => void;
|
|
3
4
|
isActive?: boolean;
|
|
5
|
+
label?: string | JSX.Element;
|
|
4
6
|
};
|
|
5
7
|
declare const MapCustomerPoiSettingsItem: (props: MapCustomerPoiSettingsItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
8
|
export default MapCustomerPoiSettingsItem;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type DropdownHeaderProps } from '../../../../../selects/DropdownHeader';
|
|
2
|
+
export type MapSettingsDropdownHeaderProps = DropdownHeaderProps & {};
|
|
3
|
+
declare const MapSettingsDropdownHeader: (props: MapSettingsDropdownHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default MapSettingsDropdownHeader;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import 'react';
|
|
4
|
+
import DropdownHeader from '../../../../../selects/DropdownHeader';
|
|
5
|
+
const MapSettingsDropdownHeader = (props) => {
|
|
6
|
+
const remainingProps = __rest(props, []);
|
|
7
|
+
return _jsx(DropdownHeader, Object.assign({ className: 'MapSettingsDropdownHeader' }, remainingProps));
|
|
8
|
+
};
|
|
9
|
+
export default MapSettingsDropdownHeader;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export type MapWorkshopPoiSettingsItemProps = {
|
|
2
3
|
onToggle?: (setIsShown: boolean) => void;
|
|
3
4
|
isActive?: boolean;
|
|
5
|
+
label?: string | JSX.Element;
|
|
4
6
|
};
|
|
5
7
|
declare const MapWorkshopPoiSettingsItem: (props: MapWorkshopPoiSettingsItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
8
|
export default MapWorkshopPoiSettingsItem;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
export type MapIconProps = {
|
|
3
2
|
name?: string;
|
|
4
3
|
height?: number;
|
|
5
4
|
width?: number;
|
|
6
5
|
className?: string;
|
|
7
6
|
};
|
|
8
|
-
export declare const MapIcon: (props: MapIconProps) =>
|
|
7
|
+
export declare const MapIcon: (props: MapIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export declare const ZOOM_IN = "zoomIn";
|
|
10
9
|
export declare const ZOOM_OUT = "zoomOut";
|
|
11
10
|
export declare const BOUNDING_BOX_ACTIVE = "boundingBoxActive";
|
|
@@ -3,7 +3,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
export const MapIcon = (props) => {
|
|
5
5
|
const { className = '', name = '', height = 40, width = 40 } = props;
|
|
6
|
-
|
|
6
|
+
if (name.includes('rioglyph')) {
|
|
7
|
+
return (_jsx("div", Object.assign({ className: 'height-40 width-40 text-size-16 display-grid place-items-center hover-scale-110' }, { children: _jsx("span", { className: `rioglyph ${name} text-size-200pct` }) })));
|
|
8
|
+
}
|
|
7
9
|
return React.cloneElement(icons[name], {
|
|
8
10
|
className,
|
|
9
11
|
height,
|
|
@@ -161,6 +161,6 @@ export type IncidentDataPoint = {
|
|
|
161
161
|
roadClosed: boolean;
|
|
162
162
|
position: Position;
|
|
163
163
|
};
|
|
164
|
-
export declare const markerColorOptions: readonly ["bg-map-marker-asset", "bg-map-marker-poi", "bg-map-marker-geofence", "bg-map-marker-route"];
|
|
164
|
+
export declare const markerColorOptions: readonly ["bg-map-marker-asset", "bg-map-marker-poi", "bg-map-marker-geofence", "bg-map-marker-route", "bg-map-marker-info", "bg-map-marker-success", "bg-map-marker-warning", "bg-map-marker-danger"];
|
|
165
165
|
export type MarkerColor = (typeof markerColorOptions)[number];
|
|
166
166
|
export declare const markerColorMapping: Record<MarkerColor, string>;
|
|
@@ -15,10 +15,18 @@ export const markerColorOptions = [
|
|
|
15
15
|
'bg-map-marker-poi',
|
|
16
16
|
'bg-map-marker-geofence',
|
|
17
17
|
'bg-map-marker-route',
|
|
18
|
+
'bg-map-marker-info',
|
|
19
|
+
'bg-map-marker-success',
|
|
20
|
+
'bg-map-marker-warning',
|
|
21
|
+
'bg-map-marker-danger',
|
|
18
22
|
];
|
|
19
23
|
export const markerColorMapping = {
|
|
20
|
-
'bg-map-marker-asset': 'map-marker-
|
|
21
|
-
'bg-map-marker-poi': 'map-marker-
|
|
22
|
-
'bg-map-marker-geofence': 'map-marker-
|
|
23
|
-
'bg-map-marker-route': 'map-marker-
|
|
24
|
+
'bg-map-marker-asset': '--color-map-marker-asset',
|
|
25
|
+
'bg-map-marker-poi': '--color-map-marker-poi',
|
|
26
|
+
'bg-map-marker-geofence': '--color-map-marker-geofence',
|
|
27
|
+
'bg-map-marker-route': '--color-map-marker-route',
|
|
28
|
+
'bg-map-marker-info': '--color-map-marker-info',
|
|
29
|
+
'bg-map-marker-success': '--color-map-marker-success',
|
|
30
|
+
'bg-map-marker-warning': '--color-map-marker-warning',
|
|
31
|
+
'bg-map-marker-danger': '--color-map-marker-danger',
|
|
24
32
|
};
|
|
@@ -36,6 +36,10 @@ export type ClusterMapMarkerProps = {
|
|
|
36
36
|
* - `bg-map-marker-poi`
|
|
37
37
|
* - `bg-map-marker-geofence`
|
|
38
38
|
* - `bg-map-marker-route`
|
|
39
|
+
* - `bg-map-marker-info`
|
|
40
|
+
* - `bg-map-marker-success`
|
|
41
|
+
* - `bg-map-marker-warning`
|
|
42
|
+
* - `bg-map-marker-danger`
|
|
39
43
|
*
|
|
40
44
|
* @default 'bg-map-marker-asset'
|
|
41
45
|
*/
|
|
@@ -44,6 +48,10 @@ export type ClusterMapMarkerProps = {
|
|
|
44
48
|
* Name of a rioglyph icon.
|
|
45
49
|
*/
|
|
46
50
|
iconName?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Marker cursor
|
|
53
|
+
*/
|
|
54
|
+
cursor?: 'cursor-pointer' | 'cursor-grab' | 'cursor-not-allowed';
|
|
47
55
|
};
|
|
48
56
|
declare const ClusterMapMarker: (props: ClusterMapMarkerProps) => import("react/jsx-runtime").JSX.Element;
|
|
49
57
|
export default ClusterMapMarker;
|
|
@@ -3,9 +3,10 @@ import 'react';
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { markerColorMapping } from '../map/utils/mapTypes';
|
|
5
5
|
const ClusterMapMarker = (props) => {
|
|
6
|
-
const { count, exceptionCount = 0, markerColor = 'bg-map-marker-asset', warningCount = 0, active = false, clickable = true, iconName, } = props;
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
6
|
+
const { count, exceptionCount = 0, markerColor = 'bg-map-marker-asset', warningCount = 0, active = false, clickable = true, iconName, cursor = 'cursor-pointer', } = props;
|
|
7
|
+
const clusterClasses = classNames('rio-map-cluster-circle', active && 'active', cursor);
|
|
8
|
+
const classes = classNames(active && 'active', 'rio-map-marker', 'rio-map-marker-center-center', !clickable && 'not-clickable');
|
|
9
|
+
const markerBackgroundColor = `var(${markerColorMapping[markerColor]})`;
|
|
10
|
+
return (_jsx("div", Object.assign({ className: classes, style: { color: markerBackgroundColor }, "data-marker-type": markerColor.replace('bg-', 'cluster-') }, { children: _jsx("div", Object.assign({ className: 'rio-map-marker-translate' }, { children: _jsxs("div", Object.assign({ className: 'rio-map-cluster' }, { children: [_jsx("div", Object.assign({ className: clusterClasses }, { children: _jsxs("div", Object.assign({ className: 'rio-map-cluster-content' }, { children: [iconName && _jsx("div", { className: `rio-map-icon rioglyph rioglyph-${iconName}` }), _jsx("div", Object.assign({ className: 'rio-map-count' }, { children: count }))] })) })), exceptionCount > 0 && _jsx("div", Object.assign({ className: 'rio-map-bubble exception' }, { children: exceptionCount })), warningCount > 0 && _jsx("div", Object.assign({ className: 'rio-map-bubble warning' }, { children: warningCount }))] })) })) })));
|
|
10
11
|
};
|
|
11
12
|
export default ClusterMapMarker;
|
|
@@ -4,7 +4,7 @@ export type SingleMapMarkerProps = {
|
|
|
4
4
|
/**
|
|
5
5
|
* Defines the rotation of the arrow in deg.
|
|
6
6
|
*
|
|
7
|
-
* @default
|
|
7
|
+
* @default 60
|
|
8
8
|
*/
|
|
9
9
|
bearing?: number;
|
|
10
10
|
/**
|
|
@@ -42,11 +42,21 @@ export type SingleMapMarkerProps = {
|
|
|
42
42
|
*/
|
|
43
43
|
fixed?: boolean;
|
|
44
44
|
/**
|
|
45
|
-
* Defines
|
|
45
|
+
* Defines whether the direction icon is displayed or not.
|
|
46
46
|
*
|
|
47
47
|
* @default false
|
|
48
48
|
*/
|
|
49
49
|
moving?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Optional icon that is shown in the state indicator and used instead of the moving direction arrow.
|
|
52
|
+
*/
|
|
53
|
+
stateIconName?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Defines if marker is displayed with pinging animation.
|
|
56
|
+
*
|
|
57
|
+
* @default false
|
|
58
|
+
*/
|
|
59
|
+
pinging?: boolean;
|
|
50
60
|
/**
|
|
51
61
|
* List of rioglyph icon names.
|
|
52
62
|
*/
|
|
@@ -59,6 +69,10 @@ export type SingleMapMarkerProps = {
|
|
|
59
69
|
* - `bg-map-marker-poi`
|
|
60
70
|
* - `bg-map-marker-geofence`
|
|
61
71
|
* - `bg-map-marker-route`
|
|
72
|
+
* - `bg-map-marker-info`
|
|
73
|
+
* - `bg-map-marker-success`
|
|
74
|
+
* - `bg-map-marker-warning`
|
|
75
|
+
* - `bg-map-marker-danger`
|
|
62
76
|
*
|
|
63
77
|
* @default 'bg-map-marker-asset'
|
|
64
78
|
*/
|
|
@@ -68,7 +82,11 @@ export type SingleMapMarkerProps = {
|
|
|
68
82
|
*/
|
|
69
83
|
textColor?: string;
|
|
70
84
|
/**
|
|
71
|
-
*
|
|
85
|
+
* @deprecated please use `anchorSize`
|
|
86
|
+
*/
|
|
87
|
+
size?: 'md' | 'lg';
|
|
88
|
+
/**
|
|
89
|
+
* Used to control the marker's anchor size.
|
|
72
90
|
*
|
|
73
91
|
* Possible values are:
|
|
74
92
|
* - `md`
|
|
@@ -76,13 +94,30 @@ export type SingleMapMarkerProps = {
|
|
|
76
94
|
*
|
|
77
95
|
* @default 'md'
|
|
78
96
|
*/
|
|
79
|
-
|
|
97
|
+
anchorSize?: 'md' | 'lg';
|
|
98
|
+
/**
|
|
99
|
+
* @deprecated please use `markerOnHover`
|
|
100
|
+
*/
|
|
101
|
+
visibleOnHover?: boolean;
|
|
80
102
|
/**
|
|
81
103
|
* Whether the marker is only visible on hover.
|
|
82
104
|
*
|
|
83
105
|
* @default false
|
|
84
106
|
*/
|
|
85
|
-
|
|
107
|
+
markerOnHover?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Optional icon that is shown on the anchor of the DOM marker.
|
|
110
|
+
* Use this when no marker content is shown.
|
|
111
|
+
*/
|
|
112
|
+
anchorIconName?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Shows only the anchor without the rest of the marker.
|
|
115
|
+
*/
|
|
116
|
+
anchorOnly?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Marker cursor
|
|
119
|
+
*/
|
|
120
|
+
cursor?: 'cursor-pointer' | 'cursor-grab' | 'cursor-not-allowed';
|
|
86
121
|
};
|
|
87
122
|
declare const SingleMapMarker: (props: SingleMapMarkerProps) => import("react/jsx-runtime").JSX.Element;
|
|
88
123
|
export default SingleMapMarker;
|
|
@@ -1,14 +1,27 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
// @ts-ignore-next-line importsNotUsedAsValues
|
|
3
3
|
import 'react';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import { markerColorMapping } from '../map/utils/mapTypes';
|
|
6
|
-
const
|
|
6
|
+
const DEFAULT_BEARING = 60;
|
|
7
|
+
const MapStateIndicator = (props) => {
|
|
8
|
+
const { moving, bearing, stateIconName } = props;
|
|
9
|
+
if (!moving && !stateIconName) {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
const stateClassName = classNames('rio-map-direction', // TODO: backwards-compatible - remove in future releases
|
|
13
|
+
'rio-map-marker-state', 'rioglyph', `rioglyph-${stateIconName || 'direction'}`);
|
|
14
|
+
const style = stateIconName ? {} : { transform: `rotate(${bearing}deg)` };
|
|
15
|
+
return _jsx("div", { className: stateClassName, style: style });
|
|
16
|
+
};
|
|
7
17
|
const getIcons = (iconNames = []) => iconNames.map((name, index) => (_jsx("div", { className: `rio-map-icon rioglyph rioglyph-${name}` }, `rio-map-icon-${name}-${index}`)));
|
|
8
18
|
const SingleMapMarker = (props) => {
|
|
9
|
-
const { bearing =
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
|
|
19
|
+
const { bearing = DEFAULT_BEARING, name, warningCount = 0, exceptionCount = 0, active = false, clickable = true, fixed = false, moving = false, pinging = false, anchorIconName, stateIconName, iconNames, markerColor = 'bg-map-marker-asset', textColor, anchorSize, markerOnHover = false, anchorOnly = !name && !iconNames, cursor = 'cursor-pointer', } = props;
|
|
20
|
+
const largeAnchor = anchorSize === 'lg';
|
|
21
|
+
const classes = classNames(active && 'active', 'rio-map-marker', 'rio-map-marker-bottom-center', !clickable && 'not-clickable');
|
|
22
|
+
const anchorClasses = classNames('rio-map-anchor', largeAnchor ? 'rio-map-anchor-lg' : '', cursor);
|
|
23
|
+
const singleClasses = classNames('rio-map-single', fixed && 'fixed', moving && 'moving', textColor, markerOnHover && 'visible-on-hover', active && 'active', pinging && 'pinging', cursor);
|
|
24
|
+
const markerBackgroundColor = `var(${markerColorMapping[markerColor]})`;
|
|
25
|
+
return (_jsx("div", Object.assign({ className: classes, style: { color: markerBackgroundColor }, "data-marker-type": markerColor.replace('bg-', 'single-') }, { children: _jsxs("div", Object.assign({ className: 'rio-map-marker-translate' }, { children: [!anchorOnly && (_jsxs(_Fragment, { children: [_jsxs("div", Object.assign({ className: singleClasses }, { children: [_jsx(MapStateIndicator, { moving: moving, bearing: bearing, stateIconName: stateIconName }), getIcons(iconNames), name && _jsx("div", Object.assign({ className: 'rio-map-name' }, { children: name })), exceptionCount > 0 && _jsx("div", Object.assign({ className: 'rio-map-bubble exception' }, { children: exceptionCount })), warningCount > 0 && _jsx("div", Object.assign({ className: 'rio-map-bubble warning' }, { children: warningCount }))] })), _jsx("div", { className: 'rio-map-anchor-arrow' })] })), _jsx("div", Object.assign({ className: anchorClasses }, { children: anchorIconName && largeAnchor && _jsx("span", { className: `rioglyph rioglyph-${anchorIconName}` }) }))] })) })));
|
|
13
26
|
};
|
|
14
27
|
export default SingleMapMarker;
|
|
@@ -3,6 +3,7 @@ export type DropdownHeaderProps = {
|
|
|
3
3
|
icon?: React.ReactNode;
|
|
4
4
|
center?: boolean;
|
|
5
5
|
label: string | React.ReactNode;
|
|
6
|
+
className?: string;
|
|
6
7
|
};
|
|
7
8
|
declare const DropdownHeader: (props: DropdownHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export default DropdownHeader;
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
// @ts-ignore-next-line importsNotUsedAsValues
|
|
3
3
|
import 'react';
|
|
4
4
|
const DropdownHeader = (props) => {
|
|
5
|
-
const { icon, label, center = true } = props;
|
|
6
|
-
return (_jsx("li", Object.assign({ className: `dropdown-header ${center ? 'center' : ''}` }, { children: _jsxs("span", Object.assign({ className: 'dropdown-header-text' }, { children: [icon && _jsx("span", Object.assign({ className: 'margin-right-5' }, { children: icon })), label] })) })));
|
|
5
|
+
const { icon, label, center = true, className = '' } = props;
|
|
6
|
+
return (_jsx("li", Object.assign({ className: `dropdown-header ${center ? 'center' : ''} ${className}` }, { children: _jsxs("span", Object.assign({ className: 'dropdown-header-text' }, { children: [icon && _jsx("span", Object.assign({ className: 'margin-right-5' }, { children: icon })), label] })) })));
|
|
7
7
|
};
|
|
8
8
|
export default DropdownHeader;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
// @ts-ignore-next-line importsNotUsedAsValues
|
|
4
4
|
import { useRef, useState } from 'react';
|
|
5
5
|
import classNames from 'classnames';
|
|
@@ -75,7 +75,7 @@ const Multiselect = (props) => {
|
|
|
75
75
|
const wrapperClassNames = classNames('dropdown-toggle', 'form-control', 'text-left', bsSize === 'sm' && 'input-sm', bsSize === 'lg' && 'input-lg', multiline && 'height-auto', disabled && 'disabled');
|
|
76
76
|
const showPlaceholder = isEmpty(selectedItemIds) && !showUnselectedItemIcons;
|
|
77
77
|
const showFilter = useFilter && isOpen && !counterMessage && !renderCounterMessage;
|
|
78
|
-
const toggleButton = (_jsxs("button", Object.assign({ type: 'button', id: id, name: name, className: wrapperClassNames, "data-toggle": 'dropdown', tabIndex: tabIndex, "aria-haspopup": 'true', "aria-expanded": isOpen, onClick: onToggle, onKeyDown: handleToggleKeyDown, ref: refToggle }, { children: [showPlaceholder ? _jsx(MultiselectTogglePlaceholder, { placeholder: placeholder }) : renderSelection(), showFilter && !multiline && renderFilter(), _jsx("span", { className: 'caret' })] })));
|
|
78
|
+
const toggleButton = (_jsxs("button", Object.assign({ type: 'button', id: id, name: name, className: wrapperClassNames, "data-toggle": 'dropdown', tabIndex: tabIndex, "aria-haspopup": 'true', "aria-expanded": isOpen, onClick: onToggle, onKeyDown: handleToggleKeyDown, ref: refToggle }, { children: [showPlaceholder ? (_jsxs(_Fragment, { children: [_jsx(MultiselectTogglePlaceholder, { placeholder: placeholder }), showFilter && renderFilter()] })) : (renderSelection()), showFilter && !multiline && renderFilter(), _jsx("span", { className: 'caret' })] })));
|
|
79
79
|
if (!inputAddon && !errorMessage && !warningMessage) {
|
|
80
80
|
return toggleButton;
|
|
81
81
|
}
|
|
@@ -5,7 +5,7 @@ import classNames from 'classnames';
|
|
|
5
5
|
import isEmpty from 'lodash/fp/isEmpty';
|
|
6
6
|
const MultiselectToggleFilter = (props) => {
|
|
7
7
|
const { isActive, selectedItemIds, filterValue, multiline, onFilterChange } = props;
|
|
8
|
-
const inputClasses = classNames('multiselect-filter-input', isEmpty(selectedItemIds) && 'multiselect-filter-input-placeholder', isActive && 'multiselect-filter-input-active'
|
|
8
|
+
const inputClasses = classNames('multiselect-filter-input', isEmpty(selectedItemIds) && 'multiselect-filter-input-placeholder', isActive && 'multiselect-filter-input-active');
|
|
9
9
|
return (_jsx("input", { type: 'text', role: 'searchbox', className: inputClasses,
|
|
10
10
|
// biome-ignore lint/a11y/noAutofocus: autofocus is intentionally set to allow instant typing to filter
|
|
11
11
|
autoFocus: true, onChange: onFilterChange, defaultValue: filterValue }));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
// @ts-ignore-next-line importsNotUsedAsValues
|
|
4
4
|
import 'react';
|
|
5
5
|
import classNames from 'classnames';
|
|
@@ -11,23 +11,36 @@ const justify = {
|
|
|
11
11
|
center: 'justify-content-center',
|
|
12
12
|
right: 'justify-content-end',
|
|
13
13
|
};
|
|
14
|
+
const renderButtons = (buttons) => {
|
|
15
|
+
if (isEmpty(buttons)) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
if (buttons.length === 1) {
|
|
19
|
+
return (_jsx("div", Object.assign({ className: 'btn-toolbar margin-top-20' }, { children: _jsx(StateButton, Object.assign({}, buttons[0])) })));
|
|
20
|
+
}
|
|
21
|
+
if (buttons.length === 2) {
|
|
22
|
+
return (_jsx("div", Object.assign({ className: 'btn-toolbar margin-top-20 justify-content-center-xs' }, { children: buttons.map((buttonProps, index) => (_jsx(StateButton, Object.assign({}, buttonProps), index))) })));
|
|
23
|
+
}
|
|
24
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", Object.assign({ className: 'btn-toolbar margin-top-20 justify-content-center-xs' }, { children: [_jsx(StateButton, Object.assign({}, buttons[0]), '1'), _jsx(StateButton, Object.assign({}, buttons[1]), '2')] })), _jsx("div", Object.assign({ className: 'btn-toolbar' }, { children: buttons.map((buttonProps, index) => {
|
|
25
|
+
return index > 1 && _jsx(StateButton, Object.assign({}, buttonProps), index);
|
|
26
|
+
}) }))] }));
|
|
27
|
+
};
|
|
14
28
|
const CustomState = (props) => {
|
|
15
|
-
const { icon
|
|
16
|
-
const hasCustomInnerPadding = innerClassName
|
|
17
|
-
const hasCustomOuterPadding = outerClassName
|
|
29
|
+
const { icon, icons = [], image, headline, message, buttons = [], alignment = 'center', fullWidth = false, condensed = false, outerClassName, innerClassName, children } = props, remainingProps = __rest(props, ["icon", "icons", "image", "headline", "message", "buttons", "alignment", "fullWidth", "condensed", "outerClassName", "innerClassName", "children"]);
|
|
30
|
+
const hasCustomInnerPadding = innerClassName === null || innerClassName === void 0 ? void 0 : innerClassName.includes('padding');
|
|
31
|
+
const hasCustomOuterPadding = outerClassName === null || outerClassName === void 0 ? void 0 : outerClassName.includes('padding');
|
|
18
32
|
const wrapperClasses = classNames('margin-0', 'width-100pct', !fullWidth && 'max-width-600', 'panel-default', 'panel', !hasCustomOuterPadding && condensed ? 'padding-10' : 'padding-15', outerClassName && outerClassName);
|
|
19
33
|
const innerClassNames = classNames('display-flex', 'flex-column', 'align-items-center', 'text-center', !hasCustomInnerPadding && condensed ? 'padding-15' : 'padding-25', innerClassName && innerClassName);
|
|
20
34
|
const iconClasses = classNames(condensed ? 'text-size-16 margin-bottom-10' : 'text-size-h2 margin-bottom-20');
|
|
21
35
|
const iconsClasses = classNames(condensed ? 'text-size-16 margin-bottom-10' : 'text-size-h2 margin-bottom-20', 'display-flex', 'align-items-center', 'max-width-100pct');
|
|
22
|
-
const headlineClassNames = classNames(condensed ? 'text-size-h4' : 'text-size-h3 text-size-h2-
|
|
23
|
-
const renderButtons = (_jsx("div", Object.assign({ className: 'btn-toolbar margin-top-20' }, { children: buttons.map((buttonProps, index) => (_jsx(StateButton, Object.assign({}, buttonProps), index))) })));
|
|
36
|
+
const headlineClassNames = classNames(condensed ? 'text-size-h4' : 'text-size-h3 text-size-h2-xl', 'line-height-125rel', 'text-color-dark', 'text-medium', 'width-500', 'max-width-100pct', 'text-wrap-balance');
|
|
24
37
|
const renderIcon = (_jsx("div", Object.assign({ className: iconClasses }, { children: _jsx(StateIcon, { name: icon }) })));
|
|
25
38
|
const renderIcons = (_jsx("div", Object.assign({ className: iconsClasses }, { children: icons.map((iconProps, index) => (_jsx(StateIcon, Object.assign({}, iconProps), index))) })));
|
|
26
39
|
const renderChildren = _jsx("div", Object.assign({ className: 'width-500 max-width-100pct margin-top-25' }, { children: children }));
|
|
27
40
|
const renderHeadline = _jsx("div", Object.assign({ className: headlineClassNames }, { children: headline }));
|
|
28
|
-
const renderMessage = _jsx("div", Object.assign({ className: 'text-color-dark margin-top-15 width-500 max-width-100pct' }, { children: message }));
|
|
41
|
+
const renderMessage = (_jsx("div", Object.assign({ className: 'text-color-dark margin-top-15 width-500 max-width-100pct text-wrap-balance' }, { children: message })));
|
|
29
42
|
const singleOrMultiIcon = isEmpty(icons) ? renderIcon : renderIcons;
|
|
30
43
|
const imageOrIcon = image ? image : singleOrMultiIcon;
|
|
31
|
-
return (_jsx("div", Object.assign({ className: `display-flex ${justify[alignment]} max-width-100pct` }, remainingProps, { children: _jsx("div", Object.assign({ className: wrapperClasses }, { children: _jsxs("div", Object.assign({ className: innerClassNames }, { children: [imageOrIcon, headline && renderHeadline, message && renderMessage,
|
|
44
|
+
return (_jsx("div", Object.assign({ className: `display-flex ${justify[alignment]} max-width-100pct` }, remainingProps, { children: _jsx("div", Object.assign({ className: wrapperClasses }, { children: _jsxs("div", Object.assign({ className: innerClassNames }, { children: [imageOrIcon, headline && renderHeadline, message && renderMessage, renderButtons(buttons), children && renderChildren] })) })) })));
|
|
32
45
|
};
|
|
33
46
|
export default CustomState;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { BUTTON_STYLE } from '../../Button';
|
|
2
3
|
export type StateButtonProps = {
|
|
3
4
|
/**
|
|
4
5
|
* The button text.
|
|
@@ -18,10 +19,16 @@ export type StateButtonProps = {
|
|
|
18
19
|
* This way it will render a link button instead.
|
|
19
20
|
*/
|
|
20
21
|
href?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The style of the button.
|
|
24
|
+
*
|
|
25
|
+
* @default 'primary'
|
|
26
|
+
*/
|
|
27
|
+
bsStyle?: BUTTON_STYLE;
|
|
21
28
|
/**
|
|
22
29
|
* Additional classes assigned to the button.
|
|
23
30
|
*/
|
|
24
31
|
className?: string;
|
|
25
32
|
};
|
|
26
|
-
declare const StateButton: (
|
|
33
|
+
declare const StateButton: (props: StateButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
34
|
export default StateButton;
|