@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,636 @@
|
|
|
1
|
+
import { useEffect, useId, useRef, type ReactNode } from 'react';
|
|
2
|
+
import { Animated, Easing, View, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import Svg, { Circle, ClipPath, Defs, FeGaussianBlur, Filter, G, Line, Path, Rect, Text as SvgText } from 'react-native-svg';
|
|
4
|
+
import { colors, fonts } from '@lockin90/tokens';
|
|
5
|
+
|
|
6
|
+
const AnimatedCircle = Animated.createAnimatedComponent(Circle);
|
|
7
|
+
const AnimatedRect = Animated.createAnimatedComponent(Rect);
|
|
8
|
+
|
|
9
|
+
/* VitalsStrip — the catalog vitals family (VT-01…VT-05,
|
|
10
|
+
lockin90-design/charts/vitals-charts.html): ECG-style rhythm strips —
|
|
11
|
+
heartbeat, HRV, the monitor look. Five variants in a fixed 320×150
|
|
12
|
+
viewBox: sharp PQRST polyline beats on faint ECG-paper verticals with a
|
|
13
|
+
big mono BPM readout, the uneven-RR HRV explainer with a ms bracket
|
|
14
|
+
ruler, the bedside monitor (ECG + respiration + stat column), the
|
|
15
|
+
compressed overnight HR curve, and the one-premature-beat anomaly flag.
|
|
16
|
+
Native twin of `@lockin90/ui` VitalsStrip — same prop API; glows are real
|
|
17
|
+
Gaussian-blurred duplicate strokes (Fabric-native SVG filters in
|
|
18
|
+
react-native-svg 15). */
|
|
19
|
+
|
|
20
|
+
export type VitalsStripVariant =
|
|
21
|
+
| 'ecg-strip' /* VT-01 — PQRST beats + big BPM + pulse on the last R peak */
|
|
22
|
+
| 'hrv-rhythm' /* VT-02 — uneven RR spacing + ms bracket ruler + HRV pill */
|
|
23
|
+
| 'monitor' /* VT-03 — ECG + respiration + HR/HRV/RESP stat column */
|
|
24
|
+
| 'night-hr' /* VT-04 — overnight curve, LOW dip pill, WAKE spike */
|
|
25
|
+
| 'anomaly-beat'; /* VT-05 — one premature beat coral + dashed ring + pill */
|
|
26
|
+
|
|
27
|
+
export interface VitalsStripProps {
|
|
28
|
+
/** Catalog variant (VT-01…VT-05). */
|
|
29
|
+
variant?: VitalsStripVariant;
|
|
30
|
+
/** RR intervals in **milliseconds**, one per beat (uneven spacing IS the
|
|
31
|
+
* data — the HRV story). Defaults per variant reproduce the catalog. */
|
|
32
|
+
rr?: number[];
|
|
33
|
+
/** Beats per minute — the VT-01 big readout / VT-03 HR stat. */
|
|
34
|
+
bpm?: number;
|
|
35
|
+
/** HRV in ms — the VT-02 pill / VT-03 stat. */
|
|
36
|
+
hrv?: number;
|
|
37
|
+
/** Breaths per minute — the VT-03 RESP stat. */
|
|
38
|
+
resp?: number;
|
|
39
|
+
/** `night-hr` overnight BPM samples (VT-04). */
|
|
40
|
+
nightBpm?: number[];
|
|
41
|
+
/** `night-hr` dip pill (default `LOW ${min}`; anchored at the minimum). */
|
|
42
|
+
lowLabel?: string;
|
|
43
|
+
/** `night-hr` wake-spike sample index (`null` hides the marker). */
|
|
44
|
+
wakeIndex?: number | null;
|
|
45
|
+
/** `night-hr` wake pill text. */
|
|
46
|
+
wakeLabel?: string;
|
|
47
|
+
/** `anomaly-beat` premature-beat index (default: the shortest RR). */
|
|
48
|
+
anomalyIndex?: number;
|
|
49
|
+
/** `anomaly-beat` pill text. */
|
|
50
|
+
anomalyLabel?: string;
|
|
51
|
+
/** Bottom-left mono note (per-variant catalog default). */
|
|
52
|
+
caption?: string;
|
|
53
|
+
/** `night-hr` axis captions, spread evenly. */
|
|
54
|
+
ticks?: string[];
|
|
55
|
+
/** Trace color token (defaults: mint; `hrv-rhythm` cyan; `night-hr` indigo). */
|
|
56
|
+
color?: string;
|
|
57
|
+
/** Top-left mono caption (e.g. 'RESTING HR · LIVE'). */
|
|
58
|
+
title?: string;
|
|
59
|
+
/** Glow underlay along the trace (the catalog `cfg.shine`). */
|
|
60
|
+
shine?: boolean;
|
|
61
|
+
/** Disable the R-peak pulse animation (static halo ring instead). */
|
|
62
|
+
still?: boolean;
|
|
63
|
+
/** Accessible description of the chart. */
|
|
64
|
+
ariaLabel?: string;
|
|
65
|
+
/** Optional container style. */
|
|
66
|
+
style?: StyleProp<ViewStyle>;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* ---- catalog geometry (viewBox units — charts/catalog.js + vitals page) ---- */
|
|
70
|
+
const W = 320;
|
|
71
|
+
const H = 150;
|
|
72
|
+
const PAD = { l: 10, r: 12, t: 16, b: 14 };
|
|
73
|
+
const PLOT_H = H - PAD.t - PAD.b; // 120
|
|
74
|
+
const GRID_ROWS = [0.25, 0.5, 0.75] as const;
|
|
75
|
+
|
|
76
|
+
/** the catalog's px↔ms scale: 1 viewBox px of RR width = 23.5 ms. */
|
|
77
|
+
const MS_PER_PX = 23.5;
|
|
78
|
+
|
|
79
|
+
/** PQRST beat template: [fraction of RR, normalized amplitude] — sharp, unsmoothed. */
|
|
80
|
+
const BEAT: Array<[number, number]> = [
|
|
81
|
+
[0, 0],
|
|
82
|
+
[0.13, 0],
|
|
83
|
+
[0.18, 0.14],
|
|
84
|
+
[0.23, 0],
|
|
85
|
+
[0.33, 0],
|
|
86
|
+
[0.36, -0.12],
|
|
87
|
+
[0.4, 1],
|
|
88
|
+
[0.44, -0.3],
|
|
89
|
+
[0.48, 0],
|
|
90
|
+
[0.56, 0],
|
|
91
|
+
[0.64, 0.24],
|
|
92
|
+
[0.72, 0],
|
|
93
|
+
[1, 0],
|
|
94
|
+
];
|
|
95
|
+
|
|
96
|
+
/** Round for compact attribute values. */
|
|
97
|
+
const rd = (n: number) => Math.round(n * 100) / 100;
|
|
98
|
+
|
|
99
|
+
interface EcgRun {
|
|
100
|
+
d: string;
|
|
101
|
+
peaks: Array<{ x: number; y: number }>;
|
|
102
|
+
/** every polyline waypoint — drives the live-sweep write head. */
|
|
103
|
+
pts: Array<{ x: number; y: number }>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** A run of PQRST beats: polyline path + the R-peak positions (BEAT index 6). */
|
|
107
|
+
function ecgRun(x0: number, y0: number, amp: number, widths: number[]): EcgRun {
|
|
108
|
+
let d = '';
|
|
109
|
+
const peaks: EcgRun['peaks'] = [];
|
|
110
|
+
const pts: EcgRun['pts'] = [];
|
|
111
|
+
let x = x0;
|
|
112
|
+
for (const w of widths) {
|
|
113
|
+
BEAT.forEach((q, i) => {
|
|
114
|
+
const px = x + q[0] * w;
|
|
115
|
+
const py = y0 - q[1] * amp;
|
|
116
|
+
d += `${d ? 'L' : 'M'}${rd(px)} ${rd(py)}`;
|
|
117
|
+
pts.push({ x: px, y: py });
|
|
118
|
+
if (i === 6) peaks.push({ x: px, y: py });
|
|
119
|
+
});
|
|
120
|
+
x += w;
|
|
121
|
+
}
|
|
122
|
+
return { d, peaks, pts };
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/** Mono catalog label (8.5px JetBrains Mono, ~.06em tracking). */
|
|
126
|
+
function Label({
|
|
127
|
+
x,
|
|
128
|
+
y,
|
|
129
|
+
fill,
|
|
130
|
+
anchor = 'middle',
|
|
131
|
+
children,
|
|
132
|
+
}: {
|
|
133
|
+
x: number;
|
|
134
|
+
y: number;
|
|
135
|
+
fill: string;
|
|
136
|
+
anchor?: 'start' | 'middle' | 'end';
|
|
137
|
+
children: string;
|
|
138
|
+
}) {
|
|
139
|
+
return (
|
|
140
|
+
<SvgText x={rd(x)} y={rd(y)} fill={fill} textAnchor={anchor} fontSize={8.5} fontFamily={fonts.mono} letterSpacing={0.5}>
|
|
141
|
+
{children}
|
|
142
|
+
</SvgText>
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/** Chip-pill tag (the catalog `tag()`): dark bg-0 pill + tinted hairline. */
|
|
147
|
+
function Tag({
|
|
148
|
+
x,
|
|
149
|
+
y,
|
|
150
|
+
color,
|
|
151
|
+
anchor = 'middle',
|
|
152
|
+
text,
|
|
153
|
+
}: {
|
|
154
|
+
x: number;
|
|
155
|
+
y: number;
|
|
156
|
+
color: string;
|
|
157
|
+
anchor?: 'start' | 'middle' | 'end';
|
|
158
|
+
text: string;
|
|
159
|
+
}) {
|
|
160
|
+
const wpx = text.length * 5.35 + 12;
|
|
161
|
+
let xa = anchor === 'end' ? x - wpx : anchor === 'start' ? x : x - wpx / 2;
|
|
162
|
+
xa = Math.max(PAD.l - 4, Math.min(xa, W - PAD.r - wpx + 4));
|
|
163
|
+
return (
|
|
164
|
+
<G>
|
|
165
|
+
<Rect
|
|
166
|
+
x={rd(xa)}
|
|
167
|
+
y={rd(y - 6.5)}
|
|
168
|
+
width={rd(wpx)}
|
|
169
|
+
height={13}
|
|
170
|
+
rx={6.5}
|
|
171
|
+
fill={`${colors.bg0}C7`}
|
|
172
|
+
stroke={color}
|
|
173
|
+
strokeOpacity={0.35}
|
|
174
|
+
strokeWidth={0.8}
|
|
175
|
+
/>
|
|
176
|
+
<SvgText
|
|
177
|
+
x={rd(xa + wpx / 2)}
|
|
178
|
+
y={rd(y + 2.8)}
|
|
179
|
+
fill={color}
|
|
180
|
+
textAnchor="middle"
|
|
181
|
+
fontSize={8}
|
|
182
|
+
fontFamily={fonts.mono}
|
|
183
|
+
letterSpacing={0.4}
|
|
184
|
+
>
|
|
185
|
+
{text}
|
|
186
|
+
</SvgText>
|
|
187
|
+
</G>
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/** Glowing dot + expanding pulse ring — the catalog `pulseDot`. The ring
|
|
192
|
+
* animates r 3.6→11 / opacity 0.8→0 over 1.8s (the web SMIL `<animate>`
|
|
193
|
+
* twin; SVG props aren't native-drivable so useNativeDriver is false — one
|
|
194
|
+
* circle at this rate is cheap). `still` renders the static halo instead. */
|
|
195
|
+
function PulseDot({ x, y, color, still = false }: { x: number; y: number; color: string; still?: boolean }) {
|
|
196
|
+
const anim = useRef(new Animated.Value(0)).current;
|
|
197
|
+
|
|
198
|
+
useEffect(() => {
|
|
199
|
+
if (still) return;
|
|
200
|
+
const loop = Animated.loop(
|
|
201
|
+
Animated.timing(anim, { toValue: 1, duration: 1800, easing: Easing.linear, useNativeDriver: false }),
|
|
202
|
+
);
|
|
203
|
+
loop.start();
|
|
204
|
+
return () => loop.stop();
|
|
205
|
+
}, [still, anim]);
|
|
206
|
+
|
|
207
|
+
const r = anim.interpolate({ inputRange: [0, 1], outputRange: [3.6, 11] });
|
|
208
|
+
const ringOpacity = anim.interpolate({ inputRange: [0, 1], outputRange: [0.8, 0] });
|
|
209
|
+
|
|
210
|
+
return (
|
|
211
|
+
<G>
|
|
212
|
+
<Circle cx={rd(x)} cy={rd(y)} r={6.6} fill={color} opacity={0.35} />
|
|
213
|
+
<Circle cx={rd(x)} cy={rd(y)} r={3.6} fill={color} />
|
|
214
|
+
{still ? (
|
|
215
|
+
<Circle cx={rd(x)} cy={rd(y)} r={7} fill="none" stroke={color} strokeWidth={1.4} opacity={0.4} />
|
|
216
|
+
) : (
|
|
217
|
+
<AnimatedCircle cx={rd(x)} cy={rd(y)} r={r} fill="none" stroke={color} strokeWidth={1.4} opacity={ringOpacity} />
|
|
218
|
+
)}
|
|
219
|
+
</G>
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/** Live monitor sweep (VT-01, `still` off) — the trace is revealed left→right
|
|
224
|
+
* by a clip rect animated at constant x speed, and the active point rides the
|
|
225
|
+
* tip of the line like a bedside monitor's write head. Both the clip width and
|
|
226
|
+
* the dot position derive linearly from the same progress value, so the dot
|
|
227
|
+
* always sits exactly on the reveal edge. Loops every SWEEP_MS. */
|
|
228
|
+
const SWEEP_MS = 4200;
|
|
229
|
+
function LiveEcgTrace({ run, color, shine }: { run: EcgRun; color: string; shine: boolean }) {
|
|
230
|
+
const uid = useId().replace(/[^a-zA-Z0-9]/g, '');
|
|
231
|
+
const clipId = `lk-vt-clip-${uid}`;
|
|
232
|
+
const progress = useRef(new Animated.Value(0)).current;
|
|
233
|
+
|
|
234
|
+
useEffect(() => {
|
|
235
|
+
const loop = Animated.loop(
|
|
236
|
+
Animated.timing(progress, { toValue: 1, duration: SWEEP_MS, easing: Easing.linear, useNativeDriver: false }),
|
|
237
|
+
);
|
|
238
|
+
loop.start();
|
|
239
|
+
return () => loop.stop();
|
|
240
|
+
}, [progress]);
|
|
241
|
+
|
|
242
|
+
const xs = run.pts.map((p) => p.x);
|
|
243
|
+
const ys = run.pts.map((p) => p.y);
|
|
244
|
+
const first = xs[0];
|
|
245
|
+
const span = Math.max(1, xs[xs.length - 1] - first);
|
|
246
|
+
// strictly-increasing progress fractions — the vertical QRS segments repeat an
|
|
247
|
+
// x position, and interpolate() rejects a non-increasing inputRange, so equal
|
|
248
|
+
// fractions get nudged forward by an invisible epsilon.
|
|
249
|
+
const fr: number[] = [];
|
|
250
|
+
for (let i = 0; i < xs.length; i++) {
|
|
251
|
+
const f = (xs[i] - first) / span;
|
|
252
|
+
fr.push(i > 0 && f <= fr[i - 1] ? fr[i - 1] + 1e-4 : f);
|
|
253
|
+
}
|
|
254
|
+
const cx = progress.interpolate({ inputRange: fr, outputRange: xs });
|
|
255
|
+
const cy = progress.interpolate({ inputRange: fr, outputRange: ys });
|
|
256
|
+
const clipW = progress.interpolate({ inputRange: [0, 1], outputRange: [0.01, span + 8] });
|
|
257
|
+
|
|
258
|
+
return (
|
|
259
|
+
<G>
|
|
260
|
+
<Defs>
|
|
261
|
+
<ClipPath id={clipId}>
|
|
262
|
+
<AnimatedRect x={rd(first - 4)} y={0} width={clipW} height={H} />
|
|
263
|
+
</ClipPath>
|
|
264
|
+
</Defs>
|
|
265
|
+
<G clipPath={`url(#${clipId})`}>
|
|
266
|
+
<Trace d={run.d} color={color} shine={shine} />
|
|
267
|
+
</G>
|
|
268
|
+
{/* the write head — halo + core riding the tip of the line */}
|
|
269
|
+
<AnimatedCircle cx={cx} cy={cy} r={6.6} fill={color} opacity={0.35} />
|
|
270
|
+
<AnimatedCircle cx={cx} cy={cy} r={3.6} fill={color} />
|
|
271
|
+
</G>
|
|
272
|
+
);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/** Faint ECG-paper verticals every 14px (the page's `paper`). */
|
|
276
|
+
function Paper({ y0, y1 }: { y0: number; y1: number }) {
|
|
277
|
+
const lines: number[] = [];
|
|
278
|
+
for (let x = PAD.l; x <= W - PAD.r; x += 14) lines.push(x);
|
|
279
|
+
return (
|
|
280
|
+
<G>
|
|
281
|
+
{lines.map((x) => (
|
|
282
|
+
<Line key={x} x1={x} x2={x} y1={y0} y2={y1} stroke={colors.text} strokeOpacity={0.04} strokeWidth={1} />
|
|
283
|
+
))}
|
|
284
|
+
</G>
|
|
285
|
+
);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/** ECG trace + optional glow — a Gaussian-blurred duplicate stroke behind the
|
|
289
|
+
* crisp trace: the native twin of the web `.lk-vitals-shine` blur(5px)
|
|
290
|
+
* underlay. (Wide un-blurred copies read as hard outlines on device.) */
|
|
291
|
+
function Trace({ d, color, shine }: { d: string; color: string; shine: boolean }) {
|
|
292
|
+
const uid = useId().replace(/[^a-zA-Z0-9]/g, '');
|
|
293
|
+
const blurId = `lk-vt-blur-${uid}`;
|
|
294
|
+
return (
|
|
295
|
+
<G>
|
|
296
|
+
{shine ? (
|
|
297
|
+
/* region in user space over the full canvas so the flat trace never
|
|
298
|
+
clips the blur to its bounding box */
|
|
299
|
+
<Defs>
|
|
300
|
+
<Filter id={blurId} filterUnits="userSpaceOnUse" x={-10} y={-10} width={W + 20} height={H + 20}>
|
|
301
|
+
<FeGaussianBlur stdDeviation={2.5} />
|
|
302
|
+
</Filter>
|
|
303
|
+
</Defs>
|
|
304
|
+
) : null}
|
|
305
|
+
{shine ? (
|
|
306
|
+
<Path
|
|
307
|
+
d={d}
|
|
308
|
+
fill="none"
|
|
309
|
+
stroke={color}
|
|
310
|
+
strokeWidth={6}
|
|
311
|
+
opacity={0.45}
|
|
312
|
+
strokeLinecap="round"
|
|
313
|
+
filter={`url(#${blurId})`}
|
|
314
|
+
/>
|
|
315
|
+
) : null}
|
|
316
|
+
<Path d={d} fill="none" stroke={color} strokeWidth={1.8} strokeLinejoin="round" strokeLinecap="round" />
|
|
317
|
+
</G>
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/* Fritsch–Carlson monotone cubic — the catalog's `smoothPath` (VT-04 only). */
|
|
322
|
+
function monotonePath(pts: Array<[number, number]>): string {
|
|
323
|
+
const n = pts.length;
|
|
324
|
+
if (n < 3) return pts.map(([x, y], i) => `${i === 0 ? 'M' : 'L'}${rd(x)},${rd(y)}`).join(' ');
|
|
325
|
+
const dx: number[] = [];
|
|
326
|
+
const m: number[] = [];
|
|
327
|
+
const tg: number[] = [];
|
|
328
|
+
for (let i = 0; i < n - 1; i++) {
|
|
329
|
+
dx[i] = pts[i + 1][0] - pts[i][0];
|
|
330
|
+
m[i] = (pts[i + 1][1] - pts[i][1]) / dx[i];
|
|
331
|
+
}
|
|
332
|
+
tg[0] = m[0];
|
|
333
|
+
tg[n - 1] = m[n - 2];
|
|
334
|
+
for (let i = 1; i < n - 1; i++) tg[i] = m[i - 1] * m[i] <= 0 ? 0 : (m[i - 1] + m[i]) / 2;
|
|
335
|
+
for (let i = 0; i < n - 1; i++) {
|
|
336
|
+
if (m[i] === 0) {
|
|
337
|
+
tg[i] = 0;
|
|
338
|
+
tg[i + 1] = 0;
|
|
339
|
+
} else {
|
|
340
|
+
const a = tg[i] / m[i];
|
|
341
|
+
const b = tg[i + 1] / m[i];
|
|
342
|
+
const s = a * a + b * b;
|
|
343
|
+
if (s > 9) {
|
|
344
|
+
const tau = 3 / Math.sqrt(s);
|
|
345
|
+
tg[i] = tau * a * m[i];
|
|
346
|
+
tg[i + 1] = tau * b * m[i];
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
let d = `M${rd(pts[0][0])},${rd(pts[0][1])}`;
|
|
351
|
+
for (let i = 0; i < n - 1; i++) {
|
|
352
|
+
const h = dx[i] / 3;
|
|
353
|
+
d += ` C${rd(pts[i][0] + h)},${rd(pts[i][1] + h * tg[i])} ${rd(pts[i + 1][0] - h)},${rd(
|
|
354
|
+
pts[i + 1][1] - h * tg[i + 1],
|
|
355
|
+
)} ${rd(pts[i + 1][0])},${rd(pts[i + 1][1])}`;
|
|
356
|
+
}
|
|
357
|
+
return d;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/* catalog default RRs, in ms (page px × 23.5) */
|
|
361
|
+
const RR_ECG = [987, 1034, 940, 1058, 964, 1034];
|
|
362
|
+
const RR_HRV = [964, 1034, 893, 1081, 846, 1058, 940];
|
|
363
|
+
const RR_MONITOR = [893, 940, 870, 964, 893, 940];
|
|
364
|
+
const RR_ANOMALY = [987, 1034, 564, 1363, 1011, 1034];
|
|
365
|
+
const DEFAULT_NIGHT = [62, 58, 54, 50, 46, 44, 45, 48, 44, 46, 52, 58, 64];
|
|
366
|
+
|
|
367
|
+
/* per-variant frame constants (page draw() branches) */
|
|
368
|
+
const FRAMES = {
|
|
369
|
+
'ecg-strip': { paper: [30, 118], y0: 82, amp: 36 },
|
|
370
|
+
'hrv-rhythm': { paper: [26, 104], y0: 70, amp: 30 },
|
|
371
|
+
monitor: { paper: [26, 122], y0: 56, amp: 24 },
|
|
372
|
+
'anomaly-beat': { paper: [30, 118], y0: 82, amp: 34 },
|
|
373
|
+
} as const;
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* VitalsStrip — the vitals rhythm-strip family (catalog VT-01…VT-05): sharp
|
|
377
|
+
* PQRST polyline beats (never smoothed — the sharpness is the ECG look) on
|
|
378
|
+
* faint paper verticals. RR intervals are real milliseconds; the strip
|
|
379
|
+
* renders them at the catalog's 23.5 ms/px so uneven spacing reads exactly
|
|
380
|
+
* like the design page. `night-hr` swaps the beats for the compressed
|
|
381
|
+
* overnight HR curve.
|
|
382
|
+
*/
|
|
383
|
+
export function VitalsStrip({
|
|
384
|
+
variant = 'ecg-strip',
|
|
385
|
+
rr,
|
|
386
|
+
bpm,
|
|
387
|
+
hrv = 84,
|
|
388
|
+
resp = 14,
|
|
389
|
+
nightBpm = DEFAULT_NIGHT,
|
|
390
|
+
lowLabel,
|
|
391
|
+
wakeIndex = 9,
|
|
392
|
+
wakeLabel = 'WAKE',
|
|
393
|
+
anomalyIndex,
|
|
394
|
+
anomalyLabel = 'IRREGULAR · 1 BEAT',
|
|
395
|
+
caption,
|
|
396
|
+
ticks = ['11PM', '3AM', '7AM'],
|
|
397
|
+
color,
|
|
398
|
+
title,
|
|
399
|
+
shine = false,
|
|
400
|
+
still = false,
|
|
401
|
+
ariaLabel = 'Vitals rhythm strip',
|
|
402
|
+
style,
|
|
403
|
+
}: VitalsStripProps) {
|
|
404
|
+
const uid = useId().replace(/[^a-zA-Z0-9]/g, '');
|
|
405
|
+
const blurId = `lk-vt-night-blur-${uid}`;
|
|
406
|
+
let body: ReactNode = null;
|
|
407
|
+
|
|
408
|
+
if (variant === 'night-hr') {
|
|
409
|
+
/* VT-04 — compressed overnight HR curve in a shaded sleep window */
|
|
410
|
+
const c = color ?? colors.indigo;
|
|
411
|
+
const x0 = PAD.l + 8;
|
|
412
|
+
const x1 = W - PAD.r - 8;
|
|
413
|
+
const pts: Array<[number, number]> = nightBpm.map((v, i) => [
|
|
414
|
+
x0 + ((x1 - x0) * i) / Math.max(1, nightBpm.length - 1),
|
|
415
|
+
128 - (v - 40) * 2.6,
|
|
416
|
+
]);
|
|
417
|
+
let minI = 0;
|
|
418
|
+
nightBpm.forEach((v, i) => {
|
|
419
|
+
if (v < nightBpm[minI]) minI = i;
|
|
420
|
+
});
|
|
421
|
+
const min = pts.length > 0 ? pts[minI] : null;
|
|
422
|
+
const wake = wakeIndex != null && wakeIndex >= 0 && wakeIndex < pts.length ? pts[wakeIndex] : null;
|
|
423
|
+
body = (
|
|
424
|
+
<G>
|
|
425
|
+
{/* catalog grid */}
|
|
426
|
+
{GRID_ROWS.map((f) => (
|
|
427
|
+
<Line
|
|
428
|
+
key={f}
|
|
429
|
+
x1={PAD.l}
|
|
430
|
+
x2={W - PAD.r}
|
|
431
|
+
y1={rd(PAD.t + PLOT_H * f)}
|
|
432
|
+
y2={rd(PAD.t + PLOT_H * f)}
|
|
433
|
+
stroke={colors.border}
|
|
434
|
+
strokeOpacity={0.55}
|
|
435
|
+
strokeWidth={1}
|
|
436
|
+
/>
|
|
437
|
+
))}
|
|
438
|
+
<Line x1={PAD.l} x2={W - PAD.r} y1={H - PAD.b} y2={H - PAD.b} stroke={colors.border} strokeWidth={1} />
|
|
439
|
+
{/* shaded sleep window */}
|
|
440
|
+
<Rect x={x0} y={PAD.t + 4} width={x1 - x0} height={108} fill={c} opacity={0.07} />
|
|
441
|
+
{/* shine — a Gaussian-blurred duplicate of the curve behind it (the web
|
|
442
|
+
`.lk-vitals-shine` blur(5px) underlay) */}
|
|
443
|
+
{shine ? (
|
|
444
|
+
<G>
|
|
445
|
+
<Defs>
|
|
446
|
+
<Filter id={blurId} filterUnits="userSpaceOnUse" x={-10} y={-10} width={W + 20} height={H + 20}>
|
|
447
|
+
<FeGaussianBlur stdDeviation={2.5} />
|
|
448
|
+
</Filter>
|
|
449
|
+
</Defs>
|
|
450
|
+
<Path
|
|
451
|
+
d={monotonePath(pts)}
|
|
452
|
+
fill="none"
|
|
453
|
+
stroke={c}
|
|
454
|
+
strokeWidth={7}
|
|
455
|
+
strokeLinecap="round"
|
|
456
|
+
opacity={0.45}
|
|
457
|
+
filter={`url(#${blurId})`}
|
|
458
|
+
/>
|
|
459
|
+
</G>
|
|
460
|
+
) : null}
|
|
461
|
+
<Path d={monotonePath(pts)} fill="none" stroke={c} strokeWidth={2.2} strokeLinecap="round" />
|
|
462
|
+
{/* LOW dip */}
|
|
463
|
+
{min ? (
|
|
464
|
+
<G>
|
|
465
|
+
<Circle cx={rd(min[0])} cy={rd(min[1])} r={3.2} fill={colors.mint} />
|
|
466
|
+
<Tag x={min[0]} y={min[1] + 14} color={colors.mint} text={lowLabel ?? `LOW ${nightBpm[minI]}`} />
|
|
467
|
+
</G>
|
|
468
|
+
) : null}
|
|
469
|
+
{/* WAKE spike */}
|
|
470
|
+
{wake ? (
|
|
471
|
+
<G>
|
|
472
|
+
<Circle cx={rd(wake[0])} cy={rd(wake[1])} r={3.2} fill={colors.zoneMid} />
|
|
473
|
+
<Tag x={wake[0] + 4} y={wake[1] - 12} color={colors.zoneMid} anchor="start" text={wakeLabel} />
|
|
474
|
+
</G>
|
|
475
|
+
) : null}
|
|
476
|
+
{ticks.map((t, i) => (
|
|
477
|
+
<Label key={t} x={x0 + ((x1 - x0) * i) / Math.max(1, ticks.length - 1)} y={H - 3} fill={colors.textFaint}>
|
|
478
|
+
{t}
|
|
479
|
+
</Label>
|
|
480
|
+
))}
|
|
481
|
+
</G>
|
|
482
|
+
);
|
|
483
|
+
} else {
|
|
484
|
+
const frame = FRAMES[variant];
|
|
485
|
+
const rrMs =
|
|
486
|
+
rr ??
|
|
487
|
+
(variant === 'hrv-rhythm'
|
|
488
|
+
? RR_HRV
|
|
489
|
+
: variant === 'monitor'
|
|
490
|
+
? RR_MONITOR
|
|
491
|
+
: variant === 'anomaly-beat'
|
|
492
|
+
? RR_ANOMALY
|
|
493
|
+
: RR_ECG);
|
|
494
|
+
const widths = rrMs.map((ms) => ms / MS_PER_PX);
|
|
495
|
+
const run = ecgRun(PAD.l + 4, frame.y0, frame.amp, widths);
|
|
496
|
+
const traceColor = color ?? (variant === 'hrv-rhythm' ? colors.cyan : colors.mint);
|
|
497
|
+
|
|
498
|
+
if (variant === 'ecg-strip') {
|
|
499
|
+
/* VT-01 — the heartbeat strip + big BPM */
|
|
500
|
+
const last = run.peaks[run.peaks.length - 1];
|
|
501
|
+
body = (
|
|
502
|
+
<G>
|
|
503
|
+
<Paper y0={frame.paper[0]} y1={frame.paper[1]} />
|
|
504
|
+
{still ? (
|
|
505
|
+
<>
|
|
506
|
+
<Trace d={run.d} color={traceColor} shine={shine} />
|
|
507
|
+
{last ? <PulseDot x={last.x} y={last.y} color={traceColor} still /> : null}
|
|
508
|
+
</>
|
|
509
|
+
) : (
|
|
510
|
+
<LiveEcgTrace run={run} color={traceColor} shine={shine} />
|
|
511
|
+
)}
|
|
512
|
+
<SvgText x={W - PAD.r - 4} y={46} fill={traceColor} textAnchor="end" fontSize={24} fontFamily={fonts.display} fontWeight="700">
|
|
513
|
+
{String(bpm ?? 62)}
|
|
514
|
+
</SvgText>
|
|
515
|
+
<Label x={W - PAD.r - 4} y={58} fill={colors.textFaint} anchor="end">
|
|
516
|
+
BPM
|
|
517
|
+
</Label>
|
|
518
|
+
<Label x={PAD.l + 2} y={132} fill={colors.textFaint} anchor="start">
|
|
519
|
+
{caption ?? 'RESTING · SINUS RHYTHM'}
|
|
520
|
+
</Label>
|
|
521
|
+
</G>
|
|
522
|
+
);
|
|
523
|
+
} else if (variant === 'hrv-rhythm') {
|
|
524
|
+
/* VT-02 — uneven RR spacing + ms bracket ruler */
|
|
525
|
+
const brackets: ReactNode[] = [];
|
|
526
|
+
for (let i = 0; i < run.peaks.length - 1; i++) {
|
|
527
|
+
const a = run.peaks[i].x;
|
|
528
|
+
const b = run.peaks[i + 1].x;
|
|
529
|
+
brackets.push(
|
|
530
|
+
<G key={i}>
|
|
531
|
+
<Line x1={rd(a)} x2={rd(b)} y1={112} y2={112} stroke={colors.text} strokeOpacity={0.25} strokeWidth={1} />
|
|
532
|
+
<Line x1={rd(a)} x2={rd(a)} y1={108} y2={116} stroke={colors.text} strokeOpacity={0.25} strokeWidth={1} />
|
|
533
|
+
<Line x1={rd(b)} x2={rd(b)} y1={108} y2={116} stroke={colors.text} strokeOpacity={0.25} strokeWidth={1} />
|
|
534
|
+
<Label x={(a + b) / 2} y={126} fill={colors.textDim}>
|
|
535
|
+
{String(Math.round(rrMs[i + 1]))}
|
|
536
|
+
</Label>
|
|
537
|
+
</G>,
|
|
538
|
+
);
|
|
539
|
+
}
|
|
540
|
+
body = (
|
|
541
|
+
<G>
|
|
542
|
+
<Paper y0={frame.paper[0]} y1={frame.paper[1]} />
|
|
543
|
+
<Trace d={run.d} color={traceColor} shine={shine} />
|
|
544
|
+
{brackets}
|
|
545
|
+
<Label x={PAD.l + 2} y={140} fill={colors.textFaint} anchor="start">
|
|
546
|
+
{caption ?? 'RR INTERVALS · MS'}
|
|
547
|
+
</Label>
|
|
548
|
+
<Tag x={W - PAD.r - 6} y={22} color={traceColor} anchor="end" text={`HRV ${hrv}MS`} />
|
|
549
|
+
</G>
|
|
550
|
+
);
|
|
551
|
+
} else if (variant === 'monitor') {
|
|
552
|
+
/* VT-03 — ECG + slow respiration + stat column */
|
|
553
|
+
let respD = '';
|
|
554
|
+
for (let x = PAD.l + 4; x <= 240; x += 4)
|
|
555
|
+
respD += `${respD ? 'L' : 'M'}${x} ${rd(104 - Math.sin((x - PAD.l) / 26) * 9)}`;
|
|
556
|
+
const stats: Array<[string, string, string, number]> = [
|
|
557
|
+
[String(bpm ?? 58), 'HR', colors.mint, 56],
|
|
558
|
+
[String(hrv), 'HRV', colors.cyan, 92],
|
|
559
|
+
[String(resp), 'RESP', colors.violet, 128],
|
|
560
|
+
];
|
|
561
|
+
body = (
|
|
562
|
+
<G>
|
|
563
|
+
<Paper y0={frame.paper[0]} y1={frame.paper[1]} />
|
|
564
|
+
<Trace d={run.d} color={traceColor} shine={shine} />
|
|
565
|
+
<Path d={respD} fill="none" stroke={colors.cyan} strokeWidth={1.6} strokeLinecap="round" />
|
|
566
|
+
{stats.map(([num, unit, c, y]) => (
|
|
567
|
+
<G key={unit}>
|
|
568
|
+
<SvgText x={W - PAD.r - 4} y={y} fill={c} textAnchor="end" fontSize={17} fontFamily={fonts.display} fontWeight="700">
|
|
569
|
+
{num}
|
|
570
|
+
</SvgText>
|
|
571
|
+
<Label x={W - PAD.r - 4} y={y + 10} fill={colors.textFaint} anchor="end">
|
|
572
|
+
{unit}
|
|
573
|
+
</Label>
|
|
574
|
+
</G>
|
|
575
|
+
))}
|
|
576
|
+
</G>
|
|
577
|
+
);
|
|
578
|
+
} else {
|
|
579
|
+
/* VT-05 — one premature beat re-drawn coral + dashed ring */
|
|
580
|
+
let aIdx = anomalyIndex ?? 0;
|
|
581
|
+
if (anomalyIndex == null) {
|
|
582
|
+
rrMs.forEach((ms, i) => {
|
|
583
|
+
if (ms < rrMs[aIdx]) aIdx = i;
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
aIdx = Math.max(0, Math.min(widths.length - 1, aIdx));
|
|
587
|
+
let ax = PAD.l + 4;
|
|
588
|
+
for (let i = 0; i < aIdx; i++) ax += widths[i];
|
|
589
|
+
const ab = widths.length > 0 ? ecgRun(ax, frame.y0, frame.amp, [widths[aIdx]]) : null;
|
|
590
|
+
const peak = ab?.peaks[0];
|
|
591
|
+
body = (
|
|
592
|
+
<G>
|
|
593
|
+
<Paper y0={frame.paper[0]} y1={frame.paper[1]} />
|
|
594
|
+
<Trace d={run.d} color={traceColor} shine={shine} />
|
|
595
|
+
{ab ? <Path d={ab.d} fill="none" stroke={colors.zoneLow} strokeWidth={2} strokeLinejoin="round" /> : null}
|
|
596
|
+
{peak ? (
|
|
597
|
+
<G>
|
|
598
|
+
<Circle
|
|
599
|
+
cx={rd(peak.x)}
|
|
600
|
+
cy={frame.y0 - 8}
|
|
601
|
+
r={17}
|
|
602
|
+
fill="none"
|
|
603
|
+
stroke={colors.zoneLow}
|
|
604
|
+
strokeWidth={1}
|
|
605
|
+
strokeDasharray={[3, 3]}
|
|
606
|
+
opacity={0.8}
|
|
607
|
+
/>
|
|
608
|
+
<Tag x={peak.x + 22} y={34} color={colors.zoneLow} anchor="start" text={anomalyLabel} />
|
|
609
|
+
</G>
|
|
610
|
+
) : null}
|
|
611
|
+
<Label x={PAD.l + 2} y={132} fill={colors.textFaint} anchor="start">
|
|
612
|
+
{caption ?? 'PREMATURE BEAT + COMPENSATORY PAUSE'}
|
|
613
|
+
</Label>
|
|
614
|
+
</G>
|
|
615
|
+
);
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
return (
|
|
620
|
+
<View accessibilityRole="image" accessibilityLabel={ariaLabel} style={[styles.root, style]}>
|
|
621
|
+
<Svg width="100%" height="100%" viewBox={`0 0 ${W} ${H}`}>
|
|
622
|
+
{title ? (
|
|
623
|
+
<Label x={PAD.l + 2} y={11} fill={colors.textFaint} anchor="start">
|
|
624
|
+
{title}
|
|
625
|
+
</Label>
|
|
626
|
+
) : null}
|
|
627
|
+
{body}
|
|
628
|
+
</Svg>
|
|
629
|
+
</View>
|
|
630
|
+
);
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
const styles = StyleSheet.create({
|
|
634
|
+
/* fixed catalog aspect (320×150); the Svg scales the viewBox to fit */
|
|
635
|
+
root: { width: '100%', aspectRatio: W / H },
|
|
636
|
+
});
|