@zendir/ui 0.1.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.
Files changed (359) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/LICENSE +21 -0
  3. package/README.md +589 -0
  4. package/dist/index.d.ts +8 -0
  5. package/dist/index.js +421 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/react/3d/EarthViewer.d.ts +46 -0
  8. package/dist/react/3d/EarthViewer.js +836 -0
  9. package/dist/react/3d/EarthViewer.js.map +1 -0
  10. package/dist/react/3d/SolarSystemViewer.d.ts +43 -0
  11. package/dist/react/3d/SolarSystemViewer.js +372 -0
  12. package/dist/react/3d/SolarSystemViewer.js.map +1 -0
  13. package/dist/react/3d/ZenSpace3D.d.ts +16 -0
  14. package/dist/react/3d/ZenSpace3D.js +1253 -0
  15. package/dist/react/3d/ZenSpace3D.js.map +1 -0
  16. package/dist/react/3d/ZenSpace3DCesium.d.ts +9 -0
  17. package/dist/react/3d/ZenSpace3DCesium.js +186 -0
  18. package/dist/react/3d/ZenSpace3DCesium.js.map +1 -0
  19. package/dist/react/3d/ZenSpace3DShaders.d.ts +78 -0
  20. package/dist/react/3d/ZenSpace3DShaders.js +94 -0
  21. package/dist/react/3d/ZenSpace3DShaders.js.map +1 -0
  22. package/dist/react/3d/ZenSpace3DTypes.d.ts +614 -0
  23. package/dist/react/3d/ZenSpace3DUtils.d.ts +183 -0
  24. package/dist/react/3d/ZenSpace3DUtils.js +213 -0
  25. package/dist/react/3d/ZenSpace3DUtils.js.map +1 -0
  26. package/dist/react/3d/index.d.ts +23 -0
  27. package/dist/react/3d/threeLoader.d.ts +22 -0
  28. package/dist/react/3d/threeLoader.js +18 -0
  29. package/dist/react/3d/threeLoader.js.map +1 -0
  30. package/dist/react/astro/ClassificationBanner.d.ts +25 -0
  31. package/dist/react/astro/ClassificationBanner.js +83 -0
  32. package/dist/react/astro/ClassificationBanner.js.map +1 -0
  33. package/dist/react/astro/GlobalStatusBar.d.ts +42 -0
  34. package/dist/react/astro/GlobalStatusBar.js +165 -0
  35. package/dist/react/astro/GlobalStatusBar.js.map +1 -0
  36. package/dist/react/astro/MissionClock.d.ts +169 -0
  37. package/dist/react/astro/MissionClock.js +411 -0
  38. package/dist/react/astro/MissionClock.js.map +1 -0
  39. package/dist/react/astro/MonitoringIcon.d.ts +60 -0
  40. package/dist/react/astro/MonitoringIcon.js +369 -0
  41. package/dist/react/astro/MonitoringIcon.js.map +1 -0
  42. package/dist/react/astro/Notification.d.ts +42 -0
  43. package/dist/react/astro/Notification.js +156 -0
  44. package/dist/react/astro/Notification.js.map +1 -0
  45. package/dist/react/astro/Progress.d.ts +39 -0
  46. package/dist/react/astro/Progress.js +149 -0
  47. package/dist/react/astro/Progress.js.map +1 -0
  48. package/dist/react/astro/SimulationControls.d.ts +136 -0
  49. package/dist/react/astro/SimulationControls.js +668 -0
  50. package/dist/react/astro/SimulationControls.js.map +1 -0
  51. package/dist/react/astro/StatusIndicator.d.ts +34 -0
  52. package/dist/react/astro/StatusIndicator.js +189 -0
  53. package/dist/react/astro/StatusIndicator.js.map +1 -0
  54. package/dist/react/astro/UnifiedTimeline.d.ts +106 -0
  55. package/dist/react/astro/UnifiedTimeline.js +1768 -0
  56. package/dist/react/astro/UnifiedTimeline.js.map +1 -0
  57. package/dist/react/astro/index.d.ts +63 -0
  58. package/dist/react/cards/AccessCard.d.ts +37 -0
  59. package/dist/react/cards/AccessCard.js +410 -0
  60. package/dist/react/cards/AccessCard.js.map +1 -0
  61. package/dist/react/cards/OrbitCard.d.ts +31 -0
  62. package/dist/react/cards/OrbitCard.js +372 -0
  63. package/dist/react/cards/OrbitCard.js.map +1 -0
  64. package/dist/react/cards/SpacecraftCard.d.ts +54 -0
  65. package/dist/react/cards/SpacecraftCard.js +941 -0
  66. package/dist/react/cards/SpacecraftCard.js.map +1 -0
  67. package/dist/react/cards/TelemetryCard.d.ts +40 -0
  68. package/dist/react/cards/TelemetryCard.js +742 -0
  69. package/dist/react/cards/TelemetryCard.js.map +1 -0
  70. package/dist/react/cards/TelemetryStreamCard.d.ts +59 -0
  71. package/dist/react/cards/TelemetryStreamCard.js +309 -0
  72. package/dist/react/cards/TelemetryStreamCard.js.map +1 -0
  73. package/dist/react/cards/index.d.ts +13 -0
  74. package/dist/react/charts/GroundTrackMap.d.ts +112 -0
  75. package/dist/react/charts/GroundTrackMap.js +1123 -0
  76. package/dist/react/charts/GroundTrackMap.js.map +1 -0
  77. package/dist/react/charts/GroundTrackMapLeaflet.d.ts +26 -0
  78. package/dist/react/charts/GroundTrackMapLeaflet.js +571 -0
  79. package/dist/react/charts/GroundTrackMapLeaflet.js.map +1 -0
  80. package/dist/react/charts/groundTrackMapLeafletTiles.d.ts +22 -0
  81. package/dist/react/charts/groundTrackMapLeafletTiles.js +11 -0
  82. package/dist/react/charts/groundTrackMapLeafletTiles.js.map +1 -0
  83. package/dist/react/charts/groundTrackMapLeafletUtils.d.ts +24 -0
  84. package/dist/react/charts/groundTrackMapLeafletUtils.js +109 -0
  85. package/dist/react/charts/groundTrackMapLeafletUtils.js.map +1 -0
  86. package/dist/react/charts/index.d.ts +10 -0
  87. package/dist/react/charts/unified/AstroChart.d.ts +24 -0
  88. package/dist/react/charts/unified/AstroChart.js +1405 -0
  89. package/dist/react/charts/unified/AstroChart.js.map +1 -0
  90. package/dist/react/charts/unified/PowerOverviewChart.d.ts +73 -0
  91. package/dist/react/charts/unified/PowerOverviewChart.js +488 -0
  92. package/dist/react/charts/unified/PowerOverviewChart.js.map +1 -0
  93. package/dist/react/charts/unified/domain.d.ts +845 -0
  94. package/dist/react/charts/unified/domain.js +3168 -0
  95. package/dist/react/charts/unified/domain.js.map +1 -0
  96. package/dist/react/charts/unified/generators.d.ts +276 -0
  97. package/dist/react/charts/unified/generators.js +518 -0
  98. package/dist/react/charts/unified/generators.js.map +1 -0
  99. package/dist/react/charts/unified/index.d.ts +55 -0
  100. package/dist/react/charts/unified/presets.d.ts +290 -0
  101. package/dist/react/charts/unified/presets.js +999 -0
  102. package/dist/react/charts/unified/presets.js.map +1 -0
  103. package/dist/react/charts/unified/sync.d.ts +69 -0
  104. package/dist/react/charts/unified/sync.js +219 -0
  105. package/dist/react/charts/unified/sync.js.map +1 -0
  106. package/dist/react/charts/unified/theme.d.ts +447 -0
  107. package/dist/react/charts/unified/theme.js +562 -0
  108. package/dist/react/charts/unified/theme.js.map +1 -0
  109. package/dist/react/charts/unified/types.d.ts +826 -0
  110. package/dist/react/charts/unified/useChartStream.d.ts +58 -0
  111. package/dist/react/charts/unified/useChartStream.js +226 -0
  112. package/dist/react/charts/unified/useChartStream.js.map +1 -0
  113. package/dist/react/chatgpt/AppCard.d.ts +59 -0
  114. package/dist/react/chatgpt/AppCard.js +306 -0
  115. package/dist/react/chatgpt/AppCard.js.map +1 -0
  116. package/dist/react/chatgpt/ChatGPTCard.d.ts +6 -0
  117. package/dist/react/chatgpt/index.d.ts +167 -0
  118. package/dist/react/chatgpt/index.js +166 -0
  119. package/dist/react/chatgpt/index.js.map +1 -0
  120. package/dist/react/context/DisplaySettingsContext.d.ts +107 -0
  121. package/dist/react/context/DisplaySettingsContext.js +169 -0
  122. package/dist/react/context/DisplaySettingsContext.js.map +1 -0
  123. package/dist/react/context/index.d.ts +5 -0
  124. package/dist/react/core/ActivityPlanner.d.ts +45 -0
  125. package/dist/react/core/ActivityPlanner.js +532 -0
  126. package/dist/react/core/ActivityPlanner.js.map +1 -0
  127. package/dist/react/core/AppBar.d.ts +71 -0
  128. package/dist/react/core/AppBar.js +817 -0
  129. package/dist/react/core/AppBar.js.map +1 -0
  130. package/dist/react/core/AstroIcon.d.ts +84 -0
  131. package/dist/react/core/AstroIcon.js +1243 -0
  132. package/dist/react/core/AstroIcon.js.map +1 -0
  133. package/dist/react/core/Badge.d.ts +27 -0
  134. package/dist/react/core/Badge.js +134 -0
  135. package/dist/react/core/Badge.js.map +1 -0
  136. package/dist/react/core/Button.d.ts +26 -0
  137. package/dist/react/core/Button.js +306 -0
  138. package/dist/react/core/Button.js.map +1 -0
  139. package/dist/react/core/CardHeader.d.ts +34 -0
  140. package/dist/react/core/CardHeader.js +316 -0
  141. package/dist/react/core/CardHeader.js.map +1 -0
  142. package/dist/react/core/ChatPanel.d.ts +627 -0
  143. package/dist/react/core/ChatPanel.js +1144 -0
  144. package/dist/react/core/ChatPanel.js.map +1 -0
  145. package/dist/react/core/Checkbox.d.ts +26 -0
  146. package/dist/react/core/Checkbox.js +130 -0
  147. package/dist/react/core/Checkbox.js.map +1 -0
  148. package/dist/react/core/ColorPickerPanel.d.ts +25 -0
  149. package/dist/react/core/ColorPickerPanel.js +293 -0
  150. package/dist/react/core/ColorPickerPanel.js.map +1 -0
  151. package/dist/react/core/CommandBuilder.d.ts +74 -0
  152. package/dist/react/core/CommandBuilder.js +518 -0
  153. package/dist/react/core/CommandBuilder.js.map +1 -0
  154. package/dist/react/core/ConfirmDialog.d.ts +45 -0
  155. package/dist/react/core/ConfirmDialog.js +315 -0
  156. package/dist/react/core/ConfirmDialog.js.map +1 -0
  157. package/dist/react/core/ConnectionForm.d.ts +57 -0
  158. package/dist/react/core/ConnectionForm.js +496 -0
  159. package/dist/react/core/ConnectionForm.js.map +1 -0
  160. package/dist/react/core/Container.d.ts +51 -0
  161. package/dist/react/core/Container.js +670 -0
  162. package/dist/react/core/Container.js.map +1 -0
  163. package/dist/react/core/CopyButton.d.ts +39 -0
  164. package/dist/react/core/CopyButton.js +105 -0
  165. package/dist/react/core/CopyButton.js.map +1 -0
  166. package/dist/react/core/DataTable.d.ts +113 -0
  167. package/dist/react/core/DataTable.js +446 -0
  168. package/dist/react/core/DataTable.js.map +1 -0
  169. package/dist/react/core/DataValue.d.ts +64 -0
  170. package/dist/react/core/DataValue.js +545 -0
  171. package/dist/react/core/DataValue.js.map +1 -0
  172. package/dist/react/core/Dialog.d.ts +32 -0
  173. package/dist/react/core/Dialog.js +201 -0
  174. package/dist/react/core/Dialog.js.map +1 -0
  175. package/dist/react/core/FileExplorer.d.ts +65 -0
  176. package/dist/react/core/FileExplorer.js +520 -0
  177. package/dist/react/core/FileExplorer.js.map +1 -0
  178. package/dist/react/core/GlassCard.d.ts +129 -0
  179. package/dist/react/core/GlassCard.js +375 -0
  180. package/dist/react/core/GlassCard.js.map +1 -0
  181. package/dist/react/core/HeaderIconWithStatus.d.ts +39 -0
  182. package/dist/react/core/HeaderIconWithStatus.js +157 -0
  183. package/dist/react/core/HeaderIconWithStatus.js.map +1 -0
  184. package/dist/react/core/HexViewer.d.ts +143 -0
  185. package/dist/react/core/HexViewer.js +1106 -0
  186. package/dist/react/core/HexViewer.js.map +1 -0
  187. package/dist/react/core/Icon.d.ts +32 -0
  188. package/dist/react/core/Icon.js +142 -0
  189. package/dist/react/core/Icon.js.map +1 -0
  190. package/dist/react/core/ImageGallery.d.ts +41 -0
  191. package/dist/react/core/ImageGallery.js +320 -0
  192. package/dist/react/core/ImageGallery.js.map +1 -0
  193. package/dist/react/core/Input.d.ts +38 -0
  194. package/dist/react/core/Input.js +288 -0
  195. package/dist/react/core/Input.js.map +1 -0
  196. package/dist/react/core/LimitsBar.d.ts +51 -0
  197. package/dist/react/core/LimitsBar.js +200 -0
  198. package/dist/react/core/LimitsBar.js.map +1 -0
  199. package/dist/react/core/LogViewer.d.ts +61 -0
  200. package/dist/react/core/LogViewer.js +599 -0
  201. package/dist/react/core/LogViewer.js.map +1 -0
  202. package/dist/react/core/MessageStream.d.ts +58 -0
  203. package/dist/react/core/MessageStream.js +455 -0
  204. package/dist/react/core/MessageStream.js.map +1 -0
  205. package/dist/react/core/MissionCalendar.d.ts +81 -0
  206. package/dist/react/core/MissionCalendar.js +1049 -0
  207. package/dist/react/core/MissionCalendar.js.map +1 -0
  208. package/dist/react/core/NumberInput.d.ts +85 -0
  209. package/dist/react/core/NumberInput.js +507 -0
  210. package/dist/react/core/NumberInput.js.map +1 -0
  211. package/dist/react/core/PacketViewer.d.ts +73 -0
  212. package/dist/react/core/PacketViewer.js +431 -0
  213. package/dist/react/core/PacketViewer.js.map +1 -0
  214. package/dist/react/core/Pagination.d.ts +30 -0
  215. package/dist/react/core/Pagination.js +190 -0
  216. package/dist/react/core/Pagination.js.map +1 -0
  217. package/dist/react/core/PinInput.d.ts +41 -0
  218. package/dist/react/core/PinInput.js +210 -0
  219. package/dist/react/core/PinInput.js.map +1 -0
  220. package/dist/react/core/Popover.d.ts +55 -0
  221. package/dist/react/core/Popover.js +288 -0
  222. package/dist/react/core/Popover.js.map +1 -0
  223. package/dist/react/core/Select.d.ts +42 -0
  224. package/dist/react/core/Select.js +303 -0
  225. package/dist/react/core/Select.js.map +1 -0
  226. package/dist/react/core/SideNav.d.ts +103 -0
  227. package/dist/react/core/SideNav.js +551 -0
  228. package/dist/react/core/SideNav.js.map +1 -0
  229. package/dist/react/core/SidePanel.d.ts +33 -0
  230. package/dist/react/core/SidePanel.js +199 -0
  231. package/dist/react/core/SidePanel.js.map +1 -0
  232. package/dist/react/core/Tabs.d.ts +47 -0
  233. package/dist/react/core/Tabs.js +129 -0
  234. package/dist/react/core/Tabs.js.map +1 -0
  235. package/dist/react/core/Toast.d.ts +56 -0
  236. package/dist/react/core/Toast.js +229 -0
  237. package/dist/react/core/Toast.js.map +1 -0
  238. package/dist/react/core/Toggle.d.ts +22 -0
  239. package/dist/react/core/Toggle.js +151 -0
  240. package/dist/react/core/Toggle.js.map +1 -0
  241. package/dist/react/core/Tooltip.d.ts +19 -0
  242. package/dist/react/core/Tooltip.js +179 -0
  243. package/dist/react/core/Tooltip.js.map +1 -0
  244. package/dist/react/core/Typography.d.ts +127 -0
  245. package/dist/react/core/Typography.js +187 -0
  246. package/dist/react/core/Typography.js.map +1 -0
  247. package/dist/react/core/index.d.ts +108 -0
  248. package/dist/react/core/layout/Box.d.ts +77 -0
  249. package/dist/react/core/layout/Box.js +126 -0
  250. package/dist/react/core/layout/Box.js.map +1 -0
  251. package/dist/react/core/layout/Center.d.ts +20 -0
  252. package/dist/react/core/layout/Center.js +34 -0
  253. package/dist/react/core/layout/Center.js.map +1 -0
  254. package/dist/react/core/layout/Divider.d.ts +16 -0
  255. package/dist/react/core/layout/Divider.js +108 -0
  256. package/dist/react/core/layout/Divider.js.map +1 -0
  257. package/dist/react/core/layout/Flex.d.ts +30 -0
  258. package/dist/react/core/layout/Flex.js +128 -0
  259. package/dist/react/core/layout/Flex.js.map +1 -0
  260. package/dist/react/core/layout/Grid.d.ts +36 -0
  261. package/dist/react/core/layout/Grid.js +142 -0
  262. package/dist/react/core/layout/Grid.js.map +1 -0
  263. package/dist/react/core/layout/Spacer.d.ts +8 -0
  264. package/dist/react/core/layout/Spacer.js +31 -0
  265. package/dist/react/core/layout/Spacer.js.map +1 -0
  266. package/dist/react/core/layout/Stack.d.ts +54 -0
  267. package/dist/react/core/layout/Stack.js +74 -0
  268. package/dist/react/core/layout/Stack.js.map +1 -0
  269. package/dist/react/core/layout/index.d.ts +38 -0
  270. package/dist/react/core/layout/responsive.d.ts +23 -0
  271. package/dist/react/core/layout/responsive.js +26 -0
  272. package/dist/react/core/layout/responsive.js.map +1 -0
  273. package/dist/react/core/layout/useBreakpoint.d.ts +77 -0
  274. package/dist/react/core/layout/useBreakpoint.js +73 -0
  275. package/dist/react/core/layout/useBreakpoint.js.map +1 -0
  276. package/dist/react/core/propertyConfig.d.ts +443 -0
  277. package/dist/react/core/propertyConfig.js +399 -0
  278. package/dist/react/core/propertyConfig.js.map +1 -0
  279. package/dist/react/hooks/index.d.ts +21 -0
  280. package/dist/react/hooks/useAccessWindows.d.ts +66 -0
  281. package/dist/react/hooks/useCompactMode.d.ts +82 -0
  282. package/dist/react/hooks/useCompactMode.js +62 -0
  283. package/dist/react/hooks/useCompactMode.js.map +1 -0
  284. package/dist/react/hooks/useLiveSelection.d.ts +57 -0
  285. package/dist/react/hooks/useSimulationPlayback.d.ts +97 -0
  286. package/dist/react/hooks/useSimulationTime.d.ts +61 -0
  287. package/dist/react/hooks/useSpacecraftPosition.d.ts +50 -0
  288. package/dist/react/hooks/useSpacecraftPosition.js +89 -0
  289. package/dist/react/hooks/useSpacecraftPosition.js.map +1 -0
  290. package/dist/react/hooks/useTelemetry.d.ts +55 -0
  291. package/dist/react/hooks/useTelemetry.js +73 -0
  292. package/dist/react/hooks/useTelemetry.js.map +1 -0
  293. package/dist/react/hooks/useZendirSession.d.ts +109 -0
  294. package/dist/react/hooks/useZendirSession.js +148 -0
  295. package/dist/react/hooks/useZendirSession.js.map +1 -0
  296. package/dist/react/index.d.ts +74 -0
  297. package/dist/react/shared/ErrorBoundary.d.ts +63 -0
  298. package/dist/react/shared/ErrorBoundary.js +142 -0
  299. package/dist/react/shared/ErrorBoundary.js.map +1 -0
  300. package/dist/react/shared/Skeleton.d.ts +110 -0
  301. package/dist/react/shared/Skeleton.js +324 -0
  302. package/dist/react/shared/Skeleton.js.map +1 -0
  303. package/dist/react/shared/index.d.ts +12 -0
  304. package/dist/react/theme/ThemeProvider.d.ts +385 -0
  305. package/dist/react/theme/ThemeProvider.js +1096 -0
  306. package/dist/react/theme/ThemeProvider.js.map +1 -0
  307. package/dist/react/theme/astro-tokens.d.ts +153 -0
  308. package/dist/react/theme/cardAccent.d.ts +75 -0
  309. package/dist/react/theme/cardAccent.js +137 -0
  310. package/dist/react/theme/cardAccent.js.map +1 -0
  311. package/dist/react/theme/config.d.ts +39 -0
  312. package/dist/react/theme/index.d.ts +9 -0
  313. package/dist/react/types.d.ts +360 -0
  314. package/dist/react/types.js +58 -0
  315. package/dist/react/types.js.map +1 -0
  316. package/dist/react/utils/index.d.ts +247 -0
  317. package/dist/react/utils/index.js +423 -0
  318. package/dist/react/utils/index.js.map +1 -0
  319. package/dist/react/visualizations/EclipseTimerCard.d.ts +17 -0
  320. package/dist/react/visualizations/EclipseTimerCard.js +250 -0
  321. package/dist/react/visualizations/EclipseTimerCard.js.map +1 -0
  322. package/dist/react/visualizations/LinkBudgetCard.d.ts +50 -0
  323. package/dist/react/visualizations/LinkBudgetCard.js +444 -0
  324. package/dist/react/visualizations/LinkBudgetCard.js.map +1 -0
  325. package/dist/react/visualizations/NavBallCard.d.ts +17 -0
  326. package/dist/react/visualizations/NavBallCard.js +243 -0
  327. package/dist/react/visualizations/NavBallCard.js.map +1 -0
  328. package/dist/react/visualizations/PropulsionCard.d.ts +37 -0
  329. package/dist/react/visualizations/PropulsionCard.js +298 -0
  330. package/dist/react/visualizations/PropulsionCard.js.map +1 -0
  331. package/dist/react/visualizations/SensorFootprintCard.d.ts +33 -0
  332. package/dist/react/visualizations/SensorFootprintCard.js +326 -0
  333. package/dist/react/visualizations/SensorFootprintCard.js.map +1 -0
  334. package/dist/react/visualizations/ThermalHeatmapCard.d.ts +38 -0
  335. package/dist/react/visualizations/ThermalHeatmapCard.js +372 -0
  336. package/dist/react/visualizations/ThermalHeatmapCard.js.map +1 -0
  337. package/dist/react/visualizations/index.d.ts +17 -0
  338. package/dist/react.d.ts +1 -0
  339. package/dist/react.js +421 -0
  340. package/dist/react.js.map +1 -0
  341. package/dist/shaders/atmosphere.frag.js +5 -0
  342. package/dist/shaders/atmosphere.frag.js.map +1 -0
  343. package/dist/shaders/atmosphere.vert.js +5 -0
  344. package/dist/shaders/atmosphere.vert.js.map +1 -0
  345. package/dist/shaders/stars.frag.js +5 -0
  346. package/dist/shaders/stars.frag.js.map +1 -0
  347. package/dist/shaders/stars.vert.js +5 -0
  348. package/dist/shaders/stars.vert.js.map +1 -0
  349. package/dist/style.css +143 -0
  350. package/dist/tokens/index.d.ts +296 -0
  351. package/dist/tokens/index.js +263 -0
  352. package/dist/tokens/index.js.map +1 -0
  353. package/dist/tokens/tokens.css +155 -0
  354. package/dist/types/index.d.ts +23 -0
  355. package/dist/types.d.ts +1 -0
  356. package/dist/types.js +2 -0
  357. package/dist/types.js.map +1 -0
  358. package/package.json +220 -0
  359. package/sdk-stub.js +22 -0
