@lockin90/ui-native 0.0.0-stage → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Accordion.js +144 -0
- package/lib/commonjs/components/Accordion.js.map +1 -0
- package/lib/commonjs/components/AchievementBadge.js +225 -0
- package/lib/commonjs/components/AchievementBadge.js.map +1 -0
- package/lib/commonjs/components/Alert.js +232 -0
- package/lib/commonjs/components/Alert.js.map +1 -0
- package/lib/commonjs/components/AreaChart.js +506 -0
- package/lib/commonjs/components/AreaChart.js.map +1 -0
- package/lib/commonjs/components/AuroraBackground.js +267 -0
- package/lib/commonjs/components/AuroraBackground.js.map +1 -0
- package/lib/commonjs/components/Avatar.js +187 -0
- package/lib/commonjs/components/Avatar.js.map +1 -0
- package/lib/commonjs/components/AvatarStack.js +95 -0
- package/lib/commonjs/components/AvatarStack.js.map +1 -0
- package/lib/commonjs/components/BackLink.js +77 -0
- package/lib/commonjs/components/BackLink.js.map +1 -0
- package/lib/commonjs/components/Badge.js +136 -0
- package/lib/commonjs/components/Badge.js.map +1 -0
- package/lib/commonjs/components/BarChart.js +641 -0
- package/lib/commonjs/components/BarChart.js.map +1 -0
- package/lib/commonjs/components/BarFill.js +55 -0
- package/lib/commonjs/components/BarFill.js.map +1 -0
- package/lib/commonjs/components/BeeswarmChart.js +615 -0
- package/lib/commonjs/components/BeeswarmChart.js.map +1 -0
- package/lib/commonjs/components/BiomarkerRange.js +610 -0
- package/lib/commonjs/components/BiomarkerRange.js.map +1 -0
- package/lib/commonjs/components/BodyBattery.js +563 -0
- package/lib/commonjs/components/BodyBattery.js.map +1 -0
- package/lib/commonjs/components/BrandMark.js +184 -0
- package/lib/commonjs/components/BrandMark.js.map +1 -0
- package/lib/commonjs/components/BulletChart.js +406 -0
- package/lib/commonjs/components/BulletChart.js.map +1 -0
- package/lib/commonjs/components/Button.js +154 -0
- package/lib/commonjs/components/Button.js.map +1 -0
- package/lib/commonjs/components/CaffeineClock.js +491 -0
- package/lib/commonjs/components/CaffeineClock.js.map +1 -0
- package/lib/commonjs/components/Card.js +142 -0
- package/lib/commonjs/components/Card.js.map +1 -0
- package/lib/commonjs/components/CharCounter.js +106 -0
- package/lib/commonjs/components/CharCounter.js.map +1 -0
- package/lib/commonjs/components/ChartState.js +554 -0
- package/lib/commonjs/components/ChartState.js.map +1 -0
- package/lib/commonjs/components/Checkbox.js +180 -0
- package/lib/commonjs/components/Checkbox.js.map +1 -0
- package/lib/commonjs/components/Chip.js +218 -0
- package/lib/commonjs/components/Chip.js.map +1 -0
- package/lib/commonjs/components/ChoiceChip.js +133 -0
- package/lib/commonjs/components/ChoiceChip.js.map +1 -0
- package/lib/commonjs/components/CodeBlock.js +126 -0
- package/lib/commonjs/components/CodeBlock.js.map +1 -0
- package/lib/commonjs/components/CodeField.js +129 -0
- package/lib/commonjs/components/CodeField.js.map +1 -0
- package/lib/commonjs/components/ColorPicker.js +181 -0
- package/lib/commonjs/components/ColorPicker.js.map +1 -0
- package/lib/commonjs/components/ComboChart.js +419 -0
- package/lib/commonjs/components/ComboChart.js.map +1 -0
- package/lib/commonjs/components/Combobox.js +108 -0
- package/lib/commonjs/components/Combobox.js.map +1 -0
- package/lib/commonjs/components/CompareChart.js +627 -0
- package/lib/commonjs/components/CompareChart.js.map +1 -0
- package/lib/commonjs/components/CompositeChart.js +654 -0
- package/lib/commonjs/components/CompositeChart.js.map +1 -0
- package/lib/commonjs/components/Countdown.js +152 -0
- package/lib/commonjs/components/Countdown.js.map +1 -0
- package/lib/commonjs/components/CreditCardVisual.js +167 -0
- package/lib/commonjs/components/CreditCardVisual.js.map +1 -0
- package/lib/commonjs/components/DateField.js +365 -0
- package/lib/commonjs/components/DateField.js.map +1 -0
- package/lib/commonjs/components/DayTimelineBlocks.js +253 -0
- package/lib/commonjs/components/DayTimelineBlocks.js.map +1 -0
- package/lib/commonjs/components/DayWheel.js +467 -0
- package/lib/commonjs/components/DayWheel.js.map +1 -0
- package/lib/commonjs/components/DeltaPill.js +154 -0
- package/lib/commonjs/components/DeltaPill.js.map +1 -0
- package/lib/commonjs/components/DistributionChart.js +776 -0
- package/lib/commonjs/components/DistributionChart.js.map +1 -0
- package/lib/commonjs/components/Divider.js +74 -0
- package/lib/commonjs/components/Divider.js.map +1 -0
- package/lib/commonjs/components/DonutChart.js +337 -0
- package/lib/commonjs/components/DonutChart.js.map +1 -0
- package/lib/commonjs/components/DotsLoader.js +94 -0
- package/lib/commonjs/components/DotsLoader.js.map +1 -0
- package/lib/commonjs/components/EffectAttributionLine.js +105 -0
- package/lib/commonjs/components/EffectAttributionLine.js.map +1 -0
- package/lib/commonjs/components/EmptyState.js +120 -0
- package/lib/commonjs/components/EmptyState.js.map +1 -0
- package/lib/commonjs/components/EngagementBar.js +122 -0
- package/lib/commonjs/components/EngagementBar.js.map +1 -0
- package/lib/commonjs/components/EnvironmentChart.js +573 -0
- package/lib/commonjs/components/EnvironmentChart.js.map +1 -0
- package/lib/commonjs/components/Eyebrow.js +32 -0
- package/lib/commonjs/components/Eyebrow.js.map +1 -0
- package/lib/commonjs/components/FocalPointPicker.js +196 -0
- package/lib/commonjs/components/FocalPointPicker.js.map +1 -0
- package/lib/commonjs/components/FollowButton.js +95 -0
- package/lib/commonjs/components/FollowButton.js.map +1 -0
- package/lib/commonjs/components/ForecastCallout.js +116 -0
- package/lib/commonjs/components/ForecastCallout.js.map +1 -0
- package/lib/commonjs/components/FormField.js +204 -0
- package/lib/commonjs/components/FormField.js.map +1 -0
- package/lib/commonjs/components/FunnelChart.js +260 -0
- package/lib/commonjs/components/FunnelChart.js.map +1 -0
- package/lib/commonjs/components/Gauge.js +252 -0
- package/lib/commonjs/components/Gauge.js.map +1 -0
- package/lib/commonjs/components/GradientText.js +136 -0
- package/lib/commonjs/components/GradientText.js.map +1 -0
- package/lib/commonjs/components/Heatmap.js +419 -0
- package/lib/commonjs/components/Heatmap.js.map +1 -0
- package/lib/commonjs/components/Highlight.js +55 -0
- package/lib/commonjs/components/Highlight.js.map +1 -0
- package/lib/commonjs/components/Hypnogram.js +842 -0
- package/lib/commonjs/components/Hypnogram.js.map +1 -0
- package/lib/commonjs/components/Icon.js +486 -0
- package/lib/commonjs/components/Icon.js.map +1 -0
- package/lib/commonjs/components/Input.js +142 -0
- package/lib/commonjs/components/Input.js.map +1 -0
- package/lib/commonjs/components/InsightCard.js +119 -0
- package/lib/commonjs/components/InsightCard.js.map +1 -0
- package/lib/commonjs/components/KeyValue.js +93 -0
- package/lib/commonjs/components/KeyValue.js.map +1 -0
- package/lib/commonjs/components/LeaderboardRow.js +140 -0
- package/lib/commonjs/components/LeaderboardRow.js.map +1 -0
- package/lib/commonjs/components/LineChart.js +1544 -0
- package/lib/commonjs/components/LineChart.js.map +1 -0
- package/lib/commonjs/components/ListRow.js +122 -0
- package/lib/commonjs/components/ListRow.js.map +1 -0
- package/lib/commonjs/components/Menu.js +183 -0
- package/lib/commonjs/components/Menu.js.map +1 -0
- package/lib/commonjs/components/MessageBubble.js +117 -0
- package/lib/commonjs/components/MessageBubble.js.map +1 -0
- package/lib/commonjs/components/MessageComposer.js +212 -0
- package/lib/commonjs/components/MessageComposer.js.map +1 -0
- package/lib/commonjs/components/MetaphorWidget.js +1053 -0
- package/lib/commonjs/components/MetaphorWidget.js.map +1 -0
- package/lib/commonjs/components/Meter.js +173 -0
- package/lib/commonjs/components/Meter.js.map +1 -0
- package/lib/commonjs/components/MetricTile.js +268 -0
- package/lib/commonjs/components/MetricTile.js.map +1 -0
- package/lib/commonjs/components/MiniRing.js +30 -0
- package/lib/commonjs/components/MiniRing.js.map +1 -0
- package/lib/commonjs/components/Modal.js +153 -0
- package/lib/commonjs/components/Modal.js.map +1 -0
- package/lib/commonjs/components/MuscleDiagram.js +326 -0
- package/lib/commonjs/components/MuscleDiagram.js.map +1 -0
- package/lib/commonjs/components/NoteField.js +73 -0
- package/lib/commonjs/components/NoteField.js.map +1 -0
- package/lib/commonjs/components/NotificationRow.js +234 -0
- package/lib/commonjs/components/NotificationRow.js.map +1 -0
- package/lib/commonjs/components/Pagination.js +212 -0
- package/lib/commonjs/components/Pagination.js.map +1 -0
- package/lib/commonjs/components/PasswordInput.js +120 -0
- package/lib/commonjs/components/PasswordInput.js.map +1 -0
- package/lib/commonjs/components/PasswordStrengthMeter.js +108 -0
- package/lib/commonjs/components/PasswordStrengthMeter.js.map +1 -0
- package/lib/commonjs/components/PendingPatternCard.js +182 -0
- package/lib/commonjs/components/PendingPatternCard.js.map +1 -0
- package/lib/commonjs/components/PhaseWheel.js +704 -0
- package/lib/commonjs/components/PhaseWheel.js.map +1 -0
- package/lib/commonjs/components/PkChart.js +566 -0
- package/lib/commonjs/components/PkChart.js.map +1 -0
- package/lib/commonjs/components/Popover.js +234 -0
- package/lib/commonjs/components/Popover.js.map +1 -0
- package/lib/commonjs/components/PrBadge.js +71 -0
- package/lib/commonjs/components/PrBadge.js.map +1 -0
- package/lib/commonjs/components/PrCard.js +150 -0
- package/lib/commonjs/components/PrCard.js.map +1 -0
- package/lib/commonjs/components/PricingTierCard.js +237 -0
- package/lib/commonjs/components/PricingTierCard.js.map +1 -0
- package/lib/commonjs/components/ProGate.js +235 -0
- package/lib/commonjs/components/ProGate.js.map +1 -0
- package/lib/commonjs/components/ProgressBar.js +515 -0
- package/lib/commonjs/components/ProgressBar.js.map +1 -0
- package/lib/commonjs/components/Pulse.js +36 -0
- package/lib/commonjs/components/Pulse.js.map +1 -0
- package/lib/commonjs/components/QRCode.js +519 -0
- package/lib/commonjs/components/QRCode.js.map +1 -0
- package/lib/commonjs/components/RadarChart.js +492 -0
- package/lib/commonjs/components/RadarChart.js.map +1 -0
- package/lib/commonjs/components/RangeBar.js +191 -0
- package/lib/commonjs/components/RangeBar.js.map +1 -0
- package/lib/commonjs/components/ReauthDialog.js +261 -0
- package/lib/commonjs/components/ReauthDialog.js.map +1 -0
- package/lib/commonjs/components/RestTimer.js +246 -0
- package/lib/commonjs/components/RestTimer.js.map +1 -0
- package/lib/commonjs/components/RichText.js +81 -0
- package/lib/commonjs/components/RichText.js.map +1 -0
- package/lib/commonjs/components/RichTextEditor.js +274 -0
- package/lib/commonjs/components/RichTextEditor.js.map +1 -0
- package/lib/commonjs/components/Ring.js +239 -0
- package/lib/commonjs/components/Ring.js.map +1 -0
- package/lib/commonjs/components/RoseChart.js +376 -0
- package/lib/commonjs/components/RoseChart.js.map +1 -0
- package/lib/commonjs/components/SankeyChart.js +652 -0
- package/lib/commonjs/components/SankeyChart.js.map +1 -0
- package/lib/commonjs/components/ScatterChart.js +432 -0
- package/lib/commonjs/components/ScatterChart.js.map +1 -0
- package/lib/commonjs/components/ScrollProgress.js +66 -0
- package/lib/commonjs/components/ScrollProgress.js.map +1 -0
- package/lib/commonjs/components/SectionDivider.js +59 -0
- package/lib/commonjs/components/SectionDivider.js.map +1 -0
- package/lib/commonjs/components/SectionHeader.js +53 -0
- package/lib/commonjs/components/SectionHeader.js.map +1 -0
- package/lib/commonjs/components/SegmentedTabs.js +336 -0
- package/lib/commonjs/components/SegmentedTabs.js.map +1 -0
- package/lib/commonjs/components/Select.js +380 -0
- package/lib/commonjs/components/Select.js.map +1 -0
- package/lib/commonjs/components/SessionBanner.js +220 -0
- package/lib/commonjs/components/SessionBanner.js.map +1 -0
- package/lib/commonjs/components/SessionChart.js +1046 -0
- package/lib/commonjs/components/SessionChart.js.map +1 -0
- package/lib/commonjs/components/SetTable.js +351 -0
- package/lib/commonjs/components/SetTable.js.map +1 -0
- package/lib/commonjs/components/ShareCard.js +227 -0
- package/lib/commonjs/components/ShareCard.js.map +1 -0
- package/lib/commonjs/components/Sheet.js +220 -0
- package/lib/commonjs/components/Sheet.js.map +1 -0
- package/lib/commonjs/components/Skeleton.js +28 -0
- package/lib/commonjs/components/Skeleton.js.map +1 -0
- package/lib/commonjs/components/Slider.js +173 -0
- package/lib/commonjs/components/Slider.js.map +1 -0
- package/lib/commonjs/components/Sortable.js +230 -0
- package/lib/commonjs/components/Sortable.js.map +1 -0
- package/lib/commonjs/components/SourceChip.js +111 -0
- package/lib/commonjs/components/SourceChip.js.map +1 -0
- package/lib/commonjs/components/Sparkline.js +110 -0
- package/lib/commonjs/components/Sparkline.js.map +1 -0
- package/lib/commonjs/components/Spinner.js +132 -0
- package/lib/commonjs/components/Spinner.js.map +1 -0
- package/lib/commonjs/components/SplitButton.js +158 -0
- package/lib/commonjs/components/SplitButton.js.map +1 -0
- package/lib/commonjs/components/SsoButton.js +109 -0
- package/lib/commonjs/components/SsoButton.js.map +1 -0
- package/lib/commonjs/components/StackedBar.js +133 -0
- package/lib/commonjs/components/StackedBar.js.map +1 -0
- package/lib/commonjs/components/Stat.js +167 -0
- package/lib/commonjs/components/Stat.js.map +1 -0
- package/lib/commonjs/components/StatTile.js +644 -0
- package/lib/commonjs/components/StatTile.js.map +1 -0
- package/lib/commonjs/components/StateLabel.js +73 -0
- package/lib/commonjs/components/StateLabel.js.map +1 -0
- package/lib/commonjs/components/StatusDot.js +65 -0
- package/lib/commonjs/components/StatusDot.js.map +1 -0
- package/lib/commonjs/components/Stepper.js +355 -0
- package/lib/commonjs/components/Stepper.js.map +1 -0
- package/lib/commonjs/components/SupplementChart.js +1002 -0
- package/lib/commonjs/components/SupplementChart.js.map +1 -0
- package/lib/commonjs/components/TabBar.js +303 -0
- package/lib/commonjs/components/TabBar.js.map +1 -0
- package/lib/commonjs/components/Table.js +458 -0
- package/lib/commonjs/components/Table.js.map +1 -0
- package/lib/commonjs/components/Tabs.js +88 -0
- package/lib/commonjs/components/Tabs.js.map +1 -0
- package/lib/commonjs/components/TagCloud.js +118 -0
- package/lib/commonjs/components/TagCloud.js.map +1 -0
- package/lib/commonjs/components/TagInput.js +298 -0
- package/lib/commonjs/components/TagInput.js.map +1 -0
- package/lib/commonjs/components/TemplateCard.js +206 -0
- package/lib/commonjs/components/TemplateCard.js.map +1 -0
- package/lib/commonjs/components/Timeline.js +219 -0
- package/lib/commonjs/components/Timeline.js.map +1 -0
- package/lib/commonjs/components/TimelineChart.js +1228 -0
- package/lib/commonjs/components/TimelineChart.js.map +1 -0
- package/lib/commonjs/components/Toast.js +156 -0
- package/lib/commonjs/components/Toast.js.map +1 -0
- package/lib/commonjs/components/Toggle.js +166 -0
- package/lib/commonjs/components/Toggle.js.map +1 -0
- package/lib/commonjs/components/Toolbar.js +310 -0
- package/lib/commonjs/components/Toolbar.js.map +1 -0
- package/lib/commonjs/components/Tooltip.js +245 -0
- package/lib/commonjs/components/Tooltip.js.map +1 -0
- package/lib/commonjs/components/TypingIndicator.js +112 -0
- package/lib/commonjs/components/TypingIndicator.js.map +1 -0
- package/lib/commonjs/components/UnitChart.js +482 -0
- package/lib/commonjs/components/UnitChart.js.map +1 -0
- package/lib/commonjs/components/VersionBadge.js +133 -0
- package/lib/commonjs/components/VersionBadge.js.map +1 -0
- package/lib/commonjs/components/VideoThumbnail.js +152 -0
- package/lib/commonjs/components/VideoThumbnail.js.map +1 -0
- package/lib/commonjs/components/VitalsStrip.js +766 -0
- package/lib/commonjs/components/VitalsStrip.js.map +1 -0
- package/lib/commonjs/components/WatchComplication.js +563 -0
- package/lib/commonjs/components/WatchComplication.js.map +1 -0
- package/lib/commonjs/components/ZoneBar.js +149 -0
- package/lib/commonjs/components/ZoneBar.js.map +1 -0
- package/lib/commonjs/components/ZonePyramid.js +398 -0
- package/lib/commonjs/components/ZonePyramid.js.map +1 -0
- package/lib/commonjs/index.js +1140 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/internal/optionalBlur.js +34 -0
- package/lib/commonjs/internal/optionalBlur.js.map +1 -0
- package/lib/commonjs/internal/optionalHaptics.js +40 -0
- package/lib/commonjs/internal/optionalHaptics.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/theme.js +73 -0
- package/lib/commonjs/theme.js.map +1 -0
- package/lib/module/components/Accordion.js +139 -0
- package/lib/module/components/Accordion.js.map +1 -0
- package/lib/module/components/AchievementBadge.js +223 -0
- package/lib/module/components/AchievementBadge.js.map +1 -0
- package/lib/module/components/Alert.js +227 -0
- package/lib/module/components/Alert.js.map +1 -0
- package/lib/module/components/AreaChart.js +501 -0
- package/lib/module/components/AreaChart.js.map +1 -0
- package/lib/module/components/AuroraBackground.js +262 -0
- package/lib/module/components/AuroraBackground.js.map +1 -0
- package/lib/module/components/Avatar.js +183 -0
- package/lib/module/components/Avatar.js.map +1 -0
- package/lib/module/components/AvatarStack.js +91 -0
- package/lib/module/components/AvatarStack.js.map +1 -0
- package/lib/module/components/BackLink.js +73 -0
- package/lib/module/components/BackLink.js.map +1 -0
- package/lib/module/components/Badge.js +132 -0
- package/lib/module/components/Badge.js.map +1 -0
- package/lib/module/components/BarChart.js +636 -0
- package/lib/module/components/BarChart.js.map +1 -0
- package/lib/module/components/BarFill.js +51 -0
- package/lib/module/components/BarFill.js.map +1 -0
- package/lib/module/components/BeeswarmChart.js +610 -0
- package/lib/module/components/BeeswarmChart.js.map +1 -0
- package/lib/module/components/BiomarkerRange.js +605 -0
- package/lib/module/components/BiomarkerRange.js.map +1 -0
- package/lib/module/components/BodyBattery.js +558 -0
- package/lib/module/components/BodyBattery.js.map +1 -0
- package/lib/module/components/BrandMark.js +179 -0
- package/lib/module/components/BrandMark.js.map +1 -0
- package/lib/module/components/BulletChart.js +401 -0
- package/lib/module/components/BulletChart.js.map +1 -0
- package/lib/module/components/Button.js +150 -0
- package/lib/module/components/Button.js.map +1 -0
- package/lib/module/components/CaffeineClock.js +486 -0
- package/lib/module/components/CaffeineClock.js.map +1 -0
- package/lib/module/components/Card.js +138 -0
- package/lib/module/components/Card.js.map +1 -0
- package/lib/module/components/CharCounter.js +102 -0
- package/lib/module/components/CharCounter.js.map +1 -0
- package/lib/module/components/ChartState.js +549 -0
- package/lib/module/components/ChartState.js.map +1 -0
- package/lib/module/components/Checkbox.js +175 -0
- package/lib/module/components/Checkbox.js.map +1 -0
- package/lib/module/components/Chip.js +214 -0
- package/lib/module/components/Chip.js.map +1 -0
- package/lib/module/components/ChoiceChip.js +129 -0
- package/lib/module/components/ChoiceChip.js.map +1 -0
- package/lib/module/components/CodeBlock.js +122 -0
- package/lib/module/components/CodeBlock.js.map +1 -0
- package/lib/module/components/CodeField.js +125 -0
- package/lib/module/components/CodeField.js.map +1 -0
- package/lib/module/components/ColorPicker.js +177 -0
- package/lib/module/components/ColorPicker.js.map +1 -0
- package/lib/module/components/ComboChart.js +414 -0
- package/lib/module/components/ComboChart.js.map +1 -0
- package/lib/module/components/Combobox.js +104 -0
- package/lib/module/components/Combobox.js.map +1 -0
- package/lib/module/components/CompareChart.js +622 -0
- package/lib/module/components/CompareChart.js.map +1 -0
- package/lib/module/components/CompositeChart.js +649 -0
- package/lib/module/components/CompositeChart.js.map +1 -0
- package/lib/module/components/Countdown.js +148 -0
- package/lib/module/components/Countdown.js.map +1 -0
- package/lib/module/components/CreditCardVisual.js +163 -0
- package/lib/module/components/CreditCardVisual.js.map +1 -0
- package/lib/module/components/DateField.js +361 -0
- package/lib/module/components/DateField.js.map +1 -0
- package/lib/module/components/DayTimelineBlocks.js +249 -0
- package/lib/module/components/DayTimelineBlocks.js.map +1 -0
- package/lib/module/components/DayWheel.js +462 -0
- package/lib/module/components/DayWheel.js.map +1 -0
- package/lib/module/components/DeltaPill.js +149 -0
- package/lib/module/components/DeltaPill.js.map +1 -0
- package/lib/module/components/DistributionChart.js +771 -0
- package/lib/module/components/DistributionChart.js.map +1 -0
- package/lib/module/components/Divider.js +70 -0
- package/lib/module/components/Divider.js.map +1 -0
- package/lib/module/components/DonutChart.js +332 -0
- package/lib/module/components/DonutChart.js.map +1 -0
- package/lib/module/components/DotsLoader.js +90 -0
- package/lib/module/components/DotsLoader.js.map +1 -0
- package/lib/module/components/EffectAttributionLine.js +101 -0
- package/lib/module/components/EffectAttributionLine.js.map +1 -0
- package/lib/module/components/EmptyState.js +115 -0
- package/lib/module/components/EmptyState.js.map +1 -0
- package/lib/module/components/EngagementBar.js +118 -0
- package/lib/module/components/EngagementBar.js.map +1 -0
- package/lib/module/components/EnvironmentChart.js +568 -0
- package/lib/module/components/EnvironmentChart.js.map +1 -0
- package/lib/module/components/Eyebrow.js +28 -0
- package/lib/module/components/Eyebrow.js.map +1 -0
- package/lib/module/components/FocalPointPicker.js +192 -0
- package/lib/module/components/FocalPointPicker.js.map +1 -0
- package/lib/module/components/FollowButton.js +91 -0
- package/lib/module/components/FollowButton.js.map +1 -0
- package/lib/module/components/ForecastCallout.js +112 -0
- package/lib/module/components/ForecastCallout.js.map +1 -0
- package/lib/module/components/FormField.js +198 -0
- package/lib/module/components/FormField.js.map +1 -0
- package/lib/module/components/FunnelChart.js +255 -0
- package/lib/module/components/FunnelChart.js.map +1 -0
- package/lib/module/components/Gauge.js +249 -0
- package/lib/module/components/Gauge.js.map +1 -0
- package/lib/module/components/GradientText.js +130 -0
- package/lib/module/components/GradientText.js.map +1 -0
- package/lib/module/components/Heatmap.js +414 -0
- package/lib/module/components/Heatmap.js.map +1 -0
- package/lib/module/components/Highlight.js +51 -0
- package/lib/module/components/Highlight.js.map +1 -0
- package/lib/module/components/Hypnogram.js +837 -0
- package/lib/module/components/Hypnogram.js.map +1 -0
- package/lib/module/components/Icon.js +480 -0
- package/lib/module/components/Icon.js.map +1 -0
- package/lib/module/components/Input.js +138 -0
- package/lib/module/components/Input.js.map +1 -0
- package/lib/module/components/InsightCard.js +115 -0
- package/lib/module/components/InsightCard.js.map +1 -0
- package/lib/module/components/KeyValue.js +89 -0
- package/lib/module/components/KeyValue.js.map +1 -0
- package/lib/module/components/LeaderboardRow.js +136 -0
- package/lib/module/components/LeaderboardRow.js.map +1 -0
- package/lib/module/components/LineChart.js +1539 -0
- package/lib/module/components/LineChart.js.map +1 -0
- package/lib/module/components/ListRow.js +118 -0
- package/lib/module/components/ListRow.js.map +1 -0
- package/lib/module/components/Menu.js +179 -0
- package/lib/module/components/Menu.js.map +1 -0
- package/lib/module/components/MessageBubble.js +113 -0
- package/lib/module/components/MessageBubble.js.map +1 -0
- package/lib/module/components/MessageComposer.js +208 -0
- package/lib/module/components/MessageComposer.js.map +1 -0
- package/lib/module/components/MetaphorWidget.js +1048 -0
- package/lib/module/components/MetaphorWidget.js.map +1 -0
- package/lib/module/components/Meter.js +169 -0
- package/lib/module/components/Meter.js.map +1 -0
- package/lib/module/components/MetricTile.js +263 -0
- package/lib/module/components/MetricTile.js.map +1 -0
- package/lib/module/components/MiniRing.js +26 -0
- package/lib/module/components/MiniRing.js.map +1 -0
- package/lib/module/components/Modal.js +148 -0
- package/lib/module/components/Modal.js.map +1 -0
- package/lib/module/components/MuscleDiagram.js +321 -0
- package/lib/module/components/MuscleDiagram.js.map +1 -0
- package/lib/module/components/NoteField.js +69 -0
- package/lib/module/components/NoteField.js.map +1 -0
- package/lib/module/components/NotificationRow.js +230 -0
- package/lib/module/components/NotificationRow.js.map +1 -0
- package/lib/module/components/Pagination.js +207 -0
- package/lib/module/components/Pagination.js.map +1 -0
- package/lib/module/components/PasswordInput.js +116 -0
- package/lib/module/components/PasswordInput.js.map +1 -0
- package/lib/module/components/PasswordStrengthMeter.js +104 -0
- package/lib/module/components/PasswordStrengthMeter.js.map +1 -0
- package/lib/module/components/PendingPatternCard.js +178 -0
- package/lib/module/components/PendingPatternCard.js.map +1 -0
- package/lib/module/components/PhaseWheel.js +699 -0
- package/lib/module/components/PhaseWheel.js.map +1 -0
- package/lib/module/components/PkChart.js +558 -0
- package/lib/module/components/PkChart.js.map +1 -0
- package/lib/module/components/Popover.js +230 -0
- package/lib/module/components/Popover.js.map +1 -0
- package/lib/module/components/PrBadge.js +66 -0
- package/lib/module/components/PrBadge.js.map +1 -0
- package/lib/module/components/PrCard.js +146 -0
- package/lib/module/components/PrCard.js.map +1 -0
- package/lib/module/components/PricingTierCard.js +233 -0
- package/lib/module/components/PricingTierCard.js.map +1 -0
- package/lib/module/components/ProGate.js +229 -0
- package/lib/module/components/ProGate.js.map +1 -0
- package/lib/module/components/ProgressBar.js +511 -0
- package/lib/module/components/ProgressBar.js.map +1 -0
- package/lib/module/components/Pulse.js +32 -0
- package/lib/module/components/Pulse.js.map +1 -0
- package/lib/module/components/QRCode.js +514 -0
- package/lib/module/components/QRCode.js.map +1 -0
- package/lib/module/components/RadarChart.js +487 -0
- package/lib/module/components/RadarChart.js.map +1 -0
- package/lib/module/components/RangeBar.js +187 -0
- package/lib/module/components/RangeBar.js.map +1 -0
- package/lib/module/components/ReauthDialog.js +256 -0
- package/lib/module/components/ReauthDialog.js.map +1 -0
- package/lib/module/components/RestTimer.js +239 -0
- package/lib/module/components/RestTimer.js.map +1 -0
- package/lib/module/components/RichText.js +77 -0
- package/lib/module/components/RichText.js.map +1 -0
- package/lib/module/components/RichTextEditor.js +269 -0
- package/lib/module/components/RichTextEditor.js.map +1 -0
- package/lib/module/components/Ring.js +236 -0
- package/lib/module/components/Ring.js.map +1 -0
- package/lib/module/components/RoseChart.js +371 -0
- package/lib/module/components/RoseChart.js.map +1 -0
- package/lib/module/components/SankeyChart.js +647 -0
- package/lib/module/components/SankeyChart.js.map +1 -0
- package/lib/module/components/ScatterChart.js +427 -0
- package/lib/module/components/ScatterChart.js.map +1 -0
- package/lib/module/components/ScrollProgress.js +62 -0
- package/lib/module/components/ScrollProgress.js.map +1 -0
- package/lib/module/components/SectionDivider.js +55 -0
- package/lib/module/components/SectionDivider.js.map +1 -0
- package/lib/module/components/SectionHeader.js +49 -0
- package/lib/module/components/SectionHeader.js.map +1 -0
- package/lib/module/components/SegmentedTabs.js +332 -0
- package/lib/module/components/SegmentedTabs.js.map +1 -0
- package/lib/module/components/Select.js +375 -0
- package/lib/module/components/Select.js.map +1 -0
- package/lib/module/components/SessionBanner.js +216 -0
- package/lib/module/components/SessionBanner.js.map +1 -0
- package/lib/module/components/SessionChart.js +1040 -0
- package/lib/module/components/SessionChart.js.map +1 -0
- package/lib/module/components/SetTable.js +345 -0
- package/lib/module/components/SetTable.js.map +1 -0
- package/lib/module/components/ShareCard.js +223 -0
- package/lib/module/components/ShareCard.js.map +1 -0
- package/lib/module/components/Sheet.js +216 -0
- package/lib/module/components/Sheet.js.map +1 -0
- package/lib/module/components/Skeleton.js +24 -0
- package/lib/module/components/Skeleton.js.map +1 -0
- package/lib/module/components/Slider.js +169 -0
- package/lib/module/components/Slider.js.map +1 -0
- package/lib/module/components/Sortable.js +226 -0
- package/lib/module/components/Sortable.js.map +1 -0
- package/lib/module/components/SourceChip.js +107 -0
- package/lib/module/components/SourceChip.js.map +1 -0
- package/lib/module/components/Sparkline.js +105 -0
- package/lib/module/components/Sparkline.js.map +1 -0
- package/lib/module/components/Spinner.js +127 -0
- package/lib/module/components/Spinner.js.map +1 -0
- package/lib/module/components/SplitButton.js +154 -0
- package/lib/module/components/SplitButton.js.map +1 -0
- package/lib/module/components/SsoButton.js +104 -0
- package/lib/module/components/SsoButton.js.map +1 -0
- package/lib/module/components/StackedBar.js +129 -0
- package/lib/module/components/StackedBar.js.map +1 -0
- package/lib/module/components/Stat.js +163 -0
- package/lib/module/components/Stat.js.map +1 -0
- package/lib/module/components/StatTile.js +639 -0
- package/lib/module/components/StatTile.js.map +1 -0
- package/lib/module/components/StateLabel.js +69 -0
- package/lib/module/components/StateLabel.js.map +1 -0
- package/lib/module/components/StatusDot.js +61 -0
- package/lib/module/components/StatusDot.js.map +1 -0
- package/lib/module/components/Stepper.js +350 -0
- package/lib/module/components/Stepper.js.map +1 -0
- package/lib/module/components/SupplementChart.js +997 -0
- package/lib/module/components/SupplementChart.js.map +1 -0
- package/lib/module/components/TabBar.js +298 -0
- package/lib/module/components/TabBar.js.map +1 -0
- package/lib/module/components/Table.js +452 -0
- package/lib/module/components/Table.js.map +1 -0
- package/lib/module/components/Tabs.js +84 -0
- package/lib/module/components/Tabs.js.map +1 -0
- package/lib/module/components/TagCloud.js +113 -0
- package/lib/module/components/TagCloud.js.map +1 -0
- package/lib/module/components/TagInput.js +291 -0
- package/lib/module/components/TagInput.js.map +1 -0
- package/lib/module/components/TemplateCard.js +202 -0
- package/lib/module/components/TemplateCard.js.map +1 -0
- package/lib/module/components/Timeline.js +214 -0
- package/lib/module/components/Timeline.js.map +1 -0
- package/lib/module/components/TimelineChart.js +1223 -0
- package/lib/module/components/TimelineChart.js.map +1 -0
- package/lib/module/components/Toast.js +151 -0
- package/lib/module/components/Toast.js.map +1 -0
- package/lib/module/components/Toggle.js +162 -0
- package/lib/module/components/Toggle.js.map +1 -0
- package/lib/module/components/Toolbar.js +306 -0
- package/lib/module/components/Toolbar.js.map +1 -0
- package/lib/module/components/Tooltip.js +241 -0
- package/lib/module/components/Tooltip.js.map +1 -0
- package/lib/module/components/TypingIndicator.js +108 -0
- package/lib/module/components/TypingIndicator.js.map +1 -0
- package/lib/module/components/UnitChart.js +477 -0
- package/lib/module/components/UnitChart.js.map +1 -0
- package/lib/module/components/VersionBadge.js +129 -0
- package/lib/module/components/VersionBadge.js.map +1 -0
- package/lib/module/components/VideoThumbnail.js +147 -0
- package/lib/module/components/VideoThumbnail.js.map +1 -0
- package/lib/module/components/VitalsStrip.js +761 -0
- package/lib/module/components/VitalsStrip.js.map +1 -0
- package/lib/module/components/WatchComplication.js +558 -0
- package/lib/module/components/WatchComplication.js.map +1 -0
- package/lib/module/components/ZoneBar.js +145 -0
- package/lib/module/components/ZoneBar.js.map +1 -0
- package/lib/module/components/ZonePyramid.js +393 -0
- package/lib/module/components/ZonePyramid.js.map +1 -0
- package/lib/module/index.js +166 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/internal/optionalBlur.js +30 -0
- package/lib/module/internal/optionalBlur.js.map +1 -0
- package/lib/module/internal/optionalHaptics.js +34 -0
- package/lib/module/internal/optionalHaptics.js.map +1 -0
- package/lib/module/theme.js +6 -0
- package/lib/module/theme.js.map +1 -0
- package/lib/typescript/components/Accordion.d.ts +20 -0
- package/lib/typescript/components/Accordion.d.ts.map +1 -0
- package/lib/typescript/components/AchievementBadge.d.ts +29 -0
- package/lib/typescript/components/AchievementBadge.d.ts.map +1 -0
- package/lib/typescript/components/Alert.d.ts +18 -0
- package/lib/typescript/components/Alert.d.ts.map +1 -0
- package/lib/typescript/components/AreaChart.d.ts +58 -0
- package/lib/typescript/components/AreaChart.d.ts.map +1 -0
- package/lib/typescript/components/AuroraBackground.d.ts +24 -0
- package/lib/typescript/components/AuroraBackground.d.ts.map +1 -0
- package/lib/typescript/components/Avatar.d.ts +38 -0
- package/lib/typescript/components/Avatar.d.ts.map +1 -0
- package/lib/typescript/components/AvatarStack.d.ts +26 -0
- package/lib/typescript/components/AvatarStack.d.ts.map +1 -0
- package/lib/typescript/components/BackLink.d.ts +20 -0
- package/lib/typescript/components/BackLink.d.ts.map +1 -0
- package/lib/typescript/components/Badge.d.ts +12 -0
- package/lib/typescript/components/Badge.d.ts.map +1 -0
- package/lib/typescript/components/BarChart.d.ts +83 -0
- package/lib/typescript/components/BarChart.d.ts.map +1 -0
- package/lib/typescript/components/BarFill.d.ts +15 -0
- package/lib/typescript/components/BarFill.d.ts.map +1 -0
- package/lib/typescript/components/BeeswarmChart.d.ts +71 -0
- package/lib/typescript/components/BeeswarmChart.d.ts.map +1 -0
- package/lib/typescript/components/BiomarkerRange.d.ts +64 -0
- package/lib/typescript/components/BiomarkerRange.d.ts.map +1 -0
- package/lib/typescript/components/BodyBattery.d.ts +70 -0
- package/lib/typescript/components/BodyBattery.d.ts.map +1 -0
- package/lib/typescript/components/BrandMark.d.ts +10 -0
- package/lib/typescript/components/BrandMark.d.ts.map +1 -0
- package/lib/typescript/components/BulletChart.d.ts +61 -0
- package/lib/typescript/components/BulletChart.d.ts.map +1 -0
- package/lib/typescript/components/Button.d.ts +27 -0
- package/lib/typescript/components/Button.d.ts.map +1 -0
- package/lib/typescript/components/CaffeineClock.d.ts +64 -0
- package/lib/typescript/components/CaffeineClock.d.ts.map +1 -0
- package/lib/typescript/components/Card.d.ts +23 -0
- package/lib/typescript/components/Card.d.ts.map +1 -0
- package/lib/typescript/components/CharCounter.d.ts +30 -0
- package/lib/typescript/components/CharCounter.d.ts.map +1 -0
- package/lib/typescript/components/ChartState.d.ts +58 -0
- package/lib/typescript/components/ChartState.d.ts.map +1 -0
- package/lib/typescript/components/Checkbox.d.ts +44 -0
- package/lib/typescript/components/Checkbox.d.ts.map +1 -0
- package/lib/typescript/components/Chip.d.ts +17 -0
- package/lib/typescript/components/Chip.d.ts.map +1 -0
- package/lib/typescript/components/ChoiceChip.d.ts +31 -0
- package/lib/typescript/components/ChoiceChip.d.ts.map +1 -0
- package/lib/typescript/components/CodeBlock.d.ts +18 -0
- package/lib/typescript/components/CodeBlock.d.ts.map +1 -0
- package/lib/typescript/components/CodeField.d.ts +22 -0
- package/lib/typescript/components/CodeField.d.ts.map +1 -0
- package/lib/typescript/components/ColorPicker.d.ts +20 -0
- package/lib/typescript/components/ColorPicker.d.ts.map +1 -0
- package/lib/typescript/components/ComboChart.d.ts +56 -0
- package/lib/typescript/components/ComboChart.d.ts.map +1 -0
- package/lib/typescript/components/Combobox.d.ts +39 -0
- package/lib/typescript/components/Combobox.d.ts.map +1 -0
- package/lib/typescript/components/CompareChart.d.ts +80 -0
- package/lib/typescript/components/CompareChart.d.ts.map +1 -0
- package/lib/typescript/components/CompositeChart.d.ts +83 -0
- package/lib/typescript/components/CompositeChart.d.ts.map +1 -0
- package/lib/typescript/components/Countdown.d.ts +28 -0
- package/lib/typescript/components/Countdown.d.ts.map +1 -0
- package/lib/typescript/components/CreditCardVisual.d.ts +26 -0
- package/lib/typescript/components/CreditCardVisual.d.ts.map +1 -0
- package/lib/typescript/components/DateField.d.ts +39 -0
- package/lib/typescript/components/DateField.d.ts.map +1 -0
- package/lib/typescript/components/DayTimelineBlocks.d.ts +40 -0
- package/lib/typescript/components/DayTimelineBlocks.d.ts.map +1 -0
- package/lib/typescript/components/DayWheel.d.ts +70 -0
- package/lib/typescript/components/DayWheel.d.ts.map +1 -0
- package/lib/typescript/components/DeltaPill.d.ts +22 -0
- package/lib/typescript/components/DeltaPill.d.ts.map +1 -0
- package/lib/typescript/components/DistributionChart.d.ts +94 -0
- package/lib/typescript/components/DistributionChart.d.ts.map +1 -0
- package/lib/typescript/components/Divider.d.ts +16 -0
- package/lib/typescript/components/Divider.d.ts.map +1 -0
- package/lib/typescript/components/DonutChart.d.ts +70 -0
- package/lib/typescript/components/DonutChart.d.ts.map +1 -0
- package/lib/typescript/components/DotsLoader.d.ts +19 -0
- package/lib/typescript/components/DotsLoader.d.ts.map +1 -0
- package/lib/typescript/components/EffectAttributionLine.d.ts +24 -0
- package/lib/typescript/components/EffectAttributionLine.d.ts.map +1 -0
- package/lib/typescript/components/EmptyState.d.ts +17 -0
- package/lib/typescript/components/EmptyState.d.ts.map +1 -0
- package/lib/typescript/components/EngagementBar.d.ts +23 -0
- package/lib/typescript/components/EngagementBar.d.ts.map +1 -0
- package/lib/typescript/components/EnvironmentChart.d.ts +89 -0
- package/lib/typescript/components/EnvironmentChart.d.ts.map +1 -0
- package/lib/typescript/components/Eyebrow.d.ts +7 -0
- package/lib/typescript/components/Eyebrow.d.ts.map +1 -0
- package/lib/typescript/components/FocalPointPicker.d.ts +31 -0
- package/lib/typescript/components/FocalPointPicker.d.ts.map +1 -0
- package/lib/typescript/components/FollowButton.d.ts +21 -0
- package/lib/typescript/components/FollowButton.d.ts.map +1 -0
- package/lib/typescript/components/ForecastCallout.d.ts +21 -0
- package/lib/typescript/components/ForecastCallout.d.ts.map +1 -0
- package/lib/typescript/components/FormField.d.ts +32 -0
- package/lib/typescript/components/FormField.d.ts.map +1 -0
- package/lib/typescript/components/FunnelChart.d.ts +46 -0
- package/lib/typescript/components/FunnelChart.d.ts.map +1 -0
- package/lib/typescript/components/Gauge.d.ts +70 -0
- package/lib/typescript/components/Gauge.d.ts.map +1 -0
- package/lib/typescript/components/GradientText.d.ts +21 -0
- package/lib/typescript/components/GradientText.d.ts.map +1 -0
- package/lib/typescript/components/Heatmap.d.ts +87 -0
- package/lib/typescript/components/Heatmap.d.ts.map +1 -0
- package/lib/typescript/components/Highlight.d.ts +11 -0
- package/lib/typescript/components/Highlight.d.ts.map +1 -0
- package/lib/typescript/components/Hypnogram.d.ts +94 -0
- package/lib/typescript/components/Hypnogram.d.ts.map +1 -0
- package/lib/typescript/components/Icon.d.ts +30 -0
- package/lib/typescript/components/Icon.d.ts.map +1 -0
- package/lib/typescript/components/Input.d.ts +25 -0
- package/lib/typescript/components/Input.d.ts.map +1 -0
- package/lib/typescript/components/InsightCard.d.ts +37 -0
- package/lib/typescript/components/InsightCard.d.ts.map +1 -0
- package/lib/typescript/components/KeyValue.d.ts +18 -0
- package/lib/typescript/components/KeyValue.d.ts.map +1 -0
- package/lib/typescript/components/LeaderboardRow.d.ts +31 -0
- package/lib/typescript/components/LeaderboardRow.d.ts.map +1 -0
- package/lib/typescript/components/LineChart.d.ts +166 -0
- package/lib/typescript/components/LineChart.d.ts.map +1 -0
- package/lib/typescript/components/ListRow.d.ts +37 -0
- package/lib/typescript/components/ListRow.d.ts.map +1 -0
- package/lib/typescript/components/Menu.d.ts +28 -0
- package/lib/typescript/components/Menu.d.ts.map +1 -0
- package/lib/typescript/components/MessageBubble.d.ts +20 -0
- package/lib/typescript/components/MessageBubble.d.ts.map +1 -0
- package/lib/typescript/components/MessageComposer.d.ts +20 -0
- package/lib/typescript/components/MessageComposer.d.ts.map +1 -0
- package/lib/typescript/components/MetaphorWidget.d.ts +107 -0
- package/lib/typescript/components/MetaphorWidget.d.ts.map +1 -0
- package/lib/typescript/components/Meter.d.ts +34 -0
- package/lib/typescript/components/Meter.d.ts.map +1 -0
- package/lib/typescript/components/MetricTile.d.ts +43 -0
- package/lib/typescript/components/MetricTile.d.ts.map +1 -0
- package/lib/typescript/components/MiniRing.d.ts +9 -0
- package/lib/typescript/components/MiniRing.d.ts.map +1 -0
- package/lib/typescript/components/Modal.d.ts +19 -0
- package/lib/typescript/components/Modal.d.ts.map +1 -0
- package/lib/typescript/components/MuscleDiagram.d.ts +37 -0
- package/lib/typescript/components/MuscleDiagram.d.ts.map +1 -0
- package/lib/typescript/components/NoteField.d.ts +9 -0
- package/lib/typescript/components/NoteField.d.ts.map +1 -0
- package/lib/typescript/components/NotificationRow.d.ts +36 -0
- package/lib/typescript/components/NotificationRow.d.ts.map +1 -0
- package/lib/typescript/components/Pagination.d.ts +22 -0
- package/lib/typescript/components/Pagination.d.ts.map +1 -0
- package/lib/typescript/components/PasswordInput.d.ts +24 -0
- package/lib/typescript/components/PasswordInput.d.ts.map +1 -0
- package/lib/typescript/components/PasswordStrengthMeter.d.ts +18 -0
- package/lib/typescript/components/PasswordStrengthMeter.d.ts.map +1 -0
- package/lib/typescript/components/PendingPatternCard.d.ts +27 -0
- package/lib/typescript/components/PendingPatternCard.d.ts.map +1 -0
- package/lib/typescript/components/PhaseWheel.d.ts +103 -0
- package/lib/typescript/components/PhaseWheel.d.ts.map +1 -0
- package/lib/typescript/components/PkChart.d.ts +67 -0
- package/lib/typescript/components/PkChart.d.ts.map +1 -0
- package/lib/typescript/components/Popover.d.ts +27 -0
- package/lib/typescript/components/Popover.d.ts.map +1 -0
- package/lib/typescript/components/PrBadge.d.ts +21 -0
- package/lib/typescript/components/PrBadge.d.ts.map +1 -0
- package/lib/typescript/components/PrCard.d.ts +29 -0
- package/lib/typescript/components/PrCard.d.ts.map +1 -0
- package/lib/typescript/components/PricingTierCard.d.ts +46 -0
- package/lib/typescript/components/PricingTierCard.d.ts.map +1 -0
- package/lib/typescript/components/ProGate.d.ts +26 -0
- package/lib/typescript/components/ProGate.d.ts.map +1 -0
- package/lib/typescript/components/ProgressBar.d.ts +60 -0
- package/lib/typescript/components/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/components/Pulse.d.ts +8 -0
- package/lib/typescript/components/Pulse.d.ts.map +1 -0
- package/lib/typescript/components/QRCode.d.ts +17 -0
- package/lib/typescript/components/QRCode.d.ts.map +1 -0
- package/lib/typescript/components/RadarChart.d.ts +59 -0
- package/lib/typescript/components/RadarChart.d.ts.map +1 -0
- package/lib/typescript/components/RangeBar.d.ts +38 -0
- package/lib/typescript/components/RangeBar.d.ts.map +1 -0
- package/lib/typescript/components/ReauthDialog.d.ts +44 -0
- package/lib/typescript/components/ReauthDialog.d.ts.map +1 -0
- package/lib/typescript/components/RestTimer.d.ts +45 -0
- package/lib/typescript/components/RestTimer.d.ts.map +1 -0
- package/lib/typescript/components/RichText.d.ts +26 -0
- package/lib/typescript/components/RichText.d.ts.map +1 -0
- package/lib/typescript/components/RichTextEditor.d.ts +25 -0
- package/lib/typescript/components/RichTextEditor.d.ts.map +1 -0
- package/lib/typescript/components/Ring.d.ts +63 -0
- package/lib/typescript/components/Ring.d.ts.map +1 -0
- package/lib/typescript/components/RoseChart.d.ts +54 -0
- package/lib/typescript/components/RoseChart.d.ts.map +1 -0
- package/lib/typescript/components/SankeyChart.d.ts +93 -0
- package/lib/typescript/components/SankeyChart.d.ts.map +1 -0
- package/lib/typescript/components/ScatterChart.d.ts +59 -0
- package/lib/typescript/components/ScatterChart.d.ts.map +1 -0
- package/lib/typescript/components/ScrollProgress.d.ts +24 -0
- package/lib/typescript/components/ScrollProgress.d.ts.map +1 -0
- package/lib/typescript/components/SectionDivider.d.ts +18 -0
- package/lib/typescript/components/SectionDivider.d.ts.map +1 -0
- package/lib/typescript/components/SectionHeader.d.ts +18 -0
- package/lib/typescript/components/SectionHeader.d.ts.map +1 -0
- package/lib/typescript/components/SegmentedTabs.d.ts +85 -0
- package/lib/typescript/components/SegmentedTabs.d.ts.map +1 -0
- package/lib/typescript/components/Select.d.ts +47 -0
- package/lib/typescript/components/Select.d.ts.map +1 -0
- package/lib/typescript/components/SessionBanner.d.ts +45 -0
- package/lib/typescript/components/SessionBanner.d.ts.map +1 -0
- package/lib/typescript/components/SessionChart.d.ts +130 -0
- package/lib/typescript/components/SessionChart.d.ts.map +1 -0
- package/lib/typescript/components/SetTable.d.ts +58 -0
- package/lib/typescript/components/SetTable.d.ts.map +1 -0
- package/lib/typescript/components/ShareCard.d.ts +40 -0
- package/lib/typescript/components/ShareCard.d.ts.map +1 -0
- package/lib/typescript/components/Sheet.d.ts +22 -0
- package/lib/typescript/components/Sheet.d.ts.map +1 -0
- package/lib/typescript/components/Skeleton.d.ts +9 -0
- package/lib/typescript/components/Skeleton.d.ts.map +1 -0
- package/lib/typescript/components/Slider.d.ts +27 -0
- package/lib/typescript/components/Slider.d.ts.map +1 -0
- package/lib/typescript/components/Sortable.d.ts +25 -0
- package/lib/typescript/components/Sortable.d.ts.map +1 -0
- package/lib/typescript/components/SourceChip.d.ts +24 -0
- package/lib/typescript/components/SourceChip.d.ts.map +1 -0
- package/lib/typescript/components/Sparkline.d.ts +28 -0
- package/lib/typescript/components/Sparkline.d.ts.map +1 -0
- package/lib/typescript/components/Spinner.d.ts +23 -0
- package/lib/typescript/components/Spinner.d.ts.map +1 -0
- package/lib/typescript/components/SplitButton.d.ts +21 -0
- package/lib/typescript/components/SplitButton.d.ts.map +1 -0
- package/lib/typescript/components/SsoButton.d.ts +10 -0
- package/lib/typescript/components/SsoButton.d.ts.map +1 -0
- package/lib/typescript/components/StackedBar.d.ts +32 -0
- package/lib/typescript/components/StackedBar.d.ts.map +1 -0
- package/lib/typescript/components/Stat.d.ts +33 -0
- package/lib/typescript/components/Stat.d.ts.map +1 -0
- package/lib/typescript/components/StatTile.d.ts +90 -0
- package/lib/typescript/components/StatTile.d.ts.map +1 -0
- package/lib/typescript/components/StateLabel.d.ts +12 -0
- package/lib/typescript/components/StateLabel.d.ts.map +1 -0
- package/lib/typescript/components/StatusDot.d.ts +13 -0
- package/lib/typescript/components/StatusDot.d.ts.map +1 -0
- package/lib/typescript/components/Stepper.d.ts +47 -0
- package/lib/typescript/components/Stepper.d.ts.map +1 -0
- package/lib/typescript/components/SupplementChart.d.ts +121 -0
- package/lib/typescript/components/SupplementChart.d.ts.map +1 -0
- package/lib/typescript/components/TabBar.d.ts +52 -0
- package/lib/typescript/components/TabBar.d.ts.map +1 -0
- package/lib/typescript/components/Table.d.ts +64 -0
- package/lib/typescript/components/Table.d.ts.map +1 -0
- package/lib/typescript/components/Tabs.d.ts +16 -0
- package/lib/typescript/components/Tabs.d.ts.map +1 -0
- package/lib/typescript/components/TagCloud.d.ts +31 -0
- package/lib/typescript/components/TagCloud.d.ts.map +1 -0
- package/lib/typescript/components/TagInput.d.ts +37 -0
- package/lib/typescript/components/TagInput.d.ts.map +1 -0
- package/lib/typescript/components/TemplateCard.d.ts +43 -0
- package/lib/typescript/components/TemplateCard.d.ts.map +1 -0
- package/lib/typescript/components/Timeline.d.ts +18 -0
- package/lib/typescript/components/Timeline.d.ts.map +1 -0
- package/lib/typescript/components/TimelineChart.d.ts +124 -0
- package/lib/typescript/components/TimelineChart.d.ts.map +1 -0
- package/lib/typescript/components/Toast.d.ts +18 -0
- package/lib/typescript/components/Toast.d.ts.map +1 -0
- package/lib/typescript/components/Toggle.d.ts +22 -0
- package/lib/typescript/components/Toggle.d.ts.map +1 -0
- package/lib/typescript/components/Toolbar.d.ts +48 -0
- package/lib/typescript/components/Toolbar.d.ts.map +1 -0
- package/lib/typescript/components/Tooltip.d.ts +16 -0
- package/lib/typescript/components/Tooltip.d.ts.map +1 -0
- package/lib/typescript/components/TypingIndicator.d.ts +16 -0
- package/lib/typescript/components/TypingIndicator.d.ts.map +1 -0
- package/lib/typescript/components/UnitChart.d.ts +84 -0
- package/lib/typescript/components/UnitChart.d.ts.map +1 -0
- package/lib/typescript/components/VersionBadge.d.ts +17 -0
- package/lib/typescript/components/VersionBadge.d.ts.map +1 -0
- package/lib/typescript/components/VideoThumbnail.d.ts +24 -0
- package/lib/typescript/components/VideoThumbnail.d.ts.map +1 -0
- package/lib/typescript/components/VitalsStrip.d.ts +53 -0
- package/lib/typescript/components/VitalsStrip.d.ts.map +1 -0
- package/lib/typescript/components/WatchComplication.d.ts +84 -0
- package/lib/typescript/components/WatchComplication.d.ts.map +1 -0
- package/lib/typescript/components/ZoneBar.d.ts +33 -0
- package/lib/typescript/components/ZoneBar.d.ts.map +1 -0
- package/lib/typescript/components/ZonePyramid.d.ts +51 -0
- package/lib/typescript/components/ZonePyramid.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +288 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/internal/optionalBlur.d.ts +13 -0
- package/lib/typescript/internal/optionalBlur.d.ts.map +1 -0
- package/lib/typescript/internal/optionalHaptics.d.ts +7 -0
- package/lib/typescript/internal/optionalHaptics.d.ts.map +1 -0
- package/lib/typescript/theme.d.ts +5 -0
- package/lib/typescript/theme.d.ts.map +1 -0
- package/package.json +92 -3
- package/src/components/Accordion.tsx +130 -0
- package/src/components/AchievementBadge.tsx +217 -0
- package/src/components/Alert.tsx +149 -0
- package/src/components/AreaChart.tsx +546 -0
- package/src/components/AuroraBackground.tsx +198 -0
- package/src/components/Avatar.tsx +164 -0
- package/src/components/AvatarStack.tsx +94 -0
- package/src/components/BackLink.tsx +64 -0
- package/src/components/Badge.tsx +91 -0
- package/src/components/BarChart.tsx +643 -0
- package/src/components/BarFill.tsx +37 -0
- package/src/components/BeeswarmChart.tsx +567 -0
- package/src/components/BiomarkerRange.tsx +571 -0
- package/src/components/BodyBattery.tsx +551 -0
- package/src/components/BrandMark.tsx +107 -0
- package/src/components/BulletChart.tsx +433 -0
- package/src/components/Button.tsx +127 -0
- package/src/components/CaffeineClock.tsx +472 -0
- package/src/components/Card.tsx +139 -0
- package/src/components/CharCounter.tsx +113 -0
- package/src/components/ChartState.tsx +473 -0
- package/src/components/Checkbox.tsx +175 -0
- package/src/components/Chip.tsx +132 -0
- package/src/components/ChoiceChip.tsx +119 -0
- package/src/components/CodeBlock.tsx +106 -0
- package/src/components/CodeField.tsx +137 -0
- package/src/components/ColorPicker.tsx +169 -0
- package/src/components/ComboChart.tsx +476 -0
- package/src/components/Combobox.tsx +141 -0
- package/src/components/CompareChart.tsx +651 -0
- package/src/components/CompositeChart.tsx +609 -0
- package/src/components/Countdown.tsx +155 -0
- package/src/components/CreditCardVisual.tsx +151 -0
- package/src/components/DateField.tsx +346 -0
- package/src/components/DayTimelineBlocks.tsx +270 -0
- package/src/components/DayWheel.tsx +483 -0
- package/src/components/DeltaPill.tsx +114 -0
- package/src/components/DistributionChart.tsx +739 -0
- package/src/components/Divider.tsx +61 -0
- package/src/components/DonutChart.tsx +399 -0
- package/src/components/DotsLoader.tsx +74 -0
- package/src/components/EffectAttributionLine.tsx +82 -0
- package/src/components/EmptyState.tsx +108 -0
- package/src/components/EngagementBar.tsx +140 -0
- package/src/components/EnvironmentChart.tsx +522 -0
- package/src/components/Eyebrow.tsx +22 -0
- package/src/components/FocalPointPicker.tsx +193 -0
- package/src/components/FollowButton.tsx +78 -0
- package/src/components/ForecastCallout.tsx +100 -0
- package/src/components/FormField.tsx +217 -0
- package/src/components/FunnelChart.tsx +310 -0
- package/src/components/Gauge.tsx +329 -0
- package/src/components/GradientText.tsx +114 -0
- package/src/components/Heatmap.tsx +459 -0
- package/src/components/Highlight.tsx +36 -0
- package/src/components/Hypnogram.tsx +751 -0
- package/src/components/Icon.tsx +680 -0
- package/src/components/Input.tsx +125 -0
- package/src/components/InsightCard.tsx +130 -0
- package/src/components/KeyValue.tsx +83 -0
- package/src/components/LeaderboardRow.tsx +156 -0
- package/src/components/LineChart.tsx +1529 -0
- package/src/components/ListRow.tsx +153 -0
- package/src/components/Menu.tsx +156 -0
- package/src/components/MessageBubble.tsx +118 -0
- package/src/components/MessageComposer.tsx +202 -0
- package/src/components/MetaphorWidget.tsx +848 -0
- package/src/components/Meter.tsx +186 -0
- package/src/components/MetricTile.tsx +247 -0
- package/src/components/MiniRing.tsx +17 -0
- package/src/components/Modal.tsx +129 -0
- package/src/components/MuscleDiagram.tsx +319 -0
- package/src/components/NoteField.tsx +68 -0
- package/src/components/NotificationRow.tsx +230 -0
- package/src/components/Pagination.tsx +188 -0
- package/src/components/PasswordInput.tsx +111 -0
- package/src/components/PasswordStrengthMeter.tsx +104 -0
- package/src/components/PendingPatternCard.tsx +163 -0
- package/src/components/PhaseWheel.tsx +781 -0
- package/src/components/PkChart.tsx +539 -0
- package/src/components/Popover.tsx +206 -0
- package/src/components/PrBadge.tsx +51 -0
- package/src/components/PrCard.tsx +132 -0
- package/src/components/PricingTierCard.tsx +234 -0
- package/src/components/ProGate.tsx +194 -0
- package/src/components/ProgressBar.tsx +439 -0
- package/src/components/Pulse.tsx +17 -0
- package/src/components/QRCode.tsx +555 -0
- package/src/components/RadarChart.tsx +538 -0
- package/src/components/RangeBar.tsx +206 -0
- package/src/components/ReauthDialog.tsx +282 -0
- package/src/components/RestTimer.tsx +193 -0
- package/src/components/RichText.tsx +71 -0
- package/src/components/RichTextEditor.tsx +207 -0
- package/src/components/Ring.tsx +269 -0
- package/src/components/RoseChart.tsx +375 -0
- package/src/components/SankeyChart.tsx +687 -0
- package/src/components/ScatterChart.tsx +498 -0
- package/src/components/ScrollProgress.tsx +61 -0
- package/src/components/SectionDivider.tsx +51 -0
- package/src/components/SectionHeader.tsx +41 -0
- package/src/components/SegmentedTabs.tsx +389 -0
- package/src/components/Select.tsx +335 -0
- package/src/components/SessionBanner.tsx +195 -0
- package/src/components/SessionChart.tsx +917 -0
- package/src/components/SetTable.tsx +341 -0
- package/src/components/ShareCard.tsx +145 -0
- package/src/components/Sheet.tsx +212 -0
- package/src/components/Skeleton.tsx +13 -0
- package/src/components/Slider.tsx +187 -0
- package/src/components/Sortable.tsx +263 -0
- package/src/components/SourceChip.tsx +95 -0
- package/src/components/Sparkline.tsx +108 -0
- package/src/components/Spinner.tsx +128 -0
- package/src/components/SplitButton.tsx +111 -0
- package/src/components/SsoButton.tsx +93 -0
- package/src/components/StackedBar.tsx +138 -0
- package/src/components/Stat.tsx +118 -0
- package/src/components/StatTile.tsx +581 -0
- package/src/components/StateLabel.tsx +62 -0
- package/src/components/StatusDot.tsx +58 -0
- package/src/components/Stepper.tsx +359 -0
- package/src/components/SupplementChart.tsx +1044 -0
- package/src/components/TabBar.tsx +297 -0
- package/src/components/Table.tsx +448 -0
- package/src/components/Tabs.tsx +85 -0
- package/src/components/TagCloud.tsx +111 -0
- package/src/components/TagInput.tsx +325 -0
- package/src/components/TemplateCard.tsx +181 -0
- package/src/components/Timeline.tsx +132 -0
- package/src/components/TimelineChart.tsx +1035 -0
- package/src/components/Toast.tsx +138 -0
- package/src/components/Toggle.tsx +155 -0
- package/src/components/Toolbar.tsx +292 -0
- package/src/components/Tooltip.tsx +193 -0
- package/src/components/TypingIndicator.tsx +106 -0
- package/src/components/UnitChart.tsx +519 -0
- package/src/components/VersionBadge.tsx +129 -0
- package/src/components/VideoThumbnail.tsx +140 -0
- package/src/components/VitalsStrip.tsx +636 -0
- package/src/components/WatchComplication.tsx +536 -0
- package/src/components/ZoneBar.tsx +148 -0
- package/src/components/ZonePyramid.tsx +405 -0
- package/src/components/__tests__/Chip.test.tsx +33 -0
- package/src/components/__tests__/CodeInput.test.tsx +62 -0
- package/src/components/__tests__/DeltaPill.test.tsx +41 -0
- package/src/components/__tests__/GradientText.test.tsx +69 -0
- package/src/components/__tests__/Icon.test.tsx +61 -0
- package/src/components/__tests__/Input.test.tsx +30 -0
- package/src/components/__tests__/LineChart.test.tsx +62 -0
- package/src/components/__tests__/ListRow.test.tsx +28 -0
- package/src/components/__tests__/PkChart.test.tsx +47 -0
- package/src/components/__tests__/PrBadge.test.tsx +32 -0
- package/src/components/__tests__/PrCard.test.tsx +49 -0
- package/src/components/__tests__/RestTimer.test.tsx +94 -0
- package/src/components/__tests__/SegmentedTabs.test.tsx +58 -0
- package/src/components/__tests__/SessionBanner.test.tsx +96 -0
- package/src/components/__tests__/SetTable.test.tsx +105 -0
- package/src/components/__tests__/SourceChip.test.tsx +82 -0
- package/src/components/__tests__/SupplementChart.test.tsx +71 -0
- package/src/components/__tests__/Table.test.tsx +81 -0
- package/src/components/__tests__/TemplateCard.test.tsx +85 -0
- package/src/components/__tests__/Toggle.test.tsx +49 -0
- package/src/components/__tests__/UnitChart.test.tsx +44 -0
- package/src/components/__tests__/markup.ts +142 -0
- package/src/components/__tests__/react-dom-server.d.ts +11 -0
- package/src/index.ts +320 -0
- package/src/internal/optionalBlur.ts +37 -0
- package/src/internal/optionalHaptics.ts +38 -0
- package/src/theme.ts +26 -0
- package/README.md +0 -3
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
import { useId, type ReactNode } from 'react';
|
|
2
|
+
import { View, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import Svg, { Circle, Defs, FeGaussianBlur, Filter, G, Path, Rect, Text as SvgText } from 'react-native-svg';
|
|
4
|
+
import { colors, fonts } from '@lockin90/tokens';
|
|
5
|
+
|
|
6
|
+
/** Catalog variant names (`lockin90-design/charts/watch-charts.html`, WC-01…WC-07). */
|
|
7
|
+
export type WatchComplicationVariant =
|
|
8
|
+
| 'ring-score'
|
|
9
|
+
| 'battery-gauge'
|
|
10
|
+
| 'micro-spark'
|
|
11
|
+
| 'corner-gauge'
|
|
12
|
+
| 'inline-pill'
|
|
13
|
+
| 'rings-trio';
|
|
14
|
+
|
|
15
|
+
/** The 4 corner micro-widgets of `variant="corner-gauge"` (WC-05). */
|
|
16
|
+
export interface WatchComplicationCorners {
|
|
17
|
+
/** TL featured half-arc gauge fill, 0–100 (default 60) */
|
|
18
|
+
value?: number;
|
|
19
|
+
/** TL tiny value inside the gauge (default 'UV6') */
|
|
20
|
+
label?: string;
|
|
21
|
+
/** TL gauge color (default `colors.zoneMid`) */
|
|
22
|
+
color?: string;
|
|
23
|
+
/** TR quiet mono readout (default '23°') */
|
|
24
|
+
text?: string;
|
|
25
|
+
/** BL filled dots of 3 (default 2) */
|
|
26
|
+
dots?: number;
|
|
27
|
+
/** BR mini ring fill, 0–100 (default 69) */
|
|
28
|
+
ring?: number;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface WatchComplicationProps {
|
|
32
|
+
/** complication form (default `'ring-score'`, WC-01) */
|
|
33
|
+
variant?: WatchComplicationVariant;
|
|
34
|
+
/** the score/percent, 0–100 — ring fill (WC-01, default 82), battery fill
|
|
35
|
+
* (WC-02, default 64), inline ring + bar (WC-06, default 92), trio outer
|
|
36
|
+
* ring (WC-07, default 80) */
|
|
37
|
+
value?: number;
|
|
38
|
+
/** `rings-trio` — middle ring fill, 0–100 (default 60) */
|
|
39
|
+
value2?: number;
|
|
40
|
+
/** `rings-trio` — inner ring fill, 0–100 (default 45) */
|
|
41
|
+
value3?: number;
|
|
42
|
+
/** big readout override — WC-01 defaults to the rounded `value`, WC-02 to
|
|
43
|
+
* `'{value}%'`, WC-04 to its catalog card ('7:42'); WC-06 replaces the
|
|
44
|
+
* whole `'{label} {value}%'` line */
|
|
45
|
+
valueText?: string;
|
|
46
|
+
/** small caption — 'ENERGY' (WC-01) / 'BATTERY' (WC-02) / 'SLEEP' (WC-04) /
|
|
47
|
+
* the pill name 'CREATINE' (WC-06) */
|
|
48
|
+
label?: string;
|
|
49
|
+
/** `micro-spark` — the 0–1 trend points, oldest → newest (catalog: 10) */
|
|
50
|
+
data?: number[];
|
|
51
|
+
/** `corner-gauge` — the corner micro-widgets (defaults reproduce WC-05) */
|
|
52
|
+
corners?: WatchComplicationCorners;
|
|
53
|
+
/** main mark color — ring arc / spark line / inline ring+bar / trio outer.
|
|
54
|
+
* Per-variant defaults: mint (cyan for `micro-spark`); `battery-gauge`
|
|
55
|
+
* defaults to the value's zone verdict (≥62 high / ≥38 mid / else low). */
|
|
56
|
+
color?: string;
|
|
57
|
+
/** `rings-trio` — middle ring color (default `colors.cyan`) */
|
|
58
|
+
color2?: string;
|
|
59
|
+
/** `rings-trio` — inner ring color (default `colors.violet`) */
|
|
60
|
+
color3?: string;
|
|
61
|
+
/** rendered size in px. Square variants render `size`×`size`; `inline-pill`
|
|
62
|
+
* is the wide slot — `size` is the pill WIDTH, height = size·36/152.
|
|
63
|
+
* Default 108 = the catalog's 2× display scale (a real graphic-circular
|
|
64
|
+
* slot is ~size 54). */
|
|
65
|
+
size?: number;
|
|
66
|
+
/** glow underlay behind the featured colored mark — a Gaussian-blurred
|
|
67
|
+
* duplicate shape on native */
|
|
68
|
+
shine?: boolean;
|
|
69
|
+
/** optional wrapper style */
|
|
70
|
+
style?: StyleProp<ViewStyle>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* --------------------------------------------------------------- geometry
|
|
74
|
+
* The catalog draws each complication 2× on its 320×150 card: circular faces
|
|
75
|
+
* are a r54 circle (108px across), the corner face a 108×108 rx28 square, the
|
|
76
|
+
* inline pill 150×34. Here the face IS the canvas: square variants use a
|
|
77
|
+
* 112×112 viewBox (2-unit bezel), the pill a 152×36 one, scaled to `size`. */
|
|
78
|
+
const VB = 112;
|
|
79
|
+
const C = VB / 2;
|
|
80
|
+
const FACE_R = 54;
|
|
81
|
+
const PILL_W = 152;
|
|
82
|
+
const PILL_H = 36;
|
|
83
|
+
|
|
84
|
+
/* face + track alphas — the catalog's white rgba() steps as text-token alphas */
|
|
85
|
+
const FACE_FILL = `${colors.text}09`; // rgba(255,255,255,0.035)
|
|
86
|
+
const FACE_STROKE = `${colors.text}1F`; // 0.12
|
|
87
|
+
const TRACK = `${colors.text}14`; // ring/gauge track 0.08
|
|
88
|
+
const TRACK_TRIO = `${colors.text}12`; // trio tracks 0.07
|
|
89
|
+
const TRACK_CORNER = `${colors.text}1A`; // TL gauge track 0.1
|
|
90
|
+
const DOT_OFF = `${colors.text}26`; // BL pending dots 0.15
|
|
91
|
+
const PILL_FILL = `${colors.text}0D`; // pill bg 0.05
|
|
92
|
+
|
|
93
|
+
/** the catalog's WC-04 demo trend (SP — 10 nights of sleep) */
|
|
94
|
+
const DEFAULT_SPARK = [0.4, 0.55, 0.45, 0.6, 0.5, 0.7, 0.62, 0.78, 0.66, 0.8];
|
|
95
|
+
|
|
96
|
+
const DEFAULT_VALUE: Record<WatchComplicationVariant, number> = {
|
|
97
|
+
'ring-score': 82,
|
|
98
|
+
'battery-gauge': 64,
|
|
99
|
+
'micro-spark': 0,
|
|
100
|
+
'corner-gauge': 0,
|
|
101
|
+
'inline-pill': 92,
|
|
102
|
+
'rings-trio': 80,
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
const DEFAULT_LABEL: Record<WatchComplicationVariant, string> = {
|
|
106
|
+
'ring-score': 'ENERGY',
|
|
107
|
+
'battery-gauge': 'BATTERY',
|
|
108
|
+
'micro-spark': 'SLEEP',
|
|
109
|
+
'corner-gauge': '',
|
|
110
|
+
'inline-pill': 'CREATINE',
|
|
111
|
+
'rings-trio': '',
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
/** Zone verdict color for a 0–100 value (same thresholds as `Ring`). */
|
|
115
|
+
function zoneColor(v: number): string {
|
|
116
|
+
return v >= 62 ? colors.zoneHigh : v >= 38 ? colors.zoneMid : colors.zoneLow;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function clamp100(v: number): number {
|
|
120
|
+
return Math.max(0, Math.min(100, v));
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/** polar point — 0° at 12 o'clock, clockwise (the catalog's `polar`) */
|
|
124
|
+
function polar(cx: number, cy: number, r: number, aDeg: number) {
|
|
125
|
+
const a = ((aDeg - 90) * Math.PI) / 180;
|
|
126
|
+
return { x: cx + r * Math.cos(a), y: cy + r * Math.sin(a) };
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/** open arc between two angles (the catalog's `arcPath`) */
|
|
130
|
+
function arcPath(cx: number, cy: number, r: number, a0: number, a1: number): string {
|
|
131
|
+
const p0 = polar(cx, cy, r, a0);
|
|
132
|
+
const p1 = polar(cx, cy, r, a1);
|
|
133
|
+
const lg = (a1 - a0) % 360 > 180 ? 1 : 0;
|
|
134
|
+
return `M${p0.x.toFixed(1)} ${p0.y.toFixed(1)}A${r} ${r} 0 ${lg} 1 ${p1.x.toFixed(1)} ${p1.y.toFixed(1)}`;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/** 0–100 → sweep degrees, capped so a full arc never degenerates */
|
|
138
|
+
function sweep(v: number): number {
|
|
139
|
+
return Math.min(359.9, clamp100(v) * 3.6);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/** Fritsch–Carlson monotone cubic — the catalog's `smoothPath` (WC-04 only). */
|
|
143
|
+
function monotonePath(pts: Array<[number, number]>): string {
|
|
144
|
+
const n = pts.length;
|
|
145
|
+
if (n < 3) return pts.map(([x, y], i) => `${i === 0 ? 'M' : 'L'}${x.toFixed(1)} ${y.toFixed(1)}`).join('');
|
|
146
|
+
const dx: number[] = [];
|
|
147
|
+
const m: number[] = [];
|
|
148
|
+
const tg: number[] = [];
|
|
149
|
+
for (let i = 0; i < n - 1; i++) {
|
|
150
|
+
dx[i] = pts[i + 1][0] - pts[i][0];
|
|
151
|
+
m[i] = (pts[i + 1][1] - pts[i][1]) / dx[i];
|
|
152
|
+
}
|
|
153
|
+
tg[0] = m[0];
|
|
154
|
+
tg[n - 1] = m[n - 2];
|
|
155
|
+
for (let i = 1; i < n - 1; i++) tg[i] = m[i - 1] * m[i] <= 0 ? 0 : (m[i - 1] + m[i]) / 2;
|
|
156
|
+
for (let i = 0; i < n - 1; i++) {
|
|
157
|
+
if (m[i] === 0) {
|
|
158
|
+
tg[i] = 0;
|
|
159
|
+
tg[i + 1] = 0;
|
|
160
|
+
} else {
|
|
161
|
+
const a = tg[i] / m[i];
|
|
162
|
+
const b = tg[i + 1] / m[i];
|
|
163
|
+
const s = a * a + b * b;
|
|
164
|
+
if (s > 9) {
|
|
165
|
+
const tau = 3 / Math.sqrt(s);
|
|
166
|
+
tg[i] = tau * a * m[i];
|
|
167
|
+
tg[i + 1] = tau * b * m[i];
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
let d = `M${pts[0][0].toFixed(1)} ${pts[0][1].toFixed(1)}`;
|
|
172
|
+
for (let i = 0; i < n - 1; i++) {
|
|
173
|
+
const h = dx[i] / 3;
|
|
174
|
+
d += `C${(pts[i][0] + h).toFixed(1)} ${(pts[i][1] + h * tg[i]).toFixed(1)} ${(pts[i + 1][0] - h).toFixed(1)} ${(
|
|
175
|
+
pts[i + 1][1] - h * tg[i + 1]
|
|
176
|
+
).toFixed(1)} ${pts[i + 1][0].toFixed(1)} ${pts[i + 1][1].toFixed(1)}`;
|
|
177
|
+
}
|
|
178
|
+
return d;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/** faint mono caption (the catalog's `label()`) */
|
|
182
|
+
function Small({
|
|
183
|
+
x,
|
|
184
|
+
y,
|
|
185
|
+
text,
|
|
186
|
+
color = colors.textFaint,
|
|
187
|
+
anchor = 'middle',
|
|
188
|
+
}: {
|
|
189
|
+
x: number;
|
|
190
|
+
y: number;
|
|
191
|
+
text: string;
|
|
192
|
+
color?: string;
|
|
193
|
+
anchor?: 'start' | 'middle' | 'end';
|
|
194
|
+
}) {
|
|
195
|
+
return (
|
|
196
|
+
<SvgText x={x} y={y} fill={color} fontSize={8.5} textAnchor={anchor} fontFamily={fonts.mono} letterSpacing={0.5}>
|
|
197
|
+
{text}
|
|
198
|
+
</SvgText>
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/** big display readout (the catalog's `big()` — Space Grotesk 700) */
|
|
203
|
+
function Big({ x, y, text, size = 21 }: { x: number; y: number; text: string; size?: number }) {
|
|
204
|
+
return (
|
|
205
|
+
<SvgText
|
|
206
|
+
x={x}
|
|
207
|
+
y={y}
|
|
208
|
+
fill={colors.text}
|
|
209
|
+
fontSize={size}
|
|
210
|
+
fontWeight="700"
|
|
211
|
+
textAnchor="middle"
|
|
212
|
+
fontFamily={fonts.display}
|
|
213
|
+
>
|
|
214
|
+
{text}
|
|
215
|
+
</SvgText>
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/** the circular watch face */
|
|
220
|
+
function Face() {
|
|
221
|
+
return <Circle cx={C} cy={C} r={FACE_R} fill={FACE_FILL} stroke={FACE_STROKE} strokeWidth={1} />;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/** faint full track + round-cap progress arc (+ optional shine underlay —
|
|
225
|
+
* a Gaussian-blurred duplicate arc, the native twin of the web `blur(5px)`
|
|
226
|
+
* underlay; wide un-blurred copies read as hard outlines on device) */
|
|
227
|
+
function RingArc({
|
|
228
|
+
r,
|
|
229
|
+
value,
|
|
230
|
+
color,
|
|
231
|
+
strokeWidth,
|
|
232
|
+
track = TRACK,
|
|
233
|
+
shine = false,
|
|
234
|
+
}: {
|
|
235
|
+
r: number;
|
|
236
|
+
value: number;
|
|
237
|
+
color: string;
|
|
238
|
+
strokeWidth: number;
|
|
239
|
+
track?: string;
|
|
240
|
+
shine?: boolean;
|
|
241
|
+
}) {
|
|
242
|
+
const uid = useId().replace(/[^a-zA-Z0-9]/g, '');
|
|
243
|
+
const blurId = `lk-wc-ring-blur-${uid}`;
|
|
244
|
+
return (
|
|
245
|
+
<G>
|
|
246
|
+
{shine ? (
|
|
247
|
+
/* region in user space over the full face so flat arcs never clip */
|
|
248
|
+
<Defs>
|
|
249
|
+
<Filter id={blurId} filterUnits="userSpaceOnUse" x={-10} y={-10} width={VB + 20} height={VB + 20}>
|
|
250
|
+
<FeGaussianBlur stdDeviation={2.5} />
|
|
251
|
+
</Filter>
|
|
252
|
+
</Defs>
|
|
253
|
+
) : null}
|
|
254
|
+
<Circle cx={C} cy={C} r={r} fill="none" stroke={track} strokeWidth={strokeWidth} />
|
|
255
|
+
{shine ? (
|
|
256
|
+
<Path
|
|
257
|
+
d={arcPath(C, C, r, 0, sweep(value))}
|
|
258
|
+
fill="none"
|
|
259
|
+
stroke={color}
|
|
260
|
+
strokeWidth={strokeWidth + 5}
|
|
261
|
+
strokeLinecap="round"
|
|
262
|
+
opacity={0.45}
|
|
263
|
+
filter={`url(#${blurId})`}
|
|
264
|
+
/>
|
|
265
|
+
) : null}
|
|
266
|
+
<Path
|
|
267
|
+
d={arcPath(C, C, r, 0, sweep(value))}
|
|
268
|
+
fill="none"
|
|
269
|
+
stroke={color}
|
|
270
|
+
strokeWidth={strokeWidth}
|
|
271
|
+
strokeLinecap="round"
|
|
272
|
+
/>
|
|
273
|
+
</G>
|
|
274
|
+
);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* WatchComplication — the catalog watch family (`watch-charts`, WC-01…WC-07):
|
|
279
|
+
* tiny canvases for `lockin90-watch` — rings, gauges, sparks at complication
|
|
280
|
+
* scale. Native twin of `@lockin90/ui` WatchComplication — same prop API +
|
|
281
|
+
* geometry; every glow is a real Gaussian-blurred duplicate shape
|
|
282
|
+
* (Fabric-native SVG filters in react-native-svg 15). Unlike the 320×150
|
|
283
|
+
* charts the face IS the canvas:
|
|
284
|
+
* square/circular variants render `size`×`size` (default 108 = the catalog's
|
|
285
|
+
* 2× display scale), `inline-pill` renders `size` wide.
|
|
286
|
+
*
|
|
287
|
+
* - `ring-score` (WC-01, default) — graphic-circular: value ring on a faint
|
|
288
|
+
* track + big value + label. THE watch-face energy score.
|
|
289
|
+
* - `battery-gauge` (WC-02) — 270° gauge (opens down), zone-colored + bolt
|
|
290
|
+
* glyph + %.
|
|
291
|
+
* - `micro-spark` (WC-04) — big value + 10-point micro sparkline + end dot.
|
|
292
|
+
* - `corner-gauge` (WC-05) — square face, 4 corner micro-widgets; featured TL
|
|
293
|
+
* half-arc gauge + tiny value in a dashed slot ring.
|
|
294
|
+
* - `inline-pill` (WC-06) — wide pill: mini ring + mono text + progress bar.
|
|
295
|
+
* - `rings-trio` (WC-07) — move/train/sleep concentric rings, round caps.
|
|
296
|
+
*
|
|
297
|
+
* Values are 0–100; tokens only. This is the watch-slot widget — for in-app
|
|
298
|
+
* score rings reach for `Ring`, for 270°/180° dial gauges `Gauge`.
|
|
299
|
+
*/
|
|
300
|
+
export function WatchComplication({
|
|
301
|
+
variant = 'ring-score',
|
|
302
|
+
value,
|
|
303
|
+
value2 = 60,
|
|
304
|
+
value3 = 45,
|
|
305
|
+
valueText,
|
|
306
|
+
label,
|
|
307
|
+
data = DEFAULT_SPARK,
|
|
308
|
+
corners,
|
|
309
|
+
color,
|
|
310
|
+
color2 = colors.cyan,
|
|
311
|
+
color3 = colors.violet,
|
|
312
|
+
size = 108,
|
|
313
|
+
shine = false,
|
|
314
|
+
style,
|
|
315
|
+
}: WatchComplicationProps) {
|
|
316
|
+
const uid = useId().replace(/[^a-zA-Z0-9]/g, '');
|
|
317
|
+
/* variant-level glows mirror the web `blur(5px)` / `blur(4px)` underlays */
|
|
318
|
+
const blur5Id = `lk-wc-blur5-${uid}`;
|
|
319
|
+
const blur4Id = `lk-wc-blur4-${uid}`;
|
|
320
|
+
const v = clamp100(value ?? DEFAULT_VALUE[variant]);
|
|
321
|
+
const cap = label ?? DEFAULT_LABEL[variant];
|
|
322
|
+
|
|
323
|
+
const inline = variant === 'inline-pill';
|
|
324
|
+
const width = size;
|
|
325
|
+
const height = inline ? (size * PILL_H) / PILL_W : size;
|
|
326
|
+
const viewBox = inline ? `0 0 ${PILL_W} ${PILL_H}` : `0 0 ${VB} ${VB}`;
|
|
327
|
+
const vbW = inline ? PILL_W : VB;
|
|
328
|
+
const vbH = inline ? PILL_H : VB;
|
|
329
|
+
|
|
330
|
+
let accessibilityLabel: string;
|
|
331
|
+
let content: ReactNode;
|
|
332
|
+
|
|
333
|
+
if (variant === 'ring-score') {
|
|
334
|
+
/* --------------------------------------------------- WC-01 ring-score */
|
|
335
|
+
const c = color ?? colors.mint;
|
|
336
|
+
const readout = valueText ?? String(Math.round(v));
|
|
337
|
+
accessibilityLabel = `${cap || 'score'} ${readout} — ring at ${Math.round(v)}%`;
|
|
338
|
+
content = (
|
|
339
|
+
<>
|
|
340
|
+
<Face />
|
|
341
|
+
<RingArc r={38} value={v} color={c} strokeWidth={7} shine={shine} />
|
|
342
|
+
<Big x={C} y={C + 3} text={readout} />
|
|
343
|
+
{cap ? <Small x={C} y={C + 17} text={cap} /> : null}
|
|
344
|
+
</>
|
|
345
|
+
);
|
|
346
|
+
} else if (variant === 'battery-gauge') {
|
|
347
|
+
/* ------------------------------------------------ WC-02 battery-gauge */
|
|
348
|
+
const c = color ?? zoneColor(v);
|
|
349
|
+
const readout = valueText ?? `${Math.round(v)}%`;
|
|
350
|
+
const end = -135 + (270 * v) / 100;
|
|
351
|
+
accessibilityLabel = `${cap || 'battery'} ${readout}`;
|
|
352
|
+
content = (
|
|
353
|
+
<>
|
|
354
|
+
<Face />
|
|
355
|
+
<Path d={arcPath(C, C, 38, -135, 135)} fill="none" stroke={TRACK} strokeWidth={7} />
|
|
356
|
+
{/* shine — a Gaussian-blurred duplicate arc (the web `blur(5px)`) */}
|
|
357
|
+
{shine ? (
|
|
358
|
+
<Path
|
|
359
|
+
d={arcPath(C, C, 38, -135, end)}
|
|
360
|
+
fill="none"
|
|
361
|
+
stroke={c}
|
|
362
|
+
strokeWidth={12}
|
|
363
|
+
strokeLinecap="round"
|
|
364
|
+
opacity={0.45}
|
|
365
|
+
filter={`url(#${blur5Id})`}
|
|
366
|
+
/>
|
|
367
|
+
) : null}
|
|
368
|
+
<Path d={arcPath(C, C, 38, -135, end)} fill="none" stroke={c} strokeWidth={7} strokeLinecap="round" />
|
|
369
|
+
{/* the charging-bolt glyph, in the fill color */}
|
|
370
|
+
<Path d={`M${C} ${C - 16}l-4.5 9h3.5l-1 8 5.5-10h-3.8z`} fill={c} />
|
|
371
|
+
<Big x={C} y={C + 16} text={readout} size={15} />
|
|
372
|
+
{cap ? <Small x={C} y={C + 30} text={cap} /> : null}
|
|
373
|
+
</>
|
|
374
|
+
);
|
|
375
|
+
} else if (variant === 'micro-spark') {
|
|
376
|
+
/* -------------------------------------------------- WC-04 micro-spark */
|
|
377
|
+
const c = color ?? colors.cyan;
|
|
378
|
+
const readout = valueText ?? '7:42';
|
|
379
|
+
const n = data.length;
|
|
380
|
+
const pts = data.map(
|
|
381
|
+
(p, i) => [C - 27 + (i * 54) / Math.max(1, n - 1), C + 14 - p * 26] as [number, number],
|
|
382
|
+
);
|
|
383
|
+
const last = pts[pts.length - 1];
|
|
384
|
+
accessibilityLabel = `${cap || 'trend'} ${readout} — ${n}-point trend`;
|
|
385
|
+
content = (
|
|
386
|
+
<>
|
|
387
|
+
<Face />
|
|
388
|
+
{pts.length > 0 ? (
|
|
389
|
+
<>
|
|
390
|
+
{/* shine — a Gaussian-blurred duplicate spark (the web `blur(4px)`) */}
|
|
391
|
+
{shine ? (
|
|
392
|
+
<Path
|
|
393
|
+
d={monotonePath(pts)}
|
|
394
|
+
fill="none"
|
|
395
|
+
stroke={c}
|
|
396
|
+
strokeWidth={6.8}
|
|
397
|
+
strokeLinecap="round"
|
|
398
|
+
opacity={0.4}
|
|
399
|
+
filter={`url(#${blur4Id})`}
|
|
400
|
+
/>
|
|
401
|
+
) : null}
|
|
402
|
+
<Path d={monotonePath(pts)} fill="none" stroke={c} strokeWidth={1.8} strokeLinecap="round" />
|
|
403
|
+
<Circle cx={last[0].toFixed(1)} cy={last[1].toFixed(1)} r={2.4} fill={c} />
|
|
404
|
+
</>
|
|
405
|
+
) : null}
|
|
406
|
+
<Big x={C} y={C - 18} text={readout} size={17} />
|
|
407
|
+
{cap ? <Small x={C} y={C + 28} text={cap} /> : null}
|
|
408
|
+
</>
|
|
409
|
+
);
|
|
410
|
+
} else if (variant === 'corner-gauge') {
|
|
411
|
+
/* ------------------------------------------------- WC-05 corner-gauge */
|
|
412
|
+
const cv = clamp100(corners?.value ?? 60);
|
|
413
|
+
const cl = corners?.label ?? 'UV6';
|
|
414
|
+
const cc = corners?.color ?? colors.zoneMid;
|
|
415
|
+
const ct = corners?.text ?? '23°';
|
|
416
|
+
const cd = corners?.dots ?? 2;
|
|
417
|
+
const cr = clamp100(corners?.ring ?? 69);
|
|
418
|
+
accessibilityLabel = `corner complications — ${cl} gauge at ${Math.round(cv)}%`;
|
|
419
|
+
content = (
|
|
420
|
+
<>
|
|
421
|
+
{/* the square face */}
|
|
422
|
+
<Rect x={2} y={2} width={108} height={108} rx={28} fill={FACE_FILL} stroke={FACE_STROKE} strokeWidth={1} />
|
|
423
|
+
{/* TL — the featured half-arc gauge in its dashed slot ring */}
|
|
424
|
+
<Path d={arcPath(26, 26, 16, -90, 90)} fill="none" stroke={TRACK_CORNER} strokeWidth={4.5} />
|
|
425
|
+
{/* shine — a Gaussian-blurred duplicate gauge arc (the web `blur(4px)`) */}
|
|
426
|
+
{shine ? (
|
|
427
|
+
<Path
|
|
428
|
+
d={arcPath(26, 26, 16, -90, -90 + (180 * cv) / 100)}
|
|
429
|
+
fill="none"
|
|
430
|
+
stroke={cc}
|
|
431
|
+
strokeWidth={9.5}
|
|
432
|
+
strokeLinecap="round"
|
|
433
|
+
opacity={0.45}
|
|
434
|
+
filter={`url(#${blur4Id})`}
|
|
435
|
+
/>
|
|
436
|
+
) : null}
|
|
437
|
+
<Path
|
|
438
|
+
d={arcPath(26, 26, 16, -90, -90 + (180 * cv) / 100)}
|
|
439
|
+
fill="none"
|
|
440
|
+
stroke={cc}
|
|
441
|
+
strokeWidth={4.5}
|
|
442
|
+
strokeLinecap="round"
|
|
443
|
+
/>
|
|
444
|
+
<Small x={26} y={29} text={cl} color={colors.text} />
|
|
445
|
+
<Circle
|
|
446
|
+
cx={26}
|
|
447
|
+
cy={26}
|
|
448
|
+
r={23}
|
|
449
|
+
fill="none"
|
|
450
|
+
stroke={colors.mint}
|
|
451
|
+
strokeWidth={1}
|
|
452
|
+
strokeDasharray={[3, 3]}
|
|
453
|
+
opacity={0.7}
|
|
454
|
+
/>
|
|
455
|
+
{/* TR / BL / BR — quiet placeholder fits */}
|
|
456
|
+
<Small x={86} y={29} text={ct} color={colors.textDim} />
|
|
457
|
+
{[0, 1, 2].map((k) => (
|
|
458
|
+
<Circle key={k} cx={18 + k * 8} cy={88} r={2.2} fill={k < cd ? colors.mint : DOT_OFF} />
|
|
459
|
+
))}
|
|
460
|
+
<Path
|
|
461
|
+
d={arcPath(86, 86, 9, 0, sweep(cr))}
|
|
462
|
+
fill="none"
|
|
463
|
+
stroke={colors.violet}
|
|
464
|
+
strokeWidth={3}
|
|
465
|
+
strokeLinecap="round"
|
|
466
|
+
/>
|
|
467
|
+
</>
|
|
468
|
+
);
|
|
469
|
+
} else if (variant === 'inline-pill') {
|
|
470
|
+
/* -------------------------------------------------- WC-06 inline-pill */
|
|
471
|
+
const c = color ?? colors.mint;
|
|
472
|
+
const line = valueText ?? `${cap} ${Math.round(v)}%`;
|
|
473
|
+
accessibilityLabel = line;
|
|
474
|
+
content = (
|
|
475
|
+
<>
|
|
476
|
+
<Rect x={1} y={1} width={150} height={34} rx={17} fill={PILL_FILL} stroke={FACE_STROKE} strokeWidth={1} />
|
|
477
|
+
{/* shine — a Gaussian-blurred duplicate mini ring (the web `blur(4px)`) */}
|
|
478
|
+
{shine ? (
|
|
479
|
+
<Path
|
|
480
|
+
d={arcPath(21, 18, 8, 0, sweep(v))}
|
|
481
|
+
fill="none"
|
|
482
|
+
stroke={c}
|
|
483
|
+
strokeWidth={8}
|
|
484
|
+
strokeLinecap="round"
|
|
485
|
+
opacity={0.45}
|
|
486
|
+
filter={`url(#${blur4Id})`}
|
|
487
|
+
/>
|
|
488
|
+
) : null}
|
|
489
|
+
<Path d={arcPath(21, 18, 8, 0, sweep(v))} fill="none" stroke={c} strokeWidth={3} strokeLinecap="round" />
|
|
490
|
+
<Small x={37} y={15} text={line} color={colors.text} anchor="start" />
|
|
491
|
+
<Rect x={37} y={23} width={88} height={3.5} rx={1.75} fill={TRACK} />
|
|
492
|
+
<Rect x={37} y={23} width={(88 * v) / 100} height={3.5} rx={1.75} fill={c} />
|
|
493
|
+
</>
|
|
494
|
+
);
|
|
495
|
+
} else {
|
|
496
|
+
/* --------------------------------------------------- WC-07 rings-trio */
|
|
497
|
+
const rings: Array<[number, number, string]> = [
|
|
498
|
+
[40, v, color ?? colors.mint],
|
|
499
|
+
[30, clamp100(value2), color2],
|
|
500
|
+
[20, clamp100(value3), color3],
|
|
501
|
+
];
|
|
502
|
+
accessibilityLabel = `activity rings — move ${Math.round(rings[0][1])}%, train ${Math.round(
|
|
503
|
+
rings[1][1],
|
|
504
|
+
)}%, sleep ${Math.round(rings[2][1])}%`;
|
|
505
|
+
content = (
|
|
506
|
+
<>
|
|
507
|
+
<Face />
|
|
508
|
+
{rings.map(([r, rv, rc]) => (
|
|
509
|
+
<RingArc key={r} r={r} value={rv} color={rc} strokeWidth={6} track={TRACK_TRIO} shine={shine} />
|
|
510
|
+
))}
|
|
511
|
+
</>
|
|
512
|
+
);
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
return (
|
|
516
|
+
<View accessibilityRole="image" accessibilityLabel={accessibilityLabel} style={[{ width, height }, style]}>
|
|
517
|
+
<Svg width={width} height={height} viewBox={viewBox}>
|
|
518
|
+
{shine ? (
|
|
519
|
+
/* real Gaussian blurs for the variant glows (Fabric-native in
|
|
520
|
+
react-native-svg 15) — the native twins of the web `blur(5px)` /
|
|
521
|
+
`blur(4px)` underlays. Regions in user space over the full face so
|
|
522
|
+
flat arcs/sparks never clip. */
|
|
523
|
+
<Defs>
|
|
524
|
+
<Filter id={blur5Id} filterUnits="userSpaceOnUse" x={-10} y={-10} width={vbW + 20} height={vbH + 20}>
|
|
525
|
+
<FeGaussianBlur stdDeviation={2.5} />
|
|
526
|
+
</Filter>
|
|
527
|
+
<Filter id={blur4Id} filterUnits="userSpaceOnUse" x={-10} y={-10} width={vbW + 20} height={vbH + 20}>
|
|
528
|
+
<FeGaussianBlur stdDeviation={2} />
|
|
529
|
+
</Filter>
|
|
530
|
+
</Defs>
|
|
531
|
+
) : null}
|
|
532
|
+
{content}
|
|
533
|
+
</Svg>
|
|
534
|
+
</View>
|
|
535
|
+
);
|
|
536
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { View, Text, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
+
import { colors, fonts, radii } from '@lockin90/tokens';
|
|
3
|
+
|
|
4
|
+
/** One HR training zone — its `value` (time-in-zone) drives the segment width. */
|
|
5
|
+
export interface ZoneBarZone {
|
|
6
|
+
/** zone label shown under the bar; defaults to `Z1`..`Zn` by index */
|
|
7
|
+
label?: string;
|
|
8
|
+
/** time-in-zone (seconds) or share — sizes this segment relative to the others */
|
|
9
|
+
value: number;
|
|
10
|
+
/** override the segment color (a hex/rgb string, e.g. colors.lime); defaults to the Z1→Z5 ramp */
|
|
11
|
+
color?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface ZoneBarProps {
|
|
15
|
+
/** the HR zones left→right (cool/recovery → hot/max), typically 5 (Z1..Z5); width ∝ value */
|
|
16
|
+
zones: ZoneBarZone[];
|
|
17
|
+
/** index 0..n-1 of the active zone → lit segment + marker tick (omit for none) */
|
|
18
|
+
current?: number;
|
|
19
|
+
/** render the zone labels (Z1..Z5) under the bar */
|
|
20
|
+
showLabels?: boolean;
|
|
21
|
+
/** bar thickness in px (default 8) */
|
|
22
|
+
height?: number;
|
|
23
|
+
/** optional wrapper style */
|
|
24
|
+
style?: StyleProp<ViewStyle>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Default Z1→Z5 color ramp — cool recovery → hot max, mirroring the web ZoneBar
|
|
29
|
+
* (the design's `.z1`..`.z5`): cyan → mint/teal → lime → amber → red.
|
|
30
|
+
*/
|
|
31
|
+
const ZONE_RAMP = [
|
|
32
|
+
colors.cyan, // Z1 — recovery
|
|
33
|
+
colors.zoneHigh, // Z2 — easy (mint/teal)
|
|
34
|
+
colors.lime, // Z3 — aerobic
|
|
35
|
+
colors.zoneMid, // Z4 — threshold (amber)
|
|
36
|
+
colors.zoneLow, // Z5 — max (red)
|
|
37
|
+
] as const;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* ZoneBar — a horizontal heart-rate training-zone bar (native).
|
|
41
|
+
*
|
|
42
|
+
* Renders the 5 HR zones (Z1..Z5) as a row of token-colored pill segments whose
|
|
43
|
+
* widths are proportional to time-in-zone, with the cool→hot Z1→Z5 ramp. The
|
|
44
|
+
* `current` zone is lit (the rest dim) and carries a bright marker tick showing
|
|
45
|
+
* where the athlete is right now. Mirrors the web ZoneBar 1:1 (same export +
|
|
46
|
+
* prop API) — apps use this, never hand-roll a zone bar (see SDD §9).
|
|
47
|
+
*/
|
|
48
|
+
export function ZoneBar({ zones, current, showLabels = false, height = 8, style }: ZoneBarProps) {
|
|
49
|
+
const sum = zones.reduce((acc, z) => acc + (z.value > 0 ? z.value : 0), 0);
|
|
50
|
+
const hasCurrent = typeof current === 'number' && current >= 0 && current < zones.length;
|
|
51
|
+
const baseOpacity = hasCurrent ? 0.42 : 0.85;
|
|
52
|
+
const markH = height + 6;
|
|
53
|
+
|
|
54
|
+
const zoneName = (z: ZoneBarZone, i: number) => z.label ?? `Z${i + 1}`;
|
|
55
|
+
const zoneColor = (z: ZoneBarZone, i: number) => z.color ?? ZONE_RAMP[i] ?? colors.accent;
|
|
56
|
+
|
|
57
|
+
const ariaLabel = `Heart-rate zones: ${zones
|
|
58
|
+
.map((z, i) => `${zoneName(z, i)}${hasCurrent && current === i ? ' (current)' : ''}`)
|
|
59
|
+
.join(', ')}.`;
|
|
60
|
+
|
|
61
|
+
return (
|
|
62
|
+
<View style={[styles.wrap, style]}>
|
|
63
|
+
<View style={[styles.track, { height }]} accessibilityRole="image" accessibilityLabel={ariaLabel}>
|
|
64
|
+
{zones.map((z, i) => {
|
|
65
|
+
const v = z.value > 0 ? z.value : 0;
|
|
66
|
+
// weight by share; if every zone is empty, fall back to equal widths
|
|
67
|
+
const grow = sum > 0 ? v : 1;
|
|
68
|
+
const isCurrent = hasCurrent && current === i;
|
|
69
|
+
const color = zoneColor(z, i);
|
|
70
|
+
return (
|
|
71
|
+
<View
|
|
72
|
+
key={`${zoneName(z, i)}-${i}`}
|
|
73
|
+
style={[
|
|
74
|
+
styles.seg,
|
|
75
|
+
{ flexGrow: grow, backgroundColor: color, opacity: isCurrent ? 1 : baseOpacity },
|
|
76
|
+
isCurrent && {
|
|
77
|
+
shadowColor: color,
|
|
78
|
+
shadowOpacity: 0.7,
|
|
79
|
+
shadowRadius: 8,
|
|
80
|
+
shadowOffset: { width: 0, height: 0 },
|
|
81
|
+
elevation: 3,
|
|
82
|
+
},
|
|
83
|
+
]}
|
|
84
|
+
>
|
|
85
|
+
{isCurrent && <View style={[styles.mark, { height: markH }]} pointerEvents="none" />}
|
|
86
|
+
</View>
|
|
87
|
+
);
|
|
88
|
+
})}
|
|
89
|
+
</View>
|
|
90
|
+
|
|
91
|
+
{showLabels && (
|
|
92
|
+
<View style={styles.labels}>
|
|
93
|
+
{zones.map((z, i) => (
|
|
94
|
+
<Text
|
|
95
|
+
key={`lab-${zoneName(z, i)}-${i}`}
|
|
96
|
+
style={[styles.lab, hasCurrent && current === i && styles.labOn]}
|
|
97
|
+
>
|
|
98
|
+
{zoneName(z, i)}
|
|
99
|
+
</Text>
|
|
100
|
+
))}
|
|
101
|
+
</View>
|
|
102
|
+
)}
|
|
103
|
+
</View>
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
const styles = StyleSheet.create({
|
|
108
|
+
wrap: { width: '100%', gap: 6 },
|
|
109
|
+
track: {
|
|
110
|
+
position: 'relative',
|
|
111
|
+
flexDirection: 'row',
|
|
112
|
+
width: '100%',
|
|
113
|
+
gap: 3,
|
|
114
|
+
},
|
|
115
|
+
seg: {
|
|
116
|
+
flexBasis: 0,
|
|
117
|
+
minWidth: 3,
|
|
118
|
+
height: '100%',
|
|
119
|
+
borderRadius: radii.pill,
|
|
120
|
+
},
|
|
121
|
+
/* the bright "you are here" marker, centered on the current zone */
|
|
122
|
+
mark: {
|
|
123
|
+
position: 'absolute',
|
|
124
|
+
top: -3,
|
|
125
|
+
left: '50%',
|
|
126
|
+
marginLeft: -1.5,
|
|
127
|
+
width: 3,
|
|
128
|
+
borderRadius: 2,
|
|
129
|
+
backgroundColor: colors.text,
|
|
130
|
+
shadowColor: colors.text,
|
|
131
|
+
shadowOpacity: 0.85,
|
|
132
|
+
shadowRadius: 5,
|
|
133
|
+
shadowOffset: { width: 0, height: 0 },
|
|
134
|
+
elevation: 4,
|
|
135
|
+
zIndex: 2,
|
|
136
|
+
},
|
|
137
|
+
labels: { flexDirection: 'row', gap: 3 },
|
|
138
|
+
lab: {
|
|
139
|
+
flex: 1,
|
|
140
|
+
textAlign: 'center',
|
|
141
|
+
fontFamily: fonts.mono,
|
|
142
|
+
fontSize: 9.5,
|
|
143
|
+
fontWeight: '600',
|
|
144
|
+
letterSpacing: 0.57,
|
|
145
|
+
color: colors.textFaint,
|
|
146
|
+
},
|
|
147
|
+
labOn: { color: colors.text },
|
|
148
|
+
});
|