@zendir/ui 0.4.1 → 0.6.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/CHANGELOG.md +34 -0
- package/README.md +640 -631
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/index.js +17 -221
- package/dist/react/3d/CesiumCaptureSource.d.ts +0 -1
- package/dist/react/3d/CesiumCaptureSource.js +364 -283
- package/dist/react/3d/CesiumCaptureSource.js.map +1 -1
- package/dist/react/3d/ZenSpace3D.d.ts +2 -3
- package/dist/react/3d/ZenSpace3D.js +1681 -1237
- package/dist/react/3d/ZenSpace3D.js.map +1 -1
- package/dist/react/3d/ZenSpace3DCesium.d.ts +0 -1
- package/dist/react/3d/ZenSpace3DCesium.js +513 -560
- package/dist/react/3d/ZenSpace3DCesium.js.map +1 -1
- package/dist/react/3d/ZenSpace3DShaders.js +61 -66
- package/dist/react/3d/ZenSpace3DShaders.js.map +1 -1
- package/dist/react/3d/ZenSpace3DTypes.d.ts +19 -20
- package/dist/react/3d/ZenSpace3DUtils.d.ts +0 -1
- package/dist/react/3d/ZenSpace3DUtils.js +37 -24
- package/dist/react/3d/ZenSpace3DUtils.js.map +1 -1
- package/dist/react/3d/capturePngAnalysis.js +42 -36
- package/dist/react/3d/capturePngAnalysis.js.map +1 -1
- package/dist/react/3d/index.d.ts +3 -3
- package/dist/react/3d/index.js +5 -53
- package/dist/react/3d/threeLoader.d.ts +1 -1
- package/dist/react/3d/threeLoader.js +23 -18
- package/dist/react/3d/threeLoader.js.map +1 -1
- package/dist/react/astro/ClassificationBanner.d.ts +2 -3
- package/dist/react/astro/ClassificationBanner.js +95 -79
- package/dist/react/astro/ClassificationBanner.js.map +1 -1
- package/dist/react/astro/GlobalStatusBar.d.ts +0 -1
- package/dist/react/astro/GlobalStatusBar.js +157 -163
- package/dist/react/astro/GlobalStatusBar.js.map +1 -1
- package/dist/react/astro/MissionClock.d.ts +7 -8
- package/dist/react/astro/MissionClock.js +377 -400
- package/dist/react/astro/MissionClock.js.map +1 -1
- package/dist/react/astro/MonitoringIcon.d.ts +1 -2
- package/dist/react/astro/MonitoringIcon.js +422 -358
- package/dist/react/astro/MonitoringIcon.js.map +1 -1
- package/dist/react/astro/Notification.d.ts +1 -2
- package/dist/react/astro/Notification.js +229 -126
- package/dist/react/astro/Notification.js.map +1 -1
- package/dist/react/astro/Progress.d.ts +0 -1
- package/dist/react/astro/Progress.js +199 -141
- package/dist/react/astro/Progress.js.map +1 -1
- package/dist/react/astro/SimulationControls.d.ts +3 -4
- package/dist/react/astro/SimulationControls.js +596 -650
- package/dist/react/astro/SimulationControls.js.map +1 -1
- package/dist/react/astro/StatusIndicator.d.ts +0 -1
- package/dist/react/astro/StatusIndicator.js +236 -170
- package/dist/react/astro/StatusIndicator.js.map +1 -1
- package/dist/react/astro/UnifiedTimeline.d.ts +9 -10
- package/dist/react/astro/UnifiedTimeline.js +2345 -2392
- package/dist/react/astro/UnifiedTimeline.js.map +1 -1
- package/dist/react/astro/index.d.ts +5 -5
- package/dist/react/astro/index.js +1 -25
- package/dist/react/cards/AccessCard.d.ts +0 -1
- package/dist/react/cards/AccessCard.js +471 -405
- package/dist/react/cards/AccessCard.js.map +1 -1
- package/dist/react/cards/OrbitCard.d.ts +0 -1
- package/dist/react/cards/OrbitCard.js +487 -364
- package/dist/react/cards/OrbitCard.js.map +1 -1
- package/dist/react/cards/SpacecraftCard.d.ts +0 -1
- package/dist/react/cards/SpacecraftCard.js +813 -925
- package/dist/react/cards/SpacecraftCard.js.map +1 -1
- package/dist/react/cards/TelemetryCard.d.ts +0 -1
- package/dist/react/cards/TelemetryCard.js +1055 -732
- package/dist/react/cards/TelemetryCard.js.map +1 -1
- package/dist/react/cards/TelemetryStreamCard.d.ts +0 -1
- package/dist/react/cards/TelemetryStreamCard.js +323 -297
- package/dist/react/cards/TelemetryStreamCard.js.map +1 -1
- package/dist/react/cards/index.d.ts +1 -1
- package/dist/react/cards/index.js +1 -8
- package/dist/react/charts/GroundTrackMap.d.ts +6 -7
- package/dist/react/charts/GroundTrackMap.js +1377 -1256
- package/dist/react/charts/GroundTrackMap.js.map +1 -1
- package/dist/react/charts/GroundTrackMapLeaflet.d.ts +1 -2
- package/dist/react/charts/GroundTrackMapLeaflet.js +1065 -987
- package/dist/react/charts/GroundTrackMapLeaflet.js.map +1 -1
- package/dist/react/charts/groundTrackMapLeafletTiles.js +34 -25
- package/dist/react/charts/groundTrackMapLeafletTiles.js.map +1 -1
- package/dist/react/charts/groundTrackMapLeafletUtils.js +70 -61
- package/dist/react/charts/groundTrackMapLeafletUtils.js.map +1 -1
- package/dist/react/charts/index.d.ts +1 -1
- package/dist/react/charts/index.js +7 -100
- package/dist/react/charts/unified/AstroChart.d.ts +1 -2
- package/dist/react/charts/unified/AstroChart.js +1331 -1411
- package/dist/react/charts/unified/AstroChart.js.map +1 -1
- package/dist/react/charts/unified/PowerOverviewChart.d.ts +3 -3
- package/dist/react/charts/unified/PowerOverviewChart.js +495 -478
- package/dist/react/charts/unified/PowerOverviewChart.js.map +1 -1
- package/dist/react/charts/unified/domain.d.ts +12 -13
- package/dist/react/charts/unified/domain.js +3999 -3145
- package/dist/react/charts/unified/domain.js.map +1 -1
- package/dist/react/charts/unified/generators.d.ts +3 -4
- package/dist/react/charts/unified/generators.js +561 -498
- package/dist/react/charts/unified/generators.js.map +1 -1
- package/dist/react/charts/unified/index.d.ts +1 -1
- package/dist/react/charts/unified/presets.d.ts +14 -15
- package/dist/react/charts/unified/presets.js +857 -994
- package/dist/react/charts/unified/presets.js.map +1 -1
- package/dist/react/charts/unified/sync.d.ts +2 -3
- package/dist/react/charts/unified/sync.js +229 -195
- package/dist/react/charts/unified/sync.js.map +1 -1
- package/dist/react/charts/unified/theme.d.ts +11 -12
- package/dist/react/charts/unified/theme.js +606 -642
- package/dist/react/charts/unified/theme.js.map +1 -1
- package/dist/react/charts/unified/types.d.ts +32 -33
- package/dist/react/charts/unified/useChartStream.d.ts +1 -2
- package/dist/react/charts/unified/useChartStream.js +203 -216
- package/dist/react/charts/unified/useChartStream.js.map +1 -1
- package/dist/react/chatgpt/AppCard.d.ts +1 -2
- package/dist/react/chatgpt/index.d.ts +7 -7
- package/dist/react/chatgpt/index.js +160 -139
- package/dist/react/chatgpt/index.js.map +1 -1
- package/dist/react/context/CategoryContext.d.ts +0 -1
- package/dist/react/context/CategoryContext.js +78 -29
- package/dist/react/context/CategoryContext.js.map +1 -1
- package/dist/react/context/DisplaySettingsContext.d.ts +1 -2
- package/dist/react/context/DisplaySettingsContext.js +205 -156
- package/dist/react/context/DisplaySettingsContext.js.map +1 -1
- package/dist/react/context/SpatialSelectionContext.d.ts +0 -1
- package/dist/react/context/SpatialSelectionContext.js +36 -7
- package/dist/react/context/SpatialSelectionContext.js.map +1 -1
- package/dist/react/core/data/DataTable.d.ts +3 -4
- package/dist/react/core/data/DataTable.js +473 -440
- package/dist/react/core/data/DataTable.js.map +1 -1
- package/dist/react/core/data/DataValue.d.ts +4 -5
- package/dist/react/core/data/DataValue.js +605 -538
- package/dist/react/core/data/DataValue.js.map +1 -1
- package/dist/react/core/data/propertyConfig.d.ts +1 -2
- package/dist/react/core/data/propertyConfig.js +446 -382
- package/dist/react/core/data/propertyConfig.js.map +1 -1
- package/dist/react/core/display/AstroIcon.d.ts +4 -5
- package/dist/react/core/display/AstroIcon.js +339 -429
- package/dist/react/core/display/AstroIcon.js.map +1 -1
- package/dist/react/core/display/Badge.d.ts +2 -3
- package/dist/react/core/display/Badge.js +131 -131
- package/dist/react/core/display/Badge.js.map +1 -1
- package/dist/react/core/display/CardHeader.d.ts +0 -1
- package/dist/react/core/display/CardHeader.js +398 -311
- package/dist/react/core/display/CardHeader.js.map +1 -1
- package/dist/react/core/display/Container.d.ts +2 -3
- package/dist/react/core/display/Container.js +640 -668
- package/dist/react/core/display/Container.js.map +1 -1
- package/dist/react/core/display/CopyButton.d.ts +1 -2
- package/dist/react/core/display/CopyButton.js +158 -101
- package/dist/react/core/display/CopyButton.js.map +1 -1
- package/dist/react/core/display/GlassCard.d.ts +3 -4
- package/dist/react/core/display/GlassCard.js +416 -369
- package/dist/react/core/display/GlassCard.js.map +1 -1
- package/dist/react/core/display/HeaderIconWithStatus.d.ts +0 -1
- package/dist/react/core/display/HeaderIconWithStatus.js +152 -152
- package/dist/react/core/display/HeaderIconWithStatus.js.map +1 -1
- package/dist/react/core/display/Icon.d.ts +2 -3
- package/dist/react/core/display/Icon.js +172 -143
- package/dist/react/core/display/Icon.js.map +1 -1
- package/dist/react/core/display/Typography.d.ts +24 -25
- package/dist/react/core/display/Typography.js +360 -178
- package/dist/react/core/display/Typography.js.map +1 -1
- package/dist/react/core/feedback/ConfirmDialog.d.ts +1 -2
- package/dist/react/core/feedback/ConfirmDialog.js +343 -304
- package/dist/react/core/feedback/ConfirmDialog.js.map +1 -1
- package/dist/react/core/feedback/Dialog.d.ts +2 -3
- package/dist/react/core/feedback/Dialog.js +189 -197
- package/dist/react/core/feedback/Dialog.js.map +1 -1
- package/dist/react/core/feedback/Toast.d.ts +2 -3
- package/dist/react/core/feedback/Toast.js +346 -207
- package/dist/react/core/feedback/Toast.js.map +1 -1
- package/dist/react/core/index.d.ts +26 -26
- package/dist/react/core/index.js +7 -119
- package/dist/react/core/inputs/Button.d.ts +2 -3
- package/dist/react/core/inputs/Button.js +281 -304
- package/dist/react/core/inputs/Button.js.map +1 -1
- package/dist/react/core/inputs/Checkbox.d.ts +2 -3
- package/dist/react/core/inputs/Checkbox.js +139 -127
- package/dist/react/core/inputs/Checkbox.js.map +1 -1
- package/dist/react/core/inputs/Input.d.ts +3 -4
- package/dist/react/core/inputs/Input.js +277 -285
- package/dist/react/core/inputs/Input.js.map +1 -1
- package/dist/react/core/inputs/LimitsBar.d.ts +1 -2
- package/dist/react/core/inputs/LimitsBar.js +271 -196
- package/dist/react/core/inputs/LimitsBar.js.map +1 -1
- package/dist/react/core/inputs/NumberInput.d.ts +2 -3
- package/dist/react/core/inputs/NumberInput.js +531 -503
- package/dist/react/core/inputs/NumberInput.js.map +1 -1
- package/dist/react/core/inputs/PinInput.d.ts +2 -3
- package/dist/react/core/inputs/PinInput.js +224 -207
- package/dist/react/core/inputs/PinInput.js.map +1 -1
- package/dist/react/core/inputs/Select.d.ts +1 -2
- package/dist/react/core/inputs/Select.js +298 -299
- package/dist/react/core/inputs/Select.js.map +1 -1
- package/dist/react/core/inputs/Toggle.d.ts +2 -3
- package/dist/react/core/inputs/Toggle.js +142 -148
- package/dist/react/core/inputs/Toggle.js.map +1 -1
- package/dist/react/core/layout/Box.d.ts +3 -4
- package/dist/react/core/layout/Box.js +118 -122
- package/dist/react/core/layout/Box.js.map +1 -1
- package/dist/react/core/layout/Center.d.ts +0 -1
- package/dist/react/core/layout/Center.js +45 -32
- package/dist/react/core/layout/Center.js.map +1 -1
- package/dist/react/core/layout/Divider.d.ts +1 -2
- package/dist/react/core/layout/Divider.js +112 -106
- package/dist/react/core/layout/Divider.js.map +1 -1
- package/dist/react/core/layout/Flex.d.ts +4 -5
- package/dist/react/core/layout/Flex.js +120 -124
- package/dist/react/core/layout/Flex.js.map +1 -1
- package/dist/react/core/layout/Grid.d.ts +5 -6
- package/dist/react/core/layout/Grid.js +131 -138
- package/dist/react/core/layout/Grid.js.map +1 -1
- package/dist/react/core/layout/Spacer.d.ts +0 -1
- package/dist/react/core/layout/Spacer.js +36 -29
- package/dist/react/core/layout/Spacer.js.map +1 -1
- package/dist/react/core/layout/Stack.d.ts +4 -5
- package/dist/react/core/layout/Stack.js +127 -70
- package/dist/react/core/layout/Stack.js.map +1 -1
- package/dist/react/core/layout/responsive.d.ts +1 -2
- package/dist/react/core/layout/responsive.js +25 -19
- package/dist/react/core/layout/responsive.js.map +1 -1
- package/dist/react/core/layout/useBreakpoint.d.ts +1 -1
- package/dist/react/core/layout/useBreakpoint.js +119 -66
- package/dist/react/core/layout/useBreakpoint.js.map +1 -1
- package/dist/react/core/navigation/AppBar.d.ts +1 -2
- package/dist/react/core/navigation/AppBar.js +827 -805
- package/dist/react/core/navigation/AppBar.js.map +1 -1
- package/dist/react/core/navigation/Pagination.d.ts +2 -3
- package/dist/react/core/navigation/Pagination.js +207 -187
- package/dist/react/core/navigation/Pagination.js.map +1 -1
- package/dist/react/core/navigation/SideNav.d.ts +11 -5
- package/dist/react/core/navigation/SideNav.js +857 -602
- package/dist/react/core/navigation/SideNav.js.map +1 -1
- package/dist/react/core/navigation/Tabs.d.ts +0 -1
- package/dist/react/core/navigation/Tabs.js +113 -119
- package/dist/react/core/navigation/Tabs.js.map +1 -1
- package/dist/react/core/overlays/Popover.d.ts +2 -3
- package/dist/react/core/overlays/Popover.js +303 -282
- package/dist/react/core/overlays/Popover.js.map +1 -1
- package/dist/react/core/overlays/SidePanel.d.ts +1 -2
- package/dist/react/core/overlays/SidePanel.js +217 -212
- package/dist/react/core/overlays/SidePanel.js.map +1 -1
- package/dist/react/core/overlays/Tooltip.d.ts +1 -2
- package/dist/react/core/overlays/Tooltip.js +170 -176
- package/dist/react/core/overlays/Tooltip.js.map +1 -1
- package/dist/react/core/widgets/ActivityPlanner.d.ts +0 -1
- package/dist/react/core/widgets/ActivityPlanner.js +855 -517
- package/dist/react/core/widgets/ActivityPlanner.js.map +1 -1
- package/dist/react/core/widgets/Capture.d.ts +2 -3
- package/dist/react/core/widgets/Capture.js +965 -779
- package/dist/react/core/widgets/Capture.js.map +1 -1
- package/dist/react/core/widgets/ChatPanel.d.ts +16 -17
- package/dist/react/core/widgets/ChatPanel.js +1734 -1034
- package/dist/react/core/widgets/ChatPanel.js.map +1 -1
- package/dist/react/core/widgets/ColorPickerPanel.d.ts +0 -1
- package/dist/react/core/widgets/ColorPickerPanel.js +298 -287
- package/dist/react/core/widgets/ColorPickerPanel.js.map +1 -1
- package/dist/react/core/widgets/CommandBuilder.d.ts +2 -3
- package/dist/react/core/widgets/CommandBuilder.js +624 -516
- package/dist/react/core/widgets/CommandBuilder.js.map +1 -1
- package/dist/react/core/widgets/ConnectionForm.d.ts +2 -3
- package/dist/react/core/widgets/ConnectionForm.js +528 -492
- package/dist/react/core/widgets/ConnectionForm.js.map +1 -1
- package/dist/react/core/widgets/FileExplorer.d.ts +3 -4
- package/dist/react/core/widgets/FileExplorer.js +617 -505
- package/dist/react/core/widgets/FileExplorer.js.map +1 -1
- package/dist/react/core/widgets/HexViewer.d.ts +2 -3
- package/dist/react/core/widgets/HexViewer.js +1353 -1091
- package/dist/react/core/widgets/HexViewer.js.map +1 -1
- package/dist/react/core/widgets/ImageFrame.d.ts +1 -2
- package/dist/react/core/widgets/ImageFrame.js +230 -193
- package/dist/react/core/widgets/ImageFrame.js.map +1 -1
- package/dist/react/core/widgets/ImageGallery.d.ts +2 -1
- package/dist/react/core/widgets/ImageGallery.js +380 -314
- package/dist/react/core/widgets/ImageGallery.js.map +1 -1
- package/dist/react/core/widgets/ImagePanel.d.ts +0 -1
- package/dist/react/core/widgets/ImagePanel.js +110 -101
- package/dist/react/core/widgets/ImagePanel.js.map +1 -1
- package/dist/react/core/widgets/LogViewer.d.ts +2 -3
- package/dist/react/core/widgets/LogViewer.js +711 -607
- package/dist/react/core/widgets/LogViewer.js.map +1 -1
- package/dist/react/core/widgets/MessageStream.d.ts +3 -4
- package/dist/react/core/widgets/MessageStream.js +514 -444
- package/dist/react/core/widgets/MessageStream.js.map +1 -1
- package/dist/react/core/widgets/MissionCalendar.d.ts +3 -4
- package/dist/react/core/widgets/MissionCalendar.js +1488 -1020
- package/dist/react/core/widgets/MissionCalendar.js.map +1 -1
- package/dist/react/core/widgets/PacketViewer.d.ts +2 -3
- package/dist/react/core/widgets/PacketViewer.js +550 -421
- package/dist/react/core/widgets/PacketViewer.js.map +1 -1
- package/dist/react/core/widgets/capture-placeholder.png.js +6 -5
- package/dist/react/core/widgets/capture-placeholder.png.js.map +1 -1
- package/dist/react/hooks/index.d.ts +5 -5
- package/dist/react/hooks/useAccessWindows.d.ts +0 -1
- package/dist/react/hooks/useCompactMode.d.ts +1 -1
- package/dist/react/hooks/useCompactMode.js +104 -58
- package/dist/react/hooks/useCompactMode.js.map +1 -1
- package/dist/react/hooks/useGroundTrackHistory.d.ts +0 -1
- package/dist/react/hooks/useSimulationScene.d.ts +1 -2
- package/dist/react/hooks/useSimulationScene.js +481 -374
- package/dist/react/hooks/useSimulationScene.js.map +1 -1
- package/dist/react/index.d.ts +3 -3
- package/dist/react/panels/LayerControlPanel.d.ts +1 -2
- package/dist/react/panels/LayerControlPanel.js +223 -180
- package/dist/react/panels/LayerControlPanel.js.map +1 -1
- package/dist/react/panels/ObjectInventoryPanel.d.ts +2 -3
- package/dist/react/panels/ObjectInventoryPanel.js +315 -250
- package/dist/react/panels/ObjectInventoryPanel.js.map +1 -1
- package/dist/react/panels/index.d.ts +1 -1
- package/dist/react/panels/index.js +1 -6
- package/dist/react/shared/ErrorBoundary.d.ts +1 -2
- package/dist/react/shared/ErrorBoundary.js +170 -139
- package/dist/react/shared/ErrorBoundary.js.map +1 -1
- package/dist/react/shared/Skeleton.d.ts +1 -2
- package/dist/react/shared/Skeleton.js +300 -301
- package/dist/react/shared/Skeleton.js.map +1 -1
- package/dist/react/theme/ThemeProvider.d.ts +2 -321
- package/dist/react/theme/ThemeProvider.js +312 -939
- package/dist/react/theme/ThemeProvider.js.map +1 -1
- package/dist/react/theme/cardAccent.d.ts +1 -2
- package/dist/react/theme/cardAccent.js +196 -126
- package/dist/react/theme/cardAccent.js.map +1 -1
- package/dist/react/theme/config.d.ts +0 -1
- package/dist/react/theme/config.js +47 -25
- package/dist/react/theme/config.js.map +1 -1
- package/dist/react/theme/index.d.ts +2 -2
- package/dist/react/theme/index.js +1 -16
- package/dist/react/theme/types.d.ts +332 -0
- package/dist/react/theme/types.js +39 -0
- package/dist/react/theme/types.js.map +1 -0
- package/dist/react/types.d.ts +8 -8
- package/dist/react/types.js +147 -47
- package/dist/react/types.js.map +1 -1
- package/dist/react/utils/categoryPalette.d.ts +0 -1
- package/dist/react/utils/categoryPalette.js +91 -102
- package/dist/react/utils/categoryPalette.js.map +1 -1
- package/dist/react/utils/index.d.ts +5 -5
- package/dist/react/utils/index.js +457 -371
- package/dist/react/utils/index.js.map +1 -1
- package/dist/react/visualizations/EclipseTimerCard.d.ts +0 -1
- package/dist/react/visualizations/LinkBudgetCard.d.ts +0 -1
- package/dist/react/visualizations/NavBallCard.d.ts +0 -1
- package/dist/react/visualizations/PropulsionCard.d.ts +1 -2
- package/dist/react/visualizations/SensorFootprintCard.d.ts +1 -2
- package/dist/react/visualizations/ThermalHeatmapCard.d.ts +0 -1
- package/dist/react/visualizations/index.d.ts +3 -3
- package/dist/react.d.ts +2 -1
- package/dist/react.js +17 -221
- package/dist/shaders/atmosphere.frag.js +6 -5
- package/dist/shaders/atmosphere.frag.js.map +1 -1
- package/dist/shaders/atmosphere.vert.js +6 -5
- package/dist/shaders/atmosphere.vert.js.map +1 -1
- package/dist/shaders/stars.frag.js +6 -5
- package/dist/shaders/stars.frag.js.map +1 -1
- package/dist/shaders/stars.vert.js +6 -5
- package/dist/shaders/stars.vert.js.map +1 -1
- package/dist/style.css +217 -194
- package/dist/tokens/core.d.ts +159 -0
- package/dist/tokens/core.js +144 -0
- package/dist/tokens/core.js.map +1 -0
- package/dist/tokens/css-vars.d.ts +213 -2
- package/dist/tokens/css-vars.js +590 -227
- package/dist/tokens/css-vars.js.map +1 -1
- package/dist/tokens/index.d.ts +31 -228
- package/dist/tokens/index.js +281 -366
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/palettes/astro.d.ts +129 -0
- package/dist/tokens/palettes/astro.js +112 -0
- package/dist/tokens/palettes/astro.js.map +1 -0
- package/dist/tokens/palettes/index.d.ts +288 -0
- package/dist/tokens/palettes/index.js +35 -0
- package/dist/tokens/palettes/index.js.map +1 -0
- package/dist/tokens/palettes/tailwind.d.ts +324 -0
- package/dist/tokens/palettes/tailwind.js +201 -0
- package/dist/tokens/palettes/tailwind.js.map +1 -0
- package/dist/tokens/palettes/zendir.d.ts +126 -0
- package/dist/tokens/palettes/zendir.js +92 -0
- package/dist/tokens/palettes/zendir.js.map +1 -0
- package/dist/tokens/themes.d.ts +30 -0
- package/dist/tokens/themes.js +704 -0
- package/dist/tokens/themes.js.map +1 -0
- package/dist/tokens/tokens.css +419 -41
- package/dist/types/index.d.ts +2 -2
- package/package.json +310 -313
- package/dist/index.js.map +0 -1
- package/dist/react/3d/index.js.map +0 -1
- package/dist/react/astro/index.js.map +0 -1
- package/dist/react/cards/index.js.map +0 -1
- package/dist/react/charts/index.js.map +0 -1
- package/dist/react/core/index.js.map +0 -1
- package/dist/react/panels/index.js.map +0 -1
- package/dist/react/theme/astro-tokens.d.ts +0 -153
- package/dist/react/theme/index.js.map +0 -1
- package/dist/react.js.map +0 -1
|
@@ -1,941 +1,829 @@
|
|
|
1
|
-
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { memo, useMemo, useCallback } from "react";
|
|
3
1
|
import { useTheme } from "../theme/ThemeProvider.js";
|
|
4
2
|
import { Icon } from "../core/display/Icon.js";
|
|
5
|
-
import {
|
|
3
|
+
import { classNames, formatAltitude, formatCoordinate, formatPercentage, formatTime, formatVelocity, getStatusColor, safeAccentText, safeNumber } from "../utils/index.js";
|
|
6
4
|
import { HeaderIconWithStatus } from "../core/display/HeaderIconWithStatus.js";
|
|
5
|
+
import { CardHeader } from "../core/display/CardHeader.js";
|
|
7
6
|
import { useCardBorderStyle } from "../context/DisplaySettingsContext.js";
|
|
8
|
-
import { safeAccentText, getStatusColor, classNames, formatCoordinate, formatAltitude, formatVelocity, formatTime, safeNumber, formatPercentage } from "../utils/index.js";
|
|
9
7
|
import { useCompactMode } from "../hooks/useCompactMode.js";
|
|
8
|
+
import { memo, useCallback, useMemo } from "react";
|
|
9
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
//#region src/react/cards/SpacecraftCard.tsx
|
|
11
|
+
/**
|
|
12
|
+
* @zendir/ui - SpacecraftCard Component
|
|
13
|
+
*
|
|
14
|
+
* Enterprise-grade spacecraft information card.
|
|
15
|
+
*
|
|
16
|
+
* AstroUXDS Compliance:
|
|
17
|
+
* - Status colors used for health/operational status only
|
|
18
|
+
* - Orbit type uses Zendir-Astro data viz colors (categorical)
|
|
19
|
+
* - Zendir accent colors for interactive elements
|
|
20
|
+
* - Tabular numbers with fontVariantNumeric for data
|
|
21
|
+
* - Sentence-case labels per Tier 3 compliance
|
|
22
|
+
*
|
|
23
|
+
* Features:
|
|
24
|
+
* - Full null-safety with graceful fallbacks
|
|
25
|
+
* - WCAG 2.1 AA accessibility
|
|
26
|
+
* - Keyboard navigation
|
|
27
|
+
* - Smooth animations with reduced-motion support
|
|
28
|
+
* - Loading skeleton state
|
|
29
|
+
* - Error boundary support
|
|
30
|
+
* - Real SDK integration via optional client prop
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* Get orbit type color based on orbit classification
|
|
34
|
+
* Uses Zendir-Astro palette for categorical (non-status) classification
|
|
35
|
+
*/
|
|
10
36
|
function getOrbitTypeColor(orbitType, accentColor) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
// Zendir Prussian Blue - Highly Elliptical
|
|
20
|
-
SSO: "#B48DFF",
|
|
21
|
-
// Zendir Purple Light - Sun-Synchronous
|
|
22
|
-
POLAR: "#6B69FF"
|
|
23
|
-
// Zendir Electric Light - Polar
|
|
24
|
-
};
|
|
25
|
-
return colors[(orbitType == null ? void 0 : orbitType.toUpperCase()) ?? ""] ?? accentColor;
|
|
37
|
+
return {
|
|
38
|
+
LEO: "#3E3CFF",
|
|
39
|
+
MEO: "#3548C0",
|
|
40
|
+
GEO: "#9D70FF",
|
|
41
|
+
HEO: "#1B2DA0",
|
|
42
|
+
SSO: "#B48DFF",
|
|
43
|
+
POLAR: "#6B69FF"
|
|
44
|
+
}[orbitType?.toUpperCase() ?? ""] ?? accentColor;
|
|
26
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Derive health status from spacecraft or telemetry
|
|
48
|
+
* Prefers telemetry.health.status, falls back to spacecraft.status
|
|
49
|
+
*/
|
|
27
50
|
function deriveHealthStatus(spacecraftStatus, telemetryStatus) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
if (telemetryStatus) {
|
|
52
|
+
const validStatuses = [
|
|
53
|
+
"off",
|
|
54
|
+
"standby",
|
|
55
|
+
"normal",
|
|
56
|
+
"caution",
|
|
57
|
+
"serious",
|
|
58
|
+
"critical"
|
|
59
|
+
];
|
|
60
|
+
const normalized = telemetryStatus.toLowerCase();
|
|
61
|
+
if (validStatuses.includes(normalized)) return normalized;
|
|
62
|
+
switch (normalized) {
|
|
63
|
+
case "healthy":
|
|
64
|
+
case "nominal":
|
|
65
|
+
case "operational": return "normal";
|
|
66
|
+
case "warning":
|
|
67
|
+
case "degraded": return "caution";
|
|
68
|
+
case "failed":
|
|
69
|
+
case "error": return "critical";
|
|
70
|
+
case "idle": return "standby";
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return spacecraftStatus ?? "off";
|
|
50
74
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
borderRadius: 2,
|
|
187
|
-
marginBottom: 4
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
),
|
|
191
|
-
/* @__PURE__ */ jsx(
|
|
192
|
-
"div",
|
|
193
|
-
{
|
|
194
|
-
style: {
|
|
195
|
-
height: 14,
|
|
196
|
-
width: "70%",
|
|
197
|
-
backgroundColor: "rgba(255,255,255,0.1)",
|
|
198
|
-
borderRadius: 2
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
)
|
|
202
|
-
] }, i))
|
|
203
|
-
}
|
|
204
|
-
),
|
|
205
|
-
/* @__PURE__ */ jsx("style", { children: `
|
|
75
|
+
/**
|
|
76
|
+
* SpacecraftCard - Displays spacecraft position and status information
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```tsx
|
|
80
|
+
* // Direct data mode
|
|
81
|
+
* <SpacecraftCard
|
|
82
|
+
* spacecraft={spacecraftData}
|
|
83
|
+
* telemetry={telemetryData}
|
|
84
|
+
* showOrbit
|
|
85
|
+
* showTelemetry
|
|
86
|
+
* onClick={() => {}}
|
|
87
|
+
* />
|
|
88
|
+
*
|
|
89
|
+
* // Connected mode (auto-fetches via SDK)
|
|
90
|
+
* <SpacecraftCard
|
|
91
|
+
* client={zendirClient}
|
|
92
|
+
* spacecraftId="iss-25544"
|
|
93
|
+
* showTelemetry
|
|
94
|
+
* />
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
var SpacecraftCard = memo(function SpacecraftCard({ spacecraft, telemetry, showOrbit = false, showTelemetry = false, loading = false, onClick, className = "", compact = false, defaultExpanded = false, onPinChange }) {
|
|
98
|
+
const { tokens, theme, prefersReducedMotion } = useTheme();
|
|
99
|
+
const isTransparentTheme = theme === "transparent" || theme === "transparent-bold" || theme === "transparent-minimal";
|
|
100
|
+
const isBoldVariant = theme === "transparent-bold";
|
|
101
|
+
const useGlassMode = isBoldVariant || theme === "transparent-minimal";
|
|
102
|
+
const glassAccentColor = tokens.colors.accent.primary;
|
|
103
|
+
const glassAccentMuted = `${glassAccentColor}66`;
|
|
104
|
+
const accentTextColor = useMemo(() => safeAccentText(tokens.colors.accent.primary), [tokens.colors.accent.primary]);
|
|
105
|
+
const cardBg = isTransparentTheme ? "transparent" : tokens.colors.background.surface;
|
|
106
|
+
const cardGlass = isTransparentTheme ? {
|
|
107
|
+
backdropFilter: "blur(12px)",
|
|
108
|
+
WebkitBackdropFilter: "blur(12px)"
|
|
109
|
+
} : {};
|
|
110
|
+
const cardBorderStyle = useCardBorderStyle(tokens, isTransparentTheme);
|
|
111
|
+
const glassContainerStyle = useGlassMode ? {
|
|
112
|
+
backgroundColor: "rgba(10, 15, 25, 0.35)",
|
|
113
|
+
backdropFilter: "blur(12px)",
|
|
114
|
+
WebkitBackdropFilter: "blur(12px)",
|
|
115
|
+
border: `1px solid ${glassAccentMuted}`,
|
|
116
|
+
borderTop: isBoldVariant ? `2px solid ${glassAccentColor}` : `1px solid ${glassAccentColor}`
|
|
117
|
+
} : {};
|
|
118
|
+
const { expanded, isPinned, isHovered: _isHovered, handlers: compactHandlers, transitionDuration: _compactTransition } = useCompactMode({
|
|
119
|
+
compact,
|
|
120
|
+
defaultExpanded,
|
|
121
|
+
onPinChange
|
|
122
|
+
});
|
|
123
|
+
const animationDuration = prefersReducedMotion ? 0 : 250;
|
|
124
|
+
const animationEasing = "cubic-bezier(0.4, 0, 0.2, 1)";
|
|
125
|
+
useCallback(() => {
|
|
126
|
+
if (onClick && spacecraft) onClick(spacecraft);
|
|
127
|
+
}, [onClick, spacecraft]);
|
|
128
|
+
const handleKeyDown = useCallback((e) => {
|
|
129
|
+
if (onClick && spacecraft && (e.key === "Enter" || e.key === " ")) {
|
|
130
|
+
e.preventDefault();
|
|
131
|
+
onClick(spacecraft);
|
|
132
|
+
}
|
|
133
|
+
}, [onClick, spacecraft]);
|
|
134
|
+
const orbitColor = useMemo(() => getOrbitTypeColor(spacecraft?.orbitType, tokens.colors.accent.primary), [spacecraft?.orbitType, tokens.colors.accent.primary]);
|
|
135
|
+
const healthStatus = useMemo(() => deriveHealthStatus(spacecraft?.status, telemetry?.health?.status), [spacecraft?.status, telemetry?.health?.status]);
|
|
136
|
+
const statusColor = useMemo(() => getStatusColor(healthStatus), [healthStatus]);
|
|
137
|
+
const transitionDuration = prefersReducedMotion ? "0ms" : "200ms";
|
|
138
|
+
const combinedClickHandler = useCallback(() => {
|
|
139
|
+
if (compact) compactHandlers.onClick();
|
|
140
|
+
if (onClick && spacecraft) onClick(spacecraft);
|
|
141
|
+
}, [
|
|
142
|
+
compact,
|
|
143
|
+
compactHandlers,
|
|
144
|
+
onClick,
|
|
145
|
+
spacecraft
|
|
146
|
+
]);
|
|
147
|
+
if (loading) return /* @__PURE__ */ jsxs("div", {
|
|
148
|
+
className: classNames("zendir-spacecraft-card", "loading", className),
|
|
149
|
+
role: "article",
|
|
150
|
+
"aria-busy": "true",
|
|
151
|
+
"aria-label": "Loading spacecraft data",
|
|
152
|
+
style: {
|
|
153
|
+
backgroundColor: cardBg,
|
|
154
|
+
...cardGlass,
|
|
155
|
+
...cardBorderStyle,
|
|
156
|
+
borderRadius: tokens.borderRadius.lg,
|
|
157
|
+
padding: tokens.spacing.md,
|
|
158
|
+
minHeight: 180
|
|
159
|
+
},
|
|
160
|
+
children: [
|
|
161
|
+
/* @__PURE__ */ jsxs("div", {
|
|
162
|
+
style: {
|
|
163
|
+
display: "flex",
|
|
164
|
+
alignItems: "center",
|
|
165
|
+
gap: 12,
|
|
166
|
+
marginBottom: 16
|
|
167
|
+
},
|
|
168
|
+
children: [/* @__PURE__ */ jsx("div", { style: {
|
|
169
|
+
width: 32,
|
|
170
|
+
height: 32,
|
|
171
|
+
borderRadius: "50%",
|
|
172
|
+
backgroundColor: "rgba(255,255,255,0.1)",
|
|
173
|
+
animation: "pulse 1.5s ease-in-out infinite"
|
|
174
|
+
} }), /* @__PURE__ */ jsx("div", {
|
|
175
|
+
style: { flex: 1 },
|
|
176
|
+
children: /* @__PURE__ */ jsx("div", { style: {
|
|
177
|
+
height: 16,
|
|
178
|
+
width: "60%",
|
|
179
|
+
backgroundColor: "rgba(255,255,255,0.1)",
|
|
180
|
+
borderRadius: 4,
|
|
181
|
+
animation: "pulse 1.5s ease-in-out infinite"
|
|
182
|
+
} })
|
|
183
|
+
})]
|
|
184
|
+
}),
|
|
185
|
+
/* @__PURE__ */ jsx("div", {
|
|
186
|
+
style: {
|
|
187
|
+
display: "grid",
|
|
188
|
+
gridTemplateColumns: "repeat(2, 1fr)",
|
|
189
|
+
gap: 12
|
|
190
|
+
},
|
|
191
|
+
children: [
|
|
192
|
+
1,
|
|
193
|
+
2,
|
|
194
|
+
3,
|
|
195
|
+
4
|
|
196
|
+
].map((i) => /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", { style: {
|
|
197
|
+
height: 10,
|
|
198
|
+
width: "40%",
|
|
199
|
+
backgroundColor: "rgba(255,255,255,0.08)",
|
|
200
|
+
borderRadius: 2,
|
|
201
|
+
marginBottom: 4
|
|
202
|
+
} }), /* @__PURE__ */ jsx("div", { style: {
|
|
203
|
+
height: 14,
|
|
204
|
+
width: "70%",
|
|
205
|
+
backgroundColor: "rgba(255,255,255,0.1)",
|
|
206
|
+
borderRadius: 2
|
|
207
|
+
} })] }, i))
|
|
208
|
+
}),
|
|
209
|
+
/* @__PURE__ */ jsx("style", { children: `
|
|
206
210
|
@keyframes pulse {
|
|
207
211
|
0%, 100% { opacity: 1; }
|
|
208
212
|
50% { opacity: 0.5; }
|
|
209
213
|
}
|
|
210
214
|
` })
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
}
|
|
777
|
-
),
|
|
778
|
-
/* @__PURE__ */ jsx(
|
|
779
|
-
"span",
|
|
780
|
-
{
|
|
781
|
-
style: {
|
|
782
|
-
fontSize: tokens.typography.fontSize.xs,
|
|
783
|
-
fontWeight: tokens.typography.fontWeight.medium,
|
|
784
|
-
color: statusColor,
|
|
785
|
-
textTransform: "capitalize"
|
|
786
|
-
},
|
|
787
|
-
children: ((_b = telemetry.health) == null ? void 0 : _b.status) ?? "Unknown"
|
|
788
|
-
}
|
|
789
|
-
)
|
|
790
|
-
]
|
|
791
|
-
}
|
|
792
|
-
),
|
|
793
|
-
((_c = telemetry.power) == null ? void 0 : _c.batteryLevel) !== void 0 && /* @__PURE__ */ jsxs("div", { children: [
|
|
794
|
-
/* @__PURE__ */ jsxs(
|
|
795
|
-
"div",
|
|
796
|
-
{
|
|
797
|
-
style: {
|
|
798
|
-
display: "flex",
|
|
799
|
-
justifyContent: "space-between",
|
|
800
|
-
marginBottom: 4,
|
|
801
|
-
fontSize: tokens.typography.fontSize.xs
|
|
802
|
-
},
|
|
803
|
-
children: [
|
|
804
|
-
/* @__PURE__ */ jsx("span", { style: { color: tokens.colors.text.tertiary }, children: "Battery" }),
|
|
805
|
-
/* @__PURE__ */ jsx(
|
|
806
|
-
"span",
|
|
807
|
-
{
|
|
808
|
-
style: {
|
|
809
|
-
fontFamily: tokens.typography.fontFamily.mono,
|
|
810
|
-
fontVariantNumeric: "tabular-nums"
|
|
811
|
-
},
|
|
812
|
-
children: formatPercentage(telemetry.power.batteryLevel, false, 0)
|
|
813
|
-
}
|
|
814
|
-
)
|
|
815
|
-
]
|
|
816
|
-
}
|
|
817
|
-
),
|
|
818
|
-
/* @__PURE__ */ jsx(
|
|
819
|
-
"div",
|
|
820
|
-
{
|
|
821
|
-
style: {
|
|
822
|
-
height: 4,
|
|
823
|
-
backgroundColor: tokens.colors.border.muted,
|
|
824
|
-
borderRadius: 2,
|
|
825
|
-
overflow: "hidden"
|
|
826
|
-
},
|
|
827
|
-
children: /* @__PURE__ */ jsx(
|
|
828
|
-
"div",
|
|
829
|
-
{
|
|
830
|
-
role: "progressbar",
|
|
831
|
-
"aria-valuenow": telemetry.power.batteryLevel,
|
|
832
|
-
"aria-valuemin": 0,
|
|
833
|
-
"aria-valuemax": 100,
|
|
834
|
-
"aria-label": "Battery level",
|
|
835
|
-
style: {
|
|
836
|
-
height: "100%",
|
|
837
|
-
width: `${Math.min(100, Math.max(0, telemetry.power.batteryLevel))}%`,
|
|
838
|
-
backgroundColor: telemetry.power.batteryLevel > 30 ? tokens.colors.status.normal : tokens.colors.status.critical,
|
|
839
|
-
borderRadius: 2,
|
|
840
|
-
transition: `width ${transitionDuration} ease-out`
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
)
|
|
844
|
-
}
|
|
845
|
-
)
|
|
846
|
-
] })
|
|
847
|
-
]
|
|
848
|
-
}
|
|
849
|
-
),
|
|
850
|
-
spacecraft.timestamp && /* @__PURE__ */ jsx(
|
|
851
|
-
"footer",
|
|
852
|
-
{
|
|
853
|
-
style: {
|
|
854
|
-
marginTop: tokens.spacing.md,
|
|
855
|
-
paddingTop: tokens.spacing.sm,
|
|
856
|
-
borderTop: `1px solid ${tokens.colors.border.muted}`,
|
|
857
|
-
fontSize: tokens.typography.fontSize.xs,
|
|
858
|
-
color: tokens.colors.text.tertiary,
|
|
859
|
-
textAlign: "right"
|
|
860
|
-
},
|
|
861
|
-
children: /* @__PURE__ */ jsxs("time", { dateTime: spacecraft.timestamp, children: [
|
|
862
|
-
formatTime(spacecraft.timestamp),
|
|
863
|
-
" UTC"
|
|
864
|
-
] })
|
|
865
|
-
}
|
|
866
|
-
)
|
|
867
|
-
]
|
|
868
|
-
}
|
|
869
|
-
);
|
|
215
|
+
]
|
|
216
|
+
});
|
|
217
|
+
if (!spacecraft) return /* @__PURE__ */ jsxs("div", {
|
|
218
|
+
className: classNames("zendir-spacecraft-card", "empty", className),
|
|
219
|
+
role: "article",
|
|
220
|
+
"aria-label": "No spacecraft data",
|
|
221
|
+
style: {
|
|
222
|
+
backgroundColor: cardBg,
|
|
223
|
+
...cardGlass,
|
|
224
|
+
...tokens.colors.border.cardStyleDashed ?? {},
|
|
225
|
+
borderRadius: tokens.borderRadius.lg,
|
|
226
|
+
padding: tokens.spacing.lg,
|
|
227
|
+
textAlign: "center",
|
|
228
|
+
color: tokens.colors.text.tertiary
|
|
229
|
+
},
|
|
230
|
+
children: [/* @__PURE__ */ jsx("svg", {
|
|
231
|
+
width: "32",
|
|
232
|
+
height: "32",
|
|
233
|
+
viewBox: "0 0 24 24",
|
|
234
|
+
fill: "none",
|
|
235
|
+
stroke: "currentColor",
|
|
236
|
+
strokeWidth: "1.5",
|
|
237
|
+
style: {
|
|
238
|
+
marginBottom: 8,
|
|
239
|
+
opacity: .5
|
|
240
|
+
},
|
|
241
|
+
children: /* @__PURE__ */ jsx("path", { d: "M13 2L3 14h9l-1 8 10-12h-9l1-8z" })
|
|
242
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
243
|
+
style: {
|
|
244
|
+
margin: 0,
|
|
245
|
+
fontSize: tokens.typography.body[2].fontSize
|
|
246
|
+
},
|
|
247
|
+
children: "No spacecraft data available"
|
|
248
|
+
})]
|
|
249
|
+
});
|
|
250
|
+
const CompactMetric = ({ icon, label, value, color }) => /* @__PURE__ */ jsxs("div", {
|
|
251
|
+
style: {
|
|
252
|
+
display: "flex",
|
|
253
|
+
alignItems: "center",
|
|
254
|
+
gap: 3,
|
|
255
|
+
padding: `2px 0`
|
|
256
|
+
},
|
|
257
|
+
children: [
|
|
258
|
+
/* @__PURE__ */ jsx(Icon, {
|
|
259
|
+
name: icon,
|
|
260
|
+
size: 12,
|
|
261
|
+
color: color ?? tokens.colors.text.secondary
|
|
262
|
+
}),
|
|
263
|
+
/* @__PURE__ */ jsx("span", {
|
|
264
|
+
style: {
|
|
265
|
+
fontSize: tokens.typography.fontSize.micro,
|
|
266
|
+
fontWeight: tokens.typography.fontWeight.medium,
|
|
267
|
+
fontFamily: tokens.typography.fontFamily.primary,
|
|
268
|
+
color: tokens.colors.text.tertiary,
|
|
269
|
+
textTransform: "uppercase",
|
|
270
|
+
minWidth: 8
|
|
271
|
+
},
|
|
272
|
+
children: label.charAt(0)
|
|
273
|
+
}),
|
|
274
|
+
/* @__PURE__ */ jsx("span", {
|
|
275
|
+
style: {
|
|
276
|
+
fontVariantNumeric: "tabular-nums",
|
|
277
|
+
fontFamily: tokens.typography.fontFamily.mono,
|
|
278
|
+
fontSize: tokens.typography.fontSize.xs,
|
|
279
|
+
color: color ?? tokens.colors.text.primary,
|
|
280
|
+
fontWeight: tokens.typography.fontWeight.medium
|
|
281
|
+
},
|
|
282
|
+
children: value
|
|
283
|
+
})
|
|
284
|
+
]
|
|
285
|
+
});
|
|
286
|
+
const renderCompactContent = () => {
|
|
287
|
+
const batteryLevel = (telemetry?.subsystems?.power ?? telemetry?.power)?.batteryLevel;
|
|
288
|
+
const batteryStatusLocal = batteryLevel !== void 0 ? batteryLevel > 50 ? "normal" : batteryLevel > 20 ? "caution" : "critical" : "off";
|
|
289
|
+
const statusColor = getStatusColor(healthStatus);
|
|
290
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
|
|
291
|
+
style: {
|
|
292
|
+
display: "flex",
|
|
293
|
+
alignItems: "center",
|
|
294
|
+
justifyContent: "space-between",
|
|
295
|
+
marginBottom: tokens.spacing.xs,
|
|
296
|
+
paddingBottom: tokens.spacing.xs,
|
|
297
|
+
borderBottom: useGlassMode ? "none" : `1px solid ${tokens.colors.border.muted}`,
|
|
298
|
+
position: "relative",
|
|
299
|
+
zIndex: 1
|
|
300
|
+
},
|
|
301
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
302
|
+
style: {
|
|
303
|
+
display: "flex",
|
|
304
|
+
alignItems: "center",
|
|
305
|
+
gap: tokens.spacing.xs,
|
|
306
|
+
flex: 1,
|
|
307
|
+
minWidth: 0
|
|
308
|
+
},
|
|
309
|
+
children: [
|
|
310
|
+
/* @__PURE__ */ jsx(HeaderIconWithStatus, {
|
|
311
|
+
icon: "satellite-transmit",
|
|
312
|
+
size: 18,
|
|
313
|
+
status: healthStatus,
|
|
314
|
+
statusColor
|
|
315
|
+
}),
|
|
316
|
+
/* @__PURE__ */ jsx("span", {
|
|
317
|
+
style: {
|
|
318
|
+
fontWeight: tokens.typography.fontWeight.semibold,
|
|
319
|
+
fontSize: tokens.typography.fontSize.sm,
|
|
320
|
+
fontFamily: tokens.typography.fontFamily.primary,
|
|
321
|
+
color: useGlassMode ? glassAccentColor : void 0,
|
|
322
|
+
textShadow: useGlassMode ? `0 0 16px ${glassAccentMuted}` : void 0,
|
|
323
|
+
whiteSpace: "nowrap",
|
|
324
|
+
overflow: "hidden",
|
|
325
|
+
textOverflow: "ellipsis"
|
|
326
|
+
},
|
|
327
|
+
children: (spacecraft.name ?? spacecraft.id ?? "Unknown").split(" ")[0]
|
|
328
|
+
}),
|
|
329
|
+
useGlassMode && /* @__PURE__ */ jsx("div", { style: {
|
|
330
|
+
flex: 1,
|
|
331
|
+
height: isBoldVariant ? "2px" : "1px",
|
|
332
|
+
minWidth: 20,
|
|
333
|
+
background: `linear-gradient(90deg, ${glassAccentColor} 0%, ${glassAccentMuted} 60%, transparent 100%)`,
|
|
334
|
+
boxShadow: isBoldVariant ? `0 0 8px ${glassAccentMuted}` : void 0
|
|
335
|
+
} })
|
|
336
|
+
]
|
|
337
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
338
|
+
style: {
|
|
339
|
+
display: "flex",
|
|
340
|
+
alignItems: "center",
|
|
341
|
+
gap: tokens.spacing.xs,
|
|
342
|
+
flexShrink: 0
|
|
343
|
+
},
|
|
344
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
345
|
+
style: {
|
|
346
|
+
backgroundColor: `${orbitColor}20`,
|
|
347
|
+
color: orbitColor,
|
|
348
|
+
padding: `1px 6px`,
|
|
349
|
+
borderRadius: tokens.borderRadius.sm,
|
|
350
|
+
fontSize: tokens.typography.fontSize.xxs,
|
|
351
|
+
fontWeight: tokens.typography.fontWeight.medium,
|
|
352
|
+
fontFamily: tokens.typography.fontFamily.primary
|
|
353
|
+
},
|
|
354
|
+
children: spacecraft.orbitType ?? "—"
|
|
355
|
+
}), isPinned && /* @__PURE__ */ jsx(Icon, {
|
|
356
|
+
name: "lock",
|
|
357
|
+
size: 10,
|
|
358
|
+
color: tokens.colors.accent.primary
|
|
359
|
+
})]
|
|
360
|
+
})]
|
|
361
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
362
|
+
style: {
|
|
363
|
+
display: "grid",
|
|
364
|
+
gridTemplateColumns: "repeat(3, 1fr)",
|
|
365
|
+
gap: `${tokens.spacing.xs} ${tokens.spacing.sm}`
|
|
366
|
+
},
|
|
367
|
+
children: [
|
|
368
|
+
/* @__PURE__ */ jsx(CompactMetric, {
|
|
369
|
+
icon: "location",
|
|
370
|
+
label: "Latitude",
|
|
371
|
+
value: formatCoordinate(spacecraft.latitude, "lat")
|
|
372
|
+
}),
|
|
373
|
+
/* @__PURE__ */ jsx(CompactMetric, {
|
|
374
|
+
icon: "location",
|
|
375
|
+
label: "Longitude",
|
|
376
|
+
value: formatCoordinate(spacecraft.longitude, "lon")
|
|
377
|
+
}),
|
|
378
|
+
/* @__PURE__ */ jsx(CompactMetric, {
|
|
379
|
+
icon: "orbit",
|
|
380
|
+
label: "Altitude",
|
|
381
|
+
value: formatAltitude(spacecraft.altitude),
|
|
382
|
+
color: orbitColor
|
|
383
|
+
}),
|
|
384
|
+
spacecraft.velocity !== void 0 && /* @__PURE__ */ jsx(CompactMetric, {
|
|
385
|
+
icon: "rocket",
|
|
386
|
+
label: "Velocity",
|
|
387
|
+
value: formatVelocity(spacecraft.velocity)
|
|
388
|
+
}),
|
|
389
|
+
batteryLevel !== void 0 && /* @__PURE__ */ jsx(CompactMetric, {
|
|
390
|
+
icon: "battery",
|
|
391
|
+
label: "Battery",
|
|
392
|
+
value: formatPercentage(batteryLevel),
|
|
393
|
+
color: getStatusColor(batteryStatusLocal)
|
|
394
|
+
}),
|
|
395
|
+
spacecraft.inclination !== void 0 && /* @__PURE__ */ jsx(CompactMetric, {
|
|
396
|
+
icon: "orbit",
|
|
397
|
+
label: "Inclination",
|
|
398
|
+
value: `${safeNumber(spacecraft.inclination, 1)}°`
|
|
399
|
+
})
|
|
400
|
+
]
|
|
401
|
+
})] });
|
|
402
|
+
};
|
|
403
|
+
if (compact) return /* @__PURE__ */ jsxs("article", {
|
|
404
|
+
className: classNames("zendir-spacecraft-card", "compact", expanded ? "expanded" : "", className),
|
|
405
|
+
...compactHandlers,
|
|
406
|
+
"aria-label": `Spacecraft: ${spacecraft.name ?? spacecraft.id}${expanded ? "" : " (compact)"}`,
|
|
407
|
+
style: {
|
|
408
|
+
position: "relative",
|
|
409
|
+
overflow: "hidden",
|
|
410
|
+
...useGlassMode ? glassContainerStyle : {
|
|
411
|
+
backgroundColor: cardBg,
|
|
412
|
+
...cardGlass,
|
|
413
|
+
...cardBorderStyle
|
|
414
|
+
},
|
|
415
|
+
borderRadius: tokens.borderRadius.lg,
|
|
416
|
+
padding: expanded ? tokens.spacing.md : tokens.spacing.sm,
|
|
417
|
+
fontFamily: tokens.typography.fontFamily.primary,
|
|
418
|
+
color: tokens.colors.text.primary,
|
|
419
|
+
fontSize: expanded ? tokens.typography.fontSize.base : tokens.typography.fontSize.sm,
|
|
420
|
+
cursor: "pointer",
|
|
421
|
+
transition: `all ${animationDuration}ms ${animationEasing}`,
|
|
422
|
+
boxShadow: expanded ? `0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px ${orbitColor}30` : "none",
|
|
423
|
+
zIndex: expanded ? 50 : 1
|
|
424
|
+
},
|
|
425
|
+
children: [useGlassMode && /* @__PURE__ */ jsx("div", { style: {
|
|
426
|
+
position: "absolute",
|
|
427
|
+
inset: 0,
|
|
428
|
+
background: "linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%, rgba(0,0,0,0.1) 100%)",
|
|
429
|
+
pointerEvents: "none",
|
|
430
|
+
zIndex: 0
|
|
431
|
+
} }), expanded ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
432
|
+
/* @__PURE__ */ jsxs("div", {
|
|
433
|
+
style: {
|
|
434
|
+
display: "flex",
|
|
435
|
+
alignItems: "center",
|
|
436
|
+
gap: tokens.spacing.sm,
|
|
437
|
+
marginBottom: tokens.spacing.md
|
|
438
|
+
},
|
|
439
|
+
children: [
|
|
440
|
+
/* @__PURE__ */ jsx(HeaderIconWithStatus, {
|
|
441
|
+
icon: "satellite-transmit",
|
|
442
|
+
size: 24,
|
|
443
|
+
status: healthStatus
|
|
444
|
+
}),
|
|
445
|
+
/* @__PURE__ */ jsxs("div", {
|
|
446
|
+
style: {
|
|
447
|
+
flex: 1,
|
|
448
|
+
minWidth: 0
|
|
449
|
+
},
|
|
450
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
451
|
+
style: {
|
|
452
|
+
display: "flex",
|
|
453
|
+
alignItems: "center",
|
|
454
|
+
gap: 6
|
|
455
|
+
},
|
|
456
|
+
children: [/* @__PURE__ */ jsx("h3", {
|
|
457
|
+
style: {
|
|
458
|
+
margin: 0,
|
|
459
|
+
fontSize: tokens.typography.fontSize.md,
|
|
460
|
+
fontWeight: tokens.typography.fontWeight.semibold,
|
|
461
|
+
lineHeight: 1.2
|
|
462
|
+
},
|
|
463
|
+
children: spacecraft.name ?? spacecraft.id
|
|
464
|
+
}), isPinned && /* @__PURE__ */ jsx(Icon, {
|
|
465
|
+
name: "lock",
|
|
466
|
+
size: 12,
|
|
467
|
+
color: tokens.colors.accent.primary
|
|
468
|
+
})]
|
|
469
|
+
}), spacecraft.id && spacecraft.name && /* @__PURE__ */ jsx("span", {
|
|
470
|
+
style: {
|
|
471
|
+
fontSize: tokens.typography.fontSize.xs,
|
|
472
|
+
color: tokens.colors.text.tertiary
|
|
473
|
+
},
|
|
474
|
+
children: spacecraft.id
|
|
475
|
+
})]
|
|
476
|
+
}),
|
|
477
|
+
/* @__PURE__ */ jsx("span", {
|
|
478
|
+
style: {
|
|
479
|
+
backgroundColor: `${orbitColor}20`,
|
|
480
|
+
color: orbitColor,
|
|
481
|
+
padding: `4px 8px`,
|
|
482
|
+
borderRadius: tokens.borderRadius.sm,
|
|
483
|
+
fontSize: tokens.typography.fontSize.xs,
|
|
484
|
+
fontWeight: tokens.typography.fontWeight.medium,
|
|
485
|
+
flexShrink: 0
|
|
486
|
+
},
|
|
487
|
+
children: spacecraft.orbitType ?? "Unknown"
|
|
488
|
+
})
|
|
489
|
+
]
|
|
490
|
+
}),
|
|
491
|
+
/* @__PURE__ */ jsxs("div", {
|
|
492
|
+
style: {
|
|
493
|
+
display: "grid",
|
|
494
|
+
gridTemplateColumns: "repeat(2, 1fr)",
|
|
495
|
+
gap: tokens.spacing.sm,
|
|
496
|
+
marginBottom: tokens.spacing.md
|
|
497
|
+
},
|
|
498
|
+
children: [
|
|
499
|
+
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("span", {
|
|
500
|
+
style: {
|
|
501
|
+
display: "block",
|
|
502
|
+
fontSize: tokens.typography.fontSize.xs,
|
|
503
|
+
color: tokens.colors.text.tertiary,
|
|
504
|
+
marginBottom: 2
|
|
505
|
+
},
|
|
506
|
+
children: "Latitude"
|
|
507
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
508
|
+
style: {
|
|
509
|
+
fontSize: tokens.typography.fontSize.md,
|
|
510
|
+
fontWeight: tokens.typography.fontWeight.medium,
|
|
511
|
+
fontVariantNumeric: "tabular-nums",
|
|
512
|
+
fontFamily: tokens.typography.fontFamily.mono
|
|
513
|
+
},
|
|
514
|
+
children: formatCoordinate(spacecraft.latitude, "lat")
|
|
515
|
+
})] }),
|
|
516
|
+
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("span", {
|
|
517
|
+
style: {
|
|
518
|
+
display: "block",
|
|
519
|
+
fontSize: tokens.typography.fontSize.xs,
|
|
520
|
+
color: tokens.colors.text.tertiary,
|
|
521
|
+
marginBottom: 2
|
|
522
|
+
},
|
|
523
|
+
children: "Longitude"
|
|
524
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
525
|
+
style: {
|
|
526
|
+
fontSize: tokens.typography.fontSize.md,
|
|
527
|
+
fontWeight: tokens.typography.fontWeight.medium,
|
|
528
|
+
fontVariantNumeric: "tabular-nums",
|
|
529
|
+
fontFamily: tokens.typography.fontFamily.mono
|
|
530
|
+
},
|
|
531
|
+
children: formatCoordinate(spacecraft.longitude, "lon")
|
|
532
|
+
})] }),
|
|
533
|
+
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("span", {
|
|
534
|
+
style: {
|
|
535
|
+
display: "block",
|
|
536
|
+
fontSize: tokens.typography.fontSize.xs,
|
|
537
|
+
color: tokens.colors.text.tertiary,
|
|
538
|
+
marginBottom: 2
|
|
539
|
+
},
|
|
540
|
+
children: "Altitude"
|
|
541
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
542
|
+
style: {
|
|
543
|
+
fontSize: tokens.typography.fontSize.md,
|
|
544
|
+
fontWeight: tokens.typography.fontWeight.medium,
|
|
545
|
+
fontVariantNumeric: "tabular-nums",
|
|
546
|
+
fontFamily: tokens.typography.fontFamily.mono,
|
|
547
|
+
color: orbitColor
|
|
548
|
+
},
|
|
549
|
+
children: formatAltitude(spacecraft.altitude)
|
|
550
|
+
})] }),
|
|
551
|
+
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("span", {
|
|
552
|
+
style: {
|
|
553
|
+
display: "block",
|
|
554
|
+
fontSize: tokens.typography.fontSize.xs,
|
|
555
|
+
color: tokens.colors.text.tertiary,
|
|
556
|
+
marginBottom: 2
|
|
557
|
+
},
|
|
558
|
+
children: "Velocity"
|
|
559
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
560
|
+
style: {
|
|
561
|
+
fontSize: tokens.typography.fontSize.md,
|
|
562
|
+
fontWeight: tokens.typography.fontWeight.medium,
|
|
563
|
+
fontVariantNumeric: "tabular-nums",
|
|
564
|
+
fontFamily: tokens.typography.fontFamily.mono
|
|
565
|
+
},
|
|
566
|
+
children: formatVelocity(spacecraft.velocity)
|
|
567
|
+
})] })
|
|
568
|
+
]
|
|
569
|
+
}),
|
|
570
|
+
spacecraft.timestamp && /* @__PURE__ */ jsx("time", {
|
|
571
|
+
dateTime: spacecraft.timestamp,
|
|
572
|
+
style: {
|
|
573
|
+
display: "block",
|
|
574
|
+
fontSize: tokens.typography.fontSize.xs,
|
|
575
|
+
color: tokens.colors.text.tertiary,
|
|
576
|
+
fontVariantNumeric: "tabular-nums"
|
|
577
|
+
},
|
|
578
|
+
children: formatTime(spacecraft.timestamp)
|
|
579
|
+
})
|
|
580
|
+
] }) : renderCompactContent()]
|
|
581
|
+
});
|
|
582
|
+
return /* @__PURE__ */ jsxs("article", {
|
|
583
|
+
className: classNames("zendir-spacecraft-card", compact ? "expanded" : "", className),
|
|
584
|
+
onClick: compact || onClick ? combinedClickHandler : void 0,
|
|
585
|
+
onKeyDown: onClick ? handleKeyDown : compactHandlers.onKeyDown,
|
|
586
|
+
tabIndex: onClick || compact ? 0 : void 0,
|
|
587
|
+
role: compact ? compactHandlers.role : "article",
|
|
588
|
+
"aria-expanded": compact ? compactHandlers["aria-expanded"] : void 0,
|
|
589
|
+
"aria-label": `Spacecraft: ${spacecraft.name ?? spacecraft.id}`,
|
|
590
|
+
style: {
|
|
591
|
+
position: "relative",
|
|
592
|
+
overflow: "hidden",
|
|
593
|
+
...useGlassMode ? glassContainerStyle : {
|
|
594
|
+
backgroundColor: cardBg,
|
|
595
|
+
...cardGlass,
|
|
596
|
+
...cardBorderStyle
|
|
597
|
+
},
|
|
598
|
+
borderRadius: tokens.borderRadius.lg,
|
|
599
|
+
padding: tokens.spacing.md,
|
|
600
|
+
fontFamily: tokens.typography.fontFamily.primary,
|
|
601
|
+
color: tokens.colors.text.primary,
|
|
602
|
+
cursor: onClick || compact ? "pointer" : "default",
|
|
603
|
+
transition: `all ${transitionDuration} ease-out`,
|
|
604
|
+
outline: "none"
|
|
605
|
+
},
|
|
606
|
+
onMouseEnter: (e) => {
|
|
607
|
+
if (compact) compactHandlers.onMouseEnter();
|
|
608
|
+
if (onClick) {
|
|
609
|
+
e.currentTarget.style.borderColor = tokens.colors.border.focus;
|
|
610
|
+
e.currentTarget.style.boxShadow = tokens.shadows.md;
|
|
611
|
+
e.currentTarget.style.transform = prefersReducedMotion ? "none" : "translateY(-2px)";
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
onMouseLeave: (e) => {
|
|
615
|
+
if (compact) compactHandlers.onMouseLeave();
|
|
616
|
+
if (onClick) {
|
|
617
|
+
e.currentTarget.style.borderColor = tokens.colors.border.muted;
|
|
618
|
+
e.currentTarget.style.boxShadow = "none";
|
|
619
|
+
e.currentTarget.style.transform = "none";
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
onFocus: (e) => {
|
|
623
|
+
e.currentTarget.style.outline = `2px solid ${tokens.colors.border.focus}`;
|
|
624
|
+
e.currentTarget.style.outlineOffset = "2px";
|
|
625
|
+
},
|
|
626
|
+
onBlur: (e) => {
|
|
627
|
+
e.currentTarget.style.outline = "none";
|
|
628
|
+
},
|
|
629
|
+
children: [
|
|
630
|
+
useGlassMode && /* @__PURE__ */ jsx("div", { style: {
|
|
631
|
+
position: "absolute",
|
|
632
|
+
inset: 0,
|
|
633
|
+
background: "linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%, rgba(0,0,0,0.1) 100%)",
|
|
634
|
+
pointerEvents: "none",
|
|
635
|
+
zIndex: 0
|
|
636
|
+
} }),
|
|
637
|
+
/* @__PURE__ */ jsx(CardHeader, {
|
|
638
|
+
icon: "satellite-transmit",
|
|
639
|
+
title: spacecraft.name ?? spacecraft.id ?? "Unknown",
|
|
640
|
+
subtitle: spacecraft.id && spacecraft.name ? spacecraft.id : void 0,
|
|
641
|
+
status: healthStatus,
|
|
642
|
+
badge: spacecraft.orbitType ?? "Unknown",
|
|
643
|
+
badgeColor: orbitColor,
|
|
644
|
+
isPinned: compact && isPinned
|
|
645
|
+
}),
|
|
646
|
+
/* @__PURE__ */ jsxs("div", {
|
|
647
|
+
style: {
|
|
648
|
+
display: "grid",
|
|
649
|
+
gridTemplateColumns: "repeat(2, 1fr)",
|
|
650
|
+
gap: tokens.spacing.sm
|
|
651
|
+
},
|
|
652
|
+
children: [
|
|
653
|
+
/* @__PURE__ */ jsx(DataCell, {
|
|
654
|
+
label: "Latitude",
|
|
655
|
+
value: formatCoordinate(spacecraft.latitude, "lat"),
|
|
656
|
+
tokens,
|
|
657
|
+
highlightColor: accentTextColor
|
|
658
|
+
}),
|
|
659
|
+
/* @__PURE__ */ jsx(DataCell, {
|
|
660
|
+
label: "Longitude",
|
|
661
|
+
value: formatCoordinate(spacecraft.longitude, "lon"),
|
|
662
|
+
tokens,
|
|
663
|
+
highlightColor: accentTextColor
|
|
664
|
+
}),
|
|
665
|
+
/* @__PURE__ */ jsx(DataCell, {
|
|
666
|
+
label: "Altitude",
|
|
667
|
+
value: formatAltitude(spacecraft.altitude),
|
|
668
|
+
highlight: true,
|
|
669
|
+
tokens,
|
|
670
|
+
highlightColor: accentTextColor
|
|
671
|
+
}),
|
|
672
|
+
/* @__PURE__ */ jsx(DataCell, {
|
|
673
|
+
label: "Velocity",
|
|
674
|
+
value: formatVelocity(spacecraft.velocity),
|
|
675
|
+
tokens,
|
|
676
|
+
highlightColor: accentTextColor
|
|
677
|
+
})
|
|
678
|
+
]
|
|
679
|
+
}),
|
|
680
|
+
showOrbit && spacecraft.inclination !== void 0 && /* @__PURE__ */ jsx("div", {
|
|
681
|
+
style: {
|
|
682
|
+
marginTop: tokens.spacing.md,
|
|
683
|
+
paddingTop: tokens.spacing.md,
|
|
684
|
+
borderTop: `1px solid ${tokens.colors.border.muted}`
|
|
685
|
+
},
|
|
686
|
+
children: /* @__PURE__ */ jsx(DataCell, {
|
|
687
|
+
label: "Inclination",
|
|
688
|
+
value: `${safeNumber(spacecraft.inclination, 1)}°`,
|
|
689
|
+
inline: true,
|
|
690
|
+
tokens
|
|
691
|
+
})
|
|
692
|
+
}),
|
|
693
|
+
showTelemetry && telemetry && /* @__PURE__ */ jsxs("div", {
|
|
694
|
+
style: {
|
|
695
|
+
marginTop: tokens.spacing.md,
|
|
696
|
+
paddingTop: tokens.spacing.md,
|
|
697
|
+
borderTop: `1px solid ${tokens.colors.border.muted}`
|
|
698
|
+
},
|
|
699
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
700
|
+
style: {
|
|
701
|
+
display: "flex",
|
|
702
|
+
alignItems: "center",
|
|
703
|
+
gap: tokens.spacing.sm,
|
|
704
|
+
marginBottom: tokens.spacing.sm
|
|
705
|
+
},
|
|
706
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
707
|
+
"aria-hidden": "true",
|
|
708
|
+
style: {
|
|
709
|
+
width: 10,
|
|
710
|
+
height: 10,
|
|
711
|
+
borderRadius: "50%",
|
|
712
|
+
backgroundColor: statusColor,
|
|
713
|
+
boxShadow: `0 0 8px ${statusColor}60`
|
|
714
|
+
}
|
|
715
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
716
|
+
style: {
|
|
717
|
+
fontSize: tokens.typography.fontSize.xs,
|
|
718
|
+
fontWeight: tokens.typography.fontWeight.medium,
|
|
719
|
+
color: statusColor,
|
|
720
|
+
textTransform: "capitalize"
|
|
721
|
+
},
|
|
722
|
+
children: telemetry.health?.status ?? "Unknown"
|
|
723
|
+
})]
|
|
724
|
+
}), telemetry.power?.batteryLevel !== void 0 && /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("div", {
|
|
725
|
+
style: {
|
|
726
|
+
display: "flex",
|
|
727
|
+
justifyContent: "space-between",
|
|
728
|
+
marginBottom: 4,
|
|
729
|
+
fontSize: tokens.typography.fontSize.xs
|
|
730
|
+
},
|
|
731
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
732
|
+
style: { color: tokens.colors.text.tertiary },
|
|
733
|
+
children: "Battery"
|
|
734
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
735
|
+
style: {
|
|
736
|
+
fontFamily: tokens.typography.fontFamily.mono,
|
|
737
|
+
fontVariantNumeric: "tabular-nums"
|
|
738
|
+
},
|
|
739
|
+
children: formatPercentage(telemetry.power.batteryLevel, false, 0)
|
|
740
|
+
})]
|
|
741
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
742
|
+
style: {
|
|
743
|
+
height: 4,
|
|
744
|
+
backgroundColor: tokens.colors.border.muted,
|
|
745
|
+
borderRadius: 2,
|
|
746
|
+
overflow: "hidden"
|
|
747
|
+
},
|
|
748
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
749
|
+
role: "progressbar",
|
|
750
|
+
"aria-valuenow": telemetry.power.batteryLevel,
|
|
751
|
+
"aria-valuemin": 0,
|
|
752
|
+
"aria-valuemax": 100,
|
|
753
|
+
"aria-label": "Battery level",
|
|
754
|
+
style: {
|
|
755
|
+
height: "100%",
|
|
756
|
+
width: `${Math.min(100, Math.max(0, telemetry.power.batteryLevel))}%`,
|
|
757
|
+
backgroundColor: telemetry.power.batteryLevel > 30 ? tokens.colors.status.normal : tokens.colors.status.critical,
|
|
758
|
+
borderRadius: 2,
|
|
759
|
+
transition: `width ${transitionDuration} ease-out`
|
|
760
|
+
}
|
|
761
|
+
})
|
|
762
|
+
})] })]
|
|
763
|
+
}),
|
|
764
|
+
spacecraft.timestamp && /* @__PURE__ */ jsx("footer", {
|
|
765
|
+
style: {
|
|
766
|
+
marginTop: tokens.spacing.md,
|
|
767
|
+
paddingTop: tokens.spacing.sm,
|
|
768
|
+
borderTop: `1px solid ${tokens.colors.border.muted}`,
|
|
769
|
+
fontSize: tokens.typography.fontSize.xs,
|
|
770
|
+
color: tokens.colors.text.tertiary,
|
|
771
|
+
textAlign: "right"
|
|
772
|
+
},
|
|
773
|
+
children: /* @__PURE__ */ jsxs("time", {
|
|
774
|
+
dateTime: spacecraft.timestamp,
|
|
775
|
+
children: [formatTime(spacecraft.timestamp), " UTC"]
|
|
776
|
+
})
|
|
777
|
+
})
|
|
778
|
+
]
|
|
779
|
+
});
|
|
870
780
|
});
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
// WCAG AA compliant
|
|
916
|
-
fontWeight: tokens.typography.fontWeight.medium,
|
|
917
|
-
marginBottom: 2
|
|
918
|
-
},
|
|
919
|
-
children: label
|
|
920
|
-
}
|
|
921
|
-
),
|
|
922
|
-
/* @__PURE__ */ jsx(
|
|
923
|
-
"span",
|
|
924
|
-
{
|
|
925
|
-
style: {
|
|
926
|
-
display: "block",
|
|
927
|
-
fontSize: tokens.typography.fontSize.sm,
|
|
928
|
-
fontFamily: tokens.typography.fontFamily.mono,
|
|
929
|
-
fontVariantNumeric: "tabular-nums",
|
|
930
|
-
color: highlight ? highlightColor ?? safeAccentText(tokens.colors.accent.primary) : tokens.colors.text.primary,
|
|
931
|
-
fontWeight: tokens.typography.fontWeight.medium
|
|
932
|
-
},
|
|
933
|
-
children: value
|
|
934
|
-
}
|
|
935
|
-
)
|
|
936
|
-
] });
|
|
781
|
+
var DataCell = memo(function DataCell({ label, value, highlight = false, inline = false, tokens, highlightColor }) {
|
|
782
|
+
if (inline) return /* @__PURE__ */ jsxs("div", {
|
|
783
|
+
style: {
|
|
784
|
+
display: "flex",
|
|
785
|
+
justifyContent: "space-between",
|
|
786
|
+
alignItems: "center"
|
|
787
|
+
},
|
|
788
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
789
|
+
style: {
|
|
790
|
+
fontSize: tokens.typography.fontSize.xs,
|
|
791
|
+
color: tokens.colors.text.secondary,
|
|
792
|
+
fontWeight: tokens.typography.fontWeight.medium
|
|
793
|
+
},
|
|
794
|
+
children: label
|
|
795
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
796
|
+
style: {
|
|
797
|
+
fontSize: tokens.typography.fontSize.sm,
|
|
798
|
+
fontFamily: tokens.typography.fontFamily.mono,
|
|
799
|
+
fontVariantNumeric: "tabular-nums",
|
|
800
|
+
color: tokens.colors.text.primary
|
|
801
|
+
},
|
|
802
|
+
children: value
|
|
803
|
+
})]
|
|
804
|
+
});
|
|
805
|
+
return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("span", {
|
|
806
|
+
style: {
|
|
807
|
+
display: "block",
|
|
808
|
+
fontSize: tokens.typography.fontSize.xs,
|
|
809
|
+
color: tokens.colors.text.secondary,
|
|
810
|
+
fontWeight: tokens.typography.fontWeight.medium,
|
|
811
|
+
marginBottom: 2
|
|
812
|
+
},
|
|
813
|
+
children: label
|
|
814
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
815
|
+
style: {
|
|
816
|
+
display: "block",
|
|
817
|
+
fontSize: tokens.typography.fontSize.sm,
|
|
818
|
+
fontFamily: tokens.typography.fontFamily.mono,
|
|
819
|
+
fontVariantNumeric: "tabular-nums",
|
|
820
|
+
color: highlight ? highlightColor ?? safeAccentText(tokens.colors.accent.primary) : tokens.colors.text.primary,
|
|
821
|
+
fontWeight: tokens.typography.fontWeight.medium
|
|
822
|
+
},
|
|
823
|
+
children: value
|
|
824
|
+
})] });
|
|
937
825
|
});
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
//# sourceMappingURL=SpacecraftCard.js.map
|
|
826
|
+
//#endregion
|
|
827
|
+
export { SpacecraftCard };
|
|
828
|
+
|
|
829
|
+
//# sourceMappingURL=SpacecraftCard.js.map
|