@@ -0,0 +1,155 @@
1
+ /**
2
+ * @zendir/ui - CSS Design Tokens
3
+ *
4
+ * Import this file to use Zendir design tokens as CSS custom properties.
5
+ *
6
+ * Usage:
7
+ * @import '@zendir/ui/tokens/css';
8
+ *
9
+ * .my-component {
10
+ * background: var(--zendir-bg-surface);
11
+ * color: var(--zendir-text-primary);
12
+ * }
13
+ */
14
+
15
+ :root {
16
+ /* ========================================
17
+ * STATUS COLORS (Astro UX Compliant)
18
+ * ======================================== */
19
+ --zendir-status-critical: #ff3838;
20
+ --zendir-status-serious: #ffb302;
21
+ --zendir-status-caution: #fce83a;
22
+ --zendir-status-normal: #56f000;
23
+ --zendir-status-standby: #2dccff;
24
+ --zendir-status-off: #a4abb6;
25
+
26
+ /* Light Theme Status Fill Colors */
27
+ --zendir-status-critical-light: #ff2a04;
28
+ --zendir-status-serious-light: #ffaf3d;
29
+ --zendir-status-caution-light: #fad800;
30
+ --zendir-status-normal-light: #00e200;
31
+ --zendir-status-standby-light: #64d9ff;
32
+ --zendir-status-off-light: #7b8089;
33
+
34
+ /* Light Theme Status Border Colors */
35
+ --zendir-status-critical-border: #661102;
36
+ --zendir-status-serious-border: #664618;
37
+ --zendir-status-caution-border: #645600;
38
+ --zendir-status-normal-border: #005a00;
39
+ --zendir-status-standby-border: #285766;
40
+ --zendir-status-off-border: #3c3e42;
41
+
42
+ /* ========================================
43
+ * ACCENT COLORS
44
+ * ======================================== */
45
+ --zendir-accent-primary: #4dacff;
46
+ --zendir-accent-secondary: #3d8ddb;
47
+ --zendir-accent-tertiary: #2e6eb3;
48
+
49
+ /* ========================================
50
+ * SPACING
51
+ * ======================================== */
52
+ --zendir-spacing-xs: 4px;
53
+ --zendir-spacing-sm: 8px;
54
+ --zendir-spacing-md: 16px;
55
+ --zendir-spacing-lg: 24px;
56
+ --zendir-spacing-xl: 32px;
57
+ --zendir-spacing-xxl: 48px;
58
+
59
+ /* ========================================
60
+ * BORDER RADIUS
61
+ * ======================================== */
62
+ --zendir-radius-none: 0;
63
+ --zendir-radius-sm: 2px;
64
+ --zendir-radius-md: 4px;
65
+ --zendir-radius-lg: 8px;
66
+ --zendir-radius-xl: 16px;
67
+ --zendir-radius-full: 9999px;
68
+
69
+ /* ========================================
70
+ * TYPOGRAPHY - AstroUXDS Compliant
71
+ * @see https://www.astrouxds.com/foundations/typography/
72
+ * ======================================== */
73
+ --zendir-font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
74
+ --zendir-font-mono: 'Roboto Mono', 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
75
+
76
+ /* Compact sizes for dense UIs */
77
+ --zendir-font-size-micro: 0.5625rem; /* 9px */
78
+ --zendir-font-size-xxs: 0.625rem; /* 10px */
79
+ /* Standard sizes */
80
+ --zendir-font-size-xs: 0.75rem; /* 12px */
81
+ --zendir-font-size-sm: 0.875rem; /* 14px */
82
+ --zendir-font-size-base: 1rem; /* 16px */
83
+ --zendir-font-size-md: 1.125rem; /* 18px */
84
+ --zendir-font-size-lg: 1.25rem; /* 20px */
85
+ --zendir-font-size-xl: 1.5rem; /* 24px */
86
+ --zendir-font-size-xxl: 2rem; /* 32px */
87
+ --zendir-font-size-xxxl: 2.5rem; /* 40px */
88
+
89
+ /* Font weights per AstroUXDS: only 300, 400, 500, 700 */
90
+ --zendir-font-weight-light: 300;
91
+ --zendir-font-weight-normal: 400;
92
+ --zendir-font-weight-medium: 500;
93
+ --zendir-font-weight-semibold: 500; /* Use medium (500) - Astro doesn't support 600 */
94
+ --zendir-font-weight-bold: 700;
95
+
96
+ --zendir-line-height-tight: 1.25;
97
+ --zendir-line-height-normal: 1.5;
98
+ --zendir-line-height-relaxed: 1.75;
99
+
100
+ /* ========================================
101
+ * SHADOWS
102
+ * ======================================== */
103
+ --zendir-shadow-none: none;
104
+ --zendir-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
105
+ --zendir-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.3);
106
+ --zendir-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.3);
107
+ --zendir-shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.4);
108
+ --zendir-shadow-glow: 0 0 20px rgba(77, 172, 255, 0.4);
109
+
110
+ /* ========================================
111
+ * ANIMATION
112
+ * ======================================== */
113
+ --zendir-animation-fast: 150ms ease;
114
+ --zendir-animation-normal: 250ms ease;
115
+ --zendir-animation-slow: 400ms ease;
116
+ }
117
+
118
+ /* ========================================
119
+ * DARK THEME (Default)
120
+ * ======================================== */
121
+ :root,
122
+ [data-theme="dark"] {
123
+ --zendir-bg-base: #101923;
124
+ --zendir-bg-surface: #1b2d3e;
125
+ --zendir-bg-elevated: #243647;
126
+ --zendir-bg-overlay: rgba(0, 0, 0, 0.7);
127
+
128
+ --zendir-text-primary: #ffffff;
129
+ --zendir-text-secondary: #9ea7ad;
130
+ --zendir-text-tertiary: #6b7175;
131
+ --zendir-text-muted: #52595f;
132
+
133
+ --zendir-border-default: #3c4b5a;
134
+ --zendir-border-muted: #2b3d4e;
135
+ --zendir-border-focus: #4dacff;
136
+ }
137
+
138
+ /* ========================================
139
+ * LIGHT THEME
140
+ * ======================================== */
141
+ [data-theme="light"] {
142
+ --zendir-bg-base: #f5f6f9;
143
+ --zendir-bg-surface: #ffffff;
144
+ --zendir-bg-elevated: #ffffff;
145
+ --zendir-bg-overlay: rgba(0, 0, 0, 0.5);
146
+
147
+ --zendir-text-primary: #1b2d3e;
148
+ --zendir-text-secondary: #4c5a67;
149
+ --zendir-text-tertiary: #7a8891;
150
+ --zendir-text-muted: #a4adb5;
151
+
152
+ --zendir-border-default: #c4c8cc;
153
+ --zendir-border-muted: #e1e4e8;
154
+ --zendir-border-focus: #4dacff;
155
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @zendir/ui - UI-Specific Types
3
+ */
4
+ /**
5
+ * Aggregated anomaly status for a spacecraft or subsystem
6
+ */
7
+ export interface AnomalyStatus {
8
+ hasAnomaly: boolean;
9
+ anomalies: Anomaly[];
10
+ }
11
+ /**
12
+ * Individual anomaly for display in UI alerts
13
+ * Severity uses AstroUXDS terminology: caution, serious, critical
14
+ */
15
+ export interface Anomaly {
16
+ type: 'gyroscope' | 'star_tracker' | 'power' | 'communication' | 'thermal' | 'propulsion';
17
+ /** Severity level (AstroUXDS: caution/serious/critical) */
18
+ severity: 'caution' | 'serious' | 'critical';
19
+ timestamp: string;
20
+ description: string;
21
+ subsystem?: string;
22
+ acknowledged?: boolean;
23
+ }
@@ -0,0 +1 @@
1
+ export * from './types/index'
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,220 @@
1
+ {
2
+ "name": "@zendir/ui",
3
+ "version": "0.1.0",
4
+ "description": "React UI components for space operations, built on the Astro UX Design System",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "sideEffects": [
10
+ "*.css"
11
+ ],
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.js"
16
+ },
17
+ "./react": {
18
+ "types": "./dist/react/index.d.ts",
19
+ "import": "./dist/react/index.js"
20
+ },
21
+ "./react/core": {
22
+ "types": "./dist/react/core/index.d.ts",
23
+ "import": "./dist/react/core/index.js"
24
+ },
25
+ "./react/charts": {
26
+ "types": "./dist/react/charts/index.d.ts",
27
+ "import": "./dist/react/charts/index.js"
28
+ },
29
+ "./react/3d": {
30
+ "types": "./dist/react/3d/index.d.ts",
31
+ "import": "./dist/react/3d/index.js"
32
+ },
33
+ "./react/astro": {
34
+ "types": "./dist/react/astro/index.d.ts",
35
+ "import": "./dist/react/astro/index.js"
36
+ },
37
+ "./react/chatgpt": {
38
+ "types": "./dist/react/chatgpt/index.d.ts",
39
+ "import": "./dist/react/chatgpt/index.js"
40
+ },
41
+ "./tokens": {
42
+ "types": "./dist/tokens/index.d.ts",
43
+ "import": "./dist/tokens/index.js"
44
+ },
45
+ "./tokens/css": "./dist/tokens/tokens.css",
46
+ "./sdk-stub": "./sdk-stub.js",
47
+ "./styles": "./dist/style.css"
48
+ },
49
+ "publishConfig": {
50
+ "access": "public"
51
+ },
52
+ "files": [
53
+ "dist",
54
+ "sdk-stub.js",
55
+ "README.md",
56
+ "CHANGELOG.md",
57
+ "LICENSE"
58
+ ],
59
+ "overrides": {
60
+ "@testing-library/dom": "10.4.1"
61
+ },
62
+ "scripts": {
63
+ "dev": "vite build --watch",
64
+ "demo": "npm run build && cd zendir-ui-demo && npm run dev",
65
+ "demo:install": "cd zendir-ui-demo && npm install",
66
+ "build:demo": "npm run build && cd zendir-ui-demo && npm ci && npm run build",
67
+ "build": "vite build && npm run build:tokens:css",
68
+ "build:tokens:css": "node scripts/copy-tokens-css.js",
69
+ "build:tokens": "node scripts/build-tokens.js",
70
+ "build:types": "npx tsc --emitDeclarationOnly",
71
+ "typecheck": "npx tsc -p tsconfig.json --noEmit",
72
+ "lint": "eslint src --ext ts,tsx",
73
+ "lint:fix": "eslint src --ext ts,tsx --fix",
74
+ "format": "prettier --write \"src/**/*.{ts,tsx,css}\"",
75
+ "format:check": "prettier --check \"src/**/*.{ts,tsx,css}\"",
76
+ "test": "vitest",
77
+ "test:run": "vitest run",
78
+ "test:coverage": "vitest run --coverage",
79
+ "test:ui": "vitest --ui",
80
+ "storybook": "storybook dev -p 6006",
81
+ "storybook:fast": "node -e \"process.env.STORYBOOK_FAST='1'; const extra=process.argv.slice(1); const args=['dev', ...(extra.length ? extra : ['-p','6006'])]; require('child_process').spawn('storybook', args, { stdio: 'inherit', shell: true, env: process.env });\"",
82
+ "build-storybook": "storybook build",
83
+ "size": "size-limit",
84
+ "analyze": "vite-bundle-visualizer",
85
+ "prepublishOnly": "npm run build && npm run test:run",
86
+ "changeset": "changeset",
87
+ "version": "changeset version",
88
+ "release": "changeset publish"
89
+ },
90
+ "peerDependencies": {
91
+ "@astrouxds/react": "^7.27.0",
92
+ "cesium": "^1.120.0",
93
+ "echarts": "^5.6.0",
94
+ "echarts-for-react": "^3.0.6",
95
+ "echarts-gl": "^2.0.9",
96
+ "leaflet": "^1.9.0",
97
+ "react": "^18.0.0 || ^19.0.0",
98
+ "react-dom": "^18.0.0 || ^19.0.0",
99
+ "three": "^0.183.2"
100
+ },
101
+ "peerDependenciesMeta": {
102
+ "@astrouxds/react": {
103
+ "optional": true
104
+ },
105
+ "echarts": {
106
+ "optional": true
107
+ },
108
+ "echarts-for-react": {
109
+ "optional": true
110
+ },
111
+ "echarts-gl": {
112
+ "optional": true
113
+ },
114
+ "cesium": {
115
+ "optional": true
116
+ },
117
+ "three": {
118
+ "optional": true
119
+ },
120
+ "leaflet": {
121
+ "optional": true
122
+ },
123
+ "@zendir/sdk": {
124
+ "optional": true
125
+ }
126
+ },
127
+ "devDependencies": {
128
+ "@astrouxds/react": "^7.27.0",
129
+ "@changesets/cli": "^2.27.0",
130
+ "@size-limit/preset-small-lib": "^12.0.0",
131
+ "@storybook/addon-a11y": "8.6.17",
132
+ "@storybook/addon-essentials": "8.6.17",
133
+ "@storybook/addon-interactions": "8.6.17",
134
+ "@storybook/addon-links": "8.6.17",
135
+ "@storybook/blocks": "8.6.17",
136
+ "@storybook/react": "8.6.17",
137
+ "@storybook/react-vite": "8.6.17",
138
+ "@storybook/test": "8.6.17",
139
+ "@testing-library/jest-dom": "^6.0.0",
140
+ "@testing-library/react": "^16.0.0",
141
+ "@testing-library/user-event": "^14.0.0",
142
+ "@types/leaflet": "^1.9.0",
143
+ "@types/node": "^25.3.2",
144
+ "@types/react": "^18.0.0",
145
+ "@types/react-dom": "^18.3.7",
146
+ "@types/three": "^0.170.0",
147
+ "@typescript-eslint/eslint-plugin": "^7.0.0",
148
+ "@typescript-eslint/parser": "^7.0.0",
149
+ "@vitejs/plugin-react": "^4.0.0",
150
+ "@vitest/coverage-v8": "^1.0.0",
151
+ "@vitest/ui": "^1.0.0",
152
+ "cesium": "^1.129.0",
153
+ "echarts": "^5.6.0",
154
+ "echarts-for-react": "^3.0.6",
155
+ "echarts-gl": "^2.0.9",
156
+ "eslint": "^8.0.0",
157
+ "eslint-config-prettier": "^9.0.0",
158
+ "eslint-plugin-jsx-a11y": "^6.8.0",
159
+ "eslint-plugin-react": "^7.33.0",
160
+ "eslint-plugin-react-hooks": "^4.6.0",
161
+ "eslint-plugin-storybook": "^0.8.0",
162
+ "happy-dom": "^20.7.0",
163
+ "jsdom": "^28.1.0",
164
+ "leaflet": "^1.9.0",
165
+ "prettier": "^3.0.0",
166
+ "react": "^18.2.0",
167
+ "react-dom": "^18.3.1",
168
+ "size-limit": "^12.0.0",
169
+ "storybook": "8.6.17",
170
+ "three": "^0.183.2",
171
+ "typescript": "^5.9.3",
172
+ "vite": "^5.0.0",
173
+ "vite-bundle-visualizer": "^1.0.0",
174
+ "vite-plugin-dts": "^3.0.0",
175
+ "vitest": "^1.0.0"
176
+ },
177
+ "size-limit": [
178
+ {
179
+ "path": "dist/react/index.js",
180
+ "limit": "50 KB"
181
+ },
182
+ {
183
+ "path": "dist/tokens/index.js",
184
+ "limit": "5 KB"
185
+ }
186
+ ],
187
+ "repository": {
188
+ "type": "git",
189
+ "url": "git+https://github.com/zendir-dev/zendir-ui.git"
190
+ },
191
+ "bugs": {
192
+ "url": "https://github.com/zendir-dev/zendir-ui/issues"
193
+ },
194
+ "homepage": "https://github.com/zendir-dev/zendir-ui#readme",
195
+ "keywords": [
196
+ "zendir",
197
+ "space",
198
+ "spacecraft",
199
+ "satellite",
200
+ "telemetry",
201
+ "astro-ux",
202
+ "react",
203
+ "ui-library",
204
+ "design-system",
205
+ "components",
206
+ "accessible",
207
+ "a11y",
208
+ "wcag",
209
+ "wcag-2.2-aa",
210
+ "european-accessibility-act",
211
+ "en-301-549",
212
+ "mission-control",
213
+ "orbit-visualization"
214
+ ],
215
+ "author": "Zendir",
216
+ "license": "MIT",
217
+ "engines": {
218
+ "node": ">=18.0.0"
219
+ }
220
+ }
package/sdk-stub.js ADDED
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @zendir/ui — optional stub for @zendir/sdk
3
+ *
4
+ * Use this when you do NOT install @zendir/sdk so that Vite/bundlers can resolve
5
+ * the optional peer and the app still runs (hooks will report "SDK not installed").
6
+ *
7
+ * In your app's vite.config (or similar), add:
8
+ *
9
+ * resolve: {
10
+ * alias: {
11
+ * '@zendir/sdk': require.resolve('@zendir/ui/sdk-stub'),
12
+ * },
13
+ * },
14
+ *
15
+ * Only add this alias when @zendir/sdk is not installed.
16
+ */
17
+
18
+ export function getZendirClient() {
19
+ return null;
20
+ }
21
+
22
+ export default { getZendirClient };