@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,781 @@
|
|
|
1
|
+
import { useId, type ReactNode } from 'react';
|
|
2
|
+
import { View, Text, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import Svg, { Circle, Defs, FeGaussianBlur, Filter, G, Line, Path, Rect, Text as SvgText } from 'react-native-svg';
|
|
4
|
+
import { colors, fonts, radii } from '@lockin90/tokens';
|
|
5
|
+
|
|
6
|
+
/** A colored phase band on the 24h ring, drawn CLOCKWISE from `from` to `to`
|
|
7
|
+
* (hours 0..24). When `from > to` the band wraps through midnight (e.g. 23→7). */
|
|
8
|
+
export interface PhaseArc {
|
|
9
|
+
/** band start hour, 0..24 */
|
|
10
|
+
from: number;
|
|
11
|
+
/** band end hour, 0..24 (clockwise from `from`; wraps midnight when < `from`) */
|
|
12
|
+
to: number;
|
|
13
|
+
/** the band color — a hex/rgb color string */
|
|
14
|
+
color: string;
|
|
15
|
+
/** optional label (for accessibility / external legends) */
|
|
16
|
+
label?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** A point marker sitting ON the ring at a given hour. */
|
|
20
|
+
export interface PhaseMarker {
|
|
21
|
+
/** the hour, 0..24 */
|
|
22
|
+
at: number;
|
|
23
|
+
/** the dot color — a hex/rgb color string (default the accent token) */
|
|
24
|
+
color?: string;
|
|
25
|
+
/** optional tiny label, placed just outside the ring */
|
|
26
|
+
label?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** One phase of a cycle (the cycle variants) — phases run consecutively from
|
|
30
|
+
* day 1, each `days` long, so the wheel/strip total is the sum of `days`. */
|
|
31
|
+
export interface CyclePhase {
|
|
32
|
+
/** phase name — legend, center readout + coach pill (rendered UPPERCASE) */
|
|
33
|
+
name: string;
|
|
34
|
+
/** phase length in days */
|
|
35
|
+
days: number;
|
|
36
|
+
/** the phase color — a hex/rgb color string */
|
|
37
|
+
color: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** Chart form. `'circadian'` (default) is the original 24h clock; the cycle
|
|
41
|
+
* variants are the CW catalog forms (28-day cycle wheel / coach wheel / strip). */
|
|
42
|
+
export type PhaseWheelVariant = 'circadian' | 'phase-wheel' | 'coach-wheel' | 'phase-strip';
|
|
43
|
+
|
|
44
|
+
export interface PhaseWheelProps {
|
|
45
|
+
/** chart form (default `'circadian'` — the 24h clock, unchanged) */
|
|
46
|
+
variant?: PhaseWheelVariant;
|
|
47
|
+
/** [circadian] colored phase bands on the ring */
|
|
48
|
+
arcs?: PhaseArc[];
|
|
49
|
+
/** [circadian] point markers on the ring */
|
|
50
|
+
markers?: PhaseMarker[];
|
|
51
|
+
/** [circadian] the "now" hour, 0..24 → draws a hand from center to the ring + a tip dot.
|
|
52
|
+
* Pass `null` to hide the hand (omitting it keeps the default). */
|
|
53
|
+
now?: number | null;
|
|
54
|
+
/** overall diameter in px (default 200; ignored by `phase-strip`) */
|
|
55
|
+
size?: number;
|
|
56
|
+
/** ring stroke width in px (default 16; ignored by `phase-strip`) */
|
|
57
|
+
thickness?: number;
|
|
58
|
+
/** [circadian] hour tick marks around the ring, longer + brighter at 0/6/12/18 (default true) */
|
|
59
|
+
hourTicks?: boolean;
|
|
60
|
+
/** [cycle] consecutive cycle phases (default: Menstrual 5 coral / Follicular 8
|
|
61
|
+
* cyan / Ovulation 3 lime / Luteal 12 violet — the 28-day catalog cycle) */
|
|
62
|
+
phases?: CyclePhase[];
|
|
63
|
+
/** [cycle] current cycle day, 1-based → today dot (wheels) / TODAY rule
|
|
64
|
+
* (strip) + center readout. Pass `null` to hide (center falls back to the
|
|
65
|
+
* cycle length, e.g. '28d'). Default 21. */
|
|
66
|
+
day?: number | null;
|
|
67
|
+
/** [phase-wheel · coach-wheel] FOCUS state: the named phase stays full-strength,
|
|
68
|
+
* the others dim to 20% and the center shows days left in it (needs `day`).
|
|
69
|
+
* Matched case-insensitively against `phases[].name`. */
|
|
70
|
+
focusPhase?: string;
|
|
71
|
+
/** [coach-wheel] recommendation text — the pill reads "<PHASE> — <TIP>"
|
|
72
|
+
* (default 'lower intensity, more sleep') */
|
|
73
|
+
tip?: string;
|
|
74
|
+
/** [phase-wheel · coach-wheel] phase legend beside the wheel
|
|
75
|
+
* (default: true for `'phase-wheel'`, false otherwise) */
|
|
76
|
+
legend?: boolean;
|
|
77
|
+
/** [phase-wheel · coach-wheel] soft glow behind the phase arcs (default false).
|
|
78
|
+
* Rendered as a Gaussian-blurred duplicate arc. */
|
|
79
|
+
shine?: boolean;
|
|
80
|
+
/** [phase-strip] total strip width in px (default 300) */
|
|
81
|
+
width?: number;
|
|
82
|
+
/** center content — defaults to the formatted `now` clock / cycle-day readout */
|
|
83
|
+
children?: ReactNode;
|
|
84
|
+
/** optional wrapper style */
|
|
85
|
+
style?: StyleProp<ViewStyle>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/** Default circadian phases. */
|
|
89
|
+
const DEFAULT_ARCS: PhaseArc[] = [
|
|
90
|
+
{ from: 23, to: 7, color: '#6E7BFF', label: 'Sleep' }, // indigo, wraps midnight
|
|
91
|
+
{ from: 9, to: 12, color: '#34F5C5', label: 'Peak focus' }, // mint
|
|
92
|
+
{ from: 14, to: 16, color: '#FFB020', label: 'Afternoon dip' }, // warn
|
|
93
|
+
{ from: 21, to: 23, color: '#A855F7', label: 'Wind-down' }, // violet
|
|
94
|
+
];
|
|
95
|
+
|
|
96
|
+
const DEFAULT_MARKERS: PhaseMarker[] = [
|
|
97
|
+
{ at: 7, color: '#22D3EE', label: 'Wake' },
|
|
98
|
+
{ at: 21, color: '#A855F7', label: 'Melatonin' },
|
|
99
|
+
];
|
|
100
|
+
|
|
101
|
+
/** Default 28-day cycle (the catalog's PH table). */
|
|
102
|
+
const DEFAULT_PHASES: CyclePhase[] = [
|
|
103
|
+
{ name: 'Menstrual', days: 5, color: colors.zoneLow }, // coral
|
|
104
|
+
{ name: 'Follicular', days: 8, color: colors.cyan },
|
|
105
|
+
{ name: 'Ovulation', days: 3, color: colors.lime },
|
|
106
|
+
{ name: 'Luteal', days: 12, color: colors.violet },
|
|
107
|
+
];
|
|
108
|
+
|
|
109
|
+
const DEFAULT_TIP = 'lower intensity, more sleep';
|
|
110
|
+
|
|
111
|
+
/** angular gap (deg) trimmed off EACH end of a cycle phase arc */
|
|
112
|
+
const ARC_GAP_DEG = 2.5;
|
|
113
|
+
|
|
114
|
+
/** clockwise span of an arc in hours, wrap-aware (from > to wraps midnight). */
|
|
115
|
+
function arcSpanHours(from: number, to: number) {
|
|
116
|
+
return ((to - from + 24) % 24) || 24;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/** point on a circle at center `c` radius `r` for hour `h` (0..24), with hour 0
|
|
120
|
+
* at the top (12 o'clock) and growing clockwise. */
|
|
121
|
+
function hourPoint(c: number, r: number, h: number) {
|
|
122
|
+
const deg = (h / 24) * 360 - 90;
|
|
123
|
+
const a = (deg * Math.PI) / 180;
|
|
124
|
+
return { x: c + r * Math.cos(a), y: c + r * Math.sin(a) };
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/** point on a circle for an angle in degrees, 0° at 12 o'clock, clockwise. */
|
|
128
|
+
function polarPoint(cx: number, cy: number, r: number, aDeg: number) {
|
|
129
|
+
const a = ((aDeg - 90) * Math.PI) / 180;
|
|
130
|
+
return { x: cx + r * Math.cos(a), y: cy + r * Math.sin(a) };
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/** SVG arc path from `a0` to `a1` degrees (0° at top, clockwise). */
|
|
134
|
+
function arcPath(cx: number, cy: number, r: number, a0: number, a1: number) {
|
|
135
|
+
const p0 = polarPoint(cx, cy, r, a0);
|
|
136
|
+
const p1 = polarPoint(cx, cy, r, a1);
|
|
137
|
+
const large = (a1 - a0) % 360 > 180 ? 1 : 0;
|
|
138
|
+
return `M${p0.x.toFixed(2)} ${p0.y.toFixed(2)}A${r} ${r} 0 ${large} 1 ${p1.x.toFixed(2)} ${p1.y.toFixed(2)}`;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/** A cycle phase resolved to its 1-based inclusive day range. */
|
|
142
|
+
interface PhaseRange extends CyclePhase {
|
|
143
|
+
start: number;
|
|
144
|
+
end: number;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/** Lay the phases end-to-end from day 1 → `{ ranges, total }`. */
|
|
148
|
+
function phaseRanges(phases: CyclePhase[]): { ranges: PhaseRange[]; total: number } {
|
|
149
|
+
let start = 1;
|
|
150
|
+
const ranges = phases.map((p) => {
|
|
151
|
+
const r = { ...p, start, end: start + p.days - 1 };
|
|
152
|
+
start += p.days;
|
|
153
|
+
return r;
|
|
154
|
+
});
|
|
155
|
+
return { ranges, total: Math.max(1, start - 1) };
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/** angle (deg, 0° at top, clockwise) where cycle day `d` STARTS */
|
|
159
|
+
function dayAngle(d: number, total: number) {
|
|
160
|
+
return ((d - 1) / total) * 360;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/** the D-tick days of a strip: D1, every 7th day, and the last day. */
|
|
164
|
+
function stripTicks(total: number): number[] {
|
|
165
|
+
const ticks = [1];
|
|
166
|
+
for (let d = 7; d <= total; d += 7) ticks.push(d);
|
|
167
|
+
if (ticks[ticks.length - 1] !== total) ticks.push(total);
|
|
168
|
+
return ticks;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/** Append an alpha byte to a 6-digit hex token (pass-through otherwise). */
|
|
172
|
+
function withAlpha(color: string, alphaHex: string) {
|
|
173
|
+
return /^#[0-9a-fA-F]{6}$/.test(color) ? `${color}${alphaHex}` : color;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/** Format an hour (0..24, may be fractional) as a 12h clock like '2:30p'
|
|
177
|
+
* (a/p suffix, drops ':00'). */
|
|
178
|
+
function formatHour(h: number): string {
|
|
179
|
+
const norm = ((h % 24) + 24) % 24;
|
|
180
|
+
const totalMin = Math.round(norm * 60) % (24 * 60);
|
|
181
|
+
const hr = Math.floor(totalMin / 60);
|
|
182
|
+
const min = totalMin % 60;
|
|
183
|
+
const suffix = hr >= 12 ? 'p' : 'a';
|
|
184
|
+
let h12 = hr % 12;
|
|
185
|
+
if (h12 === 0) h12 = 12;
|
|
186
|
+
return min === 0 ? `${h12}${suffix}` : `${h12}:${String(min).padStart(2, '0')}${suffix}`;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/** The four cardinal hour labels at 0/6/12/18. */
|
|
190
|
+
const CARDINALS: { h: number; label: string }[] = [
|
|
191
|
+
{ h: 0, label: '12a' },
|
|
192
|
+
{ h: 6, label: '6a' },
|
|
193
|
+
{ h: 12, label: '12p' },
|
|
194
|
+
{ h: 18, label: '6p' },
|
|
195
|
+
];
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* PhaseWheel — the kit's phase-cycle chart.
|
|
199
|
+
*
|
|
200
|
+
* Default (`variant="circadian"`): a circular 24-hour circadian clock — a faint
|
|
201
|
+
* full track ring with colored phase bands (sleep / focus / dip / wind-down),
|
|
202
|
+
* hour ticks (longer + brighter at the quarters with cardinal labels), point
|
|
203
|
+
* markers on the ring, an optional "now" hand from center to the ring, and
|
|
204
|
+
* centered content (the formatted current time or '24h'). Hour 0 (midnight)
|
|
205
|
+
* sits at the top and time runs clockwise.
|
|
206
|
+
*
|
|
207
|
+
* Cycle variants (the CW catalog):
|
|
208
|
+
* - `'phase-wheel'` (CW-01) — 4 menstrual-cycle phase arcs (coral/cyan/lime/
|
|
209
|
+
* violet, round caps, gaps), D-labels, a today dot, center day/phase readout
|
|
210
|
+
* + legend; `focusPhase` dims the other phases to 20% and the center shows
|
|
211
|
+
* the days left in the focused phase.
|
|
212
|
+
* - `'coach-wheel'` (CW-04) — the wheel + a phase-tinted recommendation pill
|
|
213
|
+
* under it ("LUTEAL — LOWER INTENSITY, MORE SLEEP").
|
|
214
|
+
* - `'phase-strip'` (CW-05) — the wheel unrolled: phase pills on a linear
|
|
215
|
+
* 28-day strip + TODAY rule + D-ticks.
|
|
216
|
+
*
|
|
217
|
+
* Tokens-driven.
|
|
218
|
+
*/
|
|
219
|
+
export function PhaseWheel({
|
|
220
|
+
variant = 'circadian',
|
|
221
|
+
arcs = DEFAULT_ARCS,
|
|
222
|
+
markers = DEFAULT_MARKERS,
|
|
223
|
+
now = 14.5,
|
|
224
|
+
size = 200,
|
|
225
|
+
thickness = 16,
|
|
226
|
+
hourTicks = true,
|
|
227
|
+
phases = DEFAULT_PHASES,
|
|
228
|
+
day = 21,
|
|
229
|
+
focusPhase,
|
|
230
|
+
tip = DEFAULT_TIP,
|
|
231
|
+
legend,
|
|
232
|
+
shine = false,
|
|
233
|
+
width = 300,
|
|
234
|
+
children,
|
|
235
|
+
style,
|
|
236
|
+
}: PhaseWheelProps) {
|
|
237
|
+
const uidRaw = useId().replace(/[^a-zA-Z0-9]/g, '');
|
|
238
|
+
const blurId = `lk-pw-blur-${uidRaw}`;
|
|
239
|
+
/* ---------------------------------------------------------------- cycle */
|
|
240
|
+
if (variant !== 'circadian') {
|
|
241
|
+
const { ranges, total } = phaseRanges(phases);
|
|
242
|
+
const cday = day == null ? null : Math.min(Math.max(Math.round(day), 1), total);
|
|
243
|
+
const currentPhase =
|
|
244
|
+
cday !== null ? ranges.find((r) => cday >= r.start && cday <= r.end) : undefined;
|
|
245
|
+
const phasesLabel = ranges.map((r) => `${r.name} D${r.start}–${r.end}`).join(', ');
|
|
246
|
+
|
|
247
|
+
/* ------------------------------------------------------ CW-05 strip */
|
|
248
|
+
if (variant === 'phase-strip') {
|
|
249
|
+
const stripH = 76;
|
|
250
|
+
const y = 44; // pill row center
|
|
251
|
+
const x0 = 8;
|
|
252
|
+
const ww = width - 16;
|
|
253
|
+
const tagLabel = cday !== null ? `TODAY · D${cday}` : null;
|
|
254
|
+
const tagW = tagLabel ? tagLabel.length * 5.35 + 12 : 0;
|
|
255
|
+
const tx = cday !== null ? x0 + (ww * (cday - 0.5)) / total : 0;
|
|
256
|
+
const tagX = tagLabel ? Math.max(2, Math.min(tx - tagW / 2, width - tagW - 2)) : 0;
|
|
257
|
+
const todayColor = currentPhase?.color ?? colors.violet;
|
|
258
|
+
const a11y = `${total}-day cycle strip${
|
|
259
|
+
cday !== null ? `, day ${cday}${currentPhase ? ` (${currentPhase.name})` : ''}` : ''
|
|
260
|
+
}: ${phasesLabel}.`;
|
|
261
|
+
|
|
262
|
+
return (
|
|
263
|
+
<View
|
|
264
|
+
style={[styles.stripRoot, { width }, style]}
|
|
265
|
+
accessibilityRole="image"
|
|
266
|
+
accessibilityLabel={a11y}
|
|
267
|
+
>
|
|
268
|
+
<Svg width={width} height={stripH} viewBox={`0 0 ${width} ${stripH}`}>
|
|
269
|
+
{/* phase pills */}
|
|
270
|
+
{ranges.map((r) => {
|
|
271
|
+
const xs = x0 + (ww * (r.start - 1)) / total;
|
|
272
|
+
const xe = x0 + (ww * r.end) / total;
|
|
273
|
+
const w = xe - xs - 2;
|
|
274
|
+
if (w <= 0) return null;
|
|
275
|
+
return (
|
|
276
|
+
<G key={r.name}>
|
|
277
|
+
<Rect
|
|
278
|
+
x={xs}
|
|
279
|
+
y={y - 8}
|
|
280
|
+
width={w}
|
|
281
|
+
height={16}
|
|
282
|
+
rx={8}
|
|
283
|
+
fill={r.color}
|
|
284
|
+
opacity={0.8}
|
|
285
|
+
/>
|
|
286
|
+
{w > 52 ? (
|
|
287
|
+
<SvgText
|
|
288
|
+
x={(xs + xe) / 2}
|
|
289
|
+
y={y}
|
|
290
|
+
fill={colors.bg0}
|
|
291
|
+
fontFamily={fonts.mono}
|
|
292
|
+
fontSize={9}
|
|
293
|
+
textAnchor="middle"
|
|
294
|
+
alignmentBaseline="central"
|
|
295
|
+
>
|
|
296
|
+
{r.name.toUpperCase()}
|
|
297
|
+
</SvgText>
|
|
298
|
+
) : null}
|
|
299
|
+
</G>
|
|
300
|
+
);
|
|
301
|
+
})}
|
|
302
|
+
|
|
303
|
+
{/* D-ticks under the strip */}
|
|
304
|
+
{stripTicks(total).map((d) => (
|
|
305
|
+
<SvgText
|
|
306
|
+
key={`tick-${d}`}
|
|
307
|
+
x={x0 + (ww * (d - 0.5)) / total}
|
|
308
|
+
y={y + 21}
|
|
309
|
+
fill={colors.textFaint}
|
|
310
|
+
fontFamily={fonts.mono}
|
|
311
|
+
fontSize={9}
|
|
312
|
+
textAnchor="middle"
|
|
313
|
+
alignmentBaseline="central"
|
|
314
|
+
>
|
|
315
|
+
{`D${d}`}
|
|
316
|
+
</SvgText>
|
|
317
|
+
))}
|
|
318
|
+
|
|
319
|
+
{/* TODAY rule + tag */}
|
|
320
|
+
{tagLabel ? (
|
|
321
|
+
<G>
|
|
322
|
+
<Line
|
|
323
|
+
x1={tx}
|
|
324
|
+
x2={tx}
|
|
325
|
+
y1={y - 18}
|
|
326
|
+
y2={y + 12}
|
|
327
|
+
stroke={colors.text}
|
|
328
|
+
strokeOpacity={0.4}
|
|
329
|
+
strokeWidth={1.2}
|
|
330
|
+
/>
|
|
331
|
+
<Rect
|
|
332
|
+
x={tagX}
|
|
333
|
+
y={y - 26 - 6.5}
|
|
334
|
+
width={tagW}
|
|
335
|
+
height={13}
|
|
336
|
+
rx={6.5}
|
|
337
|
+
fill={colors.bg0}
|
|
338
|
+
fillOpacity={0.78}
|
|
339
|
+
stroke={todayColor}
|
|
340
|
+
strokeOpacity={0.35}
|
|
341
|
+
strokeWidth={0.8}
|
|
342
|
+
/>
|
|
343
|
+
<SvgText
|
|
344
|
+
x={tagX + tagW / 2}
|
|
345
|
+
y={y - 26}
|
|
346
|
+
fill={todayColor}
|
|
347
|
+
fontFamily={fonts.mono}
|
|
348
|
+
fontSize={8}
|
|
349
|
+
textAnchor="middle"
|
|
350
|
+
alignmentBaseline="central"
|
|
351
|
+
>
|
|
352
|
+
{tagLabel}
|
|
353
|
+
</SvgText>
|
|
354
|
+
</G>
|
|
355
|
+
) : null}
|
|
356
|
+
</Svg>
|
|
357
|
+
</View>
|
|
358
|
+
);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/* --------------------------------------- CW-01 / CW-04 cycle wheels */
|
|
362
|
+
const showLegend = legend ?? variant === 'phase-wheel';
|
|
363
|
+
// RN SVG hard-clips at its bounds, so pad the canvas for the D-labels.
|
|
364
|
+
const PAD = 16;
|
|
365
|
+
const canvas = size + PAD * 2;
|
|
366
|
+
const c = canvas / 2;
|
|
367
|
+
const r = (size - thickness) / 2;
|
|
368
|
+
const dLabelRadius = r + thickness / 2 + 6;
|
|
369
|
+
|
|
370
|
+
const focus =
|
|
371
|
+
focusPhase != null
|
|
372
|
+
? ranges.find((p) => p.name.toLowerCase() === focusPhase.toLowerCase())
|
|
373
|
+
: undefined;
|
|
374
|
+
const daysLeft = focus && cday !== null ? Math.max(0, focus.end - cday) : null;
|
|
375
|
+
|
|
376
|
+
const big =
|
|
377
|
+
daysLeft !== null
|
|
378
|
+
? `${daysLeft}d`
|
|
379
|
+
: cday !== null
|
|
380
|
+
? variant === 'coach-wheel'
|
|
381
|
+
? `D${cday}`
|
|
382
|
+
: `DAY ${cday}`
|
|
383
|
+
: `${total}d`;
|
|
384
|
+
const sub =
|
|
385
|
+
daysLeft !== null && focus
|
|
386
|
+
? `LEFT · ${focus.name.toUpperCase()}`
|
|
387
|
+
: currentPhase
|
|
388
|
+
? currentPhase.name.toUpperCase()
|
|
389
|
+
: null;
|
|
390
|
+
|
|
391
|
+
const tipText =
|
|
392
|
+
variant === 'coach-wheel'
|
|
393
|
+
? `${currentPhase ? `${currentPhase.name} — ` : ''}${tip}`.toUpperCase()
|
|
394
|
+
: null;
|
|
395
|
+
const tipColor = currentPhase?.color ?? colors.violet;
|
|
396
|
+
|
|
397
|
+
const todayPt = cday !== null ? polarPoint(c, c, r, dayAngle(cday, total)) : null;
|
|
398
|
+
|
|
399
|
+
const a11y = `${total}-day cycle wheel${
|
|
400
|
+
cday !== null ? `, day ${cday}${currentPhase ? ` (${currentPhase.name})` : ''}` : ''
|
|
401
|
+
}: ${phasesLabel}.${
|
|
402
|
+
focus && daysLeft !== null ? ` Focus ${focus.name}, ${daysLeft} days left.` : ''
|
|
403
|
+
}${tipText ? ` Coach: ${tipText}.` : ''}`;
|
|
404
|
+
|
|
405
|
+
return (
|
|
406
|
+
<View
|
|
407
|
+
style={[styles.cycleRoot, style]}
|
|
408
|
+
accessibilityRole="image"
|
|
409
|
+
accessibilityLabel={a11y}
|
|
410
|
+
>
|
|
411
|
+
<View style={styles.cycleRow}>
|
|
412
|
+
<View style={[styles.dial, { width: canvas, height: canvas }]}>
|
|
413
|
+
<Svg width={canvas} height={canvas} viewBox={`0 0 ${canvas} ${canvas}`}>
|
|
414
|
+
{shine ? (
|
|
415
|
+
/* real Gaussian blur for the arc shine (Fabric-native in
|
|
416
|
+
react-native-svg 15) — the native twin of the web arc's
|
|
417
|
+
`drop-shadow(0 0 5px) + drop-shadow(0 0 12px)` currentColor
|
|
418
|
+
pair. Region in user space so short arcs never clip the blur. */
|
|
419
|
+
<Defs>
|
|
420
|
+
<Filter
|
|
421
|
+
id={blurId}
|
|
422
|
+
filterUnits="userSpaceOnUse"
|
|
423
|
+
x={-10}
|
|
424
|
+
y={-10}
|
|
425
|
+
width={canvas + 20}
|
|
426
|
+
height={canvas + 20}
|
|
427
|
+
>
|
|
428
|
+
<FeGaussianBlur stdDeviation={5} />
|
|
429
|
+
</Filter>
|
|
430
|
+
</Defs>
|
|
431
|
+
) : null}
|
|
432
|
+
{/* phase arcs — round caps, 2.5° gap trimmed off each end.
|
|
433
|
+
`shine` = a Gaussian-blurred duplicate arc behind the real one. */}
|
|
434
|
+
{ranges.map((p) => {
|
|
435
|
+
const a0 = dayAngle(p.start, total) + ARC_GAP_DEG;
|
|
436
|
+
const a1 = dayAngle(p.end + 1, total) - ARC_GAP_DEG;
|
|
437
|
+
if (a1 <= a0) return null;
|
|
438
|
+
const dimmed = focus != null && focus.name !== p.name;
|
|
439
|
+
const d = arcPath(c, c, r, a0, a1);
|
|
440
|
+
return (
|
|
441
|
+
<G key={p.name} opacity={dimmed ? 0.2 : 0.9}>
|
|
442
|
+
{shine ? (
|
|
443
|
+
<Path
|
|
444
|
+
d={d}
|
|
445
|
+
fill="none"
|
|
446
|
+
stroke={p.color}
|
|
447
|
+
strokeWidth={thickness + 2}
|
|
448
|
+
strokeOpacity={0.6}
|
|
449
|
+
strokeLinecap="round"
|
|
450
|
+
filter={`url(#${blurId})`}
|
|
451
|
+
/>
|
|
452
|
+
) : null}
|
|
453
|
+
<Path
|
|
454
|
+
d={d}
|
|
455
|
+
fill="none"
|
|
456
|
+
stroke={p.color}
|
|
457
|
+
strokeWidth={thickness}
|
|
458
|
+
strokeLinecap="round"
|
|
459
|
+
/>
|
|
460
|
+
</G>
|
|
461
|
+
);
|
|
462
|
+
})}
|
|
463
|
+
|
|
464
|
+
{/* D-labels every 7 days (D1, D8, …) just outside the ring */}
|
|
465
|
+
{Array.from({ length: Math.ceil(total / 7) }, (_, i) => 1 + i * 7).map((d) => {
|
|
466
|
+
const p = polarPoint(c, c, dLabelRadius, dayAngle(d, total));
|
|
467
|
+
return (
|
|
468
|
+
<SvgText
|
|
469
|
+
key={`d-${d}`}
|
|
470
|
+
x={p.x}
|
|
471
|
+
y={p.y}
|
|
472
|
+
fill={colors.textFaint}
|
|
473
|
+
fontFamily={fonts.mono}
|
|
474
|
+
fontSize={9}
|
|
475
|
+
textAnchor="middle"
|
|
476
|
+
alignmentBaseline="central"
|
|
477
|
+
>
|
|
478
|
+
{`D${d}`}
|
|
479
|
+
</SvgText>
|
|
480
|
+
);
|
|
481
|
+
})}
|
|
482
|
+
|
|
483
|
+
{/* today — dot on the ring + static halo (web pulses; native
|
|
484
|
+
shows a static ring — StatusDot precedent) */}
|
|
485
|
+
{todayPt ? (
|
|
486
|
+
<G>
|
|
487
|
+
<Circle cx={todayPt.x} cy={todayPt.y} r={4} fill={colors.text} />
|
|
488
|
+
<Circle
|
|
489
|
+
cx={todayPt.x}
|
|
490
|
+
cy={todayPt.y}
|
|
491
|
+
r={8}
|
|
492
|
+
fill="none"
|
|
493
|
+
stroke={colors.text}
|
|
494
|
+
strokeWidth={1.4}
|
|
495
|
+
strokeOpacity={0.3}
|
|
496
|
+
/>
|
|
497
|
+
</G>
|
|
498
|
+
) : null}
|
|
499
|
+
</Svg>
|
|
500
|
+
|
|
501
|
+
<View style={styles.center} pointerEvents="none">
|
|
502
|
+
{children ?? (
|
|
503
|
+
<>
|
|
504
|
+
<Text style={styles.day}>{big}</Text>
|
|
505
|
+
{sub ? <Text style={styles.daySub}>{sub}</Text> : null}
|
|
506
|
+
</>
|
|
507
|
+
)}
|
|
508
|
+
</View>
|
|
509
|
+
</View>
|
|
510
|
+
|
|
511
|
+
{showLegend ? (
|
|
512
|
+
<View style={styles.legend}>
|
|
513
|
+
{ranges.map((p) => (
|
|
514
|
+
<View key={p.name} style={styles.legendItem}>
|
|
515
|
+
<View style={[styles.legendDot, { backgroundColor: p.color }]} />
|
|
516
|
+
<Text style={styles.legendLabel}>
|
|
517
|
+
{`${p.name.toUpperCase()} · D${p.start}-${p.end}`}
|
|
518
|
+
</Text>
|
|
519
|
+
</View>
|
|
520
|
+
))}
|
|
521
|
+
</View>
|
|
522
|
+
) : null}
|
|
523
|
+
</View>
|
|
524
|
+
|
|
525
|
+
{tipText ? (
|
|
526
|
+
<View
|
|
527
|
+
style={[
|
|
528
|
+
styles.tip,
|
|
529
|
+
{
|
|
530
|
+
backgroundColor: withAlpha(colors.bg0, 'C7'), // 78%
|
|
531
|
+
borderColor: withAlpha(tipColor, '59'), // 35%
|
|
532
|
+
},
|
|
533
|
+
]}
|
|
534
|
+
>
|
|
535
|
+
<Text style={[styles.tipText, { color: tipColor }]}>{tipText}</Text>
|
|
536
|
+
</View>
|
|
537
|
+
) : null}
|
|
538
|
+
</View>
|
|
539
|
+
);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
/* ------------------------------------------------------------ circadian */
|
|
543
|
+
// RN SVG hard-clips at its bounds (no overflow:visible), so pad the canvas
|
|
544
|
+
// out so cardinal + marker labels that sit OUTSIDE the ring aren't cut off.
|
|
545
|
+
const PAD = 46;
|
|
546
|
+
const canvas = size + PAD * 2;
|
|
547
|
+
const c = canvas / 2;
|
|
548
|
+
const r = (size - thickness) / 2;
|
|
549
|
+
const circ = 2 * Math.PI * r;
|
|
550
|
+
|
|
551
|
+
// tick geometry (just outside the ring)
|
|
552
|
+
const tickBase = r + thickness / 2 + 2;
|
|
553
|
+
const tickMinor = tickBase + 3;
|
|
554
|
+
const tickMajor = tickBase + 6;
|
|
555
|
+
const labelRadius = tickMajor + 14;
|
|
556
|
+
// marker label radius (outside the ring)
|
|
557
|
+
const markerLabelRadius = r + thickness / 2 + 16;
|
|
558
|
+
|
|
559
|
+
// `now` is hidden when null/undefined; precompute the hand tip + clock label
|
|
560
|
+
const nowTip = now != null ? hourPoint(c, r, now) : null;
|
|
561
|
+
const nowLabel = now != null ? formatHour(now) : null;
|
|
562
|
+
|
|
563
|
+
return (
|
|
564
|
+
<View style={[styles.root, { width: canvas, height: canvas }, style]}>
|
|
565
|
+
<Svg width={canvas} height={canvas} viewBox={`0 0 ${canvas} ${canvas}`}>
|
|
566
|
+
{/* rotated group so fraction-of-circle hours start at 12 o'clock, clockwise */}
|
|
567
|
+
<G origin={`${c}, ${c}`} rotation={-90}>
|
|
568
|
+
{/* faint full track ring */}
|
|
569
|
+
<Circle
|
|
570
|
+
cx={c}
|
|
571
|
+
cy={c}
|
|
572
|
+
r={r}
|
|
573
|
+
fill="none"
|
|
574
|
+
stroke="rgba(255,255,255,0.07)"
|
|
575
|
+
strokeWidth={thickness}
|
|
576
|
+
strokeLinecap="round"
|
|
577
|
+
/>
|
|
578
|
+
{/* colored phase bands */}
|
|
579
|
+
{arcs.map((a, i) => {
|
|
580
|
+
const span = arcSpanHours(a.from, a.to);
|
|
581
|
+
const len = (span / 24) * circ;
|
|
582
|
+
if (len <= 0) return null;
|
|
583
|
+
const offset = -(a.from / 24) * circ;
|
|
584
|
+
return (
|
|
585
|
+
<Circle
|
|
586
|
+
key={`${a.label ?? 'arc'}-${i}`}
|
|
587
|
+
cx={c}
|
|
588
|
+
cy={c}
|
|
589
|
+
r={r}
|
|
590
|
+
fill="none"
|
|
591
|
+
stroke={a.color}
|
|
592
|
+
strokeWidth={thickness}
|
|
593
|
+
strokeLinecap="round"
|
|
594
|
+
strokeDasharray={[len, circ - len]}
|
|
595
|
+
strokeDashoffset={offset}
|
|
596
|
+
/>
|
|
597
|
+
);
|
|
598
|
+
})}
|
|
599
|
+
</G>
|
|
600
|
+
|
|
601
|
+
{/* hour ticks (drawn in screen space via hourPoint, no rotated group) */}
|
|
602
|
+
{hourTicks
|
|
603
|
+
? Array.from({ length: 24 }, (_, h) => {
|
|
604
|
+
const major = h % 6 === 0;
|
|
605
|
+
const outer = major ? tickMajor : tickMinor;
|
|
606
|
+
const p1 = hourPoint(c, tickBase, h);
|
|
607
|
+
const p2 = hourPoint(c, outer, h);
|
|
608
|
+
return (
|
|
609
|
+
<Line
|
|
610
|
+
key={`tick-${h}`}
|
|
611
|
+
x1={p1.x}
|
|
612
|
+
y1={p1.y}
|
|
613
|
+
x2={p2.x}
|
|
614
|
+
y2={p2.y}
|
|
615
|
+
stroke={major ? colors.textDim : colors.border2}
|
|
616
|
+
strokeWidth={major ? 2 : 1.5}
|
|
617
|
+
strokeLinecap="round"
|
|
618
|
+
/>
|
|
619
|
+
);
|
|
620
|
+
})
|
|
621
|
+
: null}
|
|
622
|
+
|
|
623
|
+
{/* cardinal labels at 0/6/12/18 */}
|
|
624
|
+
{hourTicks
|
|
625
|
+
? CARDINALS.map(({ h, label }) => {
|
|
626
|
+
const p = hourPoint(c, labelRadius, h);
|
|
627
|
+
return (
|
|
628
|
+
<SvgText
|
|
629
|
+
key={`card-${h}`}
|
|
630
|
+
x={p.x}
|
|
631
|
+
y={p.y}
|
|
632
|
+
fill={colors.textDim}
|
|
633
|
+
fontFamily={fonts.mono}
|
|
634
|
+
fontSize={9}
|
|
635
|
+
textAnchor="middle"
|
|
636
|
+
alignmentBaseline="central"
|
|
637
|
+
>
|
|
638
|
+
{label}
|
|
639
|
+
</SvgText>
|
|
640
|
+
);
|
|
641
|
+
})
|
|
642
|
+
: null}
|
|
643
|
+
|
|
644
|
+
{/* now hand — line from center to the inner edge of the ring + tip dot */}
|
|
645
|
+
{nowTip ? (
|
|
646
|
+
<G>
|
|
647
|
+
<Line
|
|
648
|
+
x1={c}
|
|
649
|
+
y1={c}
|
|
650
|
+
x2={nowTip.x}
|
|
651
|
+
y2={nowTip.y}
|
|
652
|
+
stroke={colors.text}
|
|
653
|
+
strokeWidth={2}
|
|
654
|
+
strokeLinecap="round"
|
|
655
|
+
opacity={0.85}
|
|
656
|
+
/>
|
|
657
|
+
<Circle cx={nowTip.x} cy={nowTip.y} r={4} fill={colors.text} />
|
|
658
|
+
</G>
|
|
659
|
+
) : null}
|
|
660
|
+
|
|
661
|
+
{/* markers — dots on the ring + optional labels just outside */}
|
|
662
|
+
{markers.map((m, i) => {
|
|
663
|
+
const p = hourPoint(c, r, m.at);
|
|
664
|
+
const color = m.color ?? colors.accent;
|
|
665
|
+
const lp = m.label ? hourPoint(c, markerLabelRadius, m.at) : null;
|
|
666
|
+
return (
|
|
667
|
+
<G key={`mk-${m.label ?? 'm'}-${i}`}>
|
|
668
|
+
<Circle cx={p.x} cy={p.y} r={4} fill={color} />
|
|
669
|
+
{lp ? (
|
|
670
|
+
<SvgText
|
|
671
|
+
x={lp.x}
|
|
672
|
+
y={lp.y}
|
|
673
|
+
fill={colors.textFaint}
|
|
674
|
+
fontFamily={fonts.mono}
|
|
675
|
+
fontSize={9}
|
|
676
|
+
textAnchor="middle"
|
|
677
|
+
alignmentBaseline="central"
|
|
678
|
+
>
|
|
679
|
+
{m.label}
|
|
680
|
+
</SvgText>
|
|
681
|
+
) : null}
|
|
682
|
+
</G>
|
|
683
|
+
);
|
|
684
|
+
})}
|
|
685
|
+
</Svg>
|
|
686
|
+
|
|
687
|
+
<View style={styles.center} pointerEvents="none">
|
|
688
|
+
{children ?? <Text style={styles.clock}>{nowLabel ?? '24h'}</Text>}
|
|
689
|
+
</View>
|
|
690
|
+
</View>
|
|
691
|
+
);
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
const styles = StyleSheet.create({
|
|
695
|
+
root: { position: 'relative', alignItems: 'center', justifyContent: 'center' },
|
|
696
|
+
center: {
|
|
697
|
+
...StyleSheet.absoluteFillObject,
|
|
698
|
+
flexDirection: 'column',
|
|
699
|
+
alignItems: 'center',
|
|
700
|
+
justifyContent: 'center',
|
|
701
|
+
gap: 2,
|
|
702
|
+
},
|
|
703
|
+
clock: {
|
|
704
|
+
fontFamily: fonts.display,
|
|
705
|
+
fontSize: 30,
|
|
706
|
+
lineHeight: 30,
|
|
707
|
+
letterSpacing: -0.5,
|
|
708
|
+
color: colors.text,
|
|
709
|
+
textAlign: 'center',
|
|
710
|
+
},
|
|
711
|
+
/* ------------------------------------------------------ cycle variants */
|
|
712
|
+
cycleRoot: {
|
|
713
|
+
flexDirection: 'column',
|
|
714
|
+
alignItems: 'center',
|
|
715
|
+
gap: 12,
|
|
716
|
+
alignSelf: 'flex-start',
|
|
717
|
+
},
|
|
718
|
+
cycleRow: {
|
|
719
|
+
flexDirection: 'row',
|
|
720
|
+
alignItems: 'center',
|
|
721
|
+
gap: 18,
|
|
722
|
+
},
|
|
723
|
+
dial: {
|
|
724
|
+
position: 'relative',
|
|
725
|
+
alignItems: 'center',
|
|
726
|
+
justifyContent: 'center',
|
|
727
|
+
},
|
|
728
|
+
day: {
|
|
729
|
+
fontFamily: fonts.display,
|
|
730
|
+
fontWeight: '700',
|
|
731
|
+
fontSize: 24,
|
|
732
|
+
lineHeight: 26,
|
|
733
|
+
letterSpacing: -0.5,
|
|
734
|
+
color: colors.text,
|
|
735
|
+
textAlign: 'center',
|
|
736
|
+
},
|
|
737
|
+
daySub: {
|
|
738
|
+
fontFamily: fonts.mono,
|
|
739
|
+
fontSize: 9,
|
|
740
|
+
letterSpacing: 0.5,
|
|
741
|
+
color: colors.textFaint,
|
|
742
|
+
textAlign: 'center',
|
|
743
|
+
},
|
|
744
|
+
legend: {
|
|
745
|
+
flexDirection: 'column',
|
|
746
|
+
gap: 12,
|
|
747
|
+
},
|
|
748
|
+
legendItem: {
|
|
749
|
+
flexDirection: 'row',
|
|
750
|
+
alignItems: 'center',
|
|
751
|
+
gap: 8,
|
|
752
|
+
},
|
|
753
|
+
legendDot: {
|
|
754
|
+
width: 8,
|
|
755
|
+
height: 8,
|
|
756
|
+
borderRadius: 4,
|
|
757
|
+
},
|
|
758
|
+
legendLabel: {
|
|
759
|
+
fontFamily: fonts.mono,
|
|
760
|
+
fontSize: 9,
|
|
761
|
+
letterSpacing: 0.5,
|
|
762
|
+
color: colors.textDim,
|
|
763
|
+
},
|
|
764
|
+
tip: {
|
|
765
|
+
flexDirection: 'row',
|
|
766
|
+
alignItems: 'center',
|
|
767
|
+
alignSelf: 'center',
|
|
768
|
+
paddingVertical: 5,
|
|
769
|
+
paddingHorizontal: 12,
|
|
770
|
+
borderRadius: radii.pill,
|
|
771
|
+
borderWidth: 1,
|
|
772
|
+
},
|
|
773
|
+
tipText: {
|
|
774
|
+
fontFamily: fonts.mono,
|
|
775
|
+
fontSize: 9,
|
|
776
|
+
letterSpacing: 0.5,
|
|
777
|
+
},
|
|
778
|
+
stripRoot: {
|
|
779
|
+
alignSelf: 'flex-start',
|
|
780
|
+
},
|
|
781
|
+
});
|