@zendir/ui 0.2.3 → 0.2.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Container.js","sources":["../../../src/react/core/Container.tsx"],"sourcesContent":["/**\n * @zendir/ui - Container/Card Component\n * \n * Container/Card wrapper following Astro UX Design System.\n * Automatically switches to glassmorphic styling when transparent themes are active.\n * \n * Transparent themes (transparent, transparent-bold):\n * - Glassmorphic panels with blur effect\n * - Colored top border accent\n * - Hover glow effect (like GlassCard)\n * - transparent-bold has 2px top border\n * \n * @example\n * ```tsx\n * <Container>Simple container</Container>\n * <Container title=\"Spacecraft Status\" status=\"normal\">Content</Container>\n * <Container title=\"Power System\" icon=\"solar\" iconStatus=\"normal\">With status</Container>\n * <Container title=\"Custom Color\" icon=\"thermal\" iconColor=\"#FF6B6B\">Custom color</Container>\n * ```\n */\n\nimport React, { memo, useCallback } from 'react';\nimport { useTheme } from '../theme';\nimport { classNames, addAlpha, type StatusLevel } from '../utils';\nimport { AstroIcon, type AstroIconName } from './AstroIcon';\nimport { HeaderIconWithStatus } from './HeaderIconWithStatus';\nimport { CardHeader } from './CardHeader';\nimport { useBreakpoint } from './layout/useBreakpoint';\n\nexport type ContainerVariant = 'default' | 'elevated' | 'outlined' | 'ghost' | 'glass' | 'glass-dark' | 'glass-light';\nexport type ContainerPadding = 'none' | 'sm' | 'md' | 'lg';\n\n/** Status colors matching Astro UXD status system */\nconst STATUS_COLORS: Record<StatusLevel, string> = {\n off: '#a4abb6',\n standby: '#2dccff',\n normal: '#56f000',\n caution: '#fce83a',\n serious: '#ffb302',\n critical: '#ff3838',\n};\n\n/** Status descriptions for tooltips (default synonyms from AstroUXDS) */\nconst STATUS_DESCRIPTIONS: Record<StatusLevel, string> = {\n off: 'Off, unavailable, disabled',\n standby: 'Standby, available, enabled',\n normal: 'Normal, ok, satisfactory',\n caution: 'Caution, warning, unstable',\n serious: 'Serious, error, needs attention',\n critical: 'Critical, emergency, urgent',\n};\n\n/** Status symbol shapes following AstroUXDS guidelines */\ntype _StatusShape = 'circle' | 'square' | 'diamond' | 'triangle' | 'circle-hollow';\n\nexport interface ContainerProps {\n /** Visual variant */\n variant?: ContainerVariant;\n /** Padding size */\n padding?: ContainerPadding;\n /** Container title */\n title?: React.ReactNode;\n /** Subtitle or description */\n subtitle?: React.ReactNode;\n /** Status indicator (affects left border in non-glass mode) */\n status?: StatusLevel;\n /** Header actions (buttons, etc.) */\n actions?: React.ReactNode;\n /** Full height */\n fullHeight?: boolean;\n /**\n * Clip overflowing content area when fullHeight is enabled.\n * Keep false for form cards so wrapped rows can expand naturally.\n */\n clipContent?: boolean;\n /** Loading state */\n loading?: boolean;\n /** Children */\n children: React.ReactNode;\n /** Custom className */\n className?: string;\n /** Custom style */\n style?: React.CSSProperties;\n /** Click handler */\n onClick?: () => void;\n /** Disable auto-glass effect in transparent theme */\n disableAutoGlass?: boolean;\n /** Icon to display in header (Astro icon name) */\n icon?: AstroIconName;\n /** Icon status - shows status symbol and colors icon accordingly */\n iconStatus?: StatusLevel;\n /** Custom status message shown in tooltip (overrides default description) */\n statusMessage?: string;\n /** Custom icon color (overrides iconStatus and theme color) */\n iconColor?: string;\n /** Custom accent color for glass mode (title, line, etc.) */\n accentColor?: string;\n}\n\n/**\n * Icon wrapper with status tooltip - triggers tooltip on hover over entire icon area\n */\nfunction IconWithStatusTooltip({\n icon,\n iconColor,\n iconStatus,\n statusMessage,\n iconSize = 20,\n}: {\n icon: string;\n iconColor: string;\n iconStatus?: StatusLevel;\n statusMessage?: string;\n iconSize?: number;\n}): React.ReactElement {\n const [isHovered, setIsHovered] = React.useState(false);\n const color = iconStatus ? STATUS_COLORS[iconStatus] : iconColor;\n const defaultMessage = iconStatus ? STATUS_DESCRIPTIONS[iconStatus] : '';\n const tooltipText = statusMessage || defaultMessage;\n const statusLabel = iconStatus ? iconStatus.charAt(0).toUpperCase() + iconStatus.slice(1) : '';\n \n return (\n <div\n style={{\n position: 'relative',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexShrink: 0,\n cursor: iconStatus ? 'help' : 'default',\n }}\n onMouseEnter={() => iconStatus && setIsHovered(true)}\n onMouseLeave={() => setIsHovered(false)}\n >\n {/* Use HeaderIconWithStatus for consistent sizing with SpacecraftCard */}\n {iconStatus ? (\n <HeaderIconWithStatus\n icon={icon as AstroIconName}\n status={iconStatus}\n size={iconSize}\n statusColor={iconColor}\n />\n ) : (\n <AstroIcon \n name={icon} \n size={iconSize}\n color={iconColor}\n />\n )}\n {/* Tooltip popup - triggers on whole icon area hover */}\n {iconStatus && isHovered && (\n <div\n style={{\n position: 'absolute',\n bottom: 'calc(100% + 12px)',\n left: '50%',\n transform: 'translateX(-50%)',\n padding: '8px 12px',\n backgroundColor: 'rgba(10, 15, 25, 0.95)',\n border: `1px solid ${color}`,\n borderRadius: '4px',\n boxShadow: `0 0 12px ${color}40, 0 4px 12px rgba(0,0,0,0.4)`,\n zIndex: 1000,\n whiteSpace: 'nowrap',\n pointerEvents: 'none',\n minWidth: '150px',\n }}\n >\n {/* Status label */}\n <div style={{ \n fontSize: '0.6875rem', // 11px in rem \n fontWeight: 500, // AstroUXDS medium for labels\n color: color,\n marginBottom: '4px',\n textTransform: 'uppercase',\n letterSpacing: '0.5px',\n }}>\n {statusLabel}\n </div>\n {/* Status message */}\n <div style={{ \n fontSize: '0.75rem', // 12px in rem\n color: 'rgba(255,255,255,0.9)',\n lineHeight: 1.4,\n }}>\n {tooltipText}\n </div>\n {/* Arrow */}\n <div style={{\n position: 'absolute',\n bottom: '-6px',\n left: '50%',\n transform: 'translateX(-50%) rotate(45deg)',\n width: '10px',\n height: '10px',\n backgroundColor: 'rgba(10, 15, 25, 0.95)',\n borderRight: `1px solid ${color}`,\n borderBottom: `1px solid ${color}`,\n }} />\n </div>\n )}\n </div>\n );\n}\n\n/** \n * Renders AstroUXDS-compliant status symbol with proper shape\n * Shapes: Critical=triangle, Serious=diamond, Caution=square, Normal=circle, Standby=ring, Off=small-circle\n */\nfunction StatusSymbol({ \n status, \n size = 8, \n message,\n showTooltip = false,\n}: { \n status: StatusLevel; \n size?: number; \n message?: string;\n showTooltip?: boolean;\n}): React.ReactElement {\n const [isHovered, setIsHovered] = React.useState(false);\n const color = STATUS_COLORS[status];\n const defaultMessage = STATUS_DESCRIPTIONS[status];\n const tooltipText = message || defaultMessage;\n const statusLabel = status.charAt(0).toUpperCase() + status.slice(1);\n \n // Shape rendering based on Astro UX dual-coded status levels\n const renderShape = () => {\n const h = size / 2;\n const glow = `drop-shadow(0 0 3px ${color})`;\n switch (status) {\n case 'critical':\n // Triangle pointing down\n return (\n <svg width={size} height={size} viewBox={`0 0 ${size} ${size}`} style={{ filter: glow }}>\n <polygon points={`${h},${size} 0,0 ${size},0`} fill={color} />\n </svg>\n );\n case 'serious':\n // Diamond (rotated square)\n return (\n <svg width={size} height={size} viewBox={`0 0 ${size} ${size}`} style={{ filter: glow }}>\n <polygon points={`${h},0 ${size},${h} ${h},${size} 0,${h}`} fill={color} />\n </svg>\n );\n case 'caution':\n // Filled square\n return (\n <svg width={size} height={size} viewBox={`0 0 ${size} ${size}`} style={{ filter: glow }}>\n <rect width={size} height={size} fill={color} />\n </svg>\n );\n case 'normal':\n // Filled circle\n return (\n <svg width={size} height={size} viewBox={`0 0 ${size} ${size}`} style={{ filter: glow }}>\n <circle cx={h} cy={h} r={h} fill={color} />\n </svg>\n );\n case 'standby':\n // Ring (donut) — per official Astro UXDS\n return (\n <svg width={size} height={size} viewBox=\"0 0 12 12\" style={{ filter: glow }}>\n <circle cx=\"6\" cy=\"6\" r=\"3.5\" fill=\"none\" stroke={color} strokeWidth=\"2\" />\n </svg>\n );\n case 'off':\n default:\n // Small filled circle — per official Astro UXDS\n return (\n <svg width={size} height={size} viewBox=\"0 0 12 12\" style={{ filter: glow }}>\n <circle cx=\"6\" cy=\"6\" r=\"3\" fill={color} />\n </svg>\n );\n }\n };\n\n return (\n <div \n style={{\n position: 'relative',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n cursor: showTooltip ? 'help' : 'default',\n }}\n onMouseEnter={() => showTooltip && setIsHovered(true)}\n onMouseLeave={() => setIsHovered(false)}\n >\n {renderShape()}\n {/* Custom tooltip popup */}\n {showTooltip && isHovered && (\n <div\n style={{\n position: 'absolute',\n bottom: 'calc(100% + 8px)',\n left: '50%',\n transform: 'translateX(-50%)',\n padding: '8px 12px',\n backgroundColor: 'rgba(10, 15, 25, 0.95)',\n border: `1px solid ${color}`,\n borderRadius: '4px',\n boxShadow: `0 0 12px ${color}40, 0 4px 12px rgba(0,0,0,0.4)`,\n zIndex: 1000,\n whiteSpace: 'nowrap',\n pointerEvents: 'none',\n minWidth: '150px',\n }}\n >\n {/* Status label */}\n <div style={{ \n fontSize: '0.6875rem', // 11px in rem \n fontWeight: 500, // AstroUXDS medium for labels\n color: color,\n marginBottom: '4px',\n textTransform: 'uppercase',\n letterSpacing: '0.5px',\n }}>\n {statusLabel}\n </div>\n {/* Status message */}\n <div style={{ \n fontSize: '0.75rem', // 12px in rem\n color: 'rgba(255,255,255,0.9)',\n lineHeight: 1.4,\n }}>\n {tooltipText}\n </div>\n {/* Arrow */}\n <div style={{\n position: 'absolute',\n bottom: '-6px',\n left: '50%',\n transform: 'translateX(-50%) rotate(45deg)',\n width: '10px',\n height: '10px',\n backgroundColor: 'rgba(10, 15, 25, 0.95)',\n borderRight: `1px solid ${color}`,\n borderBottom: `1px solid ${color}`,\n }} />\n </div>\n )}\n </div>\n );\n}\n\n/**\n * StatusBadge - Compact status indicator for accent lines\n * Shows colored badge with status shape at end of accent line\n */\nfunction StatusBadge({ \n status, \n tokens: _tokens,\n size = 'bold',\n}: { \n status: StatusLevel; \n tokens: any;\n size?: 'bold' | 'minimal';\n}): React.ReactElement {\n const color = STATUS_COLORS[status];\n const label = status.charAt(0).toUpperCase() + status.slice(1);\n const isBold = size === 'bold';\n \n return (\n <span style={{\n display: 'inline-flex',\n alignItems: 'center',\n gap: isBold ? '6px' : '4px',\n padding: isBold ? '3px 10px' : '2px 8px',\n borderRadius: '12px',\n fontSize: isBold ? '11px' : '10px',\n fontWeight: 500,\n backgroundColor: `${color}20`,\n color: color,\n flexShrink: 0,\n textTransform: 'uppercase',\n letterSpacing: '0.3px',\n }}>\n {/* Status shape */}\n <StatusSymbol status={status} size={isBold ? 6 : 5} />\n {label}\n </span>\n );\n}\n\nexport const Container = memo(function Container({\n variant = 'default',\n padding = 'md',\n title,\n subtitle,\n status,\n actions,\n fullHeight = false,\n clipContent = true,\n loading = false,\n children,\n className = '',\n style,\n onClick,\n disableAutoGlass = false,\n icon,\n iconStatus,\n statusMessage,\n iconColor,\n accentColor,\n}: ContainerProps): React.ReactElement {\n const { tokens, theme } = useTheme();\n const { isMobile } = useBreakpoint();\n \n // Theme detection\n const _isTransparentTheme = theme === 'transparent' || theme === 'transparent-bold' || theme === 'transparent-minimal';\n const isBoldVariant = theme === 'transparent-bold';\n const isMinimalVariant = theme === 'transparent-minimal';\n \n // Glass mode with accent styling ONLY for bold/minimal themes\n // Normal \"transparent\" (Glass) theme uses simpler styling without accent borders\n const useGlassMode = (isBoldVariant || isMinimalVariant) && !disableAutoGlass && !variant.startsWith('glass');\n \n // Simple glass mode for normal \"transparent\" theme (no accent borders)\n const useSimpleGlass = theme === 'transparent' && !disableAutoGlass && !variant.startsWith('glass');\n \n // Default accent color: bold/minimal themes use theme accent (Zendir purple)\n const defaultAccentColor = tokens.colors.accent.primary;\n const glassAccentColor = accentColor || defaultAccentColor;\n const glassAccentMuted = `${glassAccentColor}66`;\n const glassGradient = `linear-gradient(135deg, ${glassAccentColor}10 0%, ${glassAccentColor}03 100%)`;\n \n // Determine icon color: custom > status > accent\n const resolvedIconColor = iconColor || (iconStatus ? STATUS_COLORS[iconStatus] : glassAccentColor);\n const _iconColorMuted = `${resolvedIconColor}66`;\n \n const paddingConfig = {\n none: '0',\n sm: isMobile ? tokens.spacing.xs : tokens.spacing.sm,\n md: isMobile ? tokens.spacing.sm : tokens.spacing.md,\n lg: isMobile ? tokens.spacing.md : tokens.spacing.lg,\n };\n\n const headingConfig = tokens.layout?.card?.heading ?? {\n iconSize: 20,\n iconSizeCompact: 16,\n titleFontSize: '1.125rem',\n titleFontSizeChart: '0.875rem',\n titleFontWeight: 500,\n gap: 8,\n };\n \n const variantStyles: Record<ContainerVariant, React.CSSProperties> = {\n default: {\n backgroundColor: tokens.colors.background.surface,\n border: `1px solid ${tokens.colors.border.muted}`,\n boxShadow: 'none',\n },\n elevated: {\n backgroundColor: tokens.colors.background.surface,\n border: 'none',\n boxShadow: tokens.shadows.md,\n },\n outlined: {\n backgroundColor: 'transparent',\n border: `1px solid ${tokens.colors.border.muted}`,\n boxShadow: 'none',\n },\n ghost: {\n backgroundColor: 'transparent',\n border: 'none',\n boxShadow: 'none',\n },\n // Glass variants - transparent with blur\n glass: {\n backgroundColor: 'rgba(15, 20, 35, 0.85)',\n backdropFilter: 'blur(12px)',\n WebkitBackdropFilter: 'blur(12px)',\n border: '1px solid rgba(0, 212, 255, 0.25)',\n boxShadow: 'none',\n } as React.CSSProperties,\n 'glass-dark': {\n backgroundColor: 'rgba(0, 0, 0, 0.7)',\n backdropFilter: 'blur(16px)',\n WebkitBackdropFilter: 'blur(16px)',\n border: '1px solid rgba(100, 130, 160, 0.2)',\n boxShadow: 'none',\n } as React.CSSProperties,\n 'glass-light': {\n backgroundColor: 'rgba(255, 255, 255, 0.15)',\n backdropFilter: 'blur(12px)',\n WebkitBackdropFilter: 'blur(12px)',\n border: '1px solid rgba(255, 255, 255, 0.25)',\n boxShadow: 'none',\n } as React.CSSProperties,\n };\n \n // Glow color for hover effect (like GlassCard)\n const glowColor = accentColor \n ? `${accentColor}66` \n : 'rgba(0, 212, 255, 0.4)';\n\n // Glass mode overrides for BOLD/MINIMAL themes (Glassmorphic Panels with accent borders)\n const glassOverrides: React.CSSProperties = useGlassMode ? {\n backgroundColor: 'rgba(10, 15, 25, 0.35)',\n backdropFilter: 'blur(12px)',\n WebkitBackdropFilter: 'blur(12px)',\n border: `1px solid ${glassAccentMuted}`,\n borderTop: isBoldVariant ? `2px solid ${glassAccentColor}` : `1px solid ${glassAccentColor}`,\n transition: 'all 0.3s ease-out, box-shadow 0.3s ease-out',\n } as React.CSSProperties : {};\n \n // Simple glass overrides for normal \"transparent\" (Glass) theme — match top cards (ISS): transparent + blur\n const simpleGlassOverrides: React.CSSProperties = useSimpleGlass ? {\n backgroundColor: 'transparent',\n backdropFilter: 'blur(12px)',\n WebkitBackdropFilter: 'blur(12px)',\n border: `1px solid ${tokens.colors.border.muted}`,\n transition: 'all 0.3s ease-out',\n } as React.CSSProperties : {};\n\n // Hover handlers for glow effect (like GlassCard)\n const handleMouseEnter = useCallback((e: React.MouseEvent<HTMLDivElement>) => {\n if (useGlassMode) {\n e.currentTarget.style.boxShadow = `0 0 30px ${glowColor}, 0 4px 20px rgba(0,0,0,0.3)`;\n }\n }, [useGlassMode, glowColor]);\n\n const handleMouseLeave = useCallback((e: React.MouseEvent<HTMLDivElement>) => {\n if (useGlassMode) {\n e.currentTarget.style.boxShadow = 'none';\n }\n }, [useGlassMode]);\n \n const statusColor = status ? tokens.colors.status[status] : undefined;\n const isInteractive = !!onClick;\n \n return (\n <div\n className={classNames(\n 'zendir-container', \n `zendir-container--${variant}`,\n useGlassMode && 'zendir-container--auto-glass',\n className\n )}\n onClick={onClick}\n role={isInteractive ? 'button' : undefined}\n tabIndex={isInteractive ? 0 : undefined}\n onKeyDown={onClick ? (e: React.KeyboardEvent) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); onClick(); } } : undefined}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n style={{\n borderRadius: tokens.borderRadius.lg,\n overflow: 'hidden',\n position: 'relative',\n height: fullHeight ? '100%' : 'auto',\n display: 'flex',\n flexDirection: 'column',\n cursor: isInteractive ? 'pointer' : 'default',\n transition: 'all 0.3s ease-out',\n borderLeft: statusColor ? `4px solid ${statusColor}` : undefined,\n ...variantStyles[variant],\n ...simpleGlassOverrides, // Normal Glass theme\n ...glassOverrides, // Bold/Minimal themes (overrides simpleGlass if both)\n ...style,\n }}\n >\n {/* Glass gradient overlay for bold/minimal transparent themes */}\n {useGlassMode && (\n <div\n style={{\n position: 'absolute',\n inset: 0,\n background: glassGradient,\n pointerEvents: 'none',\n zIndex: 0,\n }}\n />\n )}\n \n {/* Loading overlay */}\n {loading && (\n <div\n style={{\n position: 'absolute',\n inset: 0,\n backgroundColor: addAlpha(tokens.colors.background.surface, 0.5),\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n zIndex: 10,\n }}\n >\n <svg\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n style={{ animation: 'spin 1s linear infinite' }}\n >\n <circle\n cx=\"12\"\n cy=\"12\"\n r=\"10\"\n stroke={tokens.colors.accent.primary}\n strokeWidth=\"3\"\n strokeDasharray=\"31.4 31.4\"\n strokeDashoffset=\"10\"\n />\n </svg>\n <style>\n {`@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }`}\n </style>\n </div>\n )}\n \n {/* Header - Glass mode BOLD variant (matching GlassCard style exactly) */}\n {(title || actions) && useGlassMode && isBoldVariant && (\n <div\n style={{\n position: 'relative',\n zIndex: 1,\n }}\n >\n {/* Title row */}\n <div \n style={{ \n display: 'flex', \n alignItems: 'center', \n justifyContent: 'space-between',\n padding: `16px ${paddingConfig[padding]} 0`,\n }}\n >\n <div style={{ display: 'flex', alignItems: 'center', gap: headingConfig.gap }}>\n {/* Icon with optional status symbol - full area triggers tooltip */}\n {icon && (\n <IconWithStatusTooltip\n icon={icon}\n iconColor={resolvedIconColor}\n iconStatus={iconStatus}\n statusMessage={statusMessage}\n iconSize={headingConfig.iconSize}\n />\n )}\n <h3\n style={{\n margin: 0,\n fontSize: headingConfig.titleFontSize,\n fontWeight: headingConfig.titleFontWeight,\n color: glassAccentColor,\n letterSpacing: '0.5px',\n textShadow: `0 0 20px ${glassAccentMuted}`,\n }}\n >\n {title}\n </h3>\n </div>\n {actions && (\n <div style={{ display: 'flex', gap: tokens.spacing.xs }}>\n {actions}\n </div>\n )}\n </div>\n \n {subtitle && (\n <p\n style={{\n margin: 0,\n padding: `${tokens.spacing.xs} ${paddingConfig[padding]} 0`,\n fontSize: tokens.typography.fontSize.sm,\n color: tokens.colors.text.secondary,\n }}\n >\n {subtitle}\n </p>\n )}\n \n {/* Accent line with optional status badge */}\n <div\n style={{\n display: 'flex',\n alignItems: 'center',\n gap: tokens.spacing.sm,\n padding: `12px ${paddingConfig[padding]} 0`,\n marginBottom: tokens.spacing.sm,\n }}\n >\n {/* Main accent line with gradient */}\n <div\n style={{\n flex: 1,\n height: '2px',\n background: `linear-gradient(90deg, ${glassAccentColor} 0%, ${glassAccentMuted} 70%, ${glassAccentMuted}20 100%)`,\n boxShadow: `0 0 8px ${glassAccentMuted}`,\n }}\n />\n {/* Status badge at the end if status is set */}\n {iconStatus && iconStatus !== 'off' && (\n <StatusBadge status={iconStatus} tokens={tokens} size=\"bold\" />\n )}\n </div>\n </div>\n )}\n \n {/* Header - Glass mode MINIMAL variant (inline thin line) */}\n {(title || actions) && useGlassMode && !isBoldVariant && (\n <div\n style={{\n display: 'flex',\n alignItems: 'center',\n padding: `${tokens.spacing.sm} ${paddingConfig[padding]} 0`,\n marginBottom: tokens.spacing.sm,\n position: 'relative',\n zIndex: 1,\n }}\n >\n {/* Icon with optional status symbol - full area triggers tooltip */}\n {icon && (\n <div style={{ display: 'flex', alignItems: 'center', marginRight: tokens.spacing.sm }}>\n <IconWithStatusTooltip\n icon={icon}\n iconColor={resolvedIconColor}\n iconStatus={iconStatus}\n statusMessage={statusMessage}\n iconSize={headingConfig.iconSizeCompact}\n />\n </div>\n )}\n \n {/* Title — card heading system */}\n {title && (\n <h3\n style={{\n margin: 0,\n fontSize: headingConfig.titleFontSize,\n fontWeight: headingConfig.titleFontWeight,\n color: glassAccentColor,\n textShadow: `0 0 16px ${glassAccentMuted}`,\n letterSpacing: '0.02em',\n whiteSpace: 'nowrap',\n marginRight: '12px',\n }}\n >\n {title}\n </h3>\n )}\n \n {/* Accent line - inline after title with optional status badge */}\n <div\n style={{\n flex: 1,\n display: 'flex',\n alignItems: 'center',\n gap: tokens.spacing.sm,\n minWidth: 40,\n }}\n >\n {/* Main gradient line */}\n <div\n style={{\n flex: 1,\n height: '1px',\n background: `linear-gradient(90deg, ${glassAccentColor} 0%, ${glassAccentMuted} 70%, ${glassAccentMuted}20 100%)`,\n }}\n />\n {/* Status badge at the end if status is set */}\n {iconStatus && iconStatus !== 'off' && (\n <StatusBadge status={iconStatus} tokens={tokens} size=\"minimal\" />\n )}\n </div>\n \n {actions && (\n <div style={{ display: 'flex', gap: tokens.spacing.xs, flexShrink: 0, marginLeft: '12px' }}>\n {actions}\n </div>\n )}\n </div>\n )}\n \n {/* Subtitle for glass mode MINIMAL - separate row */}\n {subtitle && useGlassMode && !isBoldVariant && (\n <p\n style={{\n margin: 0,\n padding: `0 ${paddingConfig[padding]}`,\n marginBottom: tokens.spacing.sm,\n fontSize: tokens.typography.fontSize.sm,\n color: tokens.colors.text.secondary,\n position: 'relative',\n zIndex: 1,\n }}\n >\n {subtitle}\n </p>\n )}\n \n {/* Header - Regular mode (non-glass) - Uses shared CardHeader for consistency */}\n {(title || actions) && !useGlassMode && (\n <div\n style={{\n padding: `${paddingConfig[padding]} ${paddingConfig[padding]} 0`,\n position: 'relative',\n zIndex: 1,\n }}\n >\n <CardHeader\n icon={icon || (iconStatus ? 'mission' : '')}\n title={typeof title === 'string' ? title : String(title || '')}\n subtitle={typeof subtitle === 'string' ? subtitle : subtitle ? String(subtitle) : undefined}\n status={iconStatus || status}\n iconColor={iconColor}\n iconSize={headingConfig.iconSize}\n hideStatusIndicator={!icon && !iconStatus && !status}\n rightSlot={actions}\n style={{ marginBottom: tokens.spacing.sm }}\n />\n </div>\n )}\n \n {/* Content */}\n <div\n style={{\n flex: 1,\n minHeight: fullHeight ? 0 : undefined,\n overflow: fullHeight && clipContent ? 'hidden' : undefined,\n // When fullHeight, become a flex column so any child using flex:1 or height:100%\n // gets a properly bounded height and scroll containers can work.\n display: fullHeight ? 'flex' : undefined,\n flexDirection: fullHeight ? 'column' : undefined,\n padding: fullHeight ? `${tokens.spacing.xs} 0 0 0` : (title ? `${tokens.spacing.xs} ${paddingConfig[padding]} ${paddingConfig[padding]}` : paddingConfig[padding]),\n position: 'relative',\n zIndex: 1,\n }}\n >\n {children}\n </div>\n </div>\n );\n});\n\nexport default Container;\n"],"names":["Container"],"mappings":";;;;;;;;AAiCA,MAAM,gBAA6C;AAAA,EACjD,KAAK;AAAA,EACL,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,SAAS;AAAA,EACT,UAAU;AACZ;AAGA,MAAM,sBAAmD;AAAA,EACvD,KAAK;AAAA,EACL,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,SAAS;AAAA,EACT,UAAU;AACZ;AAoDA,SAAS,sBAAsB;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,WAAW;AACb,GAMuB;AACrB,QAAM,CAAC,WAAW,YAAY,IAAI,MAAM,SAAS,KAAK;AACtD,QAAM,QAAQ,aAAa,cAAc,UAAU,IAAI;AACvD,QAAM,iBAAiB,aAAa,oBAAoB,UAAU,IAAI;AACtE,QAAM,cAAc,iBAAiB;AACrC,QAAM,cAAc,aAAa,WAAW,OAAO,CAAC,EAAE,YAAA,IAAgB,WAAW,MAAM,CAAC,IAAI;AAE5F,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,UAAU;AAAA,QACV,SAAS;AAAA,QACT,YAAY;AAAA,QACZ,gBAAgB;AAAA,QAChB,YAAY;AAAA,QACZ,QAAQ,aAAa,SAAS;AAAA,MAAA;AAAA,MAEhC,cAAc,MAAM,cAAc,aAAa,IAAI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A,cAAA;AAAA,gBACC,MAAM,SAAS,aAAa,YAAY;AAAA,gBACxC,OAAO,OAAO,UAAU,WAAW,QAAQ,OAAO,SAAS,EAAE;AAAA,gBAC7D,UAAU,OAAO,aAAa,WAAW,WAAW,WAAW,OAAO,QAAQ,IAAI;AAAA,gBAClF,QAAQ,cAAc;AAAA,gBACtB;AAAA,gBACA,UAAU,cAAc;AAAA,gBACxB,qBAAqB,CAAC,QAAQ,CAAC,cAAc,CAAC;AAAA,gBAC9C,WAAW;AAAA,gBACX,OAAO,EAAE,cAAc,OAAO,QAAQ,GAAA;AAAA,cAAG;AAAA,YAAA;AAAA,UAC3C;AAAA,QAAA;AAAA,QAKJ;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,OAAO;AAAA,cACL,MAAM;AAAA,cACN,WAAW,aAAa,IAAI;AAAA,cAC5B,UAAU,cAAc,cAAc,WAAW;AAAA;AAAA;AAAA,cAGjD,SAAS,aAAa,SAAS;AAAA,cAC/B,eAAe,aAAa,WAAW;AAAA,cACvC,SAAS,aAAa,GAAG,OAAO,QAAQ,EAAE,WAAY,QAAQ,GAAG,OAAO,QAAQ,EAAE,IAAI,cAAc,OAAO,CAAC,IAAI,cAAc,OAAO,CAAC,KAAK,cAAc,OAAO;AAAA,cAChK,UAAU;AAAA,cACV,QAAQ;AAAA,YAAA;AAAA,YAGT;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAAA;AAGN,CAAC;"}
1
+ {"version":3,"file":"Container.js","sources":["../../../src/react/core/Container.tsx"],"sourcesContent":["/**\n * @zendir/ui - Container/Card Component\n * \n * Container/Card wrapper following Astro UX Design System.\n * Automatically switches to glassmorphic styling when transparent themes are active.\n * \n * Transparent themes (transparent, transparent-bold):\n * - Glassmorphic panels with blur effect\n * - Colored top border accent\n * - Hover glow effect (like GlassCard)\n * - transparent-bold has 2px top border\n * \n * @example\n * ```tsx\n * <Container>Simple container</Container>\n * <Container title=\"Spacecraft Status\" status=\"normal\">Content</Container>\n * <Container title=\"Power System\" icon=\"solar\" iconStatus=\"normal\">With status</Container>\n * <Container title=\"Custom Color\" icon=\"thermal\" iconColor=\"#FF6B6B\">Custom color</Container>\n * ```\n */\n\nimport React, { memo, useCallback } from 'react';\nimport { useTheme } from '../theme';\nimport { classNames, addAlpha, type StatusLevel } from '../utils';\nimport { AstroIcon, type AstroIconName } from './AstroIcon';\nimport { HeaderIconWithStatus } from './HeaderIconWithStatus';\nimport { CardHeader } from './CardHeader';\nimport { useBreakpoint } from './layout/useBreakpoint';\n\nexport type ContainerVariant = 'default' | 'elevated' | 'outlined' | 'ghost' | 'glass' | 'glass-dark' | 'glass-light';\nexport type ContainerPadding = 'none' | 'sm' | 'md' | 'lg';\n\n/** Status colors matching Astro UXD status system */\nconst STATUS_COLORS: Record<StatusLevel, string> = {\n off: '#a4abb6',\n standby: '#2dccff',\n normal: '#56f000',\n caution: '#fce83a',\n serious: '#ffb302',\n critical: '#ff3838',\n};\n\n/** Status descriptions for tooltips (default synonyms from AstroUXDS) */\nconst STATUS_DESCRIPTIONS: Record<StatusLevel, string> = {\n off: 'Off, unavailable, disabled',\n standby: 'Standby, available, enabled',\n normal: 'Normal, ok, satisfactory',\n caution: 'Caution, warning, unstable',\n serious: 'Serious, error, needs attention',\n critical: 'Critical, emergency, urgent',\n};\n\n/** Status symbol shapes following AstroUXDS guidelines */\ntype _StatusShape = 'circle' | 'square' | 'diamond' | 'triangle' | 'circle-hollow';\n\nexport interface ContainerProps {\n /** Visual variant */\n variant?: ContainerVariant;\n /** Padding size */\n padding?: ContainerPadding;\n /** Container title */\n title?: React.ReactNode;\n /** Subtitle or description */\n subtitle?: React.ReactNode;\n /** Status indicator (affects left border in non-glass mode) */\n status?: StatusLevel;\n /** Header actions (buttons, etc.) */\n actions?: React.ReactNode;\n /** Full height */\n fullHeight?: boolean;\n /**\n * Clip overflowing content area when fullHeight is enabled.\n * Keep false for form cards so wrapped rows can expand naturally.\n */\n clipContent?: boolean;\n /** Loading state */\n loading?: boolean;\n /** Children */\n children: React.ReactNode;\n /** Custom className */\n className?: string;\n /** Custom style */\n style?: React.CSSProperties;\n /** Click handler */\n onClick?: () => void;\n /** Disable auto-glass effect in transparent theme */\n disableAutoGlass?: boolean;\n /** Icon to display in header (Astro icon name) */\n icon?: AstroIconName;\n /** Icon status - shows status symbol and colors icon accordingly */\n iconStatus?: StatusLevel;\n /** Custom status message shown in tooltip (overrides default description) */\n statusMessage?: string;\n /** Custom icon color (overrides iconStatus and theme color) */\n iconColor?: string;\n /** Custom accent color for glass mode (title, line, etc.) */\n accentColor?: string;\n}\n\n/**\n * Icon wrapper with status tooltip - triggers tooltip on hover over entire icon area\n */\nfunction IconWithStatusTooltip({\n icon,\n iconColor,\n iconStatus,\n statusMessage,\n iconSize = 20,\n}: {\n icon: string;\n iconColor: string;\n iconStatus?: StatusLevel;\n statusMessage?: string;\n iconSize?: number;\n}): React.ReactElement {\n const [isHovered, setIsHovered] = React.useState(false);\n const color = iconStatus ? STATUS_COLORS[iconStatus] : iconColor;\n const defaultMessage = iconStatus ? STATUS_DESCRIPTIONS[iconStatus] : '';\n const tooltipText = statusMessage || defaultMessage;\n const statusLabel = iconStatus ? iconStatus.charAt(0).toUpperCase() + iconStatus.slice(1) : '';\n \n return (\n <div\n style={{\n position: 'relative',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexShrink: 0,\n cursor: iconStatus ? 'help' : 'default',\n }}\n onMouseEnter={() => iconStatus && setIsHovered(true)}\n onMouseLeave={() => setIsHovered(false)}\n >\n {/* Use HeaderIconWithStatus for consistent sizing with SpacecraftCard */}\n {iconStatus ? (\n <HeaderIconWithStatus\n icon={icon as AstroIconName}\n status={iconStatus}\n size={iconSize}\n statusColor={iconColor}\n />\n ) : (\n <AstroIcon \n name={icon} \n size={iconSize}\n color={iconColor}\n />\n )}\n {/* Tooltip popup - triggers on whole icon area hover */}\n {iconStatus && isHovered && (\n <div\n style={{\n position: 'absolute',\n bottom: 'calc(100% + 12px)',\n left: '50%',\n transform: 'translateX(-50%)',\n padding: '8px 12px',\n backgroundColor: 'rgba(10, 15, 25, 0.95)',\n border: `1px solid ${color}`,\n borderRadius: '4px',\n boxShadow: `0 0 12px ${color}40, 0 4px 12px rgba(0,0,0,0.4)`,\n zIndex: 1000,\n whiteSpace: 'nowrap',\n pointerEvents: 'none',\n minWidth: '150px',\n }}\n >\n {/* Status label */}\n <div style={{ \n fontSize: '0.6875rem', // 11px in rem \n fontWeight: 500, // AstroUXDS medium for labels\n color: color,\n marginBottom: '4px',\n textTransform: 'uppercase',\n letterSpacing: '0.5px',\n }}>\n {statusLabel}\n </div>\n {/* Status message */}\n <div style={{ \n fontSize: '0.75rem', // 12px in rem\n color: 'rgba(255,255,255,0.9)',\n lineHeight: 1.4,\n }}>\n {tooltipText}\n </div>\n {/* Arrow */}\n <div style={{\n position: 'absolute',\n bottom: '-6px',\n left: '50%',\n transform: 'translateX(-50%) rotate(45deg)',\n width: '10px',\n height: '10px',\n backgroundColor: 'rgba(10, 15, 25, 0.95)',\n borderRight: `1px solid ${color}`,\n borderBottom: `1px solid ${color}`,\n }} />\n </div>\n )}\n </div>\n );\n}\n\n/** \n * Renders AstroUXDS-compliant status symbol with proper shape\n * Shapes: Critical=triangle, Serious=diamond, Caution=square, Normal=circle, Standby=ring, Off=small-circle\n */\nfunction StatusSymbol({ \n status, \n size = 8, \n message,\n showTooltip = false,\n}: { \n status: StatusLevel; \n size?: number; \n message?: string;\n showTooltip?: boolean;\n}): React.ReactElement {\n const [isHovered, setIsHovered] = React.useState(false);\n const color = STATUS_COLORS[status];\n const defaultMessage = STATUS_DESCRIPTIONS[status];\n const tooltipText = message || defaultMessage;\n const statusLabel = status.charAt(0).toUpperCase() + status.slice(1);\n \n // Shape rendering based on Astro UX dual-coded status levels\n const renderShape = () => {\n const h = size / 2;\n const glow = `drop-shadow(0 0 3px ${color})`;\n switch (status) {\n case 'critical':\n // Triangle pointing down\n return (\n <svg width={size} height={size} viewBox={`0 0 ${size} ${size}`} style={{ filter: glow }}>\n <polygon points={`${h},${size} 0,0 ${size},0`} fill={color} />\n </svg>\n );\n case 'serious':\n // Diamond (rotated square)\n return (\n <svg width={size} height={size} viewBox={`0 0 ${size} ${size}`} style={{ filter: glow }}>\n <polygon points={`${h},0 ${size},${h} ${h},${size} 0,${h}`} fill={color} />\n </svg>\n );\n case 'caution':\n // Filled square\n return (\n <svg width={size} height={size} viewBox={`0 0 ${size} ${size}`} style={{ filter: glow }}>\n <rect width={size} height={size} fill={color} />\n </svg>\n );\n case 'normal':\n // Filled circle\n return (\n <svg width={size} height={size} viewBox={`0 0 ${size} ${size}`} style={{ filter: glow }}>\n <circle cx={h} cy={h} r={h} fill={color} />\n </svg>\n );\n case 'standby':\n // Ring (donut) — per official Astro UXDS\n return (\n <svg width={size} height={size} viewBox=\"0 0 12 12\" style={{ filter: glow }}>\n <circle cx=\"6\" cy=\"6\" r=\"3.5\" fill=\"none\" stroke={color} strokeWidth=\"2\" />\n </svg>\n );\n case 'off':\n default:\n // Small filled circle — per official Astro UXDS\n return (\n <svg width={size} height={size} viewBox=\"0 0 12 12\" style={{ filter: glow }}>\n <circle cx=\"6\" cy=\"6\" r=\"3\" fill={color} />\n </svg>\n );\n }\n };\n\n return (\n <div \n style={{\n position: 'relative',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n cursor: showTooltip ? 'help' : 'default',\n }}\n onMouseEnter={() => showTooltip && setIsHovered(true)}\n onMouseLeave={() => setIsHovered(false)}\n >\n {renderShape()}\n {/* Custom tooltip popup */}\n {showTooltip && isHovered && (\n <div\n style={{\n position: 'absolute',\n bottom: 'calc(100% + 8px)',\n left: '50%',\n transform: 'translateX(-50%)',\n padding: '8px 12px',\n backgroundColor: 'rgba(10, 15, 25, 0.95)',\n border: `1px solid ${color}`,\n borderRadius: '4px',\n boxShadow: `0 0 12px ${color}40, 0 4px 12px rgba(0,0,0,0.4)`,\n zIndex: 1000,\n whiteSpace: 'nowrap',\n pointerEvents: 'none',\n minWidth: '150px',\n }}\n >\n {/* Status label */}\n <div style={{ \n fontSize: '0.6875rem', // 11px in rem \n fontWeight: 500, // AstroUXDS medium for labels\n color: color,\n marginBottom: '4px',\n textTransform: 'uppercase',\n letterSpacing: '0.5px',\n }}>\n {statusLabel}\n </div>\n {/* Status message */}\n <div style={{ \n fontSize: '0.75rem', // 12px in rem\n color: 'rgba(255,255,255,0.9)',\n lineHeight: 1.4,\n }}>\n {tooltipText}\n </div>\n {/* Arrow */}\n <div style={{\n position: 'absolute',\n bottom: '-6px',\n left: '50%',\n transform: 'translateX(-50%) rotate(45deg)',\n width: '10px',\n height: '10px',\n backgroundColor: 'rgba(10, 15, 25, 0.95)',\n borderRight: `1px solid ${color}`,\n borderBottom: `1px solid ${color}`,\n }} />\n </div>\n )}\n </div>\n );\n}\n\n/**\n * StatusBadge - Compact status indicator for accent lines\n * Shows colored badge with status shape at end of accent line\n */\nfunction StatusBadge({ \n status, \n tokens: _tokens,\n size = 'bold',\n}: { \n status: StatusLevel; \n tokens: any;\n size?: 'bold' | 'minimal';\n}): React.ReactElement {\n const color = STATUS_COLORS[status];\n const label = status.charAt(0).toUpperCase() + status.slice(1);\n const isBold = size === 'bold';\n \n return (\n <span style={{\n display: 'inline-flex',\n alignItems: 'center',\n gap: isBold ? '6px' : '4px',\n padding: isBold ? '3px 10px' : '2px 8px',\n borderRadius: '12px',\n fontSize: isBold ? '11px' : '10px',\n fontWeight: 500,\n backgroundColor: `${color}20`,\n color: color,\n flexShrink: 0,\n textTransform: 'uppercase',\n letterSpacing: '0.3px',\n }}>\n {/* Status shape */}\n <StatusSymbol status={status} size={isBold ? 6 : 5} />\n {label}\n </span>\n );\n}\n\nexport const Container = memo(function Container({\n variant = 'default',\n padding = 'md',\n title,\n subtitle,\n status,\n actions,\n fullHeight = false,\n clipContent = true,\n loading = false,\n children,\n className = '',\n style,\n onClick,\n disableAutoGlass = false,\n icon,\n iconStatus,\n statusMessage,\n iconColor,\n accentColor,\n}: ContainerProps): React.ReactElement {\n const { tokens, theme } = useTheme();\n const { isMobile } = useBreakpoint();\n \n // Theme detection\n const _isTransparentTheme = theme === 'transparent' || theme === 'transparent-bold' || theme === 'transparent-minimal';\n const isBoldVariant = theme === 'transparent-bold';\n const isMinimalVariant = theme === 'transparent-minimal';\n \n // Glass mode with accent styling ONLY for bold/minimal themes\n // Normal \"transparent\" (Glass) theme uses simpler styling without accent borders\n const useGlassMode = (isBoldVariant || isMinimalVariant) && !disableAutoGlass && !variant.startsWith('glass');\n \n // Simple glass mode for normal \"transparent\" theme (no accent borders)\n const useSimpleGlass = theme === 'transparent' && !disableAutoGlass && !variant.startsWith('glass');\n \n // Default accent color: bold/minimal themes use theme accent (Zendir purple)\n const defaultAccentColor = tokens.colors.accent.primary;\n const glassAccentColor = accentColor || defaultAccentColor;\n const glassAccentMuted = `${glassAccentColor}66`;\n const glassGradient = `linear-gradient(135deg, ${glassAccentColor}10 0%, ${glassAccentColor}03 100%)`;\n \n // Determine icon color: custom > status > accent\n const resolvedIconColor = iconColor || (iconStatus ? STATUS_COLORS[iconStatus] : glassAccentColor);\n const _iconColorMuted = `${resolvedIconColor}66`;\n \n const paddingConfig = {\n none: '0',\n sm: isMobile ? tokens.spacing.xs : tokens.spacing.sm,\n md: isMobile ? tokens.spacing.sm : tokens.spacing.md,\n lg: isMobile ? tokens.spacing.md : tokens.spacing.lg,\n };\n\n const headingConfig = tokens.layout?.card?.heading ?? {\n iconSize: 20,\n iconSizeCompact: 16,\n titleFontSize: '1.125rem',\n titleFontSizeChart: '0.875rem',\n titleFontWeight: 500,\n gap: 8,\n };\n \n const variantStyles: Record<ContainerVariant, React.CSSProperties> = {\n default: {\n backgroundColor: tokens.colors.background.surface,\n border: `1px solid ${tokens.colors.border.muted}`,\n boxShadow: 'none',\n },\n elevated: {\n backgroundColor: tokens.colors.background.surface,\n border: 'none',\n boxShadow: tokens.shadows.md,\n },\n outlined: {\n backgroundColor: 'transparent',\n border: `1px solid ${tokens.colors.border.muted}`,\n boxShadow: 'none',\n },\n ghost: {\n backgroundColor: 'transparent',\n border: 'none',\n boxShadow: 'none',\n },\n // Glass variants - transparent with blur\n glass: {\n backgroundColor: 'rgba(15, 20, 35, 0.85)',\n backdropFilter: 'blur(12px)',\n WebkitBackdropFilter: 'blur(12px)',\n border: '1px solid rgba(0, 212, 255, 0.25)',\n boxShadow: 'none',\n } as React.CSSProperties,\n 'glass-dark': {\n backgroundColor: 'rgba(0, 0, 0, 0.7)',\n backdropFilter: 'blur(16px)',\n WebkitBackdropFilter: 'blur(16px)',\n border: '1px solid rgba(100, 130, 160, 0.2)',\n boxShadow: 'none',\n } as React.CSSProperties,\n 'glass-light': {\n backgroundColor: 'rgba(255, 255, 255, 0.15)',\n backdropFilter: 'blur(12px)',\n WebkitBackdropFilter: 'blur(12px)',\n border: '1px solid rgba(255, 255, 255, 0.25)',\n boxShadow: 'none',\n } as React.CSSProperties,\n };\n \n // Glow color for hover effect (like GlassCard)\n const glowColor = accentColor \n ? `${accentColor}66` \n : 'rgba(0, 212, 255, 0.4)';\n\n // Glass mode overrides for BOLD/MINIMAL themes (Glassmorphic Panels with accent borders)\n const glassOverrides: React.CSSProperties = useGlassMode ? {\n backgroundColor: 'rgba(10, 15, 25, 0.35)',\n backdropFilter: 'blur(12px)',\n WebkitBackdropFilter: 'blur(12px)',\n border: `1px solid ${glassAccentMuted}`,\n borderTop: isBoldVariant ? `2px solid ${glassAccentColor}` : `1px solid ${glassAccentColor}`,\n transition: 'all 0.3s ease-out, box-shadow 0.3s ease-out',\n } as React.CSSProperties : {};\n \n // Simple glass overrides for normal \"transparent\" (Glass) theme — match top cards (ISS): transparent + blur\n const simpleGlassOverrides: React.CSSProperties = useSimpleGlass ? {\n backgroundColor: 'transparent',\n backdropFilter: 'blur(12px)',\n WebkitBackdropFilter: 'blur(12px)',\n border: `1px solid ${tokens.colors.border.muted}`,\n transition: 'all 0.3s ease-out',\n } as React.CSSProperties : {};\n\n // Hover handlers for glow effect (like GlassCard)\n const handleMouseEnter = useCallback((e: React.MouseEvent<HTMLDivElement>) => {\n if (useGlassMode) {\n e.currentTarget.style.boxShadow = `0 0 30px ${glowColor}, 0 4px 20px rgba(0,0,0,0.3)`;\n }\n }, [useGlassMode, glowColor]);\n\n const handleMouseLeave = useCallback((e: React.MouseEvent<HTMLDivElement>) => {\n if (useGlassMode) {\n e.currentTarget.style.boxShadow = 'none';\n }\n }, [useGlassMode]);\n \n const statusColor = status ? tokens.colors.status[status] : undefined;\n const isInteractive = !!onClick;\n \n return (\n <div\n className={classNames(\n 'zendir-container', \n `zendir-container--${variant}`,\n useGlassMode && 'zendir-container--auto-glass',\n className\n )}\n onClick={onClick}\n role={isInteractive ? 'button' : undefined}\n tabIndex={isInteractive ? 0 : undefined}\n onKeyDown={onClick ? (e: React.KeyboardEvent) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); onClick(); } } : undefined}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n style={{\n borderRadius: tokens.borderRadius.lg,\n overflow: 'hidden',\n position: 'relative',\n height: fullHeight ? '100%' : 'auto',\n display: 'flex',\n flexDirection: 'column',\n cursor: isInteractive ? 'pointer' : 'default',\n transition: 'all 0.3s ease-out',\n borderLeft: statusColor ? `4px solid ${statusColor}` : undefined,\n ...variantStyles[variant],\n ...simpleGlassOverrides, // Normal Glass theme\n ...glassOverrides, // Bold/Minimal themes (overrides simpleGlass if both)\n ...style,\n }}\n >\n {/* Glass gradient overlay for bold/minimal transparent themes */}\n {useGlassMode && (\n <div\n style={{\n position: 'absolute',\n inset: 0,\n background: glassGradient,\n pointerEvents: 'none',\n zIndex: 0,\n }}\n />\n )}\n \n {/* Loading overlay */}\n {loading && (\n <div\n style={{\n position: 'absolute',\n inset: 0,\n backgroundColor: addAlpha(tokens.colors.background.surface, 0.5),\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n zIndex: 10,\n }}\n >\n <svg\n width=\"32\"\n height=\"32\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n style={{ animation: 'spin 1s linear infinite' }}\n >\n <circle\n cx=\"12\"\n cy=\"12\"\n r=\"10\"\n stroke={tokens.colors.accent.primary}\n strokeWidth=\"3\"\n strokeDasharray=\"31.4 31.4\"\n strokeDashoffset=\"10\"\n />\n </svg>\n <style>\n {`@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }`}\n </style>\n </div>\n )}\n \n {/* Header - Glass mode BOLD variant (matching GlassCard style exactly) */}\n {(title || actions) && useGlassMode && isBoldVariant && (\n <div\n style={{\n position: 'relative',\n zIndex: 1,\n }}\n >\n {/* Title row */}\n <div \n style={{ \n display: 'flex', \n alignItems: 'center', \n justifyContent: 'space-between',\n padding: `16px ${paddingConfig[padding]} 0`,\n }}\n >\n <div style={{ display: 'flex', alignItems: 'center', gap: headingConfig.gap }}>\n {/* Icon with optional status symbol - full area triggers tooltip */}\n {icon && (\n <IconWithStatusTooltip\n icon={icon}\n iconColor={resolvedIconColor}\n iconStatus={iconStatus}\n statusMessage={statusMessage}\n iconSize={headingConfig.iconSize}\n />\n )}\n <h3\n style={{\n margin: 0,\n fontSize: headingConfig.titleFontSize,\n fontWeight: headingConfig.titleFontWeight,\n color: glassAccentColor,\n letterSpacing: '0.5px',\n textShadow: `0 0 20px ${glassAccentMuted}`,\n }}\n >\n {title}\n </h3>\n </div>\n {actions && (\n <div style={{ display: 'flex', gap: tokens.spacing.xs }}>\n {actions}\n </div>\n )}\n </div>\n \n {subtitle && (\n <p\n style={{\n margin: 0,\n padding: `${tokens.spacing.xs} ${paddingConfig[padding]} 0`,\n fontSize: tokens.typography.fontSize.sm,\n color: tokens.colors.text.secondary,\n }}\n >\n {subtitle}\n </p>\n )}\n \n {/* Accent line with optional status badge */}\n <div\n style={{\n display: 'flex',\n alignItems: 'center',\n gap: tokens.spacing.sm,\n padding: `12px ${paddingConfig[padding]} 0`,\n marginBottom: tokens.spacing.sm,\n }}\n >\n {/* Main accent line with gradient */}\n <div\n style={{\n flex: 1,\n height: '2px',\n background: `linear-gradient(90deg, ${glassAccentColor} 0%, ${glassAccentMuted} 70%, ${glassAccentMuted}20 100%)`,\n boxShadow: `0 0 8px ${glassAccentMuted}`,\n }}\n />\n {/* Status badge at the end if status is set */}\n {iconStatus && iconStatus !== 'off' && (\n <StatusBadge status={iconStatus} tokens={tokens} size=\"bold\" />\n )}\n </div>\n </div>\n )}\n \n {/* Header - Glass mode MINIMAL variant (inline thin line) */}\n {(title || actions) && useGlassMode && !isBoldVariant && (\n <div\n style={{\n display: 'flex',\n alignItems: 'center',\n padding: `${tokens.spacing.sm} ${paddingConfig[padding]} 0`,\n marginBottom: tokens.spacing.sm,\n position: 'relative',\n zIndex: 1,\n }}\n >\n {/* Icon with optional status symbol - full area triggers tooltip */}\n {icon && (\n <div style={{ display: 'flex', alignItems: 'center', marginRight: tokens.spacing.sm }}>\n <IconWithStatusTooltip\n icon={icon}\n iconColor={resolvedIconColor}\n iconStatus={iconStatus}\n statusMessage={statusMessage}\n iconSize={headingConfig.iconSizeCompact}\n />\n </div>\n )}\n \n {/* Title — card heading system */}\n {title && (\n <h3\n style={{\n margin: 0,\n fontSize: headingConfig.titleFontSize,\n fontWeight: headingConfig.titleFontWeight,\n color: glassAccentColor,\n textShadow: `0 0 16px ${glassAccentMuted}`,\n letterSpacing: '0.02em',\n whiteSpace: 'nowrap',\n marginRight: '12px',\n }}\n >\n {title}\n </h3>\n )}\n \n {/* Accent line - inline after title with optional status badge */}\n <div\n style={{\n flex: 1,\n display: 'flex',\n alignItems: 'center',\n gap: tokens.spacing.sm,\n minWidth: 40,\n }}\n >\n {/* Main gradient line */}\n <div\n style={{\n flex: 1,\n height: '1px',\n background: `linear-gradient(90deg, ${glassAccentColor} 0%, ${glassAccentMuted} 70%, ${glassAccentMuted}20 100%)`,\n }}\n />\n {/* Status badge at the end if status is set */}\n {iconStatus && iconStatus !== 'off' && (\n <StatusBadge status={iconStatus} tokens={tokens} size=\"minimal\" />\n )}\n </div>\n \n {actions && (\n <div style={{ display: 'flex', gap: tokens.spacing.xs, flexShrink: 0, marginLeft: '12px' }}>\n {actions}\n </div>\n )}\n </div>\n )}\n \n {/* Subtitle for glass mode MINIMAL - separate row */}\n {subtitle && useGlassMode && !isBoldVariant && (\n <p\n style={{\n margin: 0,\n padding: `0 ${paddingConfig[padding]}`,\n marginBottom: tokens.spacing.sm,\n fontSize: tokens.typography.fontSize.sm,\n color: tokens.colors.text.secondary,\n position: 'relative',\n zIndex: 1,\n }}\n >\n {subtitle}\n </p>\n )}\n \n {/* Header - Regular mode (non-glass) - Uses shared CardHeader for consistency */}\n {(title || actions) && !useGlassMode && (\n <div\n style={{\n padding: `${paddingConfig[padding]} ${paddingConfig[padding]} 0`,\n position: 'relative',\n zIndex: 1,\n }}\n >\n <CardHeader\n icon={icon || (iconStatus ? 'mission' : '')}\n title={typeof title === 'string' ? title : String(title || '')}\n subtitle={typeof subtitle === 'string' ? subtitle : undefined}\n status={iconStatus || status}\n iconColor={iconColor}\n iconSize={headingConfig.iconSize}\n hideStatusIndicator={!icon && !iconStatus && !status}\n rightSlot={actions}\n style={{ marginBottom: tokens.spacing.sm }}\n />\n {/* Render non-string subtitles (React elements) below the CardHeader */}\n {subtitle && typeof subtitle !== 'string' && (\n <div style={{\n fontSize: tokens.typography.fontSize.sm,\n color: tokens.colors.text.secondary,\n marginTop: -parseInt(tokens.spacing.xs || '4', 10) || -4,\n marginBottom: parseInt(tokens.spacing.sm || '8', 10) || 8,\n }}>\n {subtitle}\n </div>\n )}\n </div>\n )}\n \n {/* Content */}\n <div\n style={{\n flex: 1,\n minHeight: fullHeight ? 0 : undefined,\n overflow: fullHeight && clipContent ? 'hidden' : undefined,\n // When fullHeight, become a flex column so any child using flex:1 or height:100%\n // gets a properly bounded height and scroll containers can work.\n display: fullHeight ? 'flex' : undefined,\n flexDirection: fullHeight ? 'column' : undefined,\n padding: fullHeight ? `${tokens.spacing.xs} 0 0 0` : (title ? `${tokens.spacing.xs} ${paddingConfig[padding]} ${paddingConfig[padding]}` : paddingConfig[padding]),\n position: 'relative',\n zIndex: 1,\n }}\n >\n {children}\n </div>\n </div>\n );\n});\n\nexport default Container;\n"],"names":["Container"],"mappings":";;;;;;;;AAiCA,MAAM,gBAA6C;AAAA,EACjD,KAAK;AAAA,EACL,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,SAAS;AAAA,EACT,UAAU;AACZ;AAGA,MAAM,sBAAmD;AAAA,EACvD,KAAK;AAAA,EACL,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,SAAS;AAAA,EACT,UAAU;AACZ;AAoDA,SAAS,sBAAsB;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,WAAW;AACb,GAMuB;AACrB,QAAM,CAAC,WAAW,YAAY,IAAI,MAAM,SAAS,KAAK;AACtD,QAAM,QAAQ,aAAa,cAAc,UAAU,IAAI;AACvD,QAAM,iBAAiB,aAAa,oBAAoB,UAAU,IAAI;AACtE,QAAM,cAAc,iBAAiB;AACrC,QAAM,cAAc,aAAa,WAAW,OAAO,CAAC,EAAE,YAAA,IAAgB,WAAW,MAAM,CAAC,IAAI;AAE5F,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAO;AAAA,QACL,UAAU;AAAA,QACV,SAAS;AAAA,QACT,YAAY;AAAA,QACZ,gBAAgB;AAAA,QAChB,YAAY;AAAA,QACZ,QAAQ,aAAa,SAAS;AAAA,MAAA;AAAA,MAEhC,cAAc,MAAM,cAAc,aAAa,IAAI;AAAA,MACnD,cAAc,MAAM,aAAa,KAAK;AAAA,MAGrC,UAAA;AAAA,QAAA,aACC;AAAA,UAAC;AAAA,UAAA;AAAA,YACC;AAAA,YACA,QAAQ;AAAA,YACR,MAAM;AAAA,YACN,aAAa;AAAA,UAAA;AAAA,QAAA,IAGf;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAM;AA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A,kBACxB,qBAAqB,CAAC,QAAQ,CAAC,cAAc,CAAC;AAAA,kBAC9C,WAAW;AAAA,kBACX,OAAO,EAAE,cAAc,OAAO,QAAQ,GAAA;AAAA,gBAAG;AAAA,cAAA;AAAA,cAG1C,YAAY,OAAO,aAAa,YAC/B,oBAAC,SAAI,OAAO;AAAA,gBACV,UAAU,OAAO,WAAW,SAAS;AAAA,gBACrC,OAAO,OAAO,OAAO,KAAK;AAAA,gBAC1B,WAAW,CAAC,SAAS,OAAO,QAAQ,MAAM,KAAK,EAAE,KAAK;AAAA,gBACtD,cAAc,SAAS,OAAO,QAAQ,MAAM,KAAK,EAAE,KAAK;AAAA,cAAA,GAEvD,UAAA,SAAA,CACH;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,QAMN;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,OAAO;AAAA,cACL,MAAM;AAAA,cACN,WAAW,aAAa,IAAI;AAAA,cAC5B,UAAU,cAAc,cAAc,WAAW;AAAA;AAAA;AAAA,cAGjD,SAAS,aAAa,SAAS;AAAA,cAC/B,eAAe,aAAa,WAAW;AAAA,cACvC,SAAS,aAAa,GAAG,OAAO,QAAQ,EAAE,WAAY,QAAQ,GAAG,OAAO,QAAQ,EAAE,IAAI,cAAc,OAAO,CAAC,IAAI,cAAc,OAAO,CAAC,KAAK,cAAc,OAAO;AAAA,cAChK,UAAU;AAAA,cACV,QAAQ;AAAA,YAAA;AAAA,YAGT;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAAA;AAGN,CAAC;"}
@@ -33,7 +33,7 @@ export type { StatusIndicatorProps, StatusVariant, ClassificationBannerProps, Cl
33
33
  export { AstroChart } from './charts';
34
34
  export type { AstroChartProps, AstroChartHandle } from './charts';
35
35
  export { GroundTrackMap } from './charts';
36
- export type { GroundTrackMapProps, MapPin, LightSource } from './charts';
36
+ export type { GroundTrackMapProps, MapPin, LightSource, MapLayerDef } from './charts';
37
37
  export { useCompactMode } from './hooks/useCompactMode';
38
38
  export type { UseCompactModeOptions, UseCompactModeResult } from './hooks/useCompactMode';
39
39
  export type { SpacecraftPosition, Spacecraft, GroundStation, GroundTrackPoint, AccessData, AccessWindow, TelemetryData, OrbitalElements, Quaternion, EulerAngles, AngularVelocity, AttitudeData, PointingMode, EclipseInfo, DetailedLinkBudget, ThermalZone, ThermalData, ThrusterStatus, PropulsionSummary, ReactionWheelData, LVLHVector, LVLHState, ThrusterFireEvent, PlanetId, PlanetInfo, CategoryDef, } from './types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendir/ui",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "React UI components for space operations, built on the Astro UX Design System",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",