@titan-design/react-ui 0.2.6 → 0.3.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 (191) hide show
  1. package/dist/bodymap-BhG55xHM.d.mts +318 -0
  2. package/dist/bodymap-BhG55xHM.d.ts +318 -0
  3. package/dist/bodymap.d.mts +3 -0
  4. package/dist/bodymap.d.ts +3 -0
  5. package/dist/bodymap.js +2670 -0
  6. package/dist/bodymap.js.map +1 -0
  7. package/dist/bodymap.mjs +1101 -0
  8. package/dist/bodymap.mjs.map +1 -0
  9. package/dist/{chunk-UXVRPOME.mjs → chunk-7XPB4NAO.mjs} +125 -785
  10. package/dist/chunk-7XPB4NAO.mjs.map +1 -0
  11. package/dist/chunk-P7TSQUN6.mjs +846 -0
  12. package/dist/chunk-P7TSQUN6.mjs.map +1 -0
  13. package/dist/chunk-TOD2WQBG.mjs +1048 -0
  14. package/dist/chunk-TOD2WQBG.mjs.map +1 -0
  15. package/dist/index.d.mts +1131 -4
  16. package/dist/index.d.ts +1131 -4
  17. package/dist/index.js +6396 -225
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.mjs +5572 -641
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/theme/index.d.mts +317 -1
  22. package/dist/theme/index.d.ts +317 -1
  23. package/dist/theme/index.js +185 -2
  24. package/dist/theme/index.js.map +1 -1
  25. package/dist/theme/index.mjs +2 -1
  26. package/dist/theme/tokens-css.d.mts +20 -0
  27. package/dist/theme/tokens-css.d.ts +20 -0
  28. package/dist/theme/tokens-css.js +598 -0
  29. package/dist/theme/tokens-css.js.map +1 -0
  30. package/dist/theme/tokens-css.mjs +24 -0
  31. package/dist/theme/tokens-css.mjs.map +1 -0
  32. package/package.json +25 -5
  33. package/src/bodymap.ts +37 -0
  34. package/src/components/custom/DateTime/DateTime.stories.tsx +1 -1
  35. package/src/components/custom/Gauge/Gauge.stories.tsx +45 -0
  36. package/src/components/custom/Gauge/Gauge.test.tsx +71 -0
  37. package/src/components/custom/Gauge/Gauge.tsx +167 -0
  38. package/src/components/custom/Gauge/index.ts +2 -0
  39. package/src/components/custom/Scatter/Scatter.stories.tsx +85 -0
  40. package/src/components/custom/Scatter/Scatter.test.tsx +96 -0
  41. package/src/components/custom/Scatter/Scatter.tsx +260 -0
  42. package/src/components/custom/Scatter/index.ts +2 -0
  43. package/src/components/custom/Sidebar/Sidebar.tsx +1 -1
  44. package/src/components/custom/Table/Table.test.tsx +27 -0
  45. package/src/components/custom/Table/Table.tsx +33 -17
  46. package/src/components/custom/Treemap/Treemap.stories.tsx +60 -0
  47. package/src/components/custom/Treemap/Treemap.test.tsx +67 -0
  48. package/src/components/custom/Treemap/Treemap.tsx +192 -0
  49. package/src/components/custom/Treemap/index.ts +2 -0
  50. package/src/components/custom/Workout/ActiveWorkoutPage.stories.tsx +118 -0
  51. package/src/components/custom/Workout/ActiveWorkoutPage.test.tsx +171 -0
  52. package/src/components/custom/Workout/ActiveWorkoutPage.tsx +447 -0
  53. package/src/components/custom/Workout/BaseBadge.stories.tsx +75 -0
  54. package/src/components/custom/Workout/BaseBadge.test.tsx +102 -0
  55. package/src/components/custom/Workout/BaseBadge.tsx +113 -0
  56. package/src/components/custom/Workout/BodyMap.stories.tsx +121 -0
  57. package/src/components/custom/Workout/BodyMap.test.tsx +124 -0
  58. package/src/components/custom/Workout/BodyMap.tsx +347 -0
  59. package/src/components/custom/Workout/BodyMapDetailPanel.stories.tsx +171 -0
  60. package/src/components/custom/Workout/BodyMapDetailPanel.test.tsx +225 -0
  61. package/src/components/custom/Workout/BodyMapDetailPanel.tsx +477 -0
  62. package/src/components/custom/Workout/CapacityBandChart.stories.tsx +125 -0
  63. package/src/components/custom/Workout/CapacityBandChart.test.tsx +193 -0
  64. package/src/components/custom/Workout/CapacityBandChart.tsx +493 -0
  65. package/src/components/custom/Workout/DeviationBar.stories.tsx +58 -0
  66. package/src/components/custom/Workout/DeviationBar.test.tsx +86 -0
  67. package/src/components/custom/Workout/DeviationBar.tsx +78 -0
  68. package/src/components/custom/Workout/ExerciseCard.stories.tsx +186 -0
  69. package/src/components/custom/Workout/ExerciseCard.test.tsx +343 -0
  70. package/src/components/custom/Workout/ExerciseCard.tsx +442 -0
  71. package/src/components/custom/Workout/ExerciseDetailPage.stories.tsx +225 -0
  72. package/src/components/custom/Workout/ExerciseDetailPage.test.tsx +128 -0
  73. package/src/components/custom/Workout/ExerciseDetailPage.tsx +630 -0
  74. package/src/components/custom/Workout/InputBar.stories.tsx +75 -0
  75. package/src/components/custom/Workout/InputBar.test.tsx +116 -0
  76. package/src/components/custom/Workout/InputBar.tsx +162 -0
  77. package/src/components/custom/Workout/IntensityBar.stories.tsx +60 -0
  78. package/src/components/custom/Workout/IntensityBar.test.tsx +113 -0
  79. package/src/components/custom/Workout/IntensityBar.tsx +166 -0
  80. package/src/components/custom/Workout/MesoCard.stories.tsx +152 -0
  81. package/src/components/custom/Workout/MesoCard.test.tsx +170 -0
  82. package/src/components/custom/Workout/MesoCard.tsx +237 -0
  83. package/src/components/custom/Workout/MesoProgressBar.stories.tsx +85 -0
  84. package/src/components/custom/Workout/MesoProgressBar.test.tsx +153 -0
  85. package/src/components/custom/Workout/MesoProgressBar.tsx +165 -0
  86. package/src/components/custom/Workout/MesoStatusCard.stories.tsx +126 -0
  87. package/src/components/custom/Workout/MesoStatusCard.test.tsx +209 -0
  88. package/src/components/custom/Workout/MesoStatusCard.tsx +456 -0
  89. package/src/components/custom/Workout/MuscleGroupChip.stories.tsx +118 -0
  90. package/src/components/custom/Workout/MuscleGroupChip.test.tsx +91 -0
  91. package/src/components/custom/Workout/MuscleGroupChip.tsx +92 -0
  92. package/src/components/custom/Workout/PlaceholderStrip.stories.tsx +94 -0
  93. package/src/components/custom/Workout/PlaceholderStrip.test.tsx +83 -0
  94. package/src/components/custom/Workout/PlaceholderStrip.tsx +90 -0
  95. package/src/components/custom/Workout/PrBadge.stories.tsx +105 -0
  96. package/src/components/custom/Workout/PrBadge.test.tsx +111 -0
  97. package/src/components/custom/Workout/PrBadge.tsx +103 -0
  98. package/src/components/custom/Workout/PrHistoryModal.stories.tsx +116 -0
  99. package/src/components/custom/Workout/PrHistoryModal.test.tsx +161 -0
  100. package/src/components/custom/Workout/PrHistoryModal.tsx +244 -0
  101. package/src/components/custom/Workout/ProgramPlanningPage.stories.tsx +257 -0
  102. package/src/components/custom/Workout/ProgramPlanningPage.test.tsx +142 -0
  103. package/src/components/custom/Workout/ProgramPlanningPage.tsx +422 -0
  104. package/src/components/custom/Workout/ReadinessCheck.stories.tsx +126 -0
  105. package/src/components/custom/Workout/ReadinessCheck.test.tsx +181 -0
  106. package/src/components/custom/Workout/ReadinessCheck.tsx +265 -0
  107. package/src/components/custom/Workout/RestTimer.test.tsx +10 -0
  108. package/src/components/custom/Workout/RestTimer.tsx +15 -11
  109. package/src/components/custom/Workout/SetRow.stories.tsx +165 -0
  110. package/src/components/custom/Workout/SetRow.test.tsx +222 -0
  111. package/src/components/custom/Workout/SetRow.tsx +247 -0
  112. package/src/components/custom/Workout/Sparkline.stories.tsx +125 -0
  113. package/src/components/custom/Workout/Sparkline.test.tsx +113 -0
  114. package/src/components/custom/Workout/Sparkline.tsx +188 -0
  115. package/src/components/custom/Workout/StatusDot.stories.tsx +150 -0
  116. package/src/components/custom/Workout/StatusDot.test.tsx +165 -0
  117. package/src/components/custom/Workout/StatusDot.tsx +160 -0
  118. package/src/components/custom/Workout/StrengthTrendChart.stories.tsx +130 -0
  119. package/src/components/custom/Workout/StrengthTrendChart.test.tsx +217 -0
  120. package/src/components/custom/Workout/StrengthTrendChart.tsx +628 -0
  121. package/src/components/custom/Workout/SupersetWrapper.tsx +1 -2
  122. package/src/components/custom/Workout/TempoDisplay.stories.tsx +66 -0
  123. package/src/components/custom/Workout/TempoDisplay.test.tsx +90 -0
  124. package/src/components/custom/Workout/TempoDisplay.tsx +209 -0
  125. package/src/components/custom/Workout/TrainingStatusPage.stories.tsx +212 -0
  126. package/src/components/custom/Workout/TrainingStatusPage.test.tsx +131 -0
  127. package/src/components/custom/Workout/TrainingStatusPage.tsx +321 -0
  128. package/src/components/custom/Workout/VelocityStrip.stories.tsx +125 -0
  129. package/src/components/custom/Workout/VelocityStrip.test.tsx +244 -0
  130. package/src/components/custom/Workout/VelocityStrip.tsx +288 -0
  131. package/src/components/custom/Workout/WeekRow.stories.tsx +121 -0
  132. package/src/components/custom/Workout/WeekRow.test.tsx +117 -0
  133. package/src/components/custom/Workout/WeekRow.tsx +140 -0
  134. package/src/components/custom/Workout/WeightBadge.stories.tsx +87 -0
  135. package/src/components/custom/Workout/WeightBadge.test.tsx +164 -0
  136. package/src/components/custom/Workout/WeightBadge.tsx +113 -0
  137. package/src/components/custom/Workout/WorkoutCard.stories.tsx +135 -0
  138. package/src/components/custom/Workout/WorkoutCard.test.tsx +172 -0
  139. package/src/components/custom/Workout/WorkoutCard.tsx +228 -0
  140. package/src/components/custom/Workout/WorkoutPill.stories.tsx +63 -0
  141. package/src/components/custom/Workout/WorkoutPill.test.tsx +153 -0
  142. package/src/components/custom/Workout/WorkoutPill.tsx +177 -0
  143. package/src/components/custom/Workout/index.ts +152 -0
  144. package/src/components/custom/Workout/muscleTaxonomy.ts +252 -0
  145. package/src/components/custom/index.ts +3 -0
  146. package/src/components/custom/stepper/Stepper.stories.tsx +1 -1
  147. package/src/components/custom/stepper/Stepper.tsx +2 -2
  148. package/src/components/ui/autocomplete/Autocomplete.stories.tsx +1 -1
  149. package/src/components/ui/autocomplete/Autocomplete.tsx +1 -1
  150. package/src/components/ui/card/Card.tsx +1 -1
  151. package/src/components/ui/checkbox/Checkbox.tsx +1 -1
  152. package/src/components/ui/collapse/Collapse.tsx +1 -1
  153. package/src/components/ui/data-row/DataRow.stories.tsx +1 -1
  154. package/src/components/ui/drawer/Drawer.tsx +3 -3
  155. package/src/components/ui/form-field/FormField.tsx +1 -1
  156. package/src/components/ui/help-tip/HelpTip.tsx +1 -1
  157. package/src/components/ui/menu/Menu.tsx +2 -2
  158. package/src/components/ui/pill/Pill.tsx +1 -1
  159. package/src/components/ui/popover/Popover.stories.tsx +2 -2
  160. package/src/components/ui/popover/Popover.tsx +1 -1
  161. package/src/components/ui/radio/Radio.stories.tsx +1 -1
  162. package/src/components/ui/section/Section.stories.tsx +4 -4
  163. package/src/components/ui/select/Select.tsx +1 -1
  164. package/src/components/ui/stack/Stack.stories.tsx +4 -4
  165. package/src/components/ui/tabs/Tabs.tsx +2 -2
  166. package/src/components/ui/toolbar-button/ToolbarButton.stories.tsx +1 -1
  167. package/src/components/ui/toolbar-button/ToolbarButton.tsx +1 -1
  168. package/src/examples/react-hook-form/ControlledFields.tsx +171 -0
  169. package/src/examples/react-hook-form/ReactHookForm.stories.tsx +51 -0
  170. package/src/examples/react-hook-form/ReactHookForm.test.tsx +61 -0
  171. package/src/examples/react-hook-form/RhfContactForm.tsx +99 -0
  172. package/src/stories/PresetShowcase.stories.tsx +15 -15
  173. package/src/theme/config.completeness.test.ts +77 -0
  174. package/src/theme/config.ts +151 -0
  175. package/src/theme/index.ts +2 -1
  176. package/src/theme/manifest/css-property-manifest.example.json +79 -0
  177. package/src/theme/manifest/css-property-manifest.schema.json +93 -0
  178. package/src/theme/manifest/css-property-manifest.test.ts +81 -0
  179. package/src/theme/manifest/css-property-manifest.types.ts +49 -0
  180. package/src/theme/manifest/css-property-manifest.validate.ts +84 -0
  181. package/src/theme/manifest/design-freeze.test.ts +155 -0
  182. package/src/theme/manifest/extract-css-properties.fixture.html +29 -0
  183. package/src/theme/manifest/extract-css-properties.test.ts +112 -0
  184. package/src/theme/manifest/index.ts +11 -0
  185. package/src/theme/tokens-css.test.ts +28 -0
  186. package/src/theme/tokens-css.ts +36 -0
  187. package/src/theme/workout-tokens.ts +59 -0
  188. package/src/utils/index.ts +10 -0
  189. package/src/utils/workout-format.test.ts +81 -0
  190. package/src/utils/workout-format.ts +83 -0
  191. package/dist/chunk-UXVRPOME.mjs.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,8 +1,10 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React from 'react';
