@lockin90/ui-native 0.0.0-stage → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Accordion.js +144 -0
- package/lib/commonjs/components/Accordion.js.map +1 -0
- package/lib/commonjs/components/AchievementBadge.js +225 -0
- package/lib/commonjs/components/AchievementBadge.js.map +1 -0
- package/lib/commonjs/components/Alert.js +232 -0
- package/lib/commonjs/components/Alert.js.map +1 -0
- package/lib/commonjs/components/AreaChart.js +506 -0
- package/lib/commonjs/components/AreaChart.js.map +1 -0
- package/lib/commonjs/components/AuroraBackground.js +267 -0
- package/lib/commonjs/components/AuroraBackground.js.map +1 -0
- package/lib/commonjs/components/Avatar.js +187 -0
- package/lib/commonjs/components/Avatar.js.map +1 -0
- package/lib/commonjs/components/AvatarStack.js +95 -0
- package/lib/commonjs/components/AvatarStack.js.map +1 -0
- package/lib/commonjs/components/BackLink.js +77 -0
- package/lib/commonjs/components/BackLink.js.map +1 -0
- package/lib/commonjs/components/Badge.js +136 -0
- package/lib/commonjs/components/Badge.js.map +1 -0
- package/lib/commonjs/components/BarChart.js +641 -0
- package/lib/commonjs/components/BarChart.js.map +1 -0
- package/lib/commonjs/components/BarFill.js +55 -0
- package/lib/commonjs/components/BarFill.js.map +1 -0
- package/lib/commonjs/components/BeeswarmChart.js +615 -0
- package/lib/commonjs/components/BeeswarmChart.js.map +1 -0
- package/lib/commonjs/components/BiomarkerRange.js +610 -0
- package/lib/commonjs/components/BiomarkerRange.js.map +1 -0
- package/lib/commonjs/components/BodyBattery.js +563 -0
- package/lib/commonjs/components/BodyBattery.js.map +1 -0
- package/lib/commonjs/components/BrandMark.js +184 -0
- package/lib/commonjs/components/BrandMark.js.map +1 -0
- package/lib/commonjs/components/BulletChart.js +406 -0
- package/lib/commonjs/components/BulletChart.js.map +1 -0
- package/lib/commonjs/components/Button.js +154 -0
- package/lib/commonjs/components/Button.js.map +1 -0
- package/lib/commonjs/components/CaffeineClock.js +491 -0
- package/lib/commonjs/components/CaffeineClock.js.map +1 -0
- package/lib/commonjs/components/Card.js +142 -0
- package/lib/commonjs/components/Card.js.map +1 -0
- package/lib/commonjs/components/CharCounter.js +106 -0
- package/lib/commonjs/components/CharCounter.js.map +1 -0
- package/lib/commonjs/components/ChartState.js +554 -0
- package/lib/commonjs/components/ChartState.js.map +1 -0
- package/lib/commonjs/components/Checkbox.js +180 -0
- package/lib/commonjs/components/Checkbox.js.map +1 -0
- package/lib/commonjs/components/Chip.js +218 -0
- package/lib/commonjs/components/Chip.js.map +1 -0
- package/lib/commonjs/components/ChoiceChip.js +133 -0
- package/lib/commonjs/components/ChoiceChip.js.map +1 -0
- package/lib/commonjs/components/CodeBlock.js +126 -0
- package/lib/commonjs/components/CodeBlock.js.map +1 -0
- package/lib/commonjs/components/CodeField.js +129 -0
- package/lib/commonjs/components/CodeField.js.map +1 -0
- package/lib/commonjs/components/ColorPicker.js +181 -0
- package/lib/commonjs/components/ColorPicker.js.map +1 -0
- package/lib/commonjs/components/ComboChart.js +419 -0
- package/lib/commonjs/components/ComboChart.js.map +1 -0
- package/lib/commonjs/components/Combobox.js +108 -0
- package/lib/commonjs/components/Combobox.js.map +1 -0
- package/lib/commonjs/components/CompareChart.js +627 -0
- package/lib/commonjs/components/CompareChart.js.map +1 -0
- package/lib/commonjs/components/CompositeChart.js +654 -0
- package/lib/commonjs/components/CompositeChart.js.map +1 -0
- package/lib/commonjs/components/Countdown.js +152 -0
- package/lib/commonjs/components/Countdown.js.map +1 -0
- package/lib/commonjs/components/CreditCardVisual.js +167 -0
- package/lib/commonjs/components/CreditCardVisual.js.map +1 -0
- package/lib/commonjs/components/DateField.js +365 -0
- package/lib/commonjs/components/DateField.js.map +1 -0
- package/lib/commonjs/components/DayTimelineBlocks.js +253 -0
- package/lib/commonjs/components/DayTimelineBlocks.js.map +1 -0
- package/lib/commonjs/components/DayWheel.js +467 -0
- package/lib/commonjs/components/DayWheel.js.map +1 -0
- package/lib/commonjs/components/DeltaPill.js +154 -0
- package/lib/commonjs/components/DeltaPill.js.map +1 -0
- package/lib/commonjs/components/DistributionChart.js +776 -0
- package/lib/commonjs/components/DistributionChart.js.map +1 -0
- package/lib/commonjs/components/Divider.js +74 -0
- package/lib/commonjs/components/Divider.js.map +1 -0
- package/lib/commonjs/components/DonutChart.js +337 -0
- package/lib/commonjs/components/DonutChart.js.map +1 -0
- package/lib/commonjs/components/DotsLoader.js +94 -0
- package/lib/commonjs/components/DotsLoader.js.map +1 -0
- package/lib/commonjs/components/EffectAttributionLine.js +105 -0
- package/lib/commonjs/components/EffectAttributionLine.js.map +1 -0
- package/lib/commonjs/components/EmptyState.js +120 -0
- package/lib/commonjs/components/EmptyState.js.map +1 -0
- package/lib/commonjs/components/EngagementBar.js +122 -0
- package/lib/commonjs/components/EngagementBar.js.map +1 -0
- package/lib/commonjs/components/EnvironmentChart.js +573 -0
- package/lib/commonjs/components/EnvironmentChart.js.map +1 -0
- package/lib/commonjs/components/Eyebrow.js +32 -0
- package/lib/commonjs/components/Eyebrow.js.map +1 -0
- package/lib/commonjs/components/FocalPointPicker.js +196 -0
- package/lib/commonjs/components/FocalPointPicker.js.map +1 -0
- package/lib/commonjs/components/FollowButton.js +95 -0
- package/lib/commonjs/components/FollowButton.js.map +1 -0
- package/lib/commonjs/components/ForecastCallout.js +116 -0
- package/lib/commonjs/components/ForecastCallout.js.map +1 -0
- package/lib/commonjs/components/FormField.js +204 -0
- package/lib/commonjs/components/FormField.js.map +1 -0
- package/lib/commonjs/components/FunnelChart.js +260 -0
- package/lib/commonjs/components/FunnelChart.js.map +1 -0
- package/lib/commonjs/components/Gauge.js +252 -0
- package/lib/commonjs/components/Gauge.js.map +1 -0
- package/lib/commonjs/components/GradientText.js +136 -0
- package/lib/commonjs/components/GradientText.js.map +1 -0
- package/lib/commonjs/components/Heatmap.js +419 -0
- package/lib/commonjs/components/Heatmap.js.map +1 -0
- package/lib/commonjs/components/Highlight.js +55 -0
- package/lib/commonjs/components/Highlight.js.map +1 -0
- package/lib/commonjs/components/Hypnogram.js +842 -0
- package/lib/commonjs/components/Hypnogram.js.map +1 -0
- package/lib/commonjs/components/Icon.js +486 -0
- package/lib/commonjs/components/Icon.js.map +1 -0
- package/lib/commonjs/components/Input.js +142 -0
- package/lib/commonjs/components/Input.js.map +1 -0
- package/lib/commonjs/components/InsightCard.js +119 -0
- package/lib/commonjs/components/InsightCard.js.map +1 -0
- package/lib/commonjs/components/KeyValue.js +93 -0
- package/lib/commonjs/components/KeyValue.js.map +1 -0
- package/lib/commonjs/components/LeaderboardRow.js +140 -0
- package/lib/commonjs/components/LeaderboardRow.js.map +1 -0
- package/lib/commonjs/components/LineChart.js +1544 -0
- package/lib/commonjs/components/LineChart.js.map +1 -0
- package/lib/commonjs/components/ListRow.js +122 -0
- package/lib/commonjs/components/ListRow.js.map +1 -0
- package/lib/commonjs/components/Menu.js +183 -0
- package/lib/commonjs/components/Menu.js.map +1 -0
- package/lib/commonjs/components/MessageBubble.js +117 -0
- package/lib/commonjs/components/MessageBubble.js.map +1 -0
- package/lib/commonjs/components/MessageComposer.js +212 -0
- package/lib/commonjs/components/MessageComposer.js.map +1 -0
- package/lib/commonjs/components/MetaphorWidget.js +1053 -0
- package/lib/commonjs/components/MetaphorWidget.js.map +1 -0
- package/lib/commonjs/components/Meter.js +173 -0
- package/lib/commonjs/components/Meter.js.map +1 -0
- package/lib/commonjs/components/MetricTile.js +268 -0
- package/lib/commonjs/components/MetricTile.js.map +1 -0
- package/lib/commonjs/components/MiniRing.js +30 -0
- package/lib/commonjs/components/MiniRing.js.map +1 -0
- package/lib/commonjs/components/Modal.js +153 -0
- package/lib/commonjs/components/Modal.js.map +1 -0
- package/lib/commonjs/components/MuscleDiagram.js +326 -0
- package/lib/commonjs/components/MuscleDiagram.js.map +1 -0
- package/lib/commonjs/components/NoteField.js +73 -0
- package/lib/commonjs/components/NoteField.js.map +1 -0
- package/lib/commonjs/components/NotificationRow.js +234 -0
- package/lib/commonjs/components/NotificationRow.js.map +1 -0
- package/lib/commonjs/components/Pagination.js +212 -0
- package/lib/commonjs/components/Pagination.js.map +1 -0
- package/lib/commonjs/components/PasswordInput.js +120 -0
- package/lib/commonjs/components/PasswordInput.js.map +1 -0
- package/lib/commonjs/components/PasswordStrengthMeter.js +108 -0
- package/lib/commonjs/components/PasswordStrengthMeter.js.map +1 -0
- package/lib/commonjs/components/PendingPatternCard.js +182 -0
- package/lib/commonjs/components/PendingPatternCard.js.map +1 -0
- package/lib/commonjs/components/PhaseWheel.js +704 -0
- package/lib/commonjs/components/PhaseWheel.js.map +1 -0
- package/lib/commonjs/components/PkChart.js +566 -0
- package/lib/commonjs/components/PkChart.js.map +1 -0
- package/lib/commonjs/components/Popover.js +234 -0
- package/lib/commonjs/components/Popover.js.map +1 -0
- package/lib/commonjs/components/PrBadge.js +71 -0
- package/lib/commonjs/components/PrBadge.js.map +1 -0
- package/lib/commonjs/components/PrCard.js +150 -0
- package/lib/commonjs/components/PrCard.js.map +1 -0
- package/lib/commonjs/components/PricingTierCard.js +237 -0
- package/lib/commonjs/components/PricingTierCard.js.map +1 -0
- package/lib/commonjs/components/ProGate.js +235 -0
- package/lib/commonjs/components/ProGate.js.map +1 -0
- package/lib/commonjs/components/ProgressBar.js +515 -0
- package/lib/commonjs/components/ProgressBar.js.map +1 -0
- package/lib/commonjs/components/Pulse.js +36 -0
- package/lib/commonjs/components/Pulse.js.map +1 -0
- package/lib/commonjs/components/QRCode.js +519 -0
- package/lib/commonjs/components/QRCode.js.map +1 -0
- package/lib/commonjs/components/RadarChart.js +492 -0
- package/lib/commonjs/components/RadarChart.js.map +1 -0
- package/lib/commonjs/components/RangeBar.js +191 -0
- package/lib/commonjs/components/RangeBar.js.map +1 -0
- package/lib/commonjs/components/ReauthDialog.js +261 -0
- package/lib/commonjs/components/ReauthDialog.js.map +1 -0
- package/lib/commonjs/components/RestTimer.js +246 -0
- package/lib/commonjs/components/RestTimer.js.map +1 -0
- package/lib/commonjs/components/RichText.js +81 -0
- package/lib/commonjs/components/RichText.js.map +1 -0
- package/lib/commonjs/components/RichTextEditor.js +274 -0
- package/lib/commonjs/components/RichTextEditor.js.map +1 -0
- package/lib/commonjs/components/Ring.js +239 -0
- package/lib/commonjs/components/Ring.js.map +1 -0
- package/lib/commonjs/components/RoseChart.js +376 -0
- package/lib/commonjs/components/RoseChart.js.map +1 -0
- package/lib/commonjs/components/SankeyChart.js +652 -0
- package/lib/commonjs/components/SankeyChart.js.map +1 -0
- package/lib/commonjs/components/ScatterChart.js +432 -0
- package/lib/commonjs/components/ScatterChart.js.map +1 -0
- package/lib/commonjs/components/ScrollProgress.js +66 -0
- package/lib/commonjs/components/ScrollProgress.js.map +1 -0
- package/lib/commonjs/components/SectionDivider.js +59 -0
- package/lib/commonjs/components/SectionDivider.js.map +1 -0
- package/lib/commonjs/components/SectionHeader.js +53 -0
- package/lib/commonjs/components/SectionHeader.js.map +1 -0
- package/lib/commonjs/components/SegmentedTabs.js +336 -0
- package/lib/commonjs/components/SegmentedTabs.js.map +1 -0
- package/lib/commonjs/components/Select.js +380 -0
- package/lib/commonjs/components/Select.js.map +1 -0
- package/lib/commonjs/components/SessionBanner.js +220 -0
- package/lib/commonjs/components/SessionBanner.js.map +1 -0
- package/lib/commonjs/components/SessionChart.js +1046 -0
- package/lib/commonjs/components/SessionChart.js.map +1 -0
- package/lib/commonjs/components/SetTable.js +351 -0
- package/lib/commonjs/components/SetTable.js.map +1 -0
- package/lib/commonjs/components/ShareCard.js +227 -0
- package/lib/commonjs/components/ShareCard.js.map +1 -0
- package/lib/commonjs/components/Sheet.js +220 -0
- package/lib/commonjs/components/Sheet.js.map +1 -0
- package/lib/commonjs/components/Skeleton.js +28 -0
- package/lib/commonjs/components/Skeleton.js.map +1 -0
- package/lib/commonjs/components/Slider.js +173 -0
- package/lib/commonjs/components/Slider.js.map +1 -0
- package/lib/commonjs/components/Sortable.js +230 -0
- package/lib/commonjs/components/Sortable.js.map +1 -0
- package/lib/commonjs/components/SourceChip.js +111 -0
- package/lib/commonjs/components/SourceChip.js.map +1 -0
- package/lib/commonjs/components/Sparkline.js +110 -0
- package/lib/commonjs/components/Sparkline.js.map +1 -0
- package/lib/commonjs/components/Spinner.js +132 -0
- package/lib/commonjs/components/Spinner.js.map +1 -0
- package/lib/commonjs/components/SplitButton.js +158 -0
- package/lib/commonjs/components/SplitButton.js.map +1 -0
- package/lib/commonjs/components/SsoButton.js +109 -0
- package/lib/commonjs/components/SsoButton.js.map +1 -0
- package/lib/commonjs/components/StackedBar.js +133 -0
- package/lib/commonjs/components/StackedBar.js.map +1 -0
- package/lib/commonjs/components/Stat.js +167 -0
- package/lib/commonjs/components/Stat.js.map +1 -0
- package/lib/commonjs/components/StatTile.js +644 -0
- package/lib/commonjs/components/StatTile.js.map +1 -0
- package/lib/commonjs/components/StateLabel.js +73 -0
- package/lib/commonjs/components/StateLabel.js.map +1 -0
- package/lib/commonjs/components/StatusDot.js +65 -0
- package/lib/commonjs/components/StatusDot.js.map +1 -0
- package/lib/commonjs/components/Stepper.js +355 -0
- package/lib/commonjs/components/Stepper.js.map +1 -0
- package/lib/commonjs/components/SupplementChart.js +1002 -0
- package/lib/commonjs/components/SupplementChart.js.map +1 -0
- package/lib/commonjs/components/TabBar.js +303 -0
- package/lib/commonjs/components/TabBar.js.map +1 -0
- package/lib/commonjs/components/Table.js +458 -0
- package/lib/commonjs/components/Table.js.map +1 -0
- package/lib/commonjs/components/Tabs.js +88 -0
- package/lib/commonjs/components/Tabs.js.map +1 -0
- package/lib/commonjs/components/TagCloud.js +118 -0
- package/lib/commonjs/components/TagCloud.js.map +1 -0
- package/lib/commonjs/components/TagInput.js +298 -0
- package/lib/commonjs/components/TagInput.js.map +1 -0
- package/lib/commonjs/components/TemplateCard.js +206 -0
- package/lib/commonjs/components/TemplateCard.js.map +1 -0
- package/lib/commonjs/components/Timeline.js +219 -0
- package/lib/commonjs/components/Timeline.js.map +1 -0
- package/lib/commonjs/components/TimelineChart.js +1228 -0
- package/lib/commonjs/components/TimelineChart.js.map +1 -0
- package/lib/commonjs/components/Toast.js +156 -0
- package/lib/commonjs/components/Toast.js.map +1 -0
- package/lib/commonjs/components/Toggle.js +166 -0
- package/lib/commonjs/components/Toggle.js.map +1 -0
- package/lib/commonjs/components/Toolbar.js +310 -0
- package/lib/commonjs/components/Toolbar.js.map +1 -0
- package/lib/commonjs/components/Tooltip.js +245 -0
- package/lib/commonjs/components/Tooltip.js.map +1 -0
- package/lib/commonjs/components/TypingIndicator.js +112 -0
- package/lib/commonjs/components/TypingIndicator.js.map +1 -0
- package/lib/commonjs/components/UnitChart.js +482 -0
- package/lib/commonjs/components/UnitChart.js.map +1 -0
- package/lib/commonjs/components/VersionBadge.js +133 -0
- package/lib/commonjs/components/VersionBadge.js.map +1 -0
- package/lib/commonjs/components/VideoThumbnail.js +152 -0
- package/lib/commonjs/components/VideoThumbnail.js.map +1 -0
- package/lib/commonjs/components/VitalsStrip.js +766 -0
- package/lib/commonjs/components/VitalsStrip.js.map +1 -0
- package/lib/commonjs/components/WatchComplication.js +563 -0
- package/lib/commonjs/components/WatchComplication.js.map +1 -0
- package/lib/commonjs/components/ZoneBar.js +149 -0
- package/lib/commonjs/components/ZoneBar.js.map +1 -0
- package/lib/commonjs/components/ZonePyramid.js +398 -0
- package/lib/commonjs/components/ZonePyramid.js.map +1 -0
- package/lib/commonjs/index.js +1140 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/internal/optionalBlur.js +34 -0
- package/lib/commonjs/internal/optionalBlur.js.map +1 -0
- package/lib/commonjs/internal/optionalHaptics.js +40 -0
- package/lib/commonjs/internal/optionalHaptics.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/theme.js +73 -0
- package/lib/commonjs/theme.js.map +1 -0
- package/lib/module/components/Accordion.js +139 -0
- package/lib/module/components/Accordion.js.map +1 -0
- package/lib/module/components/AchievementBadge.js +223 -0
- package/lib/module/components/AchievementBadge.js.map +1 -0
- package/lib/module/components/Alert.js +227 -0
- package/lib/module/components/Alert.js.map +1 -0
- package/lib/module/components/AreaChart.js +501 -0
- package/lib/module/components/AreaChart.js.map +1 -0
- package/lib/module/components/AuroraBackground.js +262 -0
- package/lib/module/components/AuroraBackground.js.map +1 -0
- package/lib/module/components/Avatar.js +183 -0
- package/lib/module/components/Avatar.js.map +1 -0
- package/lib/module/components/AvatarStack.js +91 -0
- package/lib/module/components/AvatarStack.js.map +1 -0
- package/lib/module/components/BackLink.js +73 -0
- package/lib/module/components/BackLink.js.map +1 -0
- package/lib/module/components/Badge.js +132 -0
- package/lib/module/components/Badge.js.map +1 -0
- package/lib/module/components/BarChart.js +636 -0
- package/lib/module/components/BarChart.js.map +1 -0
- package/lib/module/components/BarFill.js +51 -0
- package/lib/module/components/BarFill.js.map +1 -0
- package/lib/module/components/BeeswarmChart.js +610 -0
- package/lib/module/components/BeeswarmChart.js.map +1 -0
- package/lib/module/components/BiomarkerRange.js +605 -0
- package/lib/module/components/BiomarkerRange.js.map +1 -0
- package/lib/module/components/BodyBattery.js +558 -0
- package/lib/module/components/BodyBattery.js.map +1 -0
- package/lib/module/components/BrandMark.js +179 -0
- package/lib/module/components/BrandMark.js.map +1 -0
- package/lib/module/components/BulletChart.js +401 -0
- package/lib/module/components/BulletChart.js.map +1 -0
- package/lib/module/components/Button.js +150 -0
- package/lib/module/components/Button.js.map +1 -0
- package/lib/module/components/CaffeineClock.js +486 -0
- package/lib/module/components/CaffeineClock.js.map +1 -0
- package/lib/module/components/Card.js +138 -0
- package/lib/module/components/Card.js.map +1 -0
- package/lib/module/components/CharCounter.js +102 -0
- package/lib/module/components/CharCounter.js.map +1 -0
- package/lib/module/components/ChartState.js +549 -0
- package/lib/module/components/ChartState.js.map +1 -0
- package/lib/module/components/Checkbox.js +175 -0
- package/lib/module/components/Checkbox.js.map +1 -0
- package/lib/module/components/Chip.js +214 -0
- package/lib/module/components/Chip.js.map +1 -0
- package/lib/module/components/ChoiceChip.js +129 -0
- package/lib/module/components/ChoiceChip.js.map +1 -0
- package/lib/module/components/CodeBlock.js +122 -0
- package/lib/module/components/CodeBlock.js.map +1 -0
- package/lib/module/components/CodeField.js +125 -0
- package/lib/module/components/CodeField.js.map +1 -0
- package/lib/module/components/ColorPicker.js +177 -0
- package/lib/module/components/ColorPicker.js.map +1 -0
- package/lib/module/components/ComboChart.js +414 -0
- package/lib/module/components/ComboChart.js.map +1 -0
- package/lib/module/components/Combobox.js +104 -0
- package/lib/module/components/Combobox.js.map +1 -0
- package/lib/module/components/CompareChart.js +622 -0
- package/lib/module/components/CompareChart.js.map +1 -0
- package/lib/module/components/CompositeChart.js +649 -0
- package/lib/module/components/CompositeChart.js.map +1 -0
- package/lib/module/components/Countdown.js +148 -0
- package/lib/module/components/Countdown.js.map +1 -0
- package/lib/module/components/CreditCardVisual.js +163 -0
- package/lib/module/components/CreditCardVisual.js.map +1 -0
- package/lib/module/components/DateField.js +361 -0
- package/lib/module/components/DateField.js.map +1 -0
- package/lib/module/components/DayTimelineBlocks.js +249 -0
- package/lib/module/components/DayTimelineBlocks.js.map +1 -0
- package/lib/module/components/DayWheel.js +462 -0
- package/lib/module/components/DayWheel.js.map +1 -0
- package/lib/module/components/DeltaPill.js +149 -0
- package/lib/module/components/DeltaPill.js.map +1 -0
- package/lib/module/components/DistributionChart.js +771 -0
- package/lib/module/components/DistributionChart.js.map +1 -0
- package/lib/module/components/Divider.js +70 -0
- package/lib/module/components/Divider.js.map +1 -0
- package/lib/module/components/DonutChart.js +332 -0
- package/lib/module/components/DonutChart.js.map +1 -0
- package/lib/module/components/DotsLoader.js +90 -0
- package/lib/module/components/DotsLoader.js.map +1 -0
- package/lib/module/components/EffectAttributionLine.js +101 -0
- package/lib/module/components/EffectAttributionLine.js.map +1 -0
- package/lib/module/components/EmptyState.js +115 -0
- package/lib/module/components/EmptyState.js.map +1 -0
- package/lib/module/components/EngagementBar.js +118 -0
- package/lib/module/components/EngagementBar.js.map +1 -0
- package/lib/module/components/EnvironmentChart.js +568 -0
- package/lib/module/components/EnvironmentChart.js.map +1 -0
- package/lib/module/components/Eyebrow.js +28 -0
- package/lib/module/components/Eyebrow.js.map +1 -0
- package/lib/module/components/FocalPointPicker.js +192 -0
- package/lib/module/components/FocalPointPicker.js.map +1 -0
- package/lib/module/components/FollowButton.js +91 -0
- package/lib/module/components/FollowButton.js.map +1 -0
- package/lib/module/components/ForecastCallout.js +112 -0
- package/lib/module/components/ForecastCallout.js.map +1 -0
- package/lib/module/components/FormField.js +198 -0
- package/lib/module/components/FormField.js.map +1 -0
- package/lib/module/components/FunnelChart.js +255 -0
- package/lib/module/components/FunnelChart.js.map +1 -0
- package/lib/module/components/Gauge.js +249 -0
- package/lib/module/components/Gauge.js.map +1 -0
- package/lib/module/components/GradientText.js +130 -0
- package/lib/module/components/GradientText.js.map +1 -0
- package/lib/module/components/Heatmap.js +414 -0
- package/lib/module/components/Heatmap.js.map +1 -0
- package/lib/module/components/Highlight.js +51 -0
- package/lib/module/components/Highlight.js.map +1 -0
- package/lib/module/components/Hypnogram.js +837 -0
- package/lib/module/components/Hypnogram.js.map +1 -0
- package/lib/module/components/Icon.js +480 -0
- package/lib/module/components/Icon.js.map +1 -0
- package/lib/module/components/Input.js +138 -0
- package/lib/module/components/Input.js.map +1 -0
- package/lib/module/components/InsightCard.js +115 -0
- package/lib/module/components/InsightCard.js.map +1 -0
- package/lib/module/components/KeyValue.js +89 -0
- package/lib/module/components/KeyValue.js.map +1 -0
- package/lib/module/components/LeaderboardRow.js +136 -0
- package/lib/module/components/LeaderboardRow.js.map +1 -0
- package/lib/module/components/LineChart.js +1539 -0
- package/lib/module/components/LineChart.js.map +1 -0
- package/lib/module/components/ListRow.js +118 -0
- package/lib/module/components/ListRow.js.map +1 -0
- package/lib/module/components/Menu.js +179 -0
- package/lib/module/components/Menu.js.map +1 -0
- package/lib/module/components/MessageBubble.js +113 -0
- package/lib/module/components/MessageBubble.js.map +1 -0
- package/lib/module/components/MessageComposer.js +208 -0
- package/lib/module/components/MessageComposer.js.map +1 -0
- package/lib/module/components/MetaphorWidget.js +1048 -0
- package/lib/module/components/MetaphorWidget.js.map +1 -0
- package/lib/module/components/Meter.js +169 -0
- package/lib/module/components/Meter.js.map +1 -0
- package/lib/module/components/MetricTile.js +263 -0
- package/lib/module/components/MetricTile.js.map +1 -0
- package/lib/module/components/MiniRing.js +26 -0
- package/lib/module/components/MiniRing.js.map +1 -0
- package/lib/module/components/Modal.js +148 -0
- package/lib/module/components/Modal.js.map +1 -0
- package/lib/module/components/MuscleDiagram.js +321 -0
- package/lib/module/components/MuscleDiagram.js.map +1 -0
- package/lib/module/components/NoteField.js +69 -0
- package/lib/module/components/NoteField.js.map +1 -0
- package/lib/module/components/NotificationRow.js +230 -0
- package/lib/module/components/NotificationRow.js.map +1 -0
- package/lib/module/components/Pagination.js +207 -0
- package/lib/module/components/Pagination.js.map +1 -0
- package/lib/module/components/PasswordInput.js +116 -0
- package/lib/module/components/PasswordInput.js.map +1 -0
- package/lib/module/components/PasswordStrengthMeter.js +104 -0
- package/lib/module/components/PasswordStrengthMeter.js.map +1 -0
- package/lib/module/components/PendingPatternCard.js +178 -0
- package/lib/module/components/PendingPatternCard.js.map +1 -0
- package/lib/module/components/PhaseWheel.js +699 -0
- package/lib/module/components/PhaseWheel.js.map +1 -0
- package/lib/module/components/PkChart.js +558 -0
- package/lib/module/components/PkChart.js.map +1 -0
- package/lib/module/components/Popover.js +230 -0
- package/lib/module/components/Popover.js.map +1 -0
- package/lib/module/components/PrBadge.js +66 -0
- package/lib/module/components/PrBadge.js.map +1 -0
- package/lib/module/components/PrCard.js +146 -0
- package/lib/module/components/PrCard.js.map +1 -0
- package/lib/module/components/PricingTierCard.js +233 -0
- package/lib/module/components/PricingTierCard.js.map +1 -0
- package/lib/module/components/ProGate.js +229 -0
- package/lib/module/components/ProGate.js.map +1 -0
- package/lib/module/components/ProgressBar.js +511 -0
- package/lib/module/components/ProgressBar.js.map +1 -0
- package/lib/module/components/Pulse.js +32 -0
- package/lib/module/components/Pulse.js.map +1 -0
- package/lib/module/components/QRCode.js +514 -0
- package/lib/module/components/QRCode.js.map +1 -0
- package/lib/module/components/RadarChart.js +487 -0
- package/lib/module/components/RadarChart.js.map +1 -0
- package/lib/module/components/RangeBar.js +187 -0
- package/lib/module/components/RangeBar.js.map +1 -0
- package/lib/module/components/ReauthDialog.js +256 -0
- package/lib/module/components/ReauthDialog.js.map +1 -0
- package/lib/module/components/RestTimer.js +239 -0
- package/lib/module/components/RestTimer.js.map +1 -0
- package/lib/module/components/RichText.js +77 -0
- package/lib/module/components/RichText.js.map +1 -0
- package/lib/module/components/RichTextEditor.js +269 -0
- package/lib/module/components/RichTextEditor.js.map +1 -0
- package/lib/module/components/Ring.js +236 -0
- package/lib/module/components/Ring.js.map +1 -0
- package/lib/module/components/RoseChart.js +371 -0
- package/lib/module/components/RoseChart.js.map +1 -0
- package/lib/module/components/SankeyChart.js +647 -0
- package/lib/module/components/SankeyChart.js.map +1 -0
- package/lib/module/components/ScatterChart.js +427 -0
- package/lib/module/components/ScatterChart.js.map +1 -0
- package/lib/module/components/ScrollProgress.js +62 -0
- package/lib/module/components/ScrollProgress.js.map +1 -0
- package/lib/module/components/SectionDivider.js +55 -0
- package/lib/module/components/SectionDivider.js.map +1 -0
- package/lib/module/components/SectionHeader.js +49 -0
- package/lib/module/components/SectionHeader.js.map +1 -0
- package/lib/module/components/SegmentedTabs.js +332 -0
- package/lib/module/components/SegmentedTabs.js.map +1 -0
- package/lib/module/components/Select.js +375 -0
- package/lib/module/components/Select.js.map +1 -0
- package/lib/module/components/SessionBanner.js +216 -0
- package/lib/module/components/SessionBanner.js.map +1 -0
- package/lib/module/components/SessionChart.js +1040 -0
- package/lib/module/components/SessionChart.js.map +1 -0
- package/lib/module/components/SetTable.js +345 -0
- package/lib/module/components/SetTable.js.map +1 -0
- package/lib/module/components/ShareCard.js +223 -0
- package/lib/module/components/ShareCard.js.map +1 -0
- package/lib/module/components/Sheet.js +216 -0
- package/lib/module/components/Sheet.js.map +1 -0
- package/lib/module/components/Skeleton.js +24 -0
- package/lib/module/components/Skeleton.js.map +1 -0
- package/lib/module/components/Slider.js +169 -0
- package/lib/module/components/Slider.js.map +1 -0
- package/lib/module/components/Sortable.js +226 -0
- package/lib/module/components/Sortable.js.map +1 -0
- package/lib/module/components/SourceChip.js +107 -0
- package/lib/module/components/SourceChip.js.map +1 -0
- package/lib/module/components/Sparkline.js +105 -0
- package/lib/module/components/Sparkline.js.map +1 -0
- package/lib/module/components/Spinner.js +127 -0
- package/lib/module/components/Spinner.js.map +1 -0
- package/lib/module/components/SplitButton.js +154 -0
- package/lib/module/components/SplitButton.js.map +1 -0
- package/lib/module/components/SsoButton.js +104 -0
- package/lib/module/components/SsoButton.js.map +1 -0
- package/lib/module/components/StackedBar.js +129 -0
- package/lib/module/components/StackedBar.js.map +1 -0
- package/lib/module/components/Stat.js +163 -0
- package/lib/module/components/Stat.js.map +1 -0
- package/lib/module/components/StatTile.js +639 -0
- package/lib/module/components/StatTile.js.map +1 -0
- package/lib/module/components/StateLabel.js +69 -0
- package/lib/module/components/StateLabel.js.map +1 -0
- package/lib/module/components/StatusDot.js +61 -0
- package/lib/module/components/StatusDot.js.map +1 -0
- package/lib/module/components/Stepper.js +350 -0
- package/lib/module/components/Stepper.js.map +1 -0
- package/lib/module/components/SupplementChart.js +997 -0
- package/lib/module/components/SupplementChart.js.map +1 -0
- package/lib/module/components/TabBar.js +298 -0
- package/lib/module/components/TabBar.js.map +1 -0
- package/lib/module/components/Table.js +452 -0
- package/lib/module/components/Table.js.map +1 -0
- package/lib/module/components/Tabs.js +84 -0
- package/lib/module/components/Tabs.js.map +1 -0
- package/lib/module/components/TagCloud.js +113 -0
- package/lib/module/components/TagCloud.js.map +1 -0
- package/lib/module/components/TagInput.js +291 -0
- package/lib/module/components/TagInput.js.map +1 -0
- package/lib/module/components/TemplateCard.js +202 -0
- package/lib/module/components/TemplateCard.js.map +1 -0
- package/lib/module/components/Timeline.js +214 -0
- package/lib/module/components/Timeline.js.map +1 -0
- package/lib/module/components/TimelineChart.js +1223 -0
- package/lib/module/components/TimelineChart.js.map +1 -0
- package/lib/module/components/Toast.js +151 -0
- package/lib/module/components/Toast.js.map +1 -0
- package/lib/module/components/Toggle.js +162 -0
- package/lib/module/components/Toggle.js.map +1 -0
- package/lib/module/components/Toolbar.js +306 -0
- package/lib/module/components/Toolbar.js.map +1 -0
- package/lib/module/components/Tooltip.js +241 -0
- package/lib/module/components/Tooltip.js.map +1 -0
- package/lib/module/components/TypingIndicator.js +108 -0
- package/lib/module/components/TypingIndicator.js.map +1 -0
- package/lib/module/components/UnitChart.js +477 -0
- package/lib/module/components/UnitChart.js.map +1 -0
- package/lib/module/components/VersionBadge.js +129 -0
- package/lib/module/components/VersionBadge.js.map +1 -0
- package/lib/module/components/VideoThumbnail.js +147 -0
- package/lib/module/components/VideoThumbnail.js.map +1 -0
- package/lib/module/components/VitalsStrip.js +761 -0
- package/lib/module/components/VitalsStrip.js.map +1 -0
- package/lib/module/components/WatchComplication.js +558 -0
- package/lib/module/components/WatchComplication.js.map +1 -0
- package/lib/module/components/ZoneBar.js +145 -0
- package/lib/module/components/ZoneBar.js.map +1 -0
- package/lib/module/components/ZonePyramid.js +393 -0
- package/lib/module/components/ZonePyramid.js.map +1 -0
- package/lib/module/index.js +166 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/internal/optionalBlur.js +30 -0
- package/lib/module/internal/optionalBlur.js.map +1 -0
- package/lib/module/internal/optionalHaptics.js +34 -0
- package/lib/module/internal/optionalHaptics.js.map +1 -0
- package/lib/module/theme.js +6 -0
- package/lib/module/theme.js.map +1 -0
- package/lib/typescript/components/Accordion.d.ts +20 -0
- package/lib/typescript/components/Accordion.d.ts.map +1 -0
- package/lib/typescript/components/AchievementBadge.d.ts +29 -0
- package/lib/typescript/components/AchievementBadge.d.ts.map +1 -0
- package/lib/typescript/components/Alert.d.ts +18 -0
- package/lib/typescript/components/Alert.d.ts.map +1 -0
- package/lib/typescript/components/AreaChart.d.ts +58 -0
- package/lib/typescript/components/AreaChart.d.ts.map +1 -0
- package/lib/typescript/components/AuroraBackground.d.ts +24 -0
- package/lib/typescript/components/AuroraBackground.d.ts.map +1 -0
- package/lib/typescript/components/Avatar.d.ts +38 -0
- package/lib/typescript/components/Avatar.d.ts.map +1 -0
- package/lib/typescript/components/AvatarStack.d.ts +26 -0
- package/lib/typescript/components/AvatarStack.d.ts.map +1 -0
- package/lib/typescript/components/BackLink.d.ts +20 -0
- package/lib/typescript/components/BackLink.d.ts.map +1 -0
- package/lib/typescript/components/Badge.d.ts +12 -0
- package/lib/typescript/components/Badge.d.ts.map +1 -0
- package/lib/typescript/components/BarChart.d.ts +83 -0
- package/lib/typescript/components/BarChart.d.ts.map +1 -0
- package/lib/typescript/components/BarFill.d.ts +15 -0
- package/lib/typescript/components/BarFill.d.ts.map +1 -0
- package/lib/typescript/components/BeeswarmChart.d.ts +71 -0
- package/lib/typescript/components/BeeswarmChart.d.ts.map +1 -0
- package/lib/typescript/components/BiomarkerRange.d.ts +64 -0
- package/lib/typescript/components/BiomarkerRange.d.ts.map +1 -0
- package/lib/typescript/components/BodyBattery.d.ts +70 -0
- package/lib/typescript/components/BodyBattery.d.ts.map +1 -0
- package/lib/typescript/components/BrandMark.d.ts +10 -0
- package/lib/typescript/components/BrandMark.d.ts.map +1 -0
- package/lib/typescript/components/BulletChart.d.ts +61 -0
- package/lib/typescript/components/BulletChart.d.ts.map +1 -0
- package/lib/typescript/components/Button.d.ts +27 -0
- package/lib/typescript/components/Button.d.ts.map +1 -0
- package/lib/typescript/components/CaffeineClock.d.ts +64 -0
- package/lib/typescript/components/CaffeineClock.d.ts.map +1 -0
- package/lib/typescript/components/Card.d.ts +23 -0
- package/lib/typescript/components/Card.d.ts.map +1 -0
- package/lib/typescript/components/CharCounter.d.ts +30 -0
- package/lib/typescript/components/CharCounter.d.ts.map +1 -0
- package/lib/typescript/components/ChartState.d.ts +58 -0
- package/lib/typescript/components/ChartState.d.ts.map +1 -0
- package/lib/typescript/components/Checkbox.d.ts +44 -0
- package/lib/typescript/components/Checkbox.d.ts.map +1 -0
- package/lib/typescript/components/Chip.d.ts +17 -0
- package/lib/typescript/components/Chip.d.ts.map +1 -0
- package/lib/typescript/components/ChoiceChip.d.ts +31 -0
- package/lib/typescript/components/ChoiceChip.d.ts.map +1 -0
- package/lib/typescript/components/CodeBlock.d.ts +18 -0
- package/lib/typescript/components/CodeBlock.d.ts.map +1 -0
- package/lib/typescript/components/CodeField.d.ts +22 -0
- package/lib/typescript/components/CodeField.d.ts.map +1 -0
- package/lib/typescript/components/ColorPicker.d.ts +20 -0
- package/lib/typescript/components/ColorPicker.d.ts.map +1 -0
- package/lib/typescript/components/ComboChart.d.ts +56 -0
- package/lib/typescript/components/ComboChart.d.ts.map +1 -0
- package/lib/typescript/components/Combobox.d.ts +39 -0
- package/lib/typescript/components/Combobox.d.ts.map +1 -0
- package/lib/typescript/components/CompareChart.d.ts +80 -0
- package/lib/typescript/components/CompareChart.d.ts.map +1 -0
- package/lib/typescript/components/CompositeChart.d.ts +83 -0
- package/lib/typescript/components/CompositeChart.d.ts.map +1 -0
- package/lib/typescript/components/Countdown.d.ts +28 -0
- package/lib/typescript/components/Countdown.d.ts.map +1 -0
- package/lib/typescript/components/CreditCardVisual.d.ts +26 -0
- package/lib/typescript/components/CreditCardVisual.d.ts.map +1 -0
- package/lib/typescript/components/DateField.d.ts +39 -0
- package/lib/typescript/components/DateField.d.ts.map +1 -0
- package/lib/typescript/components/DayTimelineBlocks.d.ts +40 -0
- package/lib/typescript/components/DayTimelineBlocks.d.ts.map +1 -0
- package/lib/typescript/components/DayWheel.d.ts +70 -0
- package/lib/typescript/components/DayWheel.d.ts.map +1 -0
- package/lib/typescript/components/DeltaPill.d.ts +22 -0
- package/lib/typescript/components/DeltaPill.d.ts.map +1 -0
- package/lib/typescript/components/DistributionChart.d.ts +94 -0
- package/lib/typescript/components/DistributionChart.d.ts.map +1 -0
- package/lib/typescript/components/Divider.d.ts +16 -0
- package/lib/typescript/components/Divider.d.ts.map +1 -0
- package/lib/typescript/components/DonutChart.d.ts +70 -0
- package/lib/typescript/components/DonutChart.d.ts.map +1 -0
- package/lib/typescript/components/DotsLoader.d.ts +19 -0
- package/lib/typescript/components/DotsLoader.d.ts.map +1 -0
- package/lib/typescript/components/EffectAttributionLine.d.ts +24 -0
- package/lib/typescript/components/EffectAttributionLine.d.ts.map +1 -0
- package/lib/typescript/components/EmptyState.d.ts +17 -0
- package/lib/typescript/components/EmptyState.d.ts.map +1 -0
- package/lib/typescript/components/EngagementBar.d.ts +23 -0
- package/lib/typescript/components/EngagementBar.d.ts.map +1 -0
- package/lib/typescript/components/EnvironmentChart.d.ts +89 -0
- package/lib/typescript/components/EnvironmentChart.d.ts.map +1 -0
- package/lib/typescript/components/Eyebrow.d.ts +7 -0
- package/lib/typescript/components/Eyebrow.d.ts.map +1 -0
- package/lib/typescript/components/FocalPointPicker.d.ts +31 -0
- package/lib/typescript/components/FocalPointPicker.d.ts.map +1 -0
- package/lib/typescript/components/FollowButton.d.ts +21 -0
- package/lib/typescript/components/FollowButton.d.ts.map +1 -0
- package/lib/typescript/components/ForecastCallout.d.ts +21 -0
- package/lib/typescript/components/ForecastCallout.d.ts.map +1 -0
- package/lib/typescript/components/FormField.d.ts +32 -0
- package/lib/typescript/components/FormField.d.ts.map +1 -0
- package/lib/typescript/components/FunnelChart.d.ts +46 -0
- package/lib/typescript/components/FunnelChart.d.ts.map +1 -0
- package/lib/typescript/components/Gauge.d.ts +70 -0
- package/lib/typescript/components/Gauge.d.ts.map +1 -0
- package/lib/typescript/components/GradientText.d.ts +21 -0
- package/lib/typescript/components/GradientText.d.ts.map +1 -0
- package/lib/typescript/components/Heatmap.d.ts +87 -0
- package/lib/typescript/components/Heatmap.d.ts.map +1 -0
- package/lib/typescript/components/Highlight.d.ts +11 -0
- package/lib/typescript/components/Highlight.d.ts.map +1 -0
- package/lib/typescript/components/Hypnogram.d.ts +94 -0
- package/lib/typescript/components/Hypnogram.d.ts.map +1 -0
- package/lib/typescript/components/Icon.d.ts +30 -0
- package/lib/typescript/components/Icon.d.ts.map +1 -0
- package/lib/typescript/components/Input.d.ts +25 -0
- package/lib/typescript/components/Input.d.ts.map +1 -0
- package/lib/typescript/components/InsightCard.d.ts +37 -0
- package/lib/typescript/components/InsightCard.d.ts.map +1 -0
- package/lib/typescript/components/KeyValue.d.ts +18 -0
- package/lib/typescript/components/KeyValue.d.ts.map +1 -0
- package/lib/typescript/components/LeaderboardRow.d.ts +31 -0
- package/lib/typescript/components/LeaderboardRow.d.ts.map +1 -0
- package/lib/typescript/components/LineChart.d.ts +166 -0
- package/lib/typescript/components/LineChart.d.ts.map +1 -0
- package/lib/typescript/components/ListRow.d.ts +37 -0
- package/lib/typescript/components/ListRow.d.ts.map +1 -0
- package/lib/typescript/components/Menu.d.ts +28 -0
- package/lib/typescript/components/Menu.d.ts.map +1 -0
- package/lib/typescript/components/MessageBubble.d.ts +20 -0
- package/lib/typescript/components/MessageBubble.d.ts.map +1 -0
- package/lib/typescript/components/MessageComposer.d.ts +20 -0
- package/lib/typescript/components/MessageComposer.d.ts.map +1 -0
- package/lib/typescript/components/MetaphorWidget.d.ts +107 -0
- package/lib/typescript/components/MetaphorWidget.d.ts.map +1 -0
- package/lib/typescript/components/Meter.d.ts +34 -0
- package/lib/typescript/components/Meter.d.ts.map +1 -0
- package/lib/typescript/components/MetricTile.d.ts +43 -0
- package/lib/typescript/components/MetricTile.d.ts.map +1 -0
- package/lib/typescript/components/MiniRing.d.ts +9 -0
- package/lib/typescript/components/MiniRing.d.ts.map +1 -0
- package/lib/typescript/components/Modal.d.ts +19 -0
- package/lib/typescript/components/Modal.d.ts.map +1 -0
- package/lib/typescript/components/MuscleDiagram.d.ts +37 -0
- package/lib/typescript/components/MuscleDiagram.d.ts.map +1 -0
- package/lib/typescript/components/NoteField.d.ts +9 -0
- package/lib/typescript/components/NoteField.d.ts.map +1 -0
- package/lib/typescript/components/NotificationRow.d.ts +36 -0
- package/lib/typescript/components/NotificationRow.d.ts.map +1 -0
- package/lib/typescript/components/Pagination.d.ts +22 -0
- package/lib/typescript/components/Pagination.d.ts.map +1 -0
- package/lib/typescript/components/PasswordInput.d.ts +24 -0
- package/lib/typescript/components/PasswordInput.d.ts.map +1 -0
- package/lib/typescript/components/PasswordStrengthMeter.d.ts +18 -0
- package/lib/typescript/components/PasswordStrengthMeter.d.ts.map +1 -0
- package/lib/typescript/components/PendingPatternCard.d.ts +27 -0
- package/lib/typescript/components/PendingPatternCard.d.ts.map +1 -0
- package/lib/typescript/components/PhaseWheel.d.ts +103 -0
- package/lib/typescript/components/PhaseWheel.d.ts.map +1 -0
- package/lib/typescript/components/PkChart.d.ts +67 -0
- package/lib/typescript/components/PkChart.d.ts.map +1 -0
- package/lib/typescript/components/Popover.d.ts +27 -0
- package/lib/typescript/components/Popover.d.ts.map +1 -0
- package/lib/typescript/components/PrBadge.d.ts +21 -0
- package/lib/typescript/components/PrBadge.d.ts.map +1 -0
- package/lib/typescript/components/PrCard.d.ts +29 -0
- package/lib/typescript/components/PrCard.d.ts.map +1 -0
- package/lib/typescript/components/PricingTierCard.d.ts +46 -0
- package/lib/typescript/components/PricingTierCard.d.ts.map +1 -0
- package/lib/typescript/components/ProGate.d.ts +26 -0
- package/lib/typescript/components/ProGate.d.ts.map +1 -0
- package/lib/typescript/components/ProgressBar.d.ts +60 -0
- package/lib/typescript/components/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/components/Pulse.d.ts +8 -0
- package/lib/typescript/components/Pulse.d.ts.map +1 -0
- package/lib/typescript/components/QRCode.d.ts +17 -0
- package/lib/typescript/components/QRCode.d.ts.map +1 -0
- package/lib/typescript/components/RadarChart.d.ts +59 -0
- package/lib/typescript/components/RadarChart.d.ts.map +1 -0
- package/lib/typescript/components/RangeBar.d.ts +38 -0
- package/lib/typescript/components/RangeBar.d.ts.map +1 -0
- package/lib/typescript/components/ReauthDialog.d.ts +44 -0
- package/lib/typescript/components/ReauthDialog.d.ts.map +1 -0
- package/lib/typescript/components/RestTimer.d.ts +45 -0
- package/lib/typescript/components/RestTimer.d.ts.map +1 -0
- package/lib/typescript/components/RichText.d.ts +26 -0
- package/lib/typescript/components/RichText.d.ts.map +1 -0
- package/lib/typescript/components/RichTextEditor.d.ts +25 -0
- package/lib/typescript/components/RichTextEditor.d.ts.map +1 -0
- package/lib/typescript/components/Ring.d.ts +63 -0
- package/lib/typescript/components/Ring.d.ts.map +1 -0
- package/lib/typescript/components/RoseChart.d.ts +54 -0
- package/lib/typescript/components/RoseChart.d.ts.map +1 -0
- package/lib/typescript/components/SankeyChart.d.ts +93 -0
- package/lib/typescript/components/SankeyChart.d.ts.map +1 -0
- package/lib/typescript/components/ScatterChart.d.ts +59 -0
- package/lib/typescript/components/ScatterChart.d.ts.map +1 -0
- package/lib/typescript/components/ScrollProgress.d.ts +24 -0
- package/lib/typescript/components/ScrollProgress.d.ts.map +1 -0
- package/lib/typescript/components/SectionDivider.d.ts +18 -0
- package/lib/typescript/components/SectionDivider.d.ts.map +1 -0
- package/lib/typescript/components/SectionHeader.d.ts +18 -0
- package/lib/typescript/components/SectionHeader.d.ts.map +1 -0
- package/lib/typescript/components/SegmentedTabs.d.ts +85 -0
- package/lib/typescript/components/SegmentedTabs.d.ts.map +1 -0
- package/lib/typescript/components/Select.d.ts +47 -0
- package/lib/typescript/components/Select.d.ts.map +1 -0
- package/lib/typescript/components/SessionBanner.d.ts +45 -0
- package/lib/typescript/components/SessionBanner.d.ts.map +1 -0
- package/lib/typescript/components/SessionChart.d.ts +130 -0
- package/lib/typescript/components/SessionChart.d.ts.map +1 -0
- package/lib/typescript/components/SetTable.d.ts +58 -0
- package/lib/typescript/components/SetTable.d.ts.map +1 -0
- package/lib/typescript/components/ShareCard.d.ts +40 -0
- package/lib/typescript/components/ShareCard.d.ts.map +1 -0
- package/lib/typescript/components/Sheet.d.ts +22 -0
- package/lib/typescript/components/Sheet.d.ts.map +1 -0
- package/lib/typescript/components/Skeleton.d.ts +9 -0
- package/lib/typescript/components/Skeleton.d.ts.map +1 -0
- package/lib/typescript/components/Slider.d.ts +27 -0
- package/lib/typescript/components/Slider.d.ts.map +1 -0
- package/lib/typescript/components/Sortable.d.ts +25 -0
- package/lib/typescript/components/Sortable.d.ts.map +1 -0
- package/lib/typescript/components/SourceChip.d.ts +24 -0
- package/lib/typescript/components/SourceChip.d.ts.map +1 -0
- package/lib/typescript/components/Sparkline.d.ts +28 -0
- package/lib/typescript/components/Sparkline.d.ts.map +1 -0
- package/lib/typescript/components/Spinner.d.ts +23 -0
- package/lib/typescript/components/Spinner.d.ts.map +1 -0
- package/lib/typescript/components/SplitButton.d.ts +21 -0
- package/lib/typescript/components/SplitButton.d.ts.map +1 -0
- package/lib/typescript/components/SsoButton.d.ts +10 -0
- package/lib/typescript/components/SsoButton.d.ts.map +1 -0
- package/lib/typescript/components/StackedBar.d.ts +32 -0
- package/lib/typescript/components/StackedBar.d.ts.map +1 -0
- package/lib/typescript/components/Stat.d.ts +33 -0
- package/lib/typescript/components/Stat.d.ts.map +1 -0
- package/lib/typescript/components/StatTile.d.ts +90 -0
- package/lib/typescript/components/StatTile.d.ts.map +1 -0
- package/lib/typescript/components/StateLabel.d.ts +12 -0
- package/lib/typescript/components/StateLabel.d.ts.map +1 -0
- package/lib/typescript/components/StatusDot.d.ts +13 -0
- package/lib/typescript/components/StatusDot.d.ts.map +1 -0
- package/lib/typescript/components/Stepper.d.ts +47 -0
- package/lib/typescript/components/Stepper.d.ts.map +1 -0
- package/lib/typescript/components/SupplementChart.d.ts +121 -0
- package/lib/typescript/components/SupplementChart.d.ts.map +1 -0
- package/lib/typescript/components/TabBar.d.ts +52 -0
- package/lib/typescript/components/TabBar.d.ts.map +1 -0
- package/lib/typescript/components/Table.d.ts +64 -0
- package/lib/typescript/components/Table.d.ts.map +1 -0
- package/lib/typescript/components/Tabs.d.ts +16 -0
- package/lib/typescript/components/Tabs.d.ts.map +1 -0
- package/lib/typescript/components/TagCloud.d.ts +31 -0
- package/lib/typescript/components/TagCloud.d.ts.map +1 -0
- package/lib/typescript/components/TagInput.d.ts +37 -0
- package/lib/typescript/components/TagInput.d.ts.map +1 -0
- package/lib/typescript/components/TemplateCard.d.ts +43 -0
- package/lib/typescript/components/TemplateCard.d.ts.map +1 -0
- package/lib/typescript/components/Timeline.d.ts +18 -0
- package/lib/typescript/components/Timeline.d.ts.map +1 -0
- package/lib/typescript/components/TimelineChart.d.ts +124 -0
- package/lib/typescript/components/TimelineChart.d.ts.map +1 -0
- package/lib/typescript/components/Toast.d.ts +18 -0
- package/lib/typescript/components/Toast.d.ts.map +1 -0
- package/lib/typescript/components/Toggle.d.ts +22 -0
- package/lib/typescript/components/Toggle.d.ts.map +1 -0
- package/lib/typescript/components/Toolbar.d.ts +48 -0
- package/lib/typescript/components/Toolbar.d.ts.map +1 -0
- package/lib/typescript/components/Tooltip.d.ts +16 -0
- package/lib/typescript/components/Tooltip.d.ts.map +1 -0
- package/lib/typescript/components/TypingIndicator.d.ts +16 -0
- package/lib/typescript/components/TypingIndicator.d.ts.map +1 -0
- package/lib/typescript/components/UnitChart.d.ts +84 -0
- package/lib/typescript/components/UnitChart.d.ts.map +1 -0
- package/lib/typescript/components/VersionBadge.d.ts +17 -0
- package/lib/typescript/components/VersionBadge.d.ts.map +1 -0
- package/lib/typescript/components/VideoThumbnail.d.ts +24 -0
- package/lib/typescript/components/VideoThumbnail.d.ts.map +1 -0
- package/lib/typescript/components/VitalsStrip.d.ts +53 -0
- package/lib/typescript/components/VitalsStrip.d.ts.map +1 -0
- package/lib/typescript/components/WatchComplication.d.ts +84 -0
- package/lib/typescript/components/WatchComplication.d.ts.map +1 -0
- package/lib/typescript/components/ZoneBar.d.ts +33 -0
- package/lib/typescript/components/ZoneBar.d.ts.map +1 -0
- package/lib/typescript/components/ZonePyramid.d.ts +51 -0
- package/lib/typescript/components/ZonePyramid.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +288 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/internal/optionalBlur.d.ts +13 -0
- package/lib/typescript/internal/optionalBlur.d.ts.map +1 -0
- package/lib/typescript/internal/optionalHaptics.d.ts +7 -0
- package/lib/typescript/internal/optionalHaptics.d.ts.map +1 -0
- package/lib/typescript/theme.d.ts +5 -0
- package/lib/typescript/theme.d.ts.map +1 -0
- package/package.json +92 -3
- package/src/components/Accordion.tsx +130 -0
- package/src/components/AchievementBadge.tsx +217 -0
- package/src/components/Alert.tsx +149 -0
- package/src/components/AreaChart.tsx +546 -0
- package/src/components/AuroraBackground.tsx +198 -0
- package/src/components/Avatar.tsx +164 -0
- package/src/components/AvatarStack.tsx +94 -0
- package/src/components/BackLink.tsx +64 -0
- package/src/components/Badge.tsx +91 -0
- package/src/components/BarChart.tsx +643 -0
- package/src/components/BarFill.tsx +37 -0
- package/src/components/BeeswarmChart.tsx +567 -0
- package/src/components/BiomarkerRange.tsx +571 -0
- package/src/components/BodyBattery.tsx +551 -0
- package/src/components/BrandMark.tsx +107 -0
- package/src/components/BulletChart.tsx +433 -0
- package/src/components/Button.tsx +127 -0
- package/src/components/CaffeineClock.tsx +472 -0
- package/src/components/Card.tsx +139 -0
- package/src/components/CharCounter.tsx +113 -0
- package/src/components/ChartState.tsx +473 -0
- package/src/components/Checkbox.tsx +175 -0
- package/src/components/Chip.tsx +132 -0
- package/src/components/ChoiceChip.tsx +119 -0
- package/src/components/CodeBlock.tsx +106 -0
- package/src/components/CodeField.tsx +137 -0
- package/src/components/ColorPicker.tsx +169 -0
- package/src/components/ComboChart.tsx +476 -0
- package/src/components/Combobox.tsx +141 -0
- package/src/components/CompareChart.tsx +651 -0
- package/src/components/CompositeChart.tsx +609 -0
- package/src/components/Countdown.tsx +155 -0
- package/src/components/CreditCardVisual.tsx +151 -0
- package/src/components/DateField.tsx +346 -0
- package/src/components/DayTimelineBlocks.tsx +270 -0
- package/src/components/DayWheel.tsx +483 -0
- package/src/components/DeltaPill.tsx +114 -0
- package/src/components/DistributionChart.tsx +739 -0
- package/src/components/Divider.tsx +61 -0
- package/src/components/DonutChart.tsx +399 -0
- package/src/components/DotsLoader.tsx +74 -0
- package/src/components/EffectAttributionLine.tsx +82 -0
- package/src/components/EmptyState.tsx +108 -0
- package/src/components/EngagementBar.tsx +140 -0
- package/src/components/EnvironmentChart.tsx +522 -0
- package/src/components/Eyebrow.tsx +22 -0
- package/src/components/FocalPointPicker.tsx +193 -0
- package/src/components/FollowButton.tsx +78 -0
- package/src/components/ForecastCallout.tsx +100 -0
- package/src/components/FormField.tsx +217 -0
- package/src/components/FunnelChart.tsx +310 -0
- package/src/components/Gauge.tsx +329 -0
- package/src/components/GradientText.tsx +114 -0
- package/src/components/Heatmap.tsx +459 -0
- package/src/components/Highlight.tsx +36 -0
- package/src/components/Hypnogram.tsx +751 -0
- package/src/components/Icon.tsx +680 -0
- package/src/components/Input.tsx +125 -0
- package/src/components/InsightCard.tsx +130 -0
- package/src/components/KeyValue.tsx +83 -0
- package/src/components/LeaderboardRow.tsx +156 -0
- package/src/components/LineChart.tsx +1529 -0
- package/src/components/ListRow.tsx +153 -0
- package/src/components/Menu.tsx +156 -0
- package/src/components/MessageBubble.tsx +118 -0
- package/src/components/MessageComposer.tsx +202 -0
- package/src/components/MetaphorWidget.tsx +848 -0
- package/src/components/Meter.tsx +186 -0
- package/src/components/MetricTile.tsx +247 -0
- package/src/components/MiniRing.tsx +17 -0
- package/src/components/Modal.tsx +129 -0
- package/src/components/MuscleDiagram.tsx +319 -0
- package/src/components/NoteField.tsx +68 -0
- package/src/components/NotificationRow.tsx +230 -0
- package/src/components/Pagination.tsx +188 -0
- package/src/components/PasswordInput.tsx +111 -0
- package/src/components/PasswordStrengthMeter.tsx +104 -0
- package/src/components/PendingPatternCard.tsx +163 -0
- package/src/components/PhaseWheel.tsx +781 -0
- package/src/components/PkChart.tsx +539 -0
- package/src/components/Popover.tsx +206 -0
- package/src/components/PrBadge.tsx +51 -0
- package/src/components/PrCard.tsx +132 -0
- package/src/components/PricingTierCard.tsx +234 -0
- package/src/components/ProGate.tsx +194 -0
- package/src/components/ProgressBar.tsx +439 -0
- package/src/components/Pulse.tsx +17 -0
- package/src/components/QRCode.tsx +555 -0
- package/src/components/RadarChart.tsx +538 -0
- package/src/components/RangeBar.tsx +206 -0
- package/src/components/ReauthDialog.tsx +282 -0
- package/src/components/RestTimer.tsx +193 -0
- package/src/components/RichText.tsx +71 -0
- package/src/components/RichTextEditor.tsx +207 -0
- package/src/components/Ring.tsx +269 -0
- package/src/components/RoseChart.tsx +375 -0
- package/src/components/SankeyChart.tsx +687 -0
- package/src/components/ScatterChart.tsx +498 -0
- package/src/components/ScrollProgress.tsx +61 -0
- package/src/components/SectionDivider.tsx +51 -0
- package/src/components/SectionHeader.tsx +41 -0
- package/src/components/SegmentedTabs.tsx +389 -0
- package/src/components/Select.tsx +335 -0
- package/src/components/SessionBanner.tsx +195 -0
- package/src/components/SessionChart.tsx +917 -0
- package/src/components/SetTable.tsx +341 -0
- package/src/components/ShareCard.tsx +145 -0
- package/src/components/Sheet.tsx +212 -0
- package/src/components/Skeleton.tsx +13 -0
- package/src/components/Slider.tsx +187 -0
- package/src/components/Sortable.tsx +263 -0
- package/src/components/SourceChip.tsx +95 -0
- package/src/components/Sparkline.tsx +108 -0
- package/src/components/Spinner.tsx +128 -0
- package/src/components/SplitButton.tsx +111 -0
- package/src/components/SsoButton.tsx +93 -0
- package/src/components/StackedBar.tsx +138 -0
- package/src/components/Stat.tsx +118 -0
- package/src/components/StatTile.tsx +581 -0
- package/src/components/StateLabel.tsx +62 -0
- package/src/components/StatusDot.tsx +58 -0
- package/src/components/Stepper.tsx +359 -0
- package/src/components/SupplementChart.tsx +1044 -0
- package/src/components/TabBar.tsx +297 -0
- package/src/components/Table.tsx +448 -0
- package/src/components/Tabs.tsx +85 -0
- package/src/components/TagCloud.tsx +111 -0
- package/src/components/TagInput.tsx +325 -0
- package/src/components/TemplateCard.tsx +181 -0
- package/src/components/Timeline.tsx +132 -0
- package/src/components/TimelineChart.tsx +1035 -0
- package/src/components/Toast.tsx +138 -0
- package/src/components/Toggle.tsx +155 -0
- package/src/components/Toolbar.tsx +292 -0
- package/src/components/Tooltip.tsx +193 -0
- package/src/components/TypingIndicator.tsx +106 -0
- package/src/components/UnitChart.tsx +519 -0
- package/src/components/VersionBadge.tsx +129 -0
- package/src/components/VideoThumbnail.tsx +140 -0
- package/src/components/VitalsStrip.tsx +636 -0
- package/src/components/WatchComplication.tsx +536 -0
- package/src/components/ZoneBar.tsx +148 -0
- package/src/components/ZonePyramid.tsx +405 -0
- package/src/components/__tests__/Chip.test.tsx +33 -0
- package/src/components/__tests__/CodeInput.test.tsx +62 -0
- package/src/components/__tests__/DeltaPill.test.tsx +41 -0
- package/src/components/__tests__/GradientText.test.tsx +69 -0
- package/src/components/__tests__/Icon.test.tsx +61 -0
- package/src/components/__tests__/Input.test.tsx +30 -0
- package/src/components/__tests__/LineChart.test.tsx +62 -0
- package/src/components/__tests__/ListRow.test.tsx +28 -0
- package/src/components/__tests__/PkChart.test.tsx +47 -0
- package/src/components/__tests__/PrBadge.test.tsx +32 -0
- package/src/components/__tests__/PrCard.test.tsx +49 -0
- package/src/components/__tests__/RestTimer.test.tsx +94 -0
- package/src/components/__tests__/SegmentedTabs.test.tsx +58 -0
- package/src/components/__tests__/SessionBanner.test.tsx +96 -0
- package/src/components/__tests__/SetTable.test.tsx +105 -0
- package/src/components/__tests__/SourceChip.test.tsx +82 -0
- package/src/components/__tests__/SupplementChart.test.tsx +71 -0
- package/src/components/__tests__/Table.test.tsx +81 -0
- package/src/components/__tests__/TemplateCard.test.tsx +85 -0
- package/src/components/__tests__/Toggle.test.tsx +49 -0
- package/src/components/__tests__/UnitChart.test.tsx +44 -0
- package/src/components/__tests__/markup.ts +142 -0
- package/src/components/__tests__/react-dom-server.d.ts +11 -0
- package/src/index.ts +320 -0
- package/src/internal/optionalBlur.ts +37 -0
- package/src/internal/optionalHaptics.ts +38 -0
- package/src/theme.ts +26 -0
- package/README.md +0 -3
|
@@ -0,0 +1,1046 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DEFAULT_SESSION_ZONES = void 0;
|
|
7
|
+
exports.SessionChart = SessionChart;
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
var _reactNative = require("react-native");
|
|
10
|
+
var _reactNativeSvg = _interopRequireWildcard(require("react-native-svg"));
|
|
11
|
+
var _tokens = require("@lockin90/tokens");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
|
+
/** Catalog variant names — one per session form in
|
|
15
|
+
* `lockin90-design/charts/session-charts.html` (SN-01 … SN-10). */
|
|
16
|
+
|
|
17
|
+
// SN-10
|
|
18
|
+
|
|
19
|
+
/** One HR zone band: label + color + its 0–1 slice of the intensity scale
|
|
20
|
+
* (Z1 at the bottom → Z5 at the top). */
|
|
21
|
+
|
|
22
|
+
/** One sauna heat round (0–1 fractions of the session window). */
|
|
23
|
+
|
|
24
|
+
/** A small chip anchored at a 0–1 fraction of the window (PLUNGE / REST tags). */
|
|
25
|
+
|
|
26
|
+
/** An x-axis caption at a 0–1 fraction of the window. */
|
|
27
|
+
|
|
28
|
+
/** SN-04 recovery annotation — peak pulse + dashed bracket + recovery tag. */
|
|
29
|
+
|
|
30
|
+
/* ---------------- catalog geometry (session-charts.html) ---------------- */
|
|
31
|
+
|
|
32
|
+
const W = 320;
|
|
33
|
+
const P = {
|
|
34
|
+
l: 10,
|
|
35
|
+
r: 12,
|
|
36
|
+
t: 16,
|
|
37
|
+
b: 14
|
|
38
|
+
};
|
|
39
|
+
const PLOT_W = W - P.l - P.r;
|
|
40
|
+
const MINT = _tokens.colors.mint;
|
|
41
|
+
|
|
42
|
+
/** round for compact attribute strings */
|
|
43
|
+
const r = n => Math.round(n * 100) / 100;
|
|
44
|
+
|
|
45
|
+
/** HR zones Z1 (bottom) → Z5 (top) — indigo → coral, like the catalog. */
|
|
46
|
+
const DEFAULT_SESSION_ZONES = exports.DEFAULT_SESSION_ZONES = [{
|
|
47
|
+
label: 'Z1',
|
|
48
|
+
color: _tokens.colors.indigo,
|
|
49
|
+
from: 0,
|
|
50
|
+
to: 0.2
|
|
51
|
+
}, {
|
|
52
|
+
label: 'Z2',
|
|
53
|
+
color: _tokens.colors.cyan,
|
|
54
|
+
from: 0.2,
|
|
55
|
+
to: 0.4
|
|
56
|
+
}, {
|
|
57
|
+
label: 'Z3',
|
|
58
|
+
color: _tokens.colors.mint,
|
|
59
|
+
from: 0.4,
|
|
60
|
+
to: 0.6
|
|
61
|
+
}, {
|
|
62
|
+
label: 'Z4',
|
|
63
|
+
color: _tokens.colors.zoneMid,
|
|
64
|
+
from: 0.6,
|
|
65
|
+
to: 0.8
|
|
66
|
+
}, {
|
|
67
|
+
label: 'Z5',
|
|
68
|
+
color: _tokens.colors.zoneLow,
|
|
69
|
+
from: 0.8,
|
|
70
|
+
to: 1
|
|
71
|
+
}];
|
|
72
|
+
|
|
73
|
+
/* ---------------- deterministic demo data (catalog ports) ---------------- */
|
|
74
|
+
|
|
75
|
+
/** the catalog's seeded PRNG — defaults reproduce the catalog cards exactly */
|
|
76
|
+
function mulberry32(a) {
|
|
77
|
+
return () => {
|
|
78
|
+
a |= 0;
|
|
79
|
+
a = a + 0x6d2b79f5 | 0;
|
|
80
|
+
let t = Math.imul(a ^ a >>> 15, 1 | a);
|
|
81
|
+
t = t + Math.imul(t ^ t >>> 7, 61 | t) ^ t;
|
|
82
|
+
return ((t ^ t >>> 14) >>> 0) / 4294967296;
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
const clamp01 = v => Math.max(0.03, Math.min(0.97, v));
|
|
86
|
+
|
|
87
|
+
/** session HR trace: warmup rise → work oscillation → cooldown fall. */
|
|
88
|
+
function hrSession(seed, n, intervals) {
|
|
89
|
+
const rand = mulberry32(seed);
|
|
90
|
+
const v = [];
|
|
91
|
+
for (let i = 0; i < n; i++) {
|
|
92
|
+
const t = i / (n - 1);
|
|
93
|
+
let base;
|
|
94
|
+
if (t < 0.14) base = 0.22 + t / 0.14 * 0.36;else if (t > 0.86) base = 0.62 - (t - 0.86) / 0.14 * 0.34;else if (intervals) {
|
|
95
|
+
const ph = (t - 0.14) / 0.72 * intervals;
|
|
96
|
+
base = ph % 1 < 0.55 ? 0.82 : 0.45;
|
|
97
|
+
} else base = 0.62 + Math.sin((t - 0.14) * 9) * 0.1;
|
|
98
|
+
v.push(clamp01(base + (rand() - 0.5) * 0.05));
|
|
99
|
+
}
|
|
100
|
+
return v;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/** sauna trace: heat rounds ramp up, cold plunge drops between. */
|
|
104
|
+
function saunaTrace(seed, n, rounds) {
|
|
105
|
+
const rand = mulberry32(seed);
|
|
106
|
+
const v = [];
|
|
107
|
+
for (let i = 0; i < n; i++) {
|
|
108
|
+
const t = i / (n - 1);
|
|
109
|
+
const f = t * rounds % 1;
|
|
110
|
+
const base = f < 0.7 ? 0.3 + f / 0.7 * 0.55 : 0.85 - (f - 0.7) / 0.3 * 0.65;
|
|
111
|
+
v.push(clamp01(base + (rand() - 0.5) * 0.04));
|
|
112
|
+
}
|
|
113
|
+
return v;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/** SN-06 heat-up: exponential approach toward the target. */
|
|
117
|
+
function heatRampData() {
|
|
118
|
+
const out = [];
|
|
119
|
+
for (let i = 0; i < 40; i++) {
|
|
120
|
+
const t = i / 39;
|
|
121
|
+
out.push(clamp01(0.15 + (1 - Math.exp(-t * 4)) * 0.75));
|
|
122
|
+
}
|
|
123
|
+
return out;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/** SN-07 overnight traces — HRV rises, RHR falls. */
|
|
127
|
+
function nightTraces(seed, n) {
|
|
128
|
+
const hrv = [];
|
|
129
|
+
const rhr = [];
|
|
130
|
+
for (let i = 0; i < n; i++) {
|
|
131
|
+
const t = i / (n - 1);
|
|
132
|
+
const rr = mulberry32(seed + i)();
|
|
133
|
+
hrv.push(clamp01(0.3 + t * 0.45 + Math.sin(t * 12) * 0.06 + (rr - 0.5) * 0.05));
|
|
134
|
+
rhr.push(clamp01(0.62 - t * 0.3 + Math.sin(t * 10) * 0.04));
|
|
135
|
+
}
|
|
136
|
+
return {
|
|
137
|
+
hrv,
|
|
138
|
+
rhr
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/** SN-09/10 meal-response curve (gaussian spike + small dip). */
|
|
143
|
+
function glCurve(amp, w2) {
|
|
144
|
+
const out = [];
|
|
145
|
+
for (let i = 0; i <= 40; i++) {
|
|
146
|
+
const t = i / 40;
|
|
147
|
+
out.push(clamp01(0.42 + amp * Math.exp(-(((t - 0.42) / w2) ** 2)) - 0.05 * Math.exp(-(((t - 0.72) / 0.1) ** 2))));
|
|
148
|
+
}
|
|
149
|
+
return out;
|
|
150
|
+
}
|
|
151
|
+
const DEFAULT_HR_TEMPO = hrSession(11, 70);
|
|
152
|
+
const DEFAULT_HR_RECOVERY = hrSession(44, 70);
|
|
153
|
+
const DEFAULT_SAUNA_TEMP = saunaTrace(55, 60, 3);
|
|
154
|
+
const DEFAULT_SAUNA_HR = saunaTrace(60, 60, 3).map(v => clamp01(v * 0.75 + 0.08));
|
|
155
|
+
const DEFAULT_HEAT_RAMP = heatRampData();
|
|
156
|
+
const DEFAULT_NIGHT = nightTraces(77, 48);
|
|
157
|
+
const DEFAULT_GLUC = glCurve(0.46, 0.15);
|
|
158
|
+
const DEFAULT_GLUC_MEAN = glCurve(0.42, 0.15);
|
|
159
|
+
const DEFAULT_OVERLAYS = [glCurve(0.3, 0.14), glCurve(0.44, 0.17), glCurve(0.52, 0.13)];
|
|
160
|
+
const DEFAULT_MINUTES = [4, 12, 18, 14, 4];
|
|
161
|
+
const DEFAULT_ROUNDS = [{
|
|
162
|
+
from: 0,
|
|
163
|
+
to: 0.24
|
|
164
|
+
}, {
|
|
165
|
+
from: 0.33,
|
|
166
|
+
to: 0.57
|
|
167
|
+
}, {
|
|
168
|
+
from: 0.66,
|
|
169
|
+
to: 0.9
|
|
170
|
+
}];
|
|
171
|
+
const DEFAULT_PLUNGES = [{
|
|
172
|
+
at: 0.27,
|
|
173
|
+
label: 'PLUNGE'
|
|
174
|
+
}, {
|
|
175
|
+
at: 0.6,
|
|
176
|
+
label: 'PLUNGE'
|
|
177
|
+
}, {
|
|
178
|
+
at: 0.93,
|
|
179
|
+
label: 'REST'
|
|
180
|
+
}];
|
|
181
|
+
const HR_AXIS = [{
|
|
182
|
+
at: 0,
|
|
183
|
+
label: '0'
|
|
184
|
+
}, {
|
|
185
|
+
at: 0.5,
|
|
186
|
+
label: '26 MIN'
|
|
187
|
+
}, {
|
|
188
|
+
at: 1,
|
|
189
|
+
label: '52 MIN'
|
|
190
|
+
}];
|
|
191
|
+
const DEFAULT_AXES = {
|
|
192
|
+
'hr-zones-session': HR_AXIS,
|
|
193
|
+
'hr-intervals': HR_AXIS,
|
|
194
|
+
'time-in-zones': [],
|
|
195
|
+
'hr-recovery': HR_AXIS,
|
|
196
|
+
'sauna-rounds': [{
|
|
197
|
+
at: 0,
|
|
198
|
+
label: '0'
|
|
199
|
+
}, {
|
|
200
|
+
at: 0.5,
|
|
201
|
+
label: '45 MIN'
|
|
202
|
+
}, {
|
|
203
|
+
at: 1,
|
|
204
|
+
label: '90 MIN'
|
|
205
|
+
}],
|
|
206
|
+
'sauna-heat-ramp': [{
|
|
207
|
+
at: 0,
|
|
208
|
+
label: '0'
|
|
209
|
+
}, {
|
|
210
|
+
at: 1,
|
|
211
|
+
label: '18 MIN'
|
|
212
|
+
}],
|
|
213
|
+
'night-recovery': [{
|
|
214
|
+
at: 0,
|
|
215
|
+
label: '11PM'
|
|
216
|
+
}, {
|
|
217
|
+
at: 0.5,
|
|
218
|
+
label: '3AM'
|
|
219
|
+
}, {
|
|
220
|
+
at: 1,
|
|
221
|
+
label: '7AM'
|
|
222
|
+
}],
|
|
223
|
+
'glucose-response': [{
|
|
224
|
+
at: 0,
|
|
225
|
+
label: '-30M'
|
|
226
|
+
}, {
|
|
227
|
+
at: 1,
|
|
228
|
+
label: '+2H'
|
|
229
|
+
}],
|
|
230
|
+
'response-overlay': [{
|
|
231
|
+
at: 0,
|
|
232
|
+
label: '-30M'
|
|
233
|
+
}, {
|
|
234
|
+
at: 1,
|
|
235
|
+
label: '+2H'
|
|
236
|
+
}]
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
/** catalog card header defaults (title · stat · stat tint) — demo copy; pass
|
|
240
|
+
* real data / `''` to hide */
|
|
241
|
+
const CFG_DEFAULTS = {
|
|
242
|
+
'hr-zones-session': {
|
|
243
|
+
title: 'TRAINING · TEMPO RUN',
|
|
244
|
+
stat: '148 AVG BPM',
|
|
245
|
+
statColor: _tokens.colors.zoneMid
|
|
246
|
+
},
|
|
247
|
+
'hr-intervals': {
|
|
248
|
+
title: 'TRAINING · 5× INTERVALS',
|
|
249
|
+
stat: '172 PEAK',
|
|
250
|
+
statColor: _tokens.colors.zoneLow
|
|
251
|
+
},
|
|
252
|
+
'time-in-zones': {
|
|
253
|
+
title: 'TIME IN ZONES · 52 MIN'
|
|
254
|
+
},
|
|
255
|
+
'hr-recovery': {
|
|
256
|
+
title: 'TRAINING + RECOVERY CHECK',
|
|
257
|
+
stat: '−32 IN 60S',
|
|
258
|
+
statColor: _tokens.colors.mint
|
|
259
|
+
},
|
|
260
|
+
'sauna-rounds': {
|
|
261
|
+
title: 'SAUNA · 3 ROUNDS',
|
|
262
|
+
stat: '90°C',
|
|
263
|
+
statColor: _tokens.colors.zoneMid
|
|
264
|
+
},
|
|
265
|
+
'sauna-heat-ramp': {
|
|
266
|
+
title: 'SAUNA · WARMING UP'
|
|
267
|
+
},
|
|
268
|
+
'night-recovery': {
|
|
269
|
+
title: 'OVERNIGHT RECOVERY',
|
|
270
|
+
stat: '7H 40M'
|
|
271
|
+
},
|
|
272
|
+
'glucose-response': {
|
|
273
|
+
title: 'MEAL RESPONSE · CGM',
|
|
274
|
+
stat: '+62 PEAK',
|
|
275
|
+
statColor: _tokens.colors.zoneMid
|
|
276
|
+
},
|
|
277
|
+
'response-overlay': {
|
|
278
|
+
title: 'SAME MEAL × 3'
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
/** Fritsch–Carlson monotone cubic — the catalog's `smoothPath`. */
|
|
283
|
+
function monotonePath(pts) {
|
|
284
|
+
const n = pts.length;
|
|
285
|
+
if (n < 3) return pts.map(([x, y], i) => `${i === 0 ? 'M' : 'L'}${r(x)} ${r(y)}`).join('');
|
|
286
|
+
const dx = [];
|
|
287
|
+
const m = [];
|
|
288
|
+
const tg = [];
|
|
289
|
+
for (let i = 0; i < n - 1; i++) {
|
|
290
|
+
dx[i] = pts[i + 1][0] - pts[i][0];
|
|
291
|
+
m[i] = (pts[i + 1][1] - pts[i][1]) / dx[i];
|
|
292
|
+
}
|
|
293
|
+
tg[0] = m[0];
|
|
294
|
+
tg[n - 1] = m[n - 2];
|
|
295
|
+
for (let i = 1; i < n - 1; i++) tg[i] = m[i - 1] * m[i] <= 0 ? 0 : (m[i - 1] + m[i]) / 2;
|
|
296
|
+
for (let i = 0; i < n - 1; i++) {
|
|
297
|
+
if (m[i] === 0) {
|
|
298
|
+
tg[i] = 0;
|
|
299
|
+
tg[i + 1] = 0;
|
|
300
|
+
} else {
|
|
301
|
+
const a = tg[i] / m[i];
|
|
302
|
+
const b = tg[i + 1] / m[i];
|
|
303
|
+
const s = a * a + b * b;
|
|
304
|
+
if (s > 9) {
|
|
305
|
+
const tau = 3 / Math.sqrt(s);
|
|
306
|
+
tg[i] = tau * a * m[i];
|
|
307
|
+
tg[i + 1] = tau * b * m[i];
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
let d = `M${r(pts[0][0])} ${r(pts[0][1])}`;
|
|
312
|
+
for (let i = 0; i < n - 1; i++) {
|
|
313
|
+
const h = dx[i] / 3;
|
|
314
|
+
d += `C${r(pts[i][0] + h)} ${r(pts[i][1] + h * tg[i])} ${r(pts[i + 1][0] - h)} ${r(pts[i + 1][1] - h * tg[i + 1])} ${r(pts[i + 1][0])} ${r(pts[i + 1][1])}`;
|
|
315
|
+
}
|
|
316
|
+
return d;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/* ---------------- render model (SVG marks + round/text overlays) ---------------- */
|
|
320
|
+
|
|
321
|
+
/** Expanding + fading ring riding the peak / trace-head dot — Animated loop,
|
|
322
|
+
* mirroring the web SMIL pulse (1.8s, r 3.6→11, opacity .8→0). */
|
|
323
|
+
function PulseRing({
|
|
324
|
+
color
|
|
325
|
+
}) {
|
|
326
|
+
const v = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
|
|
327
|
+
(0, _react.useEffect)(() => {
|
|
328
|
+
const loop = _reactNative.Animated.loop(_reactNative.Animated.timing(v, {
|
|
329
|
+
toValue: 1,
|
|
330
|
+
duration: 1800,
|
|
331
|
+
easing: _reactNative.Easing.out(_reactNative.Easing.quad),
|
|
332
|
+
useNativeDriver: true
|
|
333
|
+
}));
|
|
334
|
+
loop.start();
|
|
335
|
+
return () => loop.stop();
|
|
336
|
+
}, [v]);
|
|
337
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
|
|
338
|
+
style: [styles.pulse, {
|
|
339
|
+
borderColor: color,
|
|
340
|
+
opacity: v.interpolate({
|
|
341
|
+
inputRange: [0, 1],
|
|
342
|
+
outputRange: [0.8, 0]
|
|
343
|
+
}),
|
|
344
|
+
transform: [{
|
|
345
|
+
scale: v.interpolate({
|
|
346
|
+
inputRange: [0, 1],
|
|
347
|
+
outputRange: [1, 3]
|
|
348
|
+
})
|
|
349
|
+
}]
|
|
350
|
+
}]
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* SessionChart — the session family: one recorded session as a story (catalog
|
|
356
|
+
* SN-01…SN-10). `variant` covers HR training over the 5 zone bands (Z1 indigo
|
|
357
|
+
* → Z5 coral) with the trace stroked by zone height, interval work blocks, the
|
|
358
|
+
* time-in-zones summary rows, HR recovery (peak pulse + 60s bracket + drop
|
|
359
|
+
* tag), sauna rounds (heat blocks + plunge tags + TEMP/HR traces) and heat
|
|
360
|
+
* ramp vs target, overnight recovery (HRV up / RHR down on a violet canvas)
|
|
361
|
+
* and CGM meal-response curves (baseline band + MEAL rule + peak/return, or a
|
|
362
|
+
* 3-curve overlay with the bold mean). Native twin of `@lockin90/ui`
|
|
363
|
+
* SessionChart — same prop API; `shine` is a real Gaussian-blurred duplicate
|
|
364
|
+
* stroke (Fabric-native SVG filters in react-native-svg 15). The Svg
|
|
365
|
+
* stretches to the measured container
|
|
366
|
+
* width via a fixed viewBox + non-uniform scaling; dots, chips and text render
|
|
367
|
+
* as absolutely-positioned Views placed by percentage so they stay perfectly
|
|
368
|
+
* round and legible.
|
|
369
|
+
*/
|
|
370
|
+
function SessionChart({
|
|
371
|
+
variant = 'hr-zones-session',
|
|
372
|
+
hrSamples,
|
|
373
|
+
zones = DEFAULT_SESSION_ZONES,
|
|
374
|
+
showZoneLabels = true,
|
|
375
|
+
intervals = 5,
|
|
376
|
+
recovery,
|
|
377
|
+
minutes = DEFAULT_MINUTES,
|
|
378
|
+
rounds = DEFAULT_ROUNDS,
|
|
379
|
+
plunges = DEFAULT_PLUNGES,
|
|
380
|
+
tempSamples,
|
|
381
|
+
tempLabel = 'TEMP',
|
|
382
|
+
hrLabel = 'HR',
|
|
383
|
+
target = 0.85,
|
|
384
|
+
targetLabel = 'TARGET 90°C',
|
|
385
|
+
stateLabel = '87°C · HEATING',
|
|
386
|
+
hrvSamples = DEFAULT_NIGHT.hrv,
|
|
387
|
+
rhrSamples = DEFAULT_NIGHT.rhr,
|
|
388
|
+
hrvLabel = 'HRV +38%',
|
|
389
|
+
rhrLabel = 'RHR −12',
|
|
390
|
+
glucoseSamples,
|
|
391
|
+
overlays = DEFAULT_OVERLAYS,
|
|
392
|
+
baselineBand = [0.36, 0.5],
|
|
393
|
+
baselineLabel = 'BASELINE 80-110',
|
|
394
|
+
mealAt = 0.2,
|
|
395
|
+
mealLabel = 'MEAL 12:40',
|
|
396
|
+
peakIndex = 17,
|
|
397
|
+
peakLabel = '+62 MG/DL PEAK',
|
|
398
|
+
returnLabel = 'BACK TO BASE · 1H 40M',
|
|
399
|
+
meanLabel = 'MEAN OF 3 MEALS',
|
|
400
|
+
title,
|
|
401
|
+
stat,
|
|
402
|
+
statColor,
|
|
403
|
+
axisLabels,
|
|
404
|
+
weight,
|
|
405
|
+
shine = false,
|
|
406
|
+
height = 150,
|
|
407
|
+
ariaLabel,
|
|
408
|
+
style
|
|
409
|
+
}) {
|
|
410
|
+
const uid = (0, _react.useId)().replace(/[^a-zA-Z0-9]/g, '');
|
|
411
|
+
const zoneId = `lk-snc-zone-${uid}`;
|
|
412
|
+
const heatId = `lk-snc-heat-${uid}`;
|
|
413
|
+
const blurId = `lk-snc-blur-${uid}`;
|
|
414
|
+
const [width, setWidth] = (0, _react.useState)(0);
|
|
415
|
+
const onLayout = e => setWidth(e.nativeEvent.layout.width);
|
|
416
|
+
const h = height;
|
|
417
|
+
const plotH = h - P.t - P.b;
|
|
418
|
+
const X = (i, n) => P.l + (n > 1 ? i * PLOT_W / (n - 1) : PLOT_W / 2);
|
|
419
|
+
const Y = v => P.t + (1 - v) * plotH;
|
|
420
|
+
const toPts = data => data.map((v, i) => [X(i, data.length), Y(v)]);
|
|
421
|
+
const marks = [];
|
|
422
|
+
const oDots = [];
|
|
423
|
+
const oNotes = [];
|
|
424
|
+
const oChips = [];
|
|
425
|
+
const oPulses = [];
|
|
426
|
+
let needZoneGrad = false;
|
|
427
|
+
let needHeatGrad = false;
|
|
428
|
+
const cfg = CFG_DEFAULTS[variant];
|
|
429
|
+
const resolvedTitle = title ?? cfg.title;
|
|
430
|
+
const resolvedStat = stat ?? cfg.stat;
|
|
431
|
+
const resolvedStatColor = statColor ?? cfg.statColor ?? _tokens.colors.text;
|
|
432
|
+
if (resolvedTitle) oNotes.push({
|
|
433
|
+
x: P.l + 2,
|
|
434
|
+
y: 11,
|
|
435
|
+
text: resolvedTitle,
|
|
436
|
+
color: _tokens.colors.textFaint,
|
|
437
|
+
anchor: 'start'
|
|
438
|
+
});
|
|
439
|
+
if (resolvedStat) oNotes.push({
|
|
440
|
+
x: W - P.r - 2,
|
|
441
|
+
y: 12,
|
|
442
|
+
text: resolvedStat,
|
|
443
|
+
color: resolvedStatColor,
|
|
444
|
+
anchor: 'end',
|
|
445
|
+
stat: true
|
|
446
|
+
});
|
|
447
|
+
|
|
448
|
+
/** main-trace glow underlay + stroke (the catalog's `hrPath`) — the shine is
|
|
449
|
+
* a Gaussian-blurred duplicate stroke behind the crisp trace, the native
|
|
450
|
+
* twin of the web mark's `blur(5px)` underlay */
|
|
451
|
+
const drawTrace = (d, stroke, w, dash) => {
|
|
452
|
+
if (!dash && shine) marks.push({
|
|
453
|
+
k: 'path',
|
|
454
|
+
d,
|
|
455
|
+
stroke,
|
|
456
|
+
w: w + 5,
|
|
457
|
+
opacity: 0.45,
|
|
458
|
+
cap: true,
|
|
459
|
+
filter: `url(#${blurId})`
|
|
460
|
+
});
|
|
461
|
+
marks.push({
|
|
462
|
+
k: 'path',
|
|
463
|
+
d,
|
|
464
|
+
stroke,
|
|
465
|
+
w,
|
|
466
|
+
dash,
|
|
467
|
+
cap: true
|
|
468
|
+
});
|
|
469
|
+
};
|
|
470
|
+
const timeAxis = () => (axisLabels ?? DEFAULT_AXES[variant]).forEach(L => oNotes.push({
|
|
471
|
+
x: P.l + PLOT_W * L.at,
|
|
472
|
+
y: h - 2,
|
|
473
|
+
text: L.label,
|
|
474
|
+
color: _tokens.colors.textFaint,
|
|
475
|
+
anchor: L.at === 0 ? 'start' : L.at === 1 ? 'end' : 'middle'
|
|
476
|
+
}));
|
|
477
|
+
|
|
478
|
+
/* ---------- SN-03 · time in zones — horizontal zone rows ---------- */
|
|
479
|
+
if (variant === 'time-in-zones') {
|
|
480
|
+
const rows = zones.slice().reverse(); // Z5 top → Z1 bottom
|
|
481
|
+
const rh = plotH / Math.max(1, rows.length);
|
|
482
|
+
const maxM = Math.max(1, ...minutes);
|
|
483
|
+
rows.forEach((z, i) => {
|
|
484
|
+
const m = minutes[zones.length - 1 - i] ?? 0;
|
|
485
|
+
const rowY = P.t + 6 + i * rh;
|
|
486
|
+
const wpx = Math.max(6, (PLOT_W - 92) * (m / maxM));
|
|
487
|
+
oNotes.push({
|
|
488
|
+
x: P.l + 4,
|
|
489
|
+
y: rowY + rh / 2,
|
|
490
|
+
text: z.label,
|
|
491
|
+
color: z.color,
|
|
492
|
+
anchor: 'start'
|
|
493
|
+
});
|
|
494
|
+
marks.push({
|
|
495
|
+
k: 'rect',
|
|
496
|
+
x: P.l + 26,
|
|
497
|
+
y: rowY + rh / 2 - 5.5,
|
|
498
|
+
w: wpx,
|
|
499
|
+
h: 11,
|
|
500
|
+
rx: 5.5,
|
|
501
|
+
fill: z.color,
|
|
502
|
+
opacity: 0.9
|
|
503
|
+
});
|
|
504
|
+
oNotes.push({
|
|
505
|
+
x: P.l + 32 + wpx,
|
|
506
|
+
y: rowY + rh / 2 + 3,
|
|
507
|
+
text: `${m} MIN`,
|
|
508
|
+
color: _tokens.colors.textDim,
|
|
509
|
+
anchor: 'start'
|
|
510
|
+
});
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
/* ---------- SN-05 · sauna rounds — heat blocks + plunges + two traces ---------- */
|
|
515
|
+
if (variant === 'sauna-rounds') {
|
|
516
|
+
rounds.forEach((rd, i) => {
|
|
517
|
+
const x0 = P.l + PLOT_W * rd.from;
|
|
518
|
+
const wpx = PLOT_W * (rd.to - rd.from);
|
|
519
|
+
marks.push({
|
|
520
|
+
k: 'rect',
|
|
521
|
+
x: x0,
|
|
522
|
+
y: P.t,
|
|
523
|
+
w: wpx,
|
|
524
|
+
h: plotH,
|
|
525
|
+
rx: 6,
|
|
526
|
+
fill: _tokens.colors.zoneMid,
|
|
527
|
+
opacity: 0.1
|
|
528
|
+
});
|
|
529
|
+
oChips.push({
|
|
530
|
+
x: x0 + wpx / 2,
|
|
531
|
+
y: P.t + 8,
|
|
532
|
+
text: rd.label ?? `ROUND ${i + 1} · 15 MIN`,
|
|
533
|
+
color: _tokens.colors.zoneMid,
|
|
534
|
+
anchor: 'middle'
|
|
535
|
+
});
|
|
536
|
+
});
|
|
537
|
+
plunges.forEach(pl => oChips.push({
|
|
538
|
+
x: P.l + PLOT_W * pl.at + 8,
|
|
539
|
+
y: h - P.b - 10,
|
|
540
|
+
text: pl.label,
|
|
541
|
+
color: _tokens.colors.cyan,
|
|
542
|
+
anchor: 'middle'
|
|
543
|
+
}));
|
|
544
|
+
drawTrace(monotonePath(toPts(tempSamples ?? DEFAULT_SAUNA_TEMP)), _tokens.colors.zoneMid, weight ?? 2.6);
|
|
545
|
+
drawTrace(monotonePath(toPts(hrSamples ?? DEFAULT_SAUNA_HR)), _tokens.colors.zoneLow, 1.8, '2 4');
|
|
546
|
+
oChips.push({
|
|
547
|
+
x: W - P.r - 4,
|
|
548
|
+
y: 42,
|
|
549
|
+
text: tempLabel,
|
|
550
|
+
color: _tokens.colors.zoneMid,
|
|
551
|
+
anchor: 'end'
|
|
552
|
+
});
|
|
553
|
+
oChips.push({
|
|
554
|
+
x: W - P.r - 4,
|
|
555
|
+
y: 58,
|
|
556
|
+
text: hrLabel,
|
|
557
|
+
color: _tokens.colors.zoneLow,
|
|
558
|
+
anchor: 'end'
|
|
559
|
+
});
|
|
560
|
+
timeAxis();
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
/* ---------- SN-06 · sauna heat ramp — temp vs target ---------- */
|
|
564
|
+
if (variant === 'sauna-heat-ramp') {
|
|
565
|
+
marks.push({
|
|
566
|
+
k: 'line',
|
|
567
|
+
x1: P.l,
|
|
568
|
+
y1: Y(target),
|
|
569
|
+
x2: W - P.r,
|
|
570
|
+
y2: Y(target),
|
|
571
|
+
stroke: _tokens.colors.zoneLow,
|
|
572
|
+
w: 1,
|
|
573
|
+
dash: '5 4',
|
|
574
|
+
opacity: 0.85
|
|
575
|
+
});
|
|
576
|
+
oChips.push({
|
|
577
|
+
x: W - P.r - 4,
|
|
578
|
+
y: Y(target) - 10,
|
|
579
|
+
text: targetLabel,
|
|
580
|
+
color: _tokens.colors.zoneLow,
|
|
581
|
+
anchor: 'end'
|
|
582
|
+
});
|
|
583
|
+
needHeatGrad = true;
|
|
584
|
+
const temp = tempSamples ?? DEFAULT_HEAT_RAMP;
|
|
585
|
+
const pts = toPts(temp);
|
|
586
|
+
drawTrace(monotonePath(pts), `url(#${heatId})`, weight ?? 3);
|
|
587
|
+
const last = pts[pts.length - 1];
|
|
588
|
+
if (last) {
|
|
589
|
+
oPulses.push({
|
|
590
|
+
x: last[0],
|
|
591
|
+
y: last[1],
|
|
592
|
+
color: _tokens.colors.zoneLow
|
|
593
|
+
});
|
|
594
|
+
if (stateLabel) oChips.push({
|
|
595
|
+
x: last[0] - 8,
|
|
596
|
+
y: last[1] + 16,
|
|
597
|
+
text: stateLabel,
|
|
598
|
+
color: _tokens.colors.zoneMid,
|
|
599
|
+
anchor: 'end'
|
|
600
|
+
});
|
|
601
|
+
}
|
|
602
|
+
timeAxis();
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
/* ---------- SN-07 · overnight recovery — HRV up, RHR down ---------- */
|
|
606
|
+
if (variant === 'night-recovery') {
|
|
607
|
+
marks.push({
|
|
608
|
+
k: 'rect',
|
|
609
|
+
x: P.l,
|
|
610
|
+
y: P.t,
|
|
611
|
+
w: PLOT_W,
|
|
612
|
+
h: plotH,
|
|
613
|
+
rx: 6,
|
|
614
|
+
fill: _tokens.colors.violet,
|
|
615
|
+
opacity: 0.05
|
|
616
|
+
});
|
|
617
|
+
drawTrace(monotonePath(toPts(hrvSamples)), MINT, weight ?? 2.5);
|
|
618
|
+
drawTrace(monotonePath(toPts(rhrSamples)), _tokens.colors.violet, 2, '5 4');
|
|
619
|
+
const hi = Math.round(0.72 * (hrvSamples.length - 1));
|
|
620
|
+
const ri = Math.round(0.72 * (rhrSamples.length - 1));
|
|
621
|
+
if (hrvSamples[hi] != null) oChips.push({
|
|
622
|
+
x: P.l + PLOT_W * 0.72,
|
|
623
|
+
y: Y(hrvSamples[hi]) - 13,
|
|
624
|
+
text: hrvLabel,
|
|
625
|
+
color: MINT,
|
|
626
|
+
anchor: 'middle'
|
|
627
|
+
});
|
|
628
|
+
if (rhrSamples[ri] != null) oChips.push({
|
|
629
|
+
x: P.l + PLOT_W * 0.72,
|
|
630
|
+
y: Y(rhrSamples[ri]) + 14,
|
|
631
|
+
text: rhrLabel,
|
|
632
|
+
color: _tokens.colors.violet,
|
|
633
|
+
anchor: 'middle'
|
|
634
|
+
});
|
|
635
|
+
timeAxis();
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
/* ---------- SN-09/10 · glucose meal-response curves ---------- */
|
|
639
|
+
if (variant === 'glucose-response' || variant === 'response-overlay') {
|
|
640
|
+
const [bandLo, bandHi] = baselineBand;
|
|
641
|
+
marks.push({
|
|
642
|
+
k: 'rect',
|
|
643
|
+
x: P.l,
|
|
644
|
+
y: Y(bandHi),
|
|
645
|
+
w: PLOT_W,
|
|
646
|
+
h: Y(bandLo) - Y(bandHi),
|
|
647
|
+
rx: 4,
|
|
648
|
+
fill: MINT,
|
|
649
|
+
opacity: 0.07
|
|
650
|
+
});
|
|
651
|
+
oNotes.push({
|
|
652
|
+
x: W - P.r - 2,
|
|
653
|
+
y: Y(bandHi) + 9,
|
|
654
|
+
text: baselineLabel,
|
|
655
|
+
color: MINT,
|
|
656
|
+
anchor: 'end'
|
|
657
|
+
});
|
|
658
|
+
const gx = (i, n) => P.l + 8 + (n > 1 ? (PLOT_W - 14) * i / (n - 1) : (PLOT_W - 14) / 2);
|
|
659
|
+
const gPath = vals => monotonePath(vals.map((v, i) => [gx(i, vals.length), Y(v)]));
|
|
660
|
+
const mealX = P.l + 8 + (PLOT_W - 14) * mealAt;
|
|
661
|
+
marks.push({
|
|
662
|
+
k: 'line',
|
|
663
|
+
x1: mealX,
|
|
664
|
+
y1: P.t,
|
|
665
|
+
x2: mealX,
|
|
666
|
+
y2: h - P.b,
|
|
667
|
+
stroke: _tokens.colors.text,
|
|
668
|
+
w: 1,
|
|
669
|
+
opacity: 0.22,
|
|
670
|
+
dash: '2 3'
|
|
671
|
+
});
|
|
672
|
+
oChips.push({
|
|
673
|
+
x: mealX,
|
|
674
|
+
y: P.t + 8,
|
|
675
|
+
text: mealLabel,
|
|
676
|
+
color: _tokens.colors.lime,
|
|
677
|
+
anchor: 'middle'
|
|
678
|
+
});
|
|
679
|
+
if (variant === 'response-overlay') {
|
|
680
|
+
overlays.forEach(c => marks.push({
|
|
681
|
+
k: 'path',
|
|
682
|
+
d: gPath(c),
|
|
683
|
+
stroke: _tokens.colors.text,
|
|
684
|
+
w: 1.4,
|
|
685
|
+
opacity: 0.18
|
|
686
|
+
}));
|
|
687
|
+
drawTrace(gPath(glucoseSamples ?? DEFAULT_GLUC_MEAN), _tokens.colors.cyan, weight ?? 2.5);
|
|
688
|
+
oChips.push({
|
|
689
|
+
x: W - P.r - 4,
|
|
690
|
+
y: P.t + 24,
|
|
691
|
+
text: meanLabel,
|
|
692
|
+
color: _tokens.colors.cyan,
|
|
693
|
+
anchor: 'end'
|
|
694
|
+
});
|
|
695
|
+
} else {
|
|
696
|
+
const vals = glucoseSamples ?? DEFAULT_GLUC;
|
|
697
|
+
drawTrace(gPath(vals), _tokens.colors.cyan, weight ?? 2.5);
|
|
698
|
+
const pi = Math.max(0, Math.min(vals.length - 1, peakIndex));
|
|
699
|
+
const pkv = vals[pi];
|
|
700
|
+
if (pkv != null) {
|
|
701
|
+
const px = gx(pi, vals.length);
|
|
702
|
+
const py = Y(pkv);
|
|
703
|
+
oDots.push({
|
|
704
|
+
x: px,
|
|
705
|
+
y: py,
|
|
706
|
+
d: 6.4,
|
|
707
|
+
color: _tokens.colors.zoneMid
|
|
708
|
+
});
|
|
709
|
+
if (peakLabel) oChips.push({
|
|
710
|
+
x: px + 8,
|
|
711
|
+
y: py - 12,
|
|
712
|
+
text: peakLabel,
|
|
713
|
+
color: _tokens.colors.zoneMid,
|
|
714
|
+
anchor: 'start'
|
|
715
|
+
});
|
|
716
|
+
}
|
|
717
|
+
if (returnLabel) oChips.push({
|
|
718
|
+
x: W - P.r - 4,
|
|
719
|
+
y: Y(0.44) + 22,
|
|
720
|
+
text: returnLabel,
|
|
721
|
+
color: MINT,
|
|
722
|
+
anchor: 'end'
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
timeAxis();
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/* ---------- SN-01/02/04 · HR session over the zone bands ---------- */
|
|
729
|
+
if (variant === 'hr-zones-session' || variant === 'hr-intervals' || variant === 'hr-recovery') {
|
|
730
|
+
zones.forEach(z => {
|
|
731
|
+
marks.push({
|
|
732
|
+
k: 'rect',
|
|
733
|
+
x: P.l,
|
|
734
|
+
y: Y(z.to),
|
|
735
|
+
w: PLOT_W,
|
|
736
|
+
h: Y(z.from) - Y(z.to),
|
|
737
|
+
rx: 0,
|
|
738
|
+
fill: z.color,
|
|
739
|
+
opacity: 0.06
|
|
740
|
+
});
|
|
741
|
+
marks.push({
|
|
742
|
+
k: 'line',
|
|
743
|
+
x1: P.l,
|
|
744
|
+
y1: Y(z.to),
|
|
745
|
+
x2: W - P.r,
|
|
746
|
+
y2: Y(z.to),
|
|
747
|
+
stroke: z.color,
|
|
748
|
+
w: 1,
|
|
749
|
+
opacity: 0.18
|
|
750
|
+
});
|
|
751
|
+
if (showZoneLabels) oNotes.push({
|
|
752
|
+
x: W - P.r - 2,
|
|
753
|
+
y: Y((z.from + z.to) / 2) + 3,
|
|
754
|
+
text: z.label,
|
|
755
|
+
color: z.color,
|
|
756
|
+
anchor: 'end'
|
|
757
|
+
});
|
|
758
|
+
});
|
|
759
|
+
const ivals = variant === 'hr-intervals' ? Math.max(1, intervals) : 0;
|
|
760
|
+
const hr = hrSamples ?? (variant === 'hr-intervals' ? hrSession(22, 70, ivals) : variant === 'hr-recovery' ? DEFAULT_HR_RECOVERY : DEFAULT_HR_TEMPO);
|
|
761
|
+
if (ivals > 0) {
|
|
762
|
+
for (let b = 0; b < ivals; b++) {
|
|
763
|
+
const s = 0.14 + b / ivals * 0.72;
|
|
764
|
+
const e = s + 0.72 / ivals * 0.55;
|
|
765
|
+
marks.push({
|
|
766
|
+
k: 'rect',
|
|
767
|
+
x: P.l + PLOT_W * s,
|
|
768
|
+
y: P.t,
|
|
769
|
+
w: PLOT_W * (e - s),
|
|
770
|
+
h: plotH,
|
|
771
|
+
rx: 0,
|
|
772
|
+
fill: _tokens.colors.zoneLow,
|
|
773
|
+
opacity: 0.07
|
|
774
|
+
});
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
needZoneGrad = true;
|
|
778
|
+
const pts = toPts(hr);
|
|
779
|
+
drawTrace(monotonePath(pts), `url(#${zoneId})`, weight ?? 2.5);
|
|
780
|
+
if (variant === 'hr-recovery') {
|
|
781
|
+
const pk = Math.max(0, Math.min(pts.length - 1, recovery?.peakIndex ?? 52));
|
|
782
|
+
const dp = Math.max(0, Math.min(pts.length - 1, recovery?.dropIndex ?? 62));
|
|
783
|
+
const pkPt = pts[pk];
|
|
784
|
+
const dpPt = pts[dp];
|
|
785
|
+
if (pkPt && dpPt) {
|
|
786
|
+
oPulses.push({
|
|
787
|
+
x: pkPt[0],
|
|
788
|
+
y: pkPt[1],
|
|
789
|
+
color: _tokens.colors.zoneLow
|
|
790
|
+
});
|
|
791
|
+
marks.push({
|
|
792
|
+
k: 'line',
|
|
793
|
+
x1: pkPt[0],
|
|
794
|
+
y1: pkPt[1] - 14,
|
|
795
|
+
x2: dpPt[0],
|
|
796
|
+
y2: dpPt[1] - 14,
|
|
797
|
+
stroke: _tokens.colors.text,
|
|
798
|
+
w: 1,
|
|
799
|
+
opacity: 0.35,
|
|
800
|
+
dash: '2 3'
|
|
801
|
+
});
|
|
802
|
+
oChips.push({
|
|
803
|
+
x: (pkPt[0] + dpPt[0]) / 2,
|
|
804
|
+
y: dpPt[1] - 26,
|
|
805
|
+
text: recovery?.label ?? '−32 BPM · 60S',
|
|
806
|
+
color: MINT,
|
|
807
|
+
anchor: 'middle'
|
|
808
|
+
});
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
timeAxis();
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
/* ---------------- render ---------------- */
|
|
815
|
+
|
|
816
|
+
// zone-height stroke: value gradient down the plot (coral top → indigo floor)
|
|
817
|
+
const zoneStops = zones.length === 5 ? [0, 0.3, 0.55, 0.78, 1].map((off, i) => ({
|
|
818
|
+
offset: off,
|
|
819
|
+
color: zones[zones.length - 1 - i].color
|
|
820
|
+
})) : zones.slice().reverse().map((z, i, arr) => ({
|
|
821
|
+
offset: arr.length > 1 ? i / (arr.length - 1) : 0,
|
|
822
|
+
color: z.color
|
|
823
|
+
}));
|
|
824
|
+
const pctX = x => `${r(x / W * 100)}%`;
|
|
825
|
+
const anchorAlign = a => a === 'start' ? 'flex-start' : a === 'middle' ? 'center' : 'flex-end';
|
|
826
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
827
|
+
style: [styles.root, style],
|
|
828
|
+
accessibilityRole: "image",
|
|
829
|
+
accessibilityLabel: ariaLabel,
|
|
830
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
831
|
+
style: {
|
|
832
|
+
position: 'relative',
|
|
833
|
+
height: h
|
|
834
|
+
},
|
|
835
|
+
onLayout: onLayout,
|
|
836
|
+
children: [width > 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.default, {
|
|
837
|
+
width: width,
|
|
838
|
+
height: h,
|
|
839
|
+
viewBox: `0 0 ${W} ${h}`,
|
|
840
|
+
preserveAspectRatio: "none",
|
|
841
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.Defs, {
|
|
842
|
+
children: [needZoneGrad ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.LinearGradient, {
|
|
843
|
+
id: zoneId,
|
|
844
|
+
gradientUnits: "userSpaceOnUse",
|
|
845
|
+
x1: "0",
|
|
846
|
+
y1: P.t,
|
|
847
|
+
x2: "0",
|
|
848
|
+
y2: h - P.b,
|
|
849
|
+
children: zoneStops.map((s, i) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Stop, {
|
|
850
|
+
offset: s.offset,
|
|
851
|
+
stopColor: s.color
|
|
852
|
+
}, i))
|
|
853
|
+
}) : null, needHeatGrad ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.LinearGradient, {
|
|
854
|
+
id: heatId,
|
|
855
|
+
gradientUnits: "userSpaceOnUse",
|
|
856
|
+
x1: "0",
|
|
857
|
+
y1: h - P.b,
|
|
858
|
+
x2: "0",
|
|
859
|
+
y2: P.t,
|
|
860
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Stop, {
|
|
861
|
+
offset: "0",
|
|
862
|
+
stopColor: _tokens.colors.cyan
|
|
863
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Stop, {
|
|
864
|
+
offset: "0.55",
|
|
865
|
+
stopColor: _tokens.colors.zoneMid
|
|
866
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Stop, {
|
|
867
|
+
offset: "1",
|
|
868
|
+
stopColor: _tokens.colors.zoneLow
|
|
869
|
+
})]
|
|
870
|
+
}) : null, shine ?
|
|
871
|
+
/*#__PURE__*/
|
|
872
|
+
/* real Gaussian blur for the trace shine (Fabric-native in
|
|
873
|
+
react-native-svg 15) — the native twin of the web `blur(5px)`.
|
|
874
|
+
Region in user space over the full canvas so flat traces
|
|
875
|
+
never clip the blur to their bounding box. */
|
|
876
|
+
(0, _jsxRuntime.jsx)(_reactNativeSvg.Filter, {
|
|
877
|
+
id: blurId,
|
|
878
|
+
filterUnits: "userSpaceOnUse",
|
|
879
|
+
x: -10,
|
|
880
|
+
y: -10,
|
|
881
|
+
width: W + 20,
|
|
882
|
+
height: h + 20,
|
|
883
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.FeGaussianBlur, {
|
|
884
|
+
stdDeviation: 2.5
|
|
885
|
+
})
|
|
886
|
+
}) : null]
|
|
887
|
+
}), marks.map((mk, i) => mk.k === 'rect' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
888
|
+
x: r(mk.x),
|
|
889
|
+
y: r(mk.y),
|
|
890
|
+
width: r(Math.max(0, mk.w)),
|
|
891
|
+
height: r(Math.max(0, mk.h)),
|
|
892
|
+
rx: mk.rx,
|
|
893
|
+
fill: mk.fill,
|
|
894
|
+
opacity: mk.opacity
|
|
895
|
+
}, i) : mk.k === 'line' ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Line, {
|
|
896
|
+
x1: r(mk.x1),
|
|
897
|
+
y1: r(mk.y1),
|
|
898
|
+
x2: r(mk.x2),
|
|
899
|
+
y2: r(mk.y2),
|
|
900
|
+
stroke: mk.stroke,
|
|
901
|
+
strokeWidth: mk.w,
|
|
902
|
+
strokeOpacity: mk.opacity,
|
|
903
|
+
strokeDasharray: mk.dash,
|
|
904
|
+
strokeLinecap: mk.cap ? 'round' : undefined
|
|
905
|
+
}, i) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
906
|
+
d: mk.d,
|
|
907
|
+
fill: "none",
|
|
908
|
+
stroke: mk.stroke,
|
|
909
|
+
strokeWidth: mk.w,
|
|
910
|
+
strokeOpacity: mk.opacity,
|
|
911
|
+
strokeDasharray: mk.dash,
|
|
912
|
+
strokeLinecap: mk.cap ? 'round' : undefined,
|
|
913
|
+
filter: mk.filter
|
|
914
|
+
}, i))]
|
|
915
|
+
}), oDots.map((d, i) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
916
|
+
style: [styles.anchor, {
|
|
917
|
+
left: pctX(d.x),
|
|
918
|
+
top: d.y
|
|
919
|
+
}],
|
|
920
|
+
pointerEvents: "none",
|
|
921
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
922
|
+
style: {
|
|
923
|
+
position: 'absolute',
|
|
924
|
+
width: d.d,
|
|
925
|
+
height: d.d,
|
|
926
|
+
borderRadius: d.d / 2,
|
|
927
|
+
backgroundColor: d.color
|
|
928
|
+
}
|
|
929
|
+
})
|
|
930
|
+
}, `d-${i}`)), oPulses.map((p, i) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
931
|
+
style: [styles.anchor, {
|
|
932
|
+
left: pctX(p.x),
|
|
933
|
+
top: p.y
|
|
934
|
+
}],
|
|
935
|
+
pointerEvents: "none",
|
|
936
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
937
|
+
style: {
|
|
938
|
+
position: 'absolute',
|
|
939
|
+
width: 7.2,
|
|
940
|
+
height: 7.2,
|
|
941
|
+
borderRadius: 3.6,
|
|
942
|
+
backgroundColor: p.color,
|
|
943
|
+
shadowColor: p.color,
|
|
944
|
+
shadowOpacity: 0.8,
|
|
945
|
+
shadowRadius: 5,
|
|
946
|
+
shadowOffset: {
|
|
947
|
+
width: 0,
|
|
948
|
+
height: 0
|
|
949
|
+
},
|
|
950
|
+
elevation: 3
|
|
951
|
+
}
|
|
952
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(PulseRing, {
|
|
953
|
+
color: p.color
|
|
954
|
+
})]
|
|
955
|
+
}, `p-${i}`)), oNotes.map((nte, i) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
956
|
+
style: [styles.anchor, {
|
|
957
|
+
left: pctX(nte.x),
|
|
958
|
+
top: nte.y - (nte.stat ? 12 : 9),
|
|
959
|
+
alignItems: anchorAlign(nte.anchor)
|
|
960
|
+
}],
|
|
961
|
+
pointerEvents: "none",
|
|
962
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
963
|
+
style: [nte.stat ? styles.stat : styles.note, {
|
|
964
|
+
color: nte.color
|
|
965
|
+
}],
|
|
966
|
+
numberOfLines: 1,
|
|
967
|
+
children: nte.text
|
|
968
|
+
})
|
|
969
|
+
}, `n-${i}`)), oChips.map((c, i) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
970
|
+
style: [styles.anchor, {
|
|
971
|
+
left: pctX(c.x),
|
|
972
|
+
top: c.y,
|
|
973
|
+
alignItems: anchorAlign(c.anchor)
|
|
974
|
+
}],
|
|
975
|
+
pointerEvents: "none",
|
|
976
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
977
|
+
style: [styles.chip, {
|
|
978
|
+
borderColor: `${c.color}59`
|
|
979
|
+
}],
|
|
980
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
981
|
+
style: [styles.chipText, {
|
|
982
|
+
color: c.color
|
|
983
|
+
}],
|
|
984
|
+
numberOfLines: 1,
|
|
985
|
+
children: c.text
|
|
986
|
+
})
|
|
987
|
+
})
|
|
988
|
+
}, `c-${i}`))]
|
|
989
|
+
})
|
|
990
|
+
});
|
|
991
|
+
}
|
|
992
|
+
const styles = _reactNative.StyleSheet.create({
|
|
993
|
+
root: {
|
|
994
|
+
width: '100%'
|
|
995
|
+
},
|
|
996
|
+
// zero-size anchor centered on its point: absolutely-positioned children with
|
|
997
|
+
// no offsets are placed by alignItems/justifyContent (Yoga static position),
|
|
998
|
+
// so dots/text/chips stay round & legible under the SVG stretch.
|
|
999
|
+
anchor: {
|
|
1000
|
+
position: 'absolute',
|
|
1001
|
+
width: 0,
|
|
1002
|
+
height: 0,
|
|
1003
|
+
alignItems: 'center',
|
|
1004
|
+
justifyContent: 'center'
|
|
1005
|
+
},
|
|
1006
|
+
// pulse ring riding the peak / trace-head dot (mirrors the web SMIL pulse)
|
|
1007
|
+
pulse: {
|
|
1008
|
+
position: 'absolute',
|
|
1009
|
+
width: 9,
|
|
1010
|
+
height: 9,
|
|
1011
|
+
borderRadius: 4.5,
|
|
1012
|
+
borderWidth: 1.4
|
|
1013
|
+
},
|
|
1014
|
+
// tiny mono annotations (title, zone labels, axis captions, MIN labels)
|
|
1015
|
+
note: {
|
|
1016
|
+
position: 'absolute',
|
|
1017
|
+
fontFamily: _tokens.fonts.mono,
|
|
1018
|
+
fontSize: 8.5,
|
|
1019
|
+
lineHeight: 9,
|
|
1020
|
+
letterSpacing: 0.5
|
|
1021
|
+
},
|
|
1022
|
+
// top-right bold stat (the catalog's Space Grotesk 12px header stat)
|
|
1023
|
+
stat: {
|
|
1024
|
+
position: 'absolute',
|
|
1025
|
+
fontFamily: _tokens.fonts.display,
|
|
1026
|
+
fontWeight: '700',
|
|
1027
|
+
fontSize: 12,
|
|
1028
|
+
lineHeight: 12
|
|
1029
|
+
},
|
|
1030
|
+
// chip-pill labels (dark chip + tinted hairline border — the catalog's tag())
|
|
1031
|
+
chip: {
|
|
1032
|
+
position: 'absolute',
|
|
1033
|
+
paddingHorizontal: 6,
|
|
1034
|
+
paddingVertical: 2,
|
|
1035
|
+
borderRadius: 999,
|
|
1036
|
+
borderWidth: 1,
|
|
1037
|
+
backgroundColor: `${_tokens.colors.bg0}C7`
|
|
1038
|
+
},
|
|
1039
|
+
chipText: {
|
|
1040
|
+
fontFamily: _tokens.fonts.mono,
|
|
1041
|
+
fontSize: 8,
|
|
1042
|
+
lineHeight: 9,
|
|
1043
|
+
letterSpacing: 0.4
|
|
1044
|
+
}
|
|
1045
|
+
});
|
|
1046
|
+
//# sourceMappingURL=SessionChart.js.map
|