@lockin90/ui-native 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +61 -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 +14 -0
- package/README.md +0 -3
|
@@ -0,0 +1,571 @@
|
|
|
1
|
+
import { useId } from 'react';
|
|
2
|
+
import { View, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import Svg, { Circle, Defs, FeGaussianBlur, Filter, G, Line, Path, Rect, Text as SvgText } from 'react-native-svg';
|
|
4
|
+
import { colors, fonts } from '@lockin90/tokens';
|
|
5
|
+
|
|
6
|
+
/* BiomarkerRange — the shared catalog biomarker family (BR-01…BR-05,
|
|
7
|
+
lockin90-design/charts/biomarker-charts.html): lab results the readable way —
|
|
8
|
+
a value dot inside its reference range, drawn in a fixed 320×150 viewBox with
|
|
9
|
+
mono catalog labels. Native twin of `@lockin90/ui` BiomarkerRange — same prop
|
|
10
|
+
API; shine is a real Gaussian-blurred duplicate dot (Fabric-native SVG
|
|
11
|
+
filters in react-native-svg 15) and the BR-02 pulse is a static duplicate
|
|
12
|
+
halo (no CSS animation on native). SUPERSEDES the
|
|
13
|
+
web-only ADMIN ReferenceRangeBar for product surfaces (that one has no
|
|
14
|
+
native twin and stays in `@lockin90/ui/admin`). */
|
|
15
|
+
|
|
16
|
+
export type BiomarkerRangeVariant =
|
|
17
|
+
| 'panel-rows' /* BR-01 — marker rows: faint scale + mint band + value dot + LOW/HIGH flags */
|
|
18
|
+
| 'single-marker' /* BR-02 — one large labeled row: zones, range numbers, pulsing dot + result */
|
|
19
|
+
| 'marker-trend' /* BR-03 — rows + last-4-tests spark + direction arrow per marker */
|
|
20
|
+
| 'panel-grid' /* BR-04 — 2×3 tiles: name + OK/LOW/HIGH verdict + mini row + value */
|
|
21
|
+
| 'range-history'; /* BR-05 — one marker over test dates, line crossing into the band */
|
|
22
|
+
|
|
23
|
+
/** Trend verdict for `marker-trend` — normally derived from `history`. */
|
|
24
|
+
export type BiomarkerTrend = 'improving' | 'worsening' | 'flat';
|
|
25
|
+
|
|
26
|
+
/** One lab marker: a measured value on a display scale with a reference range. */
|
|
27
|
+
export interface BiomarkerMarker {
|
|
28
|
+
/** Short marker name, drawn in mono (e.g. 'VIT D'). */
|
|
29
|
+
name: string;
|
|
30
|
+
/** Latest measured value (same units as the scale). */
|
|
31
|
+
value: number;
|
|
32
|
+
/** Scale floor — the left edge of the drawn track. */
|
|
33
|
+
min: number;
|
|
34
|
+
/** Scale ceiling — the right edge of the drawn track. */
|
|
35
|
+
max: number;
|
|
36
|
+
/** Reference-range lower bound (start of the mint band). */
|
|
37
|
+
low: number;
|
|
38
|
+
/** Reference-range upper bound (end of the mint band). */
|
|
39
|
+
high: number;
|
|
40
|
+
/** Unit appended to the readout (e.g. 'NG/ML' → '48 NG/ML'). */
|
|
41
|
+
unit?: string;
|
|
42
|
+
/** Preformatted readout override when `value + unit` doesn't cut it ('5.2%'). */
|
|
43
|
+
display?: string;
|
|
44
|
+
/** Past test values, oldest → newest (last ≈ `value`). `marker-trend` sparks
|
|
45
|
+
* the last 4; `range-history` plots them all. */
|
|
46
|
+
history?: number[];
|
|
47
|
+
/** Per-test date labels for `range-history`'s x-axis (pairs with `history`). */
|
|
48
|
+
dates?: string[];
|
|
49
|
+
/** Explicit trend override for `marker-trend` (else derived from `history`:
|
|
50
|
+
* moved toward the range = improving, away = worsening, else flat). */
|
|
51
|
+
trend?: BiomarkerTrend;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface BiomarkerRangeProps {
|
|
55
|
+
/** The lab markers. `single-marker` / `range-history` use the first one. */
|
|
56
|
+
markers?: BiomarkerMarker[];
|
|
57
|
+
/** Catalog variant (BR-01 / BR-02 / BR-03 / BR-04 / BR-05). */
|
|
58
|
+
variant?: BiomarkerRangeVariant;
|
|
59
|
+
/** Top-left mono caption (e.g. 'BLOOD PANEL · JUN'). */
|
|
60
|
+
title?: string;
|
|
61
|
+
/** Bottom faint legend line. Defaults to the catalog teaching caption per
|
|
62
|
+
* variant ('BAND = REFERENCE RANGE · DOT = YOUR VALUE', 'SPARK = LAST 4
|
|
63
|
+
* TESTS', `single-marker`'s derived 'NAME · OPTIMAL low–high'); '' hides it. */
|
|
64
|
+
caption?: string;
|
|
65
|
+
/** `range-history` context pill, top-right, mint ('SUPPLEMENTED SINCE FEB'). */
|
|
66
|
+
note?: string;
|
|
67
|
+
/** `range-history` state pill anchored at the first test, coral ('DEFICIENT'). */
|
|
68
|
+
flag?: string;
|
|
69
|
+
/** Soft color glow on the value dots (the catalog glow modifier). */
|
|
70
|
+
shine?: boolean;
|
|
71
|
+
/** Accessible description of the chart. */
|
|
72
|
+
ariaLabel?: string;
|
|
73
|
+
/** Optional container style. */
|
|
74
|
+
style?: StyleProp<ViewStyle>;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* ---- catalog geometry (viewBox units — charts/catalog.js) ---- */
|
|
78
|
+
const W = 320;
|
|
79
|
+
const H = 150;
|
|
80
|
+
const PAD = { l: 10, r: 12, t: 16, b: 14 };
|
|
81
|
+
const PLOT_H = H - PAD.t - PAD.b; // 120
|
|
82
|
+
|
|
83
|
+
/** `marker-trend` sparks the LAST 4 tests (the catalog's spark window). */
|
|
84
|
+
const SPARK_TESTS = 4;
|
|
85
|
+
|
|
86
|
+
/* the catalog card's teaching captions — overridable / hideable via `caption` */
|
|
87
|
+
const DEFAULT_CAPTIONS: Partial<Record<BiomarkerRangeVariant, string>> = {
|
|
88
|
+
'panel-rows': 'BAND = REFERENCE RANGE · DOT = YOUR VALUE',
|
|
89
|
+
'marker-trend': 'SPARK = LAST 4 TESTS',
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
/* the catalog PANEL, on real-ish scales (fractions match biomarker-charts.html) */
|
|
93
|
+
const DEFAULT_MARKERS: BiomarkerMarker[] = [
|
|
94
|
+
{
|
|
95
|
+
name: 'VIT D',
|
|
96
|
+
value: 48,
|
|
97
|
+
min: 0,
|
|
98
|
+
max: 86,
|
|
99
|
+
low: 30,
|
|
100
|
+
high: 60,
|
|
101
|
+
unit: 'NG/ML',
|
|
102
|
+
history: [17, 26, 38, 45, 48],
|
|
103
|
+
dates: ['JAN', 'MAR', 'MAY', 'JUL', 'NOW'],
|
|
104
|
+
},
|
|
105
|
+
{ name: 'FERRITIN', value: 22, min: 0, max: 120, low: 36, high: 90, unit: 'UG/L', history: [48, 38, 30, 22] },
|
|
106
|
+
{ name: 'HBA1C', value: 5.2, min: 3, max: 8.5, low: 4.1, high: 6, display: '5.2%', history: [5.3, 5.2, 5.25, 5.2] },
|
|
107
|
+
{ name: 'LDL', value: 4.4, min: 0, max: 5.6, low: 0.8, high: 3.4, unit: 'MMOL', history: [3.0, 3.6, 4.1, 4.4] },
|
|
108
|
+
];
|
|
109
|
+
|
|
110
|
+
/** Round for compact attribute values. */
|
|
111
|
+
const rd = (n: number) => Math.round(n * 100) / 100;
|
|
112
|
+
|
|
113
|
+
/** A value's 0–1 position on the marker's display scale, clamped. */
|
|
114
|
+
const fracOf = (m: BiomarkerMarker, v: number) =>
|
|
115
|
+
Math.max(0, Math.min(1, (v - m.min) / (m.max - m.min || 1)));
|
|
116
|
+
|
|
117
|
+
/** Out-of-range state — the LOW/HIGH flag text, or null when in range. */
|
|
118
|
+
const stateOf = (m: BiomarkerMarker) =>
|
|
119
|
+
m.value < m.low ? 'LOW' : m.value > m.high ? 'HIGH' : null;
|
|
120
|
+
|
|
121
|
+
/** The readout string: explicit `display`, else `value` (+ unit). */
|
|
122
|
+
const readoutOf = (m: BiomarkerMarker) => m.display ?? `${m.value}${m.unit ? ` ${m.unit}` : ''}`;
|
|
123
|
+
|
|
124
|
+
/** Compact readout for the trend column — the number only ('48', '5.2%'). */
|
|
125
|
+
const shortReadoutOf = (m: BiomarkerMarker) => readoutOf(m).split(' ')[0];
|
|
126
|
+
|
|
127
|
+
/** Distance outside the reference range (0 while inside). */
|
|
128
|
+
const offRange = (m: BiomarkerMarker, v: number) =>
|
|
129
|
+
v < m.low ? m.low - v : v > m.high ? v - m.high : 0;
|
|
130
|
+
|
|
131
|
+
/** Derive the trend verdict from the spark window: moved toward the reference
|
|
132
|
+
* range = improving, away = worsening, else flat (in-range drift is neutral). */
|
|
133
|
+
function trendOf(m: BiomarkerMarker): BiomarkerTrend {
|
|
134
|
+
if (m.trend) return m.trend;
|
|
135
|
+
const hist = (m.history ?? []).slice(-SPARK_TESTS);
|
|
136
|
+
if (hist.length < 2) return 'flat';
|
|
137
|
+
const d = offRange(m, hist[hist.length - 1]) - offRange(m, hist[0]);
|
|
138
|
+
return d < 0 ? 'improving' : d > 0 ? 'worsening' : 'flat';
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/** Direction arrow: raw spark delta sign; flat is always '→'. */
|
|
142
|
+
function arrowOf(m: BiomarkerMarker, trend: BiomarkerTrend): string {
|
|
143
|
+
if (trend === 'flat') return '→';
|
|
144
|
+
const hist = (m.history ?? []).slice(-SPARK_TESTS);
|
|
145
|
+
if (hist.length >= 2) return hist[hist.length - 1] >= hist[0] ? '↑' : '↓';
|
|
146
|
+
return trend === 'improving' ? '↑' : '↓';
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
const TREND_COLORS: Record<BiomarkerTrend, string> = {
|
|
150
|
+
improving: colors.mint,
|
|
151
|
+
worsening: colors.zoneLow,
|
|
152
|
+
flat: colors.textDim,
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
/** Mono catalog label (8.5px JetBrains Mono, ~.06em tracking). */
|
|
156
|
+
function Label({
|
|
157
|
+
x,
|
|
158
|
+
y,
|
|
159
|
+
fill,
|
|
160
|
+
anchor = 'middle',
|
|
161
|
+
children,
|
|
162
|
+
}: {
|
|
163
|
+
x: number;
|
|
164
|
+
y: number;
|
|
165
|
+
fill: string;
|
|
166
|
+
anchor?: 'start' | 'middle' | 'end';
|
|
167
|
+
children: string;
|
|
168
|
+
}) {
|
|
169
|
+
return (
|
|
170
|
+
<SvgText
|
|
171
|
+
x={rd(x)}
|
|
172
|
+
y={rd(y)}
|
|
173
|
+
fill={fill}
|
|
174
|
+
textAnchor={anchor}
|
|
175
|
+
fontSize={8.5}
|
|
176
|
+
fontFamily={fonts.mono}
|
|
177
|
+
letterSpacing={0.5}
|
|
178
|
+
>
|
|
179
|
+
{children}
|
|
180
|
+
</SvgText>
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/** Chip-pill annotation (dark rounded rect + tinted hairline + mono text). */
|
|
185
|
+
function Tag({
|
|
186
|
+
x,
|
|
187
|
+
y,
|
|
188
|
+
color,
|
|
189
|
+
anchor = 'middle',
|
|
190
|
+
children,
|
|
191
|
+
}: {
|
|
192
|
+
x: number;
|
|
193
|
+
y: number;
|
|
194
|
+
color: string;
|
|
195
|
+
anchor?: 'start' | 'middle' | 'end';
|
|
196
|
+
children: string;
|
|
197
|
+
}) {
|
|
198
|
+
const w = children.length * 5.35 + 12;
|
|
199
|
+
let xa = anchor === 'end' ? x - w : anchor === 'start' ? x : x - w / 2;
|
|
200
|
+
xa = Math.max(PAD.l - 4, Math.min(xa, W - PAD.r - w + 4));
|
|
201
|
+
return (
|
|
202
|
+
<G>
|
|
203
|
+
<Rect
|
|
204
|
+
x={rd(xa)}
|
|
205
|
+
y={rd(y - 6.5)}
|
|
206
|
+
width={rd(w)}
|
|
207
|
+
height={13}
|
|
208
|
+
rx={6.5}
|
|
209
|
+
fill={colors.bg0}
|
|
210
|
+
fillOpacity={0.78}
|
|
211
|
+
stroke={color}
|
|
212
|
+
strokeOpacity={0.35}
|
|
213
|
+
strokeWidth={0.8}
|
|
214
|
+
/>
|
|
215
|
+
<SvgText
|
|
216
|
+
x={rd(xa + w / 2)}
|
|
217
|
+
y={rd(y + 2.8)}
|
|
218
|
+
fill={color}
|
|
219
|
+
textAnchor="middle"
|
|
220
|
+
fontSize={8}
|
|
221
|
+
fontFamily={fonts.mono}
|
|
222
|
+
letterSpacing={0.4}
|
|
223
|
+
>
|
|
224
|
+
{children}
|
|
225
|
+
</SvgText>
|
|
226
|
+
</G>
|
|
227
|
+
);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/** State-colored value dot; shine = a Gaussian-blurred duplicate circle behind
|
|
231
|
+
* it — the native twin of the web `.lk-bmr-dot--shine` drop-shadow(0 0 5px).
|
|
232
|
+
* (Un-blurred wide copies read as hard outlines on device.) */
|
|
233
|
+
function Dot({ x, y, r, color, shine }: { x: number; y: number; r: number; color: string; shine: boolean }) {
|
|
234
|
+
const uid = useId().replace(/[^a-zA-Z0-9]/g, '');
|
|
235
|
+
const blurId = `lk-bmr-blur-${uid}`;
|
|
236
|
+
return (
|
|
237
|
+
<G>
|
|
238
|
+
{shine ? (
|
|
239
|
+
<Defs>
|
|
240
|
+
{/* region in user space over the full canvas so the tiny dot never
|
|
241
|
+
clips its blur to the dot's bbox */}
|
|
242
|
+
<Filter id={blurId} filterUnits="userSpaceOnUse" x={-10} y={-10} width={W + 20} height={H + 20}>
|
|
243
|
+
<FeGaussianBlur stdDeviation={2.5} />
|
|
244
|
+
</Filter>
|
|
245
|
+
</Defs>
|
|
246
|
+
) : null}
|
|
247
|
+
{shine ? <Circle cx={rd(x)} cy={rd(y)} r={r + 1.5} fill={color} opacity={0.8} filter={`url(#${blurId})`} /> : null}
|
|
248
|
+
<Circle
|
|
249
|
+
cx={rd(x)}
|
|
250
|
+
cy={rd(y)}
|
|
251
|
+
r={r}
|
|
252
|
+
fill={color}
|
|
253
|
+
stroke={colors.bg0}
|
|
254
|
+
strokeOpacity={0.85}
|
|
255
|
+
strokeWidth={1.2}
|
|
256
|
+
/>
|
|
257
|
+
</G>
|
|
258
|
+
);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/** One range row: faint scale + mint reference band + state-colored value dot. */
|
|
262
|
+
function MarkerRow({
|
|
263
|
+
m,
|
|
264
|
+
y,
|
|
265
|
+
x0,
|
|
266
|
+
x1,
|
|
267
|
+
shine,
|
|
268
|
+
trackH = 5,
|
|
269
|
+
showName = true,
|
|
270
|
+
showVal = true,
|
|
271
|
+
showFlag = true,
|
|
272
|
+
}: {
|
|
273
|
+
m: BiomarkerMarker;
|
|
274
|
+
y: number;
|
|
275
|
+
x0: number;
|
|
276
|
+
x1: number;
|
|
277
|
+
shine: boolean;
|
|
278
|
+
trackH?: number;
|
|
279
|
+
showName?: boolean;
|
|
280
|
+
showVal?: boolean;
|
|
281
|
+
showFlag?: boolean;
|
|
282
|
+
}) {
|
|
283
|
+
const w = x1 - x0;
|
|
284
|
+
const bad = stateOf(m);
|
|
285
|
+
const fLo = fracOf(m, m.low);
|
|
286
|
+
const fHi = fracOf(m, m.high);
|
|
287
|
+
const dx = x0 + fracOf(m, m.value) * w;
|
|
288
|
+
const col = bad ? colors.zoneLow : colors.mint;
|
|
289
|
+
return (
|
|
290
|
+
<G>
|
|
291
|
+
<Rect x={x0} y={rd(y - trackH / 2)} width={w} height={trackH} rx={trackH / 2} fill={colors.glass2} />
|
|
292
|
+
<Rect
|
|
293
|
+
x={rd(x0 + fLo * w)}
|
|
294
|
+
y={rd(y - trackH / 2)}
|
|
295
|
+
width={rd((fHi - fLo) * w)}
|
|
296
|
+
height={trackH}
|
|
297
|
+
rx={trackH / 2}
|
|
298
|
+
fill={colors.mint}
|
|
299
|
+
opacity={0.22}
|
|
300
|
+
/>
|
|
301
|
+
<Dot x={dx} y={y} r={4} color={col} shine={shine} />
|
|
302
|
+
{bad && showFlag ? (
|
|
303
|
+
<Label x={dx} y={y - 9} fill={colors.zoneLow}>
|
|
304
|
+
{bad}
|
|
305
|
+
</Label>
|
|
306
|
+
) : null}
|
|
307
|
+
{showName ? (
|
|
308
|
+
<Label x={x0 - 8} y={y + 3} fill={colors.textDim} anchor="end">
|
|
309
|
+
{m.name}
|
|
310
|
+
</Label>
|
|
311
|
+
) : null}
|
|
312
|
+
{showVal ? (
|
|
313
|
+
<Label x={x1 + 8} y={y + 3} fill={bad ? colors.zoneLow : colors.textDim} anchor="start">
|
|
314
|
+
{readoutOf(m)}
|
|
315
|
+
</Label>
|
|
316
|
+
) : null}
|
|
317
|
+
</G>
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* BiomarkerRange — lab-panel reference-range chart for product surfaces
|
|
323
|
+
* (catalog family BR-01…BR-05). `panel-rows` is the signature lab-results
|
|
324
|
+
* screen: one row per marker with the value dot mint in-range / coral out and
|
|
325
|
+
* LOW/HIGH flags. `single-marker` teaches the anatomy (zones, range numbers,
|
|
326
|
+
* pulsing dot + big result). `marker-trend` adds a last-4-tests spark and a
|
|
327
|
+
* direction arrow per row. `panel-grid` packs markers into verdict tiles.
|
|
328
|
+
* `range-history` follows one marker across test dates into its band.
|
|
329
|
+
*/
|
|
330
|
+
export function BiomarkerRange({
|
|
331
|
+
markers = DEFAULT_MARKERS,
|
|
332
|
+
variant = 'panel-rows',
|
|
333
|
+
title,
|
|
334
|
+
caption,
|
|
335
|
+
note,
|
|
336
|
+
flag,
|
|
337
|
+
shine = false,
|
|
338
|
+
ariaLabel = 'Biomarker reference ranges',
|
|
339
|
+
style,
|
|
340
|
+
}: BiomarkerRangeProps) {
|
|
341
|
+
const m0 = markers[0];
|
|
342
|
+
const resolvedCaption =
|
|
343
|
+
caption ??
|
|
344
|
+
(variant === 'single-marker' && m0
|
|
345
|
+
? `${m0.name} · OPTIMAL ${m0.low}–${m0.high}`
|
|
346
|
+
: DEFAULT_CAPTIONS[variant]);
|
|
347
|
+
|
|
348
|
+
return (
|
|
349
|
+
<View accessibilityRole="image" accessibilityLabel={ariaLabel} style={[styles.root, style]}>
|
|
350
|
+
<Svg width="100%" height="100%" viewBox={`0 0 ${W} ${H}`}>
|
|
351
|
+
{title ? (
|
|
352
|
+
<Label x={PAD.l + 2} y={11} fill={colors.textFaint} anchor="start">
|
|
353
|
+
{title}
|
|
354
|
+
</Label>
|
|
355
|
+
) : null}
|
|
356
|
+
|
|
357
|
+
{variant === 'panel-rows' ? (
|
|
358
|
+
/* ---- BR-01 · marker rows (the signature lab panel) ---- */
|
|
359
|
+
<>
|
|
360
|
+
{markers.map((m, i) => (
|
|
361
|
+
<MarkerRow key={i} m={m} y={38 + i * 27} x0={96} x1={244} shine={shine} />
|
|
362
|
+
))}
|
|
363
|
+
{resolvedCaption ? (
|
|
364
|
+
<Label x={170} y={144} fill={colors.textFaint}>
|
|
365
|
+
{resolvedCaption}
|
|
366
|
+
</Label>
|
|
367
|
+
) : null}
|
|
368
|
+
</>
|
|
369
|
+
) : variant === 'single-marker' && m0 ? (
|
|
370
|
+
/* ---- BR-02 · one large row with the anatomy labeled ---- */
|
|
371
|
+
(() => {
|
|
372
|
+
const x0 = 60;
|
|
373
|
+
const w = 200;
|
|
374
|
+
const fLo = fracOf(m0, m0.low);
|
|
375
|
+
const fHi = fracOf(m0, m0.high);
|
|
376
|
+
const dx = x0 + fracOf(m0, m0.value) * w;
|
|
377
|
+
const col = stateOf(m0) ? colors.zoneLow : colors.mint;
|
|
378
|
+
return (
|
|
379
|
+
<>
|
|
380
|
+
<Rect x={x0} y={58} width={w} height={10} rx={5} fill={colors.glass2} />
|
|
381
|
+
<Rect
|
|
382
|
+
x={rd(x0 + fLo * w)}
|
|
383
|
+
y={58}
|
|
384
|
+
width={rd((fHi - fLo) * w)}
|
|
385
|
+
height={10}
|
|
386
|
+
rx={5}
|
|
387
|
+
fill={colors.mint}
|
|
388
|
+
opacity={0.25}
|
|
389
|
+
/>
|
|
390
|
+
{/* pulsing value dot — static duplicate halos on native (no
|
|
391
|
+
cheap RN way to run the web CSS pulse without Animated) */}
|
|
392
|
+
<Circle cx={rd(dx)} cy={63} r={9} fill={col} opacity={0.12} />
|
|
393
|
+
<Circle cx={rd(dx)} cy={63} r={6.5} fill={col} opacity={0.3} />
|
|
394
|
+
<Circle cx={rd(dx)} cy={63} r={3.6} fill={col} />
|
|
395
|
+
<Label x={x0 + (fLo * w) / 2} y={84} fill={colors.zoneLow}>
|
|
396
|
+
LOW
|
|
397
|
+
</Label>
|
|
398
|
+
<Label x={x0 + ((fLo + fHi) / 2) * w} y={84} fill={colors.mint}>
|
|
399
|
+
OPTIMAL
|
|
400
|
+
</Label>
|
|
401
|
+
<Label x={x0 + ((fHi + 1) / 2) * w} y={84} fill={colors.zoneMid}>
|
|
402
|
+
HIGH
|
|
403
|
+
</Label>
|
|
404
|
+
<Label x={x0 + fLo * w} y={50} fill={colors.textFaint}>
|
|
405
|
+
{String(m0.low)}
|
|
406
|
+
</Label>
|
|
407
|
+
<Label x={x0 + fHi * w} y={50} fill={colors.textFaint}>
|
|
408
|
+
{String(m0.high)}
|
|
409
|
+
</Label>
|
|
410
|
+
<SvgText
|
|
411
|
+
x={160}
|
|
412
|
+
y={118}
|
|
413
|
+
fill={col}
|
|
414
|
+
textAnchor="middle"
|
|
415
|
+
fontSize={20}
|
|
416
|
+
fontWeight="700"
|
|
417
|
+
fontFamily={fonts.display}
|
|
418
|
+
>
|
|
419
|
+
{readoutOf(m0)}
|
|
420
|
+
</SvgText>
|
|
421
|
+
{resolvedCaption ? (
|
|
422
|
+
<Label x={160} y={134} fill={colors.textFaint}>
|
|
423
|
+
{resolvedCaption}
|
|
424
|
+
</Label>
|
|
425
|
+
) : null}
|
|
426
|
+
</>
|
|
427
|
+
);
|
|
428
|
+
})()
|
|
429
|
+
) : variant === 'marker-trend' ? (
|
|
430
|
+
/* ---- BR-03 · rows + last-4-tests spark + direction arrow ---- */
|
|
431
|
+
<>
|
|
432
|
+
{markers.map((m, i) => {
|
|
433
|
+
const y = 42 + i * 34;
|
|
434
|
+
const trend = trendOf(m);
|
|
435
|
+
const tcol = TREND_COLORS[trend];
|
|
436
|
+
const spark = (m.history ?? []).slice(-SPARK_TESTS);
|
|
437
|
+
const d = spark
|
|
438
|
+
.map((v, j) => `${j ? 'L' : 'M'}${216 + j * 9} ${rd(y + 6 - fracOf(m, v) * 14)}`)
|
|
439
|
+
.join('');
|
|
440
|
+
return (
|
|
441
|
+
<G key={i}>
|
|
442
|
+
<MarkerRow m={m} y={y} x0={84} x1={204} shine={shine} showFlag={false} showVal={false} />
|
|
443
|
+
{spark.length >= 2 ? <Path d={d} fill="none" stroke={tcol} strokeWidth={1.4} /> : null}
|
|
444
|
+
<SvgText x={254} y={y + 4} fill={tcol} textAnchor="start" fontSize={11} fontFamily={fonts.mono}>
|
|
445
|
+
{arrowOf(m, trend)}
|
|
446
|
+
</SvgText>
|
|
447
|
+
<Label x={268} y={y + 3} fill={tcol} anchor="start">
|
|
448
|
+
{shortReadoutOf(m)}
|
|
449
|
+
</Label>
|
|
450
|
+
</G>
|
|
451
|
+
);
|
|
452
|
+
})}
|
|
453
|
+
{resolvedCaption ? (
|
|
454
|
+
<Label x={160} y={140} fill={colors.textFaint}>
|
|
455
|
+
{resolvedCaption}
|
|
456
|
+
</Label>
|
|
457
|
+
) : null}
|
|
458
|
+
</>
|
|
459
|
+
) : variant === 'panel-grid' ? (
|
|
460
|
+
/* ---- BR-04 · 2×3 verdict tiles ---- */
|
|
461
|
+
<>
|
|
462
|
+
{markers.map((m, i) => {
|
|
463
|
+
const gx = 16 + (i % 3) * 99;
|
|
464
|
+
const gy = 28 + Math.floor(i / 3) * 56;
|
|
465
|
+
const bad = stateOf(m);
|
|
466
|
+
return (
|
|
467
|
+
<G key={i}>
|
|
468
|
+
<Rect
|
|
469
|
+
x={gx}
|
|
470
|
+
y={gy}
|
|
471
|
+
width={90}
|
|
472
|
+
height={48}
|
|
473
|
+
rx={10}
|
|
474
|
+
fill={colors.glass}
|
|
475
|
+
stroke={bad ? colors.zoneLow : colors.border}
|
|
476
|
+
strokeOpacity={bad ? 0.5 : 1}
|
|
477
|
+
strokeWidth={1}
|
|
478
|
+
/>
|
|
479
|
+
<Label x={gx + 8} y={gy + 13} fill={colors.textDim} anchor="start">
|
|
480
|
+
{m.name}
|
|
481
|
+
</Label>
|
|
482
|
+
<Label x={gx + 82} y={gy + 13} fill={bad ? colors.zoneLow : colors.mint} anchor="end">
|
|
483
|
+
{bad ?? 'OK'}
|
|
484
|
+
</Label>
|
|
485
|
+
<MarkerRow
|
|
486
|
+
m={m}
|
|
487
|
+
y={gy + 26}
|
|
488
|
+
x0={gx + 8}
|
|
489
|
+
x1={gx + 82}
|
|
490
|
+
shine={shine}
|
|
491
|
+
showName={false}
|
|
492
|
+
showVal={false}
|
|
493
|
+
showFlag={false}
|
|
494
|
+
/>
|
|
495
|
+
<Label x={gx + 8} y={gy + 42} fill={bad ? colors.zoneLow : colors.textFaint} anchor="start">
|
|
496
|
+
{readoutOf(m)}
|
|
497
|
+
</Label>
|
|
498
|
+
</G>
|
|
499
|
+
);
|
|
500
|
+
})}
|
|
501
|
+
</>
|
|
502
|
+
) : variant === 'range-history' && m0 ? (
|
|
503
|
+
/* ---- BR-05 · one marker's journey into the band ---- */
|
|
504
|
+
(() => {
|
|
505
|
+
const x0 = 40;
|
|
506
|
+
const x1 = 296;
|
|
507
|
+
const yOf = (f: number) => PAD.t + (1 - f) * PLOT_H;
|
|
508
|
+
const yLo = yOf(fracOf(m0, m0.low));
|
|
509
|
+
const yHi = yOf(fracOf(m0, m0.high));
|
|
510
|
+
const hist = m0.history?.length ? m0.history : [m0.value];
|
|
511
|
+
const pp = hist.map((v, i) => ({
|
|
512
|
+
x: hist.length <= 1 ? (x0 + x1) / 2 : x0 + ((x1 - x0) * i) / (hist.length - 1),
|
|
513
|
+
y: yOf(fracOf(m0, v)),
|
|
514
|
+
inRange: v >= m0.low && v <= m0.high,
|
|
515
|
+
}));
|
|
516
|
+
const d = pp.map((q, i) => `${i ? 'L' : 'M'}${rd(q.x)} ${rd(q.y)}`).join('');
|
|
517
|
+
return (
|
|
518
|
+
<>
|
|
519
|
+
{[0.25, 0.5, 0.75].map((f) => (
|
|
520
|
+
<Line
|
|
521
|
+
key={f}
|
|
522
|
+
x1={PAD.l}
|
|
523
|
+
x2={W - PAD.r}
|
|
524
|
+
y1={rd(PAD.t + PLOT_H * f)}
|
|
525
|
+
y2={rd(PAD.t + PLOT_H * f)}
|
|
526
|
+
stroke={colors.glass}
|
|
527
|
+
strokeWidth={1}
|
|
528
|
+
/>
|
|
529
|
+
))}
|
|
530
|
+
<Line x1={PAD.l} x2={W - PAD.r} y1={H - PAD.b} y2={H - PAD.b} stroke={colors.border} strokeWidth={1} />
|
|
531
|
+
<Rect x={x0 - 6} y={rd(yHi)} width={x1 - x0 + 12} height={rd(yLo - yHi)} fill={colors.mint} opacity={0.09} />
|
|
532
|
+
<Label x={x1 + 2} y={yHi + 4} fill={colors.textFaint} anchor="start">
|
|
533
|
+
{String(m0.high)}
|
|
534
|
+
</Label>
|
|
535
|
+
<Label x={x1 + 2} y={yLo + 4} fill={colors.textFaint} anchor="start">
|
|
536
|
+
{String(m0.low)}
|
|
537
|
+
</Label>
|
|
538
|
+
<Path d={d} fill="none" stroke={colors.mint} strokeWidth={1.8} />
|
|
539
|
+
{pp.map((q, i) => (
|
|
540
|
+
<G key={i}>
|
|
541
|
+
<Dot x={q.x} y={q.y} r={3.6} color={q.inRange ? colors.mint : colors.zoneLow} shine={shine} />
|
|
542
|
+
{m0.dates?.[i] ? (
|
|
543
|
+
<Label x={q.x} y={H - 3} fill={colors.textFaint}>
|
|
544
|
+
{m0.dates[i]}
|
|
545
|
+
</Label>
|
|
546
|
+
) : null}
|
|
547
|
+
</G>
|
|
548
|
+
))}
|
|
549
|
+
{flag && pp.length > 0 ? (
|
|
550
|
+
<Tag x={pp[0].x + 24} y={pp[0].y + 16} color={colors.zoneLow}>
|
|
551
|
+
{flag}
|
|
552
|
+
</Tag>
|
|
553
|
+
) : null}
|
|
554
|
+
{note ? (
|
|
555
|
+
<Tag x={W - PAD.r - 6} y={26} color={colors.mint} anchor="end">
|
|
556
|
+
{note}
|
|
557
|
+
</Tag>
|
|
558
|
+
) : null}
|
|
559
|
+
</>
|
|
560
|
+
);
|
|
561
|
+
})()
|
|
562
|
+
) : null}
|
|
563
|
+
</Svg>
|
|
564
|
+
</View>
|
|
565
|
+
);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
const styles = StyleSheet.create({
|
|
569
|
+
/* fixed catalog aspect (320×150); the Svg scales the viewBox to fit */
|
|
570
|
+
root: { width: '100%', aspectRatio: W / H },
|
|
571
|
+
});
|