2
+ import React, { ReactNode } from 'react';
3
3
  import { ViewProps, PressableProps, View, TextInputProps, TextInput, ImageSourcePropType, ModalProps as ModalProps$1, TextProps } from 'react-native';
4
4
  import { ElevationLevel, GlowIntensity } from './theme/index.js';
5
- export { ComponentType, ElevationConfig, ShadowIntensity, ShadowSurface, ThemeConfig, ThemeMode, ThemePreset, ThemePresetColors, ThemePresetFonts, ThemePresetRadii, ThemePresetShadows, applyThemePreset, audiobookPreset, buttonSizes, componentElevationRanges, createFlatShadow, createPressedHoverShadow, createPressedShadow, createRaisedHoverShadow, createRaisedShadow, darkThemeCSSVars, darken, defaultPreset, discreteRainbow, elevationSystem, getBaseSurfaceColor, getDiscreteRainbowColor, getElevationConfig, getElevationShadow, getElevationSurface, getGlowShadow, getHoverColors, getSemanticColors, getThemeCSSVars, getValidatedElevation, gluestackConfig, hexToRgb, hsvToRgb, isDark, lightThemeCSSVars, lighten, neumorphicShadows, primitiveBorderRadius, primitiveBreakpoints, primitiveColors, primitiveShadows, primitiveSpacing, primitiveTypography, primitiveZIndex, rgbToHex, rgbToHsv, semanticColorsDark, semanticColorsLight, semanticTypography, shadowColors } from './theme/index.js';
5
+ export { ComponentType, CssPropertyEntry, CssPropertyManifest, ElevationConfig, ManifestValidationResult, ShadowIntensity, ShadowSurface, ThemeConfig, ThemeMode, ThemePreset, ThemePresetColors, ThemePresetFonts, ThemePresetRadii, ThemePresetShadows, VariantAxes, VariantOverride, applyThemePreset, audiobookPreset, buttonSizes, componentElevationRanges, createFlatShadow, createPressedHoverShadow, createPressedShadow, createRaisedHoverShadow, createRaisedShadow, darkThemeCSSVars, darken, defaultPreset, discreteRainbow, elevationSystem, getBaseSurfaceColor, getDiscreteRainbowColor, getElevationConfig, getElevationShadow, getElevationSurface, getGlowShadow, getHoverColors, getSemanticColors, getThemeCSSVars, getValidatedElevation, gluestackConfig, hexToRgb, hsvToRgb, isCssPropertyManifest, isDark, lightThemeCSSVars, lighten, neumorphicShadows, primitiveBorderRadius, primitiveBreakpoints, primitiveColors, primitiveShadows, primitiveSpacing, primitiveTypography, primitiveZIndex, rgbToHex, rgbToHsv, semanticColorsDark, semanticColorsLight, semanticTypography, shadowColors, validateCssPropertyManifest } from './theme/index.js';
6
+ import { M as MesoStatusCardProps } from './bodymap-BhG55xHM.js';
7
+ export { B as BodyMapData, a as BodyMapDetailPanelProps, b as BodyMapProps, C as ContributingExercise, c as MesoStatusBadge, d as MesoStatusBadgeVariant, e as MesoStatusCard, f as MesoStatusCoaching, g as MesoStatusGauge, h as MesoStatusMetric, i as MesoStatusNextTarget, j as MovementCategory, k as MuscleGroup, S as SimpleMuscleGroup, T as TrainingStatusMuscle, l as TrainingStatusPageProps, m as TrainingStatusSummary, U as UpcomingExercise, V as VolumeLandmarks } from './bodymap-BhG55xHM.js';
6
8
  import { ClassValue } from 'clsx';
7
9
 
8
10
  type AlertStatus = 'success' | 'info' | 'warning' | 'error';
@@ -2497,6 +2499,216 @@ interface MetricGroupProps extends ViewProps {
2497
2499
  }
2498
2500
  declare function MetricGroup({ className, children, ...props }: MetricGroupProps): react_jsx_runtime.JSX.Element;
2499
2501
 
