@lockin90/ui-native 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Accordion.js +144 -0
- package/lib/commonjs/components/Accordion.js.map +1 -0
- package/lib/commonjs/components/AchievementBadge.js +225 -0
- package/lib/commonjs/components/AchievementBadge.js.map +1 -0
- package/lib/commonjs/components/Alert.js +232 -0
- package/lib/commonjs/components/Alert.js.map +1 -0
- package/lib/commonjs/components/AreaChart.js +506 -0
- package/lib/commonjs/components/AreaChart.js.map +1 -0
- package/lib/commonjs/components/AuroraBackground.js +267 -0
- package/lib/commonjs/components/AuroraBackground.js.map +1 -0
- package/lib/commonjs/components/Avatar.js +187 -0
- package/lib/commonjs/components/Avatar.js.map +1 -0
- package/lib/commonjs/components/AvatarStack.js +95 -0
- package/lib/commonjs/components/AvatarStack.js.map +1 -0
- package/lib/commonjs/components/BackLink.js +77 -0
- package/lib/commonjs/components/BackLink.js.map +1 -0
- package/lib/commonjs/components/Badge.js +136 -0
- package/lib/commonjs/components/Badge.js.map +1 -0
- package/lib/commonjs/components/BarChart.js +641 -0
- package/lib/commonjs/components/BarChart.js.map +1 -0
- package/lib/commonjs/components/BarFill.js +55 -0
- package/lib/commonjs/components/BarFill.js.map +1 -0
- package/lib/commonjs/components/BeeswarmChart.js +615 -0
- package/lib/commonjs/components/BeeswarmChart.js.map +1 -0
- package/lib/commonjs/components/BiomarkerRange.js +610 -0
- package/lib/commonjs/components/BiomarkerRange.js.map +1 -0
- package/lib/commonjs/components/BodyBattery.js +563 -0
- package/lib/commonjs/components/BodyBattery.js.map +1 -0
- package/lib/commonjs/components/BrandMark.js +184 -0
- package/lib/commonjs/components/BrandMark.js.map +1 -0
- package/lib/commonjs/components/BulletChart.js +406 -0
- package/lib/commonjs/components/BulletChart.js.map +1 -0
- package/lib/commonjs/components/Button.js +154 -0
- package/lib/commonjs/components/Button.js.map +1 -0
- package/lib/commonjs/components/CaffeineClock.js +491 -0
- package/lib/commonjs/components/CaffeineClock.js.map +1 -0
- package/lib/commonjs/components/Card.js +142 -0
- package/lib/commonjs/components/Card.js.map +1 -0
- package/lib/commonjs/components/CharCounter.js +106 -0
- package/lib/commonjs/components/CharCounter.js.map +1 -0
- package/lib/commonjs/components/ChartState.js +554 -0
- package/lib/commonjs/components/ChartState.js.map +1 -0
- package/lib/commonjs/components/Checkbox.js +180 -0
- package/lib/commonjs/components/Checkbox.js.map +1 -0
- package/lib/commonjs/components/Chip.js +218 -0
- package/lib/commonjs/components/Chip.js.map +1 -0
- package/lib/commonjs/components/ChoiceChip.js +133 -0
- package/lib/commonjs/components/ChoiceChip.js.map +1 -0
- package/lib/commonjs/components/CodeBlock.js +126 -0
- package/lib/commonjs/components/CodeBlock.js.map +1 -0
- package/lib/commonjs/components/CodeField.js +129 -0
- package/lib/commonjs/components/CodeField.js.map +1 -0
- package/lib/commonjs/components/ColorPicker.js +181 -0
- package/lib/commonjs/components/ColorPicker.js.map +1 -0
- package/lib/commonjs/components/ComboChart.js +419 -0
- package/lib/commonjs/components/ComboChart.js.map +1 -0
- package/lib/commonjs/components/Combobox.js +108 -0
- package/lib/commonjs/components/Combobox.js.map +1 -0
- package/lib/commonjs/components/CompareChart.js +627 -0
- package/lib/commonjs/components/CompareChart.js.map +1 -0
- package/lib/commonjs/components/CompositeChart.js +654 -0
- package/lib/commonjs/components/CompositeChart.js.map +1 -0
- package/lib/commonjs/components/Countdown.js +152 -0
- package/lib/commonjs/components/Countdown.js.map +1 -0
- package/lib/commonjs/components/CreditCardVisual.js +167 -0
- package/lib/commonjs/components/CreditCardVisual.js.map +1 -0
- package/lib/commonjs/components/DateField.js +365 -0
- package/lib/commonjs/components/DateField.js.map +1 -0
- package/lib/commonjs/components/DayTimelineBlocks.js +253 -0
- package/lib/commonjs/components/DayTimelineBlocks.js.map +1 -0
- package/lib/commonjs/components/DayWheel.js +467 -0
- package/lib/commonjs/components/DayWheel.js.map +1 -0
- package/lib/commonjs/components/DeltaPill.js +154 -0
- package/lib/commonjs/components/DeltaPill.js.map +1 -0
- package/lib/commonjs/components/DistributionChart.js +776 -0
- package/lib/commonjs/components/DistributionChart.js.map +1 -0
- package/lib/commonjs/components/Divider.js +74 -0
- package/lib/commonjs/components/Divider.js.map +1 -0
- package/lib/commonjs/components/DonutChart.js +337 -0
- package/lib/commonjs/components/DonutChart.js.map +1 -0
- package/lib/commonjs/components/DotsLoader.js +94 -0
- package/lib/commonjs/components/DotsLoader.js.map +1 -0
- package/lib/commonjs/components/EffectAttributionLine.js +105 -0
- package/lib/commonjs/components/EffectAttributionLine.js.map +1 -0
- package/lib/commonjs/components/EmptyState.js +120 -0
- package/lib/commonjs/components/EmptyState.js.map +1 -0
- package/lib/commonjs/components/EngagementBar.js +122 -0
- package/lib/commonjs/components/EngagementBar.js.map +1 -0
- package/lib/commonjs/components/EnvironmentChart.js +573 -0
- package/lib/commonjs/components/EnvironmentChart.js.map +1 -0
- package/lib/commonjs/components/Eyebrow.js +32 -0
- package/lib/commonjs/components/Eyebrow.js.map +1 -0
- package/lib/commonjs/components/FocalPointPicker.js +196 -0
- package/lib/commonjs/components/FocalPointPicker.js.map +1 -0
- package/lib/commonjs/components/FollowButton.js +95 -0
- package/lib/commonjs/components/FollowButton.js.map +1 -0
- package/lib/commonjs/components/ForecastCallout.js +116 -0
- package/lib/commonjs/components/ForecastCallout.js.map +1 -0
- package/lib/commonjs/components/FormField.js +204 -0
- package/lib/commonjs/components/FormField.js.map +1 -0
- package/lib/commonjs/components/FunnelChart.js +260 -0
- package/lib/commonjs/components/FunnelChart.js.map +1 -0
- package/lib/commonjs/components/Gauge.js +252 -0
- package/lib/commonjs/components/Gauge.js.map +1 -0
- package/lib/commonjs/components/GradientText.js +136 -0
- package/lib/commonjs/components/GradientText.js.map +1 -0
- package/lib/commonjs/components/Heatmap.js +419 -0
- package/lib/commonjs/components/Heatmap.js.map +1 -0
- package/lib/commonjs/components/Highlight.js +55 -0
- package/lib/commonjs/components/Highlight.js.map +1 -0
- package/lib/commonjs/components/Hypnogram.js +842 -0
- package/lib/commonjs/components/Hypnogram.js.map +1 -0
- package/lib/commonjs/components/Icon.js +486 -0
- package/lib/commonjs/components/Icon.js.map +1 -0
- package/lib/commonjs/components/Input.js +142 -0
- package/lib/commonjs/components/Input.js.map +1 -0
- package/lib/commonjs/components/InsightCard.js +119 -0
- package/lib/commonjs/components/InsightCard.js.map +1 -0
- package/lib/commonjs/components/KeyValue.js +93 -0
- package/lib/commonjs/components/KeyValue.js.map +1 -0
- package/lib/commonjs/components/LeaderboardRow.js +140 -0
- package/lib/commonjs/components/LeaderboardRow.js.map +1 -0
- package/lib/commonjs/components/LineChart.js +1544 -0
- package/lib/commonjs/components/LineChart.js.map +1 -0
- package/lib/commonjs/components/ListRow.js +122 -0
- package/lib/commonjs/components/ListRow.js.map +1 -0
- package/lib/commonjs/components/Menu.js +183 -0
- package/lib/commonjs/components/Menu.js.map +1 -0
- package/lib/commonjs/components/MessageBubble.js +117 -0
- package/lib/commonjs/components/MessageBubble.js.map +1 -0
- package/lib/commonjs/components/MessageComposer.js +212 -0
- package/lib/commonjs/components/MessageComposer.js.map +1 -0
- package/lib/commonjs/components/MetaphorWidget.js +1053 -0
- package/lib/commonjs/components/MetaphorWidget.js.map +1 -0
- package/lib/commonjs/components/Meter.js +173 -0
- package/lib/commonjs/components/Meter.js.map +1 -0
- package/lib/commonjs/components/MetricTile.js +268 -0
- package/lib/commonjs/components/MetricTile.js.map +1 -0
- package/lib/commonjs/components/MiniRing.js +30 -0
- package/lib/commonjs/components/MiniRing.js.map +1 -0
- package/lib/commonjs/components/Modal.js +153 -0
- package/lib/commonjs/components/Modal.js.map +1 -0
- package/lib/commonjs/components/MuscleDiagram.js +326 -0
- package/lib/commonjs/components/MuscleDiagram.js.map +1 -0
- package/lib/commonjs/components/NoteField.js +73 -0
- package/lib/commonjs/components/NoteField.js.map +1 -0
- package/lib/commonjs/components/NotificationRow.js +234 -0
- package/lib/commonjs/components/NotificationRow.js.map +1 -0
- package/lib/commonjs/components/Pagination.js +212 -0
- package/lib/commonjs/components/Pagination.js.map +1 -0
- package/lib/commonjs/components/PasswordInput.js +120 -0
- package/lib/commonjs/components/PasswordInput.js.map +1 -0
- package/lib/commonjs/components/PasswordStrengthMeter.js +108 -0
- package/lib/commonjs/components/PasswordStrengthMeter.js.map +1 -0
- package/lib/commonjs/components/PendingPatternCard.js +182 -0
- package/lib/commonjs/components/PendingPatternCard.js.map +1 -0
- package/lib/commonjs/components/PhaseWheel.js +704 -0
- package/lib/commonjs/components/PhaseWheel.js.map +1 -0
- package/lib/commonjs/components/PkChart.js +566 -0
- package/lib/commonjs/components/PkChart.js.map +1 -0
- package/lib/commonjs/components/Popover.js +234 -0
- package/lib/commonjs/components/Popover.js.map +1 -0
- package/lib/commonjs/components/PrBadge.js +71 -0
- package/lib/commonjs/components/PrBadge.js.map +1 -0
- package/lib/commonjs/components/PrCard.js +150 -0
- package/lib/commonjs/components/PrCard.js.map +1 -0
- package/lib/commonjs/components/PricingTierCard.js +237 -0
- package/lib/commonjs/components/PricingTierCard.js.map +1 -0
- package/lib/commonjs/components/ProGate.js +235 -0
- package/lib/commonjs/components/ProGate.js.map +1 -0
- package/lib/commonjs/components/ProgressBar.js +515 -0
- package/lib/commonjs/components/ProgressBar.js.map +1 -0
- package/lib/commonjs/components/Pulse.js +36 -0
- package/lib/commonjs/components/Pulse.js.map +1 -0
- package/lib/commonjs/components/QRCode.js +519 -0
- package/lib/commonjs/components/QRCode.js.map +1 -0
- package/lib/commonjs/components/RadarChart.js +492 -0
- package/lib/commonjs/components/RadarChart.js.map +1 -0
- package/lib/commonjs/components/RangeBar.js +191 -0
- package/lib/commonjs/components/RangeBar.js.map +1 -0
- package/lib/commonjs/components/ReauthDialog.js +261 -0
- package/lib/commonjs/components/ReauthDialog.js.map +1 -0
- package/lib/commonjs/components/RestTimer.js +246 -0
- package/lib/commonjs/components/RestTimer.js.map +1 -0
- package/lib/commonjs/components/RichText.js +81 -0
- package/lib/commonjs/components/RichText.js.map +1 -0
- package/lib/commonjs/components/RichTextEditor.js +274 -0
- package/lib/commonjs/components/RichTextEditor.js.map +1 -0
- package/lib/commonjs/components/Ring.js +239 -0
- package/lib/commonjs/components/Ring.js.map +1 -0
- package/lib/commonjs/components/RoseChart.js +376 -0
- package/lib/commonjs/components/RoseChart.js.map +1 -0
- package/lib/commonjs/components/SankeyChart.js +652 -0
- package/lib/commonjs/components/SankeyChart.js.map +1 -0
- package/lib/commonjs/components/ScatterChart.js +432 -0
- package/lib/commonjs/components/ScatterChart.js.map +1 -0
- package/lib/commonjs/components/ScrollProgress.js +66 -0
- package/lib/commonjs/components/ScrollProgress.js.map +1 -0
- package/lib/commonjs/components/SectionDivider.js +59 -0
- package/lib/commonjs/components/SectionDivider.js.map +1 -0
- package/lib/commonjs/components/SectionHeader.js +53 -0
- package/lib/commonjs/components/SectionHeader.js.map +1 -0
- package/lib/commonjs/components/SegmentedTabs.js +336 -0
- package/lib/commonjs/components/SegmentedTabs.js.map +1 -0
- package/lib/commonjs/components/Select.js +380 -0
- package/lib/commonjs/components/Select.js.map +1 -0
- package/lib/commonjs/components/SessionBanner.js +220 -0
- package/lib/commonjs/components/SessionBanner.js.map +1 -0
- package/lib/commonjs/components/SessionChart.js +1046 -0
- package/lib/commonjs/components/SessionChart.js.map +1 -0
- package/lib/commonjs/components/SetTable.js +351 -0
- package/lib/commonjs/components/SetTable.js.map +1 -0
- package/lib/commonjs/components/ShareCard.js +227 -0
- package/lib/commonjs/components/ShareCard.js.map +1 -0
- package/lib/commonjs/components/Sheet.js +220 -0
- package/lib/commonjs/components/Sheet.js.map +1 -0
- package/lib/commonjs/components/Skeleton.js +28 -0
- package/lib/commonjs/components/Skeleton.js.map +1 -0
- package/lib/commonjs/components/Slider.js +173 -0
- package/lib/commonjs/components/Slider.js.map +1 -0
- package/lib/commonjs/components/Sortable.js +230 -0
- package/lib/commonjs/components/Sortable.js.map +1 -0
- package/lib/commonjs/components/SourceChip.js +111 -0
- package/lib/commonjs/components/SourceChip.js.map +1 -0
- package/lib/commonjs/components/Sparkline.js +110 -0
- package/lib/commonjs/components/Sparkline.js.map +1 -0
- package/lib/commonjs/components/Spinner.js +132 -0
- package/lib/commonjs/components/Spinner.js.map +1 -0
- package/lib/commonjs/components/SplitButton.js +158 -0
- package/lib/commonjs/components/SplitButton.js.map +1 -0
- package/lib/commonjs/components/SsoButton.js +109 -0
- package/lib/commonjs/components/SsoButton.js.map +1 -0
- package/lib/commonjs/components/StackedBar.js +133 -0
- package/lib/commonjs/components/StackedBar.js.map +1 -0
- package/lib/commonjs/components/Stat.js +167 -0
- package/lib/commonjs/components/Stat.js.map +1 -0
- package/lib/commonjs/components/StatTile.js +644 -0
- package/lib/commonjs/components/StatTile.js.map +1 -0
- package/lib/commonjs/components/StateLabel.js +73 -0
- package/lib/commonjs/components/StateLabel.js.map +1 -0
- package/lib/commonjs/components/StatusDot.js +65 -0
- package/lib/commonjs/components/StatusDot.js.map +1 -0
- package/lib/commonjs/components/Stepper.js +355 -0
- package/lib/commonjs/components/Stepper.js.map +1 -0
- package/lib/commonjs/components/SupplementChart.js +1002 -0
- package/lib/commonjs/components/SupplementChart.js.map +1 -0
- package/lib/commonjs/components/TabBar.js +303 -0
- package/lib/commonjs/components/TabBar.js.map +1 -0
- package/lib/commonjs/components/Table.js +458 -0
- package/lib/commonjs/components/Table.js.map +1 -0
- package/lib/commonjs/components/Tabs.js +88 -0
- package/lib/commonjs/components/Tabs.js.map +1 -0
- package/lib/commonjs/components/TagCloud.js +118 -0
- package/lib/commonjs/components/TagCloud.js.map +1 -0
- package/lib/commonjs/components/TagInput.js +298 -0
- package/lib/commonjs/components/TagInput.js.map +1 -0
- package/lib/commonjs/components/TemplateCard.js +206 -0
- package/lib/commonjs/components/TemplateCard.js.map +1 -0
- package/lib/commonjs/components/Timeline.js +219 -0
- package/lib/commonjs/components/Timeline.js.map +1 -0
- package/lib/commonjs/components/TimelineChart.js +1228 -0
- package/lib/commonjs/components/TimelineChart.js.map +1 -0
- package/lib/commonjs/components/Toast.js +156 -0
- package/lib/commonjs/components/Toast.js.map +1 -0
- package/lib/commonjs/components/Toggle.js +166 -0
- package/lib/commonjs/components/Toggle.js.map +1 -0
- package/lib/commonjs/components/Toolbar.js +310 -0
- package/lib/commonjs/components/Toolbar.js.map +1 -0
- package/lib/commonjs/components/Tooltip.js +245 -0
- package/lib/commonjs/components/Tooltip.js.map +1 -0
- package/lib/commonjs/components/TypingIndicator.js +112 -0
- package/lib/commonjs/components/TypingIndicator.js.map +1 -0
- package/lib/commonjs/components/UnitChart.js +482 -0
- package/lib/commonjs/components/UnitChart.js.map +1 -0
- package/lib/commonjs/components/VersionBadge.js +133 -0
- package/lib/commonjs/components/VersionBadge.js.map +1 -0
- package/lib/commonjs/components/VideoThumbnail.js +152 -0
- package/lib/commonjs/components/VideoThumbnail.js.map +1 -0
- package/lib/commonjs/components/VitalsStrip.js +766 -0
- package/lib/commonjs/components/VitalsStrip.js.map +1 -0
- package/lib/commonjs/components/WatchComplication.js +563 -0
- package/lib/commonjs/components/WatchComplication.js.map +1 -0
- package/lib/commonjs/components/ZoneBar.js +149 -0
- package/lib/commonjs/components/ZoneBar.js.map +1 -0
- package/lib/commonjs/components/ZonePyramid.js +398 -0
- package/lib/commonjs/components/ZonePyramid.js.map +1 -0
- package/lib/commonjs/index.js +1140 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/internal/optionalBlur.js +34 -0
- package/lib/commonjs/internal/optionalBlur.js.map +1 -0
- package/lib/commonjs/internal/optionalHaptics.js +40 -0
- package/lib/commonjs/internal/optionalHaptics.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/theme.js +61 -0
- package/lib/commonjs/theme.js.map +1 -0
- package/lib/module/components/Accordion.js +139 -0
- package/lib/module/components/Accordion.js.map +1 -0
- package/lib/module/components/AchievementBadge.js +223 -0
- package/lib/module/components/AchievementBadge.js.map +1 -0
- package/lib/module/components/Alert.js +227 -0
- package/lib/module/components/Alert.js.map +1 -0
- package/lib/module/components/AreaChart.js +501 -0
- package/lib/module/components/AreaChart.js.map +1 -0
- package/lib/module/components/AuroraBackground.js +262 -0
- package/lib/module/components/AuroraBackground.js.map +1 -0
- package/lib/module/components/Avatar.js +183 -0
- package/lib/module/components/Avatar.js.map +1 -0
- package/lib/module/components/AvatarStack.js +91 -0
- package/lib/module/components/AvatarStack.js.map +1 -0
- package/lib/module/components/BackLink.js +73 -0
- package/lib/module/components/BackLink.js.map +1 -0
- package/lib/module/components/Badge.js +132 -0
- package/lib/module/components/Badge.js.map +1 -0
- package/lib/module/components/BarChart.js +636 -0
- package/lib/module/components/BarChart.js.map +1 -0
- package/lib/module/components/BarFill.js +51 -0
- package/lib/module/components/BarFill.js.map +1 -0
- package/lib/module/components/BeeswarmChart.js +610 -0
- package/lib/module/components/BeeswarmChart.js.map +1 -0
- package/lib/module/components/BiomarkerRange.js +605 -0
- package/lib/module/components/BiomarkerRange.js.map +1 -0
- package/lib/module/components/BodyBattery.js +558 -0
- package/lib/module/components/BodyBattery.js.map +1 -0
- package/lib/module/components/BrandMark.js +179 -0
- package/lib/module/components/BrandMark.js.map +1 -0
- package/lib/module/components/BulletChart.js +401 -0
- package/lib/module/components/BulletChart.js.map +1 -0
- package/lib/module/components/Button.js +150 -0
- package/lib/module/components/Button.js.map +1 -0
- package/lib/module/components/CaffeineClock.js +486 -0
- package/lib/module/components/CaffeineClock.js.map +1 -0
- package/lib/module/components/Card.js +138 -0
- package/lib/module/components/Card.js.map +1 -0
- package/lib/module/components/CharCounter.js +102 -0
- package/lib/module/components/CharCounter.js.map +1 -0
- package/lib/module/components/ChartState.js +549 -0
- package/lib/module/components/ChartState.js.map +1 -0
- package/lib/module/components/Checkbox.js +175 -0
- package/lib/module/components/Checkbox.js.map +1 -0
- package/lib/module/components/Chip.js +214 -0
- package/lib/module/components/Chip.js.map +1 -0
- package/lib/module/components/ChoiceChip.js +129 -0
- package/lib/module/components/ChoiceChip.js.map +1 -0
- package/lib/module/components/CodeBlock.js +122 -0
- package/lib/module/components/CodeBlock.js.map +1 -0
- package/lib/module/components/CodeField.js +125 -0
- package/lib/module/components/CodeField.js.map +1 -0
- package/lib/module/components/ColorPicker.js +177 -0
- package/lib/module/components/ColorPicker.js.map +1 -0
- package/lib/module/components/ComboChart.js +414 -0
- package/lib/module/components/ComboChart.js.map +1 -0
- package/lib/module/components/Combobox.js +104 -0
- package/lib/module/components/Combobox.js.map +1 -0
- package/lib/module/components/CompareChart.js +622 -0
- package/lib/module/components/CompareChart.js.map +1 -0
- package/lib/module/components/CompositeChart.js +649 -0
- package/lib/module/components/CompositeChart.js.map +1 -0
- package/lib/module/components/Countdown.js +148 -0
- package/lib/module/components/Countdown.js.map +1 -0
- package/lib/module/components/CreditCardVisual.js +163 -0
- package/lib/module/components/CreditCardVisual.js.map +1 -0
- package/lib/module/components/DateField.js +361 -0
- package/lib/module/components/DateField.js.map +1 -0
- package/lib/module/components/DayTimelineBlocks.js +249 -0
- package/lib/module/components/DayTimelineBlocks.js.map +1 -0
- package/lib/module/components/DayWheel.js +462 -0
- package/lib/module/components/DayWheel.js.map +1 -0
- package/lib/module/components/DeltaPill.js +149 -0
- package/lib/module/components/DeltaPill.js.map +1 -0
- package/lib/module/components/DistributionChart.js +771 -0
- package/lib/module/components/DistributionChart.js.map +1 -0
- package/lib/module/components/Divider.js +70 -0
- package/lib/module/components/Divider.js.map +1 -0
- package/lib/module/components/DonutChart.js +332 -0
- package/lib/module/components/DonutChart.js.map +1 -0
- package/lib/module/components/DotsLoader.js +90 -0
- package/lib/module/components/DotsLoader.js.map +1 -0
- package/lib/module/components/EffectAttributionLine.js +101 -0
- package/lib/module/components/EffectAttributionLine.js.map +1 -0
- package/lib/module/components/EmptyState.js +115 -0
- package/lib/module/components/EmptyState.js.map +1 -0
- package/lib/module/components/EngagementBar.js +118 -0
- package/lib/module/components/EngagementBar.js.map +1 -0
- package/lib/module/components/EnvironmentChart.js +568 -0
- package/lib/module/components/EnvironmentChart.js.map +1 -0
- package/lib/module/components/Eyebrow.js +28 -0
- package/lib/module/components/Eyebrow.js.map +1 -0
- package/lib/module/components/FocalPointPicker.js +192 -0
- package/lib/module/components/FocalPointPicker.js.map +1 -0
- package/lib/module/components/FollowButton.js +91 -0
- package/lib/module/components/FollowButton.js.map +1 -0
- package/lib/module/components/ForecastCallout.js +112 -0
- package/lib/module/components/ForecastCallout.js.map +1 -0
- package/lib/module/components/FormField.js +198 -0
- package/lib/module/components/FormField.js.map +1 -0
- package/lib/module/components/FunnelChart.js +255 -0
- package/lib/module/components/FunnelChart.js.map +1 -0
- package/lib/module/components/Gauge.js +249 -0
- package/lib/module/components/Gauge.js.map +1 -0
- package/lib/module/components/GradientText.js +130 -0
- package/lib/module/components/GradientText.js.map +1 -0
- package/lib/module/components/Heatmap.js +414 -0
- package/lib/module/components/Heatmap.js.map +1 -0
- package/lib/module/components/Highlight.js +51 -0
- package/lib/module/components/Highlight.js.map +1 -0
- package/lib/module/components/Hypnogram.js +837 -0
- package/lib/module/components/Hypnogram.js.map +1 -0
- package/lib/module/components/Icon.js +480 -0
- package/lib/module/components/Icon.js.map +1 -0
- package/lib/module/components/Input.js +138 -0
- package/lib/module/components/Input.js.map +1 -0
- package/lib/module/components/InsightCard.js +115 -0
- package/lib/module/components/InsightCard.js.map +1 -0
- package/lib/module/components/KeyValue.js +89 -0
- package/lib/module/components/KeyValue.js.map +1 -0
- package/lib/module/components/LeaderboardRow.js +136 -0
- package/lib/module/components/LeaderboardRow.js.map +1 -0
- package/lib/module/components/LineChart.js +1539 -0
- package/lib/module/components/LineChart.js.map +1 -0
- package/lib/module/components/ListRow.js +118 -0
- package/lib/module/components/ListRow.js.map +1 -0
- package/lib/module/components/Menu.js +179 -0
- package/lib/module/components/Menu.js.map +1 -0
- package/lib/module/components/MessageBubble.js +113 -0
- package/lib/module/components/MessageBubble.js.map +1 -0
- package/lib/module/components/MessageComposer.js +208 -0
- package/lib/module/components/MessageComposer.js.map +1 -0
- package/lib/module/components/MetaphorWidget.js +1048 -0
- package/lib/module/components/MetaphorWidget.js.map +1 -0
- package/lib/module/components/Meter.js +169 -0
- package/lib/module/components/Meter.js.map +1 -0
- package/lib/module/components/MetricTile.js +263 -0
- package/lib/module/components/MetricTile.js.map +1 -0
- package/lib/module/components/MiniRing.js +26 -0
- package/lib/module/components/MiniRing.js.map +1 -0
- package/lib/module/components/Modal.js +148 -0
- package/lib/module/components/Modal.js.map +1 -0
- package/lib/module/components/MuscleDiagram.js +321 -0
- package/lib/module/components/MuscleDiagram.js.map +1 -0
- package/lib/module/components/NoteField.js +69 -0
- package/lib/module/components/NoteField.js.map +1 -0
- package/lib/module/components/NotificationRow.js +230 -0
- package/lib/module/components/NotificationRow.js.map +1 -0
- package/lib/module/components/Pagination.js +207 -0
- package/lib/module/components/Pagination.js.map +1 -0
- package/lib/module/components/PasswordInput.js +116 -0
- package/lib/module/components/PasswordInput.js.map +1 -0
- package/lib/module/components/PasswordStrengthMeter.js +104 -0
- package/lib/module/components/PasswordStrengthMeter.js.map +1 -0
- package/lib/module/components/PendingPatternCard.js +178 -0
- package/lib/module/components/PendingPatternCard.js.map +1 -0
- package/lib/module/components/PhaseWheel.js +699 -0
- package/lib/module/components/PhaseWheel.js.map +1 -0
- package/lib/module/components/PkChart.js +558 -0
- package/lib/module/components/PkChart.js.map +1 -0
- package/lib/module/components/Popover.js +230 -0
- package/lib/module/components/Popover.js.map +1 -0
- package/lib/module/components/PrBadge.js +66 -0
- package/lib/module/components/PrBadge.js.map +1 -0
- package/lib/module/components/PrCard.js +146 -0
- package/lib/module/components/PrCard.js.map +1 -0
- package/lib/module/components/PricingTierCard.js +233 -0
- package/lib/module/components/PricingTierCard.js.map +1 -0
- package/lib/module/components/ProGate.js +229 -0
- package/lib/module/components/ProGate.js.map +1 -0
- package/lib/module/components/ProgressBar.js +511 -0
- package/lib/module/components/ProgressBar.js.map +1 -0
- package/lib/module/components/Pulse.js +32 -0
- package/lib/module/components/Pulse.js.map +1 -0
- package/lib/module/components/QRCode.js +514 -0
- package/lib/module/components/QRCode.js.map +1 -0
- package/lib/module/components/RadarChart.js +487 -0
- package/lib/module/components/RadarChart.js.map +1 -0
- package/lib/module/components/RangeBar.js +187 -0
- package/lib/module/components/RangeBar.js.map +1 -0
- package/lib/module/components/ReauthDialog.js +256 -0
- package/lib/module/components/ReauthDialog.js.map +1 -0
- package/lib/module/components/RestTimer.js +239 -0
- package/lib/module/components/RestTimer.js.map +1 -0
- package/lib/module/components/RichText.js +77 -0
- package/lib/module/components/RichText.js.map +1 -0
- package/lib/module/components/RichTextEditor.js +269 -0
- package/lib/module/components/RichTextEditor.js.map +1 -0
- package/lib/module/components/Ring.js +236 -0
- package/lib/module/components/Ring.js.map +1 -0
- package/lib/module/components/RoseChart.js +371 -0
- package/lib/module/components/RoseChart.js.map +1 -0
- package/lib/module/components/SankeyChart.js +647 -0
- package/lib/module/components/SankeyChart.js.map +1 -0
- package/lib/module/components/ScatterChart.js +427 -0
- package/lib/module/components/ScatterChart.js.map +1 -0
- package/lib/module/components/ScrollProgress.js +62 -0
- package/lib/module/components/ScrollProgress.js.map +1 -0
- package/lib/module/components/SectionDivider.js +55 -0
- package/lib/module/components/SectionDivider.js.map +1 -0
- package/lib/module/components/SectionHeader.js +49 -0
- package/lib/module/components/SectionHeader.js.map +1 -0
- package/lib/module/components/SegmentedTabs.js +332 -0
- package/lib/module/components/SegmentedTabs.js.map +1 -0
- package/lib/module/components/Select.js +375 -0
- package/lib/module/components/Select.js.map +1 -0
- package/lib/module/components/SessionBanner.js +216 -0
- package/lib/module/components/SessionBanner.js.map +1 -0
- package/lib/module/components/SessionChart.js +1040 -0
- package/lib/module/components/SessionChart.js.map +1 -0
- package/lib/module/components/SetTable.js +345 -0
- package/lib/module/components/SetTable.js.map +1 -0
- package/lib/module/components/ShareCard.js +223 -0
- package/lib/module/components/ShareCard.js.map +1 -0
- package/lib/module/components/Sheet.js +216 -0
- package/lib/module/components/Sheet.js.map +1 -0
- package/lib/module/components/Skeleton.js +24 -0
- package/lib/module/components/Skeleton.js.map +1 -0
- package/lib/module/components/Slider.js +169 -0
- package/lib/module/components/Slider.js.map +1 -0
- package/lib/module/components/Sortable.js +226 -0
- package/lib/module/components/Sortable.js.map +1 -0
- package/lib/module/components/SourceChip.js +107 -0
- package/lib/module/components/SourceChip.js.map +1 -0
- package/lib/module/components/Sparkline.js +105 -0
- package/lib/module/components/Sparkline.js.map +1 -0
- package/lib/module/components/Spinner.js +127 -0
- package/lib/module/components/Spinner.js.map +1 -0
- package/lib/module/components/SplitButton.js +154 -0
- package/lib/module/components/SplitButton.js.map +1 -0
- package/lib/module/components/SsoButton.js +104 -0
- package/lib/module/components/SsoButton.js.map +1 -0
- package/lib/module/components/StackedBar.js +129 -0
- package/lib/module/components/StackedBar.js.map +1 -0
- package/lib/module/components/Stat.js +163 -0
- package/lib/module/components/Stat.js.map +1 -0
- package/lib/module/components/StatTile.js +639 -0
- package/lib/module/components/StatTile.js.map +1 -0
- package/lib/module/components/StateLabel.js +69 -0
- package/lib/module/components/StateLabel.js.map +1 -0
- package/lib/module/components/StatusDot.js +61 -0
- package/lib/module/components/StatusDot.js.map +1 -0
- package/lib/module/components/Stepper.js +350 -0
- package/lib/module/components/Stepper.js.map +1 -0
- package/lib/module/components/SupplementChart.js +997 -0
- package/lib/module/components/SupplementChart.js.map +1 -0
- package/lib/module/components/TabBar.js +298 -0
- package/lib/module/components/TabBar.js.map +1 -0
- package/lib/module/components/Table.js +452 -0
- package/lib/module/components/Table.js.map +1 -0
- package/lib/module/components/Tabs.js +84 -0
- package/lib/module/components/Tabs.js.map +1 -0
- package/lib/module/components/TagCloud.js +113 -0
- package/lib/module/components/TagCloud.js.map +1 -0
- package/lib/module/components/TagInput.js +291 -0
- package/lib/module/components/TagInput.js.map +1 -0
- package/lib/module/components/TemplateCard.js +202 -0
- package/lib/module/components/TemplateCard.js.map +1 -0
- package/lib/module/components/Timeline.js +214 -0
- package/lib/module/components/Timeline.js.map +1 -0
- package/lib/module/components/TimelineChart.js +1223 -0
- package/lib/module/components/TimelineChart.js.map +1 -0
- package/lib/module/components/Toast.js +151 -0
- package/lib/module/components/Toast.js.map +1 -0
- package/lib/module/components/Toggle.js +162 -0
- package/lib/module/components/Toggle.js.map +1 -0
- package/lib/module/components/Toolbar.js +306 -0
- package/lib/module/components/Toolbar.js.map +1 -0
- package/lib/module/components/Tooltip.js +241 -0
- package/lib/module/components/Tooltip.js.map +1 -0
- package/lib/module/components/TypingIndicator.js +108 -0
- package/lib/module/components/TypingIndicator.js.map +1 -0
- package/lib/module/components/UnitChart.js +477 -0
- package/lib/module/components/UnitChart.js.map +1 -0
- package/lib/module/components/VersionBadge.js +129 -0
- package/lib/module/components/VersionBadge.js.map +1 -0
- package/lib/module/components/VideoThumbnail.js +147 -0
- package/lib/module/components/VideoThumbnail.js.map +1 -0
- package/lib/module/components/VitalsStrip.js +761 -0
- package/lib/module/components/VitalsStrip.js.map +1 -0
- package/lib/module/components/WatchComplication.js +558 -0
- package/lib/module/components/WatchComplication.js.map +1 -0
- package/lib/module/components/ZoneBar.js +145 -0
- package/lib/module/components/ZoneBar.js.map +1 -0
- package/lib/module/components/ZonePyramid.js +393 -0
- package/lib/module/components/ZonePyramid.js.map +1 -0
- package/lib/module/index.js +166 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/internal/optionalBlur.js +30 -0
- package/lib/module/internal/optionalBlur.js.map +1 -0
- package/lib/module/internal/optionalHaptics.js +34 -0
- package/lib/module/internal/optionalHaptics.js.map +1 -0
- package/lib/module/theme.js +6 -0
- package/lib/module/theme.js.map +1 -0
- package/lib/typescript/components/Accordion.d.ts +20 -0
- package/lib/typescript/components/Accordion.d.ts.map +1 -0
- package/lib/typescript/components/AchievementBadge.d.ts +29 -0
- package/lib/typescript/components/AchievementBadge.d.ts.map +1 -0
- package/lib/typescript/components/Alert.d.ts +18 -0
- package/lib/typescript/components/Alert.d.ts.map +1 -0
- package/lib/typescript/components/AreaChart.d.ts +58 -0
- package/lib/typescript/components/AreaChart.d.ts.map +1 -0
- package/lib/typescript/components/AuroraBackground.d.ts +24 -0
- package/lib/typescript/components/AuroraBackground.d.ts.map +1 -0
- package/lib/typescript/components/Avatar.d.ts +38 -0
- package/lib/typescript/components/Avatar.d.ts.map +1 -0
- package/lib/typescript/components/AvatarStack.d.ts +26 -0
- package/lib/typescript/components/AvatarStack.d.ts.map +1 -0
- package/lib/typescript/components/BackLink.d.ts +20 -0
- package/lib/typescript/components/BackLink.d.ts.map +1 -0
- package/lib/typescript/components/Badge.d.ts +12 -0
- package/lib/typescript/components/Badge.d.ts.map +1 -0
- package/lib/typescript/components/BarChart.d.ts +83 -0
- package/lib/typescript/components/BarChart.d.ts.map +1 -0
- package/lib/typescript/components/BarFill.d.ts +15 -0
- package/lib/typescript/components/BarFill.d.ts.map +1 -0
- package/lib/typescript/components/BeeswarmChart.d.ts +71 -0
- package/lib/typescript/components/BeeswarmChart.d.ts.map +1 -0
- package/lib/typescript/components/BiomarkerRange.d.ts +64 -0
- package/lib/typescript/components/BiomarkerRange.d.ts.map +1 -0
- package/lib/typescript/components/BodyBattery.d.ts +70 -0
- package/lib/typescript/components/BodyBattery.d.ts.map +1 -0
- package/lib/typescript/components/BrandMark.d.ts +10 -0
- package/lib/typescript/components/BrandMark.d.ts.map +1 -0
- package/lib/typescript/components/BulletChart.d.ts +61 -0
- package/lib/typescript/components/BulletChart.d.ts.map +1 -0
- package/lib/typescript/components/Button.d.ts +27 -0
- package/lib/typescript/components/Button.d.ts.map +1 -0
- package/lib/typescript/components/CaffeineClock.d.ts +64 -0
- package/lib/typescript/components/CaffeineClock.d.ts.map +1 -0
- package/lib/typescript/components/Card.d.ts +23 -0
- package/lib/typescript/components/Card.d.ts.map +1 -0
- package/lib/typescript/components/CharCounter.d.ts +30 -0
- package/lib/typescript/components/CharCounter.d.ts.map +1 -0
- package/lib/typescript/components/ChartState.d.ts +58 -0
- package/lib/typescript/components/ChartState.d.ts.map +1 -0
- package/lib/typescript/components/Checkbox.d.ts +44 -0
- package/lib/typescript/components/Checkbox.d.ts.map +1 -0
- package/lib/typescript/components/Chip.d.ts +17 -0
- package/lib/typescript/components/Chip.d.ts.map +1 -0
- package/lib/typescript/components/ChoiceChip.d.ts +31 -0
- package/lib/typescript/components/ChoiceChip.d.ts.map +1 -0
- package/lib/typescript/components/CodeBlock.d.ts +18 -0
- package/lib/typescript/components/CodeBlock.d.ts.map +1 -0
- package/lib/typescript/components/CodeField.d.ts +22 -0
- package/lib/typescript/components/CodeField.d.ts.map +1 -0
- package/lib/typescript/components/ColorPicker.d.ts +20 -0
- package/lib/typescript/components/ColorPicker.d.ts.map +1 -0
- package/lib/typescript/components/ComboChart.d.ts +56 -0
- package/lib/typescript/components/ComboChart.d.ts.map +1 -0
- package/lib/typescript/components/Combobox.d.ts +39 -0
- package/lib/typescript/components/Combobox.d.ts.map +1 -0
- package/lib/typescript/components/CompareChart.d.ts +80 -0
- package/lib/typescript/components/CompareChart.d.ts.map +1 -0
- package/lib/typescript/components/CompositeChart.d.ts +83 -0
- package/lib/typescript/components/CompositeChart.d.ts.map +1 -0
- package/lib/typescript/components/Countdown.d.ts +28 -0
- package/lib/typescript/components/Countdown.d.ts.map +1 -0
- package/lib/typescript/components/CreditCardVisual.d.ts +26 -0
- package/lib/typescript/components/CreditCardVisual.d.ts.map +1 -0
- package/lib/typescript/components/DateField.d.ts +39 -0
- package/lib/typescript/components/DateField.d.ts.map +1 -0
- package/lib/typescript/components/DayTimelineBlocks.d.ts +40 -0
- package/lib/typescript/components/DayTimelineBlocks.d.ts.map +1 -0
- package/lib/typescript/components/DayWheel.d.ts +70 -0
- package/lib/typescript/components/DayWheel.d.ts.map +1 -0
- package/lib/typescript/components/DeltaPill.d.ts +22 -0
- package/lib/typescript/components/DeltaPill.d.ts.map +1 -0
- package/lib/typescript/components/DistributionChart.d.ts +94 -0
- package/lib/typescript/components/DistributionChart.d.ts.map +1 -0
- package/lib/typescript/components/Divider.d.ts +16 -0
- package/lib/typescript/components/Divider.d.ts.map +1 -0
- package/lib/typescript/components/DonutChart.d.ts +70 -0
- package/lib/typescript/components/DonutChart.d.ts.map +1 -0
- package/lib/typescript/components/DotsLoader.d.ts +19 -0
- package/lib/typescript/components/DotsLoader.d.ts.map +1 -0
- package/lib/typescript/components/EffectAttributionLine.d.ts +24 -0
- package/lib/typescript/components/EffectAttributionLine.d.ts.map +1 -0
- package/lib/typescript/components/EmptyState.d.ts +17 -0
- package/lib/typescript/components/EmptyState.d.ts.map +1 -0
- package/lib/typescript/components/EngagementBar.d.ts +23 -0
- package/lib/typescript/components/EngagementBar.d.ts.map +1 -0
- package/lib/typescript/components/EnvironmentChart.d.ts +89 -0
- package/lib/typescript/components/EnvironmentChart.d.ts.map +1 -0
- package/lib/typescript/components/Eyebrow.d.ts +7 -0
- package/lib/typescript/components/Eyebrow.d.ts.map +1 -0
- package/lib/typescript/components/FocalPointPicker.d.ts +31 -0
- package/lib/typescript/components/FocalPointPicker.d.ts.map +1 -0
- package/lib/typescript/components/FollowButton.d.ts +21 -0
- package/lib/typescript/components/FollowButton.d.ts.map +1 -0
- package/lib/typescript/components/ForecastCallout.d.ts +21 -0
- package/lib/typescript/components/ForecastCallout.d.ts.map +1 -0
- package/lib/typescript/components/FormField.d.ts +32 -0
- package/lib/typescript/components/FormField.d.ts.map +1 -0
- package/lib/typescript/components/FunnelChart.d.ts +46 -0
- package/lib/typescript/components/FunnelChart.d.ts.map +1 -0
- package/lib/typescript/components/Gauge.d.ts +70 -0
- package/lib/typescript/components/Gauge.d.ts.map +1 -0
- package/lib/typescript/components/GradientText.d.ts +21 -0
- package/lib/typescript/components/GradientText.d.ts.map +1 -0
- package/lib/typescript/components/Heatmap.d.ts +87 -0
- package/lib/typescript/components/Heatmap.d.ts.map +1 -0
- package/lib/typescript/components/Highlight.d.ts +11 -0
- package/lib/typescript/components/Highlight.d.ts.map +1 -0
- package/lib/typescript/components/Hypnogram.d.ts +94 -0
- package/lib/typescript/components/Hypnogram.d.ts.map +1 -0
- package/lib/typescript/components/Icon.d.ts +30 -0
- package/lib/typescript/components/Icon.d.ts.map +1 -0
- package/lib/typescript/components/Input.d.ts +25 -0
- package/lib/typescript/components/Input.d.ts.map +1 -0
- package/lib/typescript/components/InsightCard.d.ts +37 -0
- package/lib/typescript/components/InsightCard.d.ts.map +1 -0
- package/lib/typescript/components/KeyValue.d.ts +18 -0
- package/lib/typescript/components/KeyValue.d.ts.map +1 -0
- package/lib/typescript/components/LeaderboardRow.d.ts +31 -0
- package/lib/typescript/components/LeaderboardRow.d.ts.map +1 -0
- package/lib/typescript/components/LineChart.d.ts +166 -0
- package/lib/typescript/components/LineChart.d.ts.map +1 -0
- package/lib/typescript/components/ListRow.d.ts +37 -0
- package/lib/typescript/components/ListRow.d.ts.map +1 -0
- package/lib/typescript/components/Menu.d.ts +28 -0
- package/lib/typescript/components/Menu.d.ts.map +1 -0
- package/lib/typescript/components/MessageBubble.d.ts +20 -0
- package/lib/typescript/components/MessageBubble.d.ts.map +1 -0
- package/lib/typescript/components/MessageComposer.d.ts +20 -0
- package/lib/typescript/components/MessageComposer.d.ts.map +1 -0
- package/lib/typescript/components/MetaphorWidget.d.ts +107 -0
- package/lib/typescript/components/MetaphorWidget.d.ts.map +1 -0
- package/lib/typescript/components/Meter.d.ts +34 -0
- package/lib/typescript/components/Meter.d.ts.map +1 -0
- package/lib/typescript/components/MetricTile.d.ts +43 -0
- package/lib/typescript/components/MetricTile.d.ts.map +1 -0
- package/lib/typescript/components/MiniRing.d.ts +9 -0
- package/lib/typescript/components/MiniRing.d.ts.map +1 -0
- package/lib/typescript/components/Modal.d.ts +19 -0
- package/lib/typescript/components/Modal.d.ts.map +1 -0
- package/lib/typescript/components/MuscleDiagram.d.ts +37 -0
- package/lib/typescript/components/MuscleDiagram.d.ts.map +1 -0
- package/lib/typescript/components/NoteField.d.ts +9 -0
- package/lib/typescript/components/NoteField.d.ts.map +1 -0
- package/lib/typescript/components/NotificationRow.d.ts +36 -0
- package/lib/typescript/components/NotificationRow.d.ts.map +1 -0
- package/lib/typescript/components/Pagination.d.ts +22 -0
- package/lib/typescript/components/Pagination.d.ts.map +1 -0
- package/lib/typescript/components/PasswordInput.d.ts +24 -0
- package/lib/typescript/components/PasswordInput.d.ts.map +1 -0
- package/lib/typescript/components/PasswordStrengthMeter.d.ts +18 -0
- package/lib/typescript/components/PasswordStrengthMeter.d.ts.map +1 -0
- package/lib/typescript/components/PendingPatternCard.d.ts +27 -0
- package/lib/typescript/components/PendingPatternCard.d.ts.map +1 -0
- package/lib/typescript/components/PhaseWheel.d.ts +103 -0
- package/lib/typescript/components/PhaseWheel.d.ts.map +1 -0
- package/lib/typescript/components/PkChart.d.ts +67 -0
- package/lib/typescript/components/PkChart.d.ts.map +1 -0
- package/lib/typescript/components/Popover.d.ts +27 -0
- package/lib/typescript/components/Popover.d.ts.map +1 -0
- package/lib/typescript/components/PrBadge.d.ts +21 -0
- package/lib/typescript/components/PrBadge.d.ts.map +1 -0
- package/lib/typescript/components/PrCard.d.ts +29 -0
- package/lib/typescript/components/PrCard.d.ts.map +1 -0
- package/lib/typescript/components/PricingTierCard.d.ts +46 -0
- package/lib/typescript/components/PricingTierCard.d.ts.map +1 -0
- package/lib/typescript/components/ProGate.d.ts +26 -0
- package/lib/typescript/components/ProGate.d.ts.map +1 -0
- package/lib/typescript/components/ProgressBar.d.ts +60 -0
- package/lib/typescript/components/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/components/Pulse.d.ts +8 -0
- package/lib/typescript/components/Pulse.d.ts.map +1 -0
- package/lib/typescript/components/QRCode.d.ts +17 -0
- package/lib/typescript/components/QRCode.d.ts.map +1 -0
- package/lib/typescript/components/RadarChart.d.ts +59 -0
- package/lib/typescript/components/RadarChart.d.ts.map +1 -0
- package/lib/typescript/components/RangeBar.d.ts +38 -0
- package/lib/typescript/components/RangeBar.d.ts.map +1 -0
- package/lib/typescript/components/ReauthDialog.d.ts +44 -0
- package/lib/typescript/components/ReauthDialog.d.ts.map +1 -0
- package/lib/typescript/components/RestTimer.d.ts +45 -0
- package/lib/typescript/components/RestTimer.d.ts.map +1 -0
- package/lib/typescript/components/RichText.d.ts +26 -0
- package/lib/typescript/components/RichText.d.ts.map +1 -0
- package/lib/typescript/components/RichTextEditor.d.ts +25 -0
- package/lib/typescript/components/RichTextEditor.d.ts.map +1 -0
- package/lib/typescript/components/Ring.d.ts +63 -0
- package/lib/typescript/components/Ring.d.ts.map +1 -0
- package/lib/typescript/components/RoseChart.d.ts +54 -0
- package/lib/typescript/components/RoseChart.d.ts.map +1 -0
- package/lib/typescript/components/SankeyChart.d.ts +93 -0
- package/lib/typescript/components/SankeyChart.d.ts.map +1 -0
- package/lib/typescript/components/ScatterChart.d.ts +59 -0
- package/lib/typescript/components/ScatterChart.d.ts.map +1 -0
- package/lib/typescript/components/ScrollProgress.d.ts +24 -0
- package/lib/typescript/components/ScrollProgress.d.ts.map +1 -0
- package/lib/typescript/components/SectionDivider.d.ts +18 -0
- package/lib/typescript/components/SectionDivider.d.ts.map +1 -0
- package/lib/typescript/components/SectionHeader.d.ts +18 -0
- package/lib/typescript/components/SectionHeader.d.ts.map +1 -0
- package/lib/typescript/components/SegmentedTabs.d.ts +85 -0
- package/lib/typescript/components/SegmentedTabs.d.ts.map +1 -0
- package/lib/typescript/components/Select.d.ts +47 -0
- package/lib/typescript/components/Select.d.ts.map +1 -0
- package/lib/typescript/components/SessionBanner.d.ts +45 -0
- package/lib/typescript/components/SessionBanner.d.ts.map +1 -0
- package/lib/typescript/components/SessionChart.d.ts +130 -0
- package/lib/typescript/components/SessionChart.d.ts.map +1 -0
- package/lib/typescript/components/SetTable.d.ts +58 -0
- package/lib/typescript/components/SetTable.d.ts.map +1 -0
- package/lib/typescript/components/ShareCard.d.ts +40 -0
- package/lib/typescript/components/ShareCard.d.ts.map +1 -0
- package/lib/typescript/components/Sheet.d.ts +22 -0
- package/lib/typescript/components/Sheet.d.ts.map +1 -0
- package/lib/typescript/components/Skeleton.d.ts +9 -0
- package/lib/typescript/components/Skeleton.d.ts.map +1 -0
- package/lib/typescript/components/Slider.d.ts +27 -0
- package/lib/typescript/components/Slider.d.ts.map +1 -0
- package/lib/typescript/components/Sortable.d.ts +25 -0
- package/lib/typescript/components/Sortable.d.ts.map +1 -0
- package/lib/typescript/components/SourceChip.d.ts +24 -0
- package/lib/typescript/components/SourceChip.d.ts.map +1 -0
- package/lib/typescript/components/Sparkline.d.ts +28 -0
- package/lib/typescript/components/Sparkline.d.ts.map +1 -0
- package/lib/typescript/components/Spinner.d.ts +23 -0
- package/lib/typescript/components/Spinner.d.ts.map +1 -0
- package/lib/typescript/components/SplitButton.d.ts +21 -0
- package/lib/typescript/components/SplitButton.d.ts.map +1 -0
- package/lib/typescript/components/SsoButton.d.ts +10 -0
- package/lib/typescript/components/SsoButton.d.ts.map +1 -0
- package/lib/typescript/components/StackedBar.d.ts +32 -0
- package/lib/typescript/components/StackedBar.d.ts.map +1 -0
- package/lib/typescript/components/Stat.d.ts +33 -0
- package/lib/typescript/components/Stat.d.ts.map +1 -0
- package/lib/typescript/components/StatTile.d.ts +90 -0
- package/lib/typescript/components/StatTile.d.ts.map +1 -0
- package/lib/typescript/components/StateLabel.d.ts +12 -0
- package/lib/typescript/components/StateLabel.d.ts.map +1 -0
- package/lib/typescript/components/StatusDot.d.ts +13 -0
- package/lib/typescript/components/StatusDot.d.ts.map +1 -0
- package/lib/typescript/components/Stepper.d.ts +47 -0
- package/lib/typescript/components/Stepper.d.ts.map +1 -0
- package/lib/typescript/components/SupplementChart.d.ts +121 -0
- package/lib/typescript/components/SupplementChart.d.ts.map +1 -0
- package/lib/typescript/components/TabBar.d.ts +52 -0
- package/lib/typescript/components/TabBar.d.ts.map +1 -0
- package/lib/typescript/components/Table.d.ts +64 -0
- package/lib/typescript/components/Table.d.ts.map +1 -0
- package/lib/typescript/components/Tabs.d.ts +16 -0
- package/lib/typescript/components/Tabs.d.ts.map +1 -0
- package/lib/typescript/components/TagCloud.d.ts +31 -0
- package/lib/typescript/components/TagCloud.d.ts.map +1 -0
- package/lib/typescript/components/TagInput.d.ts +37 -0
- package/lib/typescript/components/TagInput.d.ts.map +1 -0
- package/lib/typescript/components/TemplateCard.d.ts +43 -0
- package/lib/typescript/components/TemplateCard.d.ts.map +1 -0
- package/lib/typescript/components/Timeline.d.ts +18 -0
- package/lib/typescript/components/Timeline.d.ts.map +1 -0
- package/lib/typescript/components/TimelineChart.d.ts +124 -0
- package/lib/typescript/components/TimelineChart.d.ts.map +1 -0
- package/lib/typescript/components/Toast.d.ts +18 -0
- package/lib/typescript/components/Toast.d.ts.map +1 -0
- package/lib/typescript/components/Toggle.d.ts +22 -0
- package/lib/typescript/components/Toggle.d.ts.map +1 -0
- package/lib/typescript/components/Toolbar.d.ts +48 -0
- package/lib/typescript/components/Toolbar.d.ts.map +1 -0
- package/lib/typescript/components/Tooltip.d.ts +16 -0
- package/lib/typescript/components/Tooltip.d.ts.map +1 -0
- package/lib/typescript/components/TypingIndicator.d.ts +16 -0
- package/lib/typescript/components/TypingIndicator.d.ts.map +1 -0
- package/lib/typescript/components/UnitChart.d.ts +84 -0
- package/lib/typescript/components/UnitChart.d.ts.map +1 -0
- package/lib/typescript/components/VersionBadge.d.ts +17 -0
- package/lib/typescript/components/VersionBadge.d.ts.map +1 -0
- package/lib/typescript/components/VideoThumbnail.d.ts +24 -0
- package/lib/typescript/components/VideoThumbnail.d.ts.map +1 -0
- package/lib/typescript/components/VitalsStrip.d.ts +53 -0
- package/lib/typescript/components/VitalsStrip.d.ts.map +1 -0
- package/lib/typescript/components/WatchComplication.d.ts +84 -0
- package/lib/typescript/components/WatchComplication.d.ts.map +1 -0
- package/lib/typescript/components/ZoneBar.d.ts +33 -0
- package/lib/typescript/components/ZoneBar.d.ts.map +1 -0
- package/lib/typescript/components/ZonePyramid.d.ts +51 -0
- package/lib/typescript/components/ZonePyramid.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +288 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/internal/optionalBlur.d.ts +13 -0
- package/lib/typescript/internal/optionalBlur.d.ts.map +1 -0
- package/lib/typescript/internal/optionalHaptics.d.ts +7 -0
- package/lib/typescript/internal/optionalHaptics.d.ts.map +1 -0
- package/lib/typescript/theme.d.ts +5 -0
- package/lib/typescript/theme.d.ts.map +1 -0
- package/package.json +92 -3
- package/src/components/Accordion.tsx +130 -0
- package/src/components/AchievementBadge.tsx +217 -0
- package/src/components/Alert.tsx +149 -0
- package/src/components/AreaChart.tsx +546 -0
- package/src/components/AuroraBackground.tsx +198 -0
- package/src/components/Avatar.tsx +164 -0
- package/src/components/AvatarStack.tsx +94 -0
- package/src/components/BackLink.tsx +64 -0
- package/src/components/Badge.tsx +91 -0
- package/src/components/BarChart.tsx +643 -0
- package/src/components/BarFill.tsx +37 -0
- package/src/components/BeeswarmChart.tsx +567 -0
- package/src/components/BiomarkerRange.tsx +571 -0
- package/src/components/BodyBattery.tsx +551 -0
- package/src/components/BrandMark.tsx +107 -0
- package/src/components/BulletChart.tsx +433 -0
- package/src/components/Button.tsx +127 -0
- package/src/components/CaffeineClock.tsx +472 -0
- package/src/components/Card.tsx +139 -0
- package/src/components/CharCounter.tsx +113 -0
- package/src/components/ChartState.tsx +473 -0
- package/src/components/Checkbox.tsx +175 -0
- package/src/components/Chip.tsx +132 -0
- package/src/components/ChoiceChip.tsx +119 -0
- package/src/components/CodeBlock.tsx +106 -0
- package/src/components/CodeField.tsx +137 -0
- package/src/components/ColorPicker.tsx +169 -0
- package/src/components/ComboChart.tsx +476 -0
- package/src/components/Combobox.tsx +141 -0
- package/src/components/CompareChart.tsx +651 -0
- package/src/components/CompositeChart.tsx +609 -0
- package/src/components/Countdown.tsx +155 -0
- package/src/components/CreditCardVisual.tsx +151 -0
- package/src/components/DateField.tsx +346 -0
- package/src/components/DayTimelineBlocks.tsx +270 -0
- package/src/components/DayWheel.tsx +483 -0
- package/src/components/DeltaPill.tsx +114 -0
- package/src/components/DistributionChart.tsx +739 -0
- package/src/components/Divider.tsx +61 -0
- package/src/components/DonutChart.tsx +399 -0
- package/src/components/DotsLoader.tsx +74 -0
- package/src/components/EffectAttributionLine.tsx +82 -0
- package/src/components/EmptyState.tsx +108 -0
- package/src/components/EngagementBar.tsx +140 -0
- package/src/components/EnvironmentChart.tsx +522 -0
- package/src/components/Eyebrow.tsx +22 -0
- package/src/components/FocalPointPicker.tsx +193 -0
- package/src/components/FollowButton.tsx +78 -0
- package/src/components/ForecastCallout.tsx +100 -0
- package/src/components/FormField.tsx +217 -0
- package/src/components/FunnelChart.tsx +310 -0
- package/src/components/Gauge.tsx +329 -0
- package/src/components/GradientText.tsx +114 -0
- package/src/components/Heatmap.tsx +459 -0
- package/src/components/Highlight.tsx +36 -0
- package/src/components/Hypnogram.tsx +751 -0
- package/src/components/Icon.tsx +680 -0
- package/src/components/Input.tsx +125 -0
- package/src/components/InsightCard.tsx +130 -0
- package/src/components/KeyValue.tsx +83 -0
- package/src/components/LeaderboardRow.tsx +156 -0
- package/src/components/LineChart.tsx +1529 -0
- package/src/components/ListRow.tsx +153 -0
- package/src/components/Menu.tsx +156 -0
- package/src/components/MessageBubble.tsx +118 -0
- package/src/components/MessageComposer.tsx +202 -0
- package/src/components/MetaphorWidget.tsx +848 -0
- package/src/components/Meter.tsx +186 -0
- package/src/components/MetricTile.tsx +247 -0
- package/src/components/MiniRing.tsx +17 -0
- package/src/components/Modal.tsx +129 -0
- package/src/components/MuscleDiagram.tsx +319 -0
- package/src/components/NoteField.tsx +68 -0
- package/src/components/NotificationRow.tsx +230 -0
- package/src/components/Pagination.tsx +188 -0
- package/src/components/PasswordInput.tsx +111 -0
- package/src/components/PasswordStrengthMeter.tsx +104 -0
- package/src/components/PendingPatternCard.tsx +163 -0
- package/src/components/PhaseWheel.tsx +781 -0
- package/src/components/PkChart.tsx +539 -0
- package/src/components/Popover.tsx +206 -0
- package/src/components/PrBadge.tsx +51 -0
- package/src/components/PrCard.tsx +132 -0
- package/src/components/PricingTierCard.tsx +234 -0
- package/src/components/ProGate.tsx +194 -0
- package/src/components/ProgressBar.tsx +439 -0
- package/src/components/Pulse.tsx +17 -0
- package/src/components/QRCode.tsx +555 -0
- package/src/components/RadarChart.tsx +538 -0
- package/src/components/RangeBar.tsx +206 -0
- package/src/components/ReauthDialog.tsx +282 -0
- package/src/components/RestTimer.tsx +193 -0
- package/src/components/RichText.tsx +71 -0
- package/src/components/RichTextEditor.tsx +207 -0
- package/src/components/Ring.tsx +269 -0
- package/src/components/RoseChart.tsx +375 -0
- package/src/components/SankeyChart.tsx +687 -0
- package/src/components/ScatterChart.tsx +498 -0
- package/src/components/ScrollProgress.tsx +61 -0
- package/src/components/SectionDivider.tsx +51 -0
- package/src/components/SectionHeader.tsx +41 -0
- package/src/components/SegmentedTabs.tsx +389 -0
- package/src/components/Select.tsx +335 -0
- package/src/components/SessionBanner.tsx +195 -0
- package/src/components/SessionChart.tsx +917 -0
- package/src/components/SetTable.tsx +341 -0
- package/src/components/ShareCard.tsx +145 -0
- package/src/components/Sheet.tsx +212 -0
- package/src/components/Skeleton.tsx +13 -0
- package/src/components/Slider.tsx +187 -0
- package/src/components/Sortable.tsx +263 -0
- package/src/components/SourceChip.tsx +95 -0
- package/src/components/Sparkline.tsx +108 -0
- package/src/components/Spinner.tsx +128 -0
- package/src/components/SplitButton.tsx +111 -0
- package/src/components/SsoButton.tsx +93 -0
- package/src/components/StackedBar.tsx +138 -0
- package/src/components/Stat.tsx +118 -0
- package/src/components/StatTile.tsx +581 -0
- package/src/components/StateLabel.tsx +62 -0
- package/src/components/StatusDot.tsx +58 -0
- package/src/components/Stepper.tsx +359 -0
- package/src/components/SupplementChart.tsx +1044 -0
- package/src/components/TabBar.tsx +297 -0
- package/src/components/Table.tsx +448 -0
- package/src/components/Tabs.tsx +85 -0
- package/src/components/TagCloud.tsx +111 -0
- package/src/components/TagInput.tsx +325 -0
- package/src/components/TemplateCard.tsx +181 -0
- package/src/components/Timeline.tsx +132 -0
- package/src/components/TimelineChart.tsx +1035 -0
- package/src/components/Toast.tsx +138 -0
- package/src/components/Toggle.tsx +155 -0
- package/src/components/Toolbar.tsx +292 -0
- package/src/components/Tooltip.tsx +193 -0
- package/src/components/TypingIndicator.tsx +106 -0
- package/src/components/UnitChart.tsx +519 -0
- package/src/components/VersionBadge.tsx +129 -0
- package/src/components/VideoThumbnail.tsx +140 -0
- package/src/components/VitalsStrip.tsx +636 -0
- package/src/components/WatchComplication.tsx +536 -0
- package/src/components/ZoneBar.tsx +148 -0
- package/src/components/ZonePyramid.tsx +405 -0
- package/src/components/__tests__/Chip.test.tsx +33 -0
- package/src/components/__tests__/CodeInput.test.tsx +62 -0
- package/src/components/__tests__/DeltaPill.test.tsx +41 -0
- package/src/components/__tests__/GradientText.test.tsx +69 -0
- package/src/components/__tests__/Icon.test.tsx +61 -0
- package/src/components/__tests__/Input.test.tsx +30 -0
- package/src/components/__tests__/LineChart.test.tsx +62 -0
- package/src/components/__tests__/ListRow.test.tsx +28 -0
- package/src/components/__tests__/PkChart.test.tsx +47 -0
- package/src/components/__tests__/PrBadge.test.tsx +32 -0
- package/src/components/__tests__/PrCard.test.tsx +49 -0
- package/src/components/__tests__/RestTimer.test.tsx +94 -0
- package/src/components/__tests__/SegmentedTabs.test.tsx +58 -0
- package/src/components/__tests__/SessionBanner.test.tsx +96 -0
- package/src/components/__tests__/SetTable.test.tsx +105 -0
- package/src/components/__tests__/SourceChip.test.tsx +82 -0
- package/src/components/__tests__/SupplementChart.test.tsx +71 -0
- package/src/components/__tests__/Table.test.tsx +81 -0
- package/src/components/__tests__/TemplateCard.test.tsx +85 -0
- package/src/components/__tests__/Toggle.test.tsx +49 -0
- package/src/components/__tests__/UnitChart.test.tsx +44 -0
- package/src/components/__tests__/markup.ts +142 -0
- package/src/components/__tests__/react-dom-server.d.ts +11 -0
- package/src/index.ts +320 -0
- package/src/internal/optionalBlur.ts +37 -0
- package/src/internal/optionalHaptics.ts +38 -0
- package/src/theme.ts +14 -0
- package/README.md +0 -3
|
@@ -0,0 +1,848 @@
|
|
|
1
|
+
import { useId, type ReactNode } from 'react';
|
|
2
|
+
import { View, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import Svg, {
|
|
4
|
+
Circle,
|
|
5
|
+
ClipPath,
|
|
6
|
+
FeGaussianBlur,
|
|
7
|
+
Filter,
|
|
8
|
+
Defs,
|
|
9
|
+
G,
|
|
10
|
+
Line,
|
|
11
|
+
LinearGradient,
|
|
12
|
+
Path,
|
|
13
|
+
Rect,
|
|
14
|
+
Stop,
|
|
15
|
+
Text as SvgText,
|
|
16
|
+
} from 'react-native-svg';
|
|
17
|
+
import { colors, fonts } from '@lockin90/tokens';
|
|
18
|
+
|
|
19
|
+
/* MetaphorWidget — the catalog metaphor-widget family (MT-01…MT-12,
|
|
20
|
+
lockin90-design/charts/metaphor-charts.html): objects that tell the story —
|
|
21
|
+
thermometers, hourglasses, gardens, mountains, bottles, plates and breath
|
|
22
|
+
orbs, all drawn in the fixed 320×150 catalog viewBox. Native twin of
|
|
23
|
+
`@lockin90/ui` MetaphorWidget — same prop API + geometry; SMIL loops (YOU
|
|
24
|
+
pulse, breath orb) render static mid-states here and every `shine` glow is
|
|
25
|
+
a real Gaussian-blurred duplicate shape (Fabric-native SVG filters in
|
|
26
|
+
react-native-svg 15). */
|
|
27
|
+
|
|
28
|
+
/** Catalog variant names (`lockin90-design/charts/metaphor-charts.html`). */
|
|
29
|
+
export type MetaphorWidgetVariant =
|
|
30
|
+
| 'thermometer' /* MT-01 — glass tube + bulb, liquid column = value */
|
|
31
|
+
| 'fasting-hourglass' /* MT-03 — sand remaining/elapsed + falling stream */
|
|
32
|
+
| 'habit-garden' /* MT-05 — plants grow with streaks, wilt when broken */
|
|
33
|
+
| 'plant-stages' /* MT-06 — the garden legend: 5 growth stages in a row */
|
|
34
|
+
| 'mountain-route' /* MT-07 — mountain profile + camp flags + YOU pulse */
|
|
35
|
+
| 'hydration-bottle' /* MT-09 — bottle fills UP: wave + bubbles + glass ticks */
|
|
36
|
+
| 'meal-plates' /* MT-10 — day strip of mini macro-donut plates */
|
|
37
|
+
| 'breath-pacer' /* MT-11 — orb shown static mid-breath (web animates) */
|
|
38
|
+
| 'breath-session'; /* MT-12 — breaths/min curve into the shaded calm zone */
|
|
39
|
+
|
|
40
|
+
/** One plant in the `habit-garden` (MT-05). */
|
|
41
|
+
export interface MetaphorHabit {
|
|
42
|
+
/** name under the plant (e.g. 'MEDITATE') */
|
|
43
|
+
name: string;
|
|
44
|
+
/** streak length in weeks — growth stage is `min(4, weeks)`; `0` = wilted sprout */
|
|
45
|
+
weeks: number;
|
|
46
|
+
/** plant hue (token; wilted/broken habits pass `colors.zoneLow`) */
|
|
47
|
+
color?: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** One plate on the `meal-plates` day strip (MT-10). */
|
|
51
|
+
export interface MetaphorMeal {
|
|
52
|
+
/** time caption under the plate (e.g. '12:30') */
|
|
53
|
+
time: string;
|
|
54
|
+
/** position along the day strip, 0–1 */
|
|
55
|
+
at: number;
|
|
56
|
+
/** macro shares `[protein, carbs, fat]`, fractions summing to 1 */
|
|
57
|
+
macros: [number, number, number];
|
|
58
|
+
/** kcal readout above the plate (number or preformatted string) */
|
|
59
|
+
kcal: string | number;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** One flag on the `mountain-route` profile (MT-07). */
|
|
63
|
+
export interface MetaphorCamp {
|
|
64
|
+
/** position along the route, 0–1 */
|
|
65
|
+
at: number;
|
|
66
|
+
/** flag chip text (e.g. 'CAMP 1 · D30') */
|
|
67
|
+
label: string;
|
|
68
|
+
/** lime summit flag instead of the cyan camp flag */
|
|
69
|
+
summit?: boolean;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface MetaphorWidgetProps {
|
|
73
|
+
/** chart form (default `'thermometer'`, MT-01) */
|
|
74
|
+
variant?: MetaphorWidgetVariant;
|
|
75
|
+
/** `thermometer` liquid 0–1 (default 0.62) · `hydration-bottle` fill 0–1 (default 0.6) */
|
|
76
|
+
level?: number;
|
|
77
|
+
/** `fasting-hourglass` — sand remaining 0–1 (default 0.35) */
|
|
78
|
+
remaining?: number;
|
|
79
|
+
/** big readout next to the vessel (per-variant catalog default) */
|
|
80
|
+
reading?: string;
|
|
81
|
+
/** dim line under the reading (per-variant catalog default) */
|
|
82
|
+
sub?: string;
|
|
83
|
+
/** chip-pill text (per-variant catalog default; `''` hides) */
|
|
84
|
+
pill?: string;
|
|
85
|
+
/** pill tint (per-variant catalog default) */
|
|
86
|
+
pillColor?: string;
|
|
87
|
+
/** `thermometer` — TARGET tick 0–1 on the tube scale (default none) */
|
|
88
|
+
target?: number | null;
|
|
89
|
+
/** `thermometer` — label next to the target tick */
|
|
90
|
+
targetLabel?: string;
|
|
91
|
+
/** `hydration-bottle` — glass tick count (default 8) */
|
|
92
|
+
glasses?: number;
|
|
93
|
+
/** `habit-garden` — the plants (default: the catalog's 6 habits) */
|
|
94
|
+
habits?: MetaphorHabit[];
|
|
95
|
+
/** `plant-stages` — stage captions, sprout → bloom (default catalog 5) */
|
|
96
|
+
stages?: string[];
|
|
97
|
+
/** `mountain-route` — profile points `[x 0–1, y 0–1]`, left → summit */
|
|
98
|
+
route?: [number, number][];
|
|
99
|
+
/** `mountain-route` — camp/summit flags on the profile */
|
|
100
|
+
camps?: MetaphorCamp[];
|
|
101
|
+
/** `mountain-route` — YOU position along the route 0–1 (default 0.62) */
|
|
102
|
+
progress?: number;
|
|
103
|
+
/** `mountain-route` — YOU chip text (default 'YOU · DAY 56') */
|
|
104
|
+
progressLabel?: string;
|
|
105
|
+
/** `meal-plates` — the plates (default: the catalog's 4 meals) */
|
|
106
|
+
meals?: MetaphorMeal[];
|
|
107
|
+
/** `meal-plates` — show the FAT/CARB/PRO legend (default true) */
|
|
108
|
+
legend?: boolean;
|
|
109
|
+
/** `breath-pacer` — `[inhale, hold, exhale]` seconds (default `[4, 7, 8]`) */
|
|
110
|
+
pattern?: [number, number, number];
|
|
111
|
+
/** `breath-pacer` — orb label (default 'BREATHE') */
|
|
112
|
+
centerLabel?: string;
|
|
113
|
+
/** `breath-session` — breaths-per-minute series (default: the catalog's 14→7) */
|
|
114
|
+
bpm?: number[];
|
|
115
|
+
/** `breath-session` — calm-zone threshold in breaths/min (default 8) */
|
|
116
|
+
calmThreshold?: number;
|
|
117
|
+
/** `breath-session` — index of the calm-reached dot (default 7; `null` hides) */
|
|
118
|
+
markerAt?: number | null;
|
|
119
|
+
/** `breath-session` — marker chip text (default 'CALM REACHED · 6:40') */
|
|
120
|
+
markerLabel?: string;
|
|
121
|
+
/** `breath-session` — x-axis captions, spread evenly (default 0:00/5:00/10:00) */
|
|
122
|
+
axisLabels?: string[];
|
|
123
|
+
/** faint note line — garden top-center / pacer bottom / session top-right
|
|
124
|
+
* legend (per-variant catalog default, some derived from the data) */
|
|
125
|
+
caption?: string;
|
|
126
|
+
/** faint mono caption at the top-left (per-variant catalog default) */
|
|
127
|
+
title?: string;
|
|
128
|
+
/** glow underlay — Gaussian-blurred duplicate shapes on native */
|
|
129
|
+
shine?: boolean;
|
|
130
|
+
/** rendered width in px — the 320×150 viewBox scales to fit */
|
|
131
|
+
width?: number;
|
|
132
|
+
/** rendered height in px */
|
|
133
|
+
height?: number;
|
|
134
|
+
/** optional wrapper style */
|
|
135
|
+
style?: StyleProp<ViewStyle>;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* --------------------------------------------------------------- geometry
|
|
139
|
+
* The catalog canvas: 320×150, pad l10 r12 t16 b14 (catalog.js). */
|
|
140
|
+
const W = 320;
|
|
141
|
+
const H = 150;
|
|
142
|
+
const P = { l: 10, r: 12, t: 16, b: 14 };
|
|
143
|
+
const plotW = W - P.l - P.r;
|
|
144
|
+
const plotH = H - P.t - P.b;
|
|
145
|
+
|
|
146
|
+
/** y for a 0–1 value in the plot box (catalog `Y`) */
|
|
147
|
+
function Yv(v: number): number {
|
|
148
|
+
return P.t + (1 - v) * plotH;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/** open arc — 0° at 12 o'clock, clockwise (catalog `arcPath`) */
|
|
152
|
+
function arcPath(cx: number, cy: number, r: number, a0: number, a1: number): string {
|
|
153
|
+
const pol = (aDeg: number) => {
|
|
154
|
+
const a = ((aDeg - 90) * Math.PI) / 180;
|
|
155
|
+
return { x: cx + r * Math.cos(a), y: cy + r * Math.sin(a) };
|
|
156
|
+
};
|
|
157
|
+
const p0 = pol(a0);
|
|
158
|
+
const p1 = pol(a1);
|
|
159
|
+
const lg = (a1 - a0) % 360 > 180 ? 1 : 0;
|
|
160
|
+
return `M${p0.x.toFixed(1)} ${p0.y.toFixed(1)}A${r} ${r} 0 ${lg} 1 ${p1.x.toFixed(1)} ${p1.y.toFixed(1)}`;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/** Fritsch–Carlson monotone cubic — the catalog's `smoothPath` (no overshoot). */
|
|
164
|
+
function smoothPath(p: { x: number; y: number }[]): string {
|
|
165
|
+
const n = p.length;
|
|
166
|
+
if (n < 3) return p.map((q, i) => `${i ? 'L' : 'M'}${q.x.toFixed(1)} ${q.y.toFixed(1)}`).join('');
|
|
167
|
+
const dx: number[] = [];
|
|
168
|
+
const m: number[] = [];
|
|
169
|
+
const tg: number[] = [];
|
|
170
|
+
for (let i = 0; i < n - 1; i++) {
|
|
171
|
+
dx[i] = p[i + 1]!.x - p[i]!.x;
|
|
172
|
+
m[i] = (p[i + 1]!.y - p[i]!.y) / dx[i]!;
|
|
173
|
+
}
|
|
174
|
+
tg[0] = m[0]!;
|
|
175
|
+
tg[n - 1] = m[n - 2]!;
|
|
176
|
+
for (let i = 1; i < n - 1; i++) tg[i] = m[i - 1]! * m[i]! <= 0 ? 0 : (m[i - 1]! + m[i]!) / 2;
|
|
177
|
+
for (let i = 0; i < n - 1; i++) {
|
|
178
|
+
if (m[i] === 0) {
|
|
179
|
+
tg[i] = 0;
|
|
180
|
+
tg[i + 1] = 0;
|
|
181
|
+
} else {
|
|
182
|
+
const a = tg[i]! / m[i]!;
|
|
183
|
+
const b = tg[i + 1]! / m[i]!;
|
|
184
|
+
const s = a * a + b * b;
|
|
185
|
+
if (s > 9) {
|
|
186
|
+
const tau = 3 / Math.sqrt(s);
|
|
187
|
+
tg[i] = tau * a * m[i]!;
|
|
188
|
+
tg[i + 1] = tau * b * m[i]!;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
let d = `M${p[0]!.x.toFixed(1)} ${p[0]!.y.toFixed(1)}`;
|
|
193
|
+
for (let i = 0; i < n - 1; i++) {
|
|
194
|
+
const h = dx[i]! / 3;
|
|
195
|
+
d += `C${(p[i]!.x + h).toFixed(1)} ${(p[i]!.y + h * tg[i]!).toFixed(1)} ${(p[i + 1]!.x - h).toFixed(1)} ${(p[i + 1]!.y - h * tg[i + 1]!).toFixed(1)} ${p[i + 1]!.x.toFixed(1)} ${p[i + 1]!.y.toFixed(1)}`;
|
|
196
|
+
}
|
|
197
|
+
return d;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/** piecewise-linear y (0–1) along the route at x (0–1) */
|
|
201
|
+
function routeY(route: [number, number][], x: number): number {
|
|
202
|
+
if (route.length === 0) return 0;
|
|
203
|
+
if (x <= route[0]![0]) return route[0]![1];
|
|
204
|
+
for (let i = 1; i < route.length; i++) {
|
|
205
|
+
if (x <= route[i]![0]) {
|
|
206
|
+
const [x0, y0] = route[i - 1]!;
|
|
207
|
+
const [x1, y1] = route[i]!;
|
|
208
|
+
const t = x1 === x0 ? 0 : (x - x0) / (x1 - x0);
|
|
209
|
+
return y0 + t * (y1 - y0);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
return route[route.length - 1]![1];
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/** hex color + 0–1 alpha → #RRGGBBAA (native's rgba() substitute) */
|
|
216
|
+
function alpha(hex: string, a: number): string {
|
|
217
|
+
return `${hex}${Math.round(Math.max(0, Math.min(1, a)) * 255)
|
|
218
|
+
.toString(16)
|
|
219
|
+
.padStart(2, '0')}`;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/* ----------------------------------------------------- catalog defaults */
|
|
223
|
+
|
|
224
|
+
const DEFAULT_HABITS: MetaphorHabit[] = [
|
|
225
|
+
{ name: 'MEDITATE', weeks: 4, color: colors.mint },
|
|
226
|
+
{ name: 'LIFT', weeks: 3, color: colors.cyan },
|
|
227
|
+
{ name: 'SUNLIGHT', weeks: 5, color: colors.lime },
|
|
228
|
+
{ name: 'NO-CAFF', weeks: 1, color: colors.zoneMid },
|
|
229
|
+
{ name: 'JOURNAL', weeks: 2, color: colors.violet },
|
|
230
|
+
{ name: 'WALK', weeks: 0, color: colors.zoneLow },
|
|
231
|
+
];
|
|
232
|
+
|
|
233
|
+
const DEFAULT_STAGES = ['SPROUT', 'WK 1', 'WK 2', 'WK 4', 'WK 8+'];
|
|
234
|
+
|
|
235
|
+
const DEFAULT_ROUTE: [number, number][] = [
|
|
236
|
+
[0, 0.1],
|
|
237
|
+
[0.14, 0.22],
|
|
238
|
+
[0.3, 0.34],
|
|
239
|
+
[0.42, 0.3],
|
|
240
|
+
[0.58, 0.55],
|
|
241
|
+
[0.72, 0.68],
|
|
242
|
+
[0.86, 0.8],
|
|
243
|
+
[1, 0.95],
|
|
244
|
+
];
|
|
245
|
+
|
|
246
|
+
const DEFAULT_CAMPS: MetaphorCamp[] = [
|
|
247
|
+
{ at: 0.3, label: 'CAMP 1 · D30' },
|
|
248
|
+
{ at: 0.58, label: 'CAMP 2 · D60' },
|
|
249
|
+
{ at: 1, label: 'SUMMIT · D90', summit: true },
|
|
250
|
+
];
|
|
251
|
+
|
|
252
|
+
const DEFAULT_MEALS: MetaphorMeal[] = [
|
|
253
|
+
{ time: '7:40', at: 0.1, macros: [0.4, 0.35, 0.25], kcal: '420' },
|
|
254
|
+
{ time: '12:30', at: 0.42, macros: [0.45, 0.3, 0.25], kcal: '680' },
|
|
255
|
+
{ time: '16:00', at: 0.62, macros: [0.3, 0.5, 0.2], kcal: '210' },
|
|
256
|
+
{ time: '19:30', at: 0.86, macros: [0.42, 0.3, 0.28], kcal: '740' },
|
|
257
|
+
];
|
|
258
|
+
|
|
259
|
+
/** the catalog's MT-12 session curve — breaths/min slowing 14 → 7 */
|
|
260
|
+
const DEFAULT_BPM = [14, 13.5, 12.5, 11.5, 10.5, 9.5, 8.5, 8, 7.5, 7.2, 7, 7];
|
|
261
|
+
|
|
262
|
+
const DEFAULT_TITLES: Record<MetaphorWidgetVariant, string> = {
|
|
263
|
+
thermometer: 'STRAIN METER',
|
|
264
|
+
'fasting-hourglass': 'FASTING',
|
|
265
|
+
'habit-garden': 'YOUR GARDEN · 6 HABITS',
|
|
266
|
+
'plant-stages': 'HOW PLANTS GROW',
|
|
267
|
+
'mountain-route': '90-DAY ASCENT',
|
|
268
|
+
'hydration-bottle': 'WATER · TODAY',
|
|
269
|
+
'meal-plates': 'MEALS · TODAY',
|
|
270
|
+
'breath-pacer': 'BREATHE · 4-7-8',
|
|
271
|
+
'breath-session': 'SESSION · 10 MIN',
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
/* macro colors — [protein, carbs, fat], catalog `cols` + legend order */
|
|
275
|
+
const MACRO_COLORS = [colors.mint, colors.cyan, colors.violet];
|
|
276
|
+
const MACRO_LEGEND: [string, string][] = [
|
|
277
|
+
['FAT', colors.violet],
|
|
278
|
+
['CARB', colors.cyan],
|
|
279
|
+
['PRO', colors.mint],
|
|
280
|
+
];
|
|
281
|
+
|
|
282
|
+
function Label({
|
|
283
|
+
x,
|
|
284
|
+
y,
|
|
285
|
+
text,
|
|
286
|
+
color = colors.textFaint,
|
|
287
|
+
anchor = 'middle',
|
|
288
|
+
}: {
|
|
289
|
+
x: number;
|
|
290
|
+
y: number;
|
|
291
|
+
text: string;
|
|
292
|
+
color?: string;
|
|
293
|
+
anchor?: 'start' | 'middle' | 'end';
|
|
294
|
+
}) {
|
|
295
|
+
return (
|
|
296
|
+
<SvgText x={x} y={y} fill={color} fontSize={8.5} textAnchor={anchor} fontFamily={fonts.mono} letterSpacing={0.5}>
|
|
297
|
+
{text}
|
|
298
|
+
</SvgText>
|
|
299
|
+
);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/** chip-pill label (dark rect + tinted hairline) — `y` = pill center */
|
|
303
|
+
function Tag({
|
|
304
|
+
x,
|
|
305
|
+
y,
|
|
306
|
+
text,
|
|
307
|
+
color,
|
|
308
|
+
anchor = 'middle',
|
|
309
|
+
}: {
|
|
310
|
+
x: number;
|
|
311
|
+
y: number;
|
|
312
|
+
text: string;
|
|
313
|
+
color: string;
|
|
314
|
+
anchor?: 'start' | 'middle' | 'end';
|
|
315
|
+
}) {
|
|
316
|
+
const w = text.length * 5.35 + 12;
|
|
317
|
+
let xa = anchor === 'end' ? x - w : anchor === 'start' ? x : x - w / 2;
|
|
318
|
+
xa = Math.max(P.l - 4, Math.min(xa, W - P.r - w + 4));
|
|
319
|
+
return (
|
|
320
|
+
<G>
|
|
321
|
+
<Rect
|
|
322
|
+
x={xa.toFixed(1)}
|
|
323
|
+
y={(y - 6.5).toFixed(1)}
|
|
324
|
+
width={w.toFixed(1)}
|
|
325
|
+
height={13}
|
|
326
|
+
rx={6.5}
|
|
327
|
+
fill="rgba(8,10,18,0.78)"
|
|
328
|
+
stroke={color}
|
|
329
|
+
strokeOpacity={0.35}
|
|
330
|
+
strokeWidth={0.8}
|
|
331
|
+
/>
|
|
332
|
+
<SvgText
|
|
333
|
+
x={(xa + w / 2).toFixed(1)}
|
|
334
|
+
y={(y + 2.8).toFixed(1)}
|
|
335
|
+
fill={color}
|
|
336
|
+
fontSize={8}
|
|
337
|
+
textAnchor="middle"
|
|
338
|
+
fontFamily={fonts.mono}
|
|
339
|
+
letterSpacing={0.4}
|
|
340
|
+
>
|
|
341
|
+
{text}
|
|
342
|
+
</SvgText>
|
|
343
|
+
</G>
|
|
344
|
+
);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/** big display readout next to a vessel (thermo 26px / hourglass + bottle 24px) */
|
|
348
|
+
function Reading({ x, y, text, size, color }: { x: number; y: number; text: string; size: number; color: string }) {
|
|
349
|
+
return (
|
|
350
|
+
<SvgText x={x} y={y} fill={color} fontSize={size} fontWeight="700" fontFamily={fonts.display}>
|
|
351
|
+
{text}
|
|
352
|
+
</SvgText>
|
|
353
|
+
);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/** one garden plant — stage 0 (sprout dot) … 4 (bloom), catalog `plant()`.
|
|
357
|
+
* The web bloom `drop-shadow` is a wider faint duplicate circle here. */
|
|
358
|
+
function Plant({ x, baseY, stage, color }: { x: number; baseY: number; stage: number; color: string }) {
|
|
359
|
+
const mound = <Path d={`M${x - 9} ${baseY}q9 8 18 0z`} fill="rgba(255,255,255,0.12)" />;
|
|
360
|
+
if (stage === 0) {
|
|
361
|
+
return (
|
|
362
|
+
<G>
|
|
363
|
+
{mound}
|
|
364
|
+
<Circle cx={x} cy={baseY - 3} r={2} fill={color} opacity={0.7} />
|
|
365
|
+
</G>
|
|
366
|
+
);
|
|
367
|
+
}
|
|
368
|
+
const hgt = 8 + stage * 8;
|
|
369
|
+
const leaves = [];
|
|
370
|
+
for (let li = 1; li <= Math.min(3, stage); li++) {
|
|
371
|
+
const ly = baseY - (hgt * li) / (stage + 1);
|
|
372
|
+
const dir = li % 2 ? -1 : 1;
|
|
373
|
+
leaves.push(
|
|
374
|
+
<Path
|
|
375
|
+
key={li}
|
|
376
|
+
d={`M${x} ${ly.toFixed(1)}q${7 * dir} -2 ${9 * dir} -7q${-7 * dir} 0 ${-9 * dir} 7z`}
|
|
377
|
+
fill={color}
|
|
378
|
+
opacity={0.85}
|
|
379
|
+
/>,
|
|
380
|
+
);
|
|
381
|
+
}
|
|
382
|
+
return (
|
|
383
|
+
<G>
|
|
384
|
+
{mound}
|
|
385
|
+
<Path d={`M${x} ${baseY}q2 ${-hgt / 2} 0 ${-hgt}`} fill="none" stroke={color} strokeWidth={2} strokeLinecap="round" />
|
|
386
|
+
{leaves}
|
|
387
|
+
{stage >= 4 ? (
|
|
388
|
+
<>
|
|
389
|
+
<Circle cx={x} cy={baseY - hgt - 3} r={5} fill={colors.lime} opacity={0.35} />
|
|
390
|
+
<Circle cx={x} cy={baseY - hgt - 3} r={3.2} fill={colors.lime} />
|
|
391
|
+
</>
|
|
392
|
+
) : null}
|
|
393
|
+
</G>
|
|
394
|
+
);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/** pulse marker — static dot + faint halo ring (no SMIL/JS animation on
|
|
398
|
+
* native; the web expanding ring is a documented substrate diff) */
|
|
399
|
+
function PulseDot({ x, y, color }: { x: number; y: number; color: string }) {
|
|
400
|
+
return (
|
|
401
|
+
<G>
|
|
402
|
+
<Circle cx={x} cy={y} r={7} fill="none" stroke={color} strokeWidth={1.4} strokeOpacity={0.4} />
|
|
403
|
+
<Circle cx={x} cy={y} r={3.6} fill={color} />
|
|
404
|
+
</G>
|
|
405
|
+
);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* MetaphorWidget — the kit's object-metaphor widget (catalog family
|
|
410
|
+
* `metaphor-charts`, MT-01…MT-12): a value drawn as the thing it measures —
|
|
411
|
+
* thermometer, hourglass, garden, mountain, bottle, plates, breath orb.
|
|
412
|
+
* Same prop API + geometry as the web twin; the breath-pacer orb renders
|
|
413
|
+
* static mid-size (no SMIL loop) and the YOU pulse is a static dot + halo.
|
|
414
|
+
* Values are 0–1; geometry is the catalog's 320×150 canvas; tokens only.
|
|
415
|
+
*/
|
|
416
|
+
export function MetaphorWidget({
|
|
417
|
+
variant = 'thermometer',
|
|
418
|
+
level,
|
|
419
|
+
remaining = 0.35,
|
|
420
|
+
reading,
|
|
421
|
+
sub,
|
|
422
|
+
pill,
|
|
423
|
+
pillColor,
|
|
424
|
+
target = null,
|
|
425
|
+
targetLabel = 'TARGET',
|
|
426
|
+
glasses = 8,
|
|
427
|
+
habits = DEFAULT_HABITS,
|
|
428
|
+
stages = DEFAULT_STAGES,
|
|
429
|
+
route = DEFAULT_ROUTE,
|
|
430
|
+
camps = DEFAULT_CAMPS,
|
|
431
|
+
progress = 0.62,
|
|
432
|
+
progressLabel = 'YOU · DAY 56',
|
|
433
|
+
meals = DEFAULT_MEALS,
|
|
434
|
+
legend = true,
|
|
435
|
+
pattern = [4, 7, 8],
|
|
436
|
+
centerLabel = 'BREATHE',
|
|
437
|
+
bpm = DEFAULT_BPM,
|
|
438
|
+
calmThreshold = 8,
|
|
439
|
+
markerAt = 7,
|
|
440
|
+
markerLabel = 'CALM REACHED · 6:40',
|
|
441
|
+
axisLabels = ['0:00', '5:00', '10:00'],
|
|
442
|
+
caption,
|
|
443
|
+
title,
|
|
444
|
+
shine = false,
|
|
445
|
+
width = W,
|
|
446
|
+
height = H,
|
|
447
|
+
style,
|
|
448
|
+
}: MetaphorWidgetProps) {
|
|
449
|
+
const uid = useId().replace(/[^a-zA-Z0-9]/g, '');
|
|
450
|
+
const blurId = `lk-metaphor-blur-${uid}`;
|
|
451
|
+
let heading = title ?? DEFAULT_TITLES[variant];
|
|
452
|
+
|
|
453
|
+
let accessibilityLabel: string;
|
|
454
|
+
let content: ReactNode;
|
|
455
|
+
|
|
456
|
+
if (variant === 'thermometer') {
|
|
457
|
+
/* ------------------------------------------------- MT-01 thermometer */
|
|
458
|
+
const lvl = Math.max(0, Math.min(1, level ?? 0.62));
|
|
459
|
+
const col = lvl >= 0.72 ? colors.zoneLow : lvl >= 0.4 ? colors.zoneMid : colors.cyan;
|
|
460
|
+
const x = 86;
|
|
461
|
+
const yTop = P.t + 12;
|
|
462
|
+
const hgt = 84;
|
|
463
|
+
const tubeW = 12;
|
|
464
|
+
const bulbY = yTop + hgt + 10;
|
|
465
|
+
const lh = lvl * (hgt - 6);
|
|
466
|
+
const read = reading ?? '14.2';
|
|
467
|
+
const pillText = pill ?? 'APPROACHING LIMIT';
|
|
468
|
+
accessibilityLabel = `${heading}: ${read}, level ${Math.round(lvl * 100)}%`;
|
|
469
|
+
content = (
|
|
470
|
+
<>
|
|
471
|
+
<Rect
|
|
472
|
+
x={x - tubeW / 2}
|
|
473
|
+
y={yTop}
|
|
474
|
+
width={tubeW}
|
|
475
|
+
height={hgt + 8}
|
|
476
|
+
rx={tubeW / 2}
|
|
477
|
+
fill="rgba(255,255,255,0.05)"
|
|
478
|
+
stroke="rgba(255,255,255,0.25)"
|
|
479
|
+
strokeWidth={1.4}
|
|
480
|
+
/>
|
|
481
|
+
<Circle cx={x} cy={bulbY} r={11} fill="rgba(255,255,255,0.05)" stroke="rgba(255,255,255,0.25)" strokeWidth={1.4} />
|
|
482
|
+
{/* bulb glow — a Gaussian-blurred duplicate circle (the web bulb's
|
|
483
|
+
`blur(5px)` underlay) */}
|
|
484
|
+
{shine ? <Circle cx={x} cy={bulbY} r={9} fill={col} opacity={0.6} filter={`url(#${blurId})`} /> : null}
|
|
485
|
+
<Circle cx={x} cy={bulbY} r={8} fill={col} opacity={0.95} />
|
|
486
|
+
<Rect
|
|
487
|
+
x={x - 3.5}
|
|
488
|
+
y={(yTop + hgt - lh).toFixed(1)}
|
|
489
|
+
width={7}
|
|
490
|
+
height={(lh + 14).toFixed(1)}
|
|
491
|
+
rx={3.5}
|
|
492
|
+
fill={col}
|
|
493
|
+
opacity={0.95}
|
|
494
|
+
/>
|
|
495
|
+
{Array.from({ length: 5 }, (_, t) => {
|
|
496
|
+
const ty = yTop + 4 + ((hgt - 8) * t) / 4;
|
|
497
|
+
return (
|
|
498
|
+
<Line
|
|
499
|
+
key={t}
|
|
500
|
+
x1={x + tubeW / 2 + 3}
|
|
501
|
+
x2={x + tubeW / 2 + 8}
|
|
502
|
+
y1={ty}
|
|
503
|
+
y2={ty}
|
|
504
|
+
stroke="rgba(255,255,255,0.25)"
|
|
505
|
+
strokeWidth={1}
|
|
506
|
+
/>
|
|
507
|
+
);
|
|
508
|
+
})}
|
|
509
|
+
{target != null ? (
|
|
510
|
+
<G>
|
|
511
|
+
<Line
|
|
512
|
+
x1={100}
|
|
513
|
+
x2={112}
|
|
514
|
+
y1={P.t + 16 + (hgt - 8) * (1 - target)}
|
|
515
|
+
y2={P.t + 16 + (hgt - 8) * (1 - target)}
|
|
516
|
+
stroke={colors.zoneLow}
|
|
517
|
+
strokeWidth={1.4}
|
|
518
|
+
/>
|
|
519
|
+
<Label x={116} y={P.t + 16 + (hgt - 8) * (1 - target) + 3} text={targetLabel} color={colors.zoneLow} anchor="start" />
|
|
520
|
+
</G>
|
|
521
|
+
) : null}
|
|
522
|
+
<Reading x={170} y={78} text={read} size={26} color={col} />
|
|
523
|
+
<Label x={170} y={94} text={sub ?? 'STRAIN · DAY LOAD'} color={colors.textDim} anchor="start" />
|
|
524
|
+
{pillText ? <Tag x={210} y={112} text={pillText} color={pillColor ?? colors.zoneMid} /> : null}
|
|
525
|
+
</>
|
|
526
|
+
);
|
|
527
|
+
} else if (variant === 'fasting-hourglass') {
|
|
528
|
+
/* ------------------------------------------- MT-03 fasting-hourglass */
|
|
529
|
+
const frac = Math.max(0, Math.min(1, remaining));
|
|
530
|
+
const cx = 88;
|
|
531
|
+
const top = P.t + 14;
|
|
532
|
+
const hgt = 92;
|
|
533
|
+
const w2 = 46;
|
|
534
|
+
const topH = (hgt / 2 - 6) * frac;
|
|
535
|
+
const read = reading ?? '4H 20M';
|
|
536
|
+
const pillText = pill ?? 'EATING OPENS 12:30';
|
|
537
|
+
accessibilityLabel = `${heading}: ${read} remaining`;
|
|
538
|
+
content = (
|
|
539
|
+
<>
|
|
540
|
+
<Path
|
|
541
|
+
d={`M${cx - w2 / 2} ${top}h${w2}l${-w2 / 2 + 3} ${hgt / 2 - 4}v8l${w2 / 2 - 3} ${hgt / 2 - 4}h${-w2}l${w2 / 2 - 3} ${-hgt / 2 + 4}v-8z`}
|
|
542
|
+
fill="rgba(255,255,255,0.04)"
|
|
543
|
+
stroke="rgba(255,255,255,0.25)"
|
|
544
|
+
strokeWidth={1.4}
|
|
545
|
+
/>
|
|
546
|
+
<Path
|
|
547
|
+
d={`M${cx - (w2 / 2 - 3) * frac} ${top + hgt / 2 - 4 - topH}L${cx + (w2 / 2 - 3) * frac} ${top + hgt / 2 - 4 - topH}L${cx} ${top + hgt / 2 - 2}Z`}
|
|
548
|
+
fill={colors.zoneMid}
|
|
549
|
+
opacity={0.85}
|
|
550
|
+
/>
|
|
551
|
+
<Path
|
|
552
|
+
d={`M${cx} ${top + hgt / 2 + 4}L${cx - (w2 / 2 - 4) * (1 - frac)} ${top + hgt - 3}H${cx + (w2 / 2 - 4) * (1 - frac)}Z`}
|
|
553
|
+
fill={colors.zoneMid}
|
|
554
|
+
opacity={0.55}
|
|
555
|
+
/>
|
|
556
|
+
{frac > 0.03 ? (
|
|
557
|
+
<Line
|
|
558
|
+
x1={cx}
|
|
559
|
+
x2={cx}
|
|
560
|
+
y1={top + hgt / 2 - 2}
|
|
561
|
+
y2={top + hgt - 4}
|
|
562
|
+
stroke={colors.zoneMid}
|
|
563
|
+
strokeWidth={1.2}
|
|
564
|
+
strokeDasharray="2 3"
|
|
565
|
+
opacity={0.7}
|
|
566
|
+
/>
|
|
567
|
+
) : null}
|
|
568
|
+
<Reading x={170} y={74} text={read} size={24} color={colors.text} />
|
|
569
|
+
<Label x={170} y={90} text={sub ?? 'FAST · 16:8 WINDOW'} color={colors.textDim} anchor="start" />
|
|
570
|
+
{pillText ? <Tag x={212} y={108} text={pillText} color={pillColor ?? colors.zoneMid} /> : null}
|
|
571
|
+
</>
|
|
572
|
+
);
|
|
573
|
+
} else if (variant === 'habit-garden') {
|
|
574
|
+
/* ------------------------------------------------ MT-05 habit-garden */
|
|
575
|
+
const baseY = H - P.b - 22;
|
|
576
|
+
const note = caption ?? 'EACH PLANT GROWS WITH ITS STREAK · WILTS WHEN SKIPPED';
|
|
577
|
+
accessibilityLabel = `${heading}: ${habits.length} habit plants`;
|
|
578
|
+
content = (
|
|
579
|
+
<>
|
|
580
|
+
{habits.map((hb, i) => {
|
|
581
|
+
const x = P.l + 30 + (i * (plotW - 50)) / Math.max(1, habits.length - 1);
|
|
582
|
+
const col = hb.color ?? colors.mint;
|
|
583
|
+
return (
|
|
584
|
+
<G key={i}>
|
|
585
|
+
<Plant x={x} baseY={baseY} stage={Math.min(4, hb.weeks)} color={col} />
|
|
586
|
+
<Label x={x} y={baseY + 12} text={hb.name} color={col} />
|
|
587
|
+
<Label x={x} y={baseY + 22} text={`${hb.weeks * 7}D`} />
|
|
588
|
+
</G>
|
|
589
|
+
);
|
|
590
|
+
})}
|
|
591
|
+
{note ? <Label x={W / 2} y={P.t + 8} text={note} /> : null}
|
|
592
|
+
</>
|
|
593
|
+
);
|
|
594
|
+
} else if (variant === 'plant-stages') {
|
|
595
|
+
/* ------------------------------------------------ MT-06 plant-stages */
|
|
596
|
+
const baseY = H - P.b - 24;
|
|
597
|
+
const pillText = pill ?? 'YOUR MEDITATE PLANT · WEEK 4';
|
|
598
|
+
accessibilityLabel = `${heading}: ${stages.length} growth stages`;
|
|
599
|
+
content = (
|
|
600
|
+
<>
|
|
601
|
+
{stages.map((lb, i) => {
|
|
602
|
+
const x = P.l + 34 + (i * (plotW - 60)) / Math.max(1, stages.length - 1);
|
|
603
|
+
const last = i === stages.length - 1;
|
|
604
|
+
const col = last ? colors.mint : alpha(colors.mint, 0.4 + i * 0.15);
|
|
605
|
+
return (
|
|
606
|
+
<G key={i}>
|
|
607
|
+
<Plant x={x} baseY={baseY} stage={Math.min(4, i)} color={col} />
|
|
608
|
+
<Label x={x} y={H - P.b - 10} text={lb} color={last ? colors.mint : colors.textFaint} />
|
|
609
|
+
</G>
|
|
610
|
+
);
|
|
611
|
+
})}
|
|
612
|
+
{pillText ? <Tag x={W / 2} y={P.t + 12} text={pillText} color={pillColor ?? colors.mint} /> : null}
|
|
613
|
+
</>
|
|
614
|
+
);
|
|
615
|
+
} else if (variant === 'mountain-route') {
|
|
616
|
+
/* ---------------------------------------------- MT-07 mountain-route */
|
|
617
|
+
const pts = route.map(([px, py]) => ({ x: P.l + 6 + (plotW - 12) * px, y: Yv(py) }));
|
|
618
|
+
const d = pts.map((q, i) => `${i ? 'L' : 'M'}${q.x.toFixed(1)} ${q.y.toFixed(1)}`).join('');
|
|
619
|
+
const gradId = `lk-metaphor-m-${uid}`;
|
|
620
|
+
const cq = { x: P.l + 6 + (plotW - 12) * progress, y: Yv(routeY(route, progress)) };
|
|
621
|
+
accessibilityLabel = `${heading}: ${camps.length} camps, you at ${Math.round(progress * 100)}%`;
|
|
622
|
+
content = (
|
|
623
|
+
<>
|
|
624
|
+
<Defs>
|
|
625
|
+
<LinearGradient id={gradId} x1="0" y1="0" x2="0" y2="1">
|
|
626
|
+
<Stop offset="0%" stopColor={colors.indigo} stopOpacity={0.35} />
|
|
627
|
+
<Stop offset="100%" stopColor={colors.indigo} stopOpacity={0.02} />
|
|
628
|
+
</LinearGradient>
|
|
629
|
+
</Defs>
|
|
630
|
+
<Path d={`${d}L${W - P.r} ${H - P.b}L${P.l} ${H - P.b}Z`} fill={`url(#${gradId})`} />
|
|
631
|
+
{/* line glow — a Gaussian-blurred duplicate stroke (the web route's
|
|
632
|
+
`blur(5px)` underlay) */}
|
|
633
|
+
{shine ? (
|
|
634
|
+
<Path
|
|
635
|
+
d={d}
|
|
636
|
+
fill="none"
|
|
637
|
+
stroke={colors.indigo}
|
|
638
|
+
strokeWidth={7}
|
|
639
|
+
strokeLinecap="round"
|
|
640
|
+
opacity={0.45}
|
|
641
|
+
filter={`url(#${blurId})`}
|
|
642
|
+
/>
|
|
643
|
+
) : null}
|
|
644
|
+
<Path d={d} fill="none" stroke={colors.indigo} strokeWidth={2.2} strokeLinecap="round" />
|
|
645
|
+
{camps.map((cp, i) => {
|
|
646
|
+
const q = { x: P.l + 6 + (plotW - 12) * cp.at, y: Yv(routeY(route, cp.at)) };
|
|
647
|
+
const c = cp.summit ? colors.lime : colors.cyan;
|
|
648
|
+
return (
|
|
649
|
+
<G key={i}>
|
|
650
|
+
<Line x1={q.x.toFixed(1)} x2={q.x.toFixed(1)} y1={q.y.toFixed(1)} y2={(q.y - 14).toFixed(1)} stroke="rgba(255,255,255,0.35)" strokeWidth={1.2} />
|
|
651
|
+
<Path d={`M${q.x.toFixed(1)} ${(q.y - 14).toFixed(1)}l9 3.5-9 3.5z`} fill={c} />
|
|
652
|
+
<Tag x={q.x} y={q.y + 13} text={cp.label} color={c} />
|
|
653
|
+
</G>
|
|
654
|
+
);
|
|
655
|
+
})}
|
|
656
|
+
<PulseDot x={cq.x} y={cq.y} color={colors.mint} />
|
|
657
|
+
{progressLabel ? <Tag x={cq.x - 8} y={cq.y - 16} text={progressLabel} color={colors.mint} anchor="end" /> : null}
|
|
658
|
+
</>
|
|
659
|
+
);
|
|
660
|
+
} else if (variant === 'hydration-bottle') {
|
|
661
|
+
/* -------------------------------------------- MT-09 hydration-bottle */
|
|
662
|
+
const lvl = Math.max(0, Math.min(1, level ?? 0.6));
|
|
663
|
+
const bx = 80;
|
|
664
|
+
const by = P.t + 10;
|
|
665
|
+
const bw = 42;
|
|
666
|
+
const bh = 96;
|
|
667
|
+
const lt = by + bh - 2 - lvl * (bh - 6);
|
|
668
|
+
const clipId = `lk-metaphor-b-${uid}`;
|
|
669
|
+
const gradId = `lk-metaphor-w-${uid}`;
|
|
670
|
+
const wave = `M${bx + 1.5} ${lt.toFixed(1)}Q${bx + bw * 0.3} ${(lt - 2.6).toFixed(1)} ${bx + bw / 2} ${lt.toFixed(1)}Q${bx + bw * 0.72} ${(lt + 2.6).toFixed(1)} ${bx + bw - 1.5} ${lt.toFixed(1)}L${bx + bw - 1.5} ${by + bh}L${bx + 1.5} ${by + bh}Z`;
|
|
671
|
+
const read = reading ?? '1.6 L';
|
|
672
|
+
const pillText = pill ?? 'NEXT GLASS · 15:30';
|
|
673
|
+
const bubbles: [number, number, number][] = [
|
|
674
|
+
[0.35, 0.4, 1.6],
|
|
675
|
+
[0.6, 0.2, 1.2],
|
|
676
|
+
[0.5, 0.65, 2],
|
|
677
|
+
];
|
|
678
|
+
accessibilityLabel = `${heading}: ${read}, ${Math.round(lvl * glasses)} of ${glasses} glasses`;
|
|
679
|
+
content = (
|
|
680
|
+
<>
|
|
681
|
+
<Defs>
|
|
682
|
+
<ClipPath id={clipId}>
|
|
683
|
+
<Rect x={bx + 1.5} y={by + 1.5} width={bw - 3} height={bh - 3} rx={10.5} />
|
|
684
|
+
</ClipPath>
|
|
685
|
+
<LinearGradient id={gradId} x1="0" y1="0" x2="0" y2="1">
|
|
686
|
+
<Stop offset="0%" stopColor={colors.cyan} stopOpacity={0.85} />
|
|
687
|
+
<Stop offset="100%" stopColor={colors.cyan} stopOpacity={0.4} />
|
|
688
|
+
</LinearGradient>
|
|
689
|
+
</Defs>
|
|
690
|
+
<Rect x={bx + bw / 2 - 7} y={by - 8} width={14} height={10} rx={3} fill="rgba(255,255,255,0.18)" />
|
|
691
|
+
<Rect x={bx} y={by} width={bw} height={bh} rx={12} fill="rgba(255,255,255,0.045)" stroke="rgba(255,255,255,0.24)" strokeWidth={1.4} />
|
|
692
|
+
<Path d={wave} fill={`url(#${gradId})`} clipPath={`url(#${clipId})`} />
|
|
693
|
+
{bubbles.map((b, i) => (
|
|
694
|
+
<Circle
|
|
695
|
+
key={i}
|
|
696
|
+
cx={bx + bw * b[0]}
|
|
697
|
+
cy={by + bh - (bh - 6) * lvl * b[1]}
|
|
698
|
+
r={b[2]}
|
|
699
|
+
fill="none"
|
|
700
|
+
stroke="rgba(255,255,255,0.4)"
|
|
701
|
+
strokeWidth={0.8}
|
|
702
|
+
clipPath={`url(#${clipId})`}
|
|
703
|
+
/>
|
|
704
|
+
))}
|
|
705
|
+
{Array.from({ length: glasses }, (_, gi) => {
|
|
706
|
+
const g = gi + 1;
|
|
707
|
+
const gy = by + bh - ((bh - 6) * g) / glasses;
|
|
708
|
+
return (
|
|
709
|
+
<Line
|
|
710
|
+
key={g}
|
|
711
|
+
x1={bx + bw + 4}
|
|
712
|
+
x2={bx + bw + (g % 4 === 0 ? 12 : 8)}
|
|
713
|
+
y1={gy}
|
|
714
|
+
y2={gy}
|
|
715
|
+
stroke={g <= Math.round(lvl * glasses) ? colors.cyan : 'rgba(255,255,255,0.2)'}
|
|
716
|
+
strokeWidth={1.2}
|
|
717
|
+
/>
|
|
718
|
+
);
|
|
719
|
+
})}
|
|
720
|
+
<Reading x={176} y={70} text={read} size={24} color={colors.cyan} />
|
|
721
|
+
<Label x={176} y={86} text={sub ?? 'OF 2.6 L · 5 OF 8 GLASSES'} color={colors.textDim} anchor="start" />
|
|
722
|
+
{pillText ? <Tag x={218} y={104} text={pillText} color={pillColor ?? colors.cyan} /> : null}
|
|
723
|
+
</>
|
|
724
|
+
);
|
|
725
|
+
} else if (variant === 'meal-plates') {
|
|
726
|
+
/* --------------------------------------------------- MT-10 meal-plates */
|
|
727
|
+
const y = H / 2 + 10;
|
|
728
|
+
let lx = W - P.r - 2;
|
|
729
|
+
accessibilityLabel = `${heading}: ${meals.length} meals on the day strip`;
|
|
730
|
+
content = (
|
|
731
|
+
<>
|
|
732
|
+
<Line x1={P.l + 6} x2={W - P.r - 6} y1={y} y2={y} stroke="rgba(255,255,255,0.14)" strokeWidth={1.5} strokeLinecap="round" />
|
|
733
|
+
{meals.map((ml, i) => {
|
|
734
|
+
const x = P.l + 6 + (plotW - 12) * ml.at;
|
|
735
|
+
let a = 0;
|
|
736
|
+
return (
|
|
737
|
+
<G key={i}>
|
|
738
|
+
<Circle cx={x.toFixed(1)} cy={y - 22} r={13} fill="rgba(255,255,255,0.05)" stroke="rgba(255,255,255,0.2)" strokeWidth={1} />
|
|
739
|
+
{ml.macros.map((f, fi) => {
|
|
740
|
+
const a1 = a + f * 360;
|
|
741
|
+
const d = arcPath(x, y - 22, 9, a + 2, a1 - 2);
|
|
742
|
+
a = a1;
|
|
743
|
+
return <Path key={fi} d={d} fill="none" stroke={MACRO_COLORS[fi]} strokeWidth={5} strokeLinecap="butt" />;
|
|
744
|
+
})}
|
|
745
|
+
<Line x1={x.toFixed(1)} x2={x.toFixed(1)} y1={y - 9} y2={y} stroke="rgba(255,255,255,0.25)" strokeWidth={1} />
|
|
746
|
+
<Circle cx={x.toFixed(1)} cy={y} r={2.4} fill={colors.text} />
|
|
747
|
+
<Label x={x} y={y + 14} text={ml.time} />
|
|
748
|
+
<Label x={x} y={y - 42} text={`${ml.kcal} KCAL`} color={colors.textDim} />
|
|
749
|
+
</G>
|
|
750
|
+
);
|
|
751
|
+
})}
|
|
752
|
+
{legend
|
|
753
|
+
? MACRO_LEGEND.map(([name, col]) => {
|
|
754
|
+
const tx = lx;
|
|
755
|
+
lx -= name.length * 5.6 + 8;
|
|
756
|
+
const dx = lx;
|
|
757
|
+
lx -= 8;
|
|
758
|
+
return (
|
|
759
|
+
<G key={name}>
|
|
760
|
+
<Label x={tx} y={11} text={name} color={colors.textDim} anchor="end" />
|
|
761
|
+
<Circle cx={dx} cy={8.2} r={3} fill={col} />
|
|
762
|
+
</G>
|
|
763
|
+
);
|
|
764
|
+
})
|
|
765
|
+
: null}
|
|
766
|
+
</>
|
|
767
|
+
);
|
|
768
|
+
} else if (variant === 'breath-pacer') {
|
|
769
|
+
/* -------------------------------------------------- MT-11 breath-pacer */
|
|
770
|
+
const bx = 118;
|
|
771
|
+
const by = 78;
|
|
772
|
+
const [tIn, tHold, tOut] = pattern;
|
|
773
|
+
const note = caption ?? `${tIn}-${tHold}-${tOut} · RING GROWS ON INHALE`;
|
|
774
|
+
heading = title ?? `BREATHE · ${tIn}-${tHold}-${tOut}`;
|
|
775
|
+
accessibilityLabel = `${heading}: in ${tIn}s, hold ${tHold}s, out ${tOut}s`;
|
|
776
|
+
content = (
|
|
777
|
+
<>
|
|
778
|
+
{[24, 34, 44].map((r) => (
|
|
779
|
+
<Circle key={r} cx={bx} cy={by} r={r} fill="none" stroke="rgba(255,255,255,0.07)" strokeWidth={1} />
|
|
780
|
+
))}
|
|
781
|
+
{/* static mid-breath orb — the web SMIL grow/shrink loop is a
|
|
782
|
+
documented substrate diff (18 → 44 animated; 31 = mid-size) */}
|
|
783
|
+
<Circle cx={bx} cy={by} r={31} fill={colors.cyan} opacity={0.22} />
|
|
784
|
+
<Circle cx={bx} cy={by} r={31} fill="none" stroke={colors.cyan} strokeWidth={2} />
|
|
785
|
+
<Label x={bx} y={by + 3} text={centerLabel} color={colors.text} />
|
|
786
|
+
<Label x={236} y={56} text={`IN · ${tIn}S`} color={colors.cyan} anchor="start" />
|
|
787
|
+
<Label x={236} y={74} text={`HOLD · ${tHold}S`} color={colors.textDim} anchor="start" />
|
|
788
|
+
<Label x={236} y={92} text={`OUT · ${tOut}S`} color={colors.violet} anchor="start" />
|
|
789
|
+
{note ? <Label x={bx} y={140} text={note} /> : null}
|
|
790
|
+
</>
|
|
791
|
+
);
|
|
792
|
+
} else {
|
|
793
|
+
/* ------------------------------------------------ MT-12 breath-session */
|
|
794
|
+
const norm = (v: number) => (v - 5) / 11;
|
|
795
|
+
const bp = bpm.map((v, i) => ({
|
|
796
|
+
x: P.l + (bpm.length <= 1 ? plotW / 2 : (i * plotW) / (bpm.length - 1)),
|
|
797
|
+
y: Yv(Math.max(0, Math.min(1, norm(v)))),
|
|
798
|
+
}));
|
|
799
|
+
const zoneY = Yv(Math.max(0, Math.min(1, norm(calmThreshold))));
|
|
800
|
+
const cz = markerAt != null ? bp[Math.max(0, Math.min(bp.length - 1, markerAt))] : undefined;
|
|
801
|
+
const first = bpm[0] ?? 0;
|
|
802
|
+
const last = bpm[bpm.length - 1] ?? 0;
|
|
803
|
+
const legendText = caption ?? `BREATHS/MIN ${Math.round(first)} → ${Math.round(last)}`;
|
|
804
|
+
accessibilityLabel = `${heading}: breaths per minute ${Math.round(first)} to ${Math.round(last)}`;
|
|
805
|
+
content = (
|
|
806
|
+
<>
|
|
807
|
+
{[0.25, 0.5, 0.75].map((f) => (
|
|
808
|
+
<Line key={f} x1={P.l} x2={W - P.r} y1={P.t + plotH * f} y2={P.t + plotH * f} stroke="rgba(255,255,255,0.05)" strokeWidth={1} />
|
|
809
|
+
))}
|
|
810
|
+
<Line x1={P.l} x2={W - P.r} y1={H - P.b} y2={H - P.b} stroke="rgba(255,255,255,0.09)" strokeWidth={1} />
|
|
811
|
+
<Rect x={P.l} y={zoneY} width={plotW} height={Math.max(0, Yv(0) - zoneY)} fill={colors.cyan} opacity={0.07} />
|
|
812
|
+
<Label x={P.l + 4} y={zoneY + 10} text={`CALM ZONE <${calmThreshold}/MIN`} color={colors.cyan} anchor="start" />
|
|
813
|
+
{bp.length > 0 ? <Path d={smoothPath(bp)} fill="none" stroke={colors.cyan} strokeWidth={2.2} strokeLinecap="round" /> : null}
|
|
814
|
+
{cz ? (
|
|
815
|
+
<G>
|
|
816
|
+
<Circle cx={cz.x.toFixed(1)} cy={cz.y.toFixed(1)} r={3.4} fill={colors.cyan} />
|
|
817
|
+
{markerLabel ? <Tag x={cz.x} y={cz.y - 14} text={markerLabel} color={colors.cyan} /> : null}
|
|
818
|
+
</G>
|
|
819
|
+
) : null}
|
|
820
|
+
{axisLabels.map((tk, i) => {
|
|
821
|
+
const f = axisLabels.length <= 1 ? 0.5 : i / (axisLabels.length - 1);
|
|
822
|
+
const anchor = i === 0 ? 'start' : i === axisLabels.length - 1 ? 'end' : 'middle';
|
|
823
|
+
return <Label key={i} x={P.l + plotW * f} y={H - 3} text={tk} anchor={anchor} />;
|
|
824
|
+
})}
|
|
825
|
+
{legendText ? <Label x={W - P.r - 4} y={26} text={legendText} color={colors.textDim} anchor="end" /> : null}
|
|
826
|
+
</>
|
|
827
|
+
);
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
return (
|
|
831
|
+
<View accessibilityRole="image" accessibilityLabel={accessibilityLabel} style={[{ width, height }, style]}>
|
|
832
|
+
<Svg width={width} height={height} viewBox={`0 0 ${W} ${H}`}>
|
|
833
|
+
{shine ? (
|
|
834
|
+
/* real Gaussian blur for the glows (Fabric-native in react-native-svg
|
|
835
|
+
15) — the native twin of the web `blur(5px)` underlays. Region in
|
|
836
|
+
user space over the full canvas so flat shapes never clip. */
|
|
837
|
+
<Defs>
|
|
838
|
+
<Filter id={blurId} filterUnits="userSpaceOnUse" x={-10} y={-10} width={W + 20} height={H + 20}>
|
|
839
|
+
<FeGaussianBlur stdDeviation={2.5} />
|
|
840
|
+
</Filter>
|
|
841
|
+
</Defs>
|
|
842
|
+
) : null}
|
|
843
|
+
<Label x={P.l + 2} y={11} text={heading} anchor="start" />
|
|
844
|
+
{content}
|
|
845
|
+
</Svg>
|
|
846
|
+
</View>
|
|
847
|
+
);
|
|
848
|
+
}
|