@lockin90/ui-native 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Accordion.js +144 -0
- package/lib/commonjs/components/Accordion.js.map +1 -0
- package/lib/commonjs/components/AchievementBadge.js +225 -0
- package/lib/commonjs/components/AchievementBadge.js.map +1 -0
- package/lib/commonjs/components/Alert.js +232 -0
- package/lib/commonjs/components/Alert.js.map +1 -0
- package/lib/commonjs/components/AreaChart.js +506 -0
- package/lib/commonjs/components/AreaChart.js.map +1 -0
- package/lib/commonjs/components/AuroraBackground.js +267 -0
- package/lib/commonjs/components/AuroraBackground.js.map +1 -0
- package/lib/commonjs/components/Avatar.js +187 -0
- package/lib/commonjs/components/Avatar.js.map +1 -0
- package/lib/commonjs/components/AvatarStack.js +95 -0
- package/lib/commonjs/components/AvatarStack.js.map +1 -0
- package/lib/commonjs/components/BackLink.js +77 -0
- package/lib/commonjs/components/BackLink.js.map +1 -0
- package/lib/commonjs/components/Badge.js +136 -0
- package/lib/commonjs/components/Badge.js.map +1 -0
- package/lib/commonjs/components/BarChart.js +641 -0
- package/lib/commonjs/components/BarChart.js.map +1 -0
- package/lib/commonjs/components/BarFill.js +55 -0
- package/lib/commonjs/components/BarFill.js.map +1 -0
- package/lib/commonjs/components/BeeswarmChart.js +615 -0
- package/lib/commonjs/components/BeeswarmChart.js.map +1 -0
- package/lib/commonjs/components/BiomarkerRange.js +610 -0
- package/lib/commonjs/components/BiomarkerRange.js.map +1 -0
- package/lib/commonjs/components/BodyBattery.js +563 -0
- package/lib/commonjs/components/BodyBattery.js.map +1 -0
- package/lib/commonjs/components/BrandMark.js +184 -0
- package/lib/commonjs/components/BrandMark.js.map +1 -0
- package/lib/commonjs/components/BulletChart.js +406 -0
- package/lib/commonjs/components/BulletChart.js.map +1 -0
- package/lib/commonjs/components/Button.js +154 -0
- package/lib/commonjs/components/Button.js.map +1 -0
- package/lib/commonjs/components/CaffeineClock.js +491 -0
- package/lib/commonjs/components/CaffeineClock.js.map +1 -0
- package/lib/commonjs/components/Card.js +142 -0
- package/lib/commonjs/components/Card.js.map +1 -0
- package/lib/commonjs/components/CharCounter.js +106 -0
- package/lib/commonjs/components/CharCounter.js.map +1 -0
- package/lib/commonjs/components/ChartState.js +554 -0
- package/lib/commonjs/components/ChartState.js.map +1 -0
- package/lib/commonjs/components/Checkbox.js +180 -0
- package/lib/commonjs/components/Checkbox.js.map +1 -0
- package/lib/commonjs/components/Chip.js +218 -0
- package/lib/commonjs/components/Chip.js.map +1 -0
- package/lib/commonjs/components/ChoiceChip.js +133 -0
- package/lib/commonjs/components/ChoiceChip.js.map +1 -0
- package/lib/commonjs/components/CodeBlock.js +126 -0
- package/lib/commonjs/components/CodeBlock.js.map +1 -0
- package/lib/commonjs/components/CodeField.js +129 -0
- package/lib/commonjs/components/CodeField.js.map +1 -0
- package/lib/commonjs/components/ColorPicker.js +181 -0
- package/lib/commonjs/components/ColorPicker.js.map +1 -0
- package/lib/commonjs/components/ComboChart.js +419 -0
- package/lib/commonjs/components/ComboChart.js.map +1 -0
- package/lib/commonjs/components/Combobox.js +108 -0
- package/lib/commonjs/components/Combobox.js.map +1 -0
- package/lib/commonjs/components/CompareChart.js +627 -0
- package/lib/commonjs/components/CompareChart.js.map +1 -0
- package/lib/commonjs/components/CompositeChart.js +654 -0
- package/lib/commonjs/components/CompositeChart.js.map +1 -0
- package/lib/commonjs/components/Countdown.js +152 -0
- package/lib/commonjs/components/Countdown.js.map +1 -0
- package/lib/commonjs/components/CreditCardVisual.js +167 -0
- package/lib/commonjs/components/CreditCardVisual.js.map +1 -0
- package/lib/commonjs/components/DateField.js +365 -0
- package/lib/commonjs/components/DateField.js.map +1 -0
- package/lib/commonjs/components/DayTimelineBlocks.js +253 -0
- package/lib/commonjs/components/DayTimelineBlocks.js.map +1 -0
- package/lib/commonjs/components/DayWheel.js +467 -0
- package/lib/commonjs/components/DayWheel.js.map +1 -0
- package/lib/commonjs/components/DeltaPill.js +154 -0
- package/lib/commonjs/components/DeltaPill.js.map +1 -0
- package/lib/commonjs/components/DistributionChart.js +776 -0
- package/lib/commonjs/components/DistributionChart.js.map +1 -0
- package/lib/commonjs/components/Divider.js +74 -0
- package/lib/commonjs/components/Divider.js.map +1 -0
- package/lib/commonjs/components/DonutChart.js +337 -0
- package/lib/commonjs/components/DonutChart.js.map +1 -0
- package/lib/commonjs/components/DotsLoader.js +94 -0
- package/lib/commonjs/components/DotsLoader.js.map +1 -0
- package/lib/commonjs/components/EffectAttributionLine.js +105 -0
- package/lib/commonjs/components/EffectAttributionLine.js.map +1 -0
- package/lib/commonjs/components/EmptyState.js +120 -0
- package/lib/commonjs/components/EmptyState.js.map +1 -0
- package/lib/commonjs/components/EngagementBar.js +122 -0
- package/lib/commonjs/components/EngagementBar.js.map +1 -0
- package/lib/commonjs/components/EnvironmentChart.js +573 -0
- package/lib/commonjs/components/EnvironmentChart.js.map +1 -0
- package/lib/commonjs/components/Eyebrow.js +32 -0
- package/lib/commonjs/components/Eyebrow.js.map +1 -0
- package/lib/commonjs/components/FocalPointPicker.js +196 -0
- package/lib/commonjs/components/FocalPointPicker.js.map +1 -0
- package/lib/commonjs/components/FollowButton.js +95 -0
- package/lib/commonjs/components/FollowButton.js.map +1 -0
- package/lib/commonjs/components/ForecastCallout.js +116 -0
- package/lib/commonjs/components/ForecastCallout.js.map +1 -0
- package/lib/commonjs/components/FormField.js +204 -0
- package/lib/commonjs/components/FormField.js.map +1 -0
- package/lib/commonjs/components/FunnelChart.js +260 -0
- package/lib/commonjs/components/FunnelChart.js.map +1 -0
- package/lib/commonjs/components/Gauge.js +252 -0
- package/lib/commonjs/components/Gauge.js.map +1 -0
- package/lib/commonjs/components/GradientText.js +136 -0
- package/lib/commonjs/components/GradientText.js.map +1 -0
- package/lib/commonjs/components/Heatmap.js +419 -0
- package/lib/commonjs/components/Heatmap.js.map +1 -0
- package/lib/commonjs/components/Highlight.js +55 -0
- package/lib/commonjs/components/Highlight.js.map +1 -0
- package/lib/commonjs/components/Hypnogram.js +842 -0
- package/lib/commonjs/components/Hypnogram.js.map +1 -0
- package/lib/commonjs/components/Icon.js +486 -0
- package/lib/commonjs/components/Icon.js.map +1 -0
- package/lib/commonjs/components/Input.js +142 -0
- package/lib/commonjs/components/Input.js.map +1 -0
- package/lib/commonjs/components/InsightCard.js +119 -0
- package/lib/commonjs/components/InsightCard.js.map +1 -0
- package/lib/commonjs/components/KeyValue.js +93 -0
- package/lib/commonjs/components/KeyValue.js.map +1 -0
- package/lib/commonjs/components/LeaderboardRow.js +140 -0
- package/lib/commonjs/components/LeaderboardRow.js.map +1 -0
- package/lib/commonjs/components/LineChart.js +1544 -0
- package/lib/commonjs/components/LineChart.js.map +1 -0
- package/lib/commonjs/components/ListRow.js +122 -0
- package/lib/commonjs/components/ListRow.js.map +1 -0
- package/lib/commonjs/components/Menu.js +183 -0
- package/lib/commonjs/components/Menu.js.map +1 -0
- package/lib/commonjs/components/MessageBubble.js +117 -0
- package/lib/commonjs/components/MessageBubble.js.map +1 -0
- package/lib/commonjs/components/MessageComposer.js +212 -0
- package/lib/commonjs/components/MessageComposer.js.map +1 -0
- package/lib/commonjs/components/MetaphorWidget.js +1053 -0
- package/lib/commonjs/components/MetaphorWidget.js.map +1 -0
- package/lib/commonjs/components/Meter.js +173 -0
- package/lib/commonjs/components/Meter.js.map +1 -0
- package/lib/commonjs/components/MetricTile.js +268 -0
- package/lib/commonjs/components/MetricTile.js.map +1 -0
- package/lib/commonjs/components/MiniRing.js +30 -0
- package/lib/commonjs/components/MiniRing.js.map +1 -0
- package/lib/commonjs/components/Modal.js +153 -0
- package/lib/commonjs/components/Modal.js.map +1 -0
- package/lib/commonjs/components/MuscleDiagram.js +326 -0
- package/lib/commonjs/components/MuscleDiagram.js.map +1 -0
- package/lib/commonjs/components/NoteField.js +73 -0
- package/lib/commonjs/components/NoteField.js.map +1 -0
- package/lib/commonjs/components/NotificationRow.js +234 -0
- package/lib/commonjs/components/NotificationRow.js.map +1 -0
- package/lib/commonjs/components/Pagination.js +212 -0
- package/lib/commonjs/components/Pagination.js.map +1 -0
- package/lib/commonjs/components/PasswordInput.js +120 -0
- package/lib/commonjs/components/PasswordInput.js.map +1 -0
- package/lib/commonjs/components/PasswordStrengthMeter.js +108 -0
- package/lib/commonjs/components/PasswordStrengthMeter.js.map +1 -0
- package/lib/commonjs/components/PendingPatternCard.js +182 -0
- package/lib/commonjs/components/PendingPatternCard.js.map +1 -0
- package/lib/commonjs/components/PhaseWheel.js +704 -0
- package/lib/commonjs/components/PhaseWheel.js.map +1 -0
- package/lib/commonjs/components/PkChart.js +566 -0
- package/lib/commonjs/components/PkChart.js.map +1 -0
- package/lib/commonjs/components/Popover.js +234 -0
- package/lib/commonjs/components/Popover.js.map +1 -0
- package/lib/commonjs/components/PrBadge.js +71 -0
- package/lib/commonjs/components/PrBadge.js.map +1 -0
- package/lib/commonjs/components/PrCard.js +150 -0
- package/lib/commonjs/components/PrCard.js.map +1 -0
- package/lib/commonjs/components/PricingTierCard.js +237 -0
- package/lib/commonjs/components/PricingTierCard.js.map +1 -0
- package/lib/commonjs/components/ProGate.js +235 -0
- package/lib/commonjs/components/ProGate.js.map +1 -0
- package/lib/commonjs/components/ProgressBar.js +515 -0
- package/lib/commonjs/components/ProgressBar.js.map +1 -0
- package/lib/commonjs/components/Pulse.js +36 -0
- package/lib/commonjs/components/Pulse.js.map +1 -0
- package/lib/commonjs/components/QRCode.js +519 -0
- package/lib/commonjs/components/QRCode.js.map +1 -0
- package/lib/commonjs/components/RadarChart.js +492 -0
- package/lib/commonjs/components/RadarChart.js.map +1 -0
- package/lib/commonjs/components/RangeBar.js +191 -0
- package/lib/commonjs/components/RangeBar.js.map +1 -0
- package/lib/commonjs/components/ReauthDialog.js +261 -0
- package/lib/commonjs/components/ReauthDialog.js.map +1 -0
- package/lib/commonjs/components/RestTimer.js +246 -0
- package/lib/commonjs/components/RestTimer.js.map +1 -0
- package/lib/commonjs/components/RichText.js +81 -0
- package/lib/commonjs/components/RichText.js.map +1 -0
- package/lib/commonjs/components/RichTextEditor.js +274 -0
- package/lib/commonjs/components/RichTextEditor.js.map +1 -0
- package/lib/commonjs/components/Ring.js +239 -0
- package/lib/commonjs/components/Ring.js.map +1 -0
- package/lib/commonjs/components/RoseChart.js +376 -0
- package/lib/commonjs/components/RoseChart.js.map +1 -0
- package/lib/commonjs/components/SankeyChart.js +652 -0
- package/lib/commonjs/components/SankeyChart.js.map +1 -0
- package/lib/commonjs/components/ScatterChart.js +432 -0
- package/lib/commonjs/components/ScatterChart.js.map +1 -0
- package/lib/commonjs/components/ScrollProgress.js +66 -0
- package/lib/commonjs/components/ScrollProgress.js.map +1 -0
- package/lib/commonjs/components/SectionDivider.js +59 -0
- package/lib/commonjs/components/SectionDivider.js.map +1 -0
- package/lib/commonjs/components/SectionHeader.js +53 -0
- package/lib/commonjs/components/SectionHeader.js.map +1 -0
- package/lib/commonjs/components/SegmentedTabs.js +336 -0
- package/lib/commonjs/components/SegmentedTabs.js.map +1 -0
- package/lib/commonjs/components/Select.js +380 -0
- package/lib/commonjs/components/Select.js.map +1 -0
- package/lib/commonjs/components/SessionBanner.js +220 -0
- package/lib/commonjs/components/SessionBanner.js.map +1 -0
- package/lib/commonjs/components/SessionChart.js +1046 -0
- package/lib/commonjs/components/SessionChart.js.map +1 -0
- package/lib/commonjs/components/SetTable.js +351 -0
- package/lib/commonjs/components/SetTable.js.map +1 -0
- package/lib/commonjs/components/ShareCard.js +227 -0
- package/lib/commonjs/components/ShareCard.js.map +1 -0
- package/lib/commonjs/components/Sheet.js +220 -0
- package/lib/commonjs/components/Sheet.js.map +1 -0
- package/lib/commonjs/components/Skeleton.js +28 -0
- package/lib/commonjs/components/Skeleton.js.map +1 -0
- package/lib/commonjs/components/Slider.js +173 -0
- package/lib/commonjs/components/Slider.js.map +1 -0
- package/lib/commonjs/components/Sortable.js +230 -0
- package/lib/commonjs/components/Sortable.js.map +1 -0
- package/lib/commonjs/components/SourceChip.js +111 -0
- package/lib/commonjs/components/SourceChip.js.map +1 -0
- package/lib/commonjs/components/Sparkline.js +110 -0
- package/lib/commonjs/components/Sparkline.js.map +1 -0
- package/lib/commonjs/components/Spinner.js +132 -0
- package/lib/commonjs/components/Spinner.js.map +1 -0
- package/lib/commonjs/components/SplitButton.js +158 -0
- package/lib/commonjs/components/SplitButton.js.map +1 -0
- package/lib/commonjs/components/SsoButton.js +109 -0
- package/lib/commonjs/components/SsoButton.js.map +1 -0
- package/lib/commonjs/components/StackedBar.js +133 -0
- package/lib/commonjs/components/StackedBar.js.map +1 -0
- package/lib/commonjs/components/Stat.js +167 -0
- package/lib/commonjs/components/Stat.js.map +1 -0
- package/lib/commonjs/components/StatTile.js +644 -0
- package/lib/commonjs/components/StatTile.js.map +1 -0
- package/lib/commonjs/components/StateLabel.js +73 -0
- package/lib/commonjs/components/StateLabel.js.map +1 -0
- package/lib/commonjs/components/StatusDot.js +65 -0
- package/lib/commonjs/components/StatusDot.js.map +1 -0
- package/lib/commonjs/components/Stepper.js +355 -0
- package/lib/commonjs/components/Stepper.js.map +1 -0
- package/lib/commonjs/components/SupplementChart.js +1002 -0
- package/lib/commonjs/components/SupplementChart.js.map +1 -0
- package/lib/commonjs/components/TabBar.js +303 -0
- package/lib/commonjs/components/TabBar.js.map +1 -0
- package/lib/commonjs/components/Table.js +458 -0
- package/lib/commonjs/components/Table.js.map +1 -0
- package/lib/commonjs/components/Tabs.js +88 -0
- package/lib/commonjs/components/Tabs.js.map +1 -0
- package/lib/commonjs/components/TagCloud.js +118 -0
- package/lib/commonjs/components/TagCloud.js.map +1 -0
- package/lib/commonjs/components/TagInput.js +298 -0
- package/lib/commonjs/components/TagInput.js.map +1 -0
- package/lib/commonjs/components/TemplateCard.js +206 -0
- package/lib/commonjs/components/TemplateCard.js.map +1 -0
- package/lib/commonjs/components/Timeline.js +219 -0
- package/lib/commonjs/components/Timeline.js.map +1 -0
- package/lib/commonjs/components/TimelineChart.js +1228 -0
- package/lib/commonjs/components/TimelineChart.js.map +1 -0
- package/lib/commonjs/components/Toast.js +156 -0
- package/lib/commonjs/components/Toast.js.map +1 -0
- package/lib/commonjs/components/Toggle.js +166 -0
- package/lib/commonjs/components/Toggle.js.map +1 -0
- package/lib/commonjs/components/Toolbar.js +310 -0
- package/lib/commonjs/components/Toolbar.js.map +1 -0
- package/lib/commonjs/components/Tooltip.js +245 -0
- package/lib/commonjs/components/Tooltip.js.map +1 -0
- package/lib/commonjs/components/TypingIndicator.js +112 -0
- package/lib/commonjs/components/TypingIndicator.js.map +1 -0
- package/lib/commonjs/components/UnitChart.js +482 -0
- package/lib/commonjs/components/UnitChart.js.map +1 -0
- package/lib/commonjs/components/VersionBadge.js +133 -0
- package/lib/commonjs/components/VersionBadge.js.map +1 -0
- package/lib/commonjs/components/VideoThumbnail.js +152 -0
- package/lib/commonjs/components/VideoThumbnail.js.map +1 -0
- package/lib/commonjs/components/VitalsStrip.js +766 -0
- package/lib/commonjs/components/VitalsStrip.js.map +1 -0
- package/lib/commonjs/components/WatchComplication.js +563 -0
- package/lib/commonjs/components/WatchComplication.js.map +1 -0
- package/lib/commonjs/components/ZoneBar.js +149 -0
- package/lib/commonjs/components/ZoneBar.js.map +1 -0
- package/lib/commonjs/components/ZonePyramid.js +398 -0
- package/lib/commonjs/components/ZonePyramid.js.map +1 -0
- package/lib/commonjs/index.js +1140 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/internal/optionalBlur.js +34 -0
- package/lib/commonjs/internal/optionalBlur.js.map +1 -0
- package/lib/commonjs/internal/optionalHaptics.js +40 -0
- package/lib/commonjs/internal/optionalHaptics.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/theme.js +61 -0
- package/lib/commonjs/theme.js.map +1 -0
- package/lib/module/components/Accordion.js +139 -0
- package/lib/module/components/Accordion.js.map +1 -0
- package/lib/module/components/AchievementBadge.js +223 -0
- package/lib/module/components/AchievementBadge.js.map +1 -0
- package/lib/module/components/Alert.js +227 -0
- package/lib/module/components/Alert.js.map +1 -0
- package/lib/module/components/AreaChart.js +501 -0
- package/lib/module/components/AreaChart.js.map +1 -0
- package/lib/module/components/AuroraBackground.js +262 -0
- package/lib/module/components/AuroraBackground.js.map +1 -0
- package/lib/module/components/Avatar.js +183 -0
- package/lib/module/components/Avatar.js.map +1 -0
- package/lib/module/components/AvatarStack.js +91 -0
- package/lib/module/components/AvatarStack.js.map +1 -0
- package/lib/module/components/BackLink.js +73 -0
- package/lib/module/components/BackLink.js.map +1 -0
- package/lib/module/components/Badge.js +132 -0
- package/lib/module/components/Badge.js.map +1 -0
- package/lib/module/components/BarChart.js +636 -0
- package/lib/module/components/BarChart.js.map +1 -0
- package/lib/module/components/BarFill.js +51 -0
- package/lib/module/components/BarFill.js.map +1 -0
- package/lib/module/components/BeeswarmChart.js +610 -0
- package/lib/module/components/BeeswarmChart.js.map +1 -0
- package/lib/module/components/BiomarkerRange.js +605 -0
- package/lib/module/components/BiomarkerRange.js.map +1 -0
- package/lib/module/components/BodyBattery.js +558 -0
- package/lib/module/components/BodyBattery.js.map +1 -0
- package/lib/module/components/BrandMark.js +179 -0
- package/lib/module/components/BrandMark.js.map +1 -0
- package/lib/module/components/BulletChart.js +401 -0
- package/lib/module/components/BulletChart.js.map +1 -0
- package/lib/module/components/Button.js +150 -0
- package/lib/module/components/Button.js.map +1 -0
- package/lib/module/components/CaffeineClock.js +486 -0
- package/lib/module/components/CaffeineClock.js.map +1 -0
- package/lib/module/components/Card.js +138 -0
- package/lib/module/components/Card.js.map +1 -0
- package/lib/module/components/CharCounter.js +102 -0
- package/lib/module/components/CharCounter.js.map +1 -0
- package/lib/module/components/ChartState.js +549 -0
- package/lib/module/components/ChartState.js.map +1 -0
- package/lib/module/components/Checkbox.js +175 -0
- package/lib/module/components/Checkbox.js.map +1 -0
- package/lib/module/components/Chip.js +214 -0
- package/lib/module/components/Chip.js.map +1 -0
- package/lib/module/components/ChoiceChip.js +129 -0
- package/lib/module/components/ChoiceChip.js.map +1 -0
- package/lib/module/components/CodeBlock.js +122 -0
- package/lib/module/components/CodeBlock.js.map +1 -0
- package/lib/module/components/CodeField.js +125 -0
- package/lib/module/components/CodeField.js.map +1 -0
- package/lib/module/components/ColorPicker.js +177 -0
- package/lib/module/components/ColorPicker.js.map +1 -0
- package/lib/module/components/ComboChart.js +414 -0
- package/lib/module/components/ComboChart.js.map +1 -0
- package/lib/module/components/Combobox.js +104 -0
- package/lib/module/components/Combobox.js.map +1 -0
- package/lib/module/components/CompareChart.js +622 -0
- package/lib/module/components/CompareChart.js.map +1 -0
- package/lib/module/components/CompositeChart.js +649 -0
- package/lib/module/components/CompositeChart.js.map +1 -0
- package/lib/module/components/Countdown.js +148 -0
- package/lib/module/components/Countdown.js.map +1 -0
- package/lib/module/components/CreditCardVisual.js +163 -0
- package/lib/module/components/CreditCardVisual.js.map +1 -0
- package/lib/module/components/DateField.js +361 -0
- package/lib/module/components/DateField.js.map +1 -0
- package/lib/module/components/DayTimelineBlocks.js +249 -0
- package/lib/module/components/DayTimelineBlocks.js.map +1 -0
- package/lib/module/components/DayWheel.js +462 -0
- package/lib/module/components/DayWheel.js.map +1 -0
- package/lib/module/components/DeltaPill.js +149 -0
- package/lib/module/components/DeltaPill.js.map +1 -0
- package/lib/module/components/DistributionChart.js +771 -0
- package/lib/module/components/DistributionChart.js.map +1 -0
- package/lib/module/components/Divider.js +70 -0
- package/lib/module/components/Divider.js.map +1 -0
- package/lib/module/components/DonutChart.js +332 -0
- package/lib/module/components/DonutChart.js.map +1 -0
- package/lib/module/components/DotsLoader.js +90 -0
- package/lib/module/components/DotsLoader.js.map +1 -0
- package/lib/module/components/EffectAttributionLine.js +101 -0
- package/lib/module/components/EffectAttributionLine.js.map +1 -0
- package/lib/module/components/EmptyState.js +115 -0
- package/lib/module/components/EmptyState.js.map +1 -0
- package/lib/module/components/EngagementBar.js +118 -0
- package/lib/module/components/EngagementBar.js.map +1 -0
- package/lib/module/components/EnvironmentChart.js +568 -0
- package/lib/module/components/EnvironmentChart.js.map +1 -0
- package/lib/module/components/Eyebrow.js +28 -0
- package/lib/module/components/Eyebrow.js.map +1 -0
- package/lib/module/components/FocalPointPicker.js +192 -0
- package/lib/module/components/FocalPointPicker.js.map +1 -0
- package/lib/module/components/FollowButton.js +91 -0
- package/lib/module/components/FollowButton.js.map +1 -0
- package/lib/module/components/ForecastCallout.js +112 -0
- package/lib/module/components/ForecastCallout.js.map +1 -0
- package/lib/module/components/FormField.js +198 -0
- package/lib/module/components/FormField.js.map +1 -0
- package/lib/module/components/FunnelChart.js +255 -0
- package/lib/module/components/FunnelChart.js.map +1 -0
- package/lib/module/components/Gauge.js +249 -0
- package/lib/module/components/Gauge.js.map +1 -0
- package/lib/module/components/GradientText.js +130 -0
- package/lib/module/components/GradientText.js.map +1 -0
- package/lib/module/components/Heatmap.js +414 -0
- package/lib/module/components/Heatmap.js.map +1 -0
- package/lib/module/components/Highlight.js +51 -0
- package/lib/module/components/Highlight.js.map +1 -0
- package/lib/module/components/Hypnogram.js +837 -0
- package/lib/module/components/Hypnogram.js.map +1 -0
- package/lib/module/components/Icon.js +480 -0
- package/lib/module/components/Icon.js.map +1 -0
- package/lib/module/components/Input.js +138 -0
- package/lib/module/components/Input.js.map +1 -0
- package/lib/module/components/InsightCard.js +115 -0
- package/lib/module/components/InsightCard.js.map +1 -0
- package/lib/module/components/KeyValue.js +89 -0
- package/lib/module/components/KeyValue.js.map +1 -0
- package/lib/module/components/LeaderboardRow.js +136 -0
- package/lib/module/components/LeaderboardRow.js.map +1 -0
- package/lib/module/components/LineChart.js +1539 -0
- package/lib/module/components/LineChart.js.map +1 -0
- package/lib/module/components/ListRow.js +118 -0
- package/lib/module/components/ListRow.js.map +1 -0
- package/lib/module/components/Menu.js +179 -0
- package/lib/module/components/Menu.js.map +1 -0
- package/lib/module/components/MessageBubble.js +113 -0
- package/lib/module/components/MessageBubble.js.map +1 -0
- package/lib/module/components/MessageComposer.js +208 -0
- package/lib/module/components/MessageComposer.js.map +1 -0
- package/lib/module/components/MetaphorWidget.js +1048 -0
- package/lib/module/components/MetaphorWidget.js.map +1 -0
- package/lib/module/components/Meter.js +169 -0
- package/lib/module/components/Meter.js.map +1 -0
- package/lib/module/components/MetricTile.js +263 -0
- package/lib/module/components/MetricTile.js.map +1 -0
- package/lib/module/components/MiniRing.js +26 -0
- package/lib/module/components/MiniRing.js.map +1 -0
- package/lib/module/components/Modal.js +148 -0
- package/lib/module/components/Modal.js.map +1 -0
- package/lib/module/components/MuscleDiagram.js +321 -0
- package/lib/module/components/MuscleDiagram.js.map +1 -0
- package/lib/module/components/NoteField.js +69 -0
- package/lib/module/components/NoteField.js.map +1 -0
- package/lib/module/components/NotificationRow.js +230 -0
- package/lib/module/components/NotificationRow.js.map +1 -0
- package/lib/module/components/Pagination.js +207 -0
- package/lib/module/components/Pagination.js.map +1 -0
- package/lib/module/components/PasswordInput.js +116 -0
- package/lib/module/components/PasswordInput.js.map +1 -0
- package/lib/module/components/PasswordStrengthMeter.js +104 -0
- package/lib/module/components/PasswordStrengthMeter.js.map +1 -0
- package/lib/module/components/PendingPatternCard.js +178 -0
- package/lib/module/components/PendingPatternCard.js.map +1 -0
- package/lib/module/components/PhaseWheel.js +699 -0
- package/lib/module/components/PhaseWheel.js.map +1 -0
- package/lib/module/components/PkChart.js +558 -0
- package/lib/module/components/PkChart.js.map +1 -0
- package/lib/module/components/Popover.js +230 -0
- package/lib/module/components/Popover.js.map +1 -0
- package/lib/module/components/PrBadge.js +66 -0
- package/lib/module/components/PrBadge.js.map +1 -0
- package/lib/module/components/PrCard.js +146 -0
- package/lib/module/components/PrCard.js.map +1 -0
- package/lib/module/components/PricingTierCard.js +233 -0
- package/lib/module/components/PricingTierCard.js.map +1 -0
- package/lib/module/components/ProGate.js +229 -0
- package/lib/module/components/ProGate.js.map +1 -0
- package/lib/module/components/ProgressBar.js +511 -0
- package/lib/module/components/ProgressBar.js.map +1 -0
- package/lib/module/components/Pulse.js +32 -0
- package/lib/module/components/Pulse.js.map +1 -0
- package/lib/module/components/QRCode.js +514 -0
- package/lib/module/components/QRCode.js.map +1 -0
- package/lib/module/components/RadarChart.js +487 -0
- package/lib/module/components/RadarChart.js.map +1 -0
- package/lib/module/components/RangeBar.js +187 -0
- package/lib/module/components/RangeBar.js.map +1 -0
- package/lib/module/components/ReauthDialog.js +256 -0
- package/lib/module/components/ReauthDialog.js.map +1 -0
- package/lib/module/components/RestTimer.js +239 -0
- package/lib/module/components/RestTimer.js.map +1 -0
- package/lib/module/components/RichText.js +77 -0
- package/lib/module/components/RichText.js.map +1 -0
- package/lib/module/components/RichTextEditor.js +269 -0
- package/lib/module/components/RichTextEditor.js.map +1 -0
- package/lib/module/components/Ring.js +236 -0
- package/lib/module/components/Ring.js.map +1 -0
- package/lib/module/components/RoseChart.js +371 -0
- package/lib/module/components/RoseChart.js.map +1 -0
- package/lib/module/components/SankeyChart.js +647 -0
- package/lib/module/components/SankeyChart.js.map +1 -0
- package/lib/module/components/ScatterChart.js +427 -0
- package/lib/module/components/ScatterChart.js.map +1 -0
- package/lib/module/components/ScrollProgress.js +62 -0
- package/lib/module/components/ScrollProgress.js.map +1 -0
- package/lib/module/components/SectionDivider.js +55 -0
- package/lib/module/components/SectionDivider.js.map +1 -0
- package/lib/module/components/SectionHeader.js +49 -0
- package/lib/module/components/SectionHeader.js.map +1 -0
- package/lib/module/components/SegmentedTabs.js +332 -0
- package/lib/module/components/SegmentedTabs.js.map +1 -0
- package/lib/module/components/Select.js +375 -0
- package/lib/module/components/Select.js.map +1 -0
- package/lib/module/components/SessionBanner.js +216 -0
- package/lib/module/components/SessionBanner.js.map +1 -0
- package/lib/module/components/SessionChart.js +1040 -0
- package/lib/module/components/SessionChart.js.map +1 -0
- package/lib/module/components/SetTable.js +345 -0
- package/lib/module/components/SetTable.js.map +1 -0
- package/lib/module/components/ShareCard.js +223 -0
- package/lib/module/components/ShareCard.js.map +1 -0
- package/lib/module/components/Sheet.js +216 -0
- package/lib/module/components/Sheet.js.map +1 -0
- package/lib/module/components/Skeleton.js +24 -0
- package/lib/module/components/Skeleton.js.map +1 -0
- package/lib/module/components/Slider.js +169 -0
- package/lib/module/components/Slider.js.map +1 -0
- package/lib/module/components/Sortable.js +226 -0
- package/lib/module/components/Sortable.js.map +1 -0
- package/lib/module/components/SourceChip.js +107 -0
- package/lib/module/components/SourceChip.js.map +1 -0
- package/lib/module/components/Sparkline.js +105 -0
- package/lib/module/components/Sparkline.js.map +1 -0
- package/lib/module/components/Spinner.js +127 -0
- package/lib/module/components/Spinner.js.map +1 -0
- package/lib/module/components/SplitButton.js +154 -0
- package/lib/module/components/SplitButton.js.map +1 -0
- package/lib/module/components/SsoButton.js +104 -0
- package/lib/module/components/SsoButton.js.map +1 -0
- package/lib/module/components/StackedBar.js +129 -0
- package/lib/module/components/StackedBar.js.map +1 -0
- package/lib/module/components/Stat.js +163 -0
- package/lib/module/components/Stat.js.map +1 -0
- package/lib/module/components/StatTile.js +639 -0
- package/lib/module/components/StatTile.js.map +1 -0
- package/lib/module/components/StateLabel.js +69 -0
- package/lib/module/components/StateLabel.js.map +1 -0
- package/lib/module/components/StatusDot.js +61 -0
- package/lib/module/components/StatusDot.js.map +1 -0
- package/lib/module/components/Stepper.js +350 -0
- package/lib/module/components/Stepper.js.map +1 -0
- package/lib/module/components/SupplementChart.js +997 -0
- package/lib/module/components/SupplementChart.js.map +1 -0
- package/lib/module/components/TabBar.js +298 -0
- package/lib/module/components/TabBar.js.map +1 -0
- package/lib/module/components/Table.js +452 -0
- package/lib/module/components/Table.js.map +1 -0
- package/lib/module/components/Tabs.js +84 -0
- package/lib/module/components/Tabs.js.map +1 -0
- package/lib/module/components/TagCloud.js +113 -0
- package/lib/module/components/TagCloud.js.map +1 -0
- package/lib/module/components/TagInput.js +291 -0
- package/lib/module/components/TagInput.js.map +1 -0
- package/lib/module/components/TemplateCard.js +202 -0
- package/lib/module/components/TemplateCard.js.map +1 -0
- package/lib/module/components/Timeline.js +214 -0
- package/lib/module/components/Timeline.js.map +1 -0
- package/lib/module/components/TimelineChart.js +1223 -0
- package/lib/module/components/TimelineChart.js.map +1 -0
- package/lib/module/components/Toast.js +151 -0
- package/lib/module/components/Toast.js.map +1 -0
- package/lib/module/components/Toggle.js +162 -0
- package/lib/module/components/Toggle.js.map +1 -0
- package/lib/module/components/Toolbar.js +306 -0
- package/lib/module/components/Toolbar.js.map +1 -0
- package/lib/module/components/Tooltip.js +241 -0
- package/lib/module/components/Tooltip.js.map +1 -0
- package/lib/module/components/TypingIndicator.js +108 -0
- package/lib/module/components/TypingIndicator.js.map +1 -0
- package/lib/module/components/UnitChart.js +477 -0
- package/lib/module/components/UnitChart.js.map +1 -0
- package/lib/module/components/VersionBadge.js +129 -0
- package/lib/module/components/VersionBadge.js.map +1 -0
- package/lib/module/components/VideoThumbnail.js +147 -0
- package/lib/module/components/VideoThumbnail.js.map +1 -0
- package/lib/module/components/VitalsStrip.js +761 -0
- package/lib/module/components/VitalsStrip.js.map +1 -0
- package/lib/module/components/WatchComplication.js +558 -0
- package/lib/module/components/WatchComplication.js.map +1 -0
- package/lib/module/components/ZoneBar.js +145 -0
- package/lib/module/components/ZoneBar.js.map +1 -0
- package/lib/module/components/ZonePyramid.js +393 -0
- package/lib/module/components/ZonePyramid.js.map +1 -0
- package/lib/module/index.js +166 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/internal/optionalBlur.js +30 -0
- package/lib/module/internal/optionalBlur.js.map +1 -0
- package/lib/module/internal/optionalHaptics.js +34 -0
- package/lib/module/internal/optionalHaptics.js.map +1 -0
- package/lib/module/theme.js +6 -0
- package/lib/module/theme.js.map +1 -0
- package/lib/typescript/components/Accordion.d.ts +20 -0
- package/lib/typescript/components/Accordion.d.ts.map +1 -0
- package/lib/typescript/components/AchievementBadge.d.ts +29 -0
- package/lib/typescript/components/AchievementBadge.d.ts.map +1 -0
- package/lib/typescript/components/Alert.d.ts +18 -0
- package/lib/typescript/components/Alert.d.ts.map +1 -0
- package/lib/typescript/components/AreaChart.d.ts +58 -0
- package/lib/typescript/components/AreaChart.d.ts.map +1 -0
- package/lib/typescript/components/AuroraBackground.d.ts +24 -0
- package/lib/typescript/components/AuroraBackground.d.ts.map +1 -0
- package/lib/typescript/components/Avatar.d.ts +38 -0
- package/lib/typescript/components/Avatar.d.ts.map +1 -0
- package/lib/typescript/components/AvatarStack.d.ts +26 -0
- package/lib/typescript/components/AvatarStack.d.ts.map +1 -0
- package/lib/typescript/components/BackLink.d.ts +20 -0
- package/lib/typescript/components/BackLink.d.ts.map +1 -0
- package/lib/typescript/components/Badge.d.ts +12 -0
- package/lib/typescript/components/Badge.d.ts.map +1 -0
- package/lib/typescript/components/BarChart.d.ts +83 -0
- package/lib/typescript/components/BarChart.d.ts.map +1 -0
- package/lib/typescript/components/BarFill.d.ts +15 -0
- package/lib/typescript/components/BarFill.d.ts.map +1 -0
- package/lib/typescript/components/BeeswarmChart.d.ts +71 -0
- package/lib/typescript/components/BeeswarmChart.d.ts.map +1 -0
- package/lib/typescript/components/BiomarkerRange.d.ts +64 -0
- package/lib/typescript/components/BiomarkerRange.d.ts.map +1 -0
- package/lib/typescript/components/BodyBattery.d.ts +70 -0
- package/lib/typescript/components/BodyBattery.d.ts.map +1 -0
- package/lib/typescript/components/BrandMark.d.ts +10 -0
- package/lib/typescript/components/BrandMark.d.ts.map +1 -0
- package/lib/typescript/components/BulletChart.d.ts +61 -0
- package/lib/typescript/components/BulletChart.d.ts.map +1 -0
- package/lib/typescript/components/Button.d.ts +27 -0
- package/lib/typescript/components/Button.d.ts.map +1 -0
- package/lib/typescript/components/CaffeineClock.d.ts +64 -0
- package/lib/typescript/components/CaffeineClock.d.ts.map +1 -0
- package/lib/typescript/components/Card.d.ts +23 -0
- package/lib/typescript/components/Card.d.ts.map +1 -0
- package/lib/typescript/components/CharCounter.d.ts +30 -0
- package/lib/typescript/components/CharCounter.d.ts.map +1 -0
- package/lib/typescript/components/ChartState.d.ts +58 -0
- package/lib/typescript/components/ChartState.d.ts.map +1 -0
- package/lib/typescript/components/Checkbox.d.ts +44 -0
- package/lib/typescript/components/Checkbox.d.ts.map +1 -0
- package/lib/typescript/components/Chip.d.ts +17 -0
- package/lib/typescript/components/Chip.d.ts.map +1 -0
- package/lib/typescript/components/ChoiceChip.d.ts +31 -0
- package/lib/typescript/components/ChoiceChip.d.ts.map +1 -0
- package/lib/typescript/components/CodeBlock.d.ts +18 -0
- package/lib/typescript/components/CodeBlock.d.ts.map +1 -0
- package/lib/typescript/components/CodeField.d.ts +22 -0
- package/lib/typescript/components/CodeField.d.ts.map +1 -0
- package/lib/typescript/components/ColorPicker.d.ts +20 -0
- package/lib/typescript/components/ColorPicker.d.ts.map +1 -0
- package/lib/typescript/components/ComboChart.d.ts +56 -0
- package/lib/typescript/components/ComboChart.d.ts.map +1 -0
- package/lib/typescript/components/Combobox.d.ts +39 -0
- package/lib/typescript/components/Combobox.d.ts.map +1 -0
- package/lib/typescript/components/CompareChart.d.ts +80 -0
- package/lib/typescript/components/CompareChart.d.ts.map +1 -0
- package/lib/typescript/components/CompositeChart.d.ts +83 -0
- package/lib/typescript/components/CompositeChart.d.ts.map +1 -0
- package/lib/typescript/components/Countdown.d.ts +28 -0
- package/lib/typescript/components/Countdown.d.ts.map +1 -0
- package/lib/typescript/components/CreditCardVisual.d.ts +26 -0
- package/lib/typescript/components/CreditCardVisual.d.ts.map +1 -0
- package/lib/typescript/components/DateField.d.ts +39 -0
- package/lib/typescript/components/DateField.d.ts.map +1 -0
- package/lib/typescript/components/DayTimelineBlocks.d.ts +40 -0
- package/lib/typescript/components/DayTimelineBlocks.d.ts.map +1 -0
- package/lib/typescript/components/DayWheel.d.ts +70 -0
- package/lib/typescript/components/DayWheel.d.ts.map +1 -0
- package/lib/typescript/components/DeltaPill.d.ts +22 -0
- package/lib/typescript/components/DeltaPill.d.ts.map +1 -0
- package/lib/typescript/components/DistributionChart.d.ts +94 -0
- package/lib/typescript/components/DistributionChart.d.ts.map +1 -0
- package/lib/typescript/components/Divider.d.ts +16 -0
- package/lib/typescript/components/Divider.d.ts.map +1 -0
- package/lib/typescript/components/DonutChart.d.ts +70 -0
- package/lib/typescript/components/DonutChart.d.ts.map +1 -0
- package/lib/typescript/components/DotsLoader.d.ts +19 -0
- package/lib/typescript/components/DotsLoader.d.ts.map +1 -0
- package/lib/typescript/components/EffectAttributionLine.d.ts +24 -0
- package/lib/typescript/components/EffectAttributionLine.d.ts.map +1 -0
- package/lib/typescript/components/EmptyState.d.ts +17 -0
- package/lib/typescript/components/EmptyState.d.ts.map +1 -0
- package/lib/typescript/components/EngagementBar.d.ts +23 -0
- package/lib/typescript/components/EngagementBar.d.ts.map +1 -0
- package/lib/typescript/components/EnvironmentChart.d.ts +89 -0
- package/lib/typescript/components/EnvironmentChart.d.ts.map +1 -0
- package/lib/typescript/components/Eyebrow.d.ts +7 -0
- package/lib/typescript/components/Eyebrow.d.ts.map +1 -0
- package/lib/typescript/components/FocalPointPicker.d.ts +31 -0
- package/lib/typescript/components/FocalPointPicker.d.ts.map +1 -0
- package/lib/typescript/components/FollowButton.d.ts +21 -0
- package/lib/typescript/components/FollowButton.d.ts.map +1 -0
- package/lib/typescript/components/ForecastCallout.d.ts +21 -0
- package/lib/typescript/components/ForecastCallout.d.ts.map +1 -0
- package/lib/typescript/components/FormField.d.ts +32 -0
- package/lib/typescript/components/FormField.d.ts.map +1 -0
- package/lib/typescript/components/FunnelChart.d.ts +46 -0
- package/lib/typescript/components/FunnelChart.d.ts.map +1 -0
- package/lib/typescript/components/Gauge.d.ts +70 -0
- package/lib/typescript/components/Gauge.d.ts.map +1 -0
- package/lib/typescript/components/GradientText.d.ts +21 -0
- package/lib/typescript/components/GradientText.d.ts.map +1 -0
- package/lib/typescript/components/Heatmap.d.ts +87 -0
- package/lib/typescript/components/Heatmap.d.ts.map +1 -0
- package/lib/typescript/components/Highlight.d.ts +11 -0
- package/lib/typescript/components/Highlight.d.ts.map +1 -0
- package/lib/typescript/components/Hypnogram.d.ts +94 -0
- package/lib/typescript/components/Hypnogram.d.ts.map +1 -0
- package/lib/typescript/components/Icon.d.ts +30 -0
- package/lib/typescript/components/Icon.d.ts.map +1 -0
- package/lib/typescript/components/Input.d.ts +25 -0
- package/lib/typescript/components/Input.d.ts.map +1 -0
- package/lib/typescript/components/InsightCard.d.ts +37 -0
- package/lib/typescript/components/InsightCard.d.ts.map +1 -0
- package/lib/typescript/components/KeyValue.d.ts +18 -0
- package/lib/typescript/components/KeyValue.d.ts.map +1 -0
- package/lib/typescript/components/LeaderboardRow.d.ts +31 -0
- package/lib/typescript/components/LeaderboardRow.d.ts.map +1 -0
- package/lib/typescript/components/LineChart.d.ts +166 -0
- package/lib/typescript/components/LineChart.d.ts.map +1 -0
- package/lib/typescript/components/ListRow.d.ts +37 -0
- package/lib/typescript/components/ListRow.d.ts.map +1 -0
- package/lib/typescript/components/Menu.d.ts +28 -0
- package/lib/typescript/components/Menu.d.ts.map +1 -0
- package/lib/typescript/components/MessageBubble.d.ts +20 -0
- package/lib/typescript/components/MessageBubble.d.ts.map +1 -0
- package/lib/typescript/components/MessageComposer.d.ts +20 -0
- package/lib/typescript/components/MessageComposer.d.ts.map +1 -0
- package/lib/typescript/components/MetaphorWidget.d.ts +107 -0
- package/lib/typescript/components/MetaphorWidget.d.ts.map +1 -0
- package/lib/typescript/components/Meter.d.ts +34 -0
- package/lib/typescript/components/Meter.d.ts.map +1 -0
- package/lib/typescript/components/MetricTile.d.ts +43 -0
- package/lib/typescript/components/MetricTile.d.ts.map +1 -0
- package/lib/typescript/components/MiniRing.d.ts +9 -0
- package/lib/typescript/components/MiniRing.d.ts.map +1 -0
- package/lib/typescript/components/Modal.d.ts +19 -0
- package/lib/typescript/components/Modal.d.ts.map +1 -0
- package/lib/typescript/components/MuscleDiagram.d.ts +37 -0
- package/lib/typescript/components/MuscleDiagram.d.ts.map +1 -0
- package/lib/typescript/components/NoteField.d.ts +9 -0
- package/lib/typescript/components/NoteField.d.ts.map +1 -0
- package/lib/typescript/components/NotificationRow.d.ts +36 -0
- package/lib/typescript/components/NotificationRow.d.ts.map +1 -0
- package/lib/typescript/components/Pagination.d.ts +22 -0
- package/lib/typescript/components/Pagination.d.ts.map +1 -0
- package/lib/typescript/components/PasswordInput.d.ts +24 -0
- package/lib/typescript/components/PasswordInput.d.ts.map +1 -0
- package/lib/typescript/components/PasswordStrengthMeter.d.ts +18 -0
- package/lib/typescript/components/PasswordStrengthMeter.d.ts.map +1 -0
- package/lib/typescript/components/PendingPatternCard.d.ts +27 -0
- package/lib/typescript/components/PendingPatternCard.d.ts.map +1 -0
- package/lib/typescript/components/PhaseWheel.d.ts +103 -0
- package/lib/typescript/components/PhaseWheel.d.ts.map +1 -0
- package/lib/typescript/components/PkChart.d.ts +67 -0
- package/lib/typescript/components/PkChart.d.ts.map +1 -0
- package/lib/typescript/components/Popover.d.ts +27 -0
- package/lib/typescript/components/Popover.d.ts.map +1 -0
- package/lib/typescript/components/PrBadge.d.ts +21 -0
- package/lib/typescript/components/PrBadge.d.ts.map +1 -0
- package/lib/typescript/components/PrCard.d.ts +29 -0
- package/lib/typescript/components/PrCard.d.ts.map +1 -0
- package/lib/typescript/components/PricingTierCard.d.ts +46 -0
- package/lib/typescript/components/PricingTierCard.d.ts.map +1 -0
- package/lib/typescript/components/ProGate.d.ts +26 -0
- package/lib/typescript/components/ProGate.d.ts.map +1 -0
- package/lib/typescript/components/ProgressBar.d.ts +60 -0
- package/lib/typescript/components/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/components/Pulse.d.ts +8 -0
- package/lib/typescript/components/Pulse.d.ts.map +1 -0
- package/lib/typescript/components/QRCode.d.ts +17 -0
- package/lib/typescript/components/QRCode.d.ts.map +1 -0
- package/lib/typescript/components/RadarChart.d.ts +59 -0
- package/lib/typescript/components/RadarChart.d.ts.map +1 -0
- package/lib/typescript/components/RangeBar.d.ts +38 -0
- package/lib/typescript/components/RangeBar.d.ts.map +1 -0
- package/lib/typescript/components/ReauthDialog.d.ts +44 -0
- package/lib/typescript/components/ReauthDialog.d.ts.map +1 -0
- package/lib/typescript/components/RestTimer.d.ts +45 -0
- package/lib/typescript/components/RestTimer.d.ts.map +1 -0
- package/lib/typescript/components/RichText.d.ts +26 -0
- package/lib/typescript/components/RichText.d.ts.map +1 -0
- package/lib/typescript/components/RichTextEditor.d.ts +25 -0
- package/lib/typescript/components/RichTextEditor.d.ts.map +1 -0
- package/lib/typescript/components/Ring.d.ts +63 -0
- package/lib/typescript/components/Ring.d.ts.map +1 -0
- package/lib/typescript/components/RoseChart.d.ts +54 -0
- package/lib/typescript/components/RoseChart.d.ts.map +1 -0
- package/lib/typescript/components/SankeyChart.d.ts +93 -0
- package/lib/typescript/components/SankeyChart.d.ts.map +1 -0
- package/lib/typescript/components/ScatterChart.d.ts +59 -0
- package/lib/typescript/components/ScatterChart.d.ts.map +1 -0
- package/lib/typescript/components/ScrollProgress.d.ts +24 -0
- package/lib/typescript/components/ScrollProgress.d.ts.map +1 -0
- package/lib/typescript/components/SectionDivider.d.ts +18 -0
- package/lib/typescript/components/SectionDivider.d.ts.map +1 -0
- package/lib/typescript/components/SectionHeader.d.ts +18 -0
- package/lib/typescript/components/SectionHeader.d.ts.map +1 -0
- package/lib/typescript/components/SegmentedTabs.d.ts +85 -0
- package/lib/typescript/components/SegmentedTabs.d.ts.map +1 -0
- package/lib/typescript/components/Select.d.ts +47 -0
- package/lib/typescript/components/Select.d.ts.map +1 -0
- package/lib/typescript/components/SessionBanner.d.ts +45 -0
- package/lib/typescript/components/SessionBanner.d.ts.map +1 -0
- package/lib/typescript/components/SessionChart.d.ts +130 -0
- package/lib/typescript/components/SessionChart.d.ts.map +1 -0
- package/lib/typescript/components/SetTable.d.ts +58 -0
- package/lib/typescript/components/SetTable.d.ts.map +1 -0
- package/lib/typescript/components/ShareCard.d.ts +40 -0
- package/lib/typescript/components/ShareCard.d.ts.map +1 -0
- package/lib/typescript/components/Sheet.d.ts +22 -0
- package/lib/typescript/components/Sheet.d.ts.map +1 -0
- package/lib/typescript/components/Skeleton.d.ts +9 -0
- package/lib/typescript/components/Skeleton.d.ts.map +1 -0
- package/lib/typescript/components/Slider.d.ts +27 -0
- package/lib/typescript/components/Slider.d.ts.map +1 -0
- package/lib/typescript/components/Sortable.d.ts +25 -0
- package/lib/typescript/components/Sortable.d.ts.map +1 -0
- package/lib/typescript/components/SourceChip.d.ts +24 -0
- package/lib/typescript/components/SourceChip.d.ts.map +1 -0
- package/lib/typescript/components/Sparkline.d.ts +28 -0
- package/lib/typescript/components/Sparkline.d.ts.map +1 -0
- package/lib/typescript/components/Spinner.d.ts +23 -0
- package/lib/typescript/components/Spinner.d.ts.map +1 -0
- package/lib/typescript/components/SplitButton.d.ts +21 -0
- package/lib/typescript/components/SplitButton.d.ts.map +1 -0
- package/lib/typescript/components/SsoButton.d.ts +10 -0
- package/lib/typescript/components/SsoButton.d.ts.map +1 -0
- package/lib/typescript/components/StackedBar.d.ts +32 -0
- package/lib/typescript/components/StackedBar.d.ts.map +1 -0
- package/lib/typescript/components/Stat.d.ts +33 -0
- package/lib/typescript/components/Stat.d.ts.map +1 -0
- package/lib/typescript/components/StatTile.d.ts +90 -0
- package/lib/typescript/components/StatTile.d.ts.map +1 -0
- package/lib/typescript/components/StateLabel.d.ts +12 -0
- package/lib/typescript/components/StateLabel.d.ts.map +1 -0
- package/lib/typescript/components/StatusDot.d.ts +13 -0
- package/lib/typescript/components/StatusDot.d.ts.map +1 -0
- package/lib/typescript/components/Stepper.d.ts +47 -0
- package/lib/typescript/components/Stepper.d.ts.map +1 -0
- package/lib/typescript/components/SupplementChart.d.ts +121 -0
- package/lib/typescript/components/SupplementChart.d.ts.map +1 -0
- package/lib/typescript/components/TabBar.d.ts +52 -0
- package/lib/typescript/components/TabBar.d.ts.map +1 -0
- package/lib/typescript/components/Table.d.ts +64 -0
- package/lib/typescript/components/Table.d.ts.map +1 -0
- package/lib/typescript/components/Tabs.d.ts +16 -0
- package/lib/typescript/components/Tabs.d.ts.map +1 -0
- package/lib/typescript/components/TagCloud.d.ts +31 -0
- package/lib/typescript/components/TagCloud.d.ts.map +1 -0
- package/lib/typescript/components/TagInput.d.ts +37 -0
- package/lib/typescript/components/TagInput.d.ts.map +1 -0
- package/lib/typescript/components/TemplateCard.d.ts +43 -0
- package/lib/typescript/components/TemplateCard.d.ts.map +1 -0
- package/lib/typescript/components/Timeline.d.ts +18 -0
- package/lib/typescript/components/Timeline.d.ts.map +1 -0
- package/lib/typescript/components/TimelineChart.d.ts +124 -0
- package/lib/typescript/components/TimelineChart.d.ts.map +1 -0
- package/lib/typescript/components/Toast.d.ts +18 -0
- package/lib/typescript/components/Toast.d.ts.map +1 -0
- package/lib/typescript/components/Toggle.d.ts +22 -0
- package/lib/typescript/components/Toggle.d.ts.map +1 -0
- package/lib/typescript/components/Toolbar.d.ts +48 -0
- package/lib/typescript/components/Toolbar.d.ts.map +1 -0
- package/lib/typescript/components/Tooltip.d.ts +16 -0
- package/lib/typescript/components/Tooltip.d.ts.map +1 -0
- package/lib/typescript/components/TypingIndicator.d.ts +16 -0
- package/lib/typescript/components/TypingIndicator.d.ts.map +1 -0
- package/lib/typescript/components/UnitChart.d.ts +84 -0
- package/lib/typescript/components/UnitChart.d.ts.map +1 -0
- package/lib/typescript/components/VersionBadge.d.ts +17 -0
- package/lib/typescript/components/VersionBadge.d.ts.map +1 -0
- package/lib/typescript/components/VideoThumbnail.d.ts +24 -0
- package/lib/typescript/components/VideoThumbnail.d.ts.map +1 -0
- package/lib/typescript/components/VitalsStrip.d.ts +53 -0
- package/lib/typescript/components/VitalsStrip.d.ts.map +1 -0
- package/lib/typescript/components/WatchComplication.d.ts +84 -0
- package/lib/typescript/components/WatchComplication.d.ts.map +1 -0
- package/lib/typescript/components/ZoneBar.d.ts +33 -0
- package/lib/typescript/components/ZoneBar.d.ts.map +1 -0
- package/lib/typescript/components/ZonePyramid.d.ts +51 -0
- package/lib/typescript/components/ZonePyramid.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +288 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/internal/optionalBlur.d.ts +13 -0
- package/lib/typescript/internal/optionalBlur.d.ts.map +1 -0
- package/lib/typescript/internal/optionalHaptics.d.ts +7 -0
- package/lib/typescript/internal/optionalHaptics.d.ts.map +1 -0
- package/lib/typescript/theme.d.ts +5 -0
- package/lib/typescript/theme.d.ts.map +1 -0
- package/package.json +92 -3
- package/src/components/Accordion.tsx +130 -0
- package/src/components/AchievementBadge.tsx +217 -0
- package/src/components/Alert.tsx +149 -0
- package/src/components/AreaChart.tsx +546 -0
- package/src/components/AuroraBackground.tsx +198 -0
- package/src/components/Avatar.tsx +164 -0
- package/src/components/AvatarStack.tsx +94 -0
- package/src/components/BackLink.tsx +64 -0
- package/src/components/Badge.tsx +91 -0
- package/src/components/BarChart.tsx +643 -0
- package/src/components/BarFill.tsx +37 -0
- package/src/components/BeeswarmChart.tsx +567 -0
- package/src/components/BiomarkerRange.tsx +571 -0
- package/src/components/BodyBattery.tsx +551 -0
- package/src/components/BrandMark.tsx +107 -0
- package/src/components/BulletChart.tsx +433 -0
- package/src/components/Button.tsx +127 -0
- package/src/components/CaffeineClock.tsx +472 -0
- package/src/components/Card.tsx +139 -0
- package/src/components/CharCounter.tsx +113 -0
- package/src/components/ChartState.tsx +473 -0
- package/src/components/Checkbox.tsx +175 -0
- package/src/components/Chip.tsx +132 -0
- package/src/components/ChoiceChip.tsx +119 -0
- package/src/components/CodeBlock.tsx +106 -0
- package/src/components/CodeField.tsx +137 -0
- package/src/components/ColorPicker.tsx +169 -0
- package/src/components/ComboChart.tsx +476 -0
- package/src/components/Combobox.tsx +141 -0
- package/src/components/CompareChart.tsx +651 -0
- package/src/components/CompositeChart.tsx +609 -0
- package/src/components/Countdown.tsx +155 -0
- package/src/components/CreditCardVisual.tsx +151 -0
- package/src/components/DateField.tsx +346 -0
- package/src/components/DayTimelineBlocks.tsx +270 -0
- package/src/components/DayWheel.tsx +483 -0
- package/src/components/DeltaPill.tsx +114 -0
- package/src/components/DistributionChart.tsx +739 -0
- package/src/components/Divider.tsx +61 -0
- package/src/components/DonutChart.tsx +399 -0
- package/src/components/DotsLoader.tsx +74 -0
- package/src/components/EffectAttributionLine.tsx +82 -0
- package/src/components/EmptyState.tsx +108 -0
- package/src/components/EngagementBar.tsx +140 -0
- package/src/components/EnvironmentChart.tsx +522 -0
- package/src/components/Eyebrow.tsx +22 -0
- package/src/components/FocalPointPicker.tsx +193 -0
- package/src/components/FollowButton.tsx +78 -0
- package/src/components/ForecastCallout.tsx +100 -0
- package/src/components/FormField.tsx +217 -0
- package/src/components/FunnelChart.tsx +310 -0
- package/src/components/Gauge.tsx +329 -0
- package/src/components/GradientText.tsx +114 -0
- package/src/components/Heatmap.tsx +459 -0
- package/src/components/Highlight.tsx +36 -0
- package/src/components/Hypnogram.tsx +751 -0
- package/src/components/Icon.tsx +680 -0
- package/src/components/Input.tsx +125 -0
- package/src/components/InsightCard.tsx +130 -0
- package/src/components/KeyValue.tsx +83 -0
- package/src/components/LeaderboardRow.tsx +156 -0
- package/src/components/LineChart.tsx +1529 -0
- package/src/components/ListRow.tsx +153 -0
- package/src/components/Menu.tsx +156 -0
- package/src/components/MessageBubble.tsx +118 -0
- package/src/components/MessageComposer.tsx +202 -0
- package/src/components/MetaphorWidget.tsx +848 -0
- package/src/components/Meter.tsx +186 -0
- package/src/components/MetricTile.tsx +247 -0
- package/src/components/MiniRing.tsx +17 -0
- package/src/components/Modal.tsx +129 -0
- package/src/components/MuscleDiagram.tsx +319 -0
- package/src/components/NoteField.tsx +68 -0
- package/src/components/NotificationRow.tsx +230 -0
- package/src/components/Pagination.tsx +188 -0
- package/src/components/PasswordInput.tsx +111 -0
- package/src/components/PasswordStrengthMeter.tsx +104 -0
- package/src/components/PendingPatternCard.tsx +163 -0
- package/src/components/PhaseWheel.tsx +781 -0
- package/src/components/PkChart.tsx +539 -0
- package/src/components/Popover.tsx +206 -0
- package/src/components/PrBadge.tsx +51 -0
- package/src/components/PrCard.tsx +132 -0
- package/src/components/PricingTierCard.tsx +234 -0
- package/src/components/ProGate.tsx +194 -0
- package/src/components/ProgressBar.tsx +439 -0
- package/src/components/Pulse.tsx +17 -0
- package/src/components/QRCode.tsx +555 -0
- package/src/components/RadarChart.tsx +538 -0
- package/src/components/RangeBar.tsx +206 -0
- package/src/components/ReauthDialog.tsx +282 -0
- package/src/components/RestTimer.tsx +193 -0
- package/src/components/RichText.tsx +71 -0
- package/src/components/RichTextEditor.tsx +207 -0
- package/src/components/Ring.tsx +269 -0
- package/src/components/RoseChart.tsx +375 -0
- package/src/components/SankeyChart.tsx +687 -0
- package/src/components/ScatterChart.tsx +498 -0
- package/src/components/ScrollProgress.tsx +61 -0
- package/src/components/SectionDivider.tsx +51 -0
- package/src/components/SectionHeader.tsx +41 -0
- package/src/components/SegmentedTabs.tsx +389 -0
- package/src/components/Select.tsx +335 -0
- package/src/components/SessionBanner.tsx +195 -0
- package/src/components/SessionChart.tsx +917 -0
- package/src/components/SetTable.tsx +341 -0
- package/src/components/ShareCard.tsx +145 -0
- package/src/components/Sheet.tsx +212 -0
- package/src/components/Skeleton.tsx +13 -0
- package/src/components/Slider.tsx +187 -0
- package/src/components/Sortable.tsx +263 -0
- package/src/components/SourceChip.tsx +95 -0
- package/src/components/Sparkline.tsx +108 -0
- package/src/components/Spinner.tsx +128 -0
- package/src/components/SplitButton.tsx +111 -0
- package/src/components/SsoButton.tsx +93 -0
- package/src/components/StackedBar.tsx +138 -0
- package/src/components/Stat.tsx +118 -0
- package/src/components/StatTile.tsx +581 -0
- package/src/components/StateLabel.tsx +62 -0
- package/src/components/StatusDot.tsx +58 -0
- package/src/components/Stepper.tsx +359 -0
- package/src/components/SupplementChart.tsx +1044 -0
- package/src/components/TabBar.tsx +297 -0
- package/src/components/Table.tsx +448 -0
- package/src/components/Tabs.tsx +85 -0
- package/src/components/TagCloud.tsx +111 -0
- package/src/components/TagInput.tsx +325 -0
- package/src/components/TemplateCard.tsx +181 -0
- package/src/components/Timeline.tsx +132 -0
- package/src/components/TimelineChart.tsx +1035 -0
- package/src/components/Toast.tsx +138 -0
- package/src/components/Toggle.tsx +155 -0
- package/src/components/Toolbar.tsx +292 -0
- package/src/components/Tooltip.tsx +193 -0
- package/src/components/TypingIndicator.tsx +106 -0
- package/src/components/UnitChart.tsx +519 -0
- package/src/components/VersionBadge.tsx +129 -0
- package/src/components/VideoThumbnail.tsx +140 -0
- package/src/components/VitalsStrip.tsx +636 -0
- package/src/components/WatchComplication.tsx +536 -0
- package/src/components/ZoneBar.tsx +148 -0
- package/src/components/ZonePyramid.tsx +405 -0
- package/src/components/__tests__/Chip.test.tsx +33 -0
- package/src/components/__tests__/CodeInput.test.tsx +62 -0
- package/src/components/__tests__/DeltaPill.test.tsx +41 -0
- package/src/components/__tests__/GradientText.test.tsx +69 -0
- package/src/components/__tests__/Icon.test.tsx +61 -0
- package/src/components/__tests__/Input.test.tsx +30 -0
- package/src/components/__tests__/LineChart.test.tsx +62 -0
- package/src/components/__tests__/ListRow.test.tsx +28 -0
- package/src/components/__tests__/PkChart.test.tsx +47 -0
- package/src/components/__tests__/PrBadge.test.tsx +32 -0
- package/src/components/__tests__/PrCard.test.tsx +49 -0
- package/src/components/__tests__/RestTimer.test.tsx +94 -0
- package/src/components/__tests__/SegmentedTabs.test.tsx +58 -0
- package/src/components/__tests__/SessionBanner.test.tsx +96 -0
- package/src/components/__tests__/SetTable.test.tsx +105 -0
- package/src/components/__tests__/SourceChip.test.tsx +82 -0
- package/src/components/__tests__/SupplementChart.test.tsx +71 -0
- package/src/components/__tests__/Table.test.tsx +81 -0
- package/src/components/__tests__/TemplateCard.test.tsx +85 -0
- package/src/components/__tests__/Toggle.test.tsx +49 -0
- package/src/components/__tests__/UnitChart.test.tsx +44 -0
- package/src/components/__tests__/markup.ts +142 -0
- package/src/components/__tests__/react-dom-server.d.ts +11 -0
- package/src/index.ts +320 -0
- package/src/internal/optionalBlur.ts +37 -0
- package/src/internal/optionalHaptics.ts +38 -0
- package/src/theme.ts +14 -0
- package/README.md +0 -3
|
@@ -0,0 +1,837 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { Fragment, useId, useState } from 'react';
|
|
4
|
+
import { View, Text, StyleSheet } from 'react-native';
|
|
5
|
+
import Svg, { Rect, Line, Defs, FeGaussianBlur, Filter, LinearGradient, Stop } from 'react-native-svg';
|
|
6
|
+
import { colors, fonts, radii } from '@lockin90/tokens';
|
|
7
|
+
|
|
8
|
+
/** A sleep stage. Ordered top → bottom on the plot: awake, rem, light, deep. */
|
|
9
|
+
|
|
10
|
+
/** One contiguous stretch of sleep in a single stage. Segment widths are drawn
|
|
11
|
+
* proportional to `minutes`. */
|
|
12
|
+
|
|
13
|
+
/** Catalog sleep-chart variants (`lockin90-design/charts/sleep-charts.html`).
|
|
14
|
+
* SL-01 `hypnogram` (default) · SL-04 `efficiency-bars` · SL-05 `sleep-week` ·
|
|
15
|
+
* SL-06 `bedtime-drift` · SL-07 `night-coach`. SL-02 stage-summary maps to
|
|
16
|
+
* `StackedBar`, SL-03 sleep-score maps to `Ring` (see the Hypnogram SDD). */
|
|
17
|
+
|
|
18
|
+
/** One time bucket of the night for `variant="efficiency-bars"`: minutes asleep
|
|
19
|
+
* draw a violet bar UP from the midline, minutes awake an amber bar DOWN. */
|
|
20
|
+
|
|
21
|
+
/** One night for `variant="bedtime-drift"` — clock hours; values < 12 are read
|
|
22
|
+
* as next-morning (e.g. `bed: 22.5` = 10:30pm, `bed: 0.5` = 12:30am,
|
|
23
|
+
* `wake: 6.9` = 6:54am). */
|
|
24
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
25
|
+
const VB_W = 560;
|
|
26
|
+
/** vertical inset (viewBox units) so the top/bottom bands never touch the edge */
|
|
27
|
+
const PAD_Y = 14;
|
|
28
|
+
/** gap between consecutive segment capsules (viewBox units) */
|
|
29
|
+
const GAP = 4;
|
|
30
|
+
/** capsule bar thickness (viewBox units) */
|
|
31
|
+
const BAR_H = 12;
|
|
32
|
+
/** width (px) of the left gutter reserved for stage labels */
|
|
33
|
+
const STAGE_GUTTER = 48;
|
|
34
|
+
/** extra size of a shine underlay shape (viewBox units each side) — glow = a
|
|
35
|
+
* Gaussian-blurred, fainter duplicate behind the mark (Fabric-native SVG
|
|
36
|
+
* filters in react-native-svg 15), the native twin of the web
|
|
37
|
+
* `drop-shadow(0 0 7px …)` shine. */
|
|
38
|
+
const SHINE_PAD = 4;
|
|
39
|
+
/* the duplicate is blurred, so it runs a touch hotter than the old un-blurred
|
|
40
|
+
* fake to keep the perceived glow near the web's full-alpha drop-shadow */
|
|
41
|
+
const SHINE_OPACITY = 0.5;
|
|
42
|
+
|
|
43
|
+
/** Stages top → bottom — the classic hypnogram order (deep at the bottom). */
|
|
44
|
+
const STAGES = ['awake', 'rem', 'light', 'deep'];
|
|
45
|
+
const STAGE_LABELS = {
|
|
46
|
+
awake: 'Awake',
|
|
47
|
+
rem: 'REM',
|
|
48
|
+
light: 'Light',
|
|
49
|
+
deep: 'Deep'
|
|
50
|
+
};
|
|
51
|
+
const STAGE_COLORS = {
|
|
52
|
+
awake: colors.warn,
|
|
53
|
+
rem: colors.violet,
|
|
54
|
+
light: colors.cyan,
|
|
55
|
+
deep: colors.indigo
|
|
56
|
+
};
|
|
57
|
+
const DEFAULT_SEGMENTS = [{
|
|
58
|
+
stage: 'awake',
|
|
59
|
+
minutes: 8
|
|
60
|
+
}, {
|
|
61
|
+
stage: 'light',
|
|
62
|
+
minutes: 42
|
|
63
|
+
}, {
|
|
64
|
+
stage: 'deep',
|
|
65
|
+
minutes: 55
|
|
66
|
+
}, {
|
|
67
|
+
stage: 'light',
|
|
68
|
+
minutes: 28
|
|
69
|
+
}, {
|
|
70
|
+
stage: 'rem',
|
|
71
|
+
minutes: 22
|
|
72
|
+
}, {
|
|
73
|
+
stage: 'light',
|
|
74
|
+
minutes: 35
|
|
75
|
+
}, {
|
|
76
|
+
stage: 'deep',
|
|
77
|
+
minutes: 30
|
|
78
|
+
}, {
|
|
79
|
+
stage: 'rem',
|
|
80
|
+
minutes: 26
|
|
81
|
+
}, {
|
|
82
|
+
stage: 'light',
|
|
83
|
+
minutes: 38
|
|
84
|
+
}, {
|
|
85
|
+
stage: 'awake',
|
|
86
|
+
minutes: 6
|
|
87
|
+
}, {
|
|
88
|
+
stage: 'rem',
|
|
89
|
+
minutes: 34
|
|
90
|
+
}, {
|
|
91
|
+
stage: 'light',
|
|
92
|
+
minutes: 30
|
|
93
|
+
}];
|
|
94
|
+
const DEFAULT_AXIS = ['11p', '1a', '3a', '5a', '7a'];
|
|
95
|
+
/** SL-04's clock axis (fractions 0 / 0.5 / 1 of the night). */
|
|
96
|
+
const DEFAULT_CLOCK_AXIS = ['11PM', '3AM', '7AM'];
|
|
97
|
+
const DEFAULT_DAYS = ['M', 'T', 'W', 'T', 'F', 'S', 'S'];
|
|
98
|
+
|
|
99
|
+
/** SL-04 default night — the catalog card's deterministic buckets (32 × ~15min;
|
|
100
|
+
* 3 brief awakenings). */
|
|
101
|
+
const DEFAULT_INTERVALS = [{
|
|
102
|
+
asleepMinutes: 0,
|
|
103
|
+
awakeMinutes: 2
|
|
104
|
+
}, {
|
|
105
|
+
asleepMinutes: 12,
|
|
106
|
+
awakeMinutes: 0
|
|
107
|
+
}, {
|
|
108
|
+
asleepMinutes: 10,
|
|
109
|
+
awakeMinutes: 0
|
|
110
|
+
}, {
|
|
111
|
+
asleepMinutes: 9,
|
|
112
|
+
awakeMinutes: 0
|
|
113
|
+
}, {
|
|
114
|
+
asleepMinutes: 12,
|
|
115
|
+
awakeMinutes: 0
|
|
116
|
+
}, {
|
|
117
|
+
asleepMinutes: 9,
|
|
118
|
+
awakeMinutes: 0
|
|
119
|
+
}, {
|
|
120
|
+
asleepMinutes: 11,
|
|
121
|
+
awakeMinutes: 0
|
|
122
|
+
}, {
|
|
123
|
+
asleepMinutes: 10,
|
|
124
|
+
awakeMinutes: 0
|
|
125
|
+
}, {
|
|
126
|
+
asleepMinutes: 11,
|
|
127
|
+
awakeMinutes: 0
|
|
128
|
+
}, {
|
|
129
|
+
asleepMinutes: 14,
|
|
130
|
+
awakeMinutes: 0
|
|
131
|
+
}, {
|
|
132
|
+
asleepMinutes: 13,
|
|
133
|
+
awakeMinutes: 0
|
|
134
|
+
}, {
|
|
135
|
+
asleepMinutes: 8,
|
|
136
|
+
awakeMinutes: 0
|
|
137
|
+
}, {
|
|
138
|
+
asleepMinutes: 9,
|
|
139
|
+
awakeMinutes: 0
|
|
140
|
+
}, {
|
|
141
|
+
asleepMinutes: 13,
|
|
142
|
+
awakeMinutes: 0
|
|
143
|
+
}, {
|
|
144
|
+
asleepMinutes: 0,
|
|
145
|
+
awakeMinutes: 5
|
|
146
|
+
}, {
|
|
147
|
+
asleepMinutes: 12,
|
|
148
|
+
awakeMinutes: 0
|
|
149
|
+
}, {
|
|
150
|
+
asleepMinutes: 14,
|
|
151
|
+
awakeMinutes: 0
|
|
152
|
+
}, {
|
|
153
|
+
asleepMinutes: 14,
|
|
154
|
+
awakeMinutes: 0
|
|
155
|
+
}, {
|
|
156
|
+
asleepMinutes: 8,
|
|
157
|
+
awakeMinutes: 0
|
|
158
|
+
}, {
|
|
159
|
+
asleepMinutes: 10,
|
|
160
|
+
awakeMinutes: 0
|
|
161
|
+
}, {
|
|
162
|
+
asleepMinutes: 8,
|
|
163
|
+
awakeMinutes: 0
|
|
164
|
+
}, {
|
|
165
|
+
asleepMinutes: 0,
|
|
166
|
+
awakeMinutes: 5
|
|
167
|
+
}, {
|
|
168
|
+
asleepMinutes: 10,
|
|
169
|
+
awakeMinutes: 0
|
|
170
|
+
}, {
|
|
171
|
+
asleepMinutes: 14,
|
|
172
|
+
awakeMinutes: 0
|
|
173
|
+
}, {
|
|
174
|
+
asleepMinutes: 12,
|
|
175
|
+
awakeMinutes: 0
|
|
176
|
+
}, {
|
|
177
|
+
asleepMinutes: 10,
|
|
178
|
+
awakeMinutes: 0
|
|
179
|
+
}, {
|
|
180
|
+
asleepMinutes: 8,
|
|
181
|
+
awakeMinutes: 0
|
|
182
|
+
}, {
|
|
183
|
+
asleepMinutes: 10,
|
|
184
|
+
awakeMinutes: 0
|
|
185
|
+
}, {
|
|
186
|
+
asleepMinutes: 12,
|
|
187
|
+
awakeMinutes: 0
|
|
188
|
+
}, {
|
|
189
|
+
asleepMinutes: 8,
|
|
190
|
+
awakeMinutes: 0
|
|
191
|
+
}, {
|
|
192
|
+
asleepMinutes: 14,
|
|
193
|
+
awakeMinutes: 0
|
|
194
|
+
}, {
|
|
195
|
+
asleepMinutes: 13,
|
|
196
|
+
awakeMinutes: 0
|
|
197
|
+
}];
|
|
198
|
+
/** SL-05 default week (hours). */
|
|
199
|
+
const DEFAULT_WEEK = [7.4, 6.1, 7.9, 8.2, 5.8, 8.6, 7.7];
|
|
200
|
+
/** SL-06 default nights — weekday-consistent, Fri/Sat drift late. */
|
|
201
|
+
const DEFAULT_NIGHTS = [{
|
|
202
|
+
bed: 22.6,
|
|
203
|
+
wake: 6.9
|
|
204
|
+
}, {
|
|
205
|
+
bed: 22.9,
|
|
206
|
+
wake: 6.7
|
|
207
|
+
}, {
|
|
208
|
+
bed: 22.4,
|
|
209
|
+
wake: 7.0
|
|
210
|
+
}, {
|
|
211
|
+
bed: 22.7,
|
|
212
|
+
wake: 6.8
|
|
213
|
+
}, {
|
|
214
|
+
bed: 24.5,
|
|
215
|
+
wake: 7.6
|
|
216
|
+
}, {
|
|
217
|
+
bed: 25.0,
|
|
218
|
+
wake: 7.9
|
|
219
|
+
}, {
|
|
220
|
+
bed: 22.9,
|
|
221
|
+
wake: 7.0
|
|
222
|
+
}];
|
|
223
|
+
const DEFAULT_WINDOW = [22.3, 23.5];
|
|
224
|
+
|
|
225
|
+
/** SL-06 column geometry — fractions of the drawable width (catalog: dots run
|
|
226
|
+
* x = P.l+34 … plot right − 4; the mint band starts a hair earlier). */
|
|
227
|
+
const DRIFT_X0 = 0.114;
|
|
228
|
+
const DRIFT_X1 = 0.9866;
|
|
229
|
+
const DRIFT_BAND_X = 0.1;
|
|
230
|
+
const DRIFT_BAND_W = 0.87;
|
|
231
|
+
|
|
232
|
+
/** Round a number for compact attribute values. */
|
|
233
|
+
const r = n => Math.round(n * 100) / 100;
|
|
234
|
+
|
|
235
|
+
/** y-center (viewBox units) of a stage's band. */
|
|
236
|
+
function bandY(stage, height) {
|
|
237
|
+
const top = PAD_Y;
|
|
238
|
+
const bottom = height - PAD_Y;
|
|
239
|
+
const i = STAGES.indexOf(stage);
|
|
240
|
+
if (STAGES.length === 1) return (top + bottom) / 2;
|
|
241
|
+
return top + i / (STAGES.length - 1) * (bottom - top);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/** Clock hour → continuous night-axis hour (values < 12 read as next morning). */
|
|
245
|
+
const nightHour = h => h < 12 ? h + 24 : h;
|
|
246
|
+
|
|
247
|
+
/** Floating pill tag over the plot (mirrors the catalog's `C.tag` / the web
|
|
248
|
+
* `.lk-hyp-tag`). Absolutely positioned via `style`. */
|
|
249
|
+
function HypTag({
|
|
250
|
+
text,
|
|
251
|
+
color,
|
|
252
|
+
style
|
|
253
|
+
}) {
|
|
254
|
+
return /*#__PURE__*/_jsx(View, {
|
|
255
|
+
style: [styles.tag, {
|
|
256
|
+
borderColor: color
|
|
257
|
+
}, style],
|
|
258
|
+
pointerEvents: "none",
|
|
259
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
260
|
+
style: [styles.tagText, {
|
|
261
|
+
color
|
|
262
|
+
}],
|
|
263
|
+
numberOfLines: 1,
|
|
264
|
+
children: text
|
|
265
|
+
})
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Hypnogram — the sleep-chart family. The default variant is a sleep-stage
|
|
271
|
+
* timeline: four horizontal bands (Awake / REM / Light / Deep, top → bottom)
|
|
272
|
+
* each hold rounded capsule bars whose widths are proportional to each
|
|
273
|
+
* segment's minutes; thin vertical connectors link consecutive stage
|
|
274
|
+
* transitions so the eye follows the descent/ascent like a stepped line.
|
|
275
|
+
* Catalog variants add: `efficiency-bars` (asleep up / awake down from the
|
|
276
|
+
* midline), `sleep-week` (7 duration bars vs a dashed target rule),
|
|
277
|
+
* `bedtime-drift` (bed/wake dots per day + consistency band) and `night-coach`
|
|
278
|
+
* (the hypnogram + wake-window rule + optional recommendation pill). The Svg
|
|
279
|
+
* stretches to the measured container width via a fixed viewBox + non-uniform
|
|
280
|
+
* scaling; tags, dots and day letters are RN overlays so they stay crisp.
|
|
281
|
+
* Shine glow = wider, fainter duplicate shapes behind the marks (no SVG
|
|
282
|
+
* filters on native).
|
|
283
|
+
*/
|
|
284
|
+
export function Hypnogram({
|
|
285
|
+
variant = 'hypnogram',
|
|
286
|
+
segments = DEFAULT_SEGMENTS,
|
|
287
|
+
height = 160,
|
|
288
|
+
axis,
|
|
289
|
+
showStageLabels = true,
|
|
290
|
+
shine = false,
|
|
291
|
+
intervals = DEFAULT_INTERVALS,
|
|
292
|
+
asleepLabel = 'ASLEEP 94%',
|
|
293
|
+
awakeLabel = 'AWAKE 22 MIN',
|
|
294
|
+
week = DEFAULT_WEEK,
|
|
295
|
+
targetHours = 8,
|
|
296
|
+
days = DEFAULT_DAYS,
|
|
297
|
+
nights = DEFAULT_NIGHTS,
|
|
298
|
+
consistencyWindow = DEFAULT_WINDOW,
|
|
299
|
+
lateBedAfter = 24,
|
|
300
|
+
windowLabel = 'CONSISTENT WINDOW',
|
|
301
|
+
wakeWindowAt = 0.62,
|
|
302
|
+
wakeWindowLabel = 'WAKE WINDOW OPENS',
|
|
303
|
+
recommendation,
|
|
304
|
+
style
|
|
305
|
+
}) {
|
|
306
|
+
const uid = useId().replace(/[^a-zA-Z0-9]/g, '');
|
|
307
|
+
const [width, setWidth] = useState(0);
|
|
308
|
+
const onLayout = e => setWidth(e.nativeEvent.layout.width);
|
|
309
|
+
const staged = variant === 'hypnogram' || variant === 'night-coach';
|
|
310
|
+
const resolvedAxis = axis ?? (staged ? DEFAULT_AXIS : variant === 'efficiency-bars' ? DEFAULT_CLOCK_AXIS : []);
|
|
311
|
+
|
|
312
|
+
/* ---- SL-01 / SL-07 · stage bands + capsules (+ coach overlays) ---- */
|
|
313
|
+
let bars = [];
|
|
314
|
+
let connectors = [];
|
|
315
|
+
if (staged) {
|
|
316
|
+
const total = segments.reduce((s, seg) => s + Math.max(0, seg.minutes), 0) || 1;
|
|
317
|
+
const gaps = Math.max(0, segments.length - 1) * GAP;
|
|
318
|
+
const drawable = Math.max(0, VB_W - gaps);
|
|
319
|
+
// lay segments left → right, width ∝ minutes, with a GAP between each
|
|
320
|
+
let x = 0;
|
|
321
|
+
bars = segments.map((seg, i) => {
|
|
322
|
+
const w = Math.max(0, seg.minutes) / total * drawable;
|
|
323
|
+
const y = bandY(seg.stage, height);
|
|
324
|
+
const bar = {
|
|
325
|
+
x,
|
|
326
|
+
w,
|
|
327
|
+
cy: y,
|
|
328
|
+
stage: seg.stage,
|
|
329
|
+
x0: x,
|
|
330
|
+
x1: x + w,
|
|
331
|
+
key: i
|
|
332
|
+
};
|
|
333
|
+
x += w + GAP;
|
|
334
|
+
return bar;
|
|
335
|
+
});
|
|
336
|
+
// vertical connectors: link the end-y of one segment to the start-y of the next
|
|
337
|
+
connectors = bars.slice(1).map((b, i) => {
|
|
338
|
+
const prev = bars[i];
|
|
339
|
+
const cx = (prev.x1 + b.x0) / 2;
|
|
340
|
+
return {
|
|
341
|
+
cx,
|
|
342
|
+
y1: prev.cy,
|
|
343
|
+
y2: b.cy,
|
|
344
|
+
key: i
|
|
345
|
+
};
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
const wwX = Math.max(0, Math.min(1, wakeWindowAt)) * VB_W;
|
|
349
|
+
|
|
350
|
+
/* ---- SL-04 · efficiency bars (asleep up / awake down from the midline) ---- */
|
|
351
|
+
const effMid = height / 2;
|
|
352
|
+
const effAmp = height / 2 - 10;
|
|
353
|
+
const effUnit = Math.max(1, ...intervals.map(iv => Math.max(0, iv.asleepMinutes) + Math.max(0, iv.awakeMinutes)));
|
|
354
|
+
const effStep = VB_W / Math.max(1, intervals.length);
|
|
355
|
+
|
|
356
|
+
/* ---- SL-05 · week bars vs target ---- */
|
|
357
|
+
const weekMax = Math.max(targetHours + 1.5, Math.max(0, ...week) + 0.9);
|
|
358
|
+
const weekY = v => 4 + (1 - v / weekMax) * (height - 5);
|
|
359
|
+
const weekStep = VB_W / Math.max(1, week.length);
|
|
360
|
+
const targetY = weekY(targetHours);
|
|
361
|
+
|
|
362
|
+
/* ---- SL-06 · bedtime drift (earlier at the top, later at the bottom) ---- */
|
|
363
|
+
const winLo = nightHour(Math.min(consistencyWindow[0], consistencyWindow[1]));
|
|
364
|
+
const winHi = nightHour(Math.max(consistencyWindow[0], consistencyWindow[1]));
|
|
365
|
+
const driftHours = nights.flatMap(n => [nightHour(n.bed), nightHour(n.wake)]).concat(winLo, winHi);
|
|
366
|
+
const driftLo = Math.min(...driftHours) - 0.6;
|
|
367
|
+
const driftSpan = Math.max(...driftHours) + 0.6 - driftLo || 1;
|
|
368
|
+
// 24px reserved at the top so the window tag sits above the band (catalog P.t)
|
|
369
|
+
const driftY = h => 24 + (nightHour(h) - driftLo) / driftSpan * (height - 32);
|
|
370
|
+
const driftX = i => VB_W * (nights.length > 1 ? DRIFT_X0 + i * (DRIFT_X1 - DRIFT_X0) / (nights.length - 1) : 0.5);
|
|
371
|
+
const bedMeanY = nights.length ? nights.reduce((s, n) => s + driftY(n.bed), 0) / nights.length : 0;
|
|
372
|
+
const wakeMeanY = nights.length ? nights.reduce((s, n) => s + driftY(n.wake), 0) / nights.length : 0;
|
|
373
|
+
|
|
374
|
+
// the drawing area shrinks by the gutter width when the stage labels are on
|
|
375
|
+
// (staged variants only), so the bars stay clear of the labels.
|
|
376
|
+
const canvasW = staged && showStageLabels ? Math.max(0, width - STAGE_GUTTER) : width;
|
|
377
|
+
/** viewBox x-units → rendered px inside the canvas */
|
|
378
|
+
const px = xUnits => xUnits / VB_W * canvasW;
|
|
379
|
+
|
|
380
|
+
/* SVG shapes per variant (drawn only once the container width is known) */
|
|
381
|
+
let shapes = null;
|
|
382
|
+
if (canvasW > 0 && staged) {
|
|
383
|
+
shapes = /*#__PURE__*/_jsxs(_Fragment, {
|
|
384
|
+
children: [/*#__PURE__*/_jsx(Defs, {
|
|
385
|
+
children: STAGES.map(stage =>
|
|
386
|
+
/*#__PURE__*/
|
|
387
|
+
// per-BAR gradient (objectBoundingBox), so every band reads
|
|
388
|
+
// bright like web — NOT a full-height userSpaceOnUse ramp that
|
|
389
|
+
// made the lower bands sample the dark/transparent end.
|
|
390
|
+
_jsxs(LinearGradient, {
|
|
391
|
+
id: `lk-hyp-${stage}-${uid}`,
|
|
392
|
+
x1: "0",
|
|
393
|
+
y1: "0",
|
|
394
|
+
x2: "0",
|
|
395
|
+
y2: "1",
|
|
396
|
+
children: [/*#__PURE__*/_jsx(Stop, {
|
|
397
|
+
offset: "0",
|
|
398
|
+
stopColor: STAGE_COLORS[stage],
|
|
399
|
+
stopOpacity: 0.95
|
|
400
|
+
}), /*#__PURE__*/_jsx(Stop, {
|
|
401
|
+
offset: "1",
|
|
402
|
+
stopColor: STAGE_COLORS[stage],
|
|
403
|
+
stopOpacity: 0.85
|
|
404
|
+
})]
|
|
405
|
+
}, stage))
|
|
406
|
+
}), connectors.map(c => /*#__PURE__*/_jsx(Line, {
|
|
407
|
+
x1: r(c.cx),
|
|
408
|
+
y1: r(c.y1),
|
|
409
|
+
x2: r(c.cx),
|
|
410
|
+
y2: r(c.y2),
|
|
411
|
+
stroke: colors.border2,
|
|
412
|
+
strokeWidth: 1.5,
|
|
413
|
+
opacity: 0.8
|
|
414
|
+
}, c.key)), shine && bars.map(b => /*#__PURE__*/_jsx(Rect, {
|
|
415
|
+
x: r(b.x - SHINE_PAD),
|
|
416
|
+
y: r(b.cy - BAR_H / 2 - SHINE_PAD),
|
|
417
|
+
width: r(Math.max(0, b.w) + SHINE_PAD * 2),
|
|
418
|
+
height: BAR_H + SHINE_PAD * 2,
|
|
419
|
+
rx: (BAR_H + SHINE_PAD * 2) / 2,
|
|
420
|
+
ry: (BAR_H + SHINE_PAD * 2) / 2,
|
|
421
|
+
fill: STAGE_COLORS[b.stage],
|
|
422
|
+
opacity: SHINE_OPACITY,
|
|
423
|
+
filter: `url(#lk-hyp-blur-${uid})`
|
|
424
|
+
}, `s${b.key}`)), bars.map(b => /*#__PURE__*/_jsx(Rect, {
|
|
425
|
+
x: r(b.x),
|
|
426
|
+
y: r(b.cy - BAR_H / 2),
|
|
427
|
+
width: r(Math.max(0, b.w)),
|
|
428
|
+
height: BAR_H,
|
|
429
|
+
rx: BAR_H / 2,
|
|
430
|
+
ry: BAR_H / 2,
|
|
431
|
+
fill: `url(#lk-hyp-${b.stage}-${uid})`
|
|
432
|
+
}, b.key)), variant === 'night-coach' && /*#__PURE__*/_jsx(Line, {
|
|
433
|
+
x1: r(wwX),
|
|
434
|
+
y1: 2,
|
|
435
|
+
x2: r(wwX),
|
|
436
|
+
y2: height - 2,
|
|
437
|
+
stroke: colors.zoneMid,
|
|
438
|
+
strokeWidth: 1,
|
|
439
|
+
strokeDasharray: "3 4",
|
|
440
|
+
opacity: 0.7
|
|
441
|
+
})]
|
|
442
|
+
});
|
|
443
|
+
} else if (canvasW > 0 && variant === 'efficiency-bars') {
|
|
444
|
+
shapes = /*#__PURE__*/_jsxs(_Fragment, {
|
|
445
|
+
children: [/*#__PURE__*/_jsx(Rect, {
|
|
446
|
+
x: 0.5,
|
|
447
|
+
y: 0.5,
|
|
448
|
+
width: VB_W - 1,
|
|
449
|
+
height: height - 1,
|
|
450
|
+
rx: 8,
|
|
451
|
+
fill: colors.violet,
|
|
452
|
+
opacity: 0.05
|
|
453
|
+
}), intervals.map((iv, i) => {
|
|
454
|
+
const x = i * effStep + effStep * 0.18;
|
|
455
|
+
const w = effStep * 0.64;
|
|
456
|
+
const up = Math.max(0, iv.asleepMinutes) / effUnit * effAmp;
|
|
457
|
+
const down = Math.max(0, iv.awakeMinutes) / effUnit * effAmp;
|
|
458
|
+
return /*#__PURE__*/_jsxs(Fragment, {
|
|
459
|
+
children: [shine && up > 0 && /*#__PURE__*/_jsx(Rect, {
|
|
460
|
+
x: r(x - SHINE_PAD / 2),
|
|
461
|
+
y: r(effMid - up - SHINE_PAD / 2),
|
|
462
|
+
width: r(w + SHINE_PAD),
|
|
463
|
+
height: r(up + SHINE_PAD),
|
|
464
|
+
rx: 3,
|
|
465
|
+
fill: colors.violet,
|
|
466
|
+
opacity: SHINE_OPACITY,
|
|
467
|
+
filter: `url(#lk-hyp-blur-${uid})`
|
|
468
|
+
}), shine && down > 0 && /*#__PURE__*/_jsx(Rect, {
|
|
469
|
+
x: r(x - SHINE_PAD / 2),
|
|
470
|
+
y: r(effMid - SHINE_PAD / 2),
|
|
471
|
+
width: r(w + SHINE_PAD),
|
|
472
|
+
height: r(down + SHINE_PAD),
|
|
473
|
+
rx: 3,
|
|
474
|
+
fill: colors.zoneMid,
|
|
475
|
+
opacity: SHINE_OPACITY,
|
|
476
|
+
filter: `url(#lk-hyp-blur-${uid})`
|
|
477
|
+
}), up > 0 && /*#__PURE__*/_jsx(Rect, {
|
|
478
|
+
x: r(x),
|
|
479
|
+
y: r(effMid - up),
|
|
480
|
+
width: r(w),
|
|
481
|
+
height: r(up),
|
|
482
|
+
rx: 2,
|
|
483
|
+
fill: colors.violet,
|
|
484
|
+
opacity: 0.8
|
|
485
|
+
}), down > 0 && /*#__PURE__*/_jsx(Rect, {
|
|
486
|
+
x: r(x),
|
|
487
|
+
y: r(effMid),
|
|
488
|
+
width: r(w),
|
|
489
|
+
height: r(down),
|
|
490
|
+
rx: 2,
|
|
491
|
+
fill: colors.zoneMid,
|
|
492
|
+
opacity: 0.95
|
|
493
|
+
})]
|
|
494
|
+
}, i);
|
|
495
|
+
})]
|
|
496
|
+
});
|
|
497
|
+
} else if (canvasW > 0 && variant === 'sleep-week') {
|
|
498
|
+
shapes = /*#__PURE__*/_jsxs(_Fragment, {
|
|
499
|
+
children: [[0.25, 0.5, 0.75].map(f => /*#__PURE__*/_jsx(Line, {
|
|
500
|
+
x1: 0,
|
|
501
|
+
x2: VB_W,
|
|
502
|
+
y1: r(4 + (height - 5) * f),
|
|
503
|
+
y2: r(4 + (height - 5) * f),
|
|
504
|
+
stroke: colors.border,
|
|
505
|
+
strokeWidth: 1,
|
|
506
|
+
opacity: 0.55
|
|
507
|
+
}, f)), /*#__PURE__*/_jsx(Line, {
|
|
508
|
+
x1: 0,
|
|
509
|
+
x2: VB_W,
|
|
510
|
+
y1: height - 1,
|
|
511
|
+
y2: height - 1,
|
|
512
|
+
stroke: colors.border,
|
|
513
|
+
strokeWidth: 1
|
|
514
|
+
}), week.map((d, i) => {
|
|
515
|
+
const under = d < targetHours - 0.5;
|
|
516
|
+
const color = under ? colors.zoneMid : colors.violet;
|
|
517
|
+
const y = weekY(Math.max(0, d));
|
|
518
|
+
const x = i * weekStep + weekStep * 0.22;
|
|
519
|
+
const w = weekStep * 0.56;
|
|
520
|
+
return /*#__PURE__*/_jsxs(Fragment, {
|
|
521
|
+
children: [shine && /*#__PURE__*/_jsx(Rect, {
|
|
522
|
+
x: r(x - SHINE_PAD / 2),
|
|
523
|
+
y: r(y - SHINE_PAD / 2),
|
|
524
|
+
width: r(w + SHINE_PAD),
|
|
525
|
+
height: r(Math.max(0, height - 1 - y) + SHINE_PAD / 2),
|
|
526
|
+
rx: 5,
|
|
527
|
+
fill: color,
|
|
528
|
+
opacity: SHINE_OPACITY,
|
|
529
|
+
filter: `url(#lk-hyp-blur-${uid})`
|
|
530
|
+
}), /*#__PURE__*/_jsx(Rect, {
|
|
531
|
+
x: r(x),
|
|
532
|
+
y: r(y),
|
|
533
|
+
width: r(w),
|
|
534
|
+
height: r(Math.max(0, height - 1 - y)),
|
|
535
|
+
rx: 4,
|
|
536
|
+
fill: color,
|
|
537
|
+
opacity: 0.9
|
|
538
|
+
})]
|
|
539
|
+
}, i);
|
|
540
|
+
}), /*#__PURE__*/_jsx(Line, {
|
|
541
|
+
x1: 0,
|
|
542
|
+
x2: VB_W,
|
|
543
|
+
y1: r(targetY),
|
|
544
|
+
y2: r(targetY),
|
|
545
|
+
stroke: colors.mint,
|
|
546
|
+
strokeWidth: 1,
|
|
547
|
+
strokeDasharray: "5 4",
|
|
548
|
+
opacity: 0.85
|
|
549
|
+
})]
|
|
550
|
+
});
|
|
551
|
+
} else if (canvasW > 0 && variant === 'bedtime-drift') {
|
|
552
|
+
shapes = /*#__PURE__*/_jsxs(_Fragment, {
|
|
553
|
+
children: [/*#__PURE__*/_jsx(Rect, {
|
|
554
|
+
x: 0.5,
|
|
555
|
+
y: 0.5,
|
|
556
|
+
width: VB_W - 1,
|
|
557
|
+
height: height - 1,
|
|
558
|
+
rx: 8,
|
|
559
|
+
fill: colors.violet,
|
|
560
|
+
opacity: 0.05
|
|
561
|
+
}), /*#__PURE__*/_jsx(Rect, {
|
|
562
|
+
x: r(VB_W * DRIFT_BAND_X),
|
|
563
|
+
y: r(driftY(winLo)),
|
|
564
|
+
width: r(VB_W * DRIFT_BAND_W),
|
|
565
|
+
height: r(Math.max(0, driftY(winHi) - driftY(winLo))),
|
|
566
|
+
rx: 3,
|
|
567
|
+
fill: colors.mint,
|
|
568
|
+
opacity: 0.07
|
|
569
|
+
}), nights.map((n, i) => /*#__PURE__*/_jsx(Line, {
|
|
570
|
+
x1: r(driftX(i)),
|
|
571
|
+
x2: r(driftX(i)),
|
|
572
|
+
y1: r(driftY(n.bed)),
|
|
573
|
+
y2: r(driftY(n.wake)),
|
|
574
|
+
stroke: colors.border2,
|
|
575
|
+
strokeWidth: 2
|
|
576
|
+
}, i))]
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
/** a round overlay dot (RN View); shine = a real `boxShadow` glow — the
|
|
581
|
+
* native twin of the web `.lk-hyp-dot` box-shadow(0 0 8px) */
|
|
582
|
+
const dot = (key, xPx, yPx, color) => /*#__PURE__*/_jsx(Fragment, {
|
|
583
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
584
|
+
style: [styles.dot, {
|
|
585
|
+
left: xPx - 4,
|
|
586
|
+
top: yPx - 4,
|
|
587
|
+
backgroundColor: color
|
|
588
|
+
}, shine ? {
|
|
589
|
+
boxShadow: `0 0 8px ${color}`
|
|
590
|
+
} : null],
|
|
591
|
+
pointerEvents: "none"
|
|
592
|
+
})
|
|
593
|
+
}, key);
|
|
594
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
595
|
+
style: [styles.root, style],
|
|
596
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
597
|
+
style: [styles.plot, {
|
|
598
|
+
height
|
|
599
|
+
}],
|
|
600
|
+
onLayout: onLayout,
|
|
601
|
+
children: [staged && showStageLabels ? /*#__PURE__*/_jsx(View, {
|
|
602
|
+
style: styles.stages,
|
|
603
|
+
pointerEvents: "none",
|
|
604
|
+
children: STAGES.map(stage => /*#__PURE__*/_jsx(Text, {
|
|
605
|
+
style: [styles.stage, {
|
|
606
|
+
top: `${bandY(stage, height) / height * 100}%`
|
|
607
|
+
}],
|
|
608
|
+
numberOfLines: 1,
|
|
609
|
+
children: STAGE_LABELS[stage]
|
|
610
|
+
}, stage))
|
|
611
|
+
}) : null, /*#__PURE__*/_jsxs(View, {
|
|
612
|
+
style: [styles.canvas, {
|
|
613
|
+
width: canvasW
|
|
614
|
+
}],
|
|
615
|
+
children: [canvasW > 0 && /*#__PURE__*/_jsxs(Svg, {
|
|
616
|
+
width: canvasW,
|
|
617
|
+
height: height,
|
|
618
|
+
viewBox: `0 0 ${VB_W} ${height}`,
|
|
619
|
+
preserveAspectRatio: "none",
|
|
620
|
+
children: [shine ?
|
|
621
|
+
/*#__PURE__*/
|
|
622
|
+
/* real Gaussian blur for the shine (Fabric-native in
|
|
623
|
+
react-native-svg 15) — the native twin of the web
|
|
624
|
+
drop-shadow(0 0 7px). Region in user space over the full
|
|
625
|
+
canvas so flat bars never clip the blur. */
|
|
626
|
+
_jsx(Defs, {
|
|
627
|
+
children: /*#__PURE__*/_jsx(Filter, {
|
|
628
|
+
id: `lk-hyp-blur-${uid}`,
|
|
629
|
+
filterUnits: "userSpaceOnUse",
|
|
630
|
+
x: -12,
|
|
631
|
+
y: -12,
|
|
632
|
+
width: VB_W + 24,
|
|
633
|
+
height: height + 24,
|
|
634
|
+
children: /*#__PURE__*/_jsx(FeGaussianBlur, {
|
|
635
|
+
stdDeviation: 3.5
|
|
636
|
+
})
|
|
637
|
+
})
|
|
638
|
+
}) : null, shapes]
|
|
639
|
+
}), canvasW > 0 && variant === 'efficiency-bars' && /*#__PURE__*/_jsxs(_Fragment, {
|
|
640
|
+
children: [/*#__PURE__*/_jsx(HypTag, {
|
|
641
|
+
text: asleepLabel,
|
|
642
|
+
color: colors.violet,
|
|
643
|
+
style: {
|
|
644
|
+
top: 4,
|
|
645
|
+
right: 2
|
|
646
|
+
}
|
|
647
|
+
}), /*#__PURE__*/_jsx(HypTag, {
|
|
648
|
+
text: awakeLabel,
|
|
649
|
+
color: colors.zoneMid,
|
|
650
|
+
style: {
|
|
651
|
+
bottom: 4,
|
|
652
|
+
right: 2
|
|
653
|
+
}
|
|
654
|
+
})]
|
|
655
|
+
}), canvasW > 0 && variant === 'sleep-week' && /*#__PURE__*/_jsx(HypTag, {
|
|
656
|
+
text: `TARGET ${targetHours}H`,
|
|
657
|
+
color: colors.mint,
|
|
658
|
+
style: {
|
|
659
|
+
top: targetY - 21,
|
|
660
|
+
right: 2
|
|
661
|
+
}
|
|
662
|
+
}), canvasW > 0 && variant === 'bedtime-drift' && /*#__PURE__*/_jsxs(_Fragment, {
|
|
663
|
+
children: [/*#__PURE__*/_jsx(HypTag, {
|
|
664
|
+
text: windowLabel,
|
|
665
|
+
color: colors.mint,
|
|
666
|
+
style: {
|
|
667
|
+
top: driftY(winLo) - 21,
|
|
668
|
+
right: 2
|
|
669
|
+
}
|
|
670
|
+
}), nights.map((n, i) => {
|
|
671
|
+
const late = nightHour(n.bed) > nightHour(lateBedAfter);
|
|
672
|
+
return /*#__PURE__*/_jsxs(Fragment, {
|
|
673
|
+
children: [dot(`b${i}`, px(driftX(i)), driftY(n.bed), late ? colors.zoneLow : colors.violet), dot(`w${i}`, px(driftX(i)), driftY(n.wake), colors.zoneMid)]
|
|
674
|
+
}, i);
|
|
675
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
676
|
+
style: [styles.side, {
|
|
677
|
+
top: bedMeanY - 5,
|
|
678
|
+
color: colors.violet
|
|
679
|
+
}],
|
|
680
|
+
pointerEvents: "none",
|
|
681
|
+
children: "BED"
|
|
682
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
683
|
+
style: [styles.side, {
|
|
684
|
+
top: wakeMeanY - 5,
|
|
685
|
+
color: colors.zoneMid
|
|
686
|
+
}],
|
|
687
|
+
pointerEvents: "none",
|
|
688
|
+
children: "WAKE"
|
|
689
|
+
})]
|
|
690
|
+
}), canvasW > 0 && variant === 'night-coach' && /*#__PURE__*/_jsxs(_Fragment, {
|
|
691
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
692
|
+
style: [styles.centerRow, {
|
|
693
|
+
top: 2,
|
|
694
|
+
transform: [{
|
|
695
|
+
translateX: px(wwX) - canvasW / 2
|
|
696
|
+
}]
|
|
697
|
+
}],
|
|
698
|
+
pointerEvents: "none",
|
|
699
|
+
children: /*#__PURE__*/_jsx(HypTag, {
|
|
700
|
+
text: wakeWindowLabel,
|
|
701
|
+
color: colors.zoneMid
|
|
702
|
+
})
|
|
703
|
+
}), recommendation ? /*#__PURE__*/_jsx(HypTag, {
|
|
704
|
+
text: recommendation,
|
|
705
|
+
color: colors.mint,
|
|
706
|
+
style: {
|
|
707
|
+
bottom: 2,
|
|
708
|
+
right: 2
|
|
709
|
+
}
|
|
710
|
+
}) : null]
|
|
711
|
+
})]
|
|
712
|
+
})]
|
|
713
|
+
}), (variant === 'sleep-week' || variant === 'bedtime-drift') && days.length > 0 && width > 0 && /*#__PURE__*/_jsx(View, {
|
|
714
|
+
style: styles.days,
|
|
715
|
+
pointerEvents: "none",
|
|
716
|
+
children: days.slice(0, variant === 'bedtime-drift' ? nights.length : week.length).map((d, i) => {
|
|
717
|
+
const xPx = variant === 'bedtime-drift' ? px(driftX(i)) : px(i * weekStep + weekStep * 0.5);
|
|
718
|
+
return /*#__PURE__*/_jsx(Text, {
|
|
719
|
+
style: [styles.day, {
|
|
720
|
+
left: xPx - 24
|
|
721
|
+
}],
|
|
722
|
+
numberOfLines: 1,
|
|
723
|
+
children: d
|
|
724
|
+
}, i);
|
|
725
|
+
})
|
|
726
|
+
}), resolvedAxis.length > 0 && /*#__PURE__*/_jsx(View, {
|
|
727
|
+
style: [styles.axis, staged && showStageLabels ? {
|
|
728
|
+
paddingLeft: STAGE_GUTTER
|
|
729
|
+
} : null],
|
|
730
|
+
children: resolvedAxis.map((t, i) => /*#__PURE__*/_jsx(Text, {
|
|
731
|
+
style: styles.axisText,
|
|
732
|
+
children: t
|
|
733
|
+
}, i))
|
|
734
|
+
})]
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
const styles = StyleSheet.create({
|
|
738
|
+
root: {
|
|
739
|
+
flexDirection: 'column',
|
|
740
|
+
gap: 8,
|
|
741
|
+
width: '100%'
|
|
742
|
+
},
|
|
743
|
+
plot: {
|
|
744
|
+
position: 'relative',
|
|
745
|
+
flexDirection: 'row',
|
|
746
|
+
width: '100%'
|
|
747
|
+
},
|
|
748
|
+
// left gutter holding the stage labels
|
|
749
|
+
stages: {
|
|
750
|
+
position: 'absolute',
|
|
751
|
+
top: 0,
|
|
752
|
+
left: 0,
|
|
753
|
+
bottom: 0,
|
|
754
|
+
width: STAGE_GUTTER
|
|
755
|
+
},
|
|
756
|
+
stage: {
|
|
757
|
+
position: 'absolute',
|
|
758
|
+
left: 0,
|
|
759
|
+
marginTop: -5,
|
|
760
|
+
fontFamily: fonts.mono,
|
|
761
|
+
fontSize: 10,
|
|
762
|
+
lineHeight: 10,
|
|
763
|
+
letterSpacing: 0.2,
|
|
764
|
+
color: colors.textFaint
|
|
765
|
+
},
|
|
766
|
+
// drawing area: holds the Svg + overlays; sits to the right of the stage gutter
|
|
767
|
+
canvas: {
|
|
768
|
+
position: 'relative',
|
|
769
|
+
height: '100%',
|
|
770
|
+
marginLeft: 'auto'
|
|
771
|
+
},
|
|
772
|
+
axis: {
|
|
773
|
+
flexDirection: 'row',
|
|
774
|
+
justifyContent: 'space-between',
|
|
775
|
+
paddingHorizontal: 1
|
|
776
|
+
},
|
|
777
|
+
axisText: {
|
|
778
|
+
fontFamily: fonts.mono,
|
|
779
|
+
fontSize: 9.5,
|
|
780
|
+
color: colors.textFaint
|
|
781
|
+
},
|
|
782
|
+
// floating pill tag (mirrors web .lk-hyp-tag) — dark-backed like the
|
|
783
|
+
// catalog's C.tag so it stays readable over bright bars
|
|
784
|
+
tag: {
|
|
785
|
+
position: 'absolute',
|
|
786
|
+
paddingVertical: 3,
|
|
787
|
+
paddingHorizontal: 7,
|
|
788
|
+
borderRadius: radii.pill,
|
|
789
|
+
borderWidth: 1,
|
|
790
|
+
backgroundColor: colors.bg1
|
|
791
|
+
},
|
|
792
|
+
tagText: {
|
|
793
|
+
fontFamily: fonts.mono,
|
|
794
|
+
fontSize: 9,
|
|
795
|
+
lineHeight: 9,
|
|
796
|
+
letterSpacing: 0.36
|
|
797
|
+
},
|
|
798
|
+
// full-width row that centers a tag; shifted via translateX to the anchor
|
|
799
|
+
centerRow: {
|
|
800
|
+
position: 'absolute',
|
|
801
|
+
left: 0,
|
|
802
|
+
right: 0,
|
|
803
|
+
alignItems: 'center'
|
|
804
|
+
},
|
|
805
|
+
// round bed/wake dots + the fainter, wider shine halo behind them
|
|
806
|
+
dot: {
|
|
807
|
+
position: 'absolute',
|
|
808
|
+
width: 8,
|
|
809
|
+
height: 8,
|
|
810
|
+
borderRadius: 4
|
|
811
|
+
},
|
|
812
|
+
// BED / WAKE side labels pinned at the series' mean y
|
|
813
|
+
side: {
|
|
814
|
+
position: 'absolute',
|
|
815
|
+
left: 2,
|
|
816
|
+
fontFamily: fonts.mono,
|
|
817
|
+
fontSize: 10,
|
|
818
|
+
lineHeight: 10,
|
|
819
|
+
letterSpacing: 0.2
|
|
820
|
+
},
|
|
821
|
+
// day letters row under the plot (SL-05/06)
|
|
822
|
+
days: {
|
|
823
|
+
position: 'relative',
|
|
824
|
+
height: 12
|
|
825
|
+
},
|
|
826
|
+
day: {
|
|
827
|
+
position: 'absolute',
|
|
828
|
+
top: 0,
|
|
829
|
+
width: 48,
|
|
830
|
+
textAlign: 'center',
|
|
831
|
+
fontFamily: fonts.mono,
|
|
832
|
+
fontSize: 9.5,
|
|
833
|
+
lineHeight: 10,
|
|
834
|
+
color: colors.textFaint
|
|
835
|
+
}
|
|
836
|
+
});
|
|
837
|
+
//# sourceMappingURL=Hypnogram.js.map
|