@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,1053 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.MetaphorWidget = MetaphorWidget;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeSvg = _interopRequireWildcard(require("react-native-svg"));
|
|
10
|
+
var _tokens = require("@lockin90/tokens");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
|
+
/* MetaphorWidget — the catalog metaphor-widget family (MT-01…MT-12,
|
|
14
|
+
lockin90-design/charts/metaphor-charts.html): objects that tell the story —
|
|
15
|
+
thermometers, hourglasses, gardens, mountains, bottles, plates and breath
|
|
16
|
+
orbs, all drawn in the fixed 320×150 catalog viewBox. Native twin of
|
|
17
|
+
`@lockin90/ui` MetaphorWidget — same prop API + geometry; SMIL loops (YOU
|
|
18
|
+
pulse, breath orb) render static mid-states here and every `shine` glow is
|
|
19
|
+
a real Gaussian-blurred duplicate shape (Fabric-native SVG filters in
|
|
20
|
+
react-native-svg 15). */
|
|
21
|
+
|
|
22
|
+
/** Catalog variant names (`lockin90-design/charts/metaphor-charts.html`). */
|
|
23
|
+
|
|
24
|
+
/* MT-12 — breaths/min curve into the shaded calm zone */
|
|
25
|
+
|
|
26
|
+
/** One plant in the `habit-garden` (MT-05). */
|
|
27
|
+
|
|
28
|
+
/** One plate on the `meal-plates` day strip (MT-10). */
|
|
29
|
+
|
|
30
|
+
/** One flag on the `mountain-route` profile (MT-07). */
|
|
31
|
+
|
|
32
|
+
/* --------------------------------------------------------------- geometry
|
|
33
|
+
* The catalog canvas: 320×150, pad l10 r12 t16 b14 (catalog.js). */
|
|
34
|
+
const W = 320;
|
|
35
|
+
const H = 150;
|
|
36
|
+
const P = {
|
|
37
|
+
l: 10,
|
|
38
|
+
r: 12,
|
|
39
|
+
t: 16,
|
|
40
|
+
b: 14
|
|
41
|
+
};
|
|
42
|
+
const plotW = W - P.l - P.r;
|
|
43
|
+
const plotH = H - P.t - P.b;
|
|
44
|
+
|
|
45
|
+
/** y for a 0–1 value in the plot box (catalog `Y`) */
|
|
46
|
+
function Yv(v) {
|
|
47
|
+
return P.t + (1 - v) * plotH;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** open arc — 0° at 12 o'clock, clockwise (catalog `arcPath`) */
|
|
51
|
+
function arcPath(cx, cy, r, a0, a1) {
|
|
52
|
+
const pol = aDeg => {
|
|
53
|
+
const a = (aDeg - 90) * Math.PI / 180;
|
|
54
|
+
return {
|
|
55
|
+
x: cx + r * Math.cos(a),
|
|
56
|
+
y: cy + r * Math.sin(a)
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
const p0 = pol(a0);
|
|
60
|
+
const p1 = pol(a1);
|
|
61
|
+
const lg = (a1 - a0) % 360 > 180 ? 1 : 0;
|
|
62
|
+
return `M${p0.x.toFixed(1)} ${p0.y.toFixed(1)}A${r} ${r} 0 ${lg} 1 ${p1.x.toFixed(1)} ${p1.y.toFixed(1)}`;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** Fritsch–Carlson monotone cubic — the catalog's `smoothPath` (no overshoot). */
|
|
66
|
+
function smoothPath(p) {
|
|
67
|
+
const n = p.length;
|
|
68
|
+
if (n < 3) return p.map((q, i) => `${i ? 'L' : 'M'}${q.x.toFixed(1)} ${q.y.toFixed(1)}`).join('');
|
|
69
|
+
const dx = [];
|
|
70
|
+
const m = [];
|
|
71
|
+
const tg = [];
|
|
72
|
+
for (let i = 0; i < n - 1; i++) {
|
|
73
|
+
dx[i] = p[i + 1].x - p[i].x;
|
|
74
|
+
m[i] = (p[i + 1].y - p[i].y) / dx[i];
|
|
75
|
+
}
|
|
76
|
+
tg[0] = m[0];
|
|
77
|
+
tg[n - 1] = m[n - 2];
|
|
78
|
+
for (let i = 1; i < n - 1; i++) tg[i] = m[i - 1] * m[i] <= 0 ? 0 : (m[i - 1] + m[i]) / 2;
|
|
79
|
+
for (let i = 0; i < n - 1; i++) {
|
|
80
|
+
if (m[i] === 0) {
|
|
81
|
+
tg[i] = 0;
|
|
82
|
+
tg[i + 1] = 0;
|
|
83
|
+
} else {
|
|
84
|
+
const a = tg[i] / m[i];
|
|
85
|
+
const b = tg[i + 1] / m[i];
|
|
86
|
+
const s = a * a + b * b;
|
|
87
|
+
if (s > 9) {
|
|
88
|
+
const tau = 3 / Math.sqrt(s);
|
|
89
|
+
tg[i] = tau * a * m[i];
|
|
90
|
+
tg[i + 1] = tau * b * m[i];
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
let d = `M${p[0].x.toFixed(1)} ${p[0].y.toFixed(1)}`;
|
|
95
|
+
for (let i = 0; i < n - 1; i++) {
|
|
96
|
+
const h = dx[i] / 3;
|
|
97
|
+
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)}`;
|
|
98
|
+
}
|
|
99
|
+
return d;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/** piecewise-linear y (0–1) along the route at x (0–1) */
|
|
103
|
+
function routeY(route, x) {
|
|
104
|
+
if (route.length === 0) return 0;
|
|
105
|
+
if (x <= route[0][0]) return route[0][1];
|
|
106
|
+
for (let i = 1; i < route.length; i++) {
|
|
107
|
+
if (x <= route[i][0]) {
|
|
108
|
+
const [x0, y0] = route[i - 1];
|
|
109
|
+
const [x1, y1] = route[i];
|
|
110
|
+
const t = x1 === x0 ? 0 : (x - x0) / (x1 - x0);
|
|
111
|
+
return y0 + t * (y1 - y0);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return route[route.length - 1][1];
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** hex color + 0–1 alpha → #RRGGBBAA (native's rgba() substitute) */
|
|
118
|
+
function alpha(hex, a) {
|
|
119
|
+
return `${hex}${Math.round(Math.max(0, Math.min(1, a)) * 255).toString(16).padStart(2, '0')}`;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* ----------------------------------------------------- catalog defaults */
|
|
123
|
+
|
|
124
|
+
const DEFAULT_HABITS = [{
|
|
125
|
+
name: 'MEDITATE',
|
|
126
|
+
weeks: 4,
|
|
127
|
+
color: _tokens.colors.mint
|
|
128
|
+
}, {
|
|
129
|
+
name: 'LIFT',
|
|
130
|
+
weeks: 3,
|
|
131
|
+
color: _tokens.colors.cyan
|
|
132
|
+
}, {
|
|
133
|
+
name: 'SUNLIGHT',
|
|
134
|
+
weeks: 5,
|
|
135
|
+
color: _tokens.colors.lime
|
|
136
|
+
}, {
|
|
137
|
+
name: 'NO-CAFF',
|
|
138
|
+
weeks: 1,
|
|
139
|
+
color: _tokens.colors.zoneMid
|
|
140
|
+
}, {
|
|
141
|
+
name: 'JOURNAL',
|
|
142
|
+
weeks: 2,
|
|
143
|
+
color: _tokens.colors.violet
|
|
144
|
+
}, {
|
|
145
|
+
name: 'WALK',
|
|
146
|
+
weeks: 0,
|
|
147
|
+
color: _tokens.colors.zoneLow
|
|
148
|
+
}];
|
|
149
|
+
const DEFAULT_STAGES = ['SPROUT', 'WK 1', 'WK 2', 'WK 4', 'WK 8+'];
|
|
150
|
+
const DEFAULT_ROUTE = [[0, 0.1], [0.14, 0.22], [0.3, 0.34], [0.42, 0.3], [0.58, 0.55], [0.72, 0.68], [0.86, 0.8], [1, 0.95]];
|
|
151
|
+
const DEFAULT_CAMPS = [{
|
|
152
|
+
at: 0.3,
|
|
153
|
+
label: 'CAMP 1 · D30'
|
|
154
|
+
}, {
|
|
155
|
+
at: 0.58,
|
|
156
|
+
label: 'CAMP 2 · D60'
|
|
157
|
+
}, {
|
|
158
|
+
at: 1,
|
|
159
|
+
label: 'SUMMIT · D90',
|
|
160
|
+
summit: true
|
|
161
|
+
}];
|
|
162
|
+
const DEFAULT_MEALS = [{
|
|
163
|
+
time: '7:40',
|
|
164
|
+
at: 0.1,
|
|
165
|
+
macros: [0.4, 0.35, 0.25],
|
|
166
|
+
kcal: '420'
|
|
167
|
+
}, {
|
|
168
|
+
time: '12:30',
|
|
169
|
+
at: 0.42,
|
|
170
|
+
macros: [0.45, 0.3, 0.25],
|
|
171
|
+
kcal: '680'
|
|
172
|
+
}, {
|
|
173
|
+
time: '16:00',
|
|
174
|
+
at: 0.62,
|
|
175
|
+
macros: [0.3, 0.5, 0.2],
|
|
176
|
+
kcal: '210'
|
|
177
|
+
}, {
|
|
178
|
+
time: '19:30',
|
|
179
|
+
at: 0.86,
|
|
180
|
+
macros: [0.42, 0.3, 0.28],
|
|
181
|
+
kcal: '740'
|
|
182
|
+
}];
|
|
183
|
+
|
|
184
|
+
/** the catalog's MT-12 session curve — breaths/min slowing 14 → 7 */
|
|
185
|
+
const DEFAULT_BPM = [14, 13.5, 12.5, 11.5, 10.5, 9.5, 8.5, 8, 7.5, 7.2, 7, 7];
|
|
186
|
+
const DEFAULT_TITLES = {
|
|
187
|
+
thermometer: 'STRAIN METER',
|
|
188
|
+
'fasting-hourglass': 'FASTING',
|
|
189
|
+
'habit-garden': 'YOUR GARDEN · 6 HABITS',
|
|
190
|
+
'plant-stages': 'HOW PLANTS GROW',
|
|
191
|
+
'mountain-route': '90-DAY ASCENT',
|
|
192
|
+
'hydration-bottle': 'WATER · TODAY',
|
|
193
|
+
'meal-plates': 'MEALS · TODAY',
|
|
194
|
+
'breath-pacer': 'BREATHE · 4-7-8',
|
|
195
|
+
'breath-session': 'SESSION · 10 MIN'
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
/* macro colors — [protein, carbs, fat], catalog `cols` + legend order */
|
|
199
|
+
const MACRO_COLORS = [_tokens.colors.mint, _tokens.colors.cyan, _tokens.colors.violet];
|
|
200
|
+
const MACRO_LEGEND = [['FAT', _tokens.colors.violet], ['CARB', _tokens.colors.cyan], ['PRO', _tokens.colors.mint]];
|
|
201
|
+
function Label({
|
|
202
|
+
x,
|
|
203
|
+
y,
|
|
204
|
+
text,
|
|
205
|
+
color = _tokens.colors.textFaint,
|
|
206
|
+
anchor = 'middle'
|
|
207
|
+
}) {
|
|
208
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Text, {
|
|
209
|
+
x: x,
|
|
210
|
+
y: y,
|
|
211
|
+
fill: color,
|
|
212
|
+
fontSize: 8.5,
|
|
213
|
+
textAnchor: anchor,
|
|
214
|
+
fontFamily: _tokens.fonts.mono,
|
|
215
|
+
letterSpacing: 0.5,
|
|
216
|
+
children: text
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/** chip-pill label (dark rect + tinted hairline) — `y` = pill center */
|
|
221
|
+
function Tag({
|
|
222
|
+
x,
|
|
223
|
+
y,
|
|
224
|
+
text,
|
|
225
|
+
color,
|
|
226
|
+
anchor = 'middle'
|
|
227
|
+
}) {
|
|
228
|
+
const w = text.length * 5.35 + 12;
|
|
229
|
+
let xa = anchor === 'end' ? x - w : anchor === 'start' ? x : x - w / 2;
|
|
230
|
+
xa = Math.max(P.l - 4, Math.min(xa, W - P.r - w + 4));
|
|
231
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
232
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
233
|
+
x: xa.toFixed(1),
|
|
234
|
+
y: (y - 6.5).toFixed(1),
|
|
235
|
+
width: w.toFixed(1),
|
|
236
|
+
height: 13,
|
|
237
|
+
rx: 6.5,
|
|
238
|
+
fill: "rgba(8,10,18,0.78)",
|
|
239
|
+
stroke: color,
|
|
240
|
+
strokeOpacity: 0.35,
|
|
241
|
+
strokeWidth: 0.8
|
|
242
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Text, {
|
|
243
|
+
x: (xa + w / 2).toFixed(1),
|
|
244
|
+
y: (y + 2.8).toFixed(1),
|
|
245
|
+
fill: color,
|
|
246
|
+
fontSize: 8,
|
|
247
|
+
textAnchor: "middle",
|
|
248
|
+
fontFamily: _tokens.fonts.mono,
|
|
249
|
+
letterSpacing: 0.4,
|
|
250
|
+
children: text
|
|
251
|
+
})]
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/** big display readout next to a vessel (thermo 26px / hourglass + bottle 24px) */
|
|
256
|
+
function Reading({
|
|
257
|
+
x,
|
|
258
|
+
y,
|
|
259
|
+
text,
|
|
260
|
+
size,
|
|
261
|
+
color
|
|
262
|
+
}) {
|
|
263
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Text, {
|
|
264
|
+
x: x,
|
|
265
|
+
y: y,
|
|
266
|
+
fill: color,
|
|
267
|
+
fontSize: size,
|
|
268
|
+
fontWeight: "700",
|
|
269
|
+
fontFamily: _tokens.fonts.display,
|
|
270
|
+
children: text
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/** one garden plant — stage 0 (sprout dot) … 4 (bloom), catalog `plant()`.
|
|
275
|
+
* The web bloom `drop-shadow` is a wider faint duplicate circle here. */
|
|
276
|
+
function Plant({
|
|
277
|
+
x,
|
|
278
|
+
baseY,
|
|
279
|
+
stage,
|
|
280
|
+
color
|
|
281
|
+
}) {
|
|
282
|
+
const mound = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
283
|
+
d: `M${x - 9} ${baseY}q9 8 18 0z`,
|
|
284
|
+
fill: "rgba(255,255,255,0.12)"
|
|
285
|
+
});
|
|
286
|
+
if (stage === 0) {
|
|
287
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
288
|
+
children: [mound, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
|
|
289
|
+
cx: x,
|
|
290
|
+
cy: baseY - 3,
|
|
291
|
+
r: 2,
|
|
292
|
+
fill: color,
|
|
293
|
+
opacity: 0.7
|
|
294
|
+
})]
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
const hgt = 8 + stage * 8;
|
|
298
|
+
const leaves = [];
|
|
299
|
+
for (let li = 1; li <= Math.min(3, stage); li++) {
|
|
300
|
+
const ly = baseY - hgt * li / (stage + 1);
|
|
301
|
+
const dir = li % 2 ? -1 : 1;
|
|
302
|
+
leaves.push(/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
303
|
+
d: `M${x} ${ly.toFixed(1)}q${7 * dir} -2 ${9 * dir} -7q${-7 * dir} 0 ${-9 * dir} 7z`,
|
|
304
|
+
fill: color,
|
|
305
|
+
opacity: 0.85
|
|
306
|
+
}, li));
|
|
307
|
+
}
|
|
308
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
309
|
+
children: [mound, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
310
|
+
d: `M${x} ${baseY}q2 ${-hgt / 2} 0 ${-hgt}`,
|
|
311
|
+
fill: "none",
|
|
312
|
+
stroke: color,
|
|
313
|
+
strokeWidth: 2,
|
|
314
|
+
strokeLinecap: "round"
|
|
315
|
+
}), leaves, stage >= 4 ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
316
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
|
|
317
|
+
cx: x,
|
|
318
|
+
cy: baseY - hgt - 3,
|
|
319
|
+
r: 5,
|
|
320
|
+
fill: _tokens.colors.lime,
|
|
321
|
+
opacity: 0.35
|
|
322
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
|
|
323
|
+
cx: x,
|
|
324
|
+
cy: baseY - hgt - 3,
|
|
325
|
+
r: 3.2,
|
|
326
|
+
fill: _tokens.colors.lime
|
|
327
|
+
})]
|
|
328
|
+
}) : null]
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/** pulse marker — static dot + faint halo ring (no SMIL/JS animation on
|
|
333
|
+
* native; the web expanding ring is a documented substrate diff) */
|
|
334
|
+
function PulseDot({
|
|
335
|
+
x,
|
|
336
|
+
y,
|
|
337
|
+
color
|
|
338
|
+
}) {
|
|
339
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
340
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
|
|
341
|
+
cx: x,
|
|
342
|
+
cy: y,
|
|
343
|
+
r: 7,
|
|
344
|
+
fill: "none",
|
|
345
|
+
stroke: color,
|
|
346
|
+
strokeWidth: 1.4,
|
|
347
|
+
strokeOpacity: 0.4
|
|
348
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
|
|
349
|
+
cx: x,
|
|
350
|
+
cy: y,
|
|
351
|
+
r: 3.6,
|
|
352
|
+
fill: color
|
|
353
|
+
})]
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* MetaphorWidget — the kit's object-metaphor widget (catalog family
|
|
359
|
+
* `metaphor-charts`, MT-01…MT-12): a value drawn as the thing it measures —
|
|
360
|
+
* thermometer, hourglass, garden, mountain, bottle, plates, breath orb.
|
|
361
|
+
* Same prop API + geometry as the web twin; the breath-pacer orb renders
|
|
362
|
+
* static mid-size (no SMIL loop) and the YOU pulse is a static dot + halo.
|
|
363
|
+
* Values are 0–1; geometry is the catalog's 320×150 canvas; tokens only.
|
|
364
|
+
*/
|
|
365
|
+
function MetaphorWidget({
|
|
366
|
+
variant = 'thermometer',
|
|
367
|
+
level,
|
|
368
|
+
remaining = 0.35,
|
|
369
|
+
reading,
|
|
370
|
+
sub,
|
|
371
|
+
pill,
|
|
372
|
+
pillColor,
|
|
373
|
+
target = null,
|
|
374
|
+
targetLabel = 'TARGET',
|
|
375
|
+
glasses = 8,
|
|
376
|
+
habits = DEFAULT_HABITS,
|
|
377
|
+
stages = DEFAULT_STAGES,
|
|
378
|
+
route = DEFAULT_ROUTE,
|
|
379
|
+
camps = DEFAULT_CAMPS,
|
|
380
|
+
progress = 0.62,
|
|
381
|
+
progressLabel = 'YOU · DAY 56',
|
|
382
|
+
meals = DEFAULT_MEALS,
|
|
383
|
+
legend = true,
|
|
384
|
+
pattern = [4, 7, 8],
|
|
385
|
+
centerLabel = 'BREATHE',
|
|
386
|
+
bpm = DEFAULT_BPM,
|
|
387
|
+
calmThreshold = 8,
|
|
388
|
+
markerAt = 7,
|
|
389
|
+
markerLabel = 'CALM REACHED · 6:40',
|
|
390
|
+
axisLabels = ['0:00', '5:00', '10:00'],
|
|
391
|
+
caption,
|
|
392
|
+
title,
|
|
393
|
+
shine = false,
|
|
394
|
+
width = W,
|
|
395
|
+
height = H,
|
|
396
|
+
style
|
|
397
|
+
}) {
|
|
398
|
+
const uid = (0, _react.useId)().replace(/[^a-zA-Z0-9]/g, '');
|
|
399
|
+
const blurId = `lk-metaphor-blur-${uid}`;
|
|
400
|
+
let heading = title ?? DEFAULT_TITLES[variant];
|
|
401
|
+
let accessibilityLabel;
|
|
402
|
+
let content;
|
|
403
|
+
if (variant === 'thermometer') {
|
|
404
|
+
/* ------------------------------------------------- MT-01 thermometer */
|
|
405
|
+
const lvl = Math.max(0, Math.min(1, level ?? 0.62));
|
|
406
|
+
const col = lvl >= 0.72 ? _tokens.colors.zoneLow : lvl >= 0.4 ? _tokens.colors.zoneMid : _tokens.colors.cyan;
|
|
407
|
+
const x = 86;
|
|
408
|
+
const yTop = P.t + 12;
|
|
409
|
+
const hgt = 84;
|
|
410
|
+
const tubeW = 12;
|
|
411
|
+
const bulbY = yTop + hgt + 10;
|
|
412
|
+
const lh = lvl * (hgt - 6);
|
|
413
|
+
const read = reading ?? '14.2';
|
|
414
|
+
const pillText = pill ?? 'APPROACHING LIMIT';
|
|
415
|
+
accessibilityLabel = `${heading}: ${read}, level ${Math.round(lvl * 100)}%`;
|
|
416
|
+
content = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
417
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
418
|
+
x: x - tubeW / 2,
|
|
419
|
+
y: yTop,
|
|
420
|
+
width: tubeW,
|
|
421
|
+
height: hgt + 8,
|
|
422
|
+
rx: tubeW / 2,
|
|
423
|
+
fill: "rgba(255,255,255,0.05)",
|
|
424
|
+
stroke: "rgba(255,255,255,0.25)",
|
|
425
|
+
strokeWidth: 1.4
|
|
426
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
|
|
427
|
+
cx: x,
|
|
428
|
+
cy: bulbY,
|
|
429
|
+
r: 11,
|
|
430
|
+
fill: "rgba(255,255,255,0.05)",
|
|
431
|
+
stroke: "rgba(255,255,255,0.25)",
|
|
432
|
+
strokeWidth: 1.4
|
|
433
|
+
}), shine ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
|
|
434
|
+
cx: x,
|
|
435
|
+
cy: bulbY,
|
|
436
|
+
r: 9,
|
|
437
|
+
fill: col,
|
|
438
|
+
opacity: 0.6,
|
|
439
|
+
filter: `url(#${blurId})`
|
|
440
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
|
|
441
|
+
cx: x,
|
|
442
|
+
cy: bulbY,
|
|
443
|
+
r: 8,
|
|
444
|
+
fill: col,
|
|
445
|
+
opacity: 0.95
|
|
446
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
447
|
+
x: x - 3.5,
|
|
448
|
+
y: (yTop + hgt - lh).toFixed(1),
|
|
449
|
+
width: 7,
|
|
450
|
+
height: (lh + 14).toFixed(1),
|
|
451
|
+
rx: 3.5,
|
|
452
|
+
fill: col,
|
|
453
|
+
opacity: 0.95
|
|
454
|
+
}), Array.from({
|
|
455
|
+
length: 5
|
|
456
|
+
}, (_, t) => {
|
|
457
|
+
const ty = yTop + 4 + (hgt - 8) * t / 4;
|
|
458
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Line, {
|
|
459
|
+
x1: x + tubeW / 2 + 3,
|
|
460
|
+
x2: x + tubeW / 2 + 8,
|
|
461
|
+
y1: ty,
|
|
462
|
+
y2: ty,
|
|
463
|
+
stroke: "rgba(255,255,255,0.25)",
|
|
464
|
+
strokeWidth: 1
|
|
465
|
+
}, t);
|
|
466
|
+
}), target != null ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
467
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Line, {
|
|
468
|
+
x1: 100,
|
|
469
|
+
x2: 112,
|
|
470
|
+
y1: P.t + 16 + (hgt - 8) * (1 - target),
|
|
471
|
+
y2: P.t + 16 + (hgt - 8) * (1 - target),
|
|
472
|
+
stroke: _tokens.colors.zoneLow,
|
|
473
|
+
strokeWidth: 1.4
|
|
474
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
475
|
+
x: 116,
|
|
476
|
+
y: P.t + 16 + (hgt - 8) * (1 - target) + 3,
|
|
477
|
+
text: targetLabel,
|
|
478
|
+
color: _tokens.colors.zoneLow,
|
|
479
|
+
anchor: "start"
|
|
480
|
+
})]
|
|
481
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(Reading, {
|
|
482
|
+
x: 170,
|
|
483
|
+
y: 78,
|
|
484
|
+
text: read,
|
|
485
|
+
size: 26,
|
|
486
|
+
color: col
|
|
487
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
488
|
+
x: 170,
|
|
489
|
+
y: 94,
|
|
490
|
+
text: sub ?? 'STRAIN · DAY LOAD',
|
|
491
|
+
color: _tokens.colors.textDim,
|
|
492
|
+
anchor: "start"
|
|
493
|
+
}), pillText ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
|
|
494
|
+
x: 210,
|
|
495
|
+
y: 112,
|
|
496
|
+
text: pillText,
|
|
497
|
+
color: pillColor ?? _tokens.colors.zoneMid
|
|
498
|
+
}) : null]
|
|
499
|
+
});
|
|
500
|
+
} else if (variant === 'fasting-hourglass') {
|
|
501
|
+
/* ------------------------------------------- MT-03 fasting-hourglass */
|
|
502
|
+
const frac = Math.max(0, Math.min(1, remaining));
|
|
503
|
+
const cx = 88;
|
|
504
|
+
const top = P.t + 14;
|
|
505
|
+
const hgt = 92;
|
|
506
|
+
const w2 = 46;
|
|
507
|
+
const topH = (hgt / 2 - 6) * frac;
|
|
508
|
+
const read = reading ?? '4H 20M';
|
|
509
|
+
const pillText = pill ?? 'EATING OPENS 12:30';
|
|
510
|
+
accessibilityLabel = `${heading}: ${read} remaining`;
|
|
511
|
+
content = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
512
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
513
|
+
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`,
|
|
514
|
+
fill: "rgba(255,255,255,0.04)",
|
|
515
|
+
stroke: "rgba(255,255,255,0.25)",
|
|
516
|
+
strokeWidth: 1.4
|
|
517
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
518
|
+
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`,
|
|
519
|
+
fill: _tokens.colors.zoneMid,
|
|
520
|
+
opacity: 0.85
|
|
521
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
522
|
+
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`,
|
|
523
|
+
fill: _tokens.colors.zoneMid,
|
|
524
|
+
opacity: 0.55
|
|
525
|
+
}), frac > 0.03 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Line, {
|
|
526
|
+
x1: cx,
|
|
527
|
+
x2: cx,
|
|
528
|
+
y1: top + hgt / 2 - 2,
|
|
529
|
+
y2: top + hgt - 4,
|
|
530
|
+
stroke: _tokens.colors.zoneMid,
|
|
531
|
+
strokeWidth: 1.2,
|
|
532
|
+
strokeDasharray: "2 3",
|
|
533
|
+
opacity: 0.7
|
|
534
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(Reading, {
|
|
535
|
+
x: 170,
|
|
536
|
+
y: 74,
|
|
537
|
+
text: read,
|
|
538
|
+
size: 24,
|
|
539
|
+
color: _tokens.colors.text
|
|
540
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
541
|
+
x: 170,
|
|
542
|
+
y: 90,
|
|
543
|
+
text: sub ?? 'FAST · 16:8 WINDOW',
|
|
544
|
+
color: _tokens.colors.textDim,
|
|
545
|
+
anchor: "start"
|
|
546
|
+
}), pillText ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
|
|
547
|
+
x: 212,
|
|
548
|
+
y: 108,
|
|
549
|
+
text: pillText,
|
|
550
|
+
color: pillColor ?? _tokens.colors.zoneMid
|
|
551
|
+
}) : null]
|
|
552
|
+
});
|
|
553
|
+
} else if (variant === 'habit-garden') {
|
|
554
|
+
/* ------------------------------------------------ MT-05 habit-garden */
|
|
555
|
+
const baseY = H - P.b - 22;
|
|
556
|
+
const note = caption ?? 'EACH PLANT GROWS WITH ITS STREAK · WILTS WHEN SKIPPED';
|
|
557
|
+
accessibilityLabel = `${heading}: ${habits.length} habit plants`;
|
|
558
|
+
content = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
559
|
+
children: [habits.map((hb, i) => {
|
|
560
|
+
const x = P.l + 30 + i * (plotW - 50) / Math.max(1, habits.length - 1);
|
|
561
|
+
const col = hb.color ?? _tokens.colors.mint;
|
|
562
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
563
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Plant, {
|
|
564
|
+
x: x,
|
|
565
|
+
baseY: baseY,
|
|
566
|
+
stage: Math.min(4, hb.weeks),
|
|
567
|
+
color: col
|
|
568
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
569
|
+
x: x,
|
|
570
|
+
y: baseY + 12,
|
|
571
|
+
text: hb.name,
|
|
572
|
+
color: col
|
|
573
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
574
|
+
x: x,
|
|
575
|
+
y: baseY + 22,
|
|
576
|
+
text: `${hb.weeks * 7}D`
|
|
577
|
+
})]
|
|
578
|
+
}, i);
|
|
579
|
+
}), note ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
580
|
+
x: W / 2,
|
|
581
|
+
y: P.t + 8,
|
|
582
|
+
text: note
|
|
583
|
+
}) : null]
|
|
584
|
+
});
|
|
585
|
+
} else if (variant === 'plant-stages') {
|
|
586
|
+
/* ------------------------------------------------ MT-06 plant-stages */
|
|
587
|
+
const baseY = H - P.b - 24;
|
|
588
|
+
const pillText = pill ?? 'YOUR MEDITATE PLANT · WEEK 4';
|
|
589
|
+
accessibilityLabel = `${heading}: ${stages.length} growth stages`;
|
|
590
|
+
content = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
591
|
+
children: [stages.map((lb, i) => {
|
|
592
|
+
const x = P.l + 34 + i * (plotW - 60) / Math.max(1, stages.length - 1);
|
|
593
|
+
const last = i === stages.length - 1;
|
|
594
|
+
const col = last ? _tokens.colors.mint : alpha(_tokens.colors.mint, 0.4 + i * 0.15);
|
|
595
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
596
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Plant, {
|
|
597
|
+
x: x,
|
|
598
|
+
baseY: baseY,
|
|
599
|
+
stage: Math.min(4, i),
|
|
600
|
+
color: col
|
|
601
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
602
|
+
x: x,
|
|
603
|
+
y: H - P.b - 10,
|
|
604
|
+
text: lb,
|
|
605
|
+
color: last ? _tokens.colors.mint : _tokens.colors.textFaint
|
|
606
|
+
})]
|
|
607
|
+
}, i);
|
|
608
|
+
}), pillText ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
|
|
609
|
+
x: W / 2,
|
|
610
|
+
y: P.t + 12,
|
|
611
|
+
text: pillText,
|
|
612
|
+
color: pillColor ?? _tokens.colors.mint
|
|
613
|
+
}) : null]
|
|
614
|
+
});
|
|
615
|
+
} else if (variant === 'mountain-route') {
|
|
616
|
+
/* ---------------------------------------------- MT-07 mountain-route */
|
|
617
|
+
const pts = route.map(([px, py]) => ({
|
|
618
|
+
x: P.l + 6 + (plotW - 12) * px,
|
|
619
|
+
y: Yv(py)
|
|
620
|
+
}));
|
|
621
|
+
const d = pts.map((q, i) => `${i ? 'L' : 'M'}${q.x.toFixed(1)} ${q.y.toFixed(1)}`).join('');
|
|
622
|
+
const gradId = `lk-metaphor-m-${uid}`;
|
|
623
|
+
const cq = {
|
|
624
|
+
x: P.l + 6 + (plotW - 12) * progress,
|
|
625
|
+
y: Yv(routeY(route, progress))
|
|
626
|
+
};
|
|
627
|
+
accessibilityLabel = `${heading}: ${camps.length} camps, you at ${Math.round(progress * 100)}%`;
|
|
628
|
+
content = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
629
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Defs, {
|
|
630
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.LinearGradient, {
|
|
631
|
+
id: gradId,
|
|
632
|
+
x1: "0",
|
|
633
|
+
y1: "0",
|
|
634
|
+
x2: "0",
|
|
635
|
+
y2: "1",
|
|
636
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Stop, {
|
|
637
|
+
offset: "0%",
|
|
638
|
+
stopColor: _tokens.colors.indigo,
|
|
639
|
+
stopOpacity: 0.35
|
|
640
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Stop, {
|
|
641
|
+
offset: "100%",
|
|
642
|
+
stopColor: _tokens.colors.indigo,
|
|
643
|
+
stopOpacity: 0.02
|
|
644
|
+
})]
|
|
645
|
+
})
|
|
646
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
647
|
+
d: `${d}L${W - P.r} ${H - P.b}L${P.l} ${H - P.b}Z`,
|
|
648
|
+
fill: `url(#${gradId})`
|
|
649
|
+
}), shine ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
650
|
+
d: d,
|
|
651
|
+
fill: "none",
|
|
652
|
+
stroke: _tokens.colors.indigo,
|
|
653
|
+
strokeWidth: 7,
|
|
654
|
+
strokeLinecap: "round",
|
|
655
|
+
opacity: 0.45,
|
|
656
|
+
filter: `url(#${blurId})`
|
|
657
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
658
|
+
d: d,
|
|
659
|
+
fill: "none",
|
|
660
|
+
stroke: _tokens.colors.indigo,
|
|
661
|
+
strokeWidth: 2.2,
|
|
662
|
+
strokeLinecap: "round"
|
|
663
|
+
}), camps.map((cp, i) => {
|
|
664
|
+
const q = {
|
|
665
|
+
x: P.l + 6 + (plotW - 12) * cp.at,
|
|
666
|
+
y: Yv(routeY(route, cp.at))
|
|
667
|
+
};
|
|
668
|
+
const c = cp.summit ? _tokens.colors.lime : _tokens.colors.cyan;
|
|
669
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
670
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Line, {
|
|
671
|
+
x1: q.x.toFixed(1),
|
|
672
|
+
x2: q.x.toFixed(1),
|
|
673
|
+
y1: q.y.toFixed(1),
|
|
674
|
+
y2: (q.y - 14).toFixed(1),
|
|
675
|
+
stroke: "rgba(255,255,255,0.35)",
|
|
676
|
+
strokeWidth: 1.2
|
|
677
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
678
|
+
d: `M${q.x.toFixed(1)} ${(q.y - 14).toFixed(1)}l9 3.5-9 3.5z`,
|
|
679
|
+
fill: c
|
|
680
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
|
|
681
|
+
x: q.x,
|
|
682
|
+
y: q.y + 13,
|
|
683
|
+
text: cp.label,
|
|
684
|
+
color: c
|
|
685
|
+
})]
|
|
686
|
+
}, i);
|
|
687
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(PulseDot, {
|
|
688
|
+
x: cq.x,
|
|
689
|
+
y: cq.y,
|
|
690
|
+
color: _tokens.colors.mint
|
|
691
|
+
}), progressLabel ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
|
|
692
|
+
x: cq.x - 8,
|
|
693
|
+
y: cq.y - 16,
|
|
694
|
+
text: progressLabel,
|
|
695
|
+
color: _tokens.colors.mint,
|
|
696
|
+
anchor: "end"
|
|
697
|
+
}) : null]
|
|
698
|
+
});
|
|
699
|
+
} else if (variant === 'hydration-bottle') {
|
|
700
|
+
/* -------------------------------------------- MT-09 hydration-bottle */
|
|
701
|
+
const lvl = Math.max(0, Math.min(1, level ?? 0.6));
|
|
702
|
+
const bx = 80;
|
|
703
|
+
const by = P.t + 10;
|
|
704
|
+
const bw = 42;
|
|
705
|
+
const bh = 96;
|
|
706
|
+
const lt = by + bh - 2 - lvl * (bh - 6);
|
|
707
|
+
const clipId = `lk-metaphor-b-${uid}`;
|
|
708
|
+
const gradId = `lk-metaphor-w-${uid}`;
|
|
709
|
+
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`;
|
|
710
|
+
const read = reading ?? '1.6 L';
|
|
711
|
+
const pillText = pill ?? 'NEXT GLASS · 15:30';
|
|
712
|
+
const bubbles = [[0.35, 0.4, 1.6], [0.6, 0.2, 1.2], [0.5, 0.65, 2]];
|
|
713
|
+
accessibilityLabel = `${heading}: ${read}, ${Math.round(lvl * glasses)} of ${glasses} glasses`;
|
|
714
|
+
content = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
715
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.Defs, {
|
|
716
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.ClipPath, {
|
|
717
|
+
id: clipId,
|
|
718
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
719
|
+
x: bx + 1.5,
|
|
720
|
+
y: by + 1.5,
|
|
721
|
+
width: bw - 3,
|
|
722
|
+
height: bh - 3,
|
|
723
|
+
rx: 10.5
|
|
724
|
+
})
|
|
725
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.LinearGradient, {
|
|
726
|
+
id: gradId,
|
|
727
|
+
x1: "0",
|
|
728
|
+
y1: "0",
|
|
729
|
+
x2: "0",
|
|
730
|
+
y2: "1",
|
|
731
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Stop, {
|
|
732
|
+
offset: "0%",
|
|
733
|
+
stopColor: _tokens.colors.cyan,
|
|
734
|
+
stopOpacity: 0.85
|
|
735
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Stop, {
|
|
736
|
+
offset: "100%",
|
|
737
|
+
stopColor: _tokens.colors.cyan,
|
|
738
|
+
stopOpacity: 0.4
|
|
739
|
+
})]
|
|
740
|
+
})]
|
|
741
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
742
|
+
x: bx + bw / 2 - 7,
|
|
743
|
+
y: by - 8,
|
|
744
|
+
width: 14,
|
|
745
|
+
height: 10,
|
|
746
|
+
rx: 3,
|
|
747
|
+
fill: "rgba(255,255,255,0.18)"
|
|
748
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
749
|
+
x: bx,
|
|
750
|
+
y: by,
|
|
751
|
+
width: bw,
|
|
752
|
+
height: bh,
|
|
753
|
+
rx: 12,
|
|
754
|
+
fill: "rgba(255,255,255,0.045)",
|
|
755
|
+
stroke: "rgba(255,255,255,0.24)",
|
|
756
|
+
strokeWidth: 1.4
|
|
757
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
758
|
+
d: wave,
|
|
759
|
+
fill: `url(#${gradId})`,
|
|
760
|
+
clipPath: `url(#${clipId})`
|
|
761
|
+
}), bubbles.map((b, i) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
|
|
762
|
+
cx: bx + bw * b[0],
|
|
763
|
+
cy: by + bh - (bh - 6) * lvl * b[1],
|
|
764
|
+
r: b[2],
|
|
765
|
+
fill: "none",
|
|
766
|
+
stroke: "rgba(255,255,255,0.4)",
|
|
767
|
+
strokeWidth: 0.8,
|
|
768
|
+
clipPath: `url(#${clipId})`
|
|
769
|
+
}, i)), Array.from({
|
|
770
|
+
length: glasses
|
|
771
|
+
}, (_, gi) => {
|
|
772
|
+
const g = gi + 1;
|
|
773
|
+
const gy = by + bh - (bh - 6) * g / glasses;
|
|
774
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Line, {
|
|
775
|
+
x1: bx + bw + 4,
|
|
776
|
+
x2: bx + bw + (g % 4 === 0 ? 12 : 8),
|
|
777
|
+
y1: gy,
|
|
778
|
+
y2: gy,
|
|
779
|
+
stroke: g <= Math.round(lvl * glasses) ? _tokens.colors.cyan : 'rgba(255,255,255,0.2)',
|
|
780
|
+
strokeWidth: 1.2
|
|
781
|
+
}, g);
|
|
782
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Reading, {
|
|
783
|
+
x: 176,
|
|
784
|
+
y: 70,
|
|
785
|
+
text: read,
|
|
786
|
+
size: 24,
|
|
787
|
+
color: _tokens.colors.cyan
|
|
788
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
789
|
+
x: 176,
|
|
790
|
+
y: 86,
|
|
791
|
+
text: sub ?? 'OF 2.6 L · 5 OF 8 GLASSES',
|
|
792
|
+
color: _tokens.colors.textDim,
|
|
793
|
+
anchor: "start"
|
|
794
|
+
}), pillText ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
|
|
795
|
+
x: 218,
|
|
796
|
+
y: 104,
|
|
797
|
+
text: pillText,
|
|
798
|
+
color: pillColor ?? _tokens.colors.cyan
|
|
799
|
+
}) : null]
|
|
800
|
+
});
|
|
801
|
+
} else if (variant === 'meal-plates') {
|
|
802
|
+
/* --------------------------------------------------- MT-10 meal-plates */
|
|
803
|
+
const y = H / 2 + 10;
|
|
804
|
+
let lx = W - P.r - 2;
|
|
805
|
+
accessibilityLabel = `${heading}: ${meals.length} meals on the day strip`;
|
|
806
|
+
content = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
807
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Line, {
|
|
808
|
+
x1: P.l + 6,
|
|
809
|
+
x2: W - P.r - 6,
|
|
810
|
+
y1: y,
|
|
811
|
+
y2: y,
|
|
812
|
+
stroke: "rgba(255,255,255,0.14)",
|
|
813
|
+
strokeWidth: 1.5,
|
|
814
|
+
strokeLinecap: "round"
|
|
815
|
+
}), meals.map((ml, i) => {
|
|
816
|
+
const x = P.l + 6 + (plotW - 12) * ml.at;
|
|
817
|
+
let a = 0;
|
|
818
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
819
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
|
|
820
|
+
cx: x.toFixed(1),
|
|
821
|
+
cy: y - 22,
|
|
822
|
+
r: 13,
|
|
823
|
+
fill: "rgba(255,255,255,0.05)",
|
|
824
|
+
stroke: "rgba(255,255,255,0.2)",
|
|
825
|
+
strokeWidth: 1
|
|
826
|
+
}), ml.macros.map((f, fi) => {
|
|
827
|
+
const a1 = a + f * 360;
|
|
828
|
+
const d = arcPath(x, y - 22, 9, a + 2, a1 - 2);
|
|
829
|
+
a = a1;
|
|
830
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
831
|
+
d: d,
|
|
832
|
+
fill: "none",
|
|
833
|
+
stroke: MACRO_COLORS[fi],
|
|
834
|
+
strokeWidth: 5,
|
|
835
|
+
strokeLinecap: "butt"
|
|
836
|
+
}, fi);
|
|
837
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Line, {
|
|
838
|
+
x1: x.toFixed(1),
|
|
839
|
+
x2: x.toFixed(1),
|
|
840
|
+
y1: y - 9,
|
|
841
|
+
y2: y,
|
|
842
|
+
stroke: "rgba(255,255,255,0.25)",
|
|
843
|
+
strokeWidth: 1
|
|
844
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
|
|
845
|
+
cx: x.toFixed(1),
|
|
846
|
+
cy: y,
|
|
847
|
+
r: 2.4,
|
|
848
|
+
fill: _tokens.colors.text
|
|
849
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
850
|
+
x: x,
|
|
851
|
+
y: y + 14,
|
|
852
|
+
text: ml.time
|
|
853
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
854
|
+
x: x,
|
|
855
|
+
y: y - 42,
|
|
856
|
+
text: `${ml.kcal} KCAL`,
|
|
857
|
+
color: _tokens.colors.textDim
|
|
858
|
+
})]
|
|
859
|
+
}, i);
|
|
860
|
+
}), legend ? MACRO_LEGEND.map(([name, col]) => {
|
|
861
|
+
const tx = lx;
|
|
862
|
+
lx -= name.length * 5.6 + 8;
|
|
863
|
+
const dx = lx;
|
|
864
|
+
lx -= 8;
|
|
865
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
866
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
867
|
+
x: tx,
|
|
868
|
+
y: 11,
|
|
869
|
+
text: name,
|
|
870
|
+
color: _tokens.colors.textDim,
|
|
871
|
+
anchor: "end"
|
|
872
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
|
|
873
|
+
cx: dx,
|
|
874
|
+
cy: 8.2,
|
|
875
|
+
r: 3,
|
|
876
|
+
fill: col
|
|
877
|
+
})]
|
|
878
|
+
}, name);
|
|
879
|
+
}) : null]
|
|
880
|
+
});
|
|
881
|
+
} else if (variant === 'breath-pacer') {
|
|
882
|
+
/* -------------------------------------------------- MT-11 breath-pacer */
|
|
883
|
+
const bx = 118;
|
|
884
|
+
const by = 78;
|
|
885
|
+
const [tIn, tHold, tOut] = pattern;
|
|
886
|
+
const note = caption ?? `${tIn}-${tHold}-${tOut} · RING GROWS ON INHALE`;
|
|
887
|
+
heading = title ?? `BREATHE · ${tIn}-${tHold}-${tOut}`;
|
|
888
|
+
accessibilityLabel = `${heading}: in ${tIn}s, hold ${tHold}s, out ${tOut}s`;
|
|
889
|
+
content = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
890
|
+
children: [[24, 34, 44].map(r => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
|
|
891
|
+
cx: bx,
|
|
892
|
+
cy: by,
|
|
893
|
+
r: r,
|
|
894
|
+
fill: "none",
|
|
895
|
+
stroke: "rgba(255,255,255,0.07)",
|
|
896
|
+
strokeWidth: 1
|
|
897
|
+
}, r)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
|
|
898
|
+
cx: bx,
|
|
899
|
+
cy: by,
|
|
900
|
+
r: 31,
|
|
901
|
+
fill: _tokens.colors.cyan,
|
|
902
|
+
opacity: 0.22
|
|
903
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
|
|
904
|
+
cx: bx,
|
|
905
|
+
cy: by,
|
|
906
|
+
r: 31,
|
|
907
|
+
fill: "none",
|
|
908
|
+
stroke: _tokens.colors.cyan,
|
|
909
|
+
strokeWidth: 2
|
|
910
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
911
|
+
x: bx,
|
|
912
|
+
y: by + 3,
|
|
913
|
+
text: centerLabel,
|
|
914
|
+
color: _tokens.colors.text
|
|
915
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
916
|
+
x: 236,
|
|
917
|
+
y: 56,
|
|
918
|
+
text: `IN · ${tIn}S`,
|
|
919
|
+
color: _tokens.colors.cyan,
|
|
920
|
+
anchor: "start"
|
|
921
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
922
|
+
x: 236,
|
|
923
|
+
y: 74,
|
|
924
|
+
text: `HOLD · ${tHold}S`,
|
|
925
|
+
color: _tokens.colors.textDim,
|
|
926
|
+
anchor: "start"
|
|
927
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
928
|
+
x: 236,
|
|
929
|
+
y: 92,
|
|
930
|
+
text: `OUT · ${tOut}S`,
|
|
931
|
+
color: _tokens.colors.violet,
|
|
932
|
+
anchor: "start"
|
|
933
|
+
}), note ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
934
|
+
x: bx,
|
|
935
|
+
y: 140,
|
|
936
|
+
text: note
|
|
937
|
+
}) : null]
|
|
938
|
+
});
|
|
939
|
+
} else {
|
|
940
|
+
/* ------------------------------------------------ MT-12 breath-session */
|
|
941
|
+
const norm = v => (v - 5) / 11;
|
|
942
|
+
const bp = bpm.map((v, i) => ({
|
|
943
|
+
x: P.l + (bpm.length <= 1 ? plotW / 2 : i * plotW / (bpm.length - 1)),
|
|
944
|
+
y: Yv(Math.max(0, Math.min(1, norm(v))))
|
|
945
|
+
}));
|
|
946
|
+
const zoneY = Yv(Math.max(0, Math.min(1, norm(calmThreshold))));
|
|
947
|
+
const cz = markerAt != null ? bp[Math.max(0, Math.min(bp.length - 1, markerAt))] : undefined;
|
|
948
|
+
const first = bpm[0] ?? 0;
|
|
949
|
+
const last = bpm[bpm.length - 1] ?? 0;
|
|
950
|
+
const legendText = caption ?? `BREATHS/MIN ${Math.round(first)} → ${Math.round(last)}`;
|
|
951
|
+
accessibilityLabel = `${heading}: breaths per minute ${Math.round(first)} to ${Math.round(last)}`;
|
|
952
|
+
content = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
953
|
+
children: [[0.25, 0.5, 0.75].map(f => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Line, {
|
|
954
|
+
x1: P.l,
|
|
955
|
+
x2: W - P.r,
|
|
956
|
+
y1: P.t + plotH * f,
|
|
957
|
+
y2: P.t + plotH * f,
|
|
958
|
+
stroke: "rgba(255,255,255,0.05)",
|
|
959
|
+
strokeWidth: 1
|
|
960
|
+
}, f)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Line, {
|
|
961
|
+
x1: P.l,
|
|
962
|
+
x2: W - P.r,
|
|
963
|
+
y1: H - P.b,
|
|
964
|
+
y2: H - P.b,
|
|
965
|
+
stroke: "rgba(255,255,255,0.09)",
|
|
966
|
+
strokeWidth: 1
|
|
967
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Rect, {
|
|
968
|
+
x: P.l,
|
|
969
|
+
y: zoneY,
|
|
970
|
+
width: plotW,
|
|
971
|
+
height: Math.max(0, Yv(0) - zoneY),
|
|
972
|
+
fill: _tokens.colors.cyan,
|
|
973
|
+
opacity: 0.07
|
|
974
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
975
|
+
x: P.l + 4,
|
|
976
|
+
y: zoneY + 10,
|
|
977
|
+
text: `CALM ZONE <${calmThreshold}/MIN`,
|
|
978
|
+
color: _tokens.colors.cyan,
|
|
979
|
+
anchor: "start"
|
|
980
|
+
}), bp.length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Path, {
|
|
981
|
+
d: smoothPath(bp),
|
|
982
|
+
fill: "none",
|
|
983
|
+
stroke: _tokens.colors.cyan,
|
|
984
|
+
strokeWidth: 2.2,
|
|
985
|
+
strokeLinecap: "round"
|
|
986
|
+
}) : null, cz ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.G, {
|
|
987
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Circle, {
|
|
988
|
+
cx: cz.x.toFixed(1),
|
|
989
|
+
cy: cz.y.toFixed(1),
|
|
990
|
+
r: 3.4,
|
|
991
|
+
fill: _tokens.colors.cyan
|
|
992
|
+
}), markerLabel ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Tag, {
|
|
993
|
+
x: cz.x,
|
|
994
|
+
y: cz.y - 14,
|
|
995
|
+
text: markerLabel,
|
|
996
|
+
color: _tokens.colors.cyan
|
|
997
|
+
}) : null]
|
|
998
|
+
}) : null, axisLabels.map((tk, i) => {
|
|
999
|
+
const f = axisLabels.length <= 1 ? 0.5 : i / (axisLabels.length - 1);
|
|
1000
|
+
const anchor = i === 0 ? 'start' : i === axisLabels.length - 1 ? 'end' : 'middle';
|
|
1001
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
1002
|
+
x: P.l + plotW * f,
|
|
1003
|
+
y: H - 3,
|
|
1004
|
+
text: tk,
|
|
1005
|
+
anchor: anchor
|
|
1006
|
+
}, i);
|
|
1007
|
+
}), legendText ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
1008
|
+
x: W - P.r - 4,
|
|
1009
|
+
y: 26,
|
|
1010
|
+
text: legendText,
|
|
1011
|
+
color: _tokens.colors.textDim,
|
|
1012
|
+
anchor: "end"
|
|
1013
|
+
}) : null]
|
|
1014
|
+
});
|
|
1015
|
+
}
|
|
1016
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
1017
|
+
accessibilityRole: "image",
|
|
1018
|
+
accessibilityLabel: accessibilityLabel,
|
|
1019
|
+
style: [{
|
|
1020
|
+
width,
|
|
1021
|
+
height
|
|
1022
|
+
}, style],
|
|
1023
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeSvg.default, {
|
|
1024
|
+
width: width,
|
|
1025
|
+
height: height,
|
|
1026
|
+
viewBox: `0 0 ${W} ${H}`,
|
|
1027
|
+
children: [shine ?
|
|
1028
|
+
/*#__PURE__*/
|
|
1029
|
+
/* real Gaussian blur for the glows (Fabric-native in react-native-svg
|
|
1030
|
+
15) — the native twin of the web `blur(5px)` underlays. Region in
|
|
1031
|
+
user space over the full canvas so flat shapes never clip. */
|
|
1032
|
+
(0, _jsxRuntime.jsx)(_reactNativeSvg.Defs, {
|
|
1033
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.Filter, {
|
|
1034
|
+
id: blurId,
|
|
1035
|
+
filterUnits: "userSpaceOnUse",
|
|
1036
|
+
x: -10,
|
|
1037
|
+
y: -10,
|
|
1038
|
+
width: W + 20,
|
|
1039
|
+
height: H + 20,
|
|
1040
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeSvg.FeGaussianBlur, {
|
|
1041
|
+
stdDeviation: 2.5
|
|
1042
|
+
})
|
|
1043
|
+
})
|
|
1044
|
+
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(Label, {
|
|
1045
|
+
x: P.l + 2,
|
|
1046
|
+
y: 11,
|
|
1047
|
+
text: heading,
|
|
1048
|
+
anchor: "start"
|
|
1049
|
+
}), content]
|
|
1050
|
+
})
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
//# sourceMappingURL=MetaphorWidget.js.map
|