@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,114 @@
|
|
|
1
|
+
import { useEffect, useRef, useState } from 'react';
|
|
2
|
+
import { Animated, Easing, StyleSheet, Text, type LayoutChangeEvent, type TextProps, type TextStyle } from 'react-native';
|
|
3
|
+
import Svg, { Defs, LinearGradient, Stop, Text as SvgText } from 'react-native-svg';
|
|
4
|
+
import { gradients, fonts } from '@lockin90/tokens';
|
|
5
|
+
|
|
6
|
+
const AnimatedLinearGradient = Animated.createAnimatedComponent(LinearGradient);
|
|
7
|
+
|
|
8
|
+
/** Stop colors for the gradient fill. `still` uses the plain spectrum; animated
|
|
9
|
+
* uses a MIRRORED spectrum (…→last→…back through the same hues→first) spanning
|
|
10
|
+
* 2× the width, so scrolling it by one width per loop is seamless — the return
|
|
11
|
+
* leg never jumps last-stop→first-stop (e.g. flux's lime→magenta).
|
|
12
|
+
* (Pure — extracted from the render path so the stop math is unit-testable.) */
|
|
13
|
+
export function gradientTextStops(stops: readonly string[], still: boolean): string[] {
|
|
14
|
+
return still ? [...stops] : [...stops, ...stops.slice(0, -1).reverse()];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface GradientTextProps extends TextProps {
|
|
18
|
+
gradient?: 'flux' | 'cta' | 'violet' | 'mint';
|
|
19
|
+
/** disable the slow flowing animation (matches web `.lk-gradient-text`); static fill. */
|
|
20
|
+
still?: boolean;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** Energy-spectrum gradient text with a slow flowing animation (native twin of the
|
|
24
|
+
* web `.lk-gradient-text`, which scrolls `background-position` over 9s). Renders the
|
|
25
|
+
* string into an SVG with a real linear-gradient fill (react-native-svg works on
|
|
26
|
+
* device + react-native-web); measures the laid-out text first, then draws to it.
|
|
27
|
+
* The gradient uses a MIRRORED spectrum spanning 2× the width; scrolling it by one
|
|
28
|
+
* width per loop makes the flow seamless (the return leg passes back through the
|
|
29
|
+
* same hues, so it never jumps lime→magenta). */
|
|
30
|
+
export function GradientText({ gradient = 'flux', still = false, style, children, ...rest }: GradientTextProps) {
|
|
31
|
+
const [size, setSize] = useState<{ w: number; h: number } | null>(null);
|
|
32
|
+
const anim = useRef(new Animated.Value(0)).current;
|
|
33
|
+
const g = gradients[gradient] ?? gradients.flux;
|
|
34
|
+
|
|
35
|
+
// slow linear loop; drives the gradient window's horizontal scroll. useNativeDriver
|
|
36
|
+
// is false because SVG gradient coords aren't native-drivable — fine at this low rate.
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
if (!size || still) return;
|
|
39
|
+
const loop = Animated.loop(
|
|
40
|
+
Animated.timing(anim, { toValue: 1, duration: 9000, easing: Easing.linear, useNativeDriver: false }),
|
|
41
|
+
);
|
|
42
|
+
loop.start();
|
|
43
|
+
return () => loop.stop();
|
|
44
|
+
}, [size, still, anim]);
|
|
45
|
+
|
|
46
|
+
const flat = (StyleSheet.flatten(style) ?? {}) as TextStyle;
|
|
47
|
+
const fontSize = typeof flat.fontSize === 'number' ? flat.fontSize : 28;
|
|
48
|
+
const fontWeight = String(flat.fontWeight ?? '700');
|
|
49
|
+
const fontFamily = typeof flat.fontFamily === 'string' ? flat.fontFamily : fonts.display;
|
|
50
|
+
const letterSpacing = typeof flat.letterSpacing === 'number' ? flat.letterSpacing : undefined;
|
|
51
|
+
const text = typeof children === 'string' || typeof children === 'number' ? String(children) : '';
|
|
52
|
+
|
|
53
|
+
// Horizontal breathing room: react-native-svg lays glyphs out slightly wider than RN's Text
|
|
54
|
+
// measurement (worse with bold display fonts + negative letterSpacing), so a tight SVG width
|
|
55
|
+
// clips the last glyph. Pad both sides and draw the text CENTERED (text-anchor middle) so it
|
|
56
|
+
// never clips left or right regardless of the measurement gap.
|
|
57
|
+
const pad = Math.max(3, Math.round(fontSize * 0.14));
|
|
58
|
+
|
|
59
|
+
// pass 1 — lay out the real text (hidden) to measure it; pass 2 draws the SVG
|
|
60
|
+
if (!size || !text) {
|
|
61
|
+
return (
|
|
62
|
+
<Text
|
|
63
|
+
{...rest}
|
|
64
|
+
onLayout={(e: LayoutChangeEvent) => {
|
|
65
|
+
const { width, height } = e.nativeEvent.layout;
|
|
66
|
+
if (width && height) setSize({ w: Math.ceil(width) + pad * 2, h: Math.ceil(height) });
|
|
67
|
+
}}
|
|
68
|
+
// alignSelf:'flex-start' so the hidden measurer shrinks to the glyphs' INTRINSIC
|
|
69
|
+
// width instead of stretching to the parent (which made the SVG full-width and
|
|
70
|
+
// drew the centered text mid-container). Intrinsic width → the gradient SVG is
|
|
71
|
+
// glyph-sized and follows the parent's alignment (left under a left-aligned head).
|
|
72
|
+
style={[style, text ? { opacity: 0, alignSelf: 'flex-start' } : null]}
|
|
73
|
+
>
|
|
74
|
+
{children}
|
|
75
|
+
</Text>
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const id = `lk-gt-${gradient}`;
|
|
80
|
+
// The gradient window is 2× the text width; scroll it left by one width over the loop.
|
|
81
|
+
const x1 = still ? 0 : anim.interpolate({ inputRange: [0, 1], outputRange: [0, -size.w] });
|
|
82
|
+
const x2 = still ? size.w : anim.interpolate({ inputRange: [0, 1], outputRange: [2 * size.w, size.w] });
|
|
83
|
+
// still → plain spectrum; animated → mirrored spectrum (seamless loop).
|
|
84
|
+
const stops = gradientTextStops(g.stops, still);
|
|
85
|
+
|
|
86
|
+
return (
|
|
87
|
+
<Svg width={size.w} height={size.h} accessibilityLabel={text}>
|
|
88
|
+
<Defs>
|
|
89
|
+
{/* userSpaceOnUse (explicit px coords), NOT the default objectBoundingBox:
|
|
90
|
+
on the New Architecture react-native-svg computes a degenerate bbox for
|
|
91
|
+
<Text>, so an objectBoundingBox gradient (x1..x2 in 0–1) never paints and
|
|
92
|
+
the glyphs render as flat fallback fill. Spanning the measured pixel width
|
|
93
|
+
makes the flux fill render on device. */}
|
|
94
|
+
<AnimatedLinearGradient id={id} gradientUnits="userSpaceOnUse" x1={x1} y1={0} x2={x2} y2={0}>
|
|
95
|
+
{stops.map((c, i) => (
|
|
96
|
+
<Stop key={i} offset={i / (stops.length - 1)} stopColor={c} />
|
|
97
|
+
))}
|
|
98
|
+
</AnimatedLinearGradient>
|
|
99
|
+
</Defs>
|
|
100
|
+
<SvgText
|
|
101
|
+
fill={`url(#${id})`}
|
|
102
|
+
fontSize={fontSize}
|
|
103
|
+
fontWeight={fontWeight}
|
|
104
|
+
fontFamily={fontFamily}
|
|
105
|
+
letterSpacing={letterSpacing}
|
|
106
|
+
textAnchor="middle"
|
|
107
|
+
x={size.w / 2}
|
|
108
|
+
y={size.h * 0.78}
|
|
109
|
+
>
|
|
110
|
+
{text}
|
|
111
|
+
</SvgText>
|
|
112
|
+
</Svg>
|
|
113
|
+
);
|
|
114
|
+
}
|
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
import { View, Text, StyleSheet, type StyleProp, type ViewStyle, type TextStyle } from 'react-native';
|
|
2
|
+
import { colors, fonts, radii } from '@lockin90/tokens';
|
|
3
|
+
|
|
4
|
+
/** One cell in the heatmap. */
|
|
5
|
+
export interface HeatmapCell {
|
|
6
|
+
/** the cell's intensity — color scales with `value / max` (0..1 after normalization) */
|
|
7
|
+
value: number;
|
|
8
|
+
/** optional label (e.g. a day-of-month number) shown inside the cell */
|
|
9
|
+
label?: string;
|
|
10
|
+
/** mark this cell — draws a low-zone ring + dot (e.g. a flagged low-energy day) */
|
|
11
|
+
flag?: boolean;
|
|
12
|
+
/** mark this cell as "today"/"now" — draws an accent (or `todayColor`) ring */
|
|
13
|
+
today?: boolean;
|
|
14
|
+
/** missing-data slot — renders as a dashed empty cell, never a fake zero (HM-08) */
|
|
15
|
+
missing?: boolean;
|
|
16
|
+
/** explicit in-cell text when `showValues` is on (overrides the computed value) */
|
|
17
|
+
display?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface HeatmapProps {
|
|
21
|
+
/** the cells, laid out left → right, top → bottom */
|
|
22
|
+
cells?: HeatmapCell[];
|
|
23
|
+
/** number of columns; 7 reads as a calendar week, ~30 as a wrapping contribution strip */
|
|
24
|
+
columns?: number;
|
|
25
|
+
/** cell edge length in px (square cells in `grid`, fixed-height in `strip`) */
|
|
26
|
+
cellSize?: number;
|
|
27
|
+
/** gap between cells in px */
|
|
28
|
+
gap?: number;
|
|
29
|
+
/** cell corner radius in px */
|
|
30
|
+
radius?: number;
|
|
31
|
+
/** low-intensity end of the color ramp (hex) — legacy ramp, ignored when `scale` is set */
|
|
32
|
+
colorFrom?: string;
|
|
33
|
+
/** high-intensity end of the color ramp (hex) — legacy ramp, ignored when `scale` is set */
|
|
34
|
+
colorTo?: string;
|
|
35
|
+
/** override the ramp entirely: map a normalized value (0..1) → any color string */
|
|
36
|
+
colorScale?: (value: number) => string;
|
|
37
|
+
/** `grid` = square calendar cells; `strip` = a denser contribution strip */
|
|
38
|
+
variant?: 'grid' | 'strip';
|
|
39
|
+
/** the value that maps to full intensity (1.0); values normalize as `value / max` */
|
|
40
|
+
max?: number;
|
|
41
|
+
/** Catalog color scale — token color + value-driven opacity (HM-01 SELECT):
|
|
42
|
+
* - `'zone'` — zone verdict tokens (≥0.62 high · ≥0.38 mid · low)
|
|
43
|
+
* - `'spectrum'` — indigo → violet → cyan → mint by quartile (HM-09)
|
|
44
|
+
* - `'diverge'` — above 0.5 mint / below coral, opacity = |Δ| (HM-11/12)
|
|
45
|
+
* - any **hex** color string — single hue, opacity = value (e.g. `colors.mint`, HM-03)
|
|
46
|
+
* When set, the legacy `colorFrom/To` ramp is ignored. */
|
|
47
|
+
scale?: 'zone' | 'spectrum' | 'diverge' | (string & {});
|
|
48
|
+
/** row captions at the left, one per row (e.g. MON…SUN) */
|
|
49
|
+
rowLabels?: string[];
|
|
50
|
+
/** column captions above the grid at specific column indices (HM-09 hour marks) */
|
|
51
|
+
colLabels?: { at: number; label: string }[];
|
|
52
|
+
/** weekday letters under the columns — `true` = 'MTWTFSS', or a custom string */
|
|
53
|
+
dayLetters?: boolean | string;
|
|
54
|
+
/** HM-06 dot-matrix — circles sized AND opacified by value (double encoding) */
|
|
55
|
+
dots?: boolean;
|
|
56
|
+
/** HM-07 glass-grid — glass cells; the border's color opacity carries the value */
|
|
57
|
+
glass?: boolean;
|
|
58
|
+
/** HM-13 focus-row — this row index at full strength, others dimmed to 22% */
|
|
59
|
+
focusRow?: number;
|
|
60
|
+
/** in-cell mono values (HM-11/14): `'pct'` → `round(t·100)`; `true` → diverging
|
|
61
|
+
* scales show a signed `(t−0.5)·2` coefficient, others `t` to 1 decimal;
|
|
62
|
+
* per-cell `display` overrides */
|
|
63
|
+
showValues?: boolean | 'pct';
|
|
64
|
+
/** glow on hot cells (t > 0.78) — a soft shadow in the cell color (no blur on RN) */
|
|
65
|
+
shine?: boolean;
|
|
66
|
+
/** the `today` ring color (default `colors.accent`; HM-15 uses `colors.text`) */
|
|
67
|
+
todayColor?: string;
|
|
68
|
+
/** HM-15 today-ring — adds a glowing dot above the `today` cell (static on native) */
|
|
69
|
+
todayPulse?: boolean;
|
|
70
|
+
/** in-cell label placement: `center` (legacy) or `corner` (HM-04 month-cal numerals) */
|
|
71
|
+
labelPosition?: 'center' | 'corner';
|
|
72
|
+
/** optional container style */
|
|
73
|
+
style?: StyleProp<ViewStyle>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** low-intensity ramp end — dark violet so low cells stay distinct from high */
|
|
77
|
+
const DEFAULT_FROM = '#2B1F5C';
|
|
78
|
+
/** high-intensity ramp end — mint (the brand "high" zone) */
|
|
79
|
+
const DEFAULT_TO = '#34F5C5';
|
|
80
|
+
|
|
81
|
+
/** A small calendar-week sample spanning the FULL intensity range so the ramp
|
|
82
|
+
* is legible at a glance (mirrors the web Heatmap defaults). */
|
|
83
|
+
const DEFAULT_CELLS: HeatmapCell[] = [
|
|
84
|
+
{ value: 0.15, label: '1' },
|
|
85
|
+
{ value: 0.3, label: '2' },
|
|
86
|
+
{ value: 0.85, label: '3' },
|
|
87
|
+
{ value: 0.55, label: '4' },
|
|
88
|
+
{ value: 0.08, label: '5', flag: true },
|
|
89
|
+
{ value: 0.72, label: '6' },
|
|
90
|
+
{ value: 0.92, label: '7' },
|
|
91
|
+
{ value: 0.38, label: '8' },
|
|
92
|
+
{ value: 0.61, label: '9' },
|
|
93
|
+
{ value: 0.78, label: '10' },
|
|
94
|
+
{ value: 0.95, label: '11', today: true },
|
|
95
|
+
];
|
|
96
|
+
|
|
97
|
+
/** Clamp to [0, 1]. */
|
|
98
|
+
function clamp01(n: number): number {
|
|
99
|
+
return n < 0 ? 0 : n > 1 ? 1 : n;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/** Parse `#rgb` / `#rrggbb` into an [r, g, b] triplet (0..255). */
|
|
103
|
+
function hexToRgb(hex: string): [number, number, number] {
|
|
104
|
+
let h = hex.replace('#', '').trim();
|
|
105
|
+
if (h.length === 3) h = h[0]! + h[0]! + h[1]! + h[1]! + h[2]! + h[2]!;
|
|
106
|
+
const int = parseInt(h, 16);
|
|
107
|
+
return [(int >> 16) & 255, (int >> 8) & 255, int & 255];
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/** Linearly interpolate between two hex colors by `t` (0..1) → an `rgb(...)` string. */
|
|
111
|
+
export function lerpColor(from: string, to: string, t: number): string {
|
|
112
|
+
const a = hexToRgb(from);
|
|
113
|
+
const b = hexToRgb(to);
|
|
114
|
+
const k = clamp01(t);
|
|
115
|
+
const r = Math.round(a[0] + (b[0] - a[0]) * k);
|
|
116
|
+
const g = Math.round(a[1] + (b[1] - a[1]) * k);
|
|
117
|
+
const bl = Math.round(a[2] + (b[2] - a[2]) * k);
|
|
118
|
+
return `rgb(${r}, ${g}, ${bl})`;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/** A hex token color at a value-driven opacity → `rgba(...)` string. */
|
|
122
|
+
function mix(hex: string, op: number): string {
|
|
123
|
+
const [r, g, b] = hexToRgb(hex);
|
|
124
|
+
return `rgba(${r}, ${g}, ${b}, ${clamp01(op).toFixed(3)})`;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/** The catalog `heatFill` scales: color token + opacity per normalized value. */
|
|
128
|
+
function heatFill(scale: string, t: number): { color: string; op: number } {
|
|
129
|
+
if (scale === 'zone') {
|
|
130
|
+
const color = t >= 0.62 ? colors.zoneHigh : t >= 0.38 ? colors.zoneMid : colors.zoneLow;
|
|
131
|
+
return { color, op: 0.25 + t * 0.75 };
|
|
132
|
+
}
|
|
133
|
+
if (scale === 'spectrum') {
|
|
134
|
+
const color = t < 0.25 ? colors.indigo : t < 0.5 ? colors.violet : t < 0.75 ? colors.cyan : colors.mint;
|
|
135
|
+
return { color, op: 0.35 + t * 0.65 };
|
|
136
|
+
}
|
|
137
|
+
if (scale === 'diverge') {
|
|
138
|
+
const d = t - 0.5;
|
|
139
|
+
return { color: d >= 0 ? colors.mint : colors.zoneLow, op: Math.min(1, 0.1 + Math.abs(d) * 1.7) };
|
|
140
|
+
}
|
|
141
|
+
return { color: scale, op: 0.08 + t * 0.92 }; /* single hue (hex) */
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/** fixed width of the row-labels column (mirrors the web CSS) */
|
|
145
|
+
const ROW_LABELS_W = 40;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Heatmap — a compact grid/strip of small intensity-colored cells. One primitive
|
|
149
|
+
* covers the calendar-month grid, the contribution strip, and the catalog
|
|
150
|
+
* heatmap family (HM-01…HM-15): token `scale`s (zone / spectrum / diverge /
|
|
151
|
+
* single-hue), row/column captions + day letters, dot-matrix and glass cells,
|
|
152
|
+
* gap-aware missing slots, a focus row, in-cell mono values, and the
|
|
153
|
+
* today-ring + dot. Legacy behavior (colorFrom→colorTo ramp) is unchanged
|
|
154
|
+
* when `scale` is not set. Tokens-driven.
|
|
155
|
+
*/
|
|
156
|
+
export function Heatmap({
|
|
157
|
+
cells = DEFAULT_CELLS,
|
|
158
|
+
columns = 7,
|
|
159
|
+
cellSize = 28,
|
|
160
|
+
gap = 4,
|
|
161
|
+
radius,
|
|
162
|
+
colorFrom = DEFAULT_FROM,
|
|
163
|
+
colorTo = DEFAULT_TO,
|
|
164
|
+
colorScale,
|
|
165
|
+
variant = 'grid',
|
|
166
|
+
max = 1,
|
|
167
|
+
scale,
|
|
168
|
+
rowLabels,
|
|
169
|
+
colLabels,
|
|
170
|
+
dayLetters,
|
|
171
|
+
dots = false,
|
|
172
|
+
glass = false,
|
|
173
|
+
focusRow,
|
|
174
|
+
showValues,
|
|
175
|
+
shine = false,
|
|
176
|
+
todayColor,
|
|
177
|
+
todayPulse = false,
|
|
178
|
+
labelPosition = 'center',
|
|
179
|
+
style,
|
|
180
|
+
}: HeatmapProps) {
|
|
181
|
+
const denom = max > 0 ? max : 1;
|
|
182
|
+
const borderRadius = radius ?? (variant === 'strip' ? 4 : radii.sm);
|
|
183
|
+
const isStrip = variant === 'strip';
|
|
184
|
+
const rows = Math.max(1, Math.ceil(cells.length / columns));
|
|
185
|
+
const letters = dayLetters === true ? 'MTWTFSS' : dayLetters || '';
|
|
186
|
+
const hasFrame = Boolean(rowLabels?.length || colLabels?.length || letters);
|
|
187
|
+
// grid wraps at exactly `columns` square cells → pin the row to that width.
|
|
188
|
+
const gridWidth = columns * cellSize + Math.max(0, columns - 1) * gap;
|
|
189
|
+
|
|
190
|
+
const cellNodes = cells.map((c, i) => {
|
|
191
|
+
const t = clamp01(c.value / denom);
|
|
192
|
+
const row = Math.floor(i / columns);
|
|
193
|
+
// grid cells are fixed squares (wrap every `columns`); strip cells flex to
|
|
194
|
+
// share one row equally (mirrors the web's `repeat(columns, 1fr)`).
|
|
195
|
+
const baseStyle: ViewStyle = isStrip
|
|
196
|
+
? { height: cellSize, flex: 1, minWidth: 0, borderRadius }
|
|
197
|
+
: { height: cellSize, width: cellSize, borderRadius };
|
|
198
|
+
|
|
199
|
+
if (c.missing) {
|
|
200
|
+
return <View key={i} style={[styles.cell, baseStyle, styles.cellMissing]} />;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// resolve the fill: catalog scale (token + opacity) or legacy ramp
|
|
204
|
+
let color: string;
|
|
205
|
+
let op = 1;
|
|
206
|
+
if (scale != null) {
|
|
207
|
+
const hf = heatFill(scale, t);
|
|
208
|
+
color = hf.color;
|
|
209
|
+
op = hf.op;
|
|
210
|
+
} else {
|
|
211
|
+
color = colorScale ? colorScale(t) : lerpColor(colorFrom, colorTo, t);
|
|
212
|
+
}
|
|
213
|
+
if (focusRow != null) op = row === focusRow ? op : op * 0.22;
|
|
214
|
+
const dimmedLegacy = scale == null && focusRow != null && row !== focusRow;
|
|
215
|
+
|
|
216
|
+
const cellStyle: ViewStyle = dots
|
|
217
|
+
? {}
|
|
218
|
+
: glass
|
|
219
|
+
? { backgroundColor: colors.glass, borderColor: mix(color, 0.25 + t * 0.75) }
|
|
220
|
+
: {
|
|
221
|
+
backgroundColor: scale != null ? mix(color, op) : color,
|
|
222
|
+
...(dimmedLegacy ? { opacity: 0.22 } : {}),
|
|
223
|
+
};
|
|
224
|
+
const shineStyle: ViewStyle | null =
|
|
225
|
+
shine && t > 0.78 && !dots && !glass
|
|
226
|
+
? {
|
|
227
|
+
shadowColor: color,
|
|
228
|
+
shadowOpacity: 0.6,
|
|
229
|
+
shadowRadius: 6,
|
|
230
|
+
shadowOffset: { width: 0, height: 0 },
|
|
231
|
+
elevation: 4,
|
|
232
|
+
}
|
|
233
|
+
: null;
|
|
234
|
+
|
|
235
|
+
// in-cell text: computed value (HM-11/14) or the day label
|
|
236
|
+
const valueText = showValues
|
|
237
|
+
? (c.display ??
|
|
238
|
+
(scale === 'diverge'
|
|
239
|
+
? `${t >= 0.5 ? '+' : '−'}${Math.abs((t - 0.5) * 2).toFixed(1)}`
|
|
240
|
+
: showValues === 'pct'
|
|
241
|
+
? String(Math.round(t * 100))
|
|
242
|
+
: String(Math.round(t * 10) / 10)))
|
|
243
|
+
: undefined;
|
|
244
|
+
const text = !isStrip && !dots ? (valueText ?? c.label) : undefined;
|
|
245
|
+
const darkText = scale != null && t > 0.55;
|
|
246
|
+
|
|
247
|
+
const labelStyle: TextStyle[] = [styles.label];
|
|
248
|
+
if (labelPosition === 'corner') labelStyle.push(styles.labelCorner);
|
|
249
|
+
if (darkText) labelStyle.push(styles.labelDark);
|
|
250
|
+
|
|
251
|
+
return (
|
|
252
|
+
<View
|
|
253
|
+
key={i}
|
|
254
|
+
style={[
|
|
255
|
+
styles.cell,
|
|
256
|
+
baseStyle,
|
|
257
|
+
cellStyle,
|
|
258
|
+
shineStyle,
|
|
259
|
+
c.flag && styles.cellFlag,
|
|
260
|
+
c.today && [styles.cellToday, todayColor ? { borderColor: todayColor } : null],
|
|
261
|
+
]}
|
|
262
|
+
>
|
|
263
|
+
{dots && (
|
|
264
|
+
<View
|
|
265
|
+
style={{
|
|
266
|
+
width: cellSize * (0.35 + t * 0.65),
|
|
267
|
+
height: cellSize * (0.35 + t * 0.65),
|
|
268
|
+
borderRadius: cellSize,
|
|
269
|
+
backgroundColor: scale != null ? mix(color, op) : color,
|
|
270
|
+
}}
|
|
271
|
+
/>
|
|
272
|
+
)}
|
|
273
|
+
{c.flag && <View style={styles.flag} />}
|
|
274
|
+
{c.today && todayPulse && <View style={styles.pulse} />}
|
|
275
|
+
{text != null && <Text style={labelStyle}>{text}</Text>}
|
|
276
|
+
</View>
|
|
277
|
+
);
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
const grid = (
|
|
281
|
+
<View
|
|
282
|
+
style={[
|
|
283
|
+
styles.root,
|
|
284
|
+
{ gap },
|
|
285
|
+
!isStrip && [styles.rootWrap, { width: gridWidth }],
|
|
286
|
+
hasFrame ? null : style,
|
|
287
|
+
]}
|
|
288
|
+
>
|
|
289
|
+
{cellNodes}
|
|
290
|
+
</View>
|
|
291
|
+
);
|
|
292
|
+
|
|
293
|
+
if (!hasFrame) return grid;
|
|
294
|
+
|
|
295
|
+
const leftPad = rowLabels?.length ? ROW_LABELS_W : 0;
|
|
296
|
+
|
|
297
|
+
return (
|
|
298
|
+
<View style={style}>
|
|
299
|
+
{colLabels?.length ? (
|
|
300
|
+
<View style={[styles.axisRow, { marginLeft: leftPad, width: gridWidth }]}>
|
|
301
|
+
{colLabels.map((cl, i) => (
|
|
302
|
+
<Text
|
|
303
|
+
key={i}
|
|
304
|
+
style={[
|
|
305
|
+
styles.axisText,
|
|
306
|
+
{ position: 'absolute', top: 0, left: cl.at * (cellSize + gap) + cellSize / 2 - 20 },
|
|
307
|
+
]}
|
|
308
|
+
>
|
|
309
|
+
{cl.label}
|
|
310
|
+
</Text>
|
|
311
|
+
))}
|
|
312
|
+
</View>
|
|
313
|
+
) : null}
|
|
314
|
+
<View style={styles.frameRow}>
|
|
315
|
+
{rowLabels?.length ? (
|
|
316
|
+
<View style={[styles.rowLabels, { gap }]}>
|
|
317
|
+
{rowLabels.slice(0, rows).map((t, i) => (
|
|
318
|
+
<View key={i} style={[styles.rowLabelSlot, { height: cellSize }]}>
|
|
319
|
+
<Text style={styles.rowLabelText} numberOfLines={1}>
|
|
320
|
+
{t}
|
|
321
|
+
</Text>
|
|
322
|
+
</View>
|
|
323
|
+
))}
|
|
324
|
+
</View>
|
|
325
|
+
) : null}
|
|
326
|
+
{grid}
|
|
327
|
+
</View>
|
|
328
|
+
{letters ? (
|
|
329
|
+
<View style={[styles.axisRow, { marginLeft: leftPad, width: gridWidth }]}>
|
|
330
|
+
{Array.from(letters.slice(0, columns)).map((ch, i) => (
|
|
331
|
+
<Text
|
|
332
|
+
key={i}
|
|
333
|
+
style={[
|
|
334
|
+
styles.axisText,
|
|
335
|
+
{ position: 'absolute', bottom: 0, left: i * (cellSize + gap) + cellSize / 2 - 20 },
|
|
336
|
+
]}
|
|
337
|
+
>
|
|
338
|
+
{ch}
|
|
339
|
+
</Text>
|
|
340
|
+
))}
|
|
341
|
+
</View>
|
|
342
|
+
) : null}
|
|
343
|
+
</View>
|
|
344
|
+
);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
const styles = StyleSheet.create({
|
|
348
|
+
root: {
|
|
349
|
+
flexDirection: 'row',
|
|
350
|
+
alignItems: 'flex-start',
|
|
351
|
+
},
|
|
352
|
+
// grid variant wraps every `columns` cells (width is pinned inline)
|
|
353
|
+
rootWrap: {
|
|
354
|
+
flexWrap: 'wrap',
|
|
355
|
+
},
|
|
356
|
+
cell: {
|
|
357
|
+
position: 'relative',
|
|
358
|
+
alignItems: 'center',
|
|
359
|
+
justifyContent: 'center',
|
|
360
|
+
borderWidth: 1,
|
|
361
|
+
borderColor: 'transparent',
|
|
362
|
+
},
|
|
363
|
+
// today / now — accent ring by default (HM-15 overrides via todayColor)
|
|
364
|
+
cellToday: {
|
|
365
|
+
borderColor: colors.accent,
|
|
366
|
+
},
|
|
367
|
+
// flagged cell — low-zone ring
|
|
368
|
+
cellFlag: {
|
|
369
|
+
borderColor: colors.zoneLow,
|
|
370
|
+
},
|
|
371
|
+
// HM-08 gap-aware — missing slot: dashed empty cell
|
|
372
|
+
cellMissing: {
|
|
373
|
+
backgroundColor: 'transparent',
|
|
374
|
+
borderStyle: 'dashed',
|
|
375
|
+
borderColor: colors.border2,
|
|
376
|
+
},
|
|
377
|
+
// the flag dot — top-right, glowing low-zone
|
|
378
|
+
flag: {
|
|
379
|
+
position: 'absolute',
|
|
380
|
+
top: 3,
|
|
381
|
+
right: 3,
|
|
382
|
+
width: 5,
|
|
383
|
+
height: 5,
|
|
384
|
+
borderRadius: 2.5,
|
|
385
|
+
backgroundColor: colors.zoneLow,
|
|
386
|
+
shadowColor: colors.zoneLow,
|
|
387
|
+
shadowOpacity: 0.9,
|
|
388
|
+
shadowRadius: 6,
|
|
389
|
+
shadowOffset: { width: 0, height: 0 },
|
|
390
|
+
elevation: 4,
|
|
391
|
+
},
|
|
392
|
+
// HM-15 today-ring — glowing dot above the today cell (static on native)
|
|
393
|
+
pulse: {
|
|
394
|
+
position: 'absolute',
|
|
395
|
+
top: -10,
|
|
396
|
+
width: 5,
|
|
397
|
+
height: 5,
|
|
398
|
+
borderRadius: 2.5,
|
|
399
|
+
backgroundColor: colors.mint,
|
|
400
|
+
shadowColor: colors.mint,
|
|
401
|
+
shadowOpacity: 0.9,
|
|
402
|
+
shadowRadius: 6,
|
|
403
|
+
shadowOffset: { width: 0, height: 0 },
|
|
404
|
+
elevation: 4,
|
|
405
|
+
},
|
|
406
|
+
// in-cell label (grid variant) — small mono day number
|
|
407
|
+
label: {
|
|
408
|
+
fontFamily: fonts.mono,
|
|
409
|
+
fontSize: 10,
|
|
410
|
+
lineHeight: 12,
|
|
411
|
+
fontWeight: '600',
|
|
412
|
+
color: 'rgba(255, 255, 255, 0.75)',
|
|
413
|
+
},
|
|
414
|
+
// HM-04 month-cal — tiny numeral pinned to the cell's top-left corner
|
|
415
|
+
labelCorner: {
|
|
416
|
+
position: 'absolute',
|
|
417
|
+
top: 2,
|
|
418
|
+
left: 3,
|
|
419
|
+
fontSize: 8,
|
|
420
|
+
lineHeight: 9,
|
|
421
|
+
fontWeight: '500',
|
|
422
|
+
color: 'rgba(255, 255, 255, 0.55)',
|
|
423
|
+
},
|
|
424
|
+
// dark text on hot cells (scale modes, t > 0.55)
|
|
425
|
+
labelDark: {
|
|
426
|
+
color: colors.void,
|
|
427
|
+
},
|
|
428
|
+
frameRow: {
|
|
429
|
+
flexDirection: 'row',
|
|
430
|
+
alignItems: 'flex-start',
|
|
431
|
+
},
|
|
432
|
+
rowLabels: {
|
|
433
|
+
width: ROW_LABELS_W,
|
|
434
|
+
paddingRight: 6,
|
|
435
|
+
},
|
|
436
|
+
rowLabelSlot: {
|
|
437
|
+
alignItems: 'flex-end',
|
|
438
|
+
justifyContent: 'center',
|
|
439
|
+
},
|
|
440
|
+
axisRow: {
|
|
441
|
+
position: 'relative',
|
|
442
|
+
height: 14,
|
|
443
|
+
},
|
|
444
|
+
axisText: {
|
|
445
|
+
fontFamily: fonts.mono,
|
|
446
|
+
fontSize: 9,
|
|
447
|
+
letterSpacing: 0.5,
|
|
448
|
+
color: colors.textFaint,
|
|
449
|
+
width: 40,
|
|
450
|
+
textAlign: 'center',
|
|
451
|
+
},
|
|
452
|
+
rowLabelText: {
|
|
453
|
+
fontFamily: fonts.mono,
|
|
454
|
+
fontSize: 9,
|
|
455
|
+
letterSpacing: 0.5,
|
|
456
|
+
color: colors.textFaint,
|
|
457
|
+
textAlign: 'right',
|
|
458
|
+
},
|
|
459
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Text, type TextProps, type TextStyle } from 'react-native';
|
|
2
|
+
import { colors } from '@lockin90/tokens';
|
|
3
|
+
|
|
4
|
+
export type HighlightTone = 'accent' | 'mint' | 'warm' | 'low';
|
|
5
|
+
|
|
6
|
+
export interface HighlightProps extends TextProps {
|
|
7
|
+
/** signal color for the emphasized keyword */
|
|
8
|
+
tone?: HighlightTone;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** color + faint tinted background per tone — mirrors web .lk-hl* exactly.
|
|
12
|
+
* Accent text uses the design's softened violet (#cbbcff), not a raw token,
|
|
13
|
+
* so web and native render the identical color. */
|
|
14
|
+
const TONE: Record<HighlightTone, { color: string; backgroundColor: string }> = {
|
|
15
|
+
accent: { color: '#cbbcff', backgroundColor: 'rgba(124,92,255,0.10)' },
|
|
16
|
+
mint: { color: colors.zoneHigh, backgroundColor: 'rgba(52,245,197,0.10)' },
|
|
17
|
+
warm: { color: colors.zoneMid, backgroundColor: 'rgba(255,176,32,0.10)' },
|
|
18
|
+
low: { color: colors.zoneLow, backgroundColor: 'rgba(255,77,109,0.10)' },
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** Inline tone-colored text emphasis for AI-summary / insight prose.
|
|
22
|
+
* A bare <Text> so it flows inline when nested inside a parent <Text>:
|
|
23
|
+
* colored bold keyword on a faint tinted background. */
|
|
24
|
+
export function Highlight({ tone = 'accent', style, ...rest }: HighlightProps) {
|
|
25
|
+
const t = TONE[tone];
|
|
26
|
+
// padding + radius mirror web `.lk-hl { padding: 0 5px; border-radius: 5px }`
|
|
27
|
+
// so the tinted background reads as a pill (applies when not nested in <Text>).
|
|
28
|
+
const base: TextStyle = {
|
|
29
|
+
color: t.color,
|
|
30
|
+
backgroundColor: t.backgroundColor,
|
|
31
|
+
fontWeight: '600',
|
|
32
|
+
paddingHorizontal: 5,
|
|
33
|
+
borderRadius: 5,
|
|
34
|
+
};
|
|
35
|
+
return <Text {...rest} style={[base, style]} />;
|
|
36
|
+
}
|