@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,687 @@
|
|
|
1
|
+
import { useId } from 'react';
|
|
2
|
+
import { View, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import Svg, {
|
|
4
|
+
Circle,
|
|
5
|
+
Defs,
|
|
6
|
+
FeGaussianBlur,
|
|
7
|
+
Filter,
|
|
8
|
+
G,
|
|
9
|
+
LinearGradient,
|
|
10
|
+
Path,
|
|
11
|
+
Rect,
|
|
12
|
+
Stop,
|
|
13
|
+
Text as SvgText,
|
|
14
|
+
} from 'react-native-svg';
|
|
15
|
+
import { colors, fonts } from '@lockin90/tokens';
|
|
16
|
+
|
|
17
|
+
/** Catalog variant names (`lockin90-design/charts/sankey-charts.html`, SK-01…SK-13). */
|
|
18
|
+
export type SankeyVariant =
|
|
19
|
+
| 'duo-flow'
|
|
20
|
+
| 'source-split'
|
|
21
|
+
| 'merge-flow'
|
|
22
|
+
| 'zone-outcomes'
|
|
23
|
+
| 'three-stage'
|
|
24
|
+
| 'highlight-path'
|
|
25
|
+
| 'labeled-nodes'
|
|
26
|
+
| 'thin-streams'
|
|
27
|
+
| 'chord-factors';
|
|
28
|
+
|
|
29
|
+
/** SK-01 ribbon-style SELECT: `solid` src-colored 40% (default) · `spectrum`
|
|
30
|
+
* hue-by-link-index · `glass` frosted white 14% · `gradient` src→dst 55%. */
|
|
31
|
+
export type SankeyRibbonStyle = 'solid' | 'spectrum' | 'glass' | 'gradient';
|
|
32
|
+
|
|
33
|
+
/** One node of a sankey column. Column heights are normalized: each node fills
|
|
34
|
+
* `value / Σvalues` of the column (8px gaps between nodes). */
|
|
35
|
+
export interface SankeyNode {
|
|
36
|
+
/** node weight — relative share of its column */
|
|
37
|
+
value: number;
|
|
38
|
+
/** node + default ribbon color (hex/rgba). Column fallback: mint/cyan/violet trio */
|
|
39
|
+
color?: string;
|
|
40
|
+
/** chip-pill label beside the node (left + right columns; catalog defaults when omitted) */
|
|
41
|
+
label?: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** One ribbon. `fromSize`/`toSize` are fractions (0–1) of the source/target
|
|
45
|
+
* node heights — ribbons stack down each node face in array order (the
|
|
46
|
+
* catalog's `usedIn`/`usedOut` offset bookkeeping). */
|
|
47
|
+
export interface SankeyLink {
|
|
48
|
+
/** source node index (left column — or middle column when `stages` are set) */
|
|
49
|
+
from: number;
|
|
50
|
+
/** target node index (right column) */
|
|
51
|
+
to: number;
|
|
52
|
+
/** fraction of the SOURCE node's height this ribbon leaves from */
|
|
53
|
+
fromSize: number;
|
|
54
|
+
/** fraction of the TARGET node's height this ribbon lands on */
|
|
55
|
+
toSize: number;
|
|
56
|
+
/** ribbon color override (default: source node color) */
|
|
57
|
+
color?: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** A factor node on the `chord-factors` circle. */
|
|
61
|
+
export interface SankeyFactor {
|
|
62
|
+
label: string;
|
|
63
|
+
color?: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** A chord between two factors — `strength` drives the stroke width (×0.9). */
|
|
67
|
+
export interface SankeyChord {
|
|
68
|
+
from: number;
|
|
69
|
+
to: number;
|
|
70
|
+
strength: number;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface SankeyChartProps {
|
|
74
|
+
/** chart form (default `'duo-flow'`, SK-01) */
|
|
75
|
+
variant?: SankeyVariant;
|
|
76
|
+
/** left column nodes (flow variants) */
|
|
77
|
+
sources?: SankeyNode[];
|
|
78
|
+
/** right column nodes (flow variants) */
|
|
79
|
+
targets?: SankeyNode[];
|
|
80
|
+
/** middle column nodes — `three-stage` (SK-06) only */
|
|
81
|
+
stages?: SankeyNode[];
|
|
82
|
+
/** main ribbons: sources→targets, or stages→targets when `stages` are set */
|
|
83
|
+
links?: SankeyLink[];
|
|
84
|
+
/** `three-stage` pre-ribbons: sources→stages, drawn first so the middle
|
|
85
|
+
* column's in/out offsets line up */
|
|
86
|
+
preLinks?: SankeyLink[];
|
|
87
|
+
/** `chord-factors` circle nodes */
|
|
88
|
+
factors?: SankeyFactor[];
|
|
89
|
+
/** `chord-factors` links through the center */
|
|
90
|
+
chords?: SankeyChord[];
|
|
91
|
+
/** SK-01 SELECT — ribbon paint style (default `'solid'`) */
|
|
92
|
+
ribbonStyle?: SankeyRibbonStyle;
|
|
93
|
+
/** link index drawn at 85% while the rest dim to 14% (SK-09; defaults to `1`
|
|
94
|
+
* for `variant="highlight-path"`, otherwise off). Pass `null` to disable. */
|
|
95
|
+
highlight?: number | null;
|
|
96
|
+
/** ribbon opacity override (default 0.4 links / 0.35 preLinks) */
|
|
97
|
+
ribbonOpacity?: number;
|
|
98
|
+
/** faint mono caption at the top-left (per-variant catalog default) */
|
|
99
|
+
title?: string;
|
|
100
|
+
/** chip-pill node labels on the left/right columns (default true) */
|
|
101
|
+
showLabels?: boolean;
|
|
102
|
+
/** glow underlay behind the ribbons / chords — a Gaussian-blurred duplicate
|
|
103
|
+
* shape (Fabric-native SVG filters — Ring precedent) */
|
|
104
|
+
shine?: boolean;
|
|
105
|
+
/** rendered width in px — the 320×150 viewBox scales to fit */
|
|
106
|
+
width?: number;
|
|
107
|
+
/** rendered height in px */
|
|
108
|
+
height?: number;
|
|
109
|
+
/** web `aria-label` / native `accessibilityLabel` (default: generated from
|
|
110
|
+
* the variant + node labels) */
|
|
111
|
+
ariaLabel?: string;
|
|
112
|
+
/** optional wrapper style */
|
|
113
|
+
style?: StyleProp<ViewStyle>;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* ------------------------------------------------------------------ geometry
|
|
117
|
+
* The catalog canvas (lockin90-design/charts/catalog.js): 320×150, padding
|
|
118
|
+
* l10 r12 t16 b14. Node stacks fill SPAN with 8px gaps; ribbons are cubic
|
|
119
|
+
* beziers with the control x at the midpoint. */
|
|
120
|
+
const W = 320;
|
|
121
|
+
const H = 150;
|
|
122
|
+
const P = { l: 10, r: 12, t: 16, b: 14 };
|
|
123
|
+
const TOP = P.t + 4;
|
|
124
|
+
const BOT = H - P.b - 4;
|
|
125
|
+
const SPAN = BOT - TOP;
|
|
126
|
+
const NW = 8; // node width
|
|
127
|
+
const GAP = 8; // vertical gap between stacked nodes
|
|
128
|
+
|
|
129
|
+
const TRIO = [colors.mint, colors.cyan, colors.violet];
|
|
130
|
+
const SPECTRUM = [colors.lime, colors.mint, colors.cyan, colors.indigo, colors.violet, colors.magenta];
|
|
131
|
+
|
|
132
|
+
/* chip-pill fill — the catalog tag()'s rgba(8,10,18,0.78) = bg0 @ 78% */
|
|
133
|
+
const TAG_FILL = `${colors.bg0}C7`;
|
|
134
|
+
/* SK-13 circle guide — the catalog's rgba(255,255,255,0.07) = text @ 7% */
|
|
135
|
+
const CHORD_RING = `${colors.text}12`;
|
|
136
|
+
/* SK-11 "LOST" sink — the catalog's rgba(255,255,255,0.25) = text @ 25% */
|
|
137
|
+
const FAINT_NODE = `${colors.text}40`;
|
|
138
|
+
|
|
139
|
+
/** catalog default column labels (left / right; single-node columns read TODAY / ENERGY) */
|
|
140
|
+
const DEFAULT_LEFT_LABELS = ['SLEEP', 'TRAINING', 'NUTRITION', 'LIGHT'];
|
|
141
|
+
const DEFAULT_RIGHT_LABELS = ['ENERGY', 'STRAIN', 'FOCUS'];
|
|
142
|
+
|
|
143
|
+
interface FlowDefaults {
|
|
144
|
+
sources: SankeyNode[];
|
|
145
|
+
targets: SankeyNode[];
|
|
146
|
+
stages?: SankeyNode[];
|
|
147
|
+
links: SankeyLink[];
|
|
148
|
+
preLinks?: SankeyLink[];
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const lk = (from: number, to: number, fromSize: number, toSize: number, color?: string): SankeyLink =>
|
|
152
|
+
color === undefined ? { from, to, fromSize, toSize } : { from, to, fromSize, toSize, color };
|
|
153
|
+
|
|
154
|
+
/** Per-variant catalog demo data (the CFG entries) so a bare
|
|
155
|
+
* `<SankeyChart variant="…"/>` reproduces its catalog card. */
|
|
156
|
+
const FLOW_DEFAULTS: Record<Exclude<SankeyVariant, 'chord-factors'>, FlowDefaults> = {
|
|
157
|
+
'duo-flow': {
|
|
158
|
+
sources: [{ value: 0.6 }, { value: 0.4 }],
|
|
159
|
+
targets: [{ value: 0.55 }, { value: 0.45 }],
|
|
160
|
+
links: [lk(0, 0, 0.7, 0.75), lk(0, 1, 0.3, 0.35), lk(1, 0, 0.35, 0.25), lk(1, 1, 0.65, 0.65)],
|
|
161
|
+
},
|
|
162
|
+
'source-split': {
|
|
163
|
+
sources: [{ value: 1, color: colors.accent }],
|
|
164
|
+
targets: [{ value: 0.45 }, { value: 0.33 }, { value: 0.22 }],
|
|
165
|
+
links: [lk(0, 0, 0.45, 1), lk(0, 1, 0.33, 1), lk(0, 2, 0.22, 1)],
|
|
166
|
+
},
|
|
167
|
+
'merge-flow': {
|
|
168
|
+
sources: [{ value: 0.45 }, { value: 0.33 }, { value: 0.22 }],
|
|
169
|
+
targets: [{ value: 1, color: colors.mint }],
|
|
170
|
+
links: [lk(0, 0, 1, 0.45), lk(1, 0, 1, 0.33), lk(2, 0, 1, 0.22)],
|
|
171
|
+
},
|
|
172
|
+
'zone-outcomes': {
|
|
173
|
+
sources: [
|
|
174
|
+
{ value: 0.5, color: colors.cyan, label: 'HABITS' },
|
|
175
|
+
{ value: 0.5, color: colors.violet, label: 'SLEEP' },
|
|
176
|
+
],
|
|
177
|
+
targets: [
|
|
178
|
+
{ value: 0.45, color: colors.zoneHigh, label: 'GOOD' },
|
|
179
|
+
{ value: 0.35, color: colors.zoneMid, label: 'OK' },
|
|
180
|
+
{ value: 0.2, color: colors.zoneLow, label: 'ROUGH' },
|
|
181
|
+
],
|
|
182
|
+
links: [
|
|
183
|
+
lk(0, 0, 0.6, 0.6),
|
|
184
|
+
lk(0, 1, 0.3, 0.4),
|
|
185
|
+
lk(0, 2, 0.1, 0.25),
|
|
186
|
+
lk(1, 0, 0.35, 0.4),
|
|
187
|
+
lk(1, 1, 0.35, 0.6),
|
|
188
|
+
lk(1, 2, 0.3, 0.75),
|
|
189
|
+
],
|
|
190
|
+
},
|
|
191
|
+
'three-stage': {
|
|
192
|
+
sources: [{ value: 0.55 }, { value: 0.45 }],
|
|
193
|
+
stages: [
|
|
194
|
+
{ value: 0.4, color: colors.cyan },
|
|
195
|
+
{ value: 0.35, color: colors.indigo },
|
|
196
|
+
{ value: 0.25, color: colors.violet },
|
|
197
|
+
],
|
|
198
|
+
targets: [
|
|
199
|
+
{ value: 0.6, color: colors.mint },
|
|
200
|
+
{ value: 0.4, color: colors.zoneLow },
|
|
201
|
+
],
|
|
202
|
+
preLinks: [lk(0, 0, 0.6, 0.8), lk(0, 1, 0.4, 0.6), lk(1, 1, 0.35, 0.4), lk(1, 2, 0.65, 1)],
|
|
203
|
+
// explicit link colors reproduce the catalog card (its mid→right ribbons
|
|
204
|
+
// reuse the left trio by source index)
|
|
205
|
+
links: [
|
|
206
|
+
lk(0, 0, 1, 0.55, colors.mint),
|
|
207
|
+
lk(1, 0, 0.6, 0.45, colors.cyan),
|
|
208
|
+
lk(1, 1, 0.4, 0.35, colors.cyan),
|
|
209
|
+
lk(2, 1, 1, 0.65, colors.violet),
|
|
210
|
+
],
|
|
211
|
+
},
|
|
212
|
+
'highlight-path': {
|
|
213
|
+
sources: [{ value: 0.5 }, { value: 0.5 }],
|
|
214
|
+
targets: [{ value: 0.45 }, { value: 0.55 }],
|
|
215
|
+
links: [lk(0, 0, 0.6, 0.6), lk(0, 1, 0.4, 0.35), lk(1, 0, 0.3, 0.4), lk(1, 1, 0.7, 0.65)],
|
|
216
|
+
},
|
|
217
|
+
'labeled-nodes': {
|
|
218
|
+
sources: [
|
|
219
|
+
{ value: 0.6, label: 'SLEEP' },
|
|
220
|
+
{ value: 0.4, label: 'TRAINING' },
|
|
221
|
+
],
|
|
222
|
+
targets: [
|
|
223
|
+
{ value: 0.55, label: 'ENERGY' },
|
|
224
|
+
{ value: 0.45, label: 'STRAIN' },
|
|
225
|
+
],
|
|
226
|
+
links: [lk(0, 0, 0.75, 0.7), lk(0, 1, 0.25, 0.3), lk(1, 0, 0.3, 0.3), lk(1, 1, 0.7, 0.7)],
|
|
227
|
+
},
|
|
228
|
+
'thin-streams': {
|
|
229
|
+
sources: [
|
|
230
|
+
{ value: 0.28, color: colors.lime, label: 'SLEEP' },
|
|
231
|
+
{ value: 0.26, color: colors.mint, label: 'FOOD' },
|
|
232
|
+
{ value: 0.24, color: colors.cyan, label: 'TRAIN' },
|
|
233
|
+
{ value: 0.22, color: colors.violet, label: 'SUN' },
|
|
234
|
+
],
|
|
235
|
+
targets: [
|
|
236
|
+
{ value: 0.55, color: colors.mint, label: 'ENERGY' },
|
|
237
|
+
{ value: 0.45, color: FAINT_NODE, label: 'LOST' },
|
|
238
|
+
],
|
|
239
|
+
links: [
|
|
240
|
+
lk(0, 0, 1, 0.3),
|
|
241
|
+
lk(1, 0, 0.8, 0.25),
|
|
242
|
+
lk(1, 1, 0.2, 0.15),
|
|
243
|
+
lk(2, 0, 0.6, 0.25),
|
|
244
|
+
lk(2, 1, 0.4, 0.3),
|
|
245
|
+
lk(3, 0, 0.4, 0.2),
|
|
246
|
+
lk(3, 1, 0.6, 0.55),
|
|
247
|
+
],
|
|
248
|
+
},
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
/** SK-13 catalog demo factors + links. */
|
|
252
|
+
const DEFAULT_FACTORS: SankeyFactor[] = [
|
|
253
|
+
{ label: 'SLEEP', color: colors.mint },
|
|
254
|
+
{ label: 'HRV', color: colors.cyan },
|
|
255
|
+
{ label: 'TRAIN', color: colors.violet },
|
|
256
|
+
{ label: 'FOOD', color: colors.lime },
|
|
257
|
+
{ label: 'MOOD', color: colors.zoneMid },
|
|
258
|
+
];
|
|
259
|
+
const DEFAULT_CHORDS: SankeyChord[] = [
|
|
260
|
+
{ from: 0, to: 1, strength: 8 },
|
|
261
|
+
{ from: 0, to: 4, strength: 6 },
|
|
262
|
+
{ from: 1, to: 4, strength: 5 },
|
|
263
|
+
{ from: 2, to: 1, strength: 4 },
|
|
264
|
+
{ from: 3, to: 0, strength: 5 },
|
|
265
|
+
{ from: 2, to: 3, strength: 3 },
|
|
266
|
+
{ from: 3, to: 4, strength: 4 },
|
|
267
|
+
];
|
|
268
|
+
|
|
269
|
+
interface StackNode {
|
|
270
|
+
x: number;
|
|
271
|
+
y: number;
|
|
272
|
+
h: number;
|
|
273
|
+
usedIn: number;
|
|
274
|
+
usedOut: number;
|
|
275
|
+
color: string;
|
|
276
|
+
label?: string;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/** Stack a column's nodes down SPAN: 8px gaps, heights ∝ values. */
|
|
280
|
+
function stack(nodes: SankeyNode[], x: number): StackNode[] {
|
|
281
|
+
const gaps = (nodes.length - 1) * GAP;
|
|
282
|
+
const avail = SPAN - gaps;
|
|
283
|
+
const sum = nodes.reduce((a, nd) => a + nd.value, 0) || 1;
|
|
284
|
+
let y = TOP;
|
|
285
|
+
return nodes.map((nd, i) => {
|
|
286
|
+
const h = (avail * nd.value) / sum;
|
|
287
|
+
const out: StackNode = {
|
|
288
|
+
x,
|
|
289
|
+
y,
|
|
290
|
+
h,
|
|
291
|
+
usedIn: 0,
|
|
292
|
+
usedOut: 0,
|
|
293
|
+
color: nd.color ?? TRIO[i % TRIO.length]!,
|
|
294
|
+
};
|
|
295
|
+
if (nd.label !== undefined) out.label = nd.label;
|
|
296
|
+
y += h + GAP;
|
|
297
|
+
return out;
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/** Cubic-bezier ribbon between a source face slot and a target face slot —
|
|
302
|
+
* advances each node's in/out offset so parallel ribbons stack cleanly. */
|
|
303
|
+
function ribbonPath(a: StackNode, b: StackNode, fa: number, fb: number): string {
|
|
304
|
+
const y1 = a.y + a.usedOut;
|
|
305
|
+
const h1 = a.h * fa;
|
|
306
|
+
a.usedOut += h1;
|
|
307
|
+
const y2 = b.y + b.usedIn;
|
|
308
|
+
const h2 = b.h * fb;
|
|
309
|
+
b.usedIn += h2;
|
|
310
|
+
const x1 = a.x + NW;
|
|
311
|
+
const x2 = b.x;
|
|
312
|
+
const mx = (x1 + x2) / 2;
|
|
313
|
+
return (
|
|
314
|
+
`M${x1} ${y1.toFixed(1)}` +
|
|
315
|
+
`C${mx} ${y1.toFixed(1)} ${mx} ${y2.toFixed(1)} ${x2} ${y2.toFixed(1)}` +
|
|
316
|
+
`L${x2} ${(y2 + h2).toFixed(1)}` +
|
|
317
|
+
`C${mx} ${(y2 + h2).toFixed(1)} ${mx} ${(y1 + h1).toFixed(1)} ${x1} ${(y1 + h1).toFixed(1)}Z`
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/** polar point — 0° at 12 o'clock, clockwise */
|
|
322
|
+
function polar(cx: number, cy: number, r: number, aDeg: number) {
|
|
323
|
+
const a = ((aDeg - 90) * Math.PI) / 180;
|
|
324
|
+
return { x: cx + r * Math.cos(a), y: cy + r * Math.sin(a) };
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
function Label({
|
|
328
|
+
x,
|
|
329
|
+
y,
|
|
330
|
+
text,
|
|
331
|
+
color = colors.textFaint,
|
|
332
|
+
anchor = 'middle',
|
|
333
|
+
}: {
|
|
334
|
+
x: number;
|
|
335
|
+
y: number;
|
|
336
|
+
text: string;
|
|
337
|
+
color?: string;
|
|
338
|
+
anchor?: 'start' | 'middle' | 'end';
|
|
339
|
+
}) {
|
|
340
|
+
return (
|
|
341
|
+
<SvgText
|
|
342
|
+
x={x}
|
|
343
|
+
y={y}
|
|
344
|
+
fill={color}
|
|
345
|
+
fontSize={8.5}
|
|
346
|
+
textAnchor={anchor}
|
|
347
|
+
fontFamily={fonts.mono}
|
|
348
|
+
letterSpacing={0.5}
|
|
349
|
+
>
|
|
350
|
+
{text}
|
|
351
|
+
</SvgText>
|
|
352
|
+
);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/** chip-pill series label (dark rect + tinted hairline) — `y` = pill center */
|
|
356
|
+
function Tag({
|
|
357
|
+
x,
|
|
358
|
+
y,
|
|
359
|
+
text,
|
|
360
|
+
color,
|
|
361
|
+
anchor = 'middle',
|
|
362
|
+
}: {
|
|
363
|
+
x: number;
|
|
364
|
+
y: number;
|
|
365
|
+
text: string;
|
|
366
|
+
color: string;
|
|
367
|
+
anchor?: 'start' | 'middle' | 'end';
|
|
368
|
+
}) {
|
|
369
|
+
const w = text.length * 5.35 + 12;
|
|
370
|
+
let xa = anchor === 'end' ? x - w : anchor === 'start' ? x : x - w / 2;
|
|
371
|
+
xa = Math.max(P.l - 4, Math.min(xa, W - P.r - w + 4));
|
|
372
|
+
return (
|
|
373
|
+
<G>
|
|
374
|
+
<Rect
|
|
375
|
+
x={xa.toFixed(1)}
|
|
376
|
+
y={(y - 6.5).toFixed(1)}
|
|
377
|
+
width={w.toFixed(1)}
|
|
378
|
+
height={13}
|
|
379
|
+
rx={6.5}
|
|
380
|
+
fill={TAG_FILL}
|
|
381
|
+
stroke={color}
|
|
382
|
+
strokeOpacity={0.35}
|
|
383
|
+
strokeWidth={0.8}
|
|
384
|
+
/>
|
|
385
|
+
<SvgText
|
|
386
|
+
x={(xa + w / 2).toFixed(1)}
|
|
387
|
+
y={(y + 2.8).toFixed(1)}
|
|
388
|
+
fill={color}
|
|
389
|
+
fontSize={8}
|
|
390
|
+
textAnchor="middle"
|
|
391
|
+
fontFamily={fonts.mono}
|
|
392
|
+
letterSpacing={0.4}
|
|
393
|
+
>
|
|
394
|
+
{text}
|
|
395
|
+
</SvgText>
|
|
396
|
+
</G>
|
|
397
|
+
);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* SankeyChart — the kit's flow-diagram chart (catalog family `sankey-charts`,
|
|
402
|
+
* SK-01…SK-13). Same prop API + geometry as the web twin: node columns joined
|
|
403
|
+
* by cubic-bezier ribbons (or the SK-13 factor-chord circle). Native glow =
|
|
404
|
+
* a Gaussian-blurred duplicate shape behind each mark (Fabric-native SVG
|
|
405
|
+
* filters — Ring precedent).
|
|
406
|
+
*/
|
|
407
|
+
export function SankeyChart({
|
|
408
|
+
variant = 'duo-flow',
|
|
409
|
+
sources,
|
|
410
|
+
targets,
|
|
411
|
+
stages,
|
|
412
|
+
links,
|
|
413
|
+
preLinks,
|
|
414
|
+
factors = DEFAULT_FACTORS,
|
|
415
|
+
chords = DEFAULT_CHORDS,
|
|
416
|
+
ribbonStyle = 'solid',
|
|
417
|
+
highlight,
|
|
418
|
+
ribbonOpacity,
|
|
419
|
+
title,
|
|
420
|
+
showLabels = true,
|
|
421
|
+
shine = false,
|
|
422
|
+
width = W,
|
|
423
|
+
height = H,
|
|
424
|
+
ariaLabel,
|
|
425
|
+
style,
|
|
426
|
+
}: SankeyChartProps) {
|
|
427
|
+
const uid = useId().replace(/[^a-zA-Z0-9]/g, '');
|
|
428
|
+
|
|
429
|
+
/* ------------------------------------------------------- SK-13 · chord */
|
|
430
|
+
if (variant === 'chord-factors') {
|
|
431
|
+
const cx = W / 2;
|
|
432
|
+
const cy = H / 2 + 8;
|
|
433
|
+
const R = 46;
|
|
434
|
+
const step = 360 / Math.max(1, factors.length);
|
|
435
|
+
const colorOf = (i: number) => factors[i]?.color ?? SPECTRUM[i % SPECTRUM.length]!;
|
|
436
|
+
return (
|
|
437
|
+
<View
|
|
438
|
+
accessibilityRole="image"
|
|
439
|
+
accessibilityLabel={
|
|
440
|
+
ariaLabel ?? `Factor chord diagram: ${factors.map((f) => f.label).join(', ')}`
|
|
441
|
+
}
|
|
442
|
+
style={[{ width, height }, style]}
|
|
443
|
+
>
|
|
444
|
+
<Svg width={width} height={height} viewBox={`0 0 ${W} ${H}`}>
|
|
445
|
+
{/* real Gaussian blurs (Fabric-native in react-native-svg 15) — the
|
|
446
|
+
native twins of the web chords' `blur(5px)` underlay and the node
|
|
447
|
+
dots' `drop-shadow(0 0 4px col)`. Regions in user space so flat
|
|
448
|
+
chords through the center never clip the blur to their bbox. */}
|
|
449
|
+
<Defs>
|
|
450
|
+
{shine ? (
|
|
451
|
+
<Filter
|
|
452
|
+
id={`lk-sk-${uid}-blur`}
|
|
453
|
+
filterUnits="userSpaceOnUse"
|
|
454
|
+
x={-10}
|
|
455
|
+
y={-10}
|
|
456
|
+
width={W + 20}
|
|
457
|
+
height={H + 20}
|
|
458
|
+
>
|
|
459
|
+
<FeGaussianBlur stdDeviation={2.5} />
|
|
460
|
+
</Filter>
|
|
461
|
+
) : null}
|
|
462
|
+
<Filter
|
|
463
|
+
id={`lk-sk-${uid}-dotblur`}
|
|
464
|
+
filterUnits="userSpaceOnUse"
|
|
465
|
+
x={-10}
|
|
466
|
+
y={-10}
|
|
467
|
+
width={W + 20}
|
|
468
|
+
height={H + 20}
|
|
469
|
+
>
|
|
470
|
+
<FeGaussianBlur stdDeviation={2} />
|
|
471
|
+
</Filter>
|
|
472
|
+
</Defs>
|
|
473
|
+
<Label x={P.l + 2} y={11} text={title ?? 'FACTOR LINKS · 30D'} anchor="start" />
|
|
474
|
+
<Circle cx={cx} cy={cy} r={R} fill="none" stroke={CHORD_RING} strokeWidth={1} />
|
|
475
|
+
{chords.map((c, i) => {
|
|
476
|
+
const p1 = polar(cx, cy, R, c.from * step);
|
|
477
|
+
const p2 = polar(cx, cy, R, c.to * step);
|
|
478
|
+
const d = `M${p1.x.toFixed(1)} ${p1.y.toFixed(1)}Q${cx} ${cy} ${p2.x.toFixed(1)} ${p2.y.toFixed(1)}`;
|
|
479
|
+
const col = colorOf(c.from);
|
|
480
|
+
return (
|
|
481
|
+
<G key={i}>
|
|
482
|
+
{/* glow — a Gaussian-blurred duplicate of the chord behind it:
|
|
483
|
+
the same soft glow the web chord gets from its `blur(5px)`
|
|
484
|
+
underlay. Kept faint — chords overlap densely. */}
|
|
485
|
+
{shine ? (
|
|
486
|
+
<Path
|
|
487
|
+
d={d}
|
|
488
|
+
fill="none"
|
|
489
|
+
stroke={col}
|
|
490
|
+
strokeWidth={c.strength * 0.9 + 4}
|
|
491
|
+
strokeLinecap="round"
|
|
492
|
+
opacity={0.3}
|
|
493
|
+
filter={`url(#lk-sk-${uid}-blur)`}
|
|
494
|
+
/>
|
|
495
|
+
) : null}
|
|
496
|
+
<Path
|
|
497
|
+
d={d}
|
|
498
|
+
fill="none"
|
|
499
|
+
stroke={col}
|
|
500
|
+
strokeWidth={c.strength * 0.9}
|
|
501
|
+
strokeLinecap="round"
|
|
502
|
+
opacity={0.3}
|
|
503
|
+
/>
|
|
504
|
+
</G>
|
|
505
|
+
);
|
|
506
|
+
})}
|
|
507
|
+
{factors.map((f, i) => {
|
|
508
|
+
const pn = polar(cx, cy, R, i * step);
|
|
509
|
+
const pl = polar(cx, cy, R + 13, i * step);
|
|
510
|
+
const col = colorOf(i);
|
|
511
|
+
return (
|
|
512
|
+
<G key={f.label}>
|
|
513
|
+
{/* glow — a Gaussian-blurred duplicate dot behind the crisp one
|
|
514
|
+
(web: `drop-shadow(0 0 4px col)`) */}
|
|
515
|
+
<Circle
|
|
516
|
+
cx={pn.x.toFixed(1)}
|
|
517
|
+
cy={pn.y.toFixed(1)}
|
|
518
|
+
r={5}
|
|
519
|
+
fill={col}
|
|
520
|
+
opacity={0.55}
|
|
521
|
+
filter={`url(#lk-sk-${uid}-dotblur)`}
|
|
522
|
+
/>
|
|
523
|
+
<Circle cx={pn.x.toFixed(1)} cy={pn.y.toFixed(1)} r={5} fill={col} />
|
|
524
|
+
{showLabels ? <Tag x={pl.x} y={pl.y} text={f.label} color={col} /> : null}
|
|
525
|
+
</G>
|
|
526
|
+
);
|
|
527
|
+
})}
|
|
528
|
+
</Svg>
|
|
529
|
+
</View>
|
|
530
|
+
);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
/* ------------------------------------------------------- flow variants */
|
|
534
|
+
const def = FLOW_DEFAULTS[variant];
|
|
535
|
+
const src = sources ?? def.sources;
|
|
536
|
+
const dst = targets ?? def.targets;
|
|
537
|
+
const mid = stages ?? def.stages;
|
|
538
|
+
const flows = links ?? def.links;
|
|
539
|
+
const pre = preLinks ?? def.preLinks ?? [];
|
|
540
|
+
const hl = highlight === undefined ? (variant === 'highlight-path' ? 1 : null) : highlight;
|
|
541
|
+
|
|
542
|
+
const L = stack(src, P.l + 2);
|
|
543
|
+
const Rr = stack(dst, W - P.r - NW - 2);
|
|
544
|
+
const M = mid ? stack(mid, W / 2 - NW / 2) : null;
|
|
545
|
+
|
|
546
|
+
// pre-ribbons FIRST so the middle column's in/out offsets line up (catalog order)
|
|
547
|
+
const preRibbons = M
|
|
548
|
+
? pre.map((f) => {
|
|
549
|
+
const a = L[f.from]!;
|
|
550
|
+
const b = M[f.to]!;
|
|
551
|
+
return {
|
|
552
|
+
d: ribbonPath(a, b, f.fromSize, f.toSize),
|
|
553
|
+
color: f.color ?? a.color,
|
|
554
|
+
opacity: ribbonOpacity ?? 0.35,
|
|
555
|
+
};
|
|
556
|
+
})
|
|
557
|
+
: [];
|
|
558
|
+
|
|
559
|
+
const ribbons = flows.map((f, fi) => {
|
|
560
|
+
const a = (M ?? L)[f.from]!;
|
|
561
|
+
const b = Rr[f.to]!;
|
|
562
|
+
const d = ribbonPath(a, b, f.fromSize, f.toSize);
|
|
563
|
+
let color = f.color ?? a.color;
|
|
564
|
+
let opacity = ribbonOpacity ?? 0.4;
|
|
565
|
+
let gradient: { from: string; to: string } | null = null;
|
|
566
|
+
if (ribbonStyle === 'spectrum') color = SPECTRUM[fi % SPECTRUM.length]!;
|
|
567
|
+
else if (ribbonStyle === 'glass') {
|
|
568
|
+
color = colors.text;
|
|
569
|
+
opacity = 0.14;
|
|
570
|
+
} else if (ribbonStyle === 'gradient') {
|
|
571
|
+
gradient = { from: color, to: b.color };
|
|
572
|
+
opacity = 1;
|
|
573
|
+
}
|
|
574
|
+
// the catalog renderer lets a gradient fill win over the highlight dim
|
|
575
|
+
if (hl != null && !gradient) opacity = fi === hl ? 0.85 : 0.14;
|
|
576
|
+
return { d, color, opacity, gradient, dimmed: hl != null && fi !== hl };
|
|
577
|
+
});
|
|
578
|
+
|
|
579
|
+
const leftLabel = (i: number) =>
|
|
580
|
+
L[i]?.label ?? (src.length === 1 ? 'TODAY' : DEFAULT_LEFT_LABELS[i] ?? '');
|
|
581
|
+
const rightLabel = (i: number) =>
|
|
582
|
+
Rr[i]?.label ?? (dst.length === 1 ? 'ENERGY' : DEFAULT_RIGHT_LABELS[i] ?? '');
|
|
583
|
+
|
|
584
|
+
return (
|
|
585
|
+
<View
|
|
586
|
+
accessibilityRole="image"
|
|
587
|
+
accessibilityLabel={
|
|
588
|
+
ariaLabel ??
|
|
589
|
+
`${variant} flow: ${src.map((_, i) => leftLabel(i)).join(', ')} to ${dst
|
|
590
|
+
.map((_, i) => rightLabel(i))
|
|
591
|
+
.join(', ')}`
|
|
592
|
+
}
|
|
593
|
+
style={[{ width, height }, style]}
|
|
594
|
+
>
|
|
595
|
+
<Svg width={width} height={height} viewBox={`0 0 ${W} ${H}`}>
|
|
596
|
+
{ribbonStyle === 'gradient' ? (
|
|
597
|
+
<Defs>
|
|
598
|
+
{ribbons.map((r, i) =>
|
|
599
|
+
r.gradient ? (
|
|
600
|
+
<LinearGradient key={i} id={`lk-sk-${uid}-f${i}`} x1="0" y1="0" x2="1" y2="0">
|
|
601
|
+
<Stop offset="0%" stopColor={r.gradient.from} stopOpacity={0.55} />
|
|
602
|
+
<Stop offset="100%" stopColor={r.gradient.to} stopOpacity={0.55} />
|
|
603
|
+
</LinearGradient>
|
|
604
|
+
) : null,
|
|
605
|
+
)}
|
|
606
|
+
</Defs>
|
|
607
|
+
) : null}
|
|
608
|
+
{shine ? (
|
|
609
|
+
/* real Gaussian blur for the ribbon glow (Fabric-native in
|
|
610
|
+
react-native-svg 15) — the native twin of the web ribbon's
|
|
611
|
+
`blur(6px)` fill duplicate. Region in user space so near-flat
|
|
612
|
+
ribbons never clip the blur to their bounding box. */
|
|
613
|
+
<Defs>
|
|
614
|
+
<Filter
|
|
615
|
+
id={`lk-sk-${uid}-ribblur`}
|
|
616
|
+
filterUnits="userSpaceOnUse"
|
|
617
|
+
x={-12}
|
|
618
|
+
y={-12}
|
|
619
|
+
width={W + 24}
|
|
620
|
+
height={H + 24}
|
|
621
|
+
>
|
|
622
|
+
<FeGaussianBlur stdDeviation={3} />
|
|
623
|
+
</Filter>
|
|
624
|
+
</Defs>
|
|
625
|
+
) : null}
|
|
626
|
+
|
|
627
|
+
<Label x={P.l + 2} y={11} text={title ?? 'ENERGY FLOW · TODAY'} anchor="start" />
|
|
628
|
+
|
|
629
|
+
{preRibbons.map((r, i) => (
|
|
630
|
+
<Path key={`pre-${i}`} d={r.d} fill={r.color} opacity={r.opacity} />
|
|
631
|
+
))}
|
|
632
|
+
|
|
633
|
+
{ribbons.map((r, i) => {
|
|
634
|
+
const fill = r.gradient ? `url(#lk-sk-${uid}-f${i})` : r.color;
|
|
635
|
+
return (
|
|
636
|
+
<G key={`f-${i}`}>
|
|
637
|
+
{/* glow — a Gaussian-blurred duplicate of the ribbon behind it:
|
|
638
|
+
the same soft glow the web ribbon gets from its `blur(6px)`
|
|
639
|
+
fill clone. */}
|
|
640
|
+
{shine && !r.dimmed ? (
|
|
641
|
+
<Path d={r.d} fill={fill} opacity={0.35} filter={`url(#lk-sk-${uid}-ribblur)`} />
|
|
642
|
+
) : null}
|
|
643
|
+
<Path d={r.d} fill={fill} opacity={r.opacity} />
|
|
644
|
+
</G>
|
|
645
|
+
);
|
|
646
|
+
})}
|
|
647
|
+
|
|
648
|
+
{[...L, ...(M ?? []), ...Rr].map((nd, i) => (
|
|
649
|
+
<Rect
|
|
650
|
+
key={`n-${i}`}
|
|
651
|
+
x={nd.x}
|
|
652
|
+
y={nd.y.toFixed(1)}
|
|
653
|
+
width={NW}
|
|
654
|
+
height={nd.h.toFixed(1)}
|
|
655
|
+
rx={3}
|
|
656
|
+
fill={nd.color}
|
|
657
|
+
/>
|
|
658
|
+
))}
|
|
659
|
+
|
|
660
|
+
{showLabels
|
|
661
|
+
? L.map((nd, i) => (
|
|
662
|
+
<Tag
|
|
663
|
+
key={`ll-${i}`}
|
|
664
|
+
x={nd.x + NW + 6}
|
|
665
|
+
y={nd.y + nd.h / 2}
|
|
666
|
+
text={leftLabel(i)}
|
|
667
|
+
color={nd.color}
|
|
668
|
+
anchor="start"
|
|
669
|
+
/>
|
|
670
|
+
))
|
|
671
|
+
: null}
|
|
672
|
+
{showLabels
|
|
673
|
+
? Rr.map((nd, i) => (
|
|
674
|
+
<Tag
|
|
675
|
+
key={`rl-${i}`}
|
|
676
|
+
x={nd.x - 6}
|
|
677
|
+
y={nd.y + nd.h / 2}
|
|
678
|
+
text={rightLabel(i)}
|
|
679
|
+
color={nd.color}
|
|
680
|
+
anchor="end"
|
|
681
|
+
/>
|
|
682
|
+
))
|
|
683
|
+
: null}
|
|
684
|
+
</Svg>
|
|
685
|
+
</View>
|
|
686
|
+
);
|
|
687
|
+
}
|