2502
+ type BaseBadgeVariant = 'plain' | 'pr';
2503
+ type BaseBadgeSize = 'sm' | 'md' | 'lg';
2504
+ interface BaseBadgeProps extends ViewProps {
2505
+ /** Visual variant — plain (neutral) or pr (brand-primary-subtle) */
2506
+ variant?: BaseBadgeVariant;
2507
+ /** Size variant */
2508
+ size?: BaseBadgeSize;
2509
+ /** Optional icon rendered left of children; hidden from a11y tree */
2510
+ icon?: ReactNode;
2511
+ onPress?: () => void;
2512
+ className?: string;
2513
+ children?: ReactNode;
2514
+ }
2515
+ declare function BaseBadge({ variant, size, icon, onPress, className, children, ...props }: BaseBadgeProps): react_jsx_runtime.JSX.Element;
2516
+
2517
+ type WeightBadgeSize = BaseBadgeSize;
2518
+ interface WeightBadgeProps extends Omit<BaseBadgeProps, 'variant' | 'icon' | 'children'> {
2519
+ value: number;
2520
+ unit?: 'lbs' | 'kg';
2521
+ /**
2522
+ * When given, this is an N-rep max (e.g. "5RM"). When omitted, it is an
2523
+ * estimated 1RM / e1RM.
2524
+ */
2525
+ reps?: number;
2526
+ /** Percentage delta from previous mesocycle */
2527
+ delta?: number;
2528
+ isPr?: boolean;
2529
+ /** Show the weight icon */
2530
+ showIcon?: boolean;
2531
+ size?: WeightBadgeSize;
2532
+ onPress?: () => void;
2533
+ className?: string;
2534
+ }
2535
+ declare function WeightBadge({ value, unit, reps, delta, isPr, showIcon, size, onPress, className, ...props }: WeightBadgeProps): react_jsx_runtime.JSX.Element;
2536
+
2537
+ type PRType = 'e1rm' | 'weight' | 'reps' | 'volume' | 'velocity';
2538
+ interface PrBadgeProps extends ViewProps {
2539
+ /** PR type determines auto-generated label */
2540
+ type?: PRType;
2541
+ /** Display label (e.g., "PR e1RM", "PR 5RM"). Auto-generated from type if omitted. */
2542
+ label?: string;
2543
+ /** Show only the star icon, no text label */
2544
+ compact?: boolean;
2545
+ /** Trigger pop animation on mount */
2546
+ animate?: boolean;
2547
+ className?: string;
2548
+ }
2549
+ declare function PrBadge({ type, label: labelProp, compact, animate, className, ...props }: PrBadgeProps): react_jsx_runtime.JSX.Element;
2550
+
2551
+ type StatusDotVariant = 'success' | 'warning' | 'error' | 'neutral' | 'on-track' | 'deviation' | 'future';
2552
+ interface StatusDotProps extends ViewProps {
2553
+ variant: StatusDotVariant;
2554
+ /** Center glyph. Only rendered at size="md"; the 8px "sm" dot is too small to fit one. */
2555
+ icon?: 'check' | 'exclamation' | 'dash';
2556
+ size?: 'sm' | 'md';
2557
+ /** Adds a subtle glow effect in the variant color */
2558
+ glow?: boolean;
2559
+ label?: string;
2560
+ className?: string;
2561
+ }
2562
+ declare function StatusDot({ variant, icon, size, glow, label, className, ...props }: StatusDotProps): react_jsx_runtime.JSX.Element;
2563
+
2564
+ interface PlaceholderStripProps extends ViewProps {
2565
+ width?: number | string;
2566
+ /** Render as single solid strip or segmented mini-strip */
2567
+ mode?: 'single' | 'segmented';
2568
+ /** Number of segments when mode is 'segmented' */
2569
+ segments?: number;
2570
+ className?: string;
2571
+ }
2572
+ declare function PlaceholderStrip({ mode, segments, ...props }: PlaceholderStripProps): react_jsx_runtime.JSX.Element;
2573
+
2574
+ interface TempoDisplayProps extends ViewProps {
2575
+ /** Tempo values: [eccentric, pauseBottom, concentric, pauseTop] in seconds */
2576
+ tempo: [number, number, number, number];
2577
+ size?: 'sm' | 'md';
2578
+ /** Colored phases or mono (all gray) */
2579
+ colored?: boolean;
2580
+ /** Show info tooltip on press */
2581
+ showInfo?: boolean;
2582
+ onPress?: () => void;
2583
+ className?: string;
2584
+ }
2585
+ declare function TempoDisplay({ tempo, size, colored, showInfo, onPress, className, ...props }: TempoDisplayProps): react_jsx_runtime.JSX.Element;
2586
+
2587
+ interface DeviationBarProps extends ViewProps {
2588
+ deviation: number;
2589
+ width?: number;
2590
+ className?: string;
2591
+ }
2592
+ declare function DeviationBar({ deviation, width, className, ...props }: DeviationBarProps): react_jsx_runtime.JSX.Element;
2593
+
2594
+ type IntensityBarOrientation = 'vertical' | 'horizontal';
2595
+ interface IntensityBarProps extends ViewProps {
2596
+ /** Current intensity level 0-1 */
2597
+ level: number;
2598
+ /** MRV/overexertion threshold position 0-1 */
2599
+ threshold?: number;
2600
+ /** Orientation */
2601
+ orientation?: IntensityBarOrientation;
2602
+ /** Height for vertical (default 24px) or width for horizontal */
2603
+ size?: number;
2604
+ /** Width for vertical (default 6px) or height for horizontal */
2605
+ thickness?: number;
2606
+ /** Show threshold label ("MRV") */
2607
+ showThresholdLabel?: boolean;
2608
+ className?: string;
2609
+ }
2610
+ declare function IntensityBar({ level, threshold, orientation, size, thickness, showThresholdLabel, className, ...props }: IntensityBarProps): react_jsx_runtime.JSX.Element;
2611
+
2612
+ /**
2613
+ * Spec statuses: completed | current | upcoming | deload.
2614
+ * `next` and `missed` are additive extras supported by this implementation.
2615
+ */
2616
+ type WorkoutPillStatus = 'completed' | 'current' | 'upcoming' | 'deload' | 'next' | 'missed';
2617
+ interface WorkoutPillProps extends ViewProps {
2618
+ name: string;
2619
+ status: WorkoutPillStatus;
2620
+ /** Force pulsing animation. Defaults to pulsing only on `current` status. */
2621
+ pulse?: boolean;
2622
+ onPress?: () => void;
2623
+ highlighted?: boolean;
2624
+ className?: string;
2625
+ }
2626
+ declare function WorkoutPill({ name, status, pulse, onPress, highlighted, className, ...props }: WorkoutPillProps): react_jsx_runtime.JSX.Element;
2627
+
2628
+ interface VelocityStripProps extends ViewProps {
2629
+ velocities: number[];
2630
+ expanded?: boolean;
2631
+ onToggle?: () => void;
2632
+ onRepPress?: (index: number, velocity: number) => void;
2633
+ variant?: 'full' | 'mini';
2634
+ showInfo?: boolean;
2635
+ className?: string;
2636
+ }
2637
+ declare function getVelocityZoneColor(velocity: number): string;
2638
+ declare function getVelocityZoneName(velocity: number): string;
2639
+ declare function calculateVelocityLoss(velocities: number[]): number;
2640
+ declare function calculateMeanVelocity(velocities: number[]): number;
2641
+ declare function VelocityStrip({ velocities, expanded, onToggle, onRepPress, variant, showInfo, className, ...props }: VelocityStripProps): react_jsx_runtime.JSX.Element;
2642
+
2643
+ type VolumeStatus = 'untrained' | 'behind' | 'ontrack' | 'target' | 'over';
2644
+ interface MuscleGroupChipProps extends ViewProps {
2645
+ name: string;
2646
+ volumeStatus?: VolumeStatus;
2647
+ onPress?: () => void;
2648
+ className?: string;
2649
+ }
2650
+ declare function MuscleGroupChip({ name, volumeStatus, onPress, className, ...props }: MuscleGroupChipProps): react_jsx_runtime.JSX.Element;
2651
+
2652
+ interface SparklineProps extends ViewProps {
2653
+ data: number[];
2654
+ width?: number;
2655
+ height?: number;
2656
+ color?: string;
2657
+ showDots?: boolean;
2658
+ referenceLines?: Array<{
2659
+ value: number;
2660
+ color: string;
2661
+ dashed?: boolean;
2662
+ label?: string;
2663
+ }>;
2664
+ highlightLast?: boolean;
2665
+ className?: string;
2666
+ }
2667
+ declare function Sparkline({ data, width, height, color, showDots, referenceLines, highlightLast, className, ...props }: SparklineProps): react_jsx_runtime.JSX.Element;
2668
+
2669
+ type SetRowMode = 'active' | 'completed' | 'history';
2670
+ interface SetRowProps {
2671
+ mode: SetRowMode;
2672
+ setNumber: number;
2673
+ previous?: {
2674
+ reps: number;
2675
+ weight: number;
2676
+ } | null;
2677
+ reps: number | null;
2678
+ weight: number | null;
2679
+ rpe?: number | null;
2680
+ unit: 'lbs' | 'kg';
2681
+ velocities?: number[];
2682
+ velocityExpanded?: boolean;
2683
+ onVelocityToggle?: () => void;
2684
+ setType?: string;
2685
+ prBadges?: Array<{
2686
+ type: PRType;
2687
+ label: string;
2688
+ }>;
2689
+ isNextSet?: boolean;
2690
+ targets?: {
2691
+ reps: number;
2692
+ weight: number;
2693
+ };
2694
+ }
2695
+ declare function SetRow({ mode, setNumber, previous, reps, weight, rpe, unit, velocities, velocityExpanded, onVelocityToggle, setType, prBadges, isNextSet, targets, }: SetRowProps): react_jsx_runtime.JSX.Element;
2696
+
2697
+ interface InputBarProps {
2698
+ exerciseName: string;
2699
+ setNumber: number;
2700
+ totalSets: number | null;
2701
+ reps: string;
2702
+ weight: string;
2703
+ unit: 'lbs' | 'kg';
2704
+ onRepsChange: (value: string) => void;
2705
+ onWeightChange: (value: string) => void;
2706
+ onRecord: () => void;
2707
+ canRecord: boolean;
2708
+ visible: boolean;
2709
+ }
2710
+ declare function InputBar({ exerciseName, setNumber, totalSets, reps, weight, unit, onRepsChange, onWeightChange, onRecord, canRecord, visible, }: InputBarProps): react_jsx_runtime.JSX.Element | null;
2711
+
2500
2712
  interface RestTimerProps {
2501
2713
  totalSeconds: number;
2502
2714
  elapsedMs: number;
@@ -2507,14 +2719,889 @@ interface RestTimerProps {
2507
2719
  }
2508
2720
  declare function RestTimer({ totalSeconds, elapsedMs, onSkip, onAddTime, nextSetInfo, visible, }: RestTimerProps): react_jsx_runtime.JSX.Element | null;
2509
2721
 
2722
+ type ExerciseCardState = 'collapsed' | 'expanded' | 'upcoming';
2723
+ interface ExerciseCardProps {
2724
+ name: string;
2725
+ state: ExerciseCardState;
2726
+ onToggle: () => void;
2727
+ onNavigateDetail?: () => void;
2728
+ summary?: {
2729
+ sets: number;
2730
+ reps: number | string;
2731
+ weight: number;
2732
+ unit: 'lbs' | 'kg';
2733
+ };
2734
+ e1rm?: {
2735
+ value: number;
2736
+ unit: 'lbs' | 'kg';
2737
+ };
2738
+ isPR?: boolean;
2739
+ setVelocities?: number[][];
2740
+ totalPlannedSets?: number;
2741
+ sets?: SetRowProps[];
2742
+ tempo?: [number, number, number, number];
2743
+ prescription?: string;
2744
+ previousBest?: string;
2745
+ supersetPosition?: 'first' | 'last' | 'middle' | null;
2746
+ supersetColor?: string;
2747
+ }
2748
+ declare function ExerciseCard(props: ExerciseCardProps): react_jsx_runtime.JSX.Element;
2749
+
2510
2750
  interface SupersetWrapperProps {
2511
2751
  label?: string;
2512
2752
  color?: string;
2513
2753
  children: React.ReactNode;
2514
- syncExpansion?: boolean;
2515
2754
  }
2516
2755
  declare function SupersetWrapper({ label, color, children, }: SupersetWrapperProps): react_jsx_runtime.JSX.Element;
2517
2756
 
2757
+ type MesoStatus = 'completed' | 'current' | 'upcoming';
2758
+ interface Meso {
2759
+ id: string;
2760
+ name: string;
2761
+ weekCount: number;
2762
+ status: MesoStatus;
2763
+ /**
2764
+ * 1-based week index of progress within a `current` meso.
2765
+ * Drives the solid fill width. Ignored for non-current mesos.
2766
+ */
2767
+ currentWeek?: number;
2768
+ }
2769
+ interface MesoProgressBarProps extends ViewProps {
2770
+ mesos: Meso[];
2771
+ activeMesoId: string | null;
2772
+ onMesoPress: (mesoId: string) => void;
2773
+ className?: string;
2774
+ }
2775
+ /**
2776
+ * Segmented horizontal bar of mesocycles. Each segment is tappable and its
2777
+ * flex width is proportional to the meso's `weekCount`. The active segment is
2778
+ * highlighted with a 2px brand border to stay in sync with MesoCard selection.
2779
+ *
2780
+ * @example
2781
+ * <MesoProgressBar
2782
+ * mesos={[
2783
+ * { id: 'm1', name: 'Accumulation', weekCount: 4, status: 'completed' },
2784
+ * { id: 'm2', name: 'Intensification', weekCount: 3, status: 'current', currentWeek: 2 },
2785
+ * { id: 'm3', name: 'Peak', weekCount: 2, status: 'upcoming' },
2786
+ * ]}
2787
+ * activeMesoId="m2"
2788
+ * onMesoPress={(id) => console.log(id)}
2789
+ * />
2790
+ */
2791
+ declare function MesoProgressBar({ mesos, activeMesoId, onMesoPress, className, ...props }: MesoProgressBarProps): react_jsx_runtime.JSX.Element;
2792
+
2793
+ interface WeekRowWorkout {
2794
+ name: string;
2795
+ status: WorkoutPillStatus;
2796
+ onPress?: () => void;
2797
+ }
2798
+ interface WeekRowProps extends ViewProps {
2799
+ /** Week index within the mesocycle (1-based) */
2800
+ weekNumber: number;
2801
+ /** Total weeks in the mesocycle */
2802
+ totalWeeks: number;
2803
+ /** Workouts scheduled for this week */
2804
+ workouts: WeekRowWorkout[];
2805
+ /** Planned intensity for the week, 0-1 */
2806
+ intensityLevel: number;
2807
+ /** Optional MRV/overexertion threshold, 0-1 */
2808
+ intensityThreshold?: number;
2809
+ /** Highlights this row as the active week */
2810
+ isCurrent?: boolean;
2811
+ /** Renders this row as a deload week (purple tint, deload pills) */
2812
+ isDeload?: boolean;
2813
+ className?: string;
2814
+ }
2815
+ /**
2816
+ * A single week within a mesocycle, showing the week number, its workout pills,
2817
+ * and a right-aligned vertical intensity indicator.
2818
+ *
2819
+ * @example
2820
+ * <WeekRow
2821
+ * weekNumber={1}
2822
+ * totalWeeks={4}
2823
+ * workouts={[
2824
+ * { name: 'Upper', status: 'completed' },
2825
+ * { name: 'Lower', status: 'current' },
2826
+ * ]}
2827
+ * intensityLevel={0.55}
2828
+ * intensityThreshold={0.8}
2829
+ * isCurrent
2830
+ * />
2831
+ */
2832
+ declare function WeekRow({ weekNumber, totalWeeks, workouts, intensityLevel, intensityThreshold, isCurrent, isDeload, className, ...props }: WeekRowProps): react_jsx_runtime.JSX.Element;
2833
+
2834
+ type WorkoutStatus = 'completed' | 'today' | 'upcoming';
2835
+ /** Spec volume-status vocabulary; mapped to MuscleGroupChip's VolumeStatus internally. */
2836
+ type WorkoutMuscleVolumeStatus = 'under' | 'maintenance' | 'productive' | 'over';
2837
+ interface WorkoutMuscleGroup {
2838
+ /** Muscle group identifier (free-form to match plan data). */
2839
+ group: string;
2840
+ /** Display label, may be abbreviated. */
2841
+ label: string;
2842
+ /** Volume status relative to landmarks. */
2843
+ volumeStatus?: WorkoutMuscleVolumeStatus;
2844
+ }
2845
+ interface WorkoutCardProps extends ViewProps {
2846
+ name: string;
2847
+ date: string;
2848
+ /** e.g. "45 min" */
2849
+ duration?: string;
2850
+ status: WorkoutStatus;
2851
+ muscleGroups: WorkoutMuscleGroup[];
2852
+ totalSets: number;
2853
+ /** Total lbs/kg moved across the workout. */
2854
+ totalVolume?: number;
2855
+ unit: 'lbs' | 'kg';
2856
+ exercises?: ExerciseCardProps[];
2857
+ expanded?: boolean;
2858
+ onToggle?: () => void;
2859
+ className?: string;
2860
+ }
2861
+ /**
2862
+ * A workout within a week: name, date, duration, muscle-group pills, and a
2863
+ * stats summary. When expandable it renders contained ExerciseCards on expand.
2864
+ * Status drives a colored left border, today adds a brand tint, and upcoming
2865
+ * is dimmed.
2866
+ *
2867
+ * @example
2868
+ * <WorkoutCard
2869
+ * name="Upper A"
2870
+ * date="Mon, Jun 23"
2871
+ * duration="45 min"
2872
+ * status="today"
2873
+ * muscleGroups={[{ group: 'chest', label: 'Chest', volumeStatus: 'productive' }]}
2874
+ * totalSets={18}
2875
+ * totalVolume={12450}
2876
+ * unit="lbs"
2877
+ * expanded
2878
+ * onToggle={() => {}}
2879
+ * exercises={exercises}
2880
+ * />
2881
+ */
2882
+ declare function WorkoutCard({ name, date, duration, status, muscleGroups, totalSets, totalVolume, unit, exercises, expanded, onToggle, className, ...props }: WorkoutCardProps): react_jsx_runtime.JSX.Element;
2883
+
2884
+ interface MesoVolumeHeatmapEntry {
2885
+ /** Muscle group identifier (free-form to match plan data). */
2886
+ group: string;
2887
+ /** Planned volume intensity for the group, 0-100. */
2888
+ percentage: number;
2889
+ }
2890
+ interface MesoCardProps extends ViewProps {
2891
+ /** Mesocycle name, e.g. "Accumulation". */
2892
+ name: string;
2893
+ /** Training goal, e.g. "Hypertrophy", "Strength", "Peaking". */
2894
+ goal: string;
2895
+ /** Training split, e.g. "Upper/Lower", "Push/Pull/Legs". */
2896
+ split: string;
2897
+ /** Week range label, e.g. "Weeks 1-4". */
2898
+ weekRange: string;
2899
+ /** Current week within the mesocycle (1-based). */
2900
+ currentWeek?: number;
2901
+ /** Total weeks in the mesocycle. */
2902
+ totalWeeks: number;
2903
+ /** Weeks rendered as a WeekRow list when expanded. */
2904
+ weeks: WeekRowProps[];
2905
+ /** Whether the card is expanded to reveal the week list. */
2906
+ expanded?: boolean;
2907
+ /** Toggles expansion; makes the header a button when provided. */
2908
+ onToggle?: () => void;
2909
+ /** Whether this meso is highlighted in the MesoProgressBar. */
2910
+ highlighted?: boolean;
2911
+ /** Volume heatmap data per muscle group for the meso. */
2912
+ volumeHeatmap?: MesoVolumeHeatmapEntry[];
2913
+ className?: string;
2914
+ }
2915
+ /**
2916
+ * A mesocycle card with name, goal, split, week range, an optional volume
2917
+ * heatmap strip, and an expandable WeekRow list. Highlighting animates the
2918
+ * border toward brand-primary with a subtle glow to stay in sync with the
2919
+ * MesoProgressBar.
2920
+ *
2921
+ * @example
2922
+ * <MesoCard
2923
+ * name="Accumulation"
2924
+ * goal="Hypertrophy"
2925
+ * split="Upper/Lower"
2926
+ * weekRange="Weeks 1-4"
2927
+ * currentWeek={2}
2928
+ * totalWeeks={4}
2929
+ * weeks={weeks}
2930
+ * volumeHeatmap={[{ group: 'chest', percentage: 80 }]}
2931
+ * expanded
2932
+ * onToggle={() => {}}
2933
+ * highlighted
2934
+ * />
2935
+ */
2936
+ declare function MesoCard({ name, goal, split, weekRange, currentWeek, totalWeeks, weeks, expanded, onToggle, highlighted, volumeHeatmap, className, ...props }: MesoCardProps): react_jsx_runtime.JSX.Element;
2937
+
2938
+ type PrRecordType = 'e1rm' | 'weight' | 'reps' | 'volume' | 'velocity';
2939
+ interface PrRecord {
2940
+ /** PR category, drives the row label and ordering grouping. */
2941
+ type: PrRecordType;
2942
+ /** Numeric magnitude (paired with `unit`) or a pre-formatted display string. */
2943
+ value: string | number;
2944
+ /** Unit suffix appended to numeric values, e.g. "lbs" or "kg". */
2945
+ unit?: 'lbs' | 'kg';
2946
+ /** Display date for when the record was set, e.g. "Mar 14" or "2 weeks ago". */
2947
+ date: string;
2948
+ /** Marks the record as recently set; adds a subtle amber glow highlight. */
2949
+ isRecent?: boolean;
2950
+ }
2951
+ interface PrHistoryModalProps extends ViewProps {
2952
+ /** Identifier of the exercise whose PR history is shown. */
2953
+ exerciseId: string;
2954
+ /** Human-readable exercise name for the title and a11y label; falls back to `exerciseId`. */
2955
+ exerciseName?: string;
2956
+ /** PR records to display, expected newest-first. */
2957
+ records: PrRecord[];
2958
+ /** Whether the bottom sheet is visible. */
2959
+ isOpen?: boolean;
2960
+ /** Alias for `isOpen` (spec wording: "isOpen/visible"). `isOpen` wins when both are set. */
2961
+ visible?: boolean;
2962
+ /** Invoked when the sheet requests to close (backdrop, close button, or back gesture). */
2963
+ onClose: () => void;
2964
+ }
2965
+ /**
2966
+ * Bottom-sheet modal listing an exercise's personal-record history. Each row
2967
+ * shows the PR type, value, and date; recent records get a subtle amber glow.
2968
+ * Built on the titan `Drawer` primitive (bottom placement) so it inherits
2969
+ * backdrop dismissal, the back gesture, and `role="dialog"` semantics.
2970
+ *
2971
+ * Typically triggered by tapping a `WeightBadge`, but the modal itself is
2972
+ * controlled — the trigger lives in the consumer.
2973
+ *
2974
+ * @example
2975
+ * <PrHistoryModal
2976
+ * exerciseId="bench-press"
2977
+ * exerciseName="Bench Press"
2978
+ * isOpen={open}
2979
+ * onClose={() => setOpen(false)}
2980
+ * records={[
2981
+ * { type: 'e1rm', value: 245, unit: 'lbs', date: 'Mar 14', isRecent: true },
2982
+ * { type: 'reps', value: '8 @ 185 lbs', date: 'Feb 28' },
2983
+ * ]}
2984
+ * />
2985
+ */
2986
+ declare function PrHistoryModal({ exerciseId, exerciseName, records, isOpen, visible, onClose, ...props }: PrHistoryModalProps): react_jsx_runtime.JSX.Element;
2987
+
2988
+ type WarmUpStatus = 'good' | 'moderate' | 'caution';
2989
+ interface ReadinessFactor {
2990
+ /** Stable identifier; also used to pick the emoji set (sleep/soreness/motivation/stress). */
2991
+ id: string;
2992
+ /** Human label, e.g. "Sleep". */
2993
+ label: string;
2994
+ /** Selected level, 1-5. */
2995
+ value: number;
2996
+ /** Called with the new 1-5 level when an emoji is tapped. */
2997
+ onChange: (value: number) => void;
2998
+ }
2999
+ interface WarmUpValidation {
3000
+ /** Percent below the 14-day rolling velocity average. */
3001
+ velocityDeficit: number;
3002
+ /** Short human recommendation, e.g. "Velocity on target — proceed as planned". */
3003
+ recommendation: string;
3004
+ /** Severity of the deficit. */
3005
+ status: WarmUpStatus;
3006
+ }
3007
+ interface ReadinessCheckProps {
3008
+ /** Subjective readiness factors (Sleep, Soreness, Motivation, Stress). */
3009
+ factors: ReadinessFactor[];
3010
+ /** Computed overall readiness score, 0-100. */
3011
+ score: number;
3012
+ /** VBT warm-up validation result, shown once the warm-up set is performed. */
3013
+ warmUpValidation?: WarmUpValidation;
3014
+ /** Whether the VBT warm-up has been performed. */
3015
+ warmUpCompleted: boolean;
3016
+ /** Called when the assessment is confirmed and the workout can begin. */
3017
+ onConfirm: () => void;
3018
+ className?: string;
3019
+ }
3020
+ /**
3021
+ * Pre-workout readiness assessment combining subjective emoji sliders with an
3022
+ * objective VBT warm-up validation and a computed readiness score.
3023
+ *
3024
+ * @example
3025
+ * <ReadinessCheck
3026
+ * factors={[{ id: 'sleep', label: 'Sleep', value: 4, onChange: setSleep }]}
3027
+ * score={78}
3028
+ * warmUpCompleted
3029
+ * warmUpValidation={{ velocityDeficit: 4, recommendation: 'On target', status: 'good' }}
3030
+ * onConfirm={start}
3031
+ * />
3032
+ */
3033
+ declare function ReadinessCheck({ factors, score, warmUpValidation, warmUpCompleted, onConfirm, className, }: ReadinessCheckProps): react_jsx_runtime.JSX.Element;
3034
+
3035
+ interface StrengthTrendDataPoint {
3036
+ /** ISO date string for the session. */
3037
+ date: string;
3038
+ /** Estimated one-rep max in the chart's unit. */
3039
+ e1rm: number;
3040
+ /** Marks a personal-record session (rendered with a star). */
3041
+ isPR?: boolean;
3042
+ /** Optional human label shown in the tooltip instead of the raw date. */
3043
+ sessionLabel?: string;
3044
+ }
3045
+ interface StrengthTrendChartMesoBoundary {
3046
+ /** ISO date where the mesocycle boundary falls. */
3047
+ date: string;
3048
+ /** Short label, e.g. "Hypertrophy". */
3049
+ label: string;
3050
+ }
3051
+ interface StrengthTrendChartProps extends ViewProps {
3052
+ /** Actual e1RM data points, chronological. */
3053
+ data: StrengthTrendDataPoint[];
3054
+ /** Projected/planned e1RM trajectory, drawn as a dashed line. */
3055
+ projection?: StrengthTrendDataPoint[];
3056
+ /** Chart plot width in pixels. */
3057
+ width: number;
3058
+ /** Chart plot height in pixels (120-160 for the compact variant). */
3059
+ height: number;
3060
+ /** Mesocycle boundary markers (vertical guides + labels). */
3061
+ mesoBoundaries?: StrengthTrendChartMesoBoundary[];
3062
+ /** Called when an actual data point is tapped. */
3063
+ onPointPress?: (point: StrengthTrendDataPoint) => void;
3064
+ /** Unit for display and labels. */
3065
+ unit: 'lbs' | 'kg';
3066
+ /** Animate the left-to-right line draw on mount (default true). */
3067
+ animateOnMount?: boolean;
3068
+ className?: string;
3069
+ }
3070
+ /**
3071
+ * Estimated-1RM line chart over time with an optional dashed plan-projection
3072
+ * line and PR star markers. Rendered entirely with absolutely-positioned
3073
+ * Views (no SVG), following the Sparkline approach. Tapping an actual point
3074
+ * opens a tooltip and fires `onPointPress`. A trend pill below the chart
3075
+ * summarizes the percentage change for the current mesocycle.
3076
+ *
3077
+ * @example
3078
+ * <StrengthTrendChart
3079
+ * data={[{ date: '2026-01-01', e1rm: 225 }, { date: '2026-02-01', e1rm: 245, isPR: true }]}
3080
+ * projection={[{ date: '2026-02-01', e1rm: 245 }, { date: '2026-03-01', e1rm: 260 }]}
3081
+ * width={320}
3082
+ * height={150}
3083
+ * unit="lbs"
3084
+ * />
3085
+ */
3086
+ declare function StrengthTrendChart({ data, projection, width, height, mesoBoundaries, onPointPress, unit, animateOnMount, className, ...props }: StrengthTrendChartProps): react_jsx_runtime.JSX.Element;
3087
+
3088
+ type WorkoutDotStatus = 'within' | 'above' | 'below';
3089
+ interface CapacityBandDataPoint {
3090
+ /** ISO-ish date string (e.g. "2026-06-01"). */
3091
+ date: string;
3092
+ /** Lower bound of the capacity band (MEV equivalent). */
3093
+ bandLow: number;
3094
+ /** Upper bound of the capacity band (MRV equivalent). */
3095
+ bandHigh: number;
3096
+ }
3097
+ interface WorkoutDot {
3098
+ date: string;
3099
+ /** Actual session load score. */
3100
+ load: number;
3101
+ /** Position of the session relative to the band. */
3102
+ status: WorkoutDotStatus;
3103
+ }
3104
+ interface CapacityBandProjection {
3105
+ /** Band shape over the next days if training continues (rises). */
3106
+ withTraining: CapacityBandDataPoint[];
3107
+ /** Band shape over the next days if resting (drops). */
3108
+ withRest: CapacityBandDataPoint[];
3109
+ }
3110
+ interface CapacityBandChartProps extends ViewProps {
3111
+ /** Capacity band shape over time. */
3112
+ band: CapacityBandDataPoint[];
3113
+ /** Workout sessions plotted as dots. */
3114
+ workouts: WorkoutDot[];
3115
+ /** Optional forward projection (next few days). */
3116
+ projection?: CapacityBandProjection;
3117
+ /** Chart width in px. */
3118
+ width: number;
3119
+ /** Chart height in px. */
3120
+ height: number;
3121
+ /** Called when a workout dot is tapped. */
3122
+ onWorkoutPress?: (workout: WorkoutDot) => void;
3123
+ className?: string;
3124
+ }
3125
+ /**
3126
+ * Gentler-Streak-inspired fatigue visualization. Renders a shaded capacity
3127
+ * band (between a rolling MEV/MRV estimate), workout sessions as colored dots
3128
+ * positioned by load, and an optional dashed forward projection that diverges
3129
+ * for "keep training" (rises) versus "rest" (drops). View-based, no SVG:
3130
+ * the band fill is a run of vertical columns and the edges/projection are
3131
+ * rotated line Views (same technique as Sparkline).
3132
+ *
3133
+ * @example
3134
+ * <CapacityBandChart
3135
+ * band={band}
3136
+ * workouts={workouts}
3137
+ * projection={{ withTraining, withRest }}
3138
+ * width={320}
3139
+ * height={180}
3140
+ * onWorkoutPress={(w) => openSession(w)}
3141
+ * />
3142
+ */
3143
+ declare function CapacityBandChart({ band, workouts, projection, width, height, onWorkoutPress, className, ...props }: CapacityBandChartProps): react_jsx_runtime.JSX.Element;
3144
+
3145
+ /** A single workout within a planned week, plus its exercise breakdown. */
3146
+ interface PlanWorkout {
3147
+ /** Stable identifier used for drill-down selection. */
3148
+ id: string;
3149
+ name: string;
3150
+ date: string;
3151
+ duration?: string;
3152
+ status: WorkoutStatus;
3153
+ muscleGroups: WorkoutMuscleGroup[];
3154
+ totalSets: number;
3155
+ totalVolume?: number;
3156
+ unit: 'lbs' | 'kg';
3157
+ /** Exercises revealed when the workout is opened. */
3158
+ exercises: ExerciseCardProps[];
3159
+ }
3160
+ /** A training week inside a mesocycle. */
3161
+ interface PlanWeek {
3162
+ /** 1-based week index within the mesocycle. */
3163
+ weekNumber: number;
3164
+ /** Planned intensity for the week, 0-1. */
3165
+ intensityLevel: number;
3166
+ /** Optional MRV/overexertion threshold, 0-1. */
3167
+ intensityThreshold?: number;
3168
+ isDeload?: boolean;
3169
+ isCurrent?: boolean;
3170
+ workouts: PlanWorkout[];
3171
+ }
3172
+ /** A mesocycle: the top level of the drill-down. */
3173
+ interface PlanMeso {
3174
+ id: string;
3175
+ name: string;
3176
+ goal: string;
3177
+ split: string;
3178
+ weekRange: string;
3179
+ weekCount: number;
3180
+ currentWeek?: number;
3181
+ status: MesoStatus;
3182
+ volumeHeatmap?: MesoVolumeHeatmapEntry[];
3183
+ weeks: PlanWeek[];
3184
+ }
3185
+ /** Current depth of the meso -> week -> workout drill-down. */
3186
+ type ProgramNavLevel = 'meso' | 'week' | 'workout';
3187
+ /** The navigation cursor within the active mesocycle. */
3188
+ interface ProgramSelection {
3189
+ weekNumber: number | null;
3190
+ workoutId: string | null;
3191
+ }
3192
+ /** One tappable step in the breadcrumb trail. */
3193
+ interface ProgramBreadcrumb {
3194
+ key: string;
3195
+ label: string;
3196
+ level: ProgramNavLevel;
3197
+ }
3198
+ interface ProgramPlanningPageProps extends ViewProps {
3199
+ /** Page heading. */
3200
+ title?: string;
3201
+ /** Mesocycles that make up the program. */
3202
+ mesos: PlanMeso[];
3203
+ className?: string;
3204
+ }
3205
+ /** Derive the current drill-down level from the selection cursor (pure). */
3206
+ declare function deriveNavLevel(selection: ProgramSelection): ProgramNavLevel;
3207
+ /** Project the mesocycles onto MesoProgressBar segment data (pure). */
3208
+ declare function toProgressBarMesos(mesos: PlanMeso[]): Meso[];
3209
+ /** Look up a meso by id, or null. */
3210
+ declare function findMeso(mesos: PlanMeso[], id: string | null): PlanMeso | null;
3211
+ /** Look up a week within a meso, or null. */
3212
+ declare function findWeek(meso: PlanMeso | null, weekNumber: number | null): PlanWeek | null;
3213
+ /** Look up a workout within a week, or null. */
3214
+ declare function findWorkout(week: PlanWeek | null, workoutId: string | null): PlanWorkout | null;
3215
+ /** Build the breadcrumb trail for the active drill path (pure). */
3216
+ declare function buildBreadcrumbs(meso: PlanMeso, weekNumber: number | null, workout: PlanWorkout | null): ProgramBreadcrumb[];
3217
+ /**
3218
+ * ProgramPlanningPage — a meso -> week -> workout drill-down over an entire
3219
+ * training program. A `MesoProgressBar` pins the mesocycle timeline to the top;
3220
+ * the body swaps between three levels: expandable `MesoCard`s (with inline
3221
+ * `WeekRow`s), a week's `WorkoutCard` list, and a single opened `WorkoutCard`
3222
+ * with inline `ExerciseCard` expansion. A breadcrumb trail tracks and rewinds
3223
+ * the drill path. Selection is page-level state; children keep their own styles.
3224
+ *
3225
+ * @example
3226
+ * <ProgramPlanningPage mesos={mesos} />
3227
+ */
3228
+ declare function ProgramPlanningPage({ title, mesos, className, ...props }: ProgramPlanningPageProps): react_jsx_runtime.JSX.Element;
3229
+
3230
+ /** Which tab of the exercise detail view is showing. */
3231
+ type ExerciseDetailTab = 'progress' | 'history' | 'advanced';
3232
+ /** Tabs in display order. */
3233
+ declare const EXERCISE_DETAIL_TABS: Array<{
3234
+ key: ExerciseDetailTab;
3235
+ label: string;
3236
+ }>;
3237
+ /** Identity + headline stats for the exercise being inspected. */
3238
+ interface ExerciseDetailHeader {
3239
+ /** Exercise name, e.g. "Barbell Bench Press". */
3240
+ name: string;
3241
+ /** Context line, e.g. "Chest · Barbell". */
3242
+ subtitle: string;
3243
+ /** Unit used across the page. */
3244
+ unit: 'lbs' | 'kg';
3245
+ /** Current estimated one-rep max, shown as a header pill. */
3246
+ currentE1rm?: number;
3247
+ }
3248
+ /**
3249
+ * A single expandable entry — one progression week or one logged session.
3250
+ * Projected onto an `ExerciseCard`, so it collapses to a summary and expands
3251
+ * to its `SetRow` breakdown.
3252
+ */
3253
+ interface ExerciseDetailEntry {
3254
+ /** Stable id for inline-expansion selection. */
3255
+ id: string;
3256
+ /** Row title, e.g. "Week 3" or "Mon, Jun 16". */
3257
+ title: string;
3258
+ /** Collapsed summary (sets × reps @ weight). */
3259
+ summary?: ExerciseCardProps['summary'];
3260
+ /** Estimated one-rep max badge. */
3261
+ e1rm?: ExerciseCardProps['e1rm'];
3262
+ /** Flags a personal-record entry. */
3263
+ isPR?: boolean;
3264
+ /** Prescribed tempo, revealed when expanded. */
3265
+ tempo?: ExerciseCardProps['tempo'];
3266
+ /** Per-set breakdown revealed when expanded. */
3267
+ sets: SetRowProps[];
3268
+ }
3269
+ /** Strength-trend inputs for the Progress tab chart. */
3270
+ interface ExerciseTrend {
3271
+ /** Measured e1RM data points, chronological. */
3272
+ data: StrengthTrendDataPoint[];
3273
+ /** Planned/projected trajectory (dashed line). */
3274
+ projection?: StrengthTrendDataPoint[];
3275
+ /** Mesocycle boundary guides. */
3276
+ mesoBoundaries?: StrengthTrendChartMesoBoundary[];
3277
+ }
3278
+ /** One set's velocity trace for the Advanced tab breakdown. */
3279
+ interface ExerciseVbtSet {
3280
+ /** Row label, e.g. "Set 1". */
3281
+ label: string;
3282
+ /** Per-rep mean concentric velocities (m/s). */
3283
+ velocities: number[];
3284
+ }
3285
+ /** Velocity-based-training inputs for the Advanced tab. */
3286
+ interface ExerciseVbt {
3287
+ /** Capacity band shape over time. */
3288
+ band: CapacityBandDataPoint[];
3289
+ /** Sessions plotted against the band. */
3290
+ workouts: WorkoutDot[];
3291
+ /** Optional forward band projection. */
3292
+ projection?: CapacityBandProjection;
3293
+ /** Per-set velocity traces for the most recent session. */
3294
+ sets: ExerciseVbtSet[];
3295
+ }
3296
+ /** Page-level roll-up of the logged sessions. */
3297
+ interface ExerciseDetailStats {
3298
+ /** Number of logged sessions. */
3299
+ sessions: number;
3300
+ /** Best estimated one-rep max seen, or null if none recorded. */
3301
+ bestE1rm: number | null;
3302
+ /** Count of PR entries. */
3303
+ prCount: number;
3304
+ }
3305
+ /** Aggregate velocity readout for the Advanced tab. */
3306
+ interface VbtSummary {
3307
+ /** Mean concentric velocity across every logged rep. */
3308
+ meanVelocity: number;
3309
+ /** Worst within-set velocity loss (%), i.e. the most-fatigued set. */
3310
+ velocityLoss: number;
3311
+ }
3312
+ interface ExerciseDetailPageProps extends ViewProps {
3313
+ /** Exercise identity + headline stats. */
3314
+ exercise: ExerciseDetailHeader;
3315
+ /** Mesocycle context banner (Progress tab). */
3316
+ meso: MesoStatusCardProps;
3317
+ /** Strength trend inputs (Progress tab). */
3318
+ trend: ExerciseTrend;
3319
+ /** Week-by-week progression entries (Progress tab). */
3320
+ progression: ExerciseDetailEntry[];
3321
+ /** All logged sessions (History tab). */
3322
+ history: ExerciseDetailEntry[];
3323
+ /** Velocity-based-training inputs (Advanced tab). */
3324
+ vbt: ExerciseVbt;
3325
+ className?: string;
3326
+ }
3327
+ /** Roll up logged sessions into the page summary (pure, testable). */
3328
+ declare function deriveExerciseStats(entries: ExerciseDetailEntry[]): ExerciseDetailStats;
3329
+ /** Project an entry onto ExerciseCard props, wiring inline expansion (pure). */
3330
+ declare function toExerciseCardProps(entry: ExerciseDetailEntry, expanded: boolean, onToggle: () => void): ExerciseCardProps;
3331
+ /** Aggregate per-set velocity traces into the Advanced readout (pure). */
3332
+ declare function summarizeVbt(sets: ExerciseVbtSet[]): VbtSummary;
3333
+ /**
3334
+ * ExerciseDetailPage — a tabbed per-exercise view. A shared header (name,
3335
+ * context line, current e1RM pill) sits above a Progress / History / Advanced
3336
+ * tab bar. Progress composes the `MesoStatusCard` context banner, a stats
3337
+ * strip, a `StrengthTrendChart`, and a week-by-week progression list with
3338
+ * inline `ExerciseCard` expansion. History lists every logged session with the
3339
+ * same inline expansion. Advanced surfaces VBT data via a `CapacityBandChart`,
3340
+ * a velocity summary, and a per-set `VelocityStrip` breakdown. Tab and
3341
+ * per-list expansion are page-level state; children keep their own styles.
3342
+ *
3343
+ * @example
3344
+ * <ExerciseDetailPage
3345
+ * exercise={exercise}
3346
+ * meso={meso}
3347
+ * trend={trend}
3348
+ * progression={progression}
3349
+ * history={history}
3350
+ * vbt={vbt}
3351
+ * />
3352
+ */
3353
+ declare function ExerciseDetailPage({ exercise, meso, trend, progression, history, vbt, className, ...props }: ExerciseDetailPageProps): react_jsx_runtime.JSX.Element;
3354
+
3355
+ /** Where an exercise sits in the during-workout flow. */
3356
+ type ActiveExerciseStatus = 'completed' | 'active' | 'upcoming';
3357
+ /**
3358
+ * One exercise in the running workout. Projected onto an `ExerciseCard`, whose
3359
+ * visual state is driven by `status` and the page's zoom focus: completed and
3360
+ * active exercises collapse/expand, upcoming ones stay dimmed.
3361
+ */
3362
+ interface ActiveWorkoutExercise {
3363
+ /** Stable id for zoom-focus selection. */
3364
+ id: string;
3365
+ /** Exercise name, e.g. "Barbell Bench Press". */
3366
+ name: string;
3367
+ /** Position in the workout flow. */
3368
+ status: ActiveExerciseStatus;
3369
+ /** Unit used for this exercise's loads. */
3370
+ unit: 'lbs' | 'kg';
3371
+ /** Total sets prescribed for this exercise. */
3372
+ totalPlannedSets: number;
3373
+ /** Collapsed summary (sets × reps @ weight) for a completed exercise. */
3374
+ summary?: ExerciseCardProps['summary'];
3375
+ /** Estimated one-rep max badge. */
3376
+ e1rm?: ExerciseCardProps['e1rm'];
3377
+ /** Flags a personal-record exercise. */
3378
+ isPR?: boolean;
3379
+ /** Prescribed tempo, revealed when expanded. */
3380
+ tempo?: ExerciseCardProps['tempo'];
3381
+ /** Per-rep velocities for each logged set (drives collapsed strips + set count). */
3382
+ setVelocities?: number[][];
3383
+ /** Per-set breakdown revealed when expanded. */
3384
+ sets?: SetRowProps[];
3385
+ /** One-line prescription for an upcoming exercise. */
3386
+ prescription?: string;
3387
+ /** Previous-best hint for an upcoming exercise. */
3388
+ previousBest?: string;
3389
+ /** Groups consecutive exercises under a shared `SupersetWrapper`. */
3390
+ supersetId?: string;
3391
+ }
3392
+ /** A superset grouping consecutive exercises that share its id. */
3393
+ interface ActiveWorkoutSuperset {
3394
+ /** Matches `ActiveWorkoutExercise.supersetId`. */
3395
+ id: string;
3396
+ /** Corner badge label, e.g. "SS1". */
3397
+ label: string;
3398
+ /** Accent color for the wrapper rail + label. */
3399
+ color?: string;
3400
+ }
3401
+ /** Live-set inputs shown in the bottom `InputBar`. */
3402
+ interface ActiveWorkoutInput {
3403
+ /** Current reps field value. */
3404
+ reps: string;
3405
+ /** Current weight field value. */
3406
+ weight: string;
3407
+ }
3408
+ /** Rest-timer inputs shown in the bottom `RestTimer`. */
3409
+ interface ActiveWorkoutRest {
3410
+ /** Prescribed rest length, seconds. */
3411
+ totalSeconds: number;
3412
+ /** Elapsed rest, milliseconds. */
3413
+ elapsedMs: number;
3414
+ /** Next-set hint, e.g. "Set 3 · 8 × 195 lbs". */
3415
+ nextSetInfo?: string;
3416
+ }
3417
+ /** Derived, page-level roll-up of workout progress. */
3418
+ interface WorkoutProgress {
3419
+ /** Number of exercises marked completed. */
3420
+ completedExercises: number;
3421
+ /** Total exercises in the workout. */
3422
+ totalExercises: number;
3423
+ /** Sets logged so far across all exercises. */
3424
+ completedSets: number;
3425
+ /** Total sets prescribed across all exercises. */
3426
+ totalSets: number;
3427
+ /** Fraction of prescribed sets logged, 0-1. */
3428
+ fraction: number;
3429
+ }
3430
+ /** An ordered render group: a lone exercise or a superset of exercises. */
3431
+ type WorkoutGroup = {
3432
+ type: 'single';
3433
+ exercise: ActiveWorkoutExercise;
3434
+ } | {
3435
+ type: 'superset';
3436
+ superset: ActiveWorkoutSuperset;
3437
+ exercises: ActiveWorkoutExercise[];
3438
+ };
3439
+ interface ActiveWorkoutPageProps extends ViewProps {
3440
+ /** Workout name shown in the header. */
3441
+ title?: string;
3442
+ /** Context line under the title, e.g. "Push Day A · Week 6". */
3443
+ subtitle?: string;
3444
+ /** Exercises in flow order. */
3445
+ exercises: ActiveWorkoutExercise[];
3446
+ /** Superset groupings referenced by `exercise.supersetId`. */
3447
+ supersets?: ActiveWorkoutSuperset[];
3448
+ /** Seed reps/weight for the live `InputBar`. */
3449
+ input?: ActiveWorkoutInput;
3450
+ /** Rest-timer state; when resting, the timer replaces the input bar. */
3451
+ rest?: ActiveWorkoutRest;
3452
+ /** Start the page in the resting state (timer showing). */
3453
+ initialResting?: boolean;
3454
+ className?: string;
3455
+ }
3456
+ /** Count the sets logged for an exercise (pure). */
3457
+ declare function countCompletedSets(exercise: ActiveWorkoutExercise): number;
3458
+ /** Roll up the exercises into the header progress readout (pure, testable). */
3459
+ declare function deriveWorkoutProgress(exercises: ActiveWorkoutExercise[]): WorkoutProgress;
3460
+ /** The active exercise anchors the bottom bar; find it, or null (pure). */
3461
+ declare function findActiveExercise(exercises: ActiveWorkoutExercise[]): ActiveWorkoutExercise | null;
3462
+ /** Map an exercise's status + focus onto an `ExerciseCard` visual state (pure). */
3463
+ declare function statusToCardState(status: ActiveExerciseStatus, focused: boolean): ExerciseCardState;
3464
+ /** Project an exercise onto ExerciseCard props, wiring zoom focus (pure). */
3465
+ declare function toActiveCardProps(exercise: ActiveWorkoutExercise, focused: boolean, onToggle: () => void, supersetPosition?: ExerciseCardProps['supersetPosition'], supersetColor?: string): ExerciseCardProps;
3466
+ /** Fold consecutive same-superset exercises into render groups (pure). */
3467
+ declare function groupExercises(exercises: ActiveWorkoutExercise[], supersets: ActiveWorkoutSuperset[]): WorkoutGroup[];
3468
+ /**
3469
+ * ActiveWorkoutPage — the during-workout screen, built as a zoom hierarchy over
3470
+ * `ExerciseCard`s. A header progress bar rolls up completed sets; the flow list
3471
+ * dims upcoming exercises, collapses finished ones to their velocity strips, and
3472
+ * expands exactly one focused exercise to its `SetRow` breakdown. Consecutive
3473
+ * superset exercises stitch together inside a `SupersetWrapper`. A pinned bottom
3474
+ * bar toggles between the live `InputBar` (log the next set) and the `RestTimer`.
3475
+ * Focus and rest are page-level state; children keep their own styles.
3476
+ *
3477
+ * @example
3478
+ * <ActiveWorkoutPage title="Push Day A" exercises={exercises} />
3479
+ */
3480
+ declare function ActiveWorkoutPage({ title, subtitle, exercises, supersets, input, rest, initialResting, className, ...props }: ActiveWorkoutPageProps): react_jsx_runtime.JSX.Element;
3481
+
3482
+ interface TreemapDatum {
3483
+ /** Stable identity — returned by onPress and used as the React key. */
3484
+ id: string;
3485
+ /** Area weight (e.g. size, count, severity). Non-positive values are dropped. */
3486
+ value: number;
3487
+ /** Tile fill color. Falls back to a built-in categorical palette by index. */
3488
+ color?: string;
3489
+ /** Optional label rendered inside sufficiently large tiles. */
3490
+ label?: string;
3491
+ }
3492
+ type TreemapScale = 'linear' | 'sqrt' | 'log';
3493
+ interface TreemapProps extends Omit<ViewProps, 'children'> {
3494
+ data: TreemapDatum[];
3495
+ /** Layout box. Required — the treemap fills exactly this area. */
3496
+ width: number;
3497
+ height: number;
3498
+ /**
3499
+ * Area scale. Real-world weights are often heavy-tailed, where one outlier
3500
+ * under a `linear` scale swallows the whole canvas. `sqrt` (default) damps
3501
+ * that while preserving order; `log` compresses hardest.
3502
+ */
3503
+ scale?: TreemapScale;
3504
+ /** Show at most N tiles; the remainder collapse into one "+M more" tile. */
3505
+ maxTiles?: number;
3506
+ /** Fires with a tile's id on press (never for the "+M more" tile). */
3507
+ onPress?: (id: string) => void;
3508
+ /** Draws a highlight border on the matching tile. */
3509
+ selectedId?: string;
3510
+ className?: string;
3511
+ }
3512
+ /**
3513
+ * Squarified treemap. SVG-free (absolutely-positioned tiles) so it renders
3514
+ * identically on web (react-native-web) and native. Layout is computed from
3515
+ * `value`; color and labels are caller-supplied.
3516
+ */
3517
+ declare function Treemap({ data, width, height, scale, maxTiles, onPress, selectedId, className, ...props }: TreemapProps): react_jsx_runtime.JSX.Element;
3518
+
3519
+ interface ScatterDatum {
3520
+ /** Stable identity — returned by onPress and used as the React key. */
3521
+ id: string;
3522
+ /** Horizontal position in data space. */
3523
+ x: number;
3524
+ /** Vertical position in data space. */
3525
+ y: number;
3526
+ /** Bubble radius in px. Falls back to a fixed default when omitted. */
3527
+ r?: number;
3528
+ /** Bubble fill color. Falls back to a built-in categorical palette by index. */
3529
+ color?: string;
3530
+ /** Optional label shown for large or selected points. */
3531
+ label?: string;
3532
+ }
3533
+ interface ScatterAxis {
3534
+ xLabel?: string;
3535
+ yLabel?: string;
3536
+ /** Domain overrides. Any omitted bound is derived from the data. */
3537
+ xMin?: number;
3538
+ xMax?: number;
3539
+ yMin?: number;
3540
+ yMax?: number;
3541
+ }
3542
+ interface ScatterProps extends Omit<ViewProps, 'children'> {
3543
+ data: ScatterDatum[];
3544
+ /** Layout box. Required — the plot fills exactly this area. */
3545
+ width: number;
3546
+ height: number;
3547
+ /** Axis labels and optional domain overrides. */
3548
+ axis?: ScatterAxis;
3549
+ /**
3550
+ * Draw the y = 1 − x "main sequence" reference line (NDepend idiom, where
3551
+ * distance from the diagonal measures the zone of pain / zone of uselessness).
3552
+ */
3553
+ diagonal?: boolean;
3554
+ /** Fires with a point's id on press. */
3555
+ onPress?: (id: string) => void;
3556
+ /** Draws a highlight ring on the matching point. */
3557
+ selectedId?: string;
3558
+ className?: string;
3559
+ }
3560
+ /**
3561
+ * SVG-free scatter / bubble plot (absolutely-positioned Views), matching the
3562
+ * codebase's chart convention so it renders identically on web and native. Used
3563
+ * for "main-sequence" plots (instability × abstractness) via the `diagonal`
3564
+ * reference line, or any two metrics. Positions and bubble sizes are computed
3565
+ * from the data; color and labels are caller-supplied.
3566
+ */
3567
+ declare function Scatter({ data, width, height, axis, diagonal, onPress, selectedId, className, ...props }: ScatterProps): react_jsx_runtime.JSX.Element;
3568
+
3569
+ interface GaugeThreshold {
3570
+ /** Band start, in the gauge's value units. */
3571
+ value: number;
3572
+ /** Color applied to filled segments at or above this band. */
3573
+ color: string;
3574
+ }
3575
+ interface GaugeProps extends Omit<ViewProps, 'children'> {
3576
+ /** Current value. Clamped to [min, max]. */
3577
+ value: number;
3578
+ min?: number;
3579
+ max?: number;
3580
+ /** Diameter in px. */
3581
+ size?: number;
3582
+ /** Caption under the big number. */
3583
+ label?: string;
3584
+ /** Unit suffix beside the big number (e.g. "%"). */
3585
+ unit?: string;
3586
+ /**
3587
+ * Band coloring, ascending by `value`. A filled segment takes the color of
3588
+ * the highest band whose `value` it reaches. Defaults to Titan status tokens
3589
+ * (red < 60, amber < 80, green ≥ 80 on a 0–100 scale).
3590
+ */
3591
+ thresholds?: GaugeThreshold[];
3592
+ /** Single-color override for filled segments (ignores `thresholds`). */
3593
+ color?: string;
3594
+ className?: string;
3595
+ }
3596
+ /**
3597
+ * SVG-free radial gauge (absolutely-positioned segment Views), matching the
3598
+ * codebase's chart convention so it renders identically on web and native. The
3599
+ * 270° arc fills with band colors as the value rises; the center reuses the
3600
+ * Metric visual language (large bold value + unit + caption). Ideal for a 0–100
3601
+ * health / quality score.
3602
+ */
3603
+ declare function Gauge({ value, min, max, size, label, unit, thresholds, color, className, ...props }: GaugeProps): react_jsx_runtime.JSX.Element;
3604
+
2518
3605
  /**
2519
3606
  * Utility function to merge Tailwind CSS classes with proper conflict resolution.
2520
3607
  * Combines clsx for conditional classes with tailwind-merge for deduplication.
@@ -2683,4 +3770,44 @@ type FormErrors<T extends FormValues> = Partial<Record<keyof T, string>>;
2683
3770
  */
2684
3771
  type FormTouched<T extends FormValues> = Partial<Record<keyof T, boolean>>;
2685
3772
 
2686
- export { Accordion, AccordionButton, type AccordionButtonProps, AccordionItem, type AccordionItemProps, AccordionPanel, type AccordionPanelProps, type AccordionProps, Alert, AlertDescription, type AlertDescriptionProps, type AlertProps, type AlertStatus, AlertTitle, type AlertTitleProps, type AlertVariant, Autocomplete, type AutocompleteOption, type AutocompleteProps, Avatar, AvatarBadge, type AvatarBadgeProps, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, Badge, type BadgeColor, type BadgeProps, type BadgeSize, BadgeText, type BadgeTextProps, type BadgeVariant, BreadcrumbItem, type BreadcrumbItemProps, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonColor, ButtonIcon, type ButtonIconProps, type ButtonProps, type ButtonSize, ButtonSpinner, type ButtonSpinnerProps, ButtonText, type ButtonTextProps, type ButtonVariant, Caption, type CaptionProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, type CardElevation, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardSkeleton, type CardSkeletonProps, CardTitle, type CardTitleProps, type CardVariant, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, Chip, type ChipColor, type ChipProps, type ChipSize, type ChipVariant, CircularProgress, type CircularProgressProps, Collapse, CollapseButton, type CollapseButtonProps, CollapseContent, type CollapseContentProps, type CollapseProps, DataRow, type DataRowProps, DateTime, type DateTimeFormat, type DateTimeProps, Divider, type DividerOrientation, type DividerProps, Drawer, DrawerBody, type DrawerBodyProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerPlacement, type DrawerProps, type DrawerSize, ElevationLevel, EmptyState, type EmptyStateProps, type FieldState, type FieldWrapperProps, FormActions, type FormActionsProps, type FormErrors, FormField, type FormFieldProps, FormRow, type FormRowProps, FormSection, type FormSectionProps, type FormTouched, type FormValues, GlowIntensity, HStack, Heading, type HeadingProps, HelpTip, type HelpTipIcon, type HelpTipPlacement, type HelpTipProps, type HelpTipSize, IconBox, type IconBoxProps, Indicator, type IndicatorColor, type IndicatorProps, type IndicatorSize, Input, InputGroup, type InputGroupProps, type InputProps, type InputSize, type InputVariant, Label, type LabelProps, LabelWithHelp, type LabelWithHelpProps, Link, type LinkColor, type LinkProps, type LinkUnderline, ListItem, ListItemContent, type ListItemContentProps, ListItemDivider, type ListItemDividerProps, ListItemIcon, type ListItemIconProps, type ListItemProps, ListItemTrailing, type ListItemTrailingProps, Menu, MenuDivider, type MenuDividerProps, MenuGroup, type MenuGroupProps, MenuItem, type MenuItemProps, MenuList, type MenuListProps, type MenuProps, MenuTrigger, type MenuTriggerProps, Metric, MetricGroup, type MetricGroupProps, type MetricProps, type MetricTrend, Modal, ModalBody, type ModalBodyProps, ModalCloseButton, type ModalCloseButtonProps, ModalContent, type ModalContentProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, type ModalSize, ModalTitle, type ModalTitleProps, Overline, type OverlineProps, Paragraph, type ParagraphProps, PasswordInput, type PasswordInputProps, Pill, type PillColor, type PillProps, type PillSize, type PillVariant, Popover, PopoverCloseButton, type PopoverCloseButtonProps, PopoverContent, type PopoverContentProps, type PopoverPlacement, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Progress, type ProgressColor, type ProgressProps, type ProgressSize, ProgressSteps, type ProgressStepsProps, type ProgressVariant, Radio, type RadioColor, RadioGroup, type RadioGroupProps, type RadioProps, type RadioSize, RestTimer, type RestTimerProps, type ResultType, Section, SectionContent, type SectionContentProps, SectionHeader, type SectionHeaderProps, type SectionProps, Select, type SelectOption, type SelectProps, Sidebar, SidebarContent, type SidebarContentProps, SidebarDivider, type SidebarDividerProps, SidebarFooter, type SidebarFooterProps, SidebarHeader, type SidebarHeaderProps, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, Skeleton, type SkeletonAnimation, SkeletonCard, type SkeletonCardProps, SkeletonCircle, type SkeletonCircleProps, SkeletonListItem, type SkeletonListItemProps, type SkeletonProps, SkeletonText, type SkeletonTextProps, type SkeletonVariant, type SortDirection, Spinner, type SpinnerColor, type SpinnerProps, type SpinnerSize, Stack, type StackProps, type StatusType, StepContent, type StepContentProps, StepIndicator, type StepIndicatorProps, StepLabel, type StepLabelProps, type StepStatus, Stepper, type StepperOrientation, type StepperProps, Step as StepperStep, type StepProps as StepperStepProps, SupersetWrapper, type SupersetWrapperProps, Surface, type SurfaceProps, Switch, type SwitchProps, type SwitchSize, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, TabPanels, type TabPanelsProps, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, TablePagination, type TablePaginationProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsOrientation, type TabsProps, type TabsVariant, Toast, type ToastConfig, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, type ToastStatus, ToolbarButton, ToolbarButtonGroup, type ToolbarButtonGroupProps, type ToolbarButtonProps, type ToolbarButtonSize, type ToolbarButtonVariant, Tooltip, type TooltipPlacement, type TooltipProps, Typography, type TypographyAlign, type TypographyColor, type TypographyProps, type TypographyVariant, type UseTableOptions, type UseTableReturn, VStack, alpha, cn, composeValidators, createFieldId, formatDateTime, getContrastText, getFieldAriaProps, getFieldValidationProps, getLuminance, getResultColor, getStatusColor, hasMaxLength, hasMinLength, isEmpty, isValidEmail, useTable, useToast, useToolbarButton, validationRules };
3773
+ /**
3774
+ * Presentation helpers for workout metrics.
3775
+ *
3776
+ * The data layer (`@voltras/workout-analytics` view-model derivations) supplies
3777
+ * EXACT, unrounded values; these turn them into the rounded / banded / formatted
3778
+ * forms a view renders. Keeping display munging here — in the design system, not
3779
+ * the analytics layer — is the render half of the model↔render split: one view
3780
+ * can round while another (or a hover) shows the exact value from the same real
3781
+ * data. Workout components consume these so the rules live in one place.
3782
+ */
3783
+ /** Round an exact RPE onto its conventional 0.5 granularity for display. */
3784
+ declare function roundRpe(rpe: number): number;
3785
+ /**
3786
+ * Color band for an RPE on the canonical performance scale. Higher RPE = harder
3787
+ * = red (direction inverted vs velocity, which shares the same scale). Bands:
3788
+ * `<7` green, `7–8.5` yellow, `8.5–9.5` orange, `≥9.5` red.
3789
+ */
3790
+ declare function rpeColor(rpe: number): string;
3791
+ /** Round a weight or e1RM to a whole unit for compact display. */
3792
+ declare function roundWeight(weight: number): number;
3793
+ /** Format an exact velocity (m/s) to the 2-dp string shown on the velocity strip. */
3794
+ declare function formatVelocity(velocity: number): string;
3795
+ /** Round an exact tempo tuple (seconds) to 1 dp per phase for display. */
3796
+ declare function roundTempo(tempo: [number, number, number, number]): [number, number, number, number];
3797
+ /** Signed percentage label for a deviation ratio, e.g. `+9%` / `-5%` / `0%`. */
3798
+ declare function formatSignedPct(ratio: number): string;
3799
+ /** Structured prescription for the active exercise (from the plan). */
3800
+ interface PrescriptionInput {
3801
+ repsLow?: number;
3802
+ repsHigh?: number;
3803
+ weightLbs?: number;
3804
+ rpe?: number;
3805
+ }
3806
+ /**
3807
+ * Human prescription string, e.g. `"8–10 @ 62 lb · RPE 8"`. `null` when there is
3808
+ * nothing to show. Presentation-only: the plan supplies the numbers, this shapes
3809
+ * the label.
3810
+ */
3811
+ declare function formatPrescription(p: PrescriptionInput | null | undefined): string | null;
3812
+
3813
+ export { Accordion, AccordionButton, type AccordionButtonProps, AccordionItem, type AccordionItemProps, AccordionPanel, type AccordionPanelProps, type AccordionProps, type ActiveExerciseStatus, type ActiveWorkoutExercise, type ActiveWorkoutInput, ActiveWorkoutPage, type ActiveWorkoutPageProps, type ActiveWorkoutRest, type ActiveWorkoutSuperset, Alert, AlertDescription, type AlertDescriptionProps, type AlertProps, type AlertStatus, AlertTitle, type AlertTitleProps, type AlertVariant, Autocomplete, type AutocompleteOption, type AutocompleteProps, Avatar, AvatarBadge, type AvatarBadgeProps, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, Badge, type BadgeColor, type BadgeProps, type BadgeSize, BadgeText, type BadgeTextProps, type BadgeVariant, BaseBadge, type BaseBadgeProps, type BaseBadgeSize, type BaseBadgeVariant, BreadcrumbItem, type BreadcrumbItemProps, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonColor, ButtonIcon, type ButtonIconProps, type ButtonProps, type ButtonSize, ButtonSpinner, type ButtonSpinnerProps, ButtonText, type ButtonTextProps, type ButtonVariant, CapacityBandChart, type CapacityBandChartProps, type CapacityBandDataPoint, type CapacityBandProjection, Caption, type CaptionProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, type CardElevation, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardSkeleton, type CardSkeletonProps, CardTitle, type CardTitleProps, type CardVariant, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, Chip, type ChipColor, type ChipProps, type ChipSize, type ChipVariant, CircularProgress, type CircularProgressProps, Collapse, CollapseButton, type CollapseButtonProps, CollapseContent, type CollapseContentProps, type CollapseProps, DataRow, type DataRowProps, DateTime, type DateTimeFormat, type DateTimeProps, DeviationBar, type DeviationBarProps, Divider, type DividerOrientation, type DividerProps, Drawer, DrawerBody, type DrawerBodyProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerPlacement, type DrawerProps, type DrawerSize, EXERCISE_DETAIL_TABS, ElevationLevel, EmptyState, type EmptyStateProps, ExerciseCard, type ExerciseCardProps, type ExerciseCardState, type ExerciseDetailEntry, type ExerciseDetailHeader, ExerciseDetailPage, type ExerciseDetailPageProps, type ExerciseDetailStats, type ExerciseDetailTab, type ExerciseTrend, type ExerciseVbt, type ExerciseVbtSet, type FieldState, type FieldWrapperProps, FormActions, type FormActionsProps, type FormErrors, FormField, type FormFieldProps, FormRow, type FormRowProps, FormSection, type FormSectionProps, type FormTouched, type FormValues, Gauge, type GaugeProps, type GaugeThreshold, GlowIntensity, HStack, Heading, type HeadingProps, HelpTip, type HelpTipIcon, type HelpTipPlacement, type HelpTipProps, type HelpTipSize, IconBox, type IconBoxProps, Indicator, type IndicatorColor, type IndicatorProps, type IndicatorSize, Input, InputBar, type InputBarProps, InputGroup, type InputGroupProps, type InputProps, type InputSize, type InputVariant, IntensityBar, type IntensityBarProps, Label, type LabelProps, LabelWithHelp, type LabelWithHelpProps, Link, type LinkColor, type LinkProps, type LinkUnderline, ListItem, ListItemContent, type ListItemContentProps, ListItemDivider, type ListItemDividerProps, ListItemIcon, type ListItemIconProps, type ListItemProps, ListItemTrailing, type ListItemTrailingProps, Menu, MenuDivider, type MenuDividerProps, MenuGroup, type MenuGroupProps, MenuItem, type MenuItemProps, MenuList, type MenuListProps, type MenuProps, MenuTrigger, type MenuTriggerProps, type Meso, MesoCard, type MesoCardProps, MesoProgressBar, type MesoProgressBarProps, type MesoStatus, MesoStatusCardProps, type MesoVolumeHeatmapEntry, Metric, MetricGroup, type MetricGroupProps, type MetricProps, type MetricTrend, Modal, ModalBody, type ModalBodyProps, ModalCloseButton, type ModalCloseButtonProps, ModalContent, type ModalContentProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, type ModalSize, ModalTitle, type ModalTitleProps, MuscleGroupChip, type MuscleGroupChipProps, Overline, type OverlineProps, type PRType, Paragraph, type ParagraphProps, PasswordInput, type PasswordInputProps, Pill, type PillColor, type PillProps, type PillSize, type PillVariant, PlaceholderStrip, type PlaceholderStripProps, type PlanMeso, type PlanWeek, type PlanWorkout, Popover, PopoverCloseButton, type PopoverCloseButtonProps, PopoverContent, type PopoverContentProps, type PopoverPlacement, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, PrBadge, type PrBadgeProps, PrHistoryModal, type PrHistoryModalProps, type PrRecord, type PrRecordType, type PrescriptionInput, type ProgramBreadcrumb, type ProgramNavLevel, ProgramPlanningPage, type ProgramPlanningPageProps, type ProgramSelection, Progress, type ProgressColor, type ProgressProps, type ProgressSize, ProgressSteps, type ProgressStepsProps, type ProgressVariant, Radio, type RadioColor, RadioGroup, type RadioGroupProps, type RadioProps, type RadioSize, ReadinessCheck, type ReadinessCheckProps, type ReadinessFactor, RestTimer, type RestTimerProps, type ResultType, Scatter, type ScatterAxis, type ScatterDatum, type ScatterProps, Section, SectionContent, type SectionContentProps, SectionHeader, type SectionHeaderProps, type SectionProps, Select, type SelectOption, type SelectProps, SetRow, type SetRowMode, type SetRowProps, Sidebar, SidebarContent, type SidebarContentProps, SidebarDivider, type SidebarDividerProps, SidebarFooter, type SidebarFooterProps, SidebarHeader, type SidebarHeaderProps, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, Skeleton, type SkeletonAnimation, SkeletonCard, type SkeletonCardProps, SkeletonCircle, type SkeletonCircleProps, SkeletonListItem, type SkeletonListItemProps, type SkeletonProps, SkeletonText, type SkeletonTextProps, type SkeletonVariant, type SortDirection, Sparkline, type SparklineProps, Spinner, type SpinnerColor, type SpinnerProps, type SpinnerSize, Stack, type StackProps, StatusDot, type StatusDotProps, type StatusDotVariant, type StatusType, StepContent, type StepContentProps, StepIndicator, type StepIndicatorProps, StepLabel, type StepLabelProps, type StepStatus, Stepper, type StepperOrientation, type StepperProps, Step as StepperStep, type StepProps as StepperStepProps, StrengthTrendChart, type StrengthTrendChartMesoBoundary, type StrengthTrendChartProps, type StrengthTrendDataPoint, SupersetWrapper, type SupersetWrapperProps, Surface, type SurfaceProps, Switch, type SwitchProps, type SwitchSize, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, TabPanels, type TabPanelsProps, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHeader, TableHeaderCell, type TableHeaderCellProps, type TableHeaderProps, TablePagination, type TablePaginationProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsOrientation, type TabsProps, type TabsVariant, TempoDisplay, type TempoDisplayProps, Toast, type ToastConfig, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, type ToastStatus, ToolbarButton, ToolbarButtonGroup, type ToolbarButtonGroupProps, type ToolbarButtonProps, type ToolbarButtonSize, type ToolbarButtonVariant, Tooltip, type TooltipPlacement, type TooltipProps, Treemap, type TreemapDatum, type TreemapProps, type TreemapScale, Typography, type TypographyAlign, type TypographyColor, type TypographyProps, type TypographyVariant, type UseTableOptions, type UseTableReturn, VStack, type VbtSummary, VelocityStrip, type VelocityStripProps, type VolumeStatus, type WarmUpStatus, type WarmUpValidation, WeekRow, type WeekRowProps, type WeekRowWorkout, WeightBadge, type WeightBadgeProps, type WeightBadgeSize, WorkoutCard, type WorkoutCardProps, type WorkoutDot, type WorkoutDotStatus, type WorkoutGroup, type WorkoutMuscleGroup, type WorkoutMuscleVolumeStatus, WorkoutPill, type WorkoutPillProps, type WorkoutPillStatus, type WorkoutProgress, type WorkoutStatus, alpha, buildBreadcrumbs, calculateMeanVelocity, calculateVelocityLoss, cn, composeValidators, countCompletedSets, createFieldId, deriveExerciseStats, deriveNavLevel, deriveWorkoutProgress, findActiveExercise, findMeso, findWeek, findWorkout, formatDateTime, formatPrescription, formatSignedPct, formatVelocity, getContrastText, getFieldAriaProps, getFieldValidationProps, getLuminance, getResultColor, getStatusColor, getVelocityZoneColor, getVelocityZoneName, groupExercises, hasMaxLength, hasMinLength, isEmpty, isValidEmail, roundRpe, roundTempo, roundWeight, rpeColor, statusToCardState, summarizeVbt, toActiveCardProps, toExerciseCardProps, toProgressBarMesos, useTable, useToast, useToolbarButton, validationRules };