@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,1002 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SupplementChart = SupplementChart;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeSvg = _interopRequireWildcard(require("react-native-svg"));
|
|
10
|
+
var _tokens = require("@lockin90/tokens");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
|
+
/* SupplementChart — the catalog supplement-level family (SP-01…SP-10,
|
|
14
|
+
lockin90-design/charts/supplement-charts.html): saturation, decay and
|
|
15
|
+
adherence — what's actually in the system. Nine variants drawn in a fixed
|
|
16
|
+
320×150 viewBox: the creatine saturation story, active-stack rows,
|
|
17
|
+
half-life decay, dose-vs-level, depletion forecast, adherence strip,
|
|
18
|
+
multi-supplement kinetics and the liquid battery vessels (glass body +
|
|
19
|
+
battery cap + wavy two-Q liquid surface + clipped bubbles + zone-colored
|
|
20
|
+
fill + a % readout that inverts when submerged). Native twin of
|
|
21
|
+
`@lockin90/ui` SupplementChart — same prop API; glows are Gaussian-blurred
|
|
22
|
+
duplicate shapes (Fabric-native SVG filters — Ring precedent).
|
|
23
|
+
(SP-08 does not exist — a numbering gap in the catalog.) */
|
|
24
|
+
|
|
25
|
+
/* SP-10 — one large 56px vessel + FULL/LOW ticks + stats */
|
|
26
|
+
|
|
27
|
+
/** One `active-stack` row (SP-02). */
|
|
28
|
+
|
|
29
|
+
/** One `stack-levels` curve (SP-07). */
|
|
30
|
+
|
|
31
|
+
/** One liquid vessel (SP-09). */
|
|
32
|
+
|
|
33
|
+
/* ---- catalog geometry (viewBox units — charts/catalog.js) ---- */
|
|
34
|
+
const W = 320;
|
|
35
|
+
const H = 150;
|
|
36
|
+
const PAD = {
|
|
37
|
+
l: 10,
|
|
38
|
+
r: 12,
|
|
39
|
+
t: 16,
|
|
40
|
+
b: 14
|
|
41
|
+
};
|
|
42
|
+
const PLOT_W = W - PAD.l - PAD.r; // 298
|
|
43
|
+
const PLOT_H = H - PAD.t - PAD.b; // 120
|
|
44
|
+
|
|
45
|
+
/** Round for compact attribute values. */
|
|
46
|
+
const rd = n => Math.round(n * 100) / 100;
|
|
47
|
+
|
|
48
|
+
/** y of a 0–1 plot fraction. */
|
|
49
|
+
const yAt = v => PAD.t + (1 - v) * PLOT_H;
|
|
50
|
+
/** the supplement page's inset day x-scale. */
|
|
51
|
+
const dayX = (i, n) => PAD.l + 14 + (PLOT_W - 22) * i / Math.max(1, n - 1);
|
|
52
|
+
/** the supplement page's level y-scale (levels ride 6%…92% of the plot). */
|
|
53
|
+
const lvlY = v => yAt(0.06 + v * 0.86);
|
|
54
|
+
|
|
55
|
+
/** zone verdict for a 0–1 level (the catalog vessel/zoneOf thresholds). */
|
|
56
|
+
const zoneOf = v => v >= 0.62 ? _tokens.colors.zoneHigh : v >= 0.38 ? _tokens.colors.zoneMid : _tokens.colors.zoneLow;
|
|
57
|
+
|
|
58
|
+
/** the catalog saturation model: doses build toward 1, missed days decay. */
|
|
59
|
+
function satLevels(taken, kUp, kDown) {
|
|
60
|
+
let lvl = 0;
|
|
61
|
+
return taken.map(t => {
|
|
62
|
+
lvl = t ? lvl + (1 - lvl) * kUp : lvl * (1 - kDown);
|
|
63
|
+
return lvl;
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/** Straight polyline through the points. */
|
|
67
|
+
function linePath(pts) {
|
|
68
|
+
if (pts.length === 0) return '';
|
|
69
|
+
return pts.map(([x, y], i) => `${i === 0 ? 'M' : 'L'}${rd(x)},${rd(y)}`).join(' ');
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** Fritsch–Carlson monotone cubic — the catalog's `smoothPath` (no overshoot). */
|
|
73
|
+
function monotonePath(pts) {
|
|
74
|
+
const n = pts.length;
|
|
75
|
+
if (n < 3) return linePath(pts);
|
|
76
|
+
const dx = [];
|
|
77
|
+
const m = [];
|
|
78
|
+
const tg = [];
|
|
79
|
+
for (let i = 0; i < n - 1; i++) {
|
|
80
|
+
dx[i] = pts[i + 1][0] - pts[i][0];
|
|
81
|
+
m[i] = (pts[i + 1][1] - pts[i][1]) / dx[i];
|
|
82
|
+
}
|
|
83
|
+
tg[0] = m[0];
|
|
84
|
+
tg[n - 1] = m[n - 2];
|
|
85
|
+
for (let i = 1; i < n - 1; i++) tg[i] = m[i - 1] * m[i] <= 0 ? 0 : (m[i - 1] + m[i]) / 2;
|
|
86
|
+
for (let i = 0; i < n - 1; i++) {
|
|
87
|
+
if (m[i] === 0) {
|
|
88
|
+
tg[i] = 0;
|
|
89
|
+
tg[i + 1] = 0;
|
|
90
|
+
} else {
|
|
91
|
+
const a = tg[i] / m[i];
|
|
92
|
+
const b = tg[i + 1] / m[i];
|
|
93
|
+
const s = a * a + b * b;
|
|
94
|
+
if (s > 9) {
|
|
95
|
+
const tau = 3 / Math.sqrt(s);
|
|
96
|
+
tg[i] = tau * a * m[i];
|
|
97
|
+
tg[i + 1] = tau * b * m[i];
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
let d = `M${rd(pts[0][0])},${rd(pts[0][1])}`;
|
|
102
|
+
for (let i = 0; i < n - 1; i++) {
|
|
103
|
+
const h = dx[i] / 3;
|
|
104
|
+
d += ` C${rd(pts[i][0] + h)},${rd(pts[i][1] + h * tg[i])} ${rd(pts[i + 1][0] - h)},${rd(pts[i + 1][1] - h * tg[i + 1])} ${rd(pts[i + 1][0])},${rd(pts[i + 1][1])}`;
|
|
105
|
+
}
|
|
106
|
+
return d;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/** Mono catalog label (8.5px JetBrains Mono, ~.06em tracking). */
|
|
110
|
+
function Label({
|
|
111
|
+
x,
|
|
112
|
+
y,
|
|
113
|
+
fill,
|
|
114
|
+
anchor = 'middle',
|
|
115
|
+
children
|
|
116
|
+
}) {
|
|
117
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Text, {
|
|
118
|
+
x: rd(x),
|
|
119
|
+
y: rd(y),
|
|
120
|
+
fill: fill,
|
|
121
|
+
textAnchor: anchor,
|
|
122
|
+
fontSize: 8.5,
|
|
123
|
+
fontFamily: _tokens.fonts.mono,
|
|
124
|
+
letterSpacing: 0.5,
|
|
125
|
+
children: children
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/** Chip-pill tag (the catalog `tag()`): dark bg-0 pill + tinted hairline. */
|
|
130
|
+
function Tag({
|
|
131
|
+
x,
|
|
132
|
+
y,
|
|
133
|
+
color,
|
|
134
|
+
anchor = 'middle',
|
|
135
|
+
text
|
|
136
|
+
}) {
|
|
137
|
+
const wpx = text.length * 5.35 + 12;
|
|
138
|
+
let xa = anchor === 'end' ? x - wpx : anchor === 'start' ? x : x - wpx / 2;
|
|
139
|
+
xa = Math.max(PAD.l - 4, Math.min(xa, W - PAD.r - wpx + 4));
|
|
140
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
141
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
142
|
+
x: rd(xa),
|
|
143
|
+
y: rd(y - 6.5),
|
|
144
|
+
width: rd(wpx),
|
|
145
|
+
height: 13,
|
|
146
|
+
rx: 6.5,
|
|
147
|
+
fill: `${_tokens.colors.bg0}C7`,
|
|
148
|
+
stroke: color,
|
|
149
|
+
strokeOpacity: 0.35,
|
|
150
|
+
strokeWidth: 0.8
|
|
151
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Text, {
|
|
152
|
+
x: rd(xa + wpx / 2),
|
|
153
|
+
y: rd(y + 2.8),
|
|
154
|
+
fill: color,
|
|
155
|
+
textAnchor: "middle",
|
|
156
|
+
fontSize: 8,
|
|
157
|
+
fontFamily: _tokens.fonts.mono,
|
|
158
|
+
letterSpacing: 0.4,
|
|
159
|
+
children: text
|
|
160
|
+
})]
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/** Glowing dot + static halo ring — the catalog `pulseDot`. Native draws a
|
|
165
|
+
* wider faint duplicate for the glow and a static ring for the pulse (no
|
|
166
|
+
* SMIL/JS animation — the Ring precedent). */
|
|
167
|
+
function PulseDot({
|
|
168
|
+
x,
|
|
169
|
+
y,
|
|
170
|
+
color
|
|
171
|
+
}) {
|
|
172
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
173
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
|
|
174
|
+
cx: rd(x),
|
|
175
|
+
cy: rd(y),
|
|
176
|
+
r: 6.6,
|
|
177
|
+
fill: color,
|
|
178
|
+
opacity: 0.35
|
|
179
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
|
|
180
|
+
cx: rd(x),
|
|
181
|
+
cy: rd(y),
|
|
182
|
+
r: 3.6,
|
|
183
|
+
fill: color
|
|
184
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
|
|
185
|
+
cx: rd(x),
|
|
186
|
+
cy: rd(y),
|
|
187
|
+
r: 7,
|
|
188
|
+
fill: "none",
|
|
189
|
+
stroke: color,
|
|
190
|
+
strokeWidth: 1.4,
|
|
191
|
+
opacity: 0.4
|
|
192
|
+
})]
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/** SATURATED / LOW zone level bands (5% washes + edge band labels — right by
|
|
197
|
+
* default; `labelsLeft` moves them to the band's left edge when the right
|
|
198
|
+
* edge is occupied, e.g. by SP-07's end-of-line series pills). */
|
|
199
|
+
function LevelBands({
|
|
200
|
+
labelsLeft = false
|
|
201
|
+
}) {
|
|
202
|
+
const bands = [[0.72, 1, _tokens.colors.zoneHigh, 'SATURATED'], [0.35, 0.72, _tokens.colors.zoneMid, ''], [0, 0.35, _tokens.colors.zoneLow, 'LOW']];
|
|
203
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.G, {
|
|
204
|
+
children: bands.map(([lo, hi, color, text], i) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
205
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
206
|
+
x: PAD.l,
|
|
207
|
+
y: rd(lvlY(hi)),
|
|
208
|
+
width: PLOT_W,
|
|
209
|
+
height: rd(lvlY(lo) - lvlY(hi)),
|
|
210
|
+
fill: color,
|
|
211
|
+
opacity: 0.05
|
|
212
|
+
}), text ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
213
|
+
x: labelsLeft ? PAD.l + 2 : W - PAD.r - 2,
|
|
214
|
+
y: lvlY(hi) + 9,
|
|
215
|
+
fill: color,
|
|
216
|
+
anchor: labelsLeft ? 'start' : 'end',
|
|
217
|
+
children: text
|
|
218
|
+
}) : null]
|
|
219
|
+
}, i))
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/** Dose dots under the plot — filled mint = taken, dashed coral = missed. */
|
|
224
|
+
function DoseDots({
|
|
225
|
+
taken,
|
|
226
|
+
y
|
|
227
|
+
}) {
|
|
228
|
+
const n = taken.length;
|
|
229
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.G, {
|
|
230
|
+
children: taken.map((t, i) => t ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
|
|
231
|
+
cx: rd(dayX(i, n)),
|
|
232
|
+
cy: y,
|
|
233
|
+
r: 3,
|
|
234
|
+
fill: _tokens.colors.mint
|
|
235
|
+
}, i) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
|
|
236
|
+
cx: rd(dayX(i, n)),
|
|
237
|
+
cy: y,
|
|
238
|
+
r: 3,
|
|
239
|
+
fill: "none",
|
|
240
|
+
stroke: _tokens.colors.zoneLow,
|
|
241
|
+
strokeWidth: 1.3,
|
|
242
|
+
strokeDasharray: [1.5, 1.5]
|
|
243
|
+
}, i))
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/** One liquid battery vessel: cap + glass body + clipped wavy liquid +
|
|
248
|
+
* surface highlight + bubbles + a % that inverts when submerged. */
|
|
249
|
+
function VesselGlyph({
|
|
250
|
+
x,
|
|
251
|
+
y,
|
|
252
|
+
w,
|
|
253
|
+
h,
|
|
254
|
+
level,
|
|
255
|
+
vid,
|
|
256
|
+
bubbles,
|
|
257
|
+
shine
|
|
258
|
+
}) {
|
|
259
|
+
const lv = Math.max(0, Math.min(1, level));
|
|
260
|
+
const col = zoneOf(lv);
|
|
261
|
+
const lt = y + h - 2 - lv * (h - 6);
|
|
262
|
+
const amp = 2.6;
|
|
263
|
+
const xw = x + 1.5;
|
|
264
|
+
const ww = w - 3;
|
|
265
|
+
// wavy liquid surface — TWO Q-curves (the signature), then close to the base
|
|
266
|
+
const surface = `M${rd(xw)} ${rd(lt)}` + `Q${rd(xw + ww * 0.25)} ${rd(lt - amp)} ${rd(xw + ww * 0.5)} ${rd(lt)}` + `Q${rd(xw + ww * 0.75)} ${rd(lt + amp)} ${rd(xw + ww)} ${rd(lt)}`;
|
|
267
|
+
const wave = `${surface}L${rd(xw + ww)} ${rd(y + h)}L${rd(xw)} ${rd(y + h)}Z`;
|
|
268
|
+
// % readout placement: centered in the liquid when the fill is tall enough
|
|
269
|
+
// to hold it (≥ 30%), else riding just above the wavy surface
|
|
270
|
+
const inLiquid = lv >= 0.3;
|
|
271
|
+
const pctY = inLiquid ? (lt + y + h) / 2 + 3 : lt - amp - 4;
|
|
272
|
+
const bubbleSpec = [[0.3, 0.35, 2], [0.62, 0.55, 1.4], [0.45, 0.75, 1.8], [0.72, 0.3, 1.2]];
|
|
273
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
274
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.Defs, {
|
|
275
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.ClipPath, {
|
|
276
|
+
id: `${vid}-c`,
|
|
277
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
278
|
+
x: rd(x + 1.5),
|
|
279
|
+
y: rd(y + 1.5),
|
|
280
|
+
width: rd(w - 3),
|
|
281
|
+
height: rd(h - 3),
|
|
282
|
+
rx: 7.5
|
|
283
|
+
})
|
|
284
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.LinearGradient, {
|
|
285
|
+
id: `${vid}-l`,
|
|
286
|
+
x1: "0%",
|
|
287
|
+
y1: "0%",
|
|
288
|
+
x2: "0%",
|
|
289
|
+
y2: "100%",
|
|
290
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Stop, {
|
|
291
|
+
offset: "0%",
|
|
292
|
+
stopColor: col,
|
|
293
|
+
stopOpacity: 0.9
|
|
294
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Stop, {
|
|
295
|
+
offset: "100%",
|
|
296
|
+
stopColor: col,
|
|
297
|
+
stopOpacity: 0.45
|
|
298
|
+
})]
|
|
299
|
+
}), shine ?
|
|
300
|
+
/*#__PURE__*/
|
|
301
|
+
/* real Gaussian blur for the liquid shine — the native twin of the
|
|
302
|
+
web vessel's `.lk-supp-shine-wide` `blur(6px)` fill duplicate */
|
|
303
|
+
(0, _jsxRuntime.jsx)(_reactNativeSvg.Filter, {
|
|
304
|
+
id: `${vid}-blur`,
|
|
305
|
+
filterUnits: "userSpaceOnUse",
|
|
306
|
+
x: x - 12,
|
|
307
|
+
y: y - 12,
|
|
308
|
+
width: w + 24,
|
|
309
|
+
height: h + 24,
|
|
310
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.FeGaussianBlur, {
|
|
311
|
+
stdDeviation: 3
|
|
312
|
+
})
|
|
313
|
+
}) : null]
|
|
314
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
315
|
+
x: rd(x + w / 2 - w * 0.2),
|
|
316
|
+
y: y - 5,
|
|
317
|
+
width: rd(w * 0.4),
|
|
318
|
+
height: 5,
|
|
319
|
+
rx: 2,
|
|
320
|
+
fill: _tokens.colors.text,
|
|
321
|
+
opacity: 0.28
|
|
322
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
323
|
+
x: x,
|
|
324
|
+
y: y,
|
|
325
|
+
width: w,
|
|
326
|
+
height: h,
|
|
327
|
+
rx: 9,
|
|
328
|
+
fill: _tokens.colors.glass,
|
|
329
|
+
stroke: _tokens.colors.text,
|
|
330
|
+
strokeOpacity: 0.22,
|
|
331
|
+
strokeWidth: 1.4
|
|
332
|
+
}), shine ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
333
|
+
d: wave,
|
|
334
|
+
fill: col,
|
|
335
|
+
opacity: 0.5,
|
|
336
|
+
filter: `url(#${vid}-blur)`
|
|
337
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
338
|
+
d: wave,
|
|
339
|
+
fill: `url(#${vid}-l)`,
|
|
340
|
+
clipPath: `url(#${vid}-c)`
|
|
341
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
342
|
+
d: surface,
|
|
343
|
+
fill: "none",
|
|
344
|
+
stroke: col,
|
|
345
|
+
strokeWidth: 1.6,
|
|
346
|
+
opacity: 0.95,
|
|
347
|
+
clipPath: `url(#${vid}-c)`
|
|
348
|
+
}), bubbles ? bubbleSpec.map(([fx, fy, r], i) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
|
|
349
|
+
cx: rd(x + w * fx),
|
|
350
|
+
cy: rd(y + h - (h - 6) * lv * fy),
|
|
351
|
+
r: r,
|
|
352
|
+
fill: "none",
|
|
353
|
+
stroke: _tokens.colors.text,
|
|
354
|
+
strokeOpacity: 0.4,
|
|
355
|
+
strokeWidth: 0.8,
|
|
356
|
+
clipPath: `url(#${vid}-c)`
|
|
357
|
+
}, i)) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Text, {
|
|
358
|
+
x: rd(x + w / 2),
|
|
359
|
+
y: rd(pctY),
|
|
360
|
+
fill: inLiquid ? _tokens.colors.bg0 : _tokens.colors.text,
|
|
361
|
+
textAnchor: "middle",
|
|
362
|
+
fontSize: 10.5,
|
|
363
|
+
fontWeight: "600",
|
|
364
|
+
fontFamily: _tokens.fonts.mono,
|
|
365
|
+
children: String(Math.round(lv * 100))
|
|
366
|
+
})]
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/* the catalog's creatine story — 5 doses · 3 missed · rebuild */
|
|
371
|
+
const CREATINE_DOSES = [true, true, true, true, true, false, false, false, true, true, true, true, true, true];
|
|
372
|
+
const DEFAULT_ROWS = [{
|
|
373
|
+
name: 'CREATINE',
|
|
374
|
+
level: 0.82,
|
|
375
|
+
color: _tokens.colors.mint,
|
|
376
|
+
status: 'SATURATED'
|
|
377
|
+
}, {
|
|
378
|
+
name: 'MAGNESIUM',
|
|
379
|
+
level: 0.64,
|
|
380
|
+
color: _tokens.colors.cyan,
|
|
381
|
+
status: 'OK'
|
|
382
|
+
}, {
|
|
383
|
+
name: 'VITAMIN D',
|
|
384
|
+
level: 0.31,
|
|
385
|
+
color: _tokens.colors.zoneMid,
|
|
386
|
+
status: 'TAKE TODAY'
|
|
387
|
+
}, {
|
|
388
|
+
name: 'OMEGA-3',
|
|
389
|
+
level: 0.12,
|
|
390
|
+
color: _tokens.colors.zoneLow,
|
|
391
|
+
status: 'DEPLETED'
|
|
392
|
+
}];
|
|
393
|
+
const DEFAULT_VESSELS = [{
|
|
394
|
+
name: 'CREATINE',
|
|
395
|
+
level: 0.82
|
|
396
|
+
}, {
|
|
397
|
+
name: 'MAGNES.',
|
|
398
|
+
level: 0.64
|
|
399
|
+
}, {
|
|
400
|
+
name: 'VIT D',
|
|
401
|
+
level: 0.31
|
|
402
|
+
}, {
|
|
403
|
+
name: 'OMEGA-3',
|
|
404
|
+
level: 0.12
|
|
405
|
+
}, {
|
|
406
|
+
name: 'ZINC',
|
|
407
|
+
level: 0.55
|
|
408
|
+
}];
|
|
409
|
+
const DEFAULT_FORECAST_PAST = [0.2, 0.44, 0.62, 0.75, 0.84, 0.9];
|
|
410
|
+
const DOSE_LEVEL_DOSES = [true, true, false, true, true, true, false, true, true, false, false, true, true, true];
|
|
411
|
+
const ADHERENCE_DOSES = [true, true, true, false, true, true, true, true, false, false, true, true, true, true];
|
|
412
|
+
|
|
413
|
+
/** derive an SP-02 status pill from the level. */
|
|
414
|
+
const statusOf = v => v >= 0.72 ? 'SATURATED' : v >= 0.38 ? 'OK' : v >= 0.2 ? 'TAKE TODAY' : 'DEPLETED';
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* SupplementChart — the supplement-level family (catalog SP-01…SP-10):
|
|
418
|
+
* saturation, decay, adherence and the liquid tank view. Level variants share
|
|
419
|
+
* the zone level-band frame (SATURATED ≥ 0.72 / LOW < 0.35) and the catalog
|
|
420
|
+
* saturation model (`kUp`/`kDown`) so real dose logs drive the story; the
|
|
421
|
+
* battery variants render the signature glass vessels with a wavy clipped
|
|
422
|
+
* liquid, bubbles and zone-colored fill. All levels are 0–1.
|
|
423
|
+
*/
|
|
424
|
+
function SupplementChart({
|
|
425
|
+
variant = 'saturation-story',
|
|
426
|
+
doses,
|
|
427
|
+
levels,
|
|
428
|
+
kUp = 0.32,
|
|
429
|
+
kDown = 0.18,
|
|
430
|
+
rows = DEFAULT_ROWS,
|
|
431
|
+
series,
|
|
432
|
+
vessels = DEFAULT_VESSELS,
|
|
433
|
+
level = 0.78,
|
|
434
|
+
halfLifeH = 5,
|
|
435
|
+
windowH = 12,
|
|
436
|
+
nowH = 6.5,
|
|
437
|
+
doseMg = 200,
|
|
438
|
+
doseLabel,
|
|
439
|
+
nowNote,
|
|
440
|
+
projectDays = 14,
|
|
441
|
+
decayRate = 0.82,
|
|
442
|
+
lowThreshold = 0.35,
|
|
443
|
+
restockNote,
|
|
444
|
+
note,
|
|
445
|
+
noteAt,
|
|
446
|
+
color,
|
|
447
|
+
heroCaption = 'CREATINE · 5G DAILY',
|
|
448
|
+
heroStatus = 'SATURATED',
|
|
449
|
+
heroStatusColor = _tokens.colors.zoneHigh,
|
|
450
|
+
heroNote = 'HOLDS ~9 DAYS OFF',
|
|
451
|
+
lowAt = 0.35,
|
|
452
|
+
title,
|
|
453
|
+
stat,
|
|
454
|
+
statColor = _tokens.colors.text,
|
|
455
|
+
bands,
|
|
456
|
+
startLabel,
|
|
457
|
+
endLabel,
|
|
458
|
+
shine = false,
|
|
459
|
+
ariaLabel = 'Supplement level chart',
|
|
460
|
+
style
|
|
461
|
+
}) {
|
|
462
|
+
const uid = (0, _react.useId)().replace(/[^a-zA-Z0-9-]/g, '');
|
|
463
|
+
const blurId = `lk-supp-blur-${uid}`;
|
|
464
|
+
const lineColor = color ?? (variant === 'depletion-forecast' || variant === 'adherence-level' ? _tokens.colors.cyan : _tokens.colors.mint);
|
|
465
|
+
|
|
466
|
+
/** level line + optional glow underlay (Gaussian-blurred duplicate on native). */
|
|
467
|
+
const levelLine = (pts, opts = {}) => {
|
|
468
|
+
const d = monotonePath(pts);
|
|
469
|
+
const stroke = opts.stroke ?? lineColor;
|
|
470
|
+
const sw = opts.w ?? 2.5;
|
|
471
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
472
|
+
children: [opts.glow ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
473
|
+
d: d,
|
|
474
|
+
fill: "none",
|
|
475
|
+
stroke: stroke,
|
|
476
|
+
strokeWidth: sw + 5,
|
|
477
|
+
strokeLinecap: "round",
|
|
478
|
+
opacity: 0.45,
|
|
479
|
+
filter: `url(#${blurId})`
|
|
480
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
481
|
+
d: d,
|
|
482
|
+
fill: "none",
|
|
483
|
+
stroke: stroke,
|
|
484
|
+
strokeWidth: sw,
|
|
485
|
+
strokeLinecap: "round",
|
|
486
|
+
strokeDasharray: opts.dash,
|
|
487
|
+
opacity: opts.opacity
|
|
488
|
+
})]
|
|
489
|
+
});
|
|
490
|
+
};
|
|
491
|
+
let body = null;
|
|
492
|
+
let showBands = false;
|
|
493
|
+
let bandLabelsLeft = false;
|
|
494
|
+
let axis = null;
|
|
495
|
+
if (variant === 'saturation-story') {
|
|
496
|
+
/* SP-01 — the creatine story */
|
|
497
|
+
const taken = doses ?? CREATINE_DOSES;
|
|
498
|
+
const n = taken.length;
|
|
499
|
+
const lv = levels ?? satLevels(taken, kUp, kDown);
|
|
500
|
+
const pts = lv.map((v, i) => [dayX(i, n), lvlY(v)]);
|
|
501
|
+
showBands = bands ?? true;
|
|
502
|
+
axis = [startLabel ?? 'DAY 1', endLabel ?? 'TODAY'];
|
|
503
|
+
// the missed window: first run of ≥2 consecutive misses
|
|
504
|
+
let m0 = -1;
|
|
505
|
+
let m1 = -1;
|
|
506
|
+
for (let i = 0; i < n; i++) {
|
|
507
|
+
if (!taken[i]) {
|
|
508
|
+
if (m0 === -1) {
|
|
509
|
+
m0 = i;
|
|
510
|
+
m1 = i;
|
|
511
|
+
} else if (m1 === i - 1) {
|
|
512
|
+
m1 = i;
|
|
513
|
+
}
|
|
514
|
+
} else if (m0 !== -1 && m1 >= m0 + 1) break;else if (m0 !== -1 && m1 === m0) {
|
|
515
|
+
m0 = -1;
|
|
516
|
+
m1 = -1;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
const hasMiss = m0 !== -1 && m1 > m0;
|
|
520
|
+
// SATURATED pill: the peak before the missed window, else first level ≥ 0.72
|
|
521
|
+
const satIdx = hasMiss ? m0 - 1 : lv.findIndex(v => v >= 0.72);
|
|
522
|
+
const nAt = noteAt ?? (hasMiss ? m1 : -1);
|
|
523
|
+
const noteText = note ?? (nAt >= 0 ? `STILL ${Math.round((lv[nAt] ?? 0) * 100)}% · REBUILDING` : undefined);
|
|
524
|
+
body = n === 0 ? null : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
525
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(DoseDots, {
|
|
526
|
+
taken: taken,
|
|
527
|
+
y: H - PAD.b - 4
|
|
528
|
+
}), levelLine(pts, {
|
|
529
|
+
glow: shine
|
|
530
|
+
}), hasMiss ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
531
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
532
|
+
x: rd(dayX(m0, n) - 6),
|
|
533
|
+
y: PAD.t,
|
|
534
|
+
width: rd(dayX(m1, n) - dayX(m0, n) + 12),
|
|
535
|
+
height: PLOT_H - 10,
|
|
536
|
+
rx: 5,
|
|
537
|
+
fill: _tokens.colors.zoneLow,
|
|
538
|
+
opacity: 0.07
|
|
539
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
|
|
540
|
+
x: (dayX(m0, n) + dayX(m1, n)) / 2,
|
|
541
|
+
y: PAD.t + 8,
|
|
542
|
+
color: _tokens.colors.zoneLow,
|
|
543
|
+
text: `MISSED × ${m1 - m0 + 1}`
|
|
544
|
+
})]
|
|
545
|
+
}) : null, satIdx >= 0 && lv[satIdx] >= 0.72 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
|
|
546
|
+
x: dayX(satIdx, n),
|
|
547
|
+
y: pts[satIdx][1] - 13,
|
|
548
|
+
color: _tokens.colors.mint,
|
|
549
|
+
text: "SATURATED"
|
|
550
|
+
}) : null, noteText && nAt >= 0 && nAt < n ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
|
|
551
|
+
x: dayX(nAt, n) + 10,
|
|
552
|
+
y: pts[nAt][1] + 15,
|
|
553
|
+
color: _tokens.colors.zoneMid,
|
|
554
|
+
anchor: "start",
|
|
555
|
+
text: noteText
|
|
556
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(PulseDot, {
|
|
557
|
+
x: pts[n - 1][0],
|
|
558
|
+
y: pts[n - 1][1],
|
|
559
|
+
color: _tokens.colors.mint
|
|
560
|
+
})]
|
|
561
|
+
});
|
|
562
|
+
} else if (variant === 'active-stack') {
|
|
563
|
+
/* SP-02 — 4 rows: name + level bar + % + status pill */
|
|
564
|
+
const rws = rows.slice(0, 4);
|
|
565
|
+
const rh = PLOT_H / 4;
|
|
566
|
+
const barW = PLOT_W - 150;
|
|
567
|
+
body = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.G, {
|
|
568
|
+
children: rws.map((r, ri) => {
|
|
569
|
+
const y = PAD.t + 8 + ri * rh + rh / 2;
|
|
570
|
+
const c = r.color ?? zoneOf(r.level);
|
|
571
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
572
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
573
|
+
x: PAD.l + 66,
|
|
574
|
+
y: y - 8,
|
|
575
|
+
fill: _tokens.colors.textDim,
|
|
576
|
+
anchor: "end",
|
|
577
|
+
children: r.name
|
|
578
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
579
|
+
x: PAD.l + 74,
|
|
580
|
+
y: rd(y - 13),
|
|
581
|
+
width: barW,
|
|
582
|
+
height: 10,
|
|
583
|
+
rx: 5,
|
|
584
|
+
fill: _tokens.colors.glass2
|
|
585
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
586
|
+
x: PAD.l + 74,
|
|
587
|
+
y: rd(y - 13),
|
|
588
|
+
width: rd(Math.max(10, barW * Math.max(0, Math.min(1, r.level)))),
|
|
589
|
+
height: 10,
|
|
590
|
+
rx: 5,
|
|
591
|
+
fill: c,
|
|
592
|
+
opacity: 0.92
|
|
593
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
594
|
+
x: PAD.l + 80 + barW,
|
|
595
|
+
y: y - 5,
|
|
596
|
+
fill: c,
|
|
597
|
+
anchor: "start",
|
|
598
|
+
children: `${Math.round(r.level * 100)}%`
|
|
599
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
|
|
600
|
+
x: PAD.l + 74 + barW,
|
|
601
|
+
y: y + 6,
|
|
602
|
+
color: c,
|
|
603
|
+
anchor: "end",
|
|
604
|
+
text: r.status ?? statusOf(r.level)
|
|
605
|
+
})]
|
|
606
|
+
}, ri);
|
|
607
|
+
})
|
|
608
|
+
});
|
|
609
|
+
} else if (variant === 'half-life') {
|
|
610
|
+
/* SP-03 — exponential decay from the dose */
|
|
611
|
+
const n = 25;
|
|
612
|
+
const pts = [];
|
|
613
|
+
for (let i = 0; i < n; i++) {
|
|
614
|
+
const t = i / (n - 1) * windowH;
|
|
615
|
+
pts.push([dayX(i, n), lvlY(Math.pow(0.5, t / halfLifeH))]);
|
|
616
|
+
}
|
|
617
|
+
showBands = bands ?? true;
|
|
618
|
+
axis = [startLabel ?? '0H', endLabel ?? `+${windowH}H`];
|
|
619
|
+
const remain = Math.pow(0.5, nowH / halfLifeH);
|
|
620
|
+
const nowX = PAD.l + 14 + (PLOT_W - 22) * Math.max(0, Math.min(1, nowH / windowH));
|
|
621
|
+
const nowY = lvlY(remain);
|
|
622
|
+
body = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
623
|
+
children: [levelLine(pts, {
|
|
624
|
+
stroke: color ?? _tokens.colors.zoneMid,
|
|
625
|
+
glow: shine
|
|
626
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Line, {
|
|
627
|
+
x1: rd(nowX),
|
|
628
|
+
x2: rd(nowX),
|
|
629
|
+
y1: PAD.t - 2,
|
|
630
|
+
y2: H - PAD.b,
|
|
631
|
+
stroke: _tokens.colors.text,
|
|
632
|
+
strokeOpacity: 0.22,
|
|
633
|
+
strokeWidth: 1
|
|
634
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
635
|
+
x: nowX,
|
|
636
|
+
y: PAD.t - 5,
|
|
637
|
+
fill: _tokens.colors.textDim,
|
|
638
|
+
children: "NOW"
|
|
639
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(PulseDot, {
|
|
640
|
+
x: nowX,
|
|
641
|
+
y: nowY,
|
|
642
|
+
color: _tokens.colors.zoneMid
|
|
643
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
|
|
644
|
+
x: nowX + 10,
|
|
645
|
+
y: nowY - 14,
|
|
646
|
+
color: _tokens.colors.zoneMid,
|
|
647
|
+
anchor: "start",
|
|
648
|
+
text: nowNote ?? `STILL ACTIVE · ${Math.round(doseMg * remain)} MG`
|
|
649
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
|
|
650
|
+
x: dayX(2, n) + 16,
|
|
651
|
+
y: lvlY(0.97) + 12,
|
|
652
|
+
color: _tokens.colors.textDim,
|
|
653
|
+
anchor: "start",
|
|
654
|
+
text: doseLabel ?? `DOSE ${doseMg} MG`
|
|
655
|
+
})]
|
|
656
|
+
});
|
|
657
|
+
} else if (variant === 'dose-level') {
|
|
658
|
+
/* SP-04 — dose dots + faint intake stems + resulting level line */
|
|
659
|
+
const taken = doses ?? DOSE_LEVEL_DOSES;
|
|
660
|
+
const n = taken.length;
|
|
661
|
+
const lv = levels ?? satLevels(taken, kUp, kDown);
|
|
662
|
+
const pts = lv.map((v, i) => [dayX(i, n), lvlY(v)]);
|
|
663
|
+
showBands = bands ?? true;
|
|
664
|
+
body = n === 0 ? null : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
665
|
+
children: [taken.map((t, i) => t ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Line, {
|
|
666
|
+
x1: rd(dayX(i, n)),
|
|
667
|
+
x2: rd(dayX(i, n)),
|
|
668
|
+
y1: H - PAD.b,
|
|
669
|
+
y2: rd(lvlY(lv[i])),
|
|
670
|
+
stroke: _tokens.colors.mint,
|
|
671
|
+
strokeWidth: 3,
|
|
672
|
+
strokeLinecap: "round",
|
|
673
|
+
opacity: 0.22
|
|
674
|
+
}, i) : null), /*#__PURE__*/(0, _jsxRuntime.jsx)(DoseDots, {
|
|
675
|
+
taken: taken,
|
|
676
|
+
y: H - PAD.b - 4
|
|
677
|
+
}), levelLine(pts, {
|
|
678
|
+
glow: shine
|
|
679
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
|
|
680
|
+
x: W - PAD.r - 4,
|
|
681
|
+
y: PAD.t + 10,
|
|
682
|
+
color: _tokens.colors.textDim,
|
|
683
|
+
anchor: "end",
|
|
684
|
+
text: note ?? 'DOTS = DOSES · LINE = LEVEL'
|
|
685
|
+
})]
|
|
686
|
+
});
|
|
687
|
+
} else if (variant === 'depletion-forecast') {
|
|
688
|
+
/* SP-05 — solid past · dashed decay projection · LOW crossing pulse */
|
|
689
|
+
const past = levels ?? DEFAULT_FORECAST_PAST;
|
|
690
|
+
const n = Math.max(projectDays, past.length + 1);
|
|
691
|
+
const all = past.slice();
|
|
692
|
+
for (let i = past.length; i < n; i++) all.push(all[i - 1] * decayRate);
|
|
693
|
+
const pts = all.map((v, i) => [dayX(i, n), lvlY(v)]);
|
|
694
|
+
showBands = bands ?? true;
|
|
695
|
+
const nowPt = past.length > 0 ? pts[past.length - 1] : null;
|
|
696
|
+
let crossI = -1;
|
|
697
|
+
for (let i = past.length; i < n; i++) if (all[i] < lowThreshold) {
|
|
698
|
+
crossI = i;
|
|
699
|
+
break;
|
|
700
|
+
}
|
|
701
|
+
body = nowPt == null ? null : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
702
|
+
children: [levelLine(pts.slice(0, past.length), {
|
|
703
|
+
stroke: lineColor,
|
|
704
|
+
glow: shine
|
|
705
|
+
}), levelLine(pts.slice(past.length - 1), {
|
|
706
|
+
stroke: lineColor,
|
|
707
|
+
dash: [5, 5],
|
|
708
|
+
opacity: 0.75
|
|
709
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Line, {
|
|
710
|
+
x1: rd(nowPt[0]),
|
|
711
|
+
x2: rd(nowPt[0]),
|
|
712
|
+
y1: PAD.t - 2,
|
|
713
|
+
y2: H - PAD.b,
|
|
714
|
+
stroke: _tokens.colors.text,
|
|
715
|
+
strokeOpacity: 0.22,
|
|
716
|
+
strokeWidth: 1
|
|
717
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
718
|
+
x: nowPt[0],
|
|
719
|
+
y: PAD.t - 5,
|
|
720
|
+
fill: _tokens.colors.textDim,
|
|
721
|
+
children: "NOW"
|
|
722
|
+
}), crossI >= 0 ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
723
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(PulseDot, {
|
|
724
|
+
x: pts[crossI][0],
|
|
725
|
+
y: pts[crossI][1],
|
|
726
|
+
color: _tokens.colors.zoneLow
|
|
727
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
|
|
728
|
+
x: pts[crossI][0] - 6,
|
|
729
|
+
y: pts[crossI][1] - 15,
|
|
730
|
+
color: _tokens.colors.zoneLow,
|
|
731
|
+
anchor: "end",
|
|
732
|
+
text: restockNote ?? `LOW IN ${crossI - past.length + 1} DAYS — RESTOCK`
|
|
733
|
+
})]
|
|
734
|
+
}) : null]
|
|
735
|
+
});
|
|
736
|
+
} else if (variant === 'adherence-level') {
|
|
737
|
+
/* SP-06 — taken/missed day cells + the resulting level line under */
|
|
738
|
+
const taken = doses ?? ADHERENCE_DOSES;
|
|
739
|
+
const n = taken.length;
|
|
740
|
+
const lv = levels ?? satLevels(taken, kUp, kDown);
|
|
741
|
+
// the line rides at 62% of the model level so it clears the cells strip
|
|
742
|
+
const pts = lv.map((v, i) => [dayX(i, n), lvlY(v * 0.62)]);
|
|
743
|
+
const cw = (PLOT_W - 26) / Math.max(1, n);
|
|
744
|
+
body = n === 0 ? null : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
745
|
+
children: [taken.map((t, i) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
746
|
+
x: rd(dayX(i, n) - cw / 2 + 1),
|
|
747
|
+
y: PAD.t + 4,
|
|
748
|
+
width: rd(cw - 2),
|
|
749
|
+
height: 12,
|
|
750
|
+
rx: 3,
|
|
751
|
+
fill: t ? _tokens.colors.mint : 'none',
|
|
752
|
+
stroke: t ? 'none' : _tokens.colors.zoneLow,
|
|
753
|
+
strokeWidth: t ? 0 : 1,
|
|
754
|
+
strokeDasharray: t ? undefined : [2, 2],
|
|
755
|
+
opacity: t ? 0.75 : 1
|
|
756
|
+
}, i)), /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
757
|
+
x: PAD.l + 14,
|
|
758
|
+
y: PAD.t + 26,
|
|
759
|
+
fill: _tokens.colors.textFaint,
|
|
760
|
+
anchor: "start",
|
|
761
|
+
children: "TAKEN / MISSED"
|
|
762
|
+
}), levelLine(pts, {
|
|
763
|
+
stroke: lineColor,
|
|
764
|
+
glow: shine
|
|
765
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
|
|
766
|
+
x: W - PAD.r - 4,
|
|
767
|
+
y: lvlY(0.62 * lv[n - 1]) - 13,
|
|
768
|
+
color: lineColor,
|
|
769
|
+
anchor: "end",
|
|
770
|
+
text: note ?? `LEVEL ${Math.round(lv[n - 1] * 100)}%`
|
|
771
|
+
})]
|
|
772
|
+
});
|
|
773
|
+
} else if (variant === 'stack-levels') {
|
|
774
|
+
/* SP-07 — 3 level curves with different kinetics + end-of-line pills */
|
|
775
|
+
const trio = (series ?? DEFAULT_STACK_SERIES).slice(0, 3);
|
|
776
|
+
const widths = [2.5, 2, 1.8];
|
|
777
|
+
const opacities = [1, 0.85, 0.8];
|
|
778
|
+
const colorsBy = [_tokens.colors.mint, _tokens.colors.cyan, _tokens.colors.zoneMid];
|
|
779
|
+
showBands = bands ?? true;
|
|
780
|
+
bandLabelsLeft = true; // the right edge belongs to the series pills
|
|
781
|
+
// pill y from each series' FINAL level; overlapping pills are pushed apart
|
|
782
|
+
// (min gap = pill height + 2) top-down, then clamped inside the plot
|
|
783
|
+
const pillH = 13;
|
|
784
|
+
const pillYs = trio.map(s => lvlY(s.levels[s.levels.length - 1] ?? 0));
|
|
785
|
+
const order = pillYs.map((y, si) => ({
|
|
786
|
+
si,
|
|
787
|
+
y
|
|
788
|
+
})).sort((a, b) => a.y - b.y);
|
|
789
|
+
const yMin = PAD.t + pillH / 2;
|
|
790
|
+
const yMax = H - PAD.b - pillH / 2;
|
|
791
|
+
order.forEach((p, i) => {
|
|
792
|
+
p.y = Math.max(yMin, Math.min(p.y, yMax));
|
|
793
|
+
if (i > 0) p.y = Math.max(p.y, order[i - 1].y + pillH + 2);
|
|
794
|
+
});
|
|
795
|
+
// if the pushed chain ran past the plot bottom, shift it back up whole
|
|
796
|
+
const over = order.length > 0 ? order[order.length - 1].y - yMax : 0;
|
|
797
|
+
if (over > 0) order.forEach(p => p.y -= over);
|
|
798
|
+
order.forEach(p => pillYs[p.si] = p.y);
|
|
799
|
+
body = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
800
|
+
children: [trio.map((s, si) => {
|
|
801
|
+
const n = s.levels.length;
|
|
802
|
+
const pts = s.levels.map((v, i) => [dayX(i, n), lvlY(v)]);
|
|
803
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.G, {
|
|
804
|
+
children: levelLine(pts, {
|
|
805
|
+
stroke: s.color ?? colorsBy[si],
|
|
806
|
+
w: widths[si],
|
|
807
|
+
dash: s.dash ? [4, 3] : undefined,
|
|
808
|
+
opacity: opacities[si] === 1 ? undefined : opacities[si],
|
|
809
|
+
glow: shine && si === 0
|
|
810
|
+
})
|
|
811
|
+
}, si);
|
|
812
|
+
}), trio.map((s, si) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
|
|
813
|
+
x: W - PAD.r - 4,
|
|
814
|
+
y: pillYs[si],
|
|
815
|
+
color: s.color ?? colorsBy[si],
|
|
816
|
+
anchor: "end",
|
|
817
|
+
text: s.name
|
|
818
|
+
}, si))]
|
|
819
|
+
});
|
|
820
|
+
} else if (variant === 'liquid-batteries') {
|
|
821
|
+
/* SP-09 — 5 battery vessels in a bar-chart row */
|
|
822
|
+
const vs = vessels.slice(0, 5);
|
|
823
|
+
const n = vs.length;
|
|
824
|
+
const slot = PLOT_W / n;
|
|
825
|
+
const bw = 34;
|
|
826
|
+
const bh = PLOT_H - 26;
|
|
827
|
+
body = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.G, {
|
|
828
|
+
children: vs.map((v, i) => {
|
|
829
|
+
const x = PAD.l + i * slot + (slot - bw) / 2;
|
|
830
|
+
const y = PAD.t + 10;
|
|
831
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
832
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(VesselGlyph, {
|
|
833
|
+
x: x,
|
|
834
|
+
y: y,
|
|
835
|
+
w: bw,
|
|
836
|
+
h: bh,
|
|
837
|
+
level: v.level,
|
|
838
|
+
vid: `lk-supp-${uid}-${i}`,
|
|
839
|
+
bubbles: v.level > 0.3,
|
|
840
|
+
shine: shine
|
|
841
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
842
|
+
x: x + bw / 2,
|
|
843
|
+
y: H - 2,
|
|
844
|
+
fill: zoneOf(v.level),
|
|
845
|
+
children: v.name
|
|
846
|
+
})]
|
|
847
|
+
}, i);
|
|
848
|
+
})
|
|
849
|
+
});
|
|
850
|
+
} else {
|
|
851
|
+
/* SP-10 — battery-hero: one large 56px vessel + side ticks + stats */
|
|
852
|
+
const bx = 78;
|
|
853
|
+
const by = PAD.t + 12;
|
|
854
|
+
const bw = 56;
|
|
855
|
+
const bh = PLOT_H - 20;
|
|
856
|
+
const lowY = by + bh - (bh - 6) * lowAt;
|
|
857
|
+
body = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
858
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(VesselGlyph, {
|
|
859
|
+
x: bx,
|
|
860
|
+
y: by,
|
|
861
|
+
w: bw,
|
|
862
|
+
h: bh,
|
|
863
|
+
level: level,
|
|
864
|
+
vid: `lk-supp-${uid}-hero`,
|
|
865
|
+
bubbles: true,
|
|
866
|
+
shine: shine
|
|
867
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Line, {
|
|
868
|
+
x1: bx + bw + 4,
|
|
869
|
+
x2: bx + bw + 10,
|
|
870
|
+
y1: by + 4,
|
|
871
|
+
y2: by + 4,
|
|
872
|
+
stroke: _tokens.colors.text,
|
|
873
|
+
strokeOpacity: 0.35,
|
|
874
|
+
strokeWidth: 1
|
|
875
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
876
|
+
x: bx + bw + 14,
|
|
877
|
+
y: by + 7,
|
|
878
|
+
fill: _tokens.colors.textFaint,
|
|
879
|
+
anchor: "start",
|
|
880
|
+
children: "FULL"
|
|
881
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Line, {
|
|
882
|
+
x1: bx + bw + 4,
|
|
883
|
+
x2: bx + bw + 10,
|
|
884
|
+
y1: rd(lowY),
|
|
885
|
+
y2: rd(lowY),
|
|
886
|
+
stroke: _tokens.colors.zoneLow,
|
|
887
|
+
strokeWidth: 1
|
|
888
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
889
|
+
x: bx + bw + 14,
|
|
890
|
+
y: lowY + 3,
|
|
891
|
+
fill: _tokens.colors.zoneLow,
|
|
892
|
+
anchor: "start",
|
|
893
|
+
children: "LOW"
|
|
894
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Text, {
|
|
895
|
+
x: 196,
|
|
896
|
+
y: 56,
|
|
897
|
+
fill: _tokens.colors.text,
|
|
898
|
+
fontSize: 24,
|
|
899
|
+
fontFamily: _tokens.fonts.display,
|
|
900
|
+
fontWeight: "700",
|
|
901
|
+
children: `${Math.round(Math.max(0, Math.min(1, level)) * 100)}%`
|
|
902
|
+
}), heroCaption ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
903
|
+
x: 196,
|
|
904
|
+
y: 72,
|
|
905
|
+
fill: _tokens.colors.textDim,
|
|
906
|
+
anchor: "start",
|
|
907
|
+
children: heroCaption
|
|
908
|
+
}) : null, heroStatus ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
|
|
909
|
+
x: 196 + 34,
|
|
910
|
+
y: 92,
|
|
911
|
+
color: heroStatusColor,
|
|
912
|
+
text: heroStatus
|
|
913
|
+
}) : null, heroNote ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
914
|
+
x: 196,
|
|
915
|
+
y: 112,
|
|
916
|
+
fill: _tokens.colors.textFaint,
|
|
917
|
+
anchor: "start",
|
|
918
|
+
children: heroNote
|
|
919
|
+
}) : null]
|
|
920
|
+
});
|
|
921
|
+
}
|
|
922
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
923
|
+
accessibilityRole: "image",
|
|
924
|
+
accessibilityLabel: ariaLabel,
|
|
925
|
+
style: [styles.root, style],
|
|
926
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.default, {
|
|
927
|
+
width: "100%",
|
|
928
|
+
height: "100%",
|
|
929
|
+
viewBox: `0 0 ${W} ${H}`,
|
|
930
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Defs, {
|
|
931
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Filter, {
|
|
932
|
+
id: blurId,
|
|
933
|
+
filterUnits: "userSpaceOnUse",
|
|
934
|
+
x: -10,
|
|
935
|
+
y: -10,
|
|
936
|
+
width: W + 20,
|
|
937
|
+
height: H + 20,
|
|
938
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.FeGaussianBlur, {
|
|
939
|
+
stdDeviation: 2.5
|
|
940
|
+
})
|
|
941
|
+
})
|
|
942
|
+
}), title ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
943
|
+
x: PAD.l + 2,
|
|
944
|
+
y: 11,
|
|
945
|
+
fill: _tokens.colors.textFaint,
|
|
946
|
+
anchor: "start",
|
|
947
|
+
children: title
|
|
948
|
+
}) : null, stat ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Text, {
|
|
949
|
+
x: W - PAD.r - 2,
|
|
950
|
+
y: 12,
|
|
951
|
+
fill: statColor,
|
|
952
|
+
textAnchor: "end",
|
|
953
|
+
fontSize: 12,
|
|
954
|
+
fontFamily: _tokens.fonts.display,
|
|
955
|
+
fontWeight: "700",
|
|
956
|
+
children: stat
|
|
957
|
+
}) : null, showBands ? /*#__PURE__*/(0, _jsxRuntime.jsx)(LevelBands, {
|
|
958
|
+
labelsLeft: bandLabelsLeft
|
|
959
|
+
}) : null, body, axis ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
960
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
961
|
+
x: PAD.l + 14,
|
|
962
|
+
y: H - 2,
|
|
963
|
+
fill: _tokens.colors.textFaint,
|
|
964
|
+
anchor: "start",
|
|
965
|
+
children: axis[0]
|
|
966
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
967
|
+
x: W - PAD.r - 2,
|
|
968
|
+
y: H - 2,
|
|
969
|
+
fill: _tokens.colors.textFaint,
|
|
970
|
+
anchor: "end",
|
|
971
|
+
children: axis[1]
|
|
972
|
+
})]
|
|
973
|
+
}) : null]
|
|
974
|
+
})
|
|
975
|
+
});
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
/* SP-07 default — the catalog's three kinetics (slow build · mid · sawtooth) */
|
|
979
|
+
const DEFAULT_STACK_SERIES = [{
|
|
980
|
+
name: 'CREATINE',
|
|
981
|
+
levels: satLevels(CREATINE_DOSES, 0.3, 0.12),
|
|
982
|
+
color: _tokens.colors.mint
|
|
983
|
+
}, {
|
|
984
|
+
name: 'MAGNESIUM',
|
|
985
|
+
levels: satLevels([true, false, true, true, false, true, true, false, true, true, true, false, true, true], 0.45, 0.35),
|
|
986
|
+
color: _tokens.colors.cyan
|
|
987
|
+
}, {
|
|
988
|
+
name: 'CAFFEINE',
|
|
989
|
+
levels: Array.from({
|
|
990
|
+
length: 14
|
|
991
|
+
}, (_, i) => 0.15 + 0.5 * Math.abs(Math.sin(i * 1.7)) * Math.pow(0.9, i % 3)),
|
|
992
|
+
color: _tokens.colors.zoneMid,
|
|
993
|
+
dash: true
|
|
994
|
+
}];
|
|
995
|
+
const styles = _reactNative.StyleSheet.create({
|
|
996
|
+
/* fixed catalog aspect (320×150); the Svg scales the viewBox to fit */
|
|
997
|
+
root: {
|
|
998
|
+
width: '100%',
|
|
999
|
+
aspectRatio: W / H
|
|
1000
|
+
}
|
|
1001
|
+
});
|
|
1002
|
+
//# sourceMappingURL=SupplementChart.js.map
|