@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,472 @@
|
|
|
1
|
+
import { useId, type ReactNode } from 'react';
|
|
2
|
+
import { View, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import Svg, { Circle, Defs, FeGaussianBlur, Filter, G, Line, LinearGradient, Path, Rect, Stop, Text as SvgText } from 'react-native-svg';
|
|
4
|
+
import { colors, fonts } from '@lockin90/tokens';
|
|
5
|
+
|
|
6
|
+
/* CaffeineClock — the catalog caffeine family (CF-01…CF-03,
|
|
7
|
+
lockin90-design/charts/caffeine-charts.html): half-life decay vs your
|
|
8
|
+
bedtime — when the last safe coffee is. Three variants in a fixed 320×150
|
|
9
|
+
viewBox: the signature exponential decay curve with the amber sleep
|
|
10
|
+
threshold and the violet bedtime rule + verdict pill, stacked per-dose
|
|
11
|
+
curves under a bold total, and the actionable mint→amber→magenta safe
|
|
12
|
+
window strip with the computed LAST SAFE COFFEE tick. Native twin of
|
|
13
|
+
`@lockin90/ui` CaffeineClock — same prop API; the shine glow is a real
|
|
14
|
+
Gaussian-blurred duplicate stroke (Fabric-native SVG filters in
|
|
15
|
+
react-native-svg 15). */
|
|
16
|
+
|
|
17
|
+
export type CaffeineClockVariant =
|
|
18
|
+
| 'decay-curve' /* CF-01 — decay + 50MG threshold crossing + bed verdict */
|
|
19
|
+
| 'stacked-doses' /* CF-02 — faint per-dose curves + bold TOTAL curve */
|
|
20
|
+
| 'safe-window'; /* CF-03 — gradient day strip + LAST SAFE COFFEE tick */
|
|
21
|
+
|
|
22
|
+
/** One caffeine dose. */
|
|
23
|
+
export interface CaffeineDose {
|
|
24
|
+
/** Hour of day, 0–24 (e.g. `8.5` = 8:30). */
|
|
25
|
+
atH: number;
|
|
26
|
+
/** Dose size in mg. */
|
|
27
|
+
mg: number;
|
|
28
|
+
/** Marker/curve color token; defaults by position (violet → cyan → amber). */
|
|
29
|
+
color?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface CaffeineClockProps {
|
|
33
|
+
/** Catalog variant (CF-01 / CF-02 / CF-03). */
|
|
34
|
+
variant?: CaffeineClockVariant;
|
|
35
|
+
/** The day's doses, in time order (default per variant reproduces the card). */
|
|
36
|
+
doses?: CaffeineDose[];
|
|
37
|
+
/** Caffeine half-life in hours (the catalog t½ 5.7h). */
|
|
38
|
+
halfLifeH?: number;
|
|
39
|
+
/** Bedtime hour → violet dashed rule + verdict pill / safe-window anchor. */
|
|
40
|
+
bedH?: number;
|
|
41
|
+
/** Sleep threshold in mg (the amber dashed rule; verdicts compare to it). */
|
|
42
|
+
thresholdMg?: number;
|
|
43
|
+
/** y-scale ceiling in mg. */
|
|
44
|
+
maxMg?: number;
|
|
45
|
+
/** x-axis day window, hours. */
|
|
46
|
+
dayStartH?: number;
|
|
47
|
+
dayEndH?: number;
|
|
48
|
+
/** `safe-window` NOW position, hour of day. */
|
|
49
|
+
nowH?: number;
|
|
50
|
+
/** Decay-curve color token (CF-01). */
|
|
51
|
+
color?: string;
|
|
52
|
+
/** Bed verdict pill override (default derived `BED · ${mg}MG ✓/⚠`). */
|
|
53
|
+
bedLabel?: string;
|
|
54
|
+
/** Threshold-crossing pill override (default `UNDER ${mg}MG · ${time}`). */
|
|
55
|
+
crossLabel?: string;
|
|
56
|
+
/** `stacked-doses` key note. */
|
|
57
|
+
note?: string;
|
|
58
|
+
/** `safe-window` tick pill override (default `LAST SAFE COFFEE · ${time}`,
|
|
59
|
+
* one half-life before bed). */
|
|
60
|
+
safeLabel?: string;
|
|
61
|
+
/** `safe-window` past-cups caption (default `${n} COFFEES SO FAR`). */
|
|
62
|
+
cupsNote?: string;
|
|
63
|
+
/** `safe-window` bottom legend (default derived from `bedH`). */
|
|
64
|
+
legendNote?: string;
|
|
65
|
+
/** Top-left mono caption (e.g. 'COFFEE 8:30 · 120MG'). */
|
|
66
|
+
title?: string;
|
|
67
|
+
/** Interior gridlines + baseline (the catalog grid). */
|
|
68
|
+
grid?: boolean;
|
|
69
|
+
/** Glow underlay along the decay curve (the catalog `cfg.shine`). */
|
|
70
|
+
shine?: boolean;
|
|
71
|
+
/** Accessible description of the chart. */
|
|
72
|
+
ariaLabel?: string;
|
|
73
|
+
/** Optional container style. */
|
|
74
|
+
style?: StyleProp<ViewStyle>;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* ---- catalog geometry (viewBox units — charts/catalog.js + caffeine page) ---- */
|
|
78
|
+
const W = 320;
|
|
79
|
+
const H = 150;
|
|
80
|
+
const PAD = { l: 10, r: 12, t: 16, b: 14 };
|
|
81
|
+
const PLOT_H = H - PAD.t - PAD.b; // 120
|
|
82
|
+
const GRID_ROWS = [0.25, 0.5, 0.75] as const;
|
|
83
|
+
const X0 = PAD.l + 10;
|
|
84
|
+
const X1 = W - PAD.r - 10;
|
|
85
|
+
|
|
86
|
+
/** Round for compact attribute values. */
|
|
87
|
+
const rd = (n: number) => Math.round(n * 100) / 100;
|
|
88
|
+
|
|
89
|
+
/** `h:mm` from a fractional hour (17.3 → '17:18'). */
|
|
90
|
+
function fmtH(h: number): string {
|
|
91
|
+
let hh = Math.floor(h);
|
|
92
|
+
let mm = Math.round((h - hh) * 60);
|
|
93
|
+
if (mm === 60) {
|
|
94
|
+
hh += 1;
|
|
95
|
+
mm = 0;
|
|
96
|
+
}
|
|
97
|
+
return `${hh}:${String(mm).padStart(2, '0')}`;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/** Mono catalog label (8.5px JetBrains Mono, ~.06em tracking). */
|
|
101
|
+
function Label({
|
|
102
|
+
x,
|
|
103
|
+
y,
|
|
104
|
+
fill,
|
|
105
|
+
anchor = 'middle',
|
|
106
|
+
children,
|
|
107
|
+
}: {
|
|
108
|
+
x: number;
|
|
109
|
+
y: number;
|
|
110
|
+
fill: string;
|
|
111
|
+
anchor?: 'start' | 'middle' | 'end';
|
|
112
|
+
children: string;
|
|
113
|
+
}) {
|
|
114
|
+
return (
|
|
115
|
+
<SvgText x={rd(x)} y={rd(y)} fill={fill} textAnchor={anchor} fontSize={8.5} fontFamily={fonts.mono} letterSpacing={0.5}>
|
|
116
|
+
{children}
|
|
117
|
+
</SvgText>
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/** Chip-pill tag (the catalog `tag()`): dark bg-0 pill + tinted hairline. */
|
|
122
|
+
function Tag({
|
|
123
|
+
x,
|
|
124
|
+
y,
|
|
125
|
+
color,
|
|
126
|
+
anchor = 'middle',
|
|
127
|
+
text,
|
|
128
|
+
}: {
|
|
129
|
+
x: number;
|
|
130
|
+
y: number;
|
|
131
|
+
color: string;
|
|
132
|
+
anchor?: 'start' | 'middle' | 'end';
|
|
133
|
+
text: string;
|
|
134
|
+
}) {
|
|
135
|
+
const wpx = text.length * 5.35 + 12;
|
|
136
|
+
let xa = anchor === 'end' ? x - wpx : anchor === 'start' ? x : x - wpx / 2;
|
|
137
|
+
xa = Math.max(PAD.l - 4, Math.min(xa, W - PAD.r - wpx + 4));
|
|
138
|
+
return (
|
|
139
|
+
<G>
|
|
140
|
+
<Rect
|
|
141
|
+
x={rd(xa)}
|
|
142
|
+
y={rd(y - 6.5)}
|
|
143
|
+
width={rd(wpx)}
|
|
144
|
+
height={13}
|
|
145
|
+
rx={6.5}
|
|
146
|
+
fill={`${colors.bg0}C7`}
|
|
147
|
+
stroke={color}
|
|
148
|
+
strokeOpacity={0.35}
|
|
149
|
+
strokeWidth={0.8}
|
|
150
|
+
/>
|
|
151
|
+
<SvgText
|
|
152
|
+
x={rd(xa + wpx / 2)}
|
|
153
|
+
y={rd(y + 2.8)}
|
|
154
|
+
fill={color}
|
|
155
|
+
textAnchor="middle"
|
|
156
|
+
fontSize={8}
|
|
157
|
+
fontFamily={fonts.mono}
|
|
158
|
+
letterSpacing={0.4}
|
|
159
|
+
>
|
|
160
|
+
{text}
|
|
161
|
+
</SvgText>
|
|
162
|
+
</G>
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/** Glowing dot + static halo ring — the catalog `pulseDot` (no animation). */
|
|
167
|
+
function PulseDot({ x, y, color }: { x: number; y: number; color: string }) {
|
|
168
|
+
return (
|
|
169
|
+
<G>
|
|
170
|
+
<Circle cx={rd(x)} cy={rd(y)} r={6.6} fill={color} opacity={0.35} />
|
|
171
|
+
<Circle cx={rd(x)} cy={rd(y)} r={3.6} fill={color} />
|
|
172
|
+
<Circle cx={rd(x)} cy={rd(y)} r={7} fill="none" stroke={color} strokeWidth={1.4} opacity={0.4} />
|
|
173
|
+
</G>
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* per-dose curve colors, in dose order (the catalog stacked trio) */
|
|
178
|
+
const DOSE_COLORS = [colors.violet, colors.cyan, colors.zoneMid] as const;
|
|
179
|
+
|
|
180
|
+
const DEFAULT_DECAY: CaffeineDose[] = [{ atH: 8.5, mg: 120, color: colors.mint }];
|
|
181
|
+
const DEFAULT_STACK: CaffeineDose[] = [
|
|
182
|
+
{ atH: 7.5, mg: 90 },
|
|
183
|
+
{ atH: 10.5, mg: 60 },
|
|
184
|
+
{ atH: 14, mg: 80 },
|
|
185
|
+
];
|
|
186
|
+
const DEFAULT_WINDOW: CaffeineDose[] = [
|
|
187
|
+
{ atH: 7.5, mg: 90 },
|
|
188
|
+
{ atH: 10.5, mg: 60 },
|
|
189
|
+
];
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* CaffeineClock — the caffeine-clock family (catalog CF-01…CF-03): mg in the
|
|
193
|
+
* system over the day, computed from the doses with the exponential half-life
|
|
194
|
+
* model `mg · 0.5^((h − atH)/t½)`. The bed verdict, threshold crossing and
|
|
195
|
+
* LAST SAFE COFFEE tick are all derived from the data — pass real doses and
|
|
196
|
+
* the answers are real.
|
|
197
|
+
*/
|
|
198
|
+
export function CaffeineClock({
|
|
199
|
+
variant = 'decay-curve',
|
|
200
|
+
doses,
|
|
201
|
+
halfLifeH = 5.7,
|
|
202
|
+
bedH = 23,
|
|
203
|
+
thresholdMg = 50,
|
|
204
|
+
maxMg = 200,
|
|
205
|
+
dayStartH = 6,
|
|
206
|
+
dayEndH = 24,
|
|
207
|
+
nowH = 14,
|
|
208
|
+
color = colors.mint,
|
|
209
|
+
bedLabel,
|
|
210
|
+
crossLabel,
|
|
211
|
+
note = 'BOLD = TOTAL',
|
|
212
|
+
safeLabel,
|
|
213
|
+
cupsNote,
|
|
214
|
+
legendNote,
|
|
215
|
+
title,
|
|
216
|
+
grid = true,
|
|
217
|
+
shine = false,
|
|
218
|
+
ariaLabel = 'Caffeine decay chart',
|
|
219
|
+
style,
|
|
220
|
+
}: CaffeineClockProps) {
|
|
221
|
+
const uid = useId().replace(/[^a-zA-Z0-9-]/g, '');
|
|
222
|
+
|
|
223
|
+
const ds =
|
|
224
|
+
doses ??
|
|
225
|
+
(variant === 'stacked-doses' ? DEFAULT_STACK : variant === 'safe-window' ? DEFAULT_WINDOW : DEFAULT_DECAY);
|
|
226
|
+
|
|
227
|
+
/** hour → x (the page's `xh`, generalized to the day window). */
|
|
228
|
+
const xh = (h: number) => X0 + ((h - dayStartH) / (dayEndH - dayStartH)) * (X1 - X0);
|
|
229
|
+
/** mg → y (the page's `ymg`). */
|
|
230
|
+
const ymg = (mg: number) => H - PAD.b - 6 - (mg / maxMg) * (PLOT_H - 18);
|
|
231
|
+
/** total mg in the system at hour `h` (each dose decays independently). */
|
|
232
|
+
const lvl = (dd: CaffeineDose[], h: number) =>
|
|
233
|
+
dd.reduce((s, d) => (h < d.atH ? s : s + d.mg * Math.pow(0.5, (h - d.atH) / halfLifeH)), 0);
|
|
234
|
+
/** decay path sampled every 0.25h from `h0` to the end of the window. */
|
|
235
|
+
const curve = (dd: CaffeineDose[], h0: number) => {
|
|
236
|
+
let d = '';
|
|
237
|
+
for (let h = h0; h <= dayEndH + 0.01; h += 0.25) d += `${d ? 'L' : 'M'}${rd(xh(h))} ${rd(ymg(lvl(dd, h)))}`;
|
|
238
|
+
return d;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
/** dashed-stem cup marker + mg caption (the page's `cup`). */
|
|
242
|
+
const cupMarker = (d: CaffeineDose, i: number) => {
|
|
243
|
+
const c = d.color ?? DOSE_COLORS[i % DOSE_COLORS.length];
|
|
244
|
+
const x = xh(d.atH);
|
|
245
|
+
return (
|
|
246
|
+
<G key={i}>
|
|
247
|
+
<Line
|
|
248
|
+
x1={rd(x)}
|
|
249
|
+
x2={rd(x)}
|
|
250
|
+
y1={rd(ymg(0))}
|
|
251
|
+
y2={rd(ymg(d.mg))}
|
|
252
|
+
stroke={c}
|
|
253
|
+
strokeWidth={1}
|
|
254
|
+
strokeDasharray={[2, 3]}
|
|
255
|
+
opacity={0.7}
|
|
256
|
+
/>
|
|
257
|
+
<Circle cx={rd(x)} cy={rd(ymg(d.mg))} r={3} fill={c} />
|
|
258
|
+
<Label x={x} y={ymg(d.mg) - 8} fill={c}>
|
|
259
|
+
{`${d.mg}MG`}
|
|
260
|
+
</Label>
|
|
261
|
+
</G>
|
|
262
|
+
);
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
/* bed verdict — derived from the model */
|
|
266
|
+
const mgAtBed = Math.round(lvl(ds, bedH));
|
|
267
|
+
const bedOK = mgAtBed < thresholdMg;
|
|
268
|
+
const bedText = bedLabel ?? `BED · ${mgAtBed}MG ${bedOK ? '✓' : '⚠'}`;
|
|
269
|
+
const bedColor = bedOK ? colors.mint : colors.zoneLow;
|
|
270
|
+
const bedRule = (
|
|
271
|
+
<G>
|
|
272
|
+
<Line
|
|
273
|
+
x1={rd(xh(bedH))}
|
|
274
|
+
x2={rd(xh(bedH))}
|
|
275
|
+
y1={PAD.t + 6}
|
|
276
|
+
y2={H - PAD.b}
|
|
277
|
+
stroke={colors.violet}
|
|
278
|
+
strokeWidth={1.2}
|
|
279
|
+
strokeDasharray={[4, 4]}
|
|
280
|
+
/>
|
|
281
|
+
<Tag x={xh(bedH) - 4} y={PAD.t + 12} color={bedColor} anchor="end" text={bedText} />
|
|
282
|
+
</G>
|
|
283
|
+
);
|
|
284
|
+
|
|
285
|
+
/* hour ticks every 3h across the window */
|
|
286
|
+
const ticks: number[] = [];
|
|
287
|
+
for (let h = Math.ceil(dayStartH / 3) * 3; h <= dayEndH; h += 3) ticks.push(h);
|
|
288
|
+
const hourTicks = (
|
|
289
|
+
<G>
|
|
290
|
+
{ticks.map((h) => (
|
|
291
|
+
<Label key={h} x={xh(h)} y={H - 3} fill={colors.textFaint}>
|
|
292
|
+
{`${h}:00`}
|
|
293
|
+
</Label>
|
|
294
|
+
))}
|
|
295
|
+
</G>
|
|
296
|
+
);
|
|
297
|
+
|
|
298
|
+
let body: ReactNode = null;
|
|
299
|
+
|
|
300
|
+
if (variant === 'stacked-doses') {
|
|
301
|
+
/* CF-02 — faint per-dose curves + bold white TOTAL */
|
|
302
|
+
const first = Math.min(...ds.map((d) => d.atH));
|
|
303
|
+
body = (
|
|
304
|
+
<G>
|
|
305
|
+
{ds.map((d, i) => (
|
|
306
|
+
<Path
|
|
307
|
+
key={i}
|
|
308
|
+
d={curve([d], d.atH)}
|
|
309
|
+
fill="none"
|
|
310
|
+
stroke={d.color ?? DOSE_COLORS[i % DOSE_COLORS.length]}
|
|
311
|
+
strokeWidth={1.2}
|
|
312
|
+
opacity={0.55}
|
|
313
|
+
/>
|
|
314
|
+
))}
|
|
315
|
+
<Path d={curve(ds, first)} fill="none" stroke={colors.text} strokeWidth={2.2} strokeLinecap="round" />
|
|
316
|
+
{ds.map((d, i) => cupMarker(d, i))}
|
|
317
|
+
{bedRule}
|
|
318
|
+
{hourTicks}
|
|
319
|
+
<Label x={xh(dayStartH + (dayEndH - dayStartH) * 0.44) + 8} y={ymg(maxMg * 0.75)} fill={colors.textDim} anchor="start">
|
|
320
|
+
{note}
|
|
321
|
+
</Label>
|
|
322
|
+
</G>
|
|
323
|
+
);
|
|
324
|
+
} else if (variant === 'safe-window') {
|
|
325
|
+
/* CF-03 — gradient day strip + computed LAST SAFE COFFEE tick */
|
|
326
|
+
const y = 74;
|
|
327
|
+
const cut = bedH - halfLifeH; // one half-life before bed
|
|
328
|
+
const gradId = `lk-caff-w-${uid}`;
|
|
329
|
+
const avgH = ds.length > 0 ? ds.reduce((s, d) => s + d.atH, 0) / ds.length : dayStartH;
|
|
330
|
+
body = (
|
|
331
|
+
<G>
|
|
332
|
+
<Defs>
|
|
333
|
+
<LinearGradient id={gradId} x1="0%" y1="0%" x2="100%" y2="0%">
|
|
334
|
+
<Stop offset="0%" stopColor={colors.mint} />
|
|
335
|
+
<Stop offset="55%" stopColor={colors.mint} />
|
|
336
|
+
<Stop offset="75%" stopColor={colors.zoneMid} />
|
|
337
|
+
<Stop offset="100%" stopColor={colors.magenta} />
|
|
338
|
+
</LinearGradient>
|
|
339
|
+
</Defs>
|
|
340
|
+
<Rect x={X0} y={y - 9} width={X1 - X0} height={18} rx={9} fill={`url(#${gradId})`} opacity={0.75} />
|
|
341
|
+
<Line x1={rd(xh(cut))} x2={rd(xh(cut))} y1={y - 17} y2={y + 17} stroke={colors.text} strokeWidth={2} />
|
|
342
|
+
<Tag x={xh(cut)} y={y - 26} color={colors.mint} text={safeLabel ?? `LAST SAFE COFFEE · ${fmtH(cut)}`} />
|
|
343
|
+
<PulseDot x={xh(nowH)} y={y} color={colors.text} />
|
|
344
|
+
<Label x={xh(nowH)} y={y + 26} fill={colors.textDim}>
|
|
345
|
+
{`NOW · ${fmtH(nowH)}`}
|
|
346
|
+
</Label>
|
|
347
|
+
{ds.map((d, i) => (
|
|
348
|
+
<Circle
|
|
349
|
+
key={i}
|
|
350
|
+
cx={rd(xh(d.atH))}
|
|
351
|
+
cy={y}
|
|
352
|
+
r={3}
|
|
353
|
+
fill={`${colors.bg0}CC`}
|
|
354
|
+
stroke={colors.text}
|
|
355
|
+
strokeOpacity={0.8}
|
|
356
|
+
strokeWidth={1.2}
|
|
357
|
+
/>
|
|
358
|
+
))}
|
|
359
|
+
<Label x={xh(avgH)} y={y - 22} fill={colors.textFaint}>
|
|
360
|
+
{cupsNote ?? `${ds.length} COFFEES SO FAR`}
|
|
361
|
+
</Label>
|
|
362
|
+
<Label x={W / 2} y={128} fill={colors.textFaint}>
|
|
363
|
+
{legendNote ?? `GREEN = SAFE FOR ${fmtH(bedH)} BED · RED = HITS SLEEP`}
|
|
364
|
+
</Label>
|
|
365
|
+
{hourTicks}
|
|
366
|
+
</G>
|
|
367
|
+
);
|
|
368
|
+
} else {
|
|
369
|
+
/* CF-01 — the signature decay curve + threshold + bed verdict */
|
|
370
|
+
const first = Math.min(...ds.map((d) => d.atH));
|
|
371
|
+
const d = curve(ds, first);
|
|
372
|
+
// first time the (post-last-dose) total dips under the threshold
|
|
373
|
+
let t50: number | null = null;
|
|
374
|
+
if (ds.length > 0) {
|
|
375
|
+
const lastDose = Math.max(...ds.map((dd) => dd.atH));
|
|
376
|
+
for (let h = Math.max(lastDose, dayStartH); h <= dayEndH; h += 0.05) {
|
|
377
|
+
if (lvl(ds, h) < thresholdMg) {
|
|
378
|
+
t50 = h;
|
|
379
|
+
break;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
body = (
|
|
384
|
+
<G>
|
|
385
|
+
{/* shine — a Gaussian-blurred duplicate of the curve behind it: the native
|
|
386
|
+
twin of the web `.lk-caff-shine` blur(5px) underlay. (Wide un-blurred
|
|
387
|
+
copies read as hard outlines on device.) */}
|
|
388
|
+
{shine ? (
|
|
389
|
+
<G>
|
|
390
|
+
<Defs>
|
|
391
|
+
<Filter
|
|
392
|
+
id={`lk-caff-blur-${uid}`}
|
|
393
|
+
filterUnits="userSpaceOnUse"
|
|
394
|
+
x={-10}
|
|
395
|
+
y={-10}
|
|
396
|
+
width={W + 20}
|
|
397
|
+
height={H + 20}
|
|
398
|
+
>
|
|
399
|
+
<FeGaussianBlur stdDeviation={2.5} />
|
|
400
|
+
</Filter>
|
|
401
|
+
</Defs>
|
|
402
|
+
<Path d={d} fill="none" stroke={color} strokeWidth={7} opacity={0.45} filter={`url(#lk-caff-blur-${uid})`} />
|
|
403
|
+
</G>
|
|
404
|
+
) : null}
|
|
405
|
+
<Line
|
|
406
|
+
x1={X0}
|
|
407
|
+
x2={X1}
|
|
408
|
+
y1={rd(ymg(thresholdMg))}
|
|
409
|
+
y2={rd(ymg(thresholdMg))}
|
|
410
|
+
stroke={colors.zoneMid}
|
|
411
|
+
strokeWidth={1.1}
|
|
412
|
+
strokeDasharray={[4, 4]}
|
|
413
|
+
/>
|
|
414
|
+
<Label x={X0 + 2} y={ymg(thresholdMg) - 6} fill={colors.zoneMid} anchor="start">
|
|
415
|
+
{`SLEEP THRESHOLD ${thresholdMg}MG`}
|
|
416
|
+
</Label>
|
|
417
|
+
<Path d={d} fill="none" stroke={color} strokeWidth={2.2} strokeLinecap="round" />
|
|
418
|
+
{ds.map((dd, i) => cupMarker(dd, i))}
|
|
419
|
+
{t50 != null ? (
|
|
420
|
+
<G>
|
|
421
|
+
<Circle cx={rd(xh(t50))} cy={rd(ymg(thresholdMg))} r={3.4} fill={colors.zoneMid} />
|
|
422
|
+
<Tag
|
|
423
|
+
x={xh(t50) + 6}
|
|
424
|
+
y={ymg(thresholdMg) + 16}
|
|
425
|
+
color={colors.zoneMid}
|
|
426
|
+
anchor="start"
|
|
427
|
+
text={crossLabel ?? `UNDER ${thresholdMg}MG · ${fmtH(t50)}`}
|
|
428
|
+
/>
|
|
429
|
+
</G>
|
|
430
|
+
) : null}
|
|
431
|
+
{bedRule}
|
|
432
|
+
{hourTicks}
|
|
433
|
+
</G>
|
|
434
|
+
);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
return (
|
|
438
|
+
<View accessibilityRole="image" accessibilityLabel={ariaLabel} style={[styles.root, style]}>
|
|
439
|
+
<Svg width="100%" height="100%" viewBox={`0 0 ${W} ${H}`}>
|
|
440
|
+
{/* catalog grid: 3 interior rows + solid baseline */}
|
|
441
|
+
{grid ? (
|
|
442
|
+
<G>
|
|
443
|
+
{GRID_ROWS.map((f) => (
|
|
444
|
+
<Line
|
|
445
|
+
key={f}
|
|
446
|
+
x1={PAD.l}
|
|
447
|
+
x2={W - PAD.r}
|
|
448
|
+
y1={rd(PAD.t + PLOT_H * f)}
|
|
449
|
+
y2={rd(PAD.t + PLOT_H * f)}
|
|
450
|
+
stroke={colors.border}
|
|
451
|
+
strokeOpacity={0.55}
|
|
452
|
+
strokeWidth={1}
|
|
453
|
+
/>
|
|
454
|
+
))}
|
|
455
|
+
<Line x1={PAD.l} x2={W - PAD.r} y1={H - PAD.b} y2={H - PAD.b} stroke={colors.border} strokeWidth={1} />
|
|
456
|
+
</G>
|
|
457
|
+
) : null}
|
|
458
|
+
{title ? (
|
|
459
|
+
<Label x={PAD.l + 2} y={11} fill={colors.textFaint} anchor="start">
|
|
460
|
+
{title}
|
|
461
|
+
</Label>
|
|
462
|
+
) : null}
|
|
463
|
+
{body}
|
|
464
|
+
</Svg>
|
|
465
|
+
</View>
|
|
466
|
+
);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
const styles = StyleSheet.create({
|
|
470
|
+
/* fixed catalog aspect (320×150); the Svg scales the viewBox to fit */
|
|
471
|
+
root: { width: '100%', aspectRatio: W / H },
|
|
472
|
+
});
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { View, StyleSheet, type ViewProps } from 'react-native';
|
|
2
|
+
import { LinearGradient } from 'expo-linear-gradient';
|
|
3
|
+
import { colors, radii, nativeShadows, gradients } from '@lockin90/tokens';
|
|
4
|
+
import { OptionalBlurView } from '../internal/optionalBlur';
|
|
5
|
+
|
|
6
|
+
export interface CardProps extends ViewProps {
|
|
7
|
+
/** gradient hairline on the top edge */
|
|
8
|
+
lit?: boolean;
|
|
9
|
+
/** larger padding (shorthand for `pad="lg"`) */
|
|
10
|
+
padLg?: boolean;
|
|
11
|
+
/** padding size — overrides the default 22px */
|
|
12
|
+
pad?: 'none' | 'sm' | 'md' | 'lg';
|
|
13
|
+
/** drop the elevation shadow */
|
|
14
|
+
flat?: boolean;
|
|
15
|
+
/** real backdrop blur (the web `backdrop-filter` glass) — needs the optional
|
|
16
|
+
* `expo-blur` peer; falls back to the translucent fill when it's absent */
|
|
17
|
+
blur?: boolean;
|
|
18
|
+
/** tinted border + subtle bg in a status color (`warn` amber / `danger` red) */
|
|
19
|
+
tone?: 'warn' | 'danger';
|
|
20
|
+
/** surface style — `dashed` = an add/connect action card, `ghost` = borderless transparent */
|
|
21
|
+
variant?: 'ghost' | 'dashed';
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** Glass panel. Native has no backdrop-filter, so glass is approximated with a
|
|
25
|
+
* translucent fill + hairline border. Set `blur` for a real frosted surface
|
|
26
|
+
* (via the optional `expo-blur` peer) that matches the web glass more closely. */
|
|
27
|
+
export function Card({ lit, padLg, pad, flat, blur, tone, variant, style, children, ...rest }: CardProps) {
|
|
28
|
+
const composed = [
|
|
29
|
+
styles.card,
|
|
30
|
+
padLg && styles.padLg,
|
|
31
|
+
pad === 'none' && styles.padNone,
|
|
32
|
+
pad === 'sm' && styles.padSm,
|
|
33
|
+
pad === 'md' && styles.padMd,
|
|
34
|
+
pad === 'lg' && styles.padLg,
|
|
35
|
+
flat && styles.flat,
|
|
36
|
+
tone === 'warn' && styles.toneWarn,
|
|
37
|
+
tone === 'danger' && styles.toneDanger,
|
|
38
|
+
variant === 'dashed' && styles.dashed,
|
|
39
|
+
variant === 'ghost' && styles.ghost,
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
if (blur && OptionalBlurView) {
|
|
43
|
+
return (
|
|
44
|
+
<OptionalBlurView
|
|
45
|
+
intensity={24}
|
|
46
|
+
tint="dark"
|
|
47
|
+
style={[composed, styles.cardBlur, style]}
|
|
48
|
+
{...rest}
|
|
49
|
+
>
|
|
50
|
+
{lit && <LitHairline />}
|
|
51
|
+
{children}
|
|
52
|
+
</OptionalBlurView>
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return (
|
|
57
|
+
<View style={[composed, style]} {...rest}>
|
|
58
|
+
{lit && <LitHairline />}
|
|
59
|
+
{children}
|
|
60
|
+
</View>
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// The web `.lk-card.lk-lit::before` hairline, natively: a 1px gradient strip
|
|
65
|
+
// inset by the corner radius, fading to zero-alpha at both ends (the previous
|
|
66
|
+
// plain-View implementation had no fill — invisible — and the blur branch drew
|
|
67
|
+
// a hard-ended full-opacity flux line that read as a solid top border).
|
|
68
|
+
// Zero-alpha endpoints are color-matched (not 'transparent') so iOS doesn't
|
|
69
|
+
// blend the fade through gray.
|
|
70
|
+
const LIT_STOPS = [
|
|
71
|
+
'rgba(124,92,255,0)',
|
|
72
|
+
'rgba(124,92,255,0.7)',
|
|
73
|
+
'rgba(34,211,238,0.7)',
|
|
74
|
+
'rgba(34,211,238,0)',
|
|
75
|
+
] as const;
|
|
76
|
+
|
|
77
|
+
function LitHairline() {
|
|
78
|
+
return (
|
|
79
|
+
<LinearGradient
|
|
80
|
+
colors={LIT_STOPS as unknown as [string, string]}
|
|
81
|
+
start={{ x: 0, y: 0 }}
|
|
82
|
+
end={{ x: 1, y: 0 }}
|
|
83
|
+
style={styles.lit}
|
|
84
|
+
pointerEvents="none"
|
|
85
|
+
/>
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const styles = StyleSheet.create({
|
|
90
|
+
card: {
|
|
91
|
+
backgroundColor: colors.glass,
|
|
92
|
+
borderWidth: 1,
|
|
93
|
+
borderColor: colors.border,
|
|
94
|
+
borderRadius: radii.md,
|
|
95
|
+
// Clip children (edge-to-edge rows, the `lit` hairline) to the rounded
|
|
96
|
+
// corners so their borders/fills never bleed past the card radius.
|
|
97
|
+
overflow: 'hidden',
|
|
98
|
+
padding: 22,
|
|
99
|
+
...nativeShadows.elev1,
|
|
100
|
+
},
|
|
101
|
+
padLg: { padding: 30 },
|
|
102
|
+
padNone: { padding: 0 },
|
|
103
|
+
padSm: { padding: 16 },
|
|
104
|
+
padMd: { padding: 22 },
|
|
105
|
+
flat: { shadowOpacity: 0, elevation: 0 },
|
|
106
|
+
// tone — tinted border + subtle bg. The literals are the flattened web
|
|
107
|
+
// `color-mix(in srgb, var(--warn|--bad) 42%, transparent)` border and
|
|
108
|
+
// `color-mix(in srgb, var(--warn|--bad) 7|8%, var(--glass))` fill
|
|
109
|
+
// (#FFB020 / #FF4D6D mixed into rgba(255,255,255,0.045)).
|
|
110
|
+
toneWarn: { borderColor: 'rgba(255,176,32,0.42)', backgroundColor: 'rgba(255,206,115,0.11)' },
|
|
111
|
+
toneDanger: { borderColor: 'rgba(255,77,109,0.42)', backgroundColor: 'rgba(255,138,159,0.12)' },
|
|
112
|
+
// dashed — add/connect action card (hover accent is web-only; text color
|
|
113
|
+
// doesn't cascade natively, so children set their own `colors.textDim`)
|
|
114
|
+
dashed: {
|
|
115
|
+
alignItems: 'center',
|
|
116
|
+
justifyContent: 'center',
|
|
117
|
+
gap: 8,
|
|
118
|
+
backgroundColor: 'transparent',
|
|
119
|
+
borderWidth: 2,
|
|
120
|
+
borderStyle: 'dashed',
|
|
121
|
+
borderColor: colors.border2,
|
|
122
|
+
shadowOpacity: 0,
|
|
123
|
+
elevation: 0,
|
|
124
|
+
},
|
|
125
|
+
// ghost — borderless transparent surface
|
|
126
|
+
ghost: { backgroundColor: 'transparent', borderColor: 'transparent', shadowOpacity: 0, elevation: 0 },
|
|
127
|
+
// when blurred, drop most of the opaque fill so the frost shows through, and
|
|
128
|
+
// clip the blur to the card radius (iOS needs overflow:hidden for this)
|
|
129
|
+
cardBlur: { backgroundColor: 'rgba(255,255,255,0.02)', overflow: 'hidden' },
|
|
130
|
+
// web parity: `inset: 0 var(--r) auto var(--r); height: 1px` — the straight
|
|
131
|
+
// hairline stays inside the top edge, clear of the rounded corners.
|
|
132
|
+
lit: {
|
|
133
|
+
position: 'absolute',
|
|
134
|
+
top: 0,
|
|
135
|
+
left: radii.md,
|
|
136
|
+
right: radii.md,
|
|
137
|
+
height: 1,
|
|
138
|
+
},
|
|
139
|
+
});
|