@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,325 @@
|
|
|
1
|
+
import { useRef, useState } from 'react';
|
|
2
|
+
import {
|
|
3
|
+
View,
|
|
4
|
+
Text,
|
|
5
|
+
TextInput,
|
|
6
|
+
Pressable,
|
|
7
|
+
StyleSheet,
|
|
8
|
+
type NativeSyntheticEvent,
|
|
9
|
+
type TextInputKeyPressEventData,
|
|
10
|
+
type ViewProps,
|
|
11
|
+
} from 'react-native';
|
|
12
|
+
import Svg, { Path } from 'react-native-svg';
|
|
13
|
+
import { colors, radii, fonts } from '@lockin90/tokens';
|
|
14
|
+
|
|
15
|
+
/* ============================================================================
|
|
16
|
+
TagInput — CMS-style multi-value tag entry. A glassy field shell flex-wraps
|
|
17
|
+
the current tags as small removable mono pills, followed by a borderless
|
|
18
|
+
TextInput. onSubmitEditing adds the typed value; Backspace on the empty
|
|
19
|
+
input removes the last tag. Mirrors the web `@lockin90/ui` TagInput.
|
|
20
|
+
========================================================================== */
|
|
21
|
+
|
|
22
|
+
export interface TagInputProps extends ViewProps {
|
|
23
|
+
/** current tags (seeds internal state) */
|
|
24
|
+
tags?: string[];
|
|
25
|
+
/** called with the full tag list whenever it changes */
|
|
26
|
+
onChange?: (tags: string[]) => void;
|
|
27
|
+
/** placeholder for the text input */
|
|
28
|
+
placeholder?: string;
|
|
29
|
+
/** error state — red border + glow (e.g. a duplicate / invalid tag) */
|
|
30
|
+
invalid?: boolean;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** Cross/× glyph used to remove a tag. */
|
|
34
|
+
function RemoveIcon({ color }: { color: string }) {
|
|
35
|
+
return (
|
|
36
|
+
<Svg width={10} height={10} viewBox="0 0 24 24" fill="none" stroke={color} strokeWidth={2}>
|
|
37
|
+
<Path d="M6 6l12 12M18 6 6 18" />
|
|
38
|
+
</Svg>
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** Multi-value tag entry — removable mono pills + borderless input. */
|
|
43
|
+
export function TagInput({
|
|
44
|
+
tags: tagsProp = ['sleep', 'recovery'],
|
|
45
|
+
onChange,
|
|
46
|
+
placeholder = 'Add a tag…',
|
|
47
|
+
invalid = false,
|
|
48
|
+
style,
|
|
49
|
+
...rest
|
|
50
|
+
}: TagInputProps) {
|
|
51
|
+
const [tags, setTags] = useState<string[]>(tagsProp);
|
|
52
|
+
const [draft, setDraft] = useState('');
|
|
53
|
+
|
|
54
|
+
const commit = (next: string[]) => {
|
|
55
|
+
setTags(next);
|
|
56
|
+
onChange?.(next);
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
const addTag = (raw: string) => {
|
|
60
|
+
const value = raw.trim();
|
|
61
|
+
if (!value || tags.includes(value)) {
|
|
62
|
+
setDraft('');
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
commit([...tags, value]);
|
|
66
|
+
setDraft('');
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const removeAt = (index: number) => {
|
|
70
|
+
commit(tags.filter((_, i) => i !== index));
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const onKeyPress = (e: NativeSyntheticEvent<TextInputKeyPressEventData>) => {
|
|
74
|
+
if (e.nativeEvent.key === 'Backspace' && draft === '' && tags.length > 0) {
|
|
75
|
+
removeAt(tags.length - 1);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
return (
|
|
80
|
+
<View style={[styles.taginput, invalid && styles.taginputInvalid, style]} {...rest}>
|
|
81
|
+
{tags.map((tag, i) => (
|
|
82
|
+
<View key={`${tag}-${i}`} style={styles.tag}>
|
|
83
|
+
<Text style={styles.tagText}>{tag}</Text>
|
|
84
|
+
<Pressable
|
|
85
|
+
accessibilityRole="button"
|
|
86
|
+
accessibilityLabel={`Remove ${tag}`}
|
|
87
|
+
onPress={() => removeAt(i)}
|
|
88
|
+
style={styles.tagX}
|
|
89
|
+
hitSlop={6}
|
|
90
|
+
>
|
|
91
|
+
<RemoveIcon color={colors.accent2} />
|
|
92
|
+
</Pressable>
|
|
93
|
+
</View>
|
|
94
|
+
))}
|
|
95
|
+
<TextInput
|
|
96
|
+
style={styles.input}
|
|
97
|
+
value={draft}
|
|
98
|
+
placeholder={placeholder}
|
|
99
|
+
placeholderTextColor={colors.textFaint}
|
|
100
|
+
accessibilityLabel={placeholder}
|
|
101
|
+
onChangeText={setDraft}
|
|
102
|
+
onSubmitEditing={() => addTag(draft)}
|
|
103
|
+
onKeyPress={onKeyPress}
|
|
104
|
+
blurOnSubmit={false}
|
|
105
|
+
returnKeyType="done"
|
|
106
|
+
autoCapitalize="none"
|
|
107
|
+
autoCorrect={false}
|
|
108
|
+
/>
|
|
109
|
+
</View>
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* ============================================================================
|
|
114
|
+
CodeInput — segmented OTP / verification-code entry. A row of single-char
|
|
115
|
+
boxes (mono, centered). Typing advances focus; Backspace moves back. Focused
|
|
116
|
+
box gets an accent border; a filled box gets a cyan tint. Mirrors the web
|
|
117
|
+
`@lockin90/ui` CodeInput.
|
|
118
|
+
========================================================================== */
|
|
119
|
+
|
|
120
|
+
export interface CodeInputProps extends ViewProps {
|
|
121
|
+
/** number of code boxes */
|
|
122
|
+
length?: number;
|
|
123
|
+
/** controlled code value */
|
|
124
|
+
value?: string;
|
|
125
|
+
/** called with the joined code whenever it changes */
|
|
126
|
+
onChange?: (code: string) => void;
|
|
127
|
+
/** error state — red border + tint (e.g. wrong code) */
|
|
128
|
+
error?: boolean;
|
|
129
|
+
/** Web-parity alias of `error` — the web `CodeInput` names this `invalid`, so
|
|
130
|
+
* the same prop works on both platforms. Either prop turns the boxes red. */
|
|
131
|
+
invalid?: boolean;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/** Spread a multi-char entry (paste / iOS SMS autofill delivered into one box)
|
|
135
|
+
* across the code boxes from `index` on: chars past the last box are dropped,
|
|
136
|
+
* and focus lands after the last written char (clamped to the last box).
|
|
137
|
+
* (Pure — extracted from `onBoxChange` so the paste math is unit-testable.) */
|
|
138
|
+
export function spreadCodeAcrossBoxes(
|
|
139
|
+
chars: readonly string[],
|
|
140
|
+
index: number,
|
|
141
|
+
digits: string,
|
|
142
|
+
length: number,
|
|
143
|
+
): { code: string; focusIndex: number } {
|
|
144
|
+
const next = chars.slice();
|
|
145
|
+
for (let i = 0; i < digits.length && index + i < length; i++) {
|
|
146
|
+
next[index + i] = digits[i];
|
|
147
|
+
}
|
|
148
|
+
return { code: next.join(''), focusIndex: Math.min(index + digits.length, length - 1) };
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/** Segmented N-digit verification code — auto-advance + backspace. */
|
|
152
|
+
export function CodeInput({ length = 6, value = '', onChange, error = false, invalid = false, style, ...rest }: CodeInputProps) {
|
|
153
|
+
const isInvalid = invalid || error;
|
|
154
|
+
const [code, setCode] = useState<string>(value.slice(0, length));
|
|
155
|
+
const [focused, setFocused] = useState<number | null>(null);
|
|
156
|
+
const refs = useRef<Array<TextInput | null>>([]);
|
|
157
|
+
|
|
158
|
+
const chars = Array.from({ length }, (_, i) => code[i] ?? '');
|
|
159
|
+
|
|
160
|
+
const commit = (next: string) => {
|
|
161
|
+
const clamped = next.slice(0, length);
|
|
162
|
+
setCode(clamped);
|
|
163
|
+
onChange?.(clamped);
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
const focusBox = (index: number) => {
|
|
167
|
+
refs.current[Math.max(0, Math.min(length - 1, index))]?.focus();
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
const onBoxChange = (index: number, raw: string) => {
|
|
171
|
+
// Paste or iOS SMS autofill can deliver the whole code into one box — spread
|
|
172
|
+
// it across the remaining boxes from here (mirrors the web `onPaste`).
|
|
173
|
+
const digits = raw.replace(/\s/g, '');
|
|
174
|
+
if (digits.length > 1) {
|
|
175
|
+
const spread = spreadCodeAcrossBoxes(chars, index, digits, length);
|
|
176
|
+
commit(spread.code);
|
|
177
|
+
focusBox(spread.focusIndex);
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
const ch = digits.slice(-1);
|
|
181
|
+
const next = chars.slice();
|
|
182
|
+
next[index] = ch;
|
|
183
|
+
commit(next.join(''));
|
|
184
|
+
if (ch) focusBox(index + 1);
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
const onKeyPress = (index: number, e: NativeSyntheticEvent<TextInputKeyPressEventData>) => {
|
|
188
|
+
if (e.nativeEvent.key !== 'Backspace') return;
|
|
189
|
+
if (chars[index]) {
|
|
190
|
+
const next = chars.slice();
|
|
191
|
+
next[index] = '';
|
|
192
|
+
commit(next.join(''));
|
|
193
|
+
} else if (index > 0) {
|
|
194
|
+
const next = chars.slice();
|
|
195
|
+
next[index - 1] = '';
|
|
196
|
+
commit(next.join(''));
|
|
197
|
+
focusBox(index - 1);
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
return (
|
|
202
|
+
<View style={[styles.code, style]} {...rest}>
|
|
203
|
+
{chars.map((ch, i) => {
|
|
204
|
+
const filled = !!ch;
|
|
205
|
+
const isFocused = focused === i;
|
|
206
|
+
const borderColor = isFocused
|
|
207
|
+
? colors.accent
|
|
208
|
+
: isInvalid
|
|
209
|
+
? colors.zoneLow
|
|
210
|
+
: filled
|
|
211
|
+
? 'rgba(34,211,238,0.45)'
|
|
212
|
+
: colors.border2;
|
|
213
|
+
const backgroundColor = isFocused
|
|
214
|
+
? 'rgba(124,92,255,0.06)'
|
|
215
|
+
: isInvalid
|
|
216
|
+
? 'rgba(255,77,109,0.06)'
|
|
217
|
+
: filled
|
|
218
|
+
? 'rgba(34,211,238,0.05)'
|
|
219
|
+
: colors.glass2;
|
|
220
|
+
return (
|
|
221
|
+
<TextInput
|
|
222
|
+
key={i}
|
|
223
|
+
ref={(el) => {
|
|
224
|
+
refs.current[i] = el;
|
|
225
|
+
}}
|
|
226
|
+
style={[styles.codeBox, { borderColor, backgroundColor }]}
|
|
227
|
+
keyboardType="number-pad"
|
|
228
|
+
textContentType={i === 0 ? 'oneTimeCode' : 'none'}
|
|
229
|
+
// box 0 accepts the full code so paste / iOS SMS autofill lands and
|
|
230
|
+
// spreads across boxes; the rest stay single-char for clean typing.
|
|
231
|
+
maxLength={i === 0 ? length : 1}
|
|
232
|
+
value={ch}
|
|
233
|
+
accessibilityLabel={`Digit ${i + 1}`}
|
|
234
|
+
selectionColor={colors.accent}
|
|
235
|
+
onChangeText={(t) => onBoxChange(i, t)}
|
|
236
|
+
onKeyPress={(e) => onKeyPress(i, e)}
|
|
237
|
+
onFocus={() => setFocused(i)}
|
|
238
|
+
onBlur={() => setFocused((cur) => (cur === i ? null : cur))}
|
|
239
|
+
/>
|
|
240
|
+
);
|
|
241
|
+
})}
|
|
242
|
+
</View>
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
const styles = StyleSheet.create({
|
|
247
|
+
/* ---- TagInput ---- */
|
|
248
|
+
taginput: {
|
|
249
|
+
flexDirection: 'row',
|
|
250
|
+
flexWrap: 'wrap',
|
|
251
|
+
alignItems: 'center',
|
|
252
|
+
gap: 7,
|
|
253
|
+
padding: 8,
|
|
254
|
+
borderRadius: radii.sm,
|
|
255
|
+
borderWidth: 1,
|
|
256
|
+
borderColor: colors.border2,
|
|
257
|
+
backgroundColor: colors.glass2,
|
|
258
|
+
},
|
|
259
|
+
// invalid: red border + soft red glow standing in for the web's 3px ring
|
|
260
|
+
// (`.lk-taginput--invalid`: border var(--bad) + 0 0 0 3px rgba(255,77,109,.16))
|
|
261
|
+
taginputInvalid: {
|
|
262
|
+
borderColor: colors.zoneLow,
|
|
263
|
+
shadowColor: colors.zoneLow,
|
|
264
|
+
shadowOpacity: 0.16,
|
|
265
|
+
shadowRadius: 3,
|
|
266
|
+
shadowOffset: { width: 0, height: 0 },
|
|
267
|
+
elevation: 2,
|
|
268
|
+
},
|
|
269
|
+
tag: {
|
|
270
|
+
flexDirection: 'row',
|
|
271
|
+
alignItems: 'center',
|
|
272
|
+
gap: 6,
|
|
273
|
+
paddingTop: 3,
|
|
274
|
+
paddingBottom: 3,
|
|
275
|
+
paddingLeft: 9,
|
|
276
|
+
paddingRight: 6,
|
|
277
|
+
borderRadius: radii.pill,
|
|
278
|
+
borderWidth: 1,
|
|
279
|
+
borderColor: 'rgba(34,211,238,0.3)',
|
|
280
|
+
backgroundColor: 'rgba(34,211,238,0.1)',
|
|
281
|
+
},
|
|
282
|
+
tagText: {
|
|
283
|
+
color: colors.accent2,
|
|
284
|
+
fontFamily: fonts.mono,
|
|
285
|
+
fontSize: 10.5,
|
|
286
|
+
lineHeight: 15,
|
|
287
|
+
},
|
|
288
|
+
tagX: {
|
|
289
|
+
alignItems: 'center',
|
|
290
|
+
justifyContent: 'center',
|
|
291
|
+
opacity: 0.7,
|
|
292
|
+
},
|
|
293
|
+
input: {
|
|
294
|
+
flexGrow: 1,
|
|
295
|
+
flexShrink: 1,
|
|
296
|
+
minWidth: 90,
|
|
297
|
+
paddingVertical: 3,
|
|
298
|
+
paddingHorizontal: 2,
|
|
299
|
+
color: colors.text,
|
|
300
|
+
fontFamily: fonts.ui,
|
|
301
|
+
fontSize: 12,
|
|
302
|
+
},
|
|
303
|
+
/* ---- CodeInput ---- */
|
|
304
|
+
code: {
|
|
305
|
+
flexDirection: 'row',
|
|
306
|
+
justifyContent: 'space-between',
|
|
307
|
+
gap: 10,
|
|
308
|
+
},
|
|
309
|
+
codeBox: {
|
|
310
|
+
width: 44,
|
|
311
|
+
height: 52,
|
|
312
|
+
textAlign: 'center',
|
|
313
|
+
// vertical-center the digit: textAlignVertical (Android) + includeFontPadding:false
|
|
314
|
+
// (drops Android's extra font padding that pushes the glyph up).
|
|
315
|
+
textAlignVertical: 'center',
|
|
316
|
+
includeFontPadding: false,
|
|
317
|
+
fontFamily: fonts.mono,
|
|
318
|
+
fontWeight: '700',
|
|
319
|
+
fontSize: 22,
|
|
320
|
+
color: colors.text,
|
|
321
|
+
borderWidth: 1,
|
|
322
|
+
borderRadius: radii.sm,
|
|
323
|
+
padding: 0,
|
|
324
|
+
},
|
|
325
|
+
});
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { View, Text, Pressable, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import { colors, fonts, radii } from '@lockin90/tokens';
|
|
4
|
+
import { hapticSelection } from '../internal/optionalHaptics';
|
|
5
|
+
|
|
6
|
+
/** Who authored the template — coach/AI show a tinted source pill. */
|
|
7
|
+
export type TemplateSource = 'coach' | 'ai' | 'manual';
|
|
8
|
+
|
|
9
|
+
export interface TemplateCardProps {
|
|
10
|
+
/** Template name (display font). */
|
|
11
|
+
name: string;
|
|
12
|
+
/** Dim summary line (e.g. `'Chest · Arms · 5 ex · ~48m'`). */
|
|
13
|
+
meta?: string;
|
|
14
|
+
/** Bold emphasized fragment appended to the meta line after a `' · '`
|
|
15
|
+
* separator (e.g. the exercise count `'5 ex'` — design `.tpl .mt b`,
|
|
16
|
+
* reads slightly brighter than the rest of the meta line). */
|
|
17
|
+
metaCount?: string;
|
|
18
|
+
/** Faint mono footer (e.g. `'Last used 2d ago'`). */
|
|
19
|
+
lastUsed?: string;
|
|
20
|
+
/** Authoring source — `coach` mint pill · `ai` violet pill · `manual` none (default). */
|
|
21
|
+
source?: TemplateSource;
|
|
22
|
+
/** Accent color for the left edge bar (any token, e.g. `colors.cyan`) — the
|
|
23
|
+
* edge bar renders only when `leading` is absent (see `leading`). */
|
|
24
|
+
tint?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Leading 34×34 tinted icon tile (design `.tpl .ti.tile` — the row's
|
|
27
|
+
* primary identifier, e.g. `<Icon name={workoutTypeIcon(type)} />`).
|
|
28
|
+
* Colored from `tint` (13%-fill / 33%-border, the app's tile convention).
|
|
29
|
+
* When set, this REPLACES the plain `tint` edge bar (the mockup never
|
|
30
|
+
* shows both together).
|
|
31
|
+
*/
|
|
32
|
+
leading?: ReactNode;
|
|
33
|
+
/** When set, the card becomes a `Pressable` (mirrors the web `onPress`). */
|
|
34
|
+
onPress?: () => void;
|
|
35
|
+
/** Trailing slot pinned right (chevron, menu, duration…). */
|
|
36
|
+
trailing?: ReactNode;
|
|
37
|
+
style?: StyleProp<ViewStyle>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const SOURCE_PILL: Record<Exclude<TemplateSource, 'manual'>, { label: string; color: string; border: string; bg: string }> = {
|
|
41
|
+
coach: { label: 'COACH', color: colors.mint, border: 'rgba(52,245,197,0.32)', bg: 'rgba(52,245,197,0.10)' },
|
|
42
|
+
ai: { label: 'AI', color: colors.accent, border: 'rgba(124,92,255,0.4)', bg: 'rgba(124,92,255,0.12)' },
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* TemplateCard — a workout-template row card. Native twin of the web
|
|
47
|
+
* `TemplateCard` (same prop API): glass surface, display-font name, dim meta
|
|
48
|
+
* line, faint mono "last used", a small mint `Coach` / violet `AI` source
|
|
49
|
+
* pill when the template wasn't hand-built, and a `tint` accent bar down the
|
|
50
|
+
* left edge. With `onPress` the whole card is the tap target.
|
|
51
|
+
*/
|
|
52
|
+
export function TemplateCard({
|
|
53
|
+
name,
|
|
54
|
+
meta,
|
|
55
|
+
metaCount,
|
|
56
|
+
lastUsed,
|
|
57
|
+
source = 'manual',
|
|
58
|
+
tint,
|
|
59
|
+
leading,
|
|
60
|
+
onPress,
|
|
61
|
+
trailing,
|
|
62
|
+
style,
|
|
63
|
+
}: TemplateCardProps) {
|
|
64
|
+
const pill = source !== 'manual' ? SOURCE_PILL[source] : null;
|
|
65
|
+
|
|
66
|
+
const body = (
|
|
67
|
+
<>
|
|
68
|
+
{leading == null && tint ? <View style={[styles.tint, { backgroundColor: tint }]} /> : null}
|
|
69
|
+
{leading != null ? (
|
|
70
|
+
<View
|
|
71
|
+
style={[
|
|
72
|
+
styles.leadTile,
|
|
73
|
+
tint
|
|
74
|
+
? { backgroundColor: `${tint}1F`, borderColor: `${tint}52` }
|
|
75
|
+
: { backgroundColor: colors.glass, borderColor: colors.border },
|
|
76
|
+
]}
|
|
77
|
+
>
|
|
78
|
+
{leading}
|
|
79
|
+
</View>
|
|
80
|
+
) : null}
|
|
81
|
+
<View style={styles.main}>
|
|
82
|
+
<View style={styles.top}>
|
|
83
|
+
<Text style={styles.name} numberOfLines={1}>
|
|
84
|
+
{name}
|
|
85
|
+
</Text>
|
|
86
|
+
{pill ? (
|
|
87
|
+
<View style={[styles.src, { borderColor: pill.border, backgroundColor: pill.bg }]}>
|
|
88
|
+
<Text style={[styles.srcText, { color: pill.color }]}>{pill.label}</Text>
|
|
89
|
+
</View>
|
|
90
|
+
) : null}
|
|
91
|
+
</View>
|
|
92
|
+
{(meta != null || metaCount != null) && (
|
|
93
|
+
<Text style={styles.meta}>
|
|
94
|
+
{meta}
|
|
95
|
+
{meta != null && metaCount != null ? ' · ' : null}
|
|
96
|
+
{metaCount != null ? <Text style={styles.metaCount}>{metaCount}</Text> : null}
|
|
97
|
+
</Text>
|
|
98
|
+
)}
|
|
99
|
+
{lastUsed != null && <Text style={styles.last}>{lastUsed}</Text>}
|
|
100
|
+
</View>
|
|
101
|
+
{trailing != null && <View style={styles.trailing}>{trailing}</View>}
|
|
102
|
+
</>
|
|
103
|
+
);
|
|
104
|
+
|
|
105
|
+
if (onPress) {
|
|
106
|
+
return (
|
|
107
|
+
<Pressable
|
|
108
|
+
accessibilityRole="button"
|
|
109
|
+
onPress={() => {
|
|
110
|
+
hapticSelection();
|
|
111
|
+
onPress();
|
|
112
|
+
}}
|
|
113
|
+
style={({ pressed }) => [styles.card, pressed && styles.pressed, style]}
|
|
114
|
+
>
|
|
115
|
+
{body}
|
|
116
|
+
</Pressable>
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
return <View style={[styles.card, style]}>{body}</View>;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
const styles = StyleSheet.create({
|
|
123
|
+
card: {
|
|
124
|
+
position: 'relative',
|
|
125
|
+
flexDirection: 'row',
|
|
126
|
+
alignItems: 'center',
|
|
127
|
+
gap: 12,
|
|
128
|
+
paddingVertical: 13,
|
|
129
|
+
paddingHorizontal: 15,
|
|
130
|
+
borderRadius: radii.md,
|
|
131
|
+
borderWidth: 1,
|
|
132
|
+
borderColor: colors.border,
|
|
133
|
+
backgroundColor: colors.glass,
|
|
134
|
+
overflow: 'hidden',
|
|
135
|
+
},
|
|
136
|
+
pressed: { backgroundColor: colors.glass2, borderColor: colors.border2 },
|
|
137
|
+
tint: {
|
|
138
|
+
position: 'absolute',
|
|
139
|
+
left: 0,
|
|
140
|
+
top: 10,
|
|
141
|
+
bottom: 10,
|
|
142
|
+
width: 3,
|
|
143
|
+
borderTopRightRadius: 3,
|
|
144
|
+
borderBottomRightRadius: 3,
|
|
145
|
+
},
|
|
146
|
+
// leading icon tile (design `.tpl .ti.tile`) — 34×34, tint-colored fill/border
|
|
147
|
+
leadTile: {
|
|
148
|
+
width: 34,
|
|
149
|
+
height: 34,
|
|
150
|
+
borderRadius: 10,
|
|
151
|
+
borderWidth: 1,
|
|
152
|
+
flexShrink: 0,
|
|
153
|
+
alignItems: 'center',
|
|
154
|
+
justifyContent: 'center',
|
|
155
|
+
},
|
|
156
|
+
main: { flex: 1, minWidth: 0, gap: 3 },
|
|
157
|
+
top: { flexDirection: 'row', alignItems: 'center', gap: 8 },
|
|
158
|
+
name: {
|
|
159
|
+
flexShrink: 1,
|
|
160
|
+
fontFamily: fonts.display,
|
|
161
|
+
fontWeight: '700',
|
|
162
|
+
fontSize: 15,
|
|
163
|
+
letterSpacing: -0.15,
|
|
164
|
+
color: colors.text,
|
|
165
|
+
},
|
|
166
|
+
meta: { fontSize: 12, color: colors.textDim },
|
|
167
|
+
// design `.tpl .mt b` — the bold count fragment reads one step brighter
|
|
168
|
+
// than the dim meta line (mirrors the design's faint→dim relationship).
|
|
169
|
+
metaCount: { color: colors.text, fontWeight: '700' },
|
|
170
|
+
last: { fontFamily: fonts.mono, fontSize: 10.5, color: colors.textFaint, marginTop: 1 },
|
|
171
|
+
trailing: { flexShrink: 0, flexDirection: 'row', alignItems: 'center' },
|
|
172
|
+
|
|
173
|
+
src: {
|
|
174
|
+
flexShrink: 0,
|
|
175
|
+
paddingVertical: 3,
|
|
176
|
+
paddingHorizontal: 7,
|
|
177
|
+
borderRadius: radii.pill,
|
|
178
|
+
borderWidth: 1,
|
|
179
|
+
},
|
|
180
|
+
srcText: { fontFamily: fonts.mono, fontSize: 8.5, fontWeight: '600', letterSpacing: 0.7, lineHeight: 9 },
|
|
181
|
+
});
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { View, Text, StyleSheet, type ViewProps } from 'react-native';
|
|
3
|
+
import Svg, { Path } from 'react-native-svg';
|
|
4
|
+
import { LinearGradient } from 'expo-linear-gradient';
|
|
5
|
+
import { colors, fonts, gradients, nativeShadows } from '@lockin90/tokens';
|
|
6
|
+
import { Chip } from './Chip';
|
|
7
|
+
import { Pulse } from './Pulse';
|
|
8
|
+
|
|
9
|
+
export type TimelineStatus = 'done' | 'now' | 'next';
|
|
10
|
+
|
|
11
|
+
export interface TimelineItem {
|
|
12
|
+
title: string;
|
|
13
|
+
/** Optional time/date label, e.g. "Today", "In 2 months", "Q3 2026". */
|
|
14
|
+
date?: string;
|
|
15
|
+
description?: ReactNode;
|
|
16
|
+
status?: TimelineStatus;
|
|
17
|
+
statusLabel?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface TimelineProps extends ViewProps {
|
|
21
|
+
items?: TimelineItem[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const CHIP_TONE = { done: 'high', now: 'accent', next: 'mid' } as const;
|
|
25
|
+
const DEFAULT_LABEL = { done: 'Done', now: 'In progress', next: 'Next' } as const;
|
|
26
|
+
|
|
27
|
+
const DEFAULT_ITEMS: TimelineItem[] = [
|
|
28
|
+
{ status: 'done', title: 'Model calibrated', date: 'Shipped', description: 'Energy & recovery model trained and validated against real wearable data.' },
|
|
29
|
+
{ status: 'done', title: 'Wearables connected', date: 'Shipped', description: 'Oura, WHOOP, Apple Health and Garmin sync built end-to-end.' },
|
|
30
|
+
{ status: 'now', title: 'Closed beta', date: 'Today', description: 'Polishing the experience with founding athletes right now.' },
|
|
31
|
+
{ status: 'next', title: 'Public launch', date: 'In 2 months', description: 'Doors open to the waitlist first.' },
|
|
32
|
+
];
|
|
33
|
+
|
|
34
|
+
function Dot({ status }: { status: TimelineStatus }) {
|
|
35
|
+
if (status === 'done') {
|
|
36
|
+
return (
|
|
37
|
+
<LinearGradient
|
|
38
|
+
colors={gradients.mint.stops as unknown as [string, string]}
|
|
39
|
+
start={{ x: 0, y: 0 }}
|
|
40
|
+
end={{ x: 1, y: 1 }}
|
|
41
|
+
style={[styles.dot, styles.dotDone]}
|
|
42
|
+
>
|
|
43
|
+
<Svg width={13} height={13} viewBox="0 0 24 24" fill="none" stroke="#0A0A12" strokeWidth={3} strokeLinecap="round" strokeLinejoin="round">
|
|
44
|
+
<Path d="M20 6 9 17l-5-5" />
|
|
45
|
+
</Svg>
|
|
46
|
+
</LinearGradient>
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
if (status === 'now') {
|
|
50
|
+
return (
|
|
51
|
+
<View style={[styles.dot, styles.dotNow]}>
|
|
52
|
+
<Pulse />
|
|
53
|
+
</View>
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
return <View style={[styles.dot, styles.dotNext]} />;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** Vertical milestone timeline — done → now → next, each with a time/date label
|
|
60
|
+
* and a status chip. Native twin of the web Timeline (the "coming soon" component). */
|
|
61
|
+
export function Timeline({ items = DEFAULT_ITEMS, style, ...rest }: TimelineProps) {
|
|
62
|
+
return (
|
|
63
|
+
<View style={style} {...rest}>
|
|
64
|
+
{items.map((it, i) => {
|
|
65
|
+
const status = it.status ?? 'next';
|
|
66
|
+
const last = i === items.length - 1;
|
|
67
|
+
return (
|
|
68
|
+
<View key={i} style={[styles.item, last && styles.itemLast]}>
|
|
69
|
+
<View style={styles.gutter}>
|
|
70
|
+
{/* connecting line: absolutely positioned in the gutter so it
|
|
71
|
+
always spans from just below this dot down to the next dot,
|
|
72
|
+
independent of the dot's intrinsic height (web .lk-tl-item::before) */}
|
|
73
|
+
{!last ? (
|
|
74
|
+
<View style={[styles.line, status === 'done' && styles.lineDone]} />
|
|
75
|
+
) : null}
|
|
76
|
+
<Dot status={status} />
|
|
77
|
+
</View>
|
|
78
|
+
<View style={[styles.body, status === 'next' && styles.bodyNext]}>
|
|
79
|
+
<View style={styles.top}>
|
|
80
|
+
<Text style={styles.title}>{it.title}</Text>
|
|
81
|
+
{it.date ? <Text style={styles.date}>{it.date.toUpperCase()}</Text> : null}
|
|
82
|
+
<Chip tone={CHIP_TONE[status]} dot label={it.statusLabel ?? DEFAULT_LABEL[status]} />
|
|
83
|
+
</View>
|
|
84
|
+
{it.description ? <Text style={styles.desc}>{it.description}</Text> : null}
|
|
85
|
+
</View>
|
|
86
|
+
</View>
|
|
87
|
+
);
|
|
88
|
+
})}
|
|
89
|
+
</View>
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** Dot diameter and the vertical gap between consecutive items — the connecting
|
|
94
|
+
* line spans from just below one dot (top: DOT_SIZE) to the next (bottom: -GAP). */
|
|
95
|
+
const DOT_SIZE = 28;
|
|
96
|
+
const GAP = 22;
|
|
97
|
+
|
|
98
|
+
const styles = StyleSheet.create({
|
|
99
|
+
item: { flexDirection: 'row', paddingBottom: GAP },
|
|
100
|
+
itemLast: { paddingBottom: 0 },
|
|
101
|
+
gutter: { width: 28, alignItems: 'center' },
|
|
102
|
+
dot: {
|
|
103
|
+
width: 28,
|
|
104
|
+
height: 28,
|
|
105
|
+
borderRadius: 14,
|
|
106
|
+
alignItems: 'center',
|
|
107
|
+
justifyContent: 'center',
|
|
108
|
+
borderWidth: 1,
|
|
109
|
+
borderColor: colors.border2,
|
|
110
|
+
backgroundColor: colors.glass2,
|
|
111
|
+
},
|
|
112
|
+
dotDone: { borderColor: 'transparent', ...nativeShadows.glowMint },
|
|
113
|
+
dotNow: { backgroundColor: 'rgba(124,92,255,0.14)', borderColor: 'rgba(124,92,255,0.5)' },
|
|
114
|
+
dotNext: { backgroundColor: 'rgba(255,176,32,0.12)', borderColor: 'rgba(255,176,32,0.4)' },
|
|
115
|
+
// Runs from just below this dot (top: DOT_SIZE) down through the row gap to
|
|
116
|
+
// the next dot (bottom: -GAP), centered under the 28px dot (left = 13).
|
|
117
|
+
line: {
|
|
118
|
+
position: 'absolute',
|
|
119
|
+
top: DOT_SIZE,
|
|
120
|
+
bottom: -GAP,
|
|
121
|
+
left: 13,
|
|
122
|
+
width: 2,
|
|
123
|
+
backgroundColor: colors.border2,
|
|
124
|
+
},
|
|
125
|
+
lineDone: { backgroundColor: colors.mint },
|
|
126
|
+
body: { flex: 1, paddingLeft: 16, paddingTop: 1 },
|
|
127
|
+
bodyNext: { opacity: 0.82 },
|
|
128
|
+
top: { flexDirection: 'row', alignItems: 'center', gap: 10, flexWrap: 'wrap', marginBottom: 5 },
|
|
129
|
+
title: { fontFamily: fonts.display, fontSize: 16, fontWeight: '600', color: colors.text },
|
|
130
|
+
date: { fontFamily: fonts.mono, fontSize: 11, letterSpacing: 0.7, color: colors.textFaint },
|
|
131
|
+
desc: { color: colors.textDim, fontSize: 13.5, lineHeight: 21, marginTop: 4 },
|
|
132
|
+
});
|