@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,1035 @@
|
|
|
1
|
+
import { useEffect, useId, useRef, useState } from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Animated,
|
|
4
|
+
Easing,
|
|
5
|
+
StyleSheet,
|
|
6
|
+
Text,
|
|
7
|
+
View,
|
|
8
|
+
type DimensionValue,
|
|
9
|
+
type LayoutChangeEvent,
|
|
10
|
+
type StyleProp,
|
|
11
|
+
type ViewStyle,
|
|
12
|
+
} from 'react-native';
|
|
13
|
+
import Svg, { Defs, FeGaussianBlur, Filter, Line, LinearGradient, Path, Rect, Stop } from 'react-native-svg';
|
|
14
|
+
import { colors, fonts } from '@lockin90/tokens';
|
|
15
|
+
|
|
16
|
+
/** Catalog variant names — one per timeline form in
|
|
17
|
+
* `lockin90-design/charts/timeline-charts.html` (TL-01 … TL-20). */
|
|
18
|
+
export type TimelineChartVariant =
|
|
19
|
+
| 'event-line' // TL-01
|
|
20
|
+
| 'now-strip' // TL-04
|
|
21
|
+
| 'planned-hollow' // TL-05
|
|
22
|
+
| 'zone-strip' // TL-06
|
|
23
|
+
| 'spark-under' // TL-07
|
|
24
|
+
| 'heat-ticks' // TL-08
|
|
25
|
+
| 'range-blocks' // TL-09
|
|
26
|
+
| 'multi-lane' // TL-10
|
|
27
|
+
| 'gantt-mini' // TL-11
|
|
28
|
+
| 'duration-brackets' // TL-12
|
|
29
|
+
| 'cluster-bubbles' // TL-13
|
|
30
|
+
| 'ticks-24h' // TL-14
|
|
31
|
+
| 'feed' // TL-15
|
|
32
|
+
| 'milestone-flags' // TL-17
|
|
33
|
+
| 'journey-line' // TL-18
|
|
34
|
+
| 'now-zone-strip'; // TL-20
|
|
35
|
+
|
|
36
|
+
/** TL-01 SELECT MARKERS: plain dots / icon pins with glow heads / chip pills. */
|
|
37
|
+
export type TimelineMarkerStyle = 'dots' | 'pins' | 'pills';
|
|
38
|
+
/** TL-15 SELECT LAYOUT: rail on the left / centered with alternating sides. */
|
|
39
|
+
export type TimelineFeedLayout = 'single-side' | 'alternating';
|
|
40
|
+
|
|
41
|
+
/** A point-in-time event on the rail (or a row of the `feed` variant). */
|
|
42
|
+
export interface TimelineEvent {
|
|
43
|
+
/** position along the rail as a 0–1 fraction of the visible window
|
|
44
|
+
* (unused by `feed`, which lays rows out in array order) */
|
|
45
|
+
at?: number;
|
|
46
|
+
/** pill/chip text (pills · feed · milestone-flags) */
|
|
47
|
+
label?: string;
|
|
48
|
+
/** marker color (hex, e.g. `colors.mint`); defaults to `colors.mint` */
|
|
49
|
+
color?: string;
|
|
50
|
+
/** `feed` only: the small time caption beside the rail (e.g. `'7:10'`) */
|
|
51
|
+
time?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** A time range on the rail (`range-blocks` / `gantt-mini` / `duration-brackets`
|
|
55
|
+
* and the rows inside a `TimelineLane`). */
|
|
56
|
+
export interface TimelineSpan {
|
|
57
|
+
/** span start, 0–1 fraction of the window */
|
|
58
|
+
from: number;
|
|
59
|
+
/** span end, 0–1 fraction of the window */
|
|
60
|
+
to: number;
|
|
61
|
+
/** inline label (dark ink inside blocks · chip over brackets) */
|
|
62
|
+
label?: string;
|
|
63
|
+
/** span color (hex); defaults to `colors.mint` */
|
|
64
|
+
color?: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** One named lane of the `multi-lane` variant. */
|
|
68
|
+
export interface TimelineLane {
|
|
69
|
+
name: string;
|
|
70
|
+
spans: TimelineSpan[];
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/** A density bubble of the `cluster-bubbles` variant — sized by `count`. */
|
|
74
|
+
export interface TimelineCluster {
|
|
75
|
+
at: number;
|
|
76
|
+
count: number;
|
|
77
|
+
color?: string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** A milestone ring on the `journey-line` rail. */
|
|
81
|
+
export interface TimelineMilestone {
|
|
82
|
+
at: number;
|
|
83
|
+
label: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** An x-axis caption at a 0–1 fraction of the rail. */
|
|
87
|
+
export interface TimelineAxisLabel {
|
|
88
|
+
at: number;
|
|
89
|
+
label: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/** One stop of the `zone-strip` band gradient (energy by hour). */
|
|
93
|
+
export interface TimelineZoneStop {
|
|
94
|
+
offset: number;
|
|
95
|
+
color: string;
|
|
96
|
+
opacity?: number;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface TimelineChartProps {
|
|
100
|
+
/** catalog variant (TL-01 … TL-20); default `event-line` */
|
|
101
|
+
variant?: TimelineChartVariant;
|
|
102
|
+
/** rail events (event variants · `ticks-24h` · `feed` rows · `milestone-flags`) */
|
|
103
|
+
events?: TimelineEvent[];
|
|
104
|
+
/** time ranges (`range-blocks` / `gantt-mini` / `duration-brackets`) */
|
|
105
|
+
spans?: TimelineSpan[];
|
|
106
|
+
/** named lanes (`multi-lane`) */
|
|
107
|
+
lanes?: TimelineLane[];
|
|
108
|
+
/** density bubbles (`cluster-bubbles`) */
|
|
109
|
+
clusters?: TimelineCluster[];
|
|
110
|
+
/** TL-01 SELECT — event marker style; default `dots` */
|
|
111
|
+
markers?: TimelineMarkerStyle;
|
|
112
|
+
/** TL-15 SELECT — feed layout; default `single-side` */
|
|
113
|
+
layout?: TimelineFeedLayout;
|
|
114
|
+
/** NOW anchor (0–1): vertical rule + pulse; past/future split on
|
|
115
|
+
* `now-strip`/`now-zone-strip` (future dots 35%) and `planned-hollow`
|
|
116
|
+
* (future = dashed hollow rings). Defaults: 0.6 / 0.55 / 0.5 per variant. */
|
|
117
|
+
now?: number;
|
|
118
|
+
/** NOW rule caption (default `'NOW'`) */
|
|
119
|
+
nowLabel?: string;
|
|
120
|
+
/** zone band gradient stops (`zone-strip` / `now-zone-strip`); catalog default */
|
|
121
|
+
zoneStops?: TimelineZoneStop[];
|
|
122
|
+
/** faint context sparkline values 0–1 (`spark-under`; drawn on any rail variant) */
|
|
123
|
+
spark?: number[];
|
|
124
|
+
/** hourly values 0–1 → tick color by zone verdict (`heat-ticks`) */
|
|
125
|
+
heat?: number[];
|
|
126
|
+
/** journey position, 0–1 (`journey-line`; default 0.62) */
|
|
127
|
+
progress?: number;
|
|
128
|
+
/** chip riding the journey position (default `'DAY 56 · 62%'`; `''` hides) */
|
|
129
|
+
progressLabel?: string;
|
|
130
|
+
/** journey milestone rings (default START / DAY 30 / DAY 60 / DAY 90) */
|
|
131
|
+
milestones?: TimelineMilestone[];
|
|
132
|
+
/** top-left mono caption. Per-variant catalog default (`'TODAY'`,
|
|
133
|
+
* `'TODAY · LOG'`, `'PROGRAM PHASES'`, `'MILESTONES · 90D'`,
|
|
134
|
+
* `'90-DAY PROGRAM'`); pass `''` to hide. */
|
|
135
|
+
title?: string;
|
|
136
|
+
/** x-axis captions; catalog defaults per variant (6AM/NOON/11PM …) */
|
|
137
|
+
axisLabels?: TimelineAxisLabel[];
|
|
138
|
+
/** glow underlay — a Gaussian-blurred rail duplicate on `journey-line`,
|
|
139
|
+
* glow shadow behind colored dots on the event variants */
|
|
140
|
+
shine?: boolean;
|
|
141
|
+
/** plot height in px (also the viewBox height); default 150
|
|
142
|
+
* (`feed` auto-grows to fit its rows) */
|
|
143
|
+
height?: number;
|
|
144
|
+
/** accessible description of the chart */
|
|
145
|
+
ariaLabel?: string;
|
|
146
|
+
/** optional wrapper style */
|
|
147
|
+
style?: StyleProp<ViewStyle>;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* ---------------- catalog geometry (timeline-charts.html) ---------------- */
|
|
151
|
+
|
|
152
|
+
const W = 320;
|
|
153
|
+
const P = { l: 10, r: 12, t: 16, b: 14 } as const;
|
|
154
|
+
/** rail start x / rail width — the catalog's AX / AW */
|
|
155
|
+
const AX = P.l + 6;
|
|
156
|
+
const AW = W - P.l - P.r - 12;
|
|
157
|
+
const PLOT_W = W - P.l - P.r;
|
|
158
|
+
|
|
159
|
+
const MINT = colors.mint;
|
|
160
|
+
/** dark ink for labels ON colored pills (the catalog's `#07080D`) */
|
|
161
|
+
const INK = colors.void;
|
|
162
|
+
|
|
163
|
+
/** rail fraction → x (viewBox units) */
|
|
164
|
+
const ax = (f: number) => AX + AW * f;
|
|
165
|
+
/** round for compact attribute strings */
|
|
166
|
+
const r = (n: number) => Math.round(n * 100) / 100;
|
|
167
|
+
|
|
168
|
+
/* ---------------- deterministic demo data (catalog ports) ---------------- */
|
|
169
|
+
|
|
170
|
+
/** the catalog's seeded PRNG — defaults reproduce the catalog cards exactly */
|
|
171
|
+
function mulberry32(a: number): () => number {
|
|
172
|
+
return () => {
|
|
173
|
+
a |= 0;
|
|
174
|
+
a = (a + 0x6d2b79f5) | 0;
|
|
175
|
+
let t = Math.imul(a ^ (a >>> 15), 1 | a);
|
|
176
|
+
t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;
|
|
177
|
+
return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
const clamp01 = (v: number) => Math.max(0.03, Math.min(0.97, v));
|
|
181
|
+
|
|
182
|
+
/** `genData('wave', seed, n)` port — the TL-07 context sparkline. */
|
|
183
|
+
function genWave(seed: number, n: number): number[] {
|
|
184
|
+
const rand = mulberry32(seed);
|
|
185
|
+
const ph = rand() * 6;
|
|
186
|
+
const f = 1.15 + rand() * 0.5;
|
|
187
|
+
const amp = 0.2 + rand() * 0.08;
|
|
188
|
+
const base = 0.48 + rand() * 0.12;
|
|
189
|
+
const v: number[] = [];
|
|
190
|
+
for (let i = 0; i < n; i++) {
|
|
191
|
+
const t = i / (n - 1);
|
|
192
|
+
v.push(clamp01(base + Math.sin(t * Math.PI * 2 * f + ph) * amp + (rand() - 0.5) * 0.08));
|
|
193
|
+
}
|
|
194
|
+
return v;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/** `genData('noisy', seed, n)` port — the TL-08 hourly quality values. */
|
|
198
|
+
function genNoisy(seed: number, n: number): number[] {
|
|
199
|
+
const rand = mulberry32(seed);
|
|
200
|
+
const base = 0.5 + (rand() - 0.5) * 0.1;
|
|
201
|
+
const v: number[] = [];
|
|
202
|
+
for (let i = 0; i < n; i++) {
|
|
203
|
+
const t = i / (n - 1);
|
|
204
|
+
v.push(clamp01(base + Math.sin(t * Math.PI * 2.2 + rand()) * 0.12 + (rand() - 0.5) * 0.3));
|
|
205
|
+
}
|
|
206
|
+
return v;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/** zone verdict for a 0–1 value (the catalog's `zoneOf`). */
|
|
210
|
+
const zoneOf = (v: number) => (v >= 0.62 ? colors.zoneHigh : v >= 0.38 ? colors.zoneMid : colors.zoneLow);
|
|
211
|
+
|
|
212
|
+
const DEFAULT_EVENTS: TimelineEvent[] = [
|
|
213
|
+
{ at: 0.08, label: 'WAKE', color: colors.mint },
|
|
214
|
+
{ at: 0.22, label: 'COFFEE', color: colors.zoneMid },
|
|
215
|
+
{ at: 0.38, label: 'TRAINING', color: colors.cyan },
|
|
216
|
+
{ at: 0.55, label: 'LUNCH', color: colors.lime },
|
|
217
|
+
{ at: 0.74, label: 'MEETING', color: colors.violet },
|
|
218
|
+
{ at: 0.9, label: 'WIND-DOWN', color: colors.indigo },
|
|
219
|
+
];
|
|
220
|
+
const DEFAULT_FEED: TimelineEvent[] = [
|
|
221
|
+
{ time: '7:10', label: 'WOKE · HRV 62', color: colors.mint },
|
|
222
|
+
{ time: '9:40', label: 'COFFEE LOGGED', color: colors.zoneMid },
|
|
223
|
+
{ time: '13:05', label: 'TRAINING DONE', color: colors.cyan },
|
|
224
|
+
{ time: '22:30', label: 'WIND-DOWN', color: colors.violet },
|
|
225
|
+
];
|
|
226
|
+
const DEFAULT_FLAGS: TimelineEvent[] = [
|
|
227
|
+
{ at: 0.12, label: 'FIRST SYNC', color: colors.cyan },
|
|
228
|
+
{ at: 0.45, label: 'DAY 30', color: colors.mint },
|
|
229
|
+
{ at: 0.8, label: 'PR · SQUAT', color: colors.lime },
|
|
230
|
+
];
|
|
231
|
+
const DEFAULT_BLOCKS: TimelineSpan[] = [
|
|
232
|
+
{ from: 0.02, to: 0.3, label: 'SLEEP', color: colors.violet },
|
|
233
|
+
{ from: 0.36, to: 0.46, label: 'TRAIN', color: colors.cyan },
|
|
234
|
+
{ from: 0.52, to: 0.72, label: 'DEEP WORK', color: colors.mint },
|
|
235
|
+
{ from: 0.78, to: 0.9, label: 'SOCIAL', color: colors.zoneMid },
|
|
236
|
+
];
|
|
237
|
+
const DEFAULT_GANTT: TimelineSpan[] = [
|
|
238
|
+
{ from: 0.05, to: 0.35, label: 'BASELINE', color: colors.mint },
|
|
239
|
+
{ from: 0.3, to: 0.6, label: 'CALIBRATE', color: colors.cyan },
|
|
240
|
+
{ from: 0.55, to: 0.92, label: 'OPTIMIZE', color: colors.violet },
|
|
241
|
+
];
|
|
242
|
+
const DEFAULT_BRACKETS: TimelineSpan[] = [
|
|
243
|
+
{ from: 0.1, to: 0.34, label: 'FASTED', color: colors.cyan },
|
|
244
|
+
{ from: 0.42, to: 0.6, label: 'FED · TRAINING WINDOW', color: colors.mint },
|
|
245
|
+
{ from: 0.7, to: 0.94, label: 'CAFFEINE-FREE', color: colors.violet },
|
|
246
|
+
];
|
|
247
|
+
const DEFAULT_LANES: TimelineLane[] = [
|
|
248
|
+
{
|
|
249
|
+
name: 'BODY',
|
|
250
|
+
spans: [
|
|
251
|
+
{ from: 0.02, to: 0.3, color: colors.violet },
|
|
252
|
+
{ from: 0.36, to: 0.46, color: colors.cyan },
|
|
253
|
+
],
|
|
254
|
+
},
|
|
255
|
+
{ name: 'MIND', spans: [{ from: 0.5, to: 0.72, color: colors.mint }] },
|
|
256
|
+
{
|
|
257
|
+
name: 'LIFE',
|
|
258
|
+
spans: [
|
|
259
|
+
{ from: 0.32, to: 0.36, color: colors.lime },
|
|
260
|
+
{ from: 0.76, to: 0.92, color: colors.zoneMid },
|
|
261
|
+
],
|
|
262
|
+
},
|
|
263
|
+
];
|
|
264
|
+
const DEFAULT_CLUSTERS: TimelineCluster[] = [
|
|
265
|
+
{ at: 0.15, count: 3, color: colors.mint },
|
|
266
|
+
{ at: 0.4, count: 7, color: colors.cyan },
|
|
267
|
+
{ at: 0.62, count: 2, color: colors.violet },
|
|
268
|
+
{ at: 0.85, count: 5, color: colors.zoneMid },
|
|
269
|
+
];
|
|
270
|
+
const DEFAULT_MILESTONES: TimelineMilestone[] = [
|
|
271
|
+
{ at: 0, label: 'START' },
|
|
272
|
+
{ at: 0.33, label: 'DAY 30' },
|
|
273
|
+
{ at: 0.66, label: 'DAY 60' },
|
|
274
|
+
{ at: 1, label: 'DAY 90' },
|
|
275
|
+
];
|
|
276
|
+
const DEFAULT_ZONE_STOPS: TimelineZoneStop[] = [
|
|
277
|
+
{ offset: 0, color: colors.zoneLow, opacity: 0.25 },
|
|
278
|
+
{ offset: 0.3, color: colors.zoneHigh, opacity: 0.25 },
|
|
279
|
+
{ offset: 0.65, color: colors.zoneMid, opacity: 0.25 },
|
|
280
|
+
{ offset: 1, color: colors.zoneLow, opacity: 0.25 },
|
|
281
|
+
];
|
|
282
|
+
const DEFAULT_SPARK = genWave(77, 24);
|
|
283
|
+
const DEFAULT_HEAT = genNoisy(31, 25);
|
|
284
|
+
const HOURS_AXIS: TimelineAxisLabel[] = [
|
|
285
|
+
{ at: 0, label: '6AM' },
|
|
286
|
+
{ at: 0.5, label: 'NOON' },
|
|
287
|
+
{ at: 1, label: '11PM' },
|
|
288
|
+
];
|
|
289
|
+
const TICKS24_AXIS: TimelineAxisLabel[] = [
|
|
290
|
+
{ at: 0.25, label: '6AM' },
|
|
291
|
+
{ at: 0.5, label: 'NOON' },
|
|
292
|
+
{ at: 0.75, label: '6PM' },
|
|
293
|
+
];
|
|
294
|
+
const DEFAULT_TITLES: Partial<Record<TimelineChartVariant, string>> = {
|
|
295
|
+
feed: 'TODAY · LOG',
|
|
296
|
+
'gantt-mini': 'PROGRAM PHASES',
|
|
297
|
+
'milestone-flags': 'MILESTONES · 90D',
|
|
298
|
+
'journey-line': '90-DAY PROGRAM',
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
/** Fritsch–Carlson monotone cubic — the catalog's `smoothPath` (spark only). */
|
|
302
|
+
function monotonePath(pts: Array<[number, number]>): string {
|
|
303
|
+
const n = pts.length;
|
|
304
|
+
if (n < 3) return pts.map(([x, y], i) => `${i === 0 ? 'M' : 'L'}${r(x)} ${r(y)}`).join('');
|
|
305
|
+
const dx: number[] = [];
|
|
306
|
+
const m: number[] = [];
|
|
307
|
+
const tg: number[] = [];
|
|
308
|
+
for (let i = 0; i < n - 1; i++) {
|
|
309
|
+
dx[i] = pts[i + 1][0] - pts[i][0];
|
|
310
|
+
m[i] = (pts[i + 1][1] - pts[i][1]) / dx[i];
|
|
311
|
+
}
|
|
312
|
+
tg[0] = m[0];
|
|
313
|
+
tg[n - 1] = m[n - 2];
|
|
314
|
+
for (let i = 1; i < n - 1; i++) tg[i] = m[i - 1] * m[i] <= 0 ? 0 : (m[i - 1] + m[i]) / 2;
|
|
315
|
+
for (let i = 0; i < n - 1; i++) {
|
|
316
|
+
if (m[i] === 0) {
|
|
317
|
+
tg[i] = 0;
|
|
318
|
+
tg[i + 1] = 0;
|
|
319
|
+
} else {
|
|
320
|
+
const a = tg[i] / m[i];
|
|
321
|
+
const b = tg[i + 1] / m[i];
|
|
322
|
+
const s = a * a + b * b;
|
|
323
|
+
if (s > 9) {
|
|
324
|
+
const tau = 3 / Math.sqrt(s);
|
|
325
|
+
tg[i] = tau * a * m[i];
|
|
326
|
+
tg[i + 1] = tau * b * m[i];
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
let d = `M${r(pts[0][0])} ${r(pts[0][1])}`;
|
|
331
|
+
for (let i = 0; i < n - 1; i++) {
|
|
332
|
+
const h = dx[i] / 3;
|
|
333
|
+
d += `C${r(pts[i][0] + h)} ${r(pts[i][1] + h * tg[i])} ${r(pts[i + 1][0] - h)} ${r(
|
|
334
|
+
pts[i + 1][1] - h * tg[i + 1],
|
|
335
|
+
)} ${r(pts[i + 1][0])} ${r(pts[i + 1][1])}`;
|
|
336
|
+
}
|
|
337
|
+
return d;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/* ---------------- render model (SVG marks + round/text overlays) ---------------- */
|
|
341
|
+
|
|
342
|
+
type Anchor = 'start' | 'middle' | 'end';
|
|
343
|
+
|
|
344
|
+
type SvgMark =
|
|
345
|
+
| {
|
|
346
|
+
k: 'line';
|
|
347
|
+
x1: number;
|
|
348
|
+
y1: number;
|
|
349
|
+
x2: number;
|
|
350
|
+
y2: number;
|
|
351
|
+
stroke: string;
|
|
352
|
+
w: number;
|
|
353
|
+
opacity?: number;
|
|
354
|
+
dash?: string;
|
|
355
|
+
cap?: boolean;
|
|
356
|
+
/** SVG filter reference (`url(#…)`) — the journey-line shine blur */
|
|
357
|
+
filter?: string;
|
|
358
|
+
}
|
|
359
|
+
| { k: 'rect'; x: number; y: number; w: number; h: number; rx: number; fill: string; opacity?: number }
|
|
360
|
+
| { k: 'path'; d: string; stroke: string; w: number; opacity?: number; dash?: string; cap?: boolean };
|
|
361
|
+
|
|
362
|
+
interface ODot {
|
|
363
|
+
x: number;
|
|
364
|
+
y: number;
|
|
365
|
+
d: number;
|
|
366
|
+
color: string;
|
|
367
|
+
opacity?: number;
|
|
368
|
+
glow?: boolean;
|
|
369
|
+
}
|
|
370
|
+
interface ORing {
|
|
371
|
+
x: number;
|
|
372
|
+
y: number;
|
|
373
|
+
d: number;
|
|
374
|
+
color: string;
|
|
375
|
+
}
|
|
376
|
+
interface ONote {
|
|
377
|
+
x: number;
|
|
378
|
+
y: number; // text baseline (catalog coords)
|
|
379
|
+
text: string;
|
|
380
|
+
color: string;
|
|
381
|
+
anchor: Anchor;
|
|
382
|
+
}
|
|
383
|
+
interface OChip {
|
|
384
|
+
x: number;
|
|
385
|
+
y: number; // pill center
|
|
386
|
+
text: string;
|
|
387
|
+
color: string;
|
|
388
|
+
anchor: Anchor;
|
|
389
|
+
}
|
|
390
|
+
interface OPulse {
|
|
391
|
+
x: number;
|
|
392
|
+
y: number;
|
|
393
|
+
color: string;
|
|
394
|
+
}
|
|
395
|
+
interface OBubble {
|
|
396
|
+
x: number;
|
|
397
|
+
y: number;
|
|
398
|
+
radius: number;
|
|
399
|
+
color: string;
|
|
400
|
+
count: number;
|
|
401
|
+
}
|
|
402
|
+
interface OFlag {
|
|
403
|
+
x: number;
|
|
404
|
+
y: number;
|
|
405
|
+
color: string;
|
|
406
|
+
}
|
|
407
|
+
interface OMilestone {
|
|
408
|
+
x: number;
|
|
409
|
+
y: number;
|
|
410
|
+
passed: boolean;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
/** Expanding + fading ring riding the NOW / journey dot — Animated loop,
|
|
414
|
+
* mirroring the web SMIL pulse (1.8s, r 3.6→11, opacity .8→0). */
|
|
415
|
+
function PulseRing({ color }: { color: string }) {
|
|
416
|
+
const v = useRef(new Animated.Value(0)).current;
|
|
417
|
+
useEffect(() => {
|
|
418
|
+
const loop = Animated.loop(
|
|
419
|
+
Animated.timing(v, { toValue: 1, duration: 1800, easing: Easing.out(Easing.quad), useNativeDriver: true }),
|
|
420
|
+
);
|
|
421
|
+
loop.start();
|
|
422
|
+
return () => loop.stop();
|
|
423
|
+
}, [v]);
|
|
424
|
+
return (
|
|
425
|
+
<Animated.View
|
|
426
|
+
style={[
|
|
427
|
+
styles.pulse,
|
|
428
|
+
{
|
|
429
|
+
borderColor: color,
|
|
430
|
+
opacity: v.interpolate({ inputRange: [0, 1], outputRange: [0.8, 0] }),
|
|
431
|
+
transform: [{ scale: v.interpolate({ inputRange: [0, 1], outputRange: [1, 3] }) }],
|
|
432
|
+
},
|
|
433
|
+
]}
|
|
434
|
+
/>
|
|
435
|
+
);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* TimelineChart — the timeline family: events, spans and journeys through the
|
|
440
|
+
* day (catalog TL-01…TL-20). One component covers the 16 catalog forms via
|
|
441
|
+
* `variant`: event rails (dots / glowing icon pins / alternating chip pills,
|
|
442
|
+
* NOW split, planned-hollow, zone band, context spark, heat ticks), span lanes
|
|
443
|
+
* (range blocks, BODY/MIND/LIFE lanes, mini gantt with dependency elbows,
|
|
444
|
+
* duration brackets, cluster bubbles, 24h ticks) and feeds/journeys (vertical
|
|
445
|
+
* feed, milestone flags, the 90-day journey rail, the full now+zone day
|
|
446
|
+
* widget). The Svg stretches to the measured container width via a fixed
|
|
447
|
+
* viewBox + non-uniform scaling; dots, pills, pennants and text render as
|
|
448
|
+
* absolutely-positioned Views placed by percentage so they stay perfectly
|
|
449
|
+
* round and legible.
|
|
450
|
+
*/
|
|
451
|
+
export function TimelineChart({
|
|
452
|
+
variant = 'event-line',
|
|
453
|
+
events,
|
|
454
|
+
spans,
|
|
455
|
+
lanes = DEFAULT_LANES,
|
|
456
|
+
clusters = DEFAULT_CLUSTERS,
|
|
457
|
+
markers = 'dots',
|
|
458
|
+
layout = 'single-side',
|
|
459
|
+
now,
|
|
460
|
+
nowLabel = 'NOW',
|
|
461
|
+
zoneStops = DEFAULT_ZONE_STOPS,
|
|
462
|
+
spark,
|
|
463
|
+
heat = DEFAULT_HEAT,
|
|
464
|
+
progress = 0.62,
|
|
465
|
+
progressLabel = 'DAY 56 · 62%',
|
|
466
|
+
milestones = DEFAULT_MILESTONES,
|
|
467
|
+
title,
|
|
468
|
+
axisLabels,
|
|
469
|
+
shine = false,
|
|
470
|
+
height = 150,
|
|
471
|
+
ariaLabel,
|
|
472
|
+
style,
|
|
473
|
+
}: TimelineChartProps) {
|
|
474
|
+
const uid = useId().replace(/[^a-zA-Z0-9]/g, '');
|
|
475
|
+
const zoneId = `lk-tlc-zone-${uid}`;
|
|
476
|
+
const railId = `lk-tlc-rail-${uid}`;
|
|
477
|
+
const blurId = `lk-tlc-blur-${uid}`;
|
|
478
|
+
const [width, setWidth] = useState(0);
|
|
479
|
+
const onLayout = (e: LayoutChangeEvent) => setWidth(e.nativeEvent.layout.width);
|
|
480
|
+
|
|
481
|
+
const evs =
|
|
482
|
+
events ??
|
|
483
|
+
(variant === 'feed'
|
|
484
|
+
? DEFAULT_FEED
|
|
485
|
+
: variant === 'milestone-flags'
|
|
486
|
+
? DEFAULT_FLAGS
|
|
487
|
+
: variant === 'ticks-24h'
|
|
488
|
+
? DEFAULT_EVENTS.slice(1, 5)
|
|
489
|
+
: DEFAULT_EVENTS);
|
|
490
|
+
const spanRows =
|
|
491
|
+
spans ??
|
|
492
|
+
(variant === 'gantt-mini'
|
|
493
|
+
? DEFAULT_GANTT
|
|
494
|
+
: variant === 'duration-brackets'
|
|
495
|
+
? DEFAULT_BRACKETS
|
|
496
|
+
: DEFAULT_BLOCKS);
|
|
497
|
+
const resolvedTitle = title ?? DEFAULT_TITLES[variant] ?? 'TODAY';
|
|
498
|
+
|
|
499
|
+
const nowAt =
|
|
500
|
+
now ??
|
|
501
|
+
(variant === 'now-strip'
|
|
502
|
+
? 0.6
|
|
503
|
+
: variant === 'now-zone-strip'
|
|
504
|
+
? 0.55
|
|
505
|
+
: variant === 'planned-hollow'
|
|
506
|
+
? 0.5
|
|
507
|
+
: undefined);
|
|
508
|
+
|
|
509
|
+
const h =
|
|
510
|
+
variant === 'feed' ? Math.max(height, 36 + Math.max(0, evs.length - 1) * 26 + 36) : height;
|
|
511
|
+
const y = h / 2 + 4;
|
|
512
|
+
const plotH = h - P.t - P.b;
|
|
513
|
+
|
|
514
|
+
const marks: SvgMark[] = [];
|
|
515
|
+
const oDots: ODot[] = [];
|
|
516
|
+
const oRings: ORing[] = [];
|
|
517
|
+
const oNotes: ONote[] = [];
|
|
518
|
+
const oChips: OChip[] = [];
|
|
519
|
+
const oPulses: OPulse[] = [];
|
|
520
|
+
const oBubbles: OBubble[] = [];
|
|
521
|
+
const oFlags: OFlag[] = [];
|
|
522
|
+
const oMilestones: OMilestone[] = [];
|
|
523
|
+
let needZoneGrad = false;
|
|
524
|
+
let needRailGrad = false;
|
|
525
|
+
let needBlur = false;
|
|
526
|
+
|
|
527
|
+
if (resolvedTitle)
|
|
528
|
+
oNotes.push({ x: P.l + 2, y: 11, text: resolvedTitle, color: colors.textFaint, anchor: 'start' });
|
|
529
|
+
|
|
530
|
+
/** the horizontal rail + optional hour captions (the catalog's `axis()`) */
|
|
531
|
+
const drawAxis = (ay: number, hours: boolean) => {
|
|
532
|
+
marks.push({
|
|
533
|
+
k: 'line',
|
|
534
|
+
x1: AX,
|
|
535
|
+
y1: ay,
|
|
536
|
+
x2: AX + AW,
|
|
537
|
+
y2: ay,
|
|
538
|
+
stroke: colors.text,
|
|
539
|
+
w: 1.5,
|
|
540
|
+
opacity: 0.14,
|
|
541
|
+
cap: true,
|
|
542
|
+
});
|
|
543
|
+
if (hours)
|
|
544
|
+
(axisLabels ?? HOURS_AXIS).forEach((L) =>
|
|
545
|
+
oNotes.push({
|
|
546
|
+
x: ax(L.at),
|
|
547
|
+
y: ay + 16,
|
|
548
|
+
text: L.label,
|
|
549
|
+
color: colors.textFaint,
|
|
550
|
+
anchor: L.at === 0 ? 'start' : L.at === 1 ? 'end' : 'middle',
|
|
551
|
+
}),
|
|
552
|
+
);
|
|
553
|
+
};
|
|
554
|
+
/** NOW rule + pulse + caption */
|
|
555
|
+
const drawNow = (nf: number) => {
|
|
556
|
+
const nx = ax(nf);
|
|
557
|
+
marks.push({ k: 'line', x1: nx, y1: y - 26, x2: nx, y2: y + 20, stroke: colors.text, w: 1, opacity: 0.25 });
|
|
558
|
+
oPulses.push({ x: nx, y, color: colors.text });
|
|
559
|
+
oNotes.push({ x: nx, y: y - 32, text: nowLabel, color: colors.textDim, anchor: 'middle' });
|
|
560
|
+
};
|
|
561
|
+
|
|
562
|
+
/* ---------- A · event rails ---------- */
|
|
563
|
+
const railVariant =
|
|
564
|
+
variant === 'event-line' ||
|
|
565
|
+
variant === 'now-strip' ||
|
|
566
|
+
variant === 'planned-hollow' ||
|
|
567
|
+
variant === 'zone-strip' ||
|
|
568
|
+
variant === 'spark-under' ||
|
|
569
|
+
variant === 'heat-ticks' ||
|
|
570
|
+
variant === 'now-zone-strip';
|
|
571
|
+
|
|
572
|
+
if (railVariant) {
|
|
573
|
+
const sparkData = spark ?? (variant === 'spark-under' ? DEFAULT_SPARK : undefined);
|
|
574
|
+
if (sparkData && sparkData.length > 1) {
|
|
575
|
+
const pts = sparkData.map(
|
|
576
|
+
(v, i) =>
|
|
577
|
+
[P.l + (i * PLOT_W) / (sparkData.length - 1), P.t + (1 - v) * plotH] as [number, number],
|
|
578
|
+
);
|
|
579
|
+
marks.push({ k: 'path', d: monotonePath(pts), stroke: colors.text, w: 1.5, opacity: 0.1 });
|
|
580
|
+
}
|
|
581
|
+
if (variant === 'zone-strip' || variant === 'now-zone-strip') {
|
|
582
|
+
needZoneGrad = true;
|
|
583
|
+
marks.push({ k: 'rect', x: AX, y: y - 5, w: AW, h: 10, rx: 5, fill: `url(#${zoneId})` });
|
|
584
|
+
}
|
|
585
|
+
drawAxis(y, true);
|
|
586
|
+
|
|
587
|
+
if (variant === 'heat-ticks') {
|
|
588
|
+
heat.forEach((v, i) => {
|
|
589
|
+
const x = ax(heat.length > 1 ? i / (heat.length - 1) : 0.5);
|
|
590
|
+
marks.push({ k: 'line', x1: x, y1: y - 7, x2: x, y2: y + 7, stroke: zoneOf(v), w: 2.4, cap: true });
|
|
591
|
+
});
|
|
592
|
+
} else {
|
|
593
|
+
const dimFuture = variant === 'now-strip' || variant === 'now-zone-strip';
|
|
594
|
+
evs.forEach((ev, i) => {
|
|
595
|
+
const x = ax(ev.at ?? 0);
|
|
596
|
+
const color = ev.color ?? MINT;
|
|
597
|
+
const past = nowAt == null || (ev.at ?? 0) <= nowAt;
|
|
598
|
+
if (markers === 'pins') {
|
|
599
|
+
marks.push({ k: 'line', x1: x, y1: y, x2: x, y2: y - 18, stroke: colors.text, w: 1, opacity: 0.3 });
|
|
600
|
+
oDots.push({ x, y: y - 21, d: 6.8, color, glow: true });
|
|
601
|
+
oDots.push({ x, y, d: 4, color: colors.text });
|
|
602
|
+
} else if (variant === 'planned-hollow' && !past) {
|
|
603
|
+
oRings.push({ x, y, d: 9.5, color });
|
|
604
|
+
} else {
|
|
605
|
+
oDots.push({ x, y, d: 8, color, opacity: dimFuture && !past ? 0.35 : 1, glow: shine });
|
|
606
|
+
}
|
|
607
|
+
if (markers === 'pills' && ev.label) {
|
|
608
|
+
oChips.push({ x, y: i % 2 === 0 ? y - 18 : y + 18, text: ev.label, color, anchor: 'middle' });
|
|
609
|
+
}
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
if (nowAt != null) drawNow(nowAt);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
/* ---------- B · spans & lanes ---------- */
|
|
616
|
+
if (variant === 'range-blocks') {
|
|
617
|
+
drawAxis(y + 14, true);
|
|
618
|
+
spanRows.forEach((b) => {
|
|
619
|
+
const x0 = ax(b.from);
|
|
620
|
+
const wpx = ax(b.to) - x0;
|
|
621
|
+
marks.push({ k: 'rect', x: x0, y: y - 10, w: wpx, h: 16, rx: 8, fill: b.color ?? MINT, opacity: 0.8 });
|
|
622
|
+
if (b.label && wpx > 46) oNotes.push({ x: x0 + wpx / 2, y: y + 1.5, text: b.label, color: INK, anchor: 'middle' });
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
if (variant === 'multi-lane') {
|
|
626
|
+
lanes.forEach((ln, li) => {
|
|
627
|
+
const ly = 42 + li * 32;
|
|
628
|
+
oNotes.push({ x: AX, y: ly + 3, text: ln.name, color: colors.textFaint, anchor: 'start' });
|
|
629
|
+
marks.push({ k: 'line', x1: AX + 34, y1: ly, x2: AX + AW, y2: ly, stroke: colors.text, w: 1, opacity: 0.07 });
|
|
630
|
+
ln.spans.forEach((b) => {
|
|
631
|
+
const x0 = AX + 34 + (AW - 34) * b.from;
|
|
632
|
+
const wpx = Math.max(8, (AW - 34) * (b.to - b.from));
|
|
633
|
+
marks.push({ k: 'rect', x: x0, y: ly - 7, w: wpx, h: 14, rx: 7, fill: b.color ?? MINT, opacity: 0.85 });
|
|
634
|
+
});
|
|
635
|
+
});
|
|
636
|
+
drawAxis(42 + lanes.length * 32 - 14, false);
|
|
637
|
+
}
|
|
638
|
+
if (variant === 'gantt-mini') {
|
|
639
|
+
spanRows.forEach((s, ri) => {
|
|
640
|
+
const ly = 46 + ri * 30;
|
|
641
|
+
const x0 = ax(s.from);
|
|
642
|
+
const wpx = ax(s.to) - x0;
|
|
643
|
+
marks.push({ k: 'rect', x: x0, y: ly - 8, w: wpx, h: 16, rx: 4, fill: s.color ?? MINT, opacity: 0.85 });
|
|
644
|
+
if (s.label) oNotes.push({ x: x0 + wpx / 2, y: ly + 2, text: s.label, color: INK, anchor: 'middle' });
|
|
645
|
+
const next = spanRows[ri + 1];
|
|
646
|
+
if (next) {
|
|
647
|
+
const nx0 = ax(next.from);
|
|
648
|
+
marks.push({
|
|
649
|
+
k: 'path',
|
|
650
|
+
d: `M${r(x0 + wpx)} ${ly + 8}L${r(x0 + wpx)} ${ly + 15}L${r(nx0)} ${ly + 15}L${r(nx0)} ${ly + 22}`,
|
|
651
|
+
stroke: colors.text,
|
|
652
|
+
w: 1,
|
|
653
|
+
opacity: 0.25,
|
|
654
|
+
dash: '2 2',
|
|
655
|
+
});
|
|
656
|
+
}
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
if (variant === 'duration-brackets') {
|
|
660
|
+
drawAxis(y, true);
|
|
661
|
+
spanRows.forEach((b) => {
|
|
662
|
+
const x0 = ax(b.from);
|
|
663
|
+
const x1 = ax(b.to);
|
|
664
|
+
const color = b.color ?? MINT;
|
|
665
|
+
marks.push({
|
|
666
|
+
k: 'path',
|
|
667
|
+
d: `M${r(x0)} ${y - 12}L${r(x0)} ${y - 18}L${r(x1)} ${y - 18}L${r(x1)} ${y - 12}`,
|
|
668
|
+
stroke: color,
|
|
669
|
+
w: 1.4,
|
|
670
|
+
});
|
|
671
|
+
if (b.label) oChips.push({ x: (x0 + x1) / 2, y: y - 28, text: b.label, color, anchor: 'middle' });
|
|
672
|
+
});
|
|
673
|
+
}
|
|
674
|
+
if (variant === 'cluster-bubbles') {
|
|
675
|
+
drawAxis(y, true);
|
|
676
|
+
clusters.forEach((cl) =>
|
|
677
|
+
oBubbles.push({ x: ax(cl.at), y, radius: 6 + cl.count * 1.6, color: cl.color ?? MINT, count: cl.count }),
|
|
678
|
+
);
|
|
679
|
+
}
|
|
680
|
+
if (variant === 'ticks-24h') {
|
|
681
|
+
drawAxis(y, false);
|
|
682
|
+
for (let i = 0; i <= 24; i++) {
|
|
683
|
+
const big = i % 6 === 0;
|
|
684
|
+
marks.push({
|
|
685
|
+
k: 'line',
|
|
686
|
+
x1: ax(i / 24),
|
|
687
|
+
y1: y - (big ? 6 : 3),
|
|
688
|
+
x2: ax(i / 24),
|
|
689
|
+
y2: y + (big ? 6 : 3),
|
|
690
|
+
stroke: colors.text,
|
|
691
|
+
w: 1,
|
|
692
|
+
opacity: big ? 0.3 : 0.12,
|
|
693
|
+
});
|
|
694
|
+
}
|
|
695
|
+
(axisLabels ?? TICKS24_AXIS).forEach((L) =>
|
|
696
|
+
oNotes.push({ x: ax(L.at), y: y + 20, text: L.label, color: colors.textFaint, anchor: 'middle' }),
|
|
697
|
+
);
|
|
698
|
+
evs.forEach((ev) => oDots.push({ x: ax(ev.at ?? 0), y, d: 6.8, color: ev.color ?? MINT, glow: shine }));
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
/* ---------- C · feeds & journeys ---------- */
|
|
702
|
+
if (variant === 'feed') {
|
|
703
|
+
const fx = layout === 'alternating' ? W / 2 : 46;
|
|
704
|
+
marks.push({ k: 'line', x1: fx, y1: 26, x2: fx, y2: h - 18, stroke: colors.text, w: 1.5, opacity: 0.14 });
|
|
705
|
+
evs.forEach((it, i) => {
|
|
706
|
+
const iy = 36 + i * 26;
|
|
707
|
+
const color = it.color ?? MINT;
|
|
708
|
+
oDots.push({ x: fx, y: iy, d: 7.2, color, glow: true });
|
|
709
|
+
if (layout === 'single-side') {
|
|
710
|
+
if (it.time) oNotes.push({ x: fx - 10, y: iy + 3, text: it.time, color: colors.textFaint, anchor: 'end' });
|
|
711
|
+
if (it.label) oChips.push({ x: fx + 12, y: iy, text: it.label, color, anchor: 'start' });
|
|
712
|
+
} else {
|
|
713
|
+
const left = i % 2 === 0;
|
|
714
|
+
if (it.label)
|
|
715
|
+
oChips.push({ x: fx + (left ? -12 : 12), y: iy, text: it.label, color, anchor: left ? 'end' : 'start' });
|
|
716
|
+
if (it.time)
|
|
717
|
+
oNotes.push({
|
|
718
|
+
x: fx + (left ? 10 : -10),
|
|
719
|
+
y: iy + 3,
|
|
720
|
+
text: it.time,
|
|
721
|
+
color: colors.textFaint,
|
|
722
|
+
anchor: left ? 'start' : 'end',
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
});
|
|
726
|
+
}
|
|
727
|
+
if (variant === 'milestone-flags') {
|
|
728
|
+
drawAxis(y + 10, true);
|
|
729
|
+
evs.forEach((f) => {
|
|
730
|
+
const x = ax(f.at ?? 0);
|
|
731
|
+
const color = f.color ?? MINT;
|
|
732
|
+
marks.push({ k: 'line', x1: x, y1: y + 10, x2: x, y2: y - 22, stroke: colors.text, w: 1.2, opacity: 0.3 });
|
|
733
|
+
oFlags.push({ x, y: y - 22, color });
|
|
734
|
+
if (f.label) oChips.push({ x, y: y + 24, text: f.label, color, anchor: 'middle' });
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
if (variant === 'journey-line') {
|
|
738
|
+
const jy = y + 6;
|
|
739
|
+
const prog = Math.max(0, Math.min(1, progress));
|
|
740
|
+
marks.push({ k: 'line', x1: AX, y1: jy, x2: AX + AW, y2: jy, stroke: colors.text, w: 6, opacity: 0.1, cap: true });
|
|
741
|
+
if (shine) {
|
|
742
|
+
// shine — a Gaussian-blurred duplicate rail behind the crisp one: the
|
|
743
|
+
// native twin of the web mark's `blur(6px)` underlay
|
|
744
|
+
needBlur = true;
|
|
745
|
+
marks.push({
|
|
746
|
+
k: 'line',
|
|
747
|
+
x1: AX,
|
|
748
|
+
y1: jy,
|
|
749
|
+
x2: ax(prog),
|
|
750
|
+
y2: jy,
|
|
751
|
+
stroke: MINT,
|
|
752
|
+
w: 11,
|
|
753
|
+
opacity: 0.5,
|
|
754
|
+
cap: true,
|
|
755
|
+
filter: `url(#${blurId})`,
|
|
756
|
+
});
|
|
757
|
+
}
|
|
758
|
+
needRailGrad = true;
|
|
759
|
+
marks.push({ k: 'line', x1: AX, y1: jy, x2: ax(prog), y2: jy, stroke: `url(#${railId})`, w: 6, cap: true });
|
|
760
|
+
milestones.forEach((m) => {
|
|
761
|
+
const passed = prog >= m.at;
|
|
762
|
+
oMilestones.push({ x: ax(m.at), y: jy, passed });
|
|
763
|
+
oNotes.push({
|
|
764
|
+
x: ax(m.at),
|
|
765
|
+
y: jy + 20,
|
|
766
|
+
text: m.label,
|
|
767
|
+
color: passed ? colors.textDim : colors.textFaint,
|
|
768
|
+
anchor: 'middle',
|
|
769
|
+
});
|
|
770
|
+
});
|
|
771
|
+
oPulses.push({ x: ax(prog), y: jy, color: MINT });
|
|
772
|
+
if (progressLabel) oChips.push({ x: ax(prog), y: jy - 18, text: progressLabel, color: MINT, anchor: 'middle' });
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
/* ---------------- render ---------------- */
|
|
776
|
+
|
|
777
|
+
const pctX = (x: number) => `${r((x / W) * 100)}%` as DimensionValue;
|
|
778
|
+
const anchorAlign = (a: Anchor) =>
|
|
779
|
+
a === 'start' ? ('flex-start' as const) : a === 'middle' ? ('center' as const) : ('flex-end' as const);
|
|
780
|
+
|
|
781
|
+
return (
|
|
782
|
+
<View style={[styles.root, style]} accessibilityRole="image" accessibilityLabel={ariaLabel}>
|
|
783
|
+
<View style={{ position: 'relative', height: h }} onLayout={onLayout}>
|
|
784
|
+
{width > 0 && (
|
|
785
|
+
<Svg width={width} height={h} viewBox={`0 0 ${W} ${h}`} preserveAspectRatio="none">
|
|
786
|
+
<Defs>
|
|
787
|
+
{needZoneGrad ? (
|
|
788
|
+
<LinearGradient id={zoneId} x1="0" y1="0" x2="1" y2="0">
|
|
789
|
+
{zoneStops.map((s, i) => (
|
|
790
|
+
<Stop key={i} offset={s.offset} stopColor={s.color} stopOpacity={s.opacity ?? 1} />
|
|
791
|
+
))}
|
|
792
|
+
</LinearGradient>
|
|
793
|
+
) : null}
|
|
794
|
+
{needRailGrad ? (
|
|
795
|
+
<LinearGradient id={railId} x1="0" y1="0" x2="1" y2="0">
|
|
796
|
+
<Stop offset="0" stopColor={colors.lime} />
|
|
797
|
+
<Stop offset="1" stopColor={colors.mint} />
|
|
798
|
+
</LinearGradient>
|
|
799
|
+
) : null}
|
|
800
|
+
{needBlur ? (
|
|
801
|
+
/* real Gaussian blur for the journey-line shine (Fabric-native in
|
|
802
|
+
react-native-svg 15) — the native twin of the web `blur(6px)`.
|
|
803
|
+
Region in user space over the full canvas so the flat rail
|
|
804
|
+
never clips the blur to its bounding box. */
|
|
805
|
+
<Filter id={blurId} filterUnits="userSpaceOnUse" x={-12} y={-12} width={W + 24} height={h + 24}>
|
|
806
|
+
<FeGaussianBlur stdDeviation={3} />
|
|
807
|
+
</Filter>
|
|
808
|
+
) : null}
|
|
809
|
+
</Defs>
|
|
810
|
+
{marks.map((mk, i) =>
|
|
811
|
+
mk.k === 'rect' ? (
|
|
812
|
+
<Rect
|
|
813
|
+
key={i}
|
|
814
|
+
x={r(mk.x)}
|
|
815
|
+
y={r(mk.y)}
|
|
816
|
+
width={r(Math.max(0, mk.w))}
|
|
817
|
+
height={mk.h}
|
|
818
|
+
rx={mk.rx}
|
|
819
|
+
fill={mk.fill}
|
|
820
|
+
opacity={mk.opacity}
|
|
821
|
+
/>
|
|
822
|
+
) : mk.k === 'line' ? (
|
|
823
|
+
<Line
|
|
824
|
+
key={i}
|
|
825
|
+
x1={r(mk.x1)}
|
|
826
|
+
y1={r(mk.y1)}
|
|
827
|
+
x2={r(mk.x2)}
|
|
828
|
+
y2={r(mk.y2)}
|
|
829
|
+
stroke={mk.stroke}
|
|
830
|
+
strokeWidth={mk.w}
|
|
831
|
+
strokeOpacity={mk.opacity}
|
|
832
|
+
strokeDasharray={mk.dash}
|
|
833
|
+
strokeLinecap={mk.cap ? 'round' : undefined}
|
|
834
|
+
filter={mk.filter}
|
|
835
|
+
/>
|
|
836
|
+
) : (
|
|
837
|
+
<Path
|
|
838
|
+
key={i}
|
|
839
|
+
d={mk.d}
|
|
840
|
+
fill="none"
|
|
841
|
+
stroke={mk.stroke}
|
|
842
|
+
strokeWidth={mk.w}
|
|
843
|
+
strokeOpacity={mk.opacity}
|
|
844
|
+
strokeDasharray={mk.dash}
|
|
845
|
+
strokeLinecap={mk.cap ? 'round' : undefined}
|
|
846
|
+
/>
|
|
847
|
+
),
|
|
848
|
+
)}
|
|
849
|
+
</Svg>
|
|
850
|
+
)}
|
|
851
|
+
|
|
852
|
+
{/* round marks + text — View overlays so they never distort with the stretch */}
|
|
853
|
+
{oDots.map((d, i) => (
|
|
854
|
+
<View key={`d-${i}`} style={[styles.anchor, { left: pctX(d.x), top: d.y }]} pointerEvents="none">
|
|
855
|
+
<View
|
|
856
|
+
style={[
|
|
857
|
+
{
|
|
858
|
+
position: 'absolute',
|
|
859
|
+
width: d.d,
|
|
860
|
+
height: d.d,
|
|
861
|
+
borderRadius: d.d / 2,
|
|
862
|
+
backgroundColor: d.color,
|
|
863
|
+
opacity: d.opacity,
|
|
864
|
+
},
|
|
865
|
+
d.glow
|
|
866
|
+
? {
|
|
867
|
+
shadowColor: d.color,
|
|
868
|
+
shadowOpacity: 0.8,
|
|
869
|
+
shadowRadius: 4,
|
|
870
|
+
shadowOffset: { width: 0, height: 0 },
|
|
871
|
+
elevation: 3,
|
|
872
|
+
}
|
|
873
|
+
: null,
|
|
874
|
+
]}
|
|
875
|
+
/>
|
|
876
|
+
</View>
|
|
877
|
+
))}
|
|
878
|
+
{oRings.map((g, i) => (
|
|
879
|
+
<View key={`r-${i}`} style={[styles.anchor, { left: pctX(g.x), top: g.y }]} pointerEvents="none">
|
|
880
|
+
<View
|
|
881
|
+
style={{
|
|
882
|
+
position: 'absolute',
|
|
883
|
+
width: g.d,
|
|
884
|
+
height: g.d,
|
|
885
|
+
borderRadius: g.d / 2,
|
|
886
|
+
borderWidth: 1.5,
|
|
887
|
+
borderStyle: 'dashed',
|
|
888
|
+
borderColor: g.color,
|
|
889
|
+
}}
|
|
890
|
+
/>
|
|
891
|
+
</View>
|
|
892
|
+
))}
|
|
893
|
+
{oBubbles.map((b, i) => (
|
|
894
|
+
<View key={`b-${i}`} style={[styles.anchor, { left: pctX(b.x), top: b.y }]} pointerEvents="none">
|
|
895
|
+
<View
|
|
896
|
+
style={{
|
|
897
|
+
position: 'absolute',
|
|
898
|
+
width: b.radius * 2,
|
|
899
|
+
height: b.radius * 2,
|
|
900
|
+
borderRadius: b.radius,
|
|
901
|
+
borderWidth: 1.2,
|
|
902
|
+
borderColor: b.color,
|
|
903
|
+
backgroundColor: `${b.color}40`,
|
|
904
|
+
alignItems: 'center',
|
|
905
|
+
justifyContent: 'center',
|
|
906
|
+
}}
|
|
907
|
+
>
|
|
908
|
+
<Text style={styles.bubbleText}>{b.count}</Text>
|
|
909
|
+
</View>
|
|
910
|
+
</View>
|
|
911
|
+
))}
|
|
912
|
+
{oMilestones.map((m, i) => (
|
|
913
|
+
<View key={`m-${i}`} style={[styles.anchor, { left: pctX(m.x), top: m.y }]} pointerEvents="none">
|
|
914
|
+
<View
|
|
915
|
+
style={{
|
|
916
|
+
position: 'absolute',
|
|
917
|
+
width: 11,
|
|
918
|
+
height: 11,
|
|
919
|
+
borderRadius: 5.5,
|
|
920
|
+
backgroundColor: m.passed ? MINT : colors.bg1,
|
|
921
|
+
borderWidth: 1.6,
|
|
922
|
+
borderColor: m.passed ? MINT : `${colors.text}40`,
|
|
923
|
+
}}
|
|
924
|
+
/>
|
|
925
|
+
</View>
|
|
926
|
+
))}
|
|
927
|
+
{oFlags.map((f, i) => (
|
|
928
|
+
<View
|
|
929
|
+
key={`f-${i}`}
|
|
930
|
+
style={{ position: 'absolute', left: pctX(f.x), top: f.y, width: 30, height: 12 }}
|
|
931
|
+
pointerEvents="none"
|
|
932
|
+
>
|
|
933
|
+
<Svg width={30} height={12} viewBox="0 0 30 12">
|
|
934
|
+
<Path d="M0 0L30 6L0 12Z" fill={f.color} opacity={0.9} />
|
|
935
|
+
</Svg>
|
|
936
|
+
</View>
|
|
937
|
+
))}
|
|
938
|
+
{oPulses.map((p, i) => (
|
|
939
|
+
<View key={`p-${i}`} style={[styles.anchor, { left: pctX(p.x), top: p.y }]} pointerEvents="none">
|
|
940
|
+
<View
|
|
941
|
+
style={{
|
|
942
|
+
position: 'absolute',
|
|
943
|
+
width: 7.2,
|
|
944
|
+
height: 7.2,
|
|
945
|
+
borderRadius: 3.6,
|
|
946
|
+
backgroundColor: p.color,
|
|
947
|
+
shadowColor: p.color,
|
|
948
|
+
shadowOpacity: 0.8,
|
|
949
|
+
shadowRadius: 5,
|
|
950
|
+
shadowOffset: { width: 0, height: 0 },
|
|
951
|
+
elevation: 3,
|
|
952
|
+
}}
|
|
953
|
+
/>
|
|
954
|
+
<PulseRing color={p.color} />
|
|
955
|
+
</View>
|
|
956
|
+
))}
|
|
957
|
+
{oNotes.map((nte, i) => (
|
|
958
|
+
<View
|
|
959
|
+
key={`n-${i}`}
|
|
960
|
+
style={[styles.anchor, { left: pctX(nte.x), top: nte.y - 9, alignItems: anchorAlign(nte.anchor) }]}
|
|
961
|
+
pointerEvents="none"
|
|
962
|
+
>
|
|
963
|
+
<Text style={[styles.note, { color: nte.color }]} numberOfLines={1}>
|
|
964
|
+
{nte.text}
|
|
965
|
+
</Text>
|
|
966
|
+
</View>
|
|
967
|
+
))}
|
|
968
|
+
{oChips.map((c, i) => (
|
|
969
|
+
<View
|
|
970
|
+
key={`c-${i}`}
|
|
971
|
+
style={[styles.anchor, { left: pctX(c.x), top: c.y, alignItems: anchorAlign(c.anchor) }]}
|
|
972
|
+
pointerEvents="none"
|
|
973
|
+
>
|
|
974
|
+
<View style={[styles.chip, { borderColor: `${c.color}59` }]}>
|
|
975
|
+
<Text style={[styles.chipText, { color: c.color }]} numberOfLines={1}>
|
|
976
|
+
{c.text}
|
|
977
|
+
</Text>
|
|
978
|
+
</View>
|
|
979
|
+
</View>
|
|
980
|
+
))}
|
|
981
|
+
</View>
|
|
982
|
+
</View>
|
|
983
|
+
);
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
const styles = StyleSheet.create({
|
|
987
|
+
root: { width: '100%' },
|
|
988
|
+
// zero-size anchor centered on its point: absolutely-positioned children with
|
|
989
|
+
// no offsets are placed by alignItems/justifyContent (Yoga static position),
|
|
990
|
+
// so dots/text/chips stay round & legible under the SVG stretch.
|
|
991
|
+
anchor: {
|
|
992
|
+
position: 'absolute',
|
|
993
|
+
width: 0,
|
|
994
|
+
height: 0,
|
|
995
|
+
alignItems: 'center',
|
|
996
|
+
justifyContent: 'center',
|
|
997
|
+
},
|
|
998
|
+
// pulse ring riding the NOW / journey dot (mirrors the web SMIL pulse)
|
|
999
|
+
pulse: {
|
|
1000
|
+
position: 'absolute',
|
|
1001
|
+
width: 9,
|
|
1002
|
+
height: 9,
|
|
1003
|
+
borderRadius: 4.5,
|
|
1004
|
+
borderWidth: 1.4,
|
|
1005
|
+
},
|
|
1006
|
+
// tiny mono annotations (title, hour captions, NOW, lane names, inline labels)
|
|
1007
|
+
note: {
|
|
1008
|
+
position: 'absolute',
|
|
1009
|
+
fontFamily: fonts.mono,
|
|
1010
|
+
fontSize: 8.5,
|
|
1011
|
+
lineHeight: 9,
|
|
1012
|
+
letterSpacing: 0.5,
|
|
1013
|
+
},
|
|
1014
|
+
// chip-pill labels (dark chip + tinted hairline border — the catalog's tag())
|
|
1015
|
+
chip: {
|
|
1016
|
+
position: 'absolute',
|
|
1017
|
+
paddingHorizontal: 6,
|
|
1018
|
+
paddingVertical: 2,
|
|
1019
|
+
borderRadius: 999,
|
|
1020
|
+
borderWidth: 1,
|
|
1021
|
+
backgroundColor: `${colors.bg0}C7`,
|
|
1022
|
+
},
|
|
1023
|
+
chipText: {
|
|
1024
|
+
fontFamily: fonts.mono,
|
|
1025
|
+
fontSize: 8,
|
|
1026
|
+
lineHeight: 9,
|
|
1027
|
+
letterSpacing: 0.4,
|
|
1028
|
+
},
|
|
1029
|
+
bubbleText: {
|
|
1030
|
+
fontFamily: fonts.mono,
|
|
1031
|
+
fontSize: 9,
|
|
1032
|
+
lineHeight: 10,
|
|
1033
|
+
color: colors.text,
|
|
1034
|
+
},
|
|
1035
|
+
});
|