@lockin90/ui-native 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Accordion.js +144 -0
- package/lib/commonjs/components/Accordion.js.map +1 -0
- package/lib/commonjs/components/AchievementBadge.js +225 -0
- package/lib/commonjs/components/AchievementBadge.js.map +1 -0
- package/lib/commonjs/components/Alert.js +232 -0
- package/lib/commonjs/components/Alert.js.map +1 -0
- package/lib/commonjs/components/AreaChart.js +506 -0
- package/lib/commonjs/components/AreaChart.js.map +1 -0
- package/lib/commonjs/components/AuroraBackground.js +267 -0
- package/lib/commonjs/components/AuroraBackground.js.map +1 -0
- package/lib/commonjs/components/Avatar.js +187 -0
- package/lib/commonjs/components/Avatar.js.map +1 -0
- package/lib/commonjs/components/AvatarStack.js +95 -0
- package/lib/commonjs/components/AvatarStack.js.map +1 -0
- package/lib/commonjs/components/BackLink.js +77 -0
- package/lib/commonjs/components/BackLink.js.map +1 -0
- package/lib/commonjs/components/Badge.js +136 -0
- package/lib/commonjs/components/Badge.js.map +1 -0
- package/lib/commonjs/components/BarChart.js +641 -0
- package/lib/commonjs/components/BarChart.js.map +1 -0
- package/lib/commonjs/components/BarFill.js +55 -0
- package/lib/commonjs/components/BarFill.js.map +1 -0
- package/lib/commonjs/components/BeeswarmChart.js +615 -0
- package/lib/commonjs/components/BeeswarmChart.js.map +1 -0
- package/lib/commonjs/components/BiomarkerRange.js +610 -0
- package/lib/commonjs/components/BiomarkerRange.js.map +1 -0
- package/lib/commonjs/components/BodyBattery.js +563 -0
- package/lib/commonjs/components/BodyBattery.js.map +1 -0
- package/lib/commonjs/components/BrandMark.js +184 -0
- package/lib/commonjs/components/BrandMark.js.map +1 -0
- package/lib/commonjs/components/BulletChart.js +406 -0
- package/lib/commonjs/components/BulletChart.js.map +1 -0
- package/lib/commonjs/components/Button.js +154 -0
- package/lib/commonjs/components/Button.js.map +1 -0
- package/lib/commonjs/components/CaffeineClock.js +491 -0
- package/lib/commonjs/components/CaffeineClock.js.map +1 -0
- package/lib/commonjs/components/Card.js +142 -0
- package/lib/commonjs/components/Card.js.map +1 -0
- package/lib/commonjs/components/CharCounter.js +106 -0
- package/lib/commonjs/components/CharCounter.js.map +1 -0
- package/lib/commonjs/components/ChartState.js +554 -0
- package/lib/commonjs/components/ChartState.js.map +1 -0
- package/lib/commonjs/components/Checkbox.js +180 -0
- package/lib/commonjs/components/Checkbox.js.map +1 -0
- package/lib/commonjs/components/Chip.js +218 -0
- package/lib/commonjs/components/Chip.js.map +1 -0
- package/lib/commonjs/components/ChoiceChip.js +133 -0
- package/lib/commonjs/components/ChoiceChip.js.map +1 -0
- package/lib/commonjs/components/CodeBlock.js +126 -0
- package/lib/commonjs/components/CodeBlock.js.map +1 -0
- package/lib/commonjs/components/CodeField.js +129 -0
- package/lib/commonjs/components/CodeField.js.map +1 -0
- package/lib/commonjs/components/ColorPicker.js +181 -0
- package/lib/commonjs/components/ColorPicker.js.map +1 -0
- package/lib/commonjs/components/ComboChart.js +419 -0
- package/lib/commonjs/components/ComboChart.js.map +1 -0
- package/lib/commonjs/components/Combobox.js +108 -0
- package/lib/commonjs/components/Combobox.js.map +1 -0
- package/lib/commonjs/components/CompareChart.js +627 -0
- package/lib/commonjs/components/CompareChart.js.map +1 -0
- package/lib/commonjs/components/CompositeChart.js +654 -0
- package/lib/commonjs/components/CompositeChart.js.map +1 -0
- package/lib/commonjs/components/Countdown.js +152 -0
- package/lib/commonjs/components/Countdown.js.map +1 -0
- package/lib/commonjs/components/CreditCardVisual.js +167 -0
- package/lib/commonjs/components/CreditCardVisual.js.map +1 -0
- package/lib/commonjs/components/DateField.js +365 -0
- package/lib/commonjs/components/DateField.js.map +1 -0
- package/lib/commonjs/components/DayTimelineBlocks.js +253 -0
- package/lib/commonjs/components/DayTimelineBlocks.js.map +1 -0
- package/lib/commonjs/components/DayWheel.js +467 -0
- package/lib/commonjs/components/DayWheel.js.map +1 -0
- package/lib/commonjs/components/DeltaPill.js +154 -0
- package/lib/commonjs/components/DeltaPill.js.map +1 -0
- package/lib/commonjs/components/DistributionChart.js +776 -0
- package/lib/commonjs/components/DistributionChart.js.map +1 -0
- package/lib/commonjs/components/Divider.js +74 -0
- package/lib/commonjs/components/Divider.js.map +1 -0
- package/lib/commonjs/components/DonutChart.js +337 -0
- package/lib/commonjs/components/DonutChart.js.map +1 -0
- package/lib/commonjs/components/DotsLoader.js +94 -0
- package/lib/commonjs/components/DotsLoader.js.map +1 -0
- package/lib/commonjs/components/EffectAttributionLine.js +105 -0
- package/lib/commonjs/components/EffectAttributionLine.js.map +1 -0
- package/lib/commonjs/components/EmptyState.js +120 -0
- package/lib/commonjs/components/EmptyState.js.map +1 -0
- package/lib/commonjs/components/EngagementBar.js +122 -0
- package/lib/commonjs/components/EngagementBar.js.map +1 -0
- package/lib/commonjs/components/EnvironmentChart.js +573 -0
- package/lib/commonjs/components/EnvironmentChart.js.map +1 -0
- package/lib/commonjs/components/Eyebrow.js +32 -0
- package/lib/commonjs/components/Eyebrow.js.map +1 -0
- package/lib/commonjs/components/FocalPointPicker.js +196 -0
- package/lib/commonjs/components/FocalPointPicker.js.map +1 -0
- package/lib/commonjs/components/FollowButton.js +95 -0
- package/lib/commonjs/components/FollowButton.js.map +1 -0
- package/lib/commonjs/components/ForecastCallout.js +116 -0
- package/lib/commonjs/components/ForecastCallout.js.map +1 -0
- package/lib/commonjs/components/FormField.js +204 -0
- package/lib/commonjs/components/FormField.js.map +1 -0
- package/lib/commonjs/components/FunnelChart.js +260 -0
- package/lib/commonjs/components/FunnelChart.js.map +1 -0
- package/lib/commonjs/components/Gauge.js +252 -0
- package/lib/commonjs/components/Gauge.js.map +1 -0
- package/lib/commonjs/components/GradientText.js +136 -0
- package/lib/commonjs/components/GradientText.js.map +1 -0
- package/lib/commonjs/components/Heatmap.js +419 -0
- package/lib/commonjs/components/Heatmap.js.map +1 -0
- package/lib/commonjs/components/Highlight.js +55 -0
- package/lib/commonjs/components/Highlight.js.map +1 -0
- package/lib/commonjs/components/Hypnogram.js +842 -0
- package/lib/commonjs/components/Hypnogram.js.map +1 -0
- package/lib/commonjs/components/Icon.js +486 -0
- package/lib/commonjs/components/Icon.js.map +1 -0
- package/lib/commonjs/components/Input.js +142 -0
- package/lib/commonjs/components/Input.js.map +1 -0
- package/lib/commonjs/components/InsightCard.js +119 -0
- package/lib/commonjs/components/InsightCard.js.map +1 -0
- package/lib/commonjs/components/KeyValue.js +93 -0
- package/lib/commonjs/components/KeyValue.js.map +1 -0
- package/lib/commonjs/components/LeaderboardRow.js +140 -0
- package/lib/commonjs/components/LeaderboardRow.js.map +1 -0
- package/lib/commonjs/components/LineChart.js +1544 -0
- package/lib/commonjs/components/LineChart.js.map +1 -0
- package/lib/commonjs/components/ListRow.js +122 -0
- package/lib/commonjs/components/ListRow.js.map +1 -0
- package/lib/commonjs/components/Menu.js +183 -0
- package/lib/commonjs/components/Menu.js.map +1 -0
- package/lib/commonjs/components/MessageBubble.js +117 -0
- package/lib/commonjs/components/MessageBubble.js.map +1 -0
- package/lib/commonjs/components/MessageComposer.js +212 -0
- package/lib/commonjs/components/MessageComposer.js.map +1 -0
- package/lib/commonjs/components/MetaphorWidget.js +1053 -0
- package/lib/commonjs/components/MetaphorWidget.js.map +1 -0
- package/lib/commonjs/components/Meter.js +173 -0
- package/lib/commonjs/components/Meter.js.map +1 -0
- package/lib/commonjs/components/MetricTile.js +268 -0
- package/lib/commonjs/components/MetricTile.js.map +1 -0
- package/lib/commonjs/components/MiniRing.js +30 -0
- package/lib/commonjs/components/MiniRing.js.map +1 -0
- package/lib/commonjs/components/Modal.js +153 -0
- package/lib/commonjs/components/Modal.js.map +1 -0
- package/lib/commonjs/components/MuscleDiagram.js +326 -0
- package/lib/commonjs/components/MuscleDiagram.js.map +1 -0
- package/lib/commonjs/components/NoteField.js +73 -0
- package/lib/commonjs/components/NoteField.js.map +1 -0
- package/lib/commonjs/components/NotificationRow.js +234 -0
- package/lib/commonjs/components/NotificationRow.js.map +1 -0
- package/lib/commonjs/components/Pagination.js +212 -0
- package/lib/commonjs/components/Pagination.js.map +1 -0
- package/lib/commonjs/components/PasswordInput.js +120 -0
- package/lib/commonjs/components/PasswordInput.js.map +1 -0
- package/lib/commonjs/components/PasswordStrengthMeter.js +108 -0
- package/lib/commonjs/components/PasswordStrengthMeter.js.map +1 -0
- package/lib/commonjs/components/PendingPatternCard.js +182 -0
- package/lib/commonjs/components/PendingPatternCard.js.map +1 -0
- package/lib/commonjs/components/PhaseWheel.js +704 -0
- package/lib/commonjs/components/PhaseWheel.js.map +1 -0
- package/lib/commonjs/components/PkChart.js +566 -0
- package/lib/commonjs/components/PkChart.js.map +1 -0
- package/lib/commonjs/components/Popover.js +234 -0
- package/lib/commonjs/components/Popover.js.map +1 -0
- package/lib/commonjs/components/PrBadge.js +71 -0
- package/lib/commonjs/components/PrBadge.js.map +1 -0
- package/lib/commonjs/components/PrCard.js +150 -0
- package/lib/commonjs/components/PrCard.js.map +1 -0
- package/lib/commonjs/components/PricingTierCard.js +237 -0
- package/lib/commonjs/components/PricingTierCard.js.map +1 -0
- package/lib/commonjs/components/ProGate.js +235 -0
- package/lib/commonjs/components/ProGate.js.map +1 -0
- package/lib/commonjs/components/ProgressBar.js +515 -0
- package/lib/commonjs/components/ProgressBar.js.map +1 -0
- package/lib/commonjs/components/Pulse.js +36 -0
- package/lib/commonjs/components/Pulse.js.map +1 -0
- package/lib/commonjs/components/QRCode.js +519 -0
- package/lib/commonjs/components/QRCode.js.map +1 -0
- package/lib/commonjs/components/RadarChart.js +492 -0
- package/lib/commonjs/components/RadarChart.js.map +1 -0
- package/lib/commonjs/components/RangeBar.js +191 -0
- package/lib/commonjs/components/RangeBar.js.map +1 -0
- package/lib/commonjs/components/ReauthDialog.js +261 -0
- package/lib/commonjs/components/ReauthDialog.js.map +1 -0
- package/lib/commonjs/components/RestTimer.js +246 -0
- package/lib/commonjs/components/RestTimer.js.map +1 -0
- package/lib/commonjs/components/RichText.js +81 -0
- package/lib/commonjs/components/RichText.js.map +1 -0
- package/lib/commonjs/components/RichTextEditor.js +274 -0
- package/lib/commonjs/components/RichTextEditor.js.map +1 -0
- package/lib/commonjs/components/Ring.js +239 -0
- package/lib/commonjs/components/Ring.js.map +1 -0
- package/lib/commonjs/components/RoseChart.js +376 -0
- package/lib/commonjs/components/RoseChart.js.map +1 -0
- package/lib/commonjs/components/SankeyChart.js +652 -0
- package/lib/commonjs/components/SankeyChart.js.map +1 -0
- package/lib/commonjs/components/ScatterChart.js +432 -0
- package/lib/commonjs/components/ScatterChart.js.map +1 -0
- package/lib/commonjs/components/ScrollProgress.js +66 -0
- package/lib/commonjs/components/ScrollProgress.js.map +1 -0
- package/lib/commonjs/components/SectionDivider.js +59 -0
- package/lib/commonjs/components/SectionDivider.js.map +1 -0
- package/lib/commonjs/components/SectionHeader.js +53 -0
- package/lib/commonjs/components/SectionHeader.js.map +1 -0
- package/lib/commonjs/components/SegmentedTabs.js +336 -0
- package/lib/commonjs/components/SegmentedTabs.js.map +1 -0
- package/lib/commonjs/components/Select.js +380 -0
- package/lib/commonjs/components/Select.js.map +1 -0
- package/lib/commonjs/components/SessionBanner.js +220 -0
- package/lib/commonjs/components/SessionBanner.js.map +1 -0
- package/lib/commonjs/components/SessionChart.js +1046 -0
- package/lib/commonjs/components/SessionChart.js.map +1 -0
- package/lib/commonjs/components/SetTable.js +351 -0
- package/lib/commonjs/components/SetTable.js.map +1 -0
- package/lib/commonjs/components/ShareCard.js +227 -0
- package/lib/commonjs/components/ShareCard.js.map +1 -0
- package/lib/commonjs/components/Sheet.js +220 -0
- package/lib/commonjs/components/Sheet.js.map +1 -0
- package/lib/commonjs/components/Skeleton.js +28 -0
- package/lib/commonjs/components/Skeleton.js.map +1 -0
- package/lib/commonjs/components/Slider.js +173 -0
- package/lib/commonjs/components/Slider.js.map +1 -0
- package/lib/commonjs/components/Sortable.js +230 -0
- package/lib/commonjs/components/Sortable.js.map +1 -0
- package/lib/commonjs/components/SourceChip.js +111 -0
- package/lib/commonjs/components/SourceChip.js.map +1 -0
- package/lib/commonjs/components/Sparkline.js +110 -0
- package/lib/commonjs/components/Sparkline.js.map +1 -0
- package/lib/commonjs/components/Spinner.js +132 -0
- package/lib/commonjs/components/Spinner.js.map +1 -0
- package/lib/commonjs/components/SplitButton.js +158 -0
- package/lib/commonjs/components/SplitButton.js.map +1 -0
- package/lib/commonjs/components/SsoButton.js +109 -0
- package/lib/commonjs/components/SsoButton.js.map +1 -0
- package/lib/commonjs/components/StackedBar.js +133 -0
- package/lib/commonjs/components/StackedBar.js.map +1 -0
- package/lib/commonjs/components/Stat.js +167 -0
- package/lib/commonjs/components/Stat.js.map +1 -0
- package/lib/commonjs/components/StatTile.js +644 -0
- package/lib/commonjs/components/StatTile.js.map +1 -0
- package/lib/commonjs/components/StateLabel.js +73 -0
- package/lib/commonjs/components/StateLabel.js.map +1 -0
- package/lib/commonjs/components/StatusDot.js +65 -0
- package/lib/commonjs/components/StatusDot.js.map +1 -0
- package/lib/commonjs/components/Stepper.js +355 -0
- package/lib/commonjs/components/Stepper.js.map +1 -0
- package/lib/commonjs/components/SupplementChart.js +1002 -0
- package/lib/commonjs/components/SupplementChart.js.map +1 -0
- package/lib/commonjs/components/TabBar.js +303 -0
- package/lib/commonjs/components/TabBar.js.map +1 -0
- package/lib/commonjs/components/Table.js +458 -0
- package/lib/commonjs/components/Table.js.map +1 -0
- package/lib/commonjs/components/Tabs.js +88 -0
- package/lib/commonjs/components/Tabs.js.map +1 -0
- package/lib/commonjs/components/TagCloud.js +118 -0
- package/lib/commonjs/components/TagCloud.js.map +1 -0
- package/lib/commonjs/components/TagInput.js +298 -0
- package/lib/commonjs/components/TagInput.js.map +1 -0
- package/lib/commonjs/components/TemplateCard.js +206 -0
- package/lib/commonjs/components/TemplateCard.js.map +1 -0
- package/lib/commonjs/components/Timeline.js +219 -0
- package/lib/commonjs/components/Timeline.js.map +1 -0
- package/lib/commonjs/components/TimelineChart.js +1228 -0
- package/lib/commonjs/components/TimelineChart.js.map +1 -0
- package/lib/commonjs/components/Toast.js +156 -0
- package/lib/commonjs/components/Toast.js.map +1 -0
- package/lib/commonjs/components/Toggle.js +166 -0
- package/lib/commonjs/components/Toggle.js.map +1 -0
- package/lib/commonjs/components/Toolbar.js +310 -0
- package/lib/commonjs/components/Toolbar.js.map +1 -0
- package/lib/commonjs/components/Tooltip.js +245 -0
- package/lib/commonjs/components/Tooltip.js.map +1 -0
- package/lib/commonjs/components/TypingIndicator.js +112 -0
- package/lib/commonjs/components/TypingIndicator.js.map +1 -0
- package/lib/commonjs/components/UnitChart.js +482 -0
- package/lib/commonjs/components/UnitChart.js.map +1 -0
- package/lib/commonjs/components/VersionBadge.js +133 -0
- package/lib/commonjs/components/VersionBadge.js.map +1 -0
- package/lib/commonjs/components/VideoThumbnail.js +152 -0
- package/lib/commonjs/components/VideoThumbnail.js.map +1 -0
- package/lib/commonjs/components/VitalsStrip.js +766 -0
- package/lib/commonjs/components/VitalsStrip.js.map +1 -0
- package/lib/commonjs/components/WatchComplication.js +563 -0
- package/lib/commonjs/components/WatchComplication.js.map +1 -0
- package/lib/commonjs/components/ZoneBar.js +149 -0
- package/lib/commonjs/components/ZoneBar.js.map +1 -0
- package/lib/commonjs/components/ZonePyramid.js +398 -0
- package/lib/commonjs/components/ZonePyramid.js.map +1 -0
- package/lib/commonjs/index.js +1140 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/internal/optionalBlur.js +34 -0
- package/lib/commonjs/internal/optionalBlur.js.map +1 -0
- package/lib/commonjs/internal/optionalHaptics.js +40 -0
- package/lib/commonjs/internal/optionalHaptics.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/theme.js +61 -0
- package/lib/commonjs/theme.js.map +1 -0
- package/lib/module/components/Accordion.js +139 -0
- package/lib/module/components/Accordion.js.map +1 -0
- package/lib/module/components/AchievementBadge.js +223 -0
- package/lib/module/components/AchievementBadge.js.map +1 -0
- package/lib/module/components/Alert.js +227 -0
- package/lib/module/components/Alert.js.map +1 -0
- package/lib/module/components/AreaChart.js +501 -0
- package/lib/module/components/AreaChart.js.map +1 -0
- package/lib/module/components/AuroraBackground.js +262 -0
- package/lib/module/components/AuroraBackground.js.map +1 -0
- package/lib/module/components/Avatar.js +183 -0
- package/lib/module/components/Avatar.js.map +1 -0
- package/lib/module/components/AvatarStack.js +91 -0
- package/lib/module/components/AvatarStack.js.map +1 -0
- package/lib/module/components/BackLink.js +73 -0
- package/lib/module/components/BackLink.js.map +1 -0
- package/lib/module/components/Badge.js +132 -0
- package/lib/module/components/Badge.js.map +1 -0
- package/lib/module/components/BarChart.js +636 -0
- package/lib/module/components/BarChart.js.map +1 -0
- package/lib/module/components/BarFill.js +51 -0
- package/lib/module/components/BarFill.js.map +1 -0
- package/lib/module/components/BeeswarmChart.js +610 -0
- package/lib/module/components/BeeswarmChart.js.map +1 -0
- package/lib/module/components/BiomarkerRange.js +605 -0
- package/lib/module/components/BiomarkerRange.js.map +1 -0
- package/lib/module/components/BodyBattery.js +558 -0
- package/lib/module/components/BodyBattery.js.map +1 -0
- package/lib/module/components/BrandMark.js +179 -0
- package/lib/module/components/BrandMark.js.map +1 -0
- package/lib/module/components/BulletChart.js +401 -0
- package/lib/module/components/BulletChart.js.map +1 -0
- package/lib/module/components/Button.js +150 -0
- package/lib/module/components/Button.js.map +1 -0
- package/lib/module/components/CaffeineClock.js +486 -0
- package/lib/module/components/CaffeineClock.js.map +1 -0
- package/lib/module/components/Card.js +138 -0
- package/lib/module/components/Card.js.map +1 -0
- package/lib/module/components/CharCounter.js +102 -0
- package/lib/module/components/CharCounter.js.map +1 -0
- package/lib/module/components/ChartState.js +549 -0
- package/lib/module/components/ChartState.js.map +1 -0
- package/lib/module/components/Checkbox.js +175 -0
- package/lib/module/components/Checkbox.js.map +1 -0
- package/lib/module/components/Chip.js +214 -0
- package/lib/module/components/Chip.js.map +1 -0
- package/lib/module/components/ChoiceChip.js +129 -0
- package/lib/module/components/ChoiceChip.js.map +1 -0
- package/lib/module/components/CodeBlock.js +122 -0
- package/lib/module/components/CodeBlock.js.map +1 -0
- package/lib/module/components/CodeField.js +125 -0
- package/lib/module/components/CodeField.js.map +1 -0
- package/lib/module/components/ColorPicker.js +177 -0
- package/lib/module/components/ColorPicker.js.map +1 -0
- package/lib/module/components/ComboChart.js +414 -0
- package/lib/module/components/ComboChart.js.map +1 -0
- package/lib/module/components/Combobox.js +104 -0
- package/lib/module/components/Combobox.js.map +1 -0
- package/lib/module/components/CompareChart.js +622 -0
- package/lib/module/components/CompareChart.js.map +1 -0
- package/lib/module/components/CompositeChart.js +649 -0
- package/lib/module/components/CompositeChart.js.map +1 -0
- package/lib/module/components/Countdown.js +148 -0
- package/lib/module/components/Countdown.js.map +1 -0
- package/lib/module/components/CreditCardVisual.js +163 -0
- package/lib/module/components/CreditCardVisual.js.map +1 -0
- package/lib/module/components/DateField.js +361 -0
- package/lib/module/components/DateField.js.map +1 -0
- package/lib/module/components/DayTimelineBlocks.js +249 -0
- package/lib/module/components/DayTimelineBlocks.js.map +1 -0
- package/lib/module/components/DayWheel.js +462 -0
- package/lib/module/components/DayWheel.js.map +1 -0
- package/lib/module/components/DeltaPill.js +149 -0
- package/lib/module/components/DeltaPill.js.map +1 -0
- package/lib/module/components/DistributionChart.js +771 -0
- package/lib/module/components/DistributionChart.js.map +1 -0
- package/lib/module/components/Divider.js +70 -0
- package/lib/module/components/Divider.js.map +1 -0
- package/lib/module/components/DonutChart.js +332 -0
- package/lib/module/components/DonutChart.js.map +1 -0
- package/lib/module/components/DotsLoader.js +90 -0
- package/lib/module/components/DotsLoader.js.map +1 -0
- package/lib/module/components/EffectAttributionLine.js +101 -0
- package/lib/module/components/EffectAttributionLine.js.map +1 -0
- package/lib/module/components/EmptyState.js +115 -0
- package/lib/module/components/EmptyState.js.map +1 -0
- package/lib/module/components/EngagementBar.js +118 -0
- package/lib/module/components/EngagementBar.js.map +1 -0
- package/lib/module/components/EnvironmentChart.js +568 -0
- package/lib/module/components/EnvironmentChart.js.map +1 -0
- package/lib/module/components/Eyebrow.js +28 -0
- package/lib/module/components/Eyebrow.js.map +1 -0
- package/lib/module/components/FocalPointPicker.js +192 -0
- package/lib/module/components/FocalPointPicker.js.map +1 -0
- package/lib/module/components/FollowButton.js +91 -0
- package/lib/module/components/FollowButton.js.map +1 -0
- package/lib/module/components/ForecastCallout.js +112 -0
- package/lib/module/components/ForecastCallout.js.map +1 -0
- package/lib/module/components/FormField.js +198 -0
- package/lib/module/components/FormField.js.map +1 -0
- package/lib/module/components/FunnelChart.js +255 -0
- package/lib/module/components/FunnelChart.js.map +1 -0
- package/lib/module/components/Gauge.js +249 -0
- package/lib/module/components/Gauge.js.map +1 -0
- package/lib/module/components/GradientText.js +130 -0
- package/lib/module/components/GradientText.js.map +1 -0
- package/lib/module/components/Heatmap.js +414 -0
- package/lib/module/components/Heatmap.js.map +1 -0
- package/lib/module/components/Highlight.js +51 -0
- package/lib/module/components/Highlight.js.map +1 -0
- package/lib/module/components/Hypnogram.js +837 -0
- package/lib/module/components/Hypnogram.js.map +1 -0
- package/lib/module/components/Icon.js +480 -0
- package/lib/module/components/Icon.js.map +1 -0
- package/lib/module/components/Input.js +138 -0
- package/lib/module/components/Input.js.map +1 -0
- package/lib/module/components/InsightCard.js +115 -0
- package/lib/module/components/InsightCard.js.map +1 -0
- package/lib/module/components/KeyValue.js +89 -0
- package/lib/module/components/KeyValue.js.map +1 -0
- package/lib/module/components/LeaderboardRow.js +136 -0
- package/lib/module/components/LeaderboardRow.js.map +1 -0
- package/lib/module/components/LineChart.js +1539 -0
- package/lib/module/components/LineChart.js.map +1 -0
- package/lib/module/components/ListRow.js +118 -0
- package/lib/module/components/ListRow.js.map +1 -0
- package/lib/module/components/Menu.js +179 -0
- package/lib/module/components/Menu.js.map +1 -0
- package/lib/module/components/MessageBubble.js +113 -0
- package/lib/module/components/MessageBubble.js.map +1 -0
- package/lib/module/components/MessageComposer.js +208 -0
- package/lib/module/components/MessageComposer.js.map +1 -0
- package/lib/module/components/MetaphorWidget.js +1048 -0
- package/lib/module/components/MetaphorWidget.js.map +1 -0
- package/lib/module/components/Meter.js +169 -0
- package/lib/module/components/Meter.js.map +1 -0
- package/lib/module/components/MetricTile.js +263 -0
- package/lib/module/components/MetricTile.js.map +1 -0
- package/lib/module/components/MiniRing.js +26 -0
- package/lib/module/components/MiniRing.js.map +1 -0
- package/lib/module/components/Modal.js +148 -0
- package/lib/module/components/Modal.js.map +1 -0
- package/lib/module/components/MuscleDiagram.js +321 -0
- package/lib/module/components/MuscleDiagram.js.map +1 -0
- package/lib/module/components/NoteField.js +69 -0
- package/lib/module/components/NoteField.js.map +1 -0
- package/lib/module/components/NotificationRow.js +230 -0
- package/lib/module/components/NotificationRow.js.map +1 -0
- package/lib/module/components/Pagination.js +207 -0
- package/lib/module/components/Pagination.js.map +1 -0
- package/lib/module/components/PasswordInput.js +116 -0
- package/lib/module/components/PasswordInput.js.map +1 -0
- package/lib/module/components/PasswordStrengthMeter.js +104 -0
- package/lib/module/components/PasswordStrengthMeter.js.map +1 -0
- package/lib/module/components/PendingPatternCard.js +178 -0
- package/lib/module/components/PendingPatternCard.js.map +1 -0
- package/lib/module/components/PhaseWheel.js +699 -0
- package/lib/module/components/PhaseWheel.js.map +1 -0
- package/lib/module/components/PkChart.js +558 -0
- package/lib/module/components/PkChart.js.map +1 -0
- package/lib/module/components/Popover.js +230 -0
- package/lib/module/components/Popover.js.map +1 -0
- package/lib/module/components/PrBadge.js +66 -0
- package/lib/module/components/PrBadge.js.map +1 -0
- package/lib/module/components/PrCard.js +146 -0
- package/lib/module/components/PrCard.js.map +1 -0
- package/lib/module/components/PricingTierCard.js +233 -0
- package/lib/module/components/PricingTierCard.js.map +1 -0
- package/lib/module/components/ProGate.js +229 -0
- package/lib/module/components/ProGate.js.map +1 -0
- package/lib/module/components/ProgressBar.js +511 -0
- package/lib/module/components/ProgressBar.js.map +1 -0
- package/lib/module/components/Pulse.js +32 -0
- package/lib/module/components/Pulse.js.map +1 -0
- package/lib/module/components/QRCode.js +514 -0
- package/lib/module/components/QRCode.js.map +1 -0
- package/lib/module/components/RadarChart.js +487 -0
- package/lib/module/components/RadarChart.js.map +1 -0
- package/lib/module/components/RangeBar.js +187 -0
- package/lib/module/components/RangeBar.js.map +1 -0
- package/lib/module/components/ReauthDialog.js +256 -0
- package/lib/module/components/ReauthDialog.js.map +1 -0
- package/lib/module/components/RestTimer.js +239 -0
- package/lib/module/components/RestTimer.js.map +1 -0
- package/lib/module/components/RichText.js +77 -0
- package/lib/module/components/RichText.js.map +1 -0
- package/lib/module/components/RichTextEditor.js +269 -0
- package/lib/module/components/RichTextEditor.js.map +1 -0
- package/lib/module/components/Ring.js +236 -0
- package/lib/module/components/Ring.js.map +1 -0
- package/lib/module/components/RoseChart.js +371 -0
- package/lib/module/components/RoseChart.js.map +1 -0
- package/lib/module/components/SankeyChart.js +647 -0
- package/lib/module/components/SankeyChart.js.map +1 -0
- package/lib/module/components/ScatterChart.js +427 -0
- package/lib/module/components/ScatterChart.js.map +1 -0
- package/lib/module/components/ScrollProgress.js +62 -0
- package/lib/module/components/ScrollProgress.js.map +1 -0
- package/lib/module/components/SectionDivider.js +55 -0
- package/lib/module/components/SectionDivider.js.map +1 -0
- package/lib/module/components/SectionHeader.js +49 -0
- package/lib/module/components/SectionHeader.js.map +1 -0
- package/lib/module/components/SegmentedTabs.js +332 -0
- package/lib/module/components/SegmentedTabs.js.map +1 -0
- package/lib/module/components/Select.js +375 -0
- package/lib/module/components/Select.js.map +1 -0
- package/lib/module/components/SessionBanner.js +216 -0
- package/lib/module/components/SessionBanner.js.map +1 -0
- package/lib/module/components/SessionChart.js +1040 -0
- package/lib/module/components/SessionChart.js.map +1 -0
- package/lib/module/components/SetTable.js +345 -0
- package/lib/module/components/SetTable.js.map +1 -0
- package/lib/module/components/ShareCard.js +223 -0
- package/lib/module/components/ShareCard.js.map +1 -0
- package/lib/module/components/Sheet.js +216 -0
- package/lib/module/components/Sheet.js.map +1 -0
- package/lib/module/components/Skeleton.js +24 -0
- package/lib/module/components/Skeleton.js.map +1 -0
- package/lib/module/components/Slider.js +169 -0
- package/lib/module/components/Slider.js.map +1 -0
- package/lib/module/components/Sortable.js +226 -0
- package/lib/module/components/Sortable.js.map +1 -0
- package/lib/module/components/SourceChip.js +107 -0
- package/lib/module/components/SourceChip.js.map +1 -0
- package/lib/module/components/Sparkline.js +105 -0
- package/lib/module/components/Sparkline.js.map +1 -0
- package/lib/module/components/Spinner.js +127 -0
- package/lib/module/components/Spinner.js.map +1 -0
- package/lib/module/components/SplitButton.js +154 -0
- package/lib/module/components/SplitButton.js.map +1 -0
- package/lib/module/components/SsoButton.js +104 -0
- package/lib/module/components/SsoButton.js.map +1 -0
- package/lib/module/components/StackedBar.js +129 -0
- package/lib/module/components/StackedBar.js.map +1 -0
- package/lib/module/components/Stat.js +163 -0
- package/lib/module/components/Stat.js.map +1 -0
- package/lib/module/components/StatTile.js +639 -0
- package/lib/module/components/StatTile.js.map +1 -0
- package/lib/module/components/StateLabel.js +69 -0
- package/lib/module/components/StateLabel.js.map +1 -0
- package/lib/module/components/StatusDot.js +61 -0
- package/lib/module/components/StatusDot.js.map +1 -0
- package/lib/module/components/Stepper.js +350 -0
- package/lib/module/components/Stepper.js.map +1 -0
- package/lib/module/components/SupplementChart.js +997 -0
- package/lib/module/components/SupplementChart.js.map +1 -0
- package/lib/module/components/TabBar.js +298 -0
- package/lib/module/components/TabBar.js.map +1 -0
- package/lib/module/components/Table.js +452 -0
- package/lib/module/components/Table.js.map +1 -0
- package/lib/module/components/Tabs.js +84 -0
- package/lib/module/components/Tabs.js.map +1 -0
- package/lib/module/components/TagCloud.js +113 -0
- package/lib/module/components/TagCloud.js.map +1 -0
- package/lib/module/components/TagInput.js +291 -0
- package/lib/module/components/TagInput.js.map +1 -0
- package/lib/module/components/TemplateCard.js +202 -0
- package/lib/module/components/TemplateCard.js.map +1 -0
- package/lib/module/components/Timeline.js +214 -0
- package/lib/module/components/Timeline.js.map +1 -0
- package/lib/module/components/TimelineChart.js +1223 -0
- package/lib/module/components/TimelineChart.js.map +1 -0
- package/lib/module/components/Toast.js +151 -0
- package/lib/module/components/Toast.js.map +1 -0
- package/lib/module/components/Toggle.js +162 -0
- package/lib/module/components/Toggle.js.map +1 -0
- package/lib/module/components/Toolbar.js +306 -0
- package/lib/module/components/Toolbar.js.map +1 -0
- package/lib/module/components/Tooltip.js +241 -0
- package/lib/module/components/Tooltip.js.map +1 -0
- package/lib/module/components/TypingIndicator.js +108 -0
- package/lib/module/components/TypingIndicator.js.map +1 -0
- package/lib/module/components/UnitChart.js +477 -0
- package/lib/module/components/UnitChart.js.map +1 -0
- package/lib/module/components/VersionBadge.js +129 -0
- package/lib/module/components/VersionBadge.js.map +1 -0
- package/lib/module/components/VideoThumbnail.js +147 -0
- package/lib/module/components/VideoThumbnail.js.map +1 -0
- package/lib/module/components/VitalsStrip.js +761 -0
- package/lib/module/components/VitalsStrip.js.map +1 -0
- package/lib/module/components/WatchComplication.js +558 -0
- package/lib/module/components/WatchComplication.js.map +1 -0
- package/lib/module/components/ZoneBar.js +145 -0
- package/lib/module/components/ZoneBar.js.map +1 -0
- package/lib/module/components/ZonePyramid.js +393 -0
- package/lib/module/components/ZonePyramid.js.map +1 -0
- package/lib/module/index.js +166 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/internal/optionalBlur.js +30 -0
- package/lib/module/internal/optionalBlur.js.map +1 -0
- package/lib/module/internal/optionalHaptics.js +34 -0
- package/lib/module/internal/optionalHaptics.js.map +1 -0
- package/lib/module/theme.js +6 -0
- package/lib/module/theme.js.map +1 -0
- package/lib/typescript/components/Accordion.d.ts +20 -0
- package/lib/typescript/components/Accordion.d.ts.map +1 -0
- package/lib/typescript/components/AchievementBadge.d.ts +29 -0
- package/lib/typescript/components/AchievementBadge.d.ts.map +1 -0
- package/lib/typescript/components/Alert.d.ts +18 -0
- package/lib/typescript/components/Alert.d.ts.map +1 -0
- package/lib/typescript/components/AreaChart.d.ts +58 -0
- package/lib/typescript/components/AreaChart.d.ts.map +1 -0
- package/lib/typescript/components/AuroraBackground.d.ts +24 -0
- package/lib/typescript/components/AuroraBackground.d.ts.map +1 -0
- package/lib/typescript/components/Avatar.d.ts +38 -0
- package/lib/typescript/components/Avatar.d.ts.map +1 -0
- package/lib/typescript/components/AvatarStack.d.ts +26 -0
- package/lib/typescript/components/AvatarStack.d.ts.map +1 -0
- package/lib/typescript/components/BackLink.d.ts +20 -0
- package/lib/typescript/components/BackLink.d.ts.map +1 -0
- package/lib/typescript/components/Badge.d.ts +12 -0
- package/lib/typescript/components/Badge.d.ts.map +1 -0
- package/lib/typescript/components/BarChart.d.ts +83 -0
- package/lib/typescript/components/BarChart.d.ts.map +1 -0
- package/lib/typescript/components/BarFill.d.ts +15 -0
- package/lib/typescript/components/BarFill.d.ts.map +1 -0
- package/lib/typescript/components/BeeswarmChart.d.ts +71 -0
- package/lib/typescript/components/BeeswarmChart.d.ts.map +1 -0
- package/lib/typescript/components/BiomarkerRange.d.ts +64 -0
- package/lib/typescript/components/BiomarkerRange.d.ts.map +1 -0
- package/lib/typescript/components/BodyBattery.d.ts +70 -0
- package/lib/typescript/components/BodyBattery.d.ts.map +1 -0
- package/lib/typescript/components/BrandMark.d.ts +10 -0
- package/lib/typescript/components/BrandMark.d.ts.map +1 -0
- package/lib/typescript/components/BulletChart.d.ts +61 -0
- package/lib/typescript/components/BulletChart.d.ts.map +1 -0
- package/lib/typescript/components/Button.d.ts +27 -0
- package/lib/typescript/components/Button.d.ts.map +1 -0
- package/lib/typescript/components/CaffeineClock.d.ts +64 -0
- package/lib/typescript/components/CaffeineClock.d.ts.map +1 -0
- package/lib/typescript/components/Card.d.ts +23 -0
- package/lib/typescript/components/Card.d.ts.map +1 -0
- package/lib/typescript/components/CharCounter.d.ts +30 -0
- package/lib/typescript/components/CharCounter.d.ts.map +1 -0
- package/lib/typescript/components/ChartState.d.ts +58 -0
- package/lib/typescript/components/ChartState.d.ts.map +1 -0
- package/lib/typescript/components/Checkbox.d.ts +44 -0
- package/lib/typescript/components/Checkbox.d.ts.map +1 -0
- package/lib/typescript/components/Chip.d.ts +17 -0
- package/lib/typescript/components/Chip.d.ts.map +1 -0
- package/lib/typescript/components/ChoiceChip.d.ts +31 -0
- package/lib/typescript/components/ChoiceChip.d.ts.map +1 -0
- package/lib/typescript/components/CodeBlock.d.ts +18 -0
- package/lib/typescript/components/CodeBlock.d.ts.map +1 -0
- package/lib/typescript/components/CodeField.d.ts +22 -0
- package/lib/typescript/components/CodeField.d.ts.map +1 -0
- package/lib/typescript/components/ColorPicker.d.ts +20 -0
- package/lib/typescript/components/ColorPicker.d.ts.map +1 -0
- package/lib/typescript/components/ComboChart.d.ts +56 -0
- package/lib/typescript/components/ComboChart.d.ts.map +1 -0
- package/lib/typescript/components/Combobox.d.ts +39 -0
- package/lib/typescript/components/Combobox.d.ts.map +1 -0
- package/lib/typescript/components/CompareChart.d.ts +80 -0
- package/lib/typescript/components/CompareChart.d.ts.map +1 -0
- package/lib/typescript/components/CompositeChart.d.ts +83 -0
- package/lib/typescript/components/CompositeChart.d.ts.map +1 -0
- package/lib/typescript/components/Countdown.d.ts +28 -0
- package/lib/typescript/components/Countdown.d.ts.map +1 -0
- package/lib/typescript/components/CreditCardVisual.d.ts +26 -0
- package/lib/typescript/components/CreditCardVisual.d.ts.map +1 -0
- package/lib/typescript/components/DateField.d.ts +39 -0
- package/lib/typescript/components/DateField.d.ts.map +1 -0
- package/lib/typescript/components/DayTimelineBlocks.d.ts +40 -0
- package/lib/typescript/components/DayTimelineBlocks.d.ts.map +1 -0
- package/lib/typescript/components/DayWheel.d.ts +70 -0
- package/lib/typescript/components/DayWheel.d.ts.map +1 -0
- package/lib/typescript/components/DeltaPill.d.ts +22 -0
- package/lib/typescript/components/DeltaPill.d.ts.map +1 -0
- package/lib/typescript/components/DistributionChart.d.ts +94 -0
- package/lib/typescript/components/DistributionChart.d.ts.map +1 -0
- package/lib/typescript/components/Divider.d.ts +16 -0
- package/lib/typescript/components/Divider.d.ts.map +1 -0
- package/lib/typescript/components/DonutChart.d.ts +70 -0
- package/lib/typescript/components/DonutChart.d.ts.map +1 -0
- package/lib/typescript/components/DotsLoader.d.ts +19 -0
- package/lib/typescript/components/DotsLoader.d.ts.map +1 -0
- package/lib/typescript/components/EffectAttributionLine.d.ts +24 -0
- package/lib/typescript/components/EffectAttributionLine.d.ts.map +1 -0
- package/lib/typescript/components/EmptyState.d.ts +17 -0
- package/lib/typescript/components/EmptyState.d.ts.map +1 -0
- package/lib/typescript/components/EngagementBar.d.ts +23 -0
- package/lib/typescript/components/EngagementBar.d.ts.map +1 -0
- package/lib/typescript/components/EnvironmentChart.d.ts +89 -0
- package/lib/typescript/components/EnvironmentChart.d.ts.map +1 -0
- package/lib/typescript/components/Eyebrow.d.ts +7 -0
- package/lib/typescript/components/Eyebrow.d.ts.map +1 -0
- package/lib/typescript/components/FocalPointPicker.d.ts +31 -0
- package/lib/typescript/components/FocalPointPicker.d.ts.map +1 -0
- package/lib/typescript/components/FollowButton.d.ts +21 -0
- package/lib/typescript/components/FollowButton.d.ts.map +1 -0
- package/lib/typescript/components/ForecastCallout.d.ts +21 -0
- package/lib/typescript/components/ForecastCallout.d.ts.map +1 -0
- package/lib/typescript/components/FormField.d.ts +32 -0
- package/lib/typescript/components/FormField.d.ts.map +1 -0
- package/lib/typescript/components/FunnelChart.d.ts +46 -0
- package/lib/typescript/components/FunnelChart.d.ts.map +1 -0
- package/lib/typescript/components/Gauge.d.ts +70 -0
- package/lib/typescript/components/Gauge.d.ts.map +1 -0
- package/lib/typescript/components/GradientText.d.ts +21 -0
- package/lib/typescript/components/GradientText.d.ts.map +1 -0
- package/lib/typescript/components/Heatmap.d.ts +87 -0
- package/lib/typescript/components/Heatmap.d.ts.map +1 -0
- package/lib/typescript/components/Highlight.d.ts +11 -0
- package/lib/typescript/components/Highlight.d.ts.map +1 -0
- package/lib/typescript/components/Hypnogram.d.ts +94 -0
- package/lib/typescript/components/Hypnogram.d.ts.map +1 -0
- package/lib/typescript/components/Icon.d.ts +30 -0
- package/lib/typescript/components/Icon.d.ts.map +1 -0
- package/lib/typescript/components/Input.d.ts +25 -0
- package/lib/typescript/components/Input.d.ts.map +1 -0
- package/lib/typescript/components/InsightCard.d.ts +37 -0
- package/lib/typescript/components/InsightCard.d.ts.map +1 -0
- package/lib/typescript/components/KeyValue.d.ts +18 -0
- package/lib/typescript/components/KeyValue.d.ts.map +1 -0
- package/lib/typescript/components/LeaderboardRow.d.ts +31 -0
- package/lib/typescript/components/LeaderboardRow.d.ts.map +1 -0
- package/lib/typescript/components/LineChart.d.ts +166 -0
- package/lib/typescript/components/LineChart.d.ts.map +1 -0
- package/lib/typescript/components/ListRow.d.ts +37 -0
- package/lib/typescript/components/ListRow.d.ts.map +1 -0
- package/lib/typescript/components/Menu.d.ts +28 -0
- package/lib/typescript/components/Menu.d.ts.map +1 -0
- package/lib/typescript/components/MessageBubble.d.ts +20 -0
- package/lib/typescript/components/MessageBubble.d.ts.map +1 -0
- package/lib/typescript/components/MessageComposer.d.ts +20 -0
- package/lib/typescript/components/MessageComposer.d.ts.map +1 -0
- package/lib/typescript/components/MetaphorWidget.d.ts +107 -0
- package/lib/typescript/components/MetaphorWidget.d.ts.map +1 -0
- package/lib/typescript/components/Meter.d.ts +34 -0
- package/lib/typescript/components/Meter.d.ts.map +1 -0
- package/lib/typescript/components/MetricTile.d.ts +43 -0
- package/lib/typescript/components/MetricTile.d.ts.map +1 -0
- package/lib/typescript/components/MiniRing.d.ts +9 -0
- package/lib/typescript/components/MiniRing.d.ts.map +1 -0
- package/lib/typescript/components/Modal.d.ts +19 -0
- package/lib/typescript/components/Modal.d.ts.map +1 -0
- package/lib/typescript/components/MuscleDiagram.d.ts +37 -0
- package/lib/typescript/components/MuscleDiagram.d.ts.map +1 -0
- package/lib/typescript/components/NoteField.d.ts +9 -0
- package/lib/typescript/components/NoteField.d.ts.map +1 -0
- package/lib/typescript/components/NotificationRow.d.ts +36 -0
- package/lib/typescript/components/NotificationRow.d.ts.map +1 -0
- package/lib/typescript/components/Pagination.d.ts +22 -0
- package/lib/typescript/components/Pagination.d.ts.map +1 -0
- package/lib/typescript/components/PasswordInput.d.ts +24 -0
- package/lib/typescript/components/PasswordInput.d.ts.map +1 -0
- package/lib/typescript/components/PasswordStrengthMeter.d.ts +18 -0
- package/lib/typescript/components/PasswordStrengthMeter.d.ts.map +1 -0
- package/lib/typescript/components/PendingPatternCard.d.ts +27 -0
- package/lib/typescript/components/PendingPatternCard.d.ts.map +1 -0
- package/lib/typescript/components/PhaseWheel.d.ts +103 -0
- package/lib/typescript/components/PhaseWheel.d.ts.map +1 -0
- package/lib/typescript/components/PkChart.d.ts +67 -0
- package/lib/typescript/components/PkChart.d.ts.map +1 -0
- package/lib/typescript/components/Popover.d.ts +27 -0
- package/lib/typescript/components/Popover.d.ts.map +1 -0
- package/lib/typescript/components/PrBadge.d.ts +21 -0
- package/lib/typescript/components/PrBadge.d.ts.map +1 -0
- package/lib/typescript/components/PrCard.d.ts +29 -0
- package/lib/typescript/components/PrCard.d.ts.map +1 -0
- package/lib/typescript/components/PricingTierCard.d.ts +46 -0
- package/lib/typescript/components/PricingTierCard.d.ts.map +1 -0
- package/lib/typescript/components/ProGate.d.ts +26 -0
- package/lib/typescript/components/ProGate.d.ts.map +1 -0
- package/lib/typescript/components/ProgressBar.d.ts +60 -0
- package/lib/typescript/components/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/components/Pulse.d.ts +8 -0
- package/lib/typescript/components/Pulse.d.ts.map +1 -0
- package/lib/typescript/components/QRCode.d.ts +17 -0
- package/lib/typescript/components/QRCode.d.ts.map +1 -0
- package/lib/typescript/components/RadarChart.d.ts +59 -0
- package/lib/typescript/components/RadarChart.d.ts.map +1 -0
- package/lib/typescript/components/RangeBar.d.ts +38 -0
- package/lib/typescript/components/RangeBar.d.ts.map +1 -0
- package/lib/typescript/components/ReauthDialog.d.ts +44 -0
- package/lib/typescript/components/ReauthDialog.d.ts.map +1 -0
- package/lib/typescript/components/RestTimer.d.ts +45 -0
- package/lib/typescript/components/RestTimer.d.ts.map +1 -0
- package/lib/typescript/components/RichText.d.ts +26 -0
- package/lib/typescript/components/RichText.d.ts.map +1 -0
- package/lib/typescript/components/RichTextEditor.d.ts +25 -0
- package/lib/typescript/components/RichTextEditor.d.ts.map +1 -0
- package/lib/typescript/components/Ring.d.ts +63 -0
- package/lib/typescript/components/Ring.d.ts.map +1 -0
- package/lib/typescript/components/RoseChart.d.ts +54 -0
- package/lib/typescript/components/RoseChart.d.ts.map +1 -0
- package/lib/typescript/components/SankeyChart.d.ts +93 -0
- package/lib/typescript/components/SankeyChart.d.ts.map +1 -0
- package/lib/typescript/components/ScatterChart.d.ts +59 -0
- package/lib/typescript/components/ScatterChart.d.ts.map +1 -0
- package/lib/typescript/components/ScrollProgress.d.ts +24 -0
- package/lib/typescript/components/ScrollProgress.d.ts.map +1 -0
- package/lib/typescript/components/SectionDivider.d.ts +18 -0
- package/lib/typescript/components/SectionDivider.d.ts.map +1 -0
- package/lib/typescript/components/SectionHeader.d.ts +18 -0
- package/lib/typescript/components/SectionHeader.d.ts.map +1 -0
- package/lib/typescript/components/SegmentedTabs.d.ts +85 -0
- package/lib/typescript/components/SegmentedTabs.d.ts.map +1 -0
- package/lib/typescript/components/Select.d.ts +47 -0
- package/lib/typescript/components/Select.d.ts.map +1 -0
- package/lib/typescript/components/SessionBanner.d.ts +45 -0
- package/lib/typescript/components/SessionBanner.d.ts.map +1 -0
- package/lib/typescript/components/SessionChart.d.ts +130 -0
- package/lib/typescript/components/SessionChart.d.ts.map +1 -0
- package/lib/typescript/components/SetTable.d.ts +58 -0
- package/lib/typescript/components/SetTable.d.ts.map +1 -0
- package/lib/typescript/components/ShareCard.d.ts +40 -0
- package/lib/typescript/components/ShareCard.d.ts.map +1 -0
- package/lib/typescript/components/Sheet.d.ts +22 -0
- package/lib/typescript/components/Sheet.d.ts.map +1 -0
- package/lib/typescript/components/Skeleton.d.ts +9 -0
- package/lib/typescript/components/Skeleton.d.ts.map +1 -0
- package/lib/typescript/components/Slider.d.ts +27 -0
- package/lib/typescript/components/Slider.d.ts.map +1 -0
- package/lib/typescript/components/Sortable.d.ts +25 -0
- package/lib/typescript/components/Sortable.d.ts.map +1 -0
- package/lib/typescript/components/SourceChip.d.ts +24 -0
- package/lib/typescript/components/SourceChip.d.ts.map +1 -0
- package/lib/typescript/components/Sparkline.d.ts +28 -0
- package/lib/typescript/components/Sparkline.d.ts.map +1 -0
- package/lib/typescript/components/Spinner.d.ts +23 -0
- package/lib/typescript/components/Spinner.d.ts.map +1 -0
- package/lib/typescript/components/SplitButton.d.ts +21 -0
- package/lib/typescript/components/SplitButton.d.ts.map +1 -0
- package/lib/typescript/components/SsoButton.d.ts +10 -0
- package/lib/typescript/components/SsoButton.d.ts.map +1 -0
- package/lib/typescript/components/StackedBar.d.ts +32 -0
- package/lib/typescript/components/StackedBar.d.ts.map +1 -0
- package/lib/typescript/components/Stat.d.ts +33 -0
- package/lib/typescript/components/Stat.d.ts.map +1 -0
- package/lib/typescript/components/StatTile.d.ts +90 -0
- package/lib/typescript/components/StatTile.d.ts.map +1 -0
- package/lib/typescript/components/StateLabel.d.ts +12 -0
- package/lib/typescript/components/StateLabel.d.ts.map +1 -0
- package/lib/typescript/components/StatusDot.d.ts +13 -0
- package/lib/typescript/components/StatusDot.d.ts.map +1 -0
- package/lib/typescript/components/Stepper.d.ts +47 -0
- package/lib/typescript/components/Stepper.d.ts.map +1 -0
- package/lib/typescript/components/SupplementChart.d.ts +121 -0
- package/lib/typescript/components/SupplementChart.d.ts.map +1 -0
- package/lib/typescript/components/TabBar.d.ts +52 -0
- package/lib/typescript/components/TabBar.d.ts.map +1 -0
- package/lib/typescript/components/Table.d.ts +64 -0
- package/lib/typescript/components/Table.d.ts.map +1 -0
- package/lib/typescript/components/Tabs.d.ts +16 -0
- package/lib/typescript/components/Tabs.d.ts.map +1 -0
- package/lib/typescript/components/TagCloud.d.ts +31 -0
- package/lib/typescript/components/TagCloud.d.ts.map +1 -0
- package/lib/typescript/components/TagInput.d.ts +37 -0
- package/lib/typescript/components/TagInput.d.ts.map +1 -0
- package/lib/typescript/components/TemplateCard.d.ts +43 -0
- package/lib/typescript/components/TemplateCard.d.ts.map +1 -0
- package/lib/typescript/components/Timeline.d.ts +18 -0
- package/lib/typescript/components/Timeline.d.ts.map +1 -0
- package/lib/typescript/components/TimelineChart.d.ts +124 -0
- package/lib/typescript/components/TimelineChart.d.ts.map +1 -0
- package/lib/typescript/components/Toast.d.ts +18 -0
- package/lib/typescript/components/Toast.d.ts.map +1 -0
- package/lib/typescript/components/Toggle.d.ts +22 -0
- package/lib/typescript/components/Toggle.d.ts.map +1 -0
- package/lib/typescript/components/Toolbar.d.ts +48 -0
- package/lib/typescript/components/Toolbar.d.ts.map +1 -0
- package/lib/typescript/components/Tooltip.d.ts +16 -0
- package/lib/typescript/components/Tooltip.d.ts.map +1 -0
- package/lib/typescript/components/TypingIndicator.d.ts +16 -0
- package/lib/typescript/components/TypingIndicator.d.ts.map +1 -0
- package/lib/typescript/components/UnitChart.d.ts +84 -0
- package/lib/typescript/components/UnitChart.d.ts.map +1 -0
- package/lib/typescript/components/VersionBadge.d.ts +17 -0
- package/lib/typescript/components/VersionBadge.d.ts.map +1 -0
- package/lib/typescript/components/VideoThumbnail.d.ts +24 -0
- package/lib/typescript/components/VideoThumbnail.d.ts.map +1 -0
- package/lib/typescript/components/VitalsStrip.d.ts +53 -0
- package/lib/typescript/components/VitalsStrip.d.ts.map +1 -0
- package/lib/typescript/components/WatchComplication.d.ts +84 -0
- package/lib/typescript/components/WatchComplication.d.ts.map +1 -0
- package/lib/typescript/components/ZoneBar.d.ts +33 -0
- package/lib/typescript/components/ZoneBar.d.ts.map +1 -0
- package/lib/typescript/components/ZonePyramid.d.ts +51 -0
- package/lib/typescript/components/ZonePyramid.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +288 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/internal/optionalBlur.d.ts +13 -0
- package/lib/typescript/internal/optionalBlur.d.ts.map +1 -0
- package/lib/typescript/internal/optionalHaptics.d.ts +7 -0
- package/lib/typescript/internal/optionalHaptics.d.ts.map +1 -0
- package/lib/typescript/theme.d.ts +5 -0
- package/lib/typescript/theme.d.ts.map +1 -0
- package/package.json +92 -3
- package/src/components/Accordion.tsx +130 -0
- package/src/components/AchievementBadge.tsx +217 -0
- package/src/components/Alert.tsx +149 -0
- package/src/components/AreaChart.tsx +546 -0
- package/src/components/AuroraBackground.tsx +198 -0
- package/src/components/Avatar.tsx +164 -0
- package/src/components/AvatarStack.tsx +94 -0
- package/src/components/BackLink.tsx +64 -0
- package/src/components/Badge.tsx +91 -0
- package/src/components/BarChart.tsx +643 -0
- package/src/components/BarFill.tsx +37 -0
- package/src/components/BeeswarmChart.tsx +567 -0
- package/src/components/BiomarkerRange.tsx +571 -0
- package/src/components/BodyBattery.tsx +551 -0
- package/src/components/BrandMark.tsx +107 -0
- package/src/components/BulletChart.tsx +433 -0
- package/src/components/Button.tsx +127 -0
- package/src/components/CaffeineClock.tsx +472 -0
- package/src/components/Card.tsx +139 -0
- package/src/components/CharCounter.tsx +113 -0
- package/src/components/ChartState.tsx +473 -0
- package/src/components/Checkbox.tsx +175 -0
- package/src/components/Chip.tsx +132 -0
- package/src/components/ChoiceChip.tsx +119 -0
- package/src/components/CodeBlock.tsx +106 -0
- package/src/components/CodeField.tsx +137 -0
- package/src/components/ColorPicker.tsx +169 -0
- package/src/components/ComboChart.tsx +476 -0
- package/src/components/Combobox.tsx +141 -0
- package/src/components/CompareChart.tsx +651 -0
- package/src/components/CompositeChart.tsx +609 -0
- package/src/components/Countdown.tsx +155 -0
- package/src/components/CreditCardVisual.tsx +151 -0
- package/src/components/DateField.tsx +346 -0
- package/src/components/DayTimelineBlocks.tsx +270 -0
- package/src/components/DayWheel.tsx +483 -0
- package/src/components/DeltaPill.tsx +114 -0
- package/src/components/DistributionChart.tsx +739 -0
- package/src/components/Divider.tsx +61 -0
- package/src/components/DonutChart.tsx +399 -0
- package/src/components/DotsLoader.tsx +74 -0
- package/src/components/EffectAttributionLine.tsx +82 -0
- package/src/components/EmptyState.tsx +108 -0
- package/src/components/EngagementBar.tsx +140 -0
- package/src/components/EnvironmentChart.tsx +522 -0
- package/src/components/Eyebrow.tsx +22 -0
- package/src/components/FocalPointPicker.tsx +193 -0
- package/src/components/FollowButton.tsx +78 -0
- package/src/components/ForecastCallout.tsx +100 -0
- package/src/components/FormField.tsx +217 -0
- package/src/components/FunnelChart.tsx +310 -0
- package/src/components/Gauge.tsx +329 -0
- package/src/components/GradientText.tsx +114 -0
- package/src/components/Heatmap.tsx +459 -0
- package/src/components/Highlight.tsx +36 -0
- package/src/components/Hypnogram.tsx +751 -0
- package/src/components/Icon.tsx +680 -0
- package/src/components/Input.tsx +125 -0
- package/src/components/InsightCard.tsx +130 -0
- package/src/components/KeyValue.tsx +83 -0
- package/src/components/LeaderboardRow.tsx +156 -0
- package/src/components/LineChart.tsx +1529 -0
- package/src/components/ListRow.tsx +153 -0
- package/src/components/Menu.tsx +156 -0
- package/src/components/MessageBubble.tsx +118 -0
- package/src/components/MessageComposer.tsx +202 -0
- package/src/components/MetaphorWidget.tsx +848 -0
- package/src/components/Meter.tsx +186 -0
- package/src/components/MetricTile.tsx +247 -0
- package/src/components/MiniRing.tsx +17 -0
- package/src/components/Modal.tsx +129 -0
- package/src/components/MuscleDiagram.tsx +319 -0
- package/src/components/NoteField.tsx +68 -0
- package/src/components/NotificationRow.tsx +230 -0
- package/src/components/Pagination.tsx +188 -0
- package/src/components/PasswordInput.tsx +111 -0
- package/src/components/PasswordStrengthMeter.tsx +104 -0
- package/src/components/PendingPatternCard.tsx +163 -0
- package/src/components/PhaseWheel.tsx +781 -0
- package/src/components/PkChart.tsx +539 -0
- package/src/components/Popover.tsx +206 -0
- package/src/components/PrBadge.tsx +51 -0
- package/src/components/PrCard.tsx +132 -0
- package/src/components/PricingTierCard.tsx +234 -0
- package/src/components/ProGate.tsx +194 -0
- package/src/components/ProgressBar.tsx +439 -0
- package/src/components/Pulse.tsx +17 -0
- package/src/components/QRCode.tsx +555 -0
- package/src/components/RadarChart.tsx +538 -0
- package/src/components/RangeBar.tsx +206 -0
- package/src/components/ReauthDialog.tsx +282 -0
- package/src/components/RestTimer.tsx +193 -0
- package/src/components/RichText.tsx +71 -0
- package/src/components/RichTextEditor.tsx +207 -0
- package/src/components/Ring.tsx +269 -0
- package/src/components/RoseChart.tsx +375 -0
- package/src/components/SankeyChart.tsx +687 -0
- package/src/components/ScatterChart.tsx +498 -0
- package/src/components/ScrollProgress.tsx +61 -0
- package/src/components/SectionDivider.tsx +51 -0
- package/src/components/SectionHeader.tsx +41 -0
- package/src/components/SegmentedTabs.tsx +389 -0
- package/src/components/Select.tsx +335 -0
- package/src/components/SessionBanner.tsx +195 -0
- package/src/components/SessionChart.tsx +917 -0
- package/src/components/SetTable.tsx +341 -0
- package/src/components/ShareCard.tsx +145 -0
- package/src/components/Sheet.tsx +212 -0
- package/src/components/Skeleton.tsx +13 -0
- package/src/components/Slider.tsx +187 -0
- package/src/components/Sortable.tsx +263 -0
- package/src/components/SourceChip.tsx +95 -0
- package/src/components/Sparkline.tsx +108 -0
- package/src/components/Spinner.tsx +128 -0
- package/src/components/SplitButton.tsx +111 -0
- package/src/components/SsoButton.tsx +93 -0
- package/src/components/StackedBar.tsx +138 -0
- package/src/components/Stat.tsx +118 -0
- package/src/components/StatTile.tsx +581 -0
- package/src/components/StateLabel.tsx +62 -0
- package/src/components/StatusDot.tsx +58 -0
- package/src/components/Stepper.tsx +359 -0
- package/src/components/SupplementChart.tsx +1044 -0
- package/src/components/TabBar.tsx +297 -0
- package/src/components/Table.tsx +448 -0
- package/src/components/Tabs.tsx +85 -0
- package/src/components/TagCloud.tsx +111 -0
- package/src/components/TagInput.tsx +325 -0
- package/src/components/TemplateCard.tsx +181 -0
- package/src/components/Timeline.tsx +132 -0
- package/src/components/TimelineChart.tsx +1035 -0
- package/src/components/Toast.tsx +138 -0
- package/src/components/Toggle.tsx +155 -0
- package/src/components/Toolbar.tsx +292 -0
- package/src/components/Tooltip.tsx +193 -0
- package/src/components/TypingIndicator.tsx +106 -0
- package/src/components/UnitChart.tsx +519 -0
- package/src/components/VersionBadge.tsx +129 -0
- package/src/components/VideoThumbnail.tsx +140 -0
- package/src/components/VitalsStrip.tsx +636 -0
- package/src/components/WatchComplication.tsx +536 -0
- package/src/components/ZoneBar.tsx +148 -0
- package/src/components/ZonePyramid.tsx +405 -0
- package/src/components/__tests__/Chip.test.tsx +33 -0
- package/src/components/__tests__/CodeInput.test.tsx +62 -0
- package/src/components/__tests__/DeltaPill.test.tsx +41 -0
- package/src/components/__tests__/GradientText.test.tsx +69 -0
- package/src/components/__tests__/Icon.test.tsx +61 -0
- package/src/components/__tests__/Input.test.tsx +30 -0
- package/src/components/__tests__/LineChart.test.tsx +62 -0
- package/src/components/__tests__/ListRow.test.tsx +28 -0
- package/src/components/__tests__/PkChart.test.tsx +47 -0
- package/src/components/__tests__/PrBadge.test.tsx +32 -0
- package/src/components/__tests__/PrCard.test.tsx +49 -0
- package/src/components/__tests__/RestTimer.test.tsx +94 -0
- package/src/components/__tests__/SegmentedTabs.test.tsx +58 -0
- package/src/components/__tests__/SessionBanner.test.tsx +96 -0
- package/src/components/__tests__/SetTable.test.tsx +105 -0
- package/src/components/__tests__/SourceChip.test.tsx +82 -0
- package/src/components/__tests__/SupplementChart.test.tsx +71 -0
- package/src/components/__tests__/Table.test.tsx +81 -0
- package/src/components/__tests__/TemplateCard.test.tsx +85 -0
- package/src/components/__tests__/Toggle.test.tsx +49 -0
- package/src/components/__tests__/UnitChart.test.tsx +44 -0
- package/src/components/__tests__/markup.ts +142 -0
- package/src/components/__tests__/react-dom-server.d.ts +11 -0
- package/src/index.ts +320 -0
- package/src/internal/optionalBlur.ts +37 -0
- package/src/internal/optionalHaptics.ts +38 -0
- package/src/theme.ts +14 -0
- package/README.md +0 -3
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import {
|
|
2
|
+
View,
|
|
3
|
+
Text,
|
|
4
|
+
StyleSheet,
|
|
5
|
+
type ViewProps,
|
|
6
|
+
type DimensionValue,
|
|
7
|
+
} from 'react-native';
|
|
8
|
+
import { colors, fonts } from '@lockin90/tokens';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Marker tone — colors the value marker dot.
|
|
12
|
+
* 'auto' = colored by which zone the value lands in (low→warn, optimal→ok, high→bad).
|
|
13
|
+
*/
|
|
14
|
+
export type RangeBarMarkerTone = 'auto' | 'ok' | 'warn' | 'bad';
|
|
15
|
+
|
|
16
|
+
export interface RangeBarProps extends ViewProps {
|
|
17
|
+
/** the current value, in [min, max] */
|
|
18
|
+
value: number;
|
|
19
|
+
/** range floor (default 0) */
|
|
20
|
+
min?: number;
|
|
21
|
+
/** range ceiling (default 100) */
|
|
22
|
+
max?: number;
|
|
23
|
+
/** lower optimal boundary — [min, low] is the low (amber) zone */
|
|
24
|
+
low: number;
|
|
25
|
+
/** upper optimal boundary — [high, max] is the high (red) zone */
|
|
26
|
+
high: number;
|
|
27
|
+
/** mono uppercase caption shown above the track */
|
|
28
|
+
label?: string;
|
|
29
|
+
/** suffix after the value readout (e.g. 'mg/dL', 'ng/dL') */
|
|
30
|
+
unit?: string;
|
|
31
|
+
/** show the numeric value (+ unit) on the label row */
|
|
32
|
+
showValue?: boolean;
|
|
33
|
+
/** marker color — 'auto' picks by zone (default), or force ok/warn/bad */
|
|
34
|
+
markerTone?: RangeBarMarkerTone;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** Clamp x into [lo, hi]. */
|
|
38
|
+
const clamp = (x: number, lo: number, hi: number) => Math.max(lo, Math.min(hi, x));
|
|
39
|
+
|
|
40
|
+
/** Marker tone → its color. */
|
|
41
|
+
const MARKER_COLOR: Record<Exclude<RangeBarMarkerTone, 'auto'>, string> = {
|
|
42
|
+
ok: colors.zoneHigh,
|
|
43
|
+
warn: colors.zoneMid,
|
|
44
|
+
bad: colors.zoneLow,
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
// zone fills (mirror the web track's tinted gradient stops)
|
|
48
|
+
const LOW_FILL = 'rgba(255,77,109,0.30)';
|
|
49
|
+
const HIGH_FILL = 'rgba(255,77,109,0.30)';
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* RangeBar — a reference-range bar for biomarkers / labs.
|
|
53
|
+
*
|
|
54
|
+
* A horizontal track split into low / optimal / high colored zones, with a
|
|
55
|
+
* marker dot showing where the current value falls (e.g. fasting glucose vs its
|
|
56
|
+
* healthy range). The three zones are [min,low] low (amber/red-tinted),
|
|
57
|
+
* [low,high] optimal (green band), [high,max] high (red-tinted); the marker
|
|
58
|
+
* auto-colors by the zone it lands in unless `markerTone` forces it. Mirrors the
|
|
59
|
+
* web RangeBar (same export + prop API).
|
|
60
|
+
*/
|
|
61
|
+
export function RangeBar({
|
|
62
|
+
value,
|
|
63
|
+
min = 0,
|
|
64
|
+
max = 100,
|
|
65
|
+
low,
|
|
66
|
+
high,
|
|
67
|
+
label,
|
|
68
|
+
unit,
|
|
69
|
+
showValue = false,
|
|
70
|
+
markerTone = 'auto',
|
|
71
|
+
style,
|
|
72
|
+
...rest
|
|
73
|
+
}: RangeBarProps) {
|
|
74
|
+
const span = max - min || 1;
|
|
75
|
+
const lowFrac = clamp((low - min) / span, 0, 1);
|
|
76
|
+
const highFrac = clamp((high - min) / span, 0, 1);
|
|
77
|
+
const posFrac = clamp((value - min) / span, 0, 1);
|
|
78
|
+
|
|
79
|
+
// auto tone reflects which zone the value lands in
|
|
80
|
+
const autoTone: Exclude<RangeBarMarkerTone, 'auto'> =
|
|
81
|
+
value < low ? 'warn' : value > high ? 'bad' : 'ok';
|
|
82
|
+
const tone = markerTone === 'auto' ? autoTone : markerTone;
|
|
83
|
+
const markerColor = MARKER_COLOR[tone];
|
|
84
|
+
|
|
85
|
+
const hasHeader = label != null || showValue;
|
|
86
|
+
|
|
87
|
+
const lowW = `${lowFrac * 100}%` as DimensionValue;
|
|
88
|
+
const optW = `${Math.max(0, highFrac - lowFrac) * 100}%` as DimensionValue;
|
|
89
|
+
const highW = `${Math.max(0, 1 - highFrac) * 100}%` as DimensionValue;
|
|
90
|
+
const bandLeft = `${lowFrac * 100}%` as DimensionValue;
|
|
91
|
+
const markerLeft = `${posFrac * 100}%` as DimensionValue;
|
|
92
|
+
|
|
93
|
+
const valueColor =
|
|
94
|
+
tone === 'warn' ? colors.zoneMid : tone === 'bad' ? colors.zoneLow : colors.textDim;
|
|
95
|
+
|
|
96
|
+
return (
|
|
97
|
+
<View style={[styles.root, style]} {...rest}>
|
|
98
|
+
{hasHeader && (
|
|
99
|
+
<View style={styles.head}>
|
|
100
|
+
{label != null && <Text style={styles.label}>{label}</Text>}
|
|
101
|
+
{showValue && (
|
|
102
|
+
<Text style={[styles.value, { color: valueColor }]}>
|
|
103
|
+
{value}
|
|
104
|
+
{unit != null && <Text style={styles.unit}>{unit}</Text>}
|
|
105
|
+
</Text>
|
|
106
|
+
)}
|
|
107
|
+
</View>
|
|
108
|
+
)}
|
|
109
|
+
|
|
110
|
+
<View style={styles.track}>
|
|
111
|
+
{/* 3 tinted zone segments sized by their fractions */}
|
|
112
|
+
<View style={[styles.zone, { width: lowW, backgroundColor: LOW_FILL }]} />
|
|
113
|
+
<View style={[styles.zone, { width: optW, backgroundColor: 'rgba(52,245,197,0.28)' }]} />
|
|
114
|
+
<View style={[styles.zone, { width: highW, backgroundColor: HIGH_FILL }]} />
|
|
115
|
+
|
|
116
|
+
{/* the in-range (green) optimal band, drawn over the optimal segment */}
|
|
117
|
+
<View
|
|
118
|
+
style={[styles.band, { left: bandLeft, width: optW }]}
|
|
119
|
+
pointerEvents="none"
|
|
120
|
+
/>
|
|
121
|
+
|
|
122
|
+
{/* the value marker dot, tone-colored, at the value's fraction */}
|
|
123
|
+
<View
|
|
124
|
+
style={[
|
|
125
|
+
styles.marker,
|
|
126
|
+
{
|
|
127
|
+
left: markerLeft,
|
|
128
|
+
backgroundColor: markerColor,
|
|
129
|
+
shadowColor: markerColor,
|
|
130
|
+
},
|
|
131
|
+
]}
|
|
132
|
+
pointerEvents="none"
|
|
133
|
+
/>
|
|
134
|
+
</View>
|
|
135
|
+
</View>
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
const TRACK_H = 10;
|
|
140
|
+
const MARKER = 14;
|
|
141
|
+
|
|
142
|
+
const styles = StyleSheet.create({
|
|
143
|
+
root: { width: '100%', gap: 8 },
|
|
144
|
+
head: {
|
|
145
|
+
flexDirection: 'row',
|
|
146
|
+
alignItems: 'baseline',
|
|
147
|
+
justifyContent: 'space-between',
|
|
148
|
+
gap: 8,
|
|
149
|
+
},
|
|
150
|
+
label: {
|
|
151
|
+
fontFamily: fonts.mono,
|
|
152
|
+
fontSize: 10.5,
|
|
153
|
+
fontWeight: '500',
|
|
154
|
+
textTransform: 'uppercase',
|
|
155
|
+
letterSpacing: 1.68,
|
|
156
|
+
color: colors.textFaint,
|
|
157
|
+
},
|
|
158
|
+
value: {
|
|
159
|
+
fontFamily: fonts.mono,
|
|
160
|
+
fontSize: 12,
|
|
161
|
+
fontWeight: '500',
|
|
162
|
+
color: colors.textDim,
|
|
163
|
+
},
|
|
164
|
+
unit: { color: colors.textFaint },
|
|
165
|
+
|
|
166
|
+
/* the 3-zone track */
|
|
167
|
+
track: {
|
|
168
|
+
position: 'relative',
|
|
169
|
+
flexDirection: 'row',
|
|
170
|
+
height: TRACK_H,
|
|
171
|
+
borderRadius: 999,
|
|
172
|
+
borderWidth: 1,
|
|
173
|
+
borderColor: colors.border,
|
|
174
|
+
overflow: 'visible',
|
|
175
|
+
},
|
|
176
|
+
zone: {
|
|
177
|
+
height: '100%',
|
|
178
|
+
},
|
|
179
|
+
|
|
180
|
+
/* the in-range green optimal band */
|
|
181
|
+
band: {
|
|
182
|
+
position: 'absolute',
|
|
183
|
+
top: 0,
|
|
184
|
+
bottom: 0,
|
|
185
|
+
borderRadius: 999,
|
|
186
|
+
backgroundColor: 'rgba(52,245,197,0.45)',
|
|
187
|
+
},
|
|
188
|
+
|
|
189
|
+
/* the value marker dot */
|
|
190
|
+
marker: {
|
|
191
|
+
position: 'absolute',
|
|
192
|
+
top: '50%',
|
|
193
|
+
width: MARKER,
|
|
194
|
+
height: MARKER,
|
|
195
|
+
borderRadius: MARKER / 2,
|
|
196
|
+
marginLeft: -MARKER / 2,
|
|
197
|
+
marginTop: -MARKER / 2,
|
|
198
|
+
borderWidth: 2.5,
|
|
199
|
+
borderColor: colors.bg0,
|
|
200
|
+
shadowOpacity: 0.9,
|
|
201
|
+
shadowRadius: 6,
|
|
202
|
+
shadowOffset: { width: 0, height: 0 },
|
|
203
|
+
elevation: 4,
|
|
204
|
+
zIndex: 3,
|
|
205
|
+
},
|
|
206
|
+
});
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
|
+
import { View, Text, Pressable, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import Svg, { Path } from 'react-native-svg';
|
|
4
|
+
import { colors, radii, fonts } from '@lockin90/tokens';
|
|
5
|
+
import { Modal } from './Modal';
|
|
6
|
+
import { Input } from './Input';
|
|
7
|
+
import { Button } from './Button';
|
|
8
|
+
import { Alert } from './Alert';
|
|
9
|
+
|
|
10
|
+
export interface ReauthDialogProps {
|
|
11
|
+
/** Show the dialog. When false, nothing renders. */
|
|
12
|
+
open: boolean;
|
|
13
|
+
/** Called on scrim tap, Android back, close-button, or Cancel. */
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
/** Password re-auth path — receives the field value on Confirm. */
|
|
16
|
+
onSubmitPassword?: (password: string) => void;
|
|
17
|
+
/** Google re-auth path — invoked by the "Continue with Google" button. */
|
|
18
|
+
onGoogle?: () => void;
|
|
19
|
+
/** Apple re-auth path — invoked by the "Continue with Apple" button. */
|
|
20
|
+
onApple?: () => void;
|
|
21
|
+
/** Header title. */
|
|
22
|
+
title?: string;
|
|
23
|
+
/** Short reassurance line under the title. */
|
|
24
|
+
description?: string;
|
|
25
|
+
/** Show the password field + Confirm button (default true). */
|
|
26
|
+
hasPassword?: boolean;
|
|
27
|
+
/** Show the "Continue with Google" button (default false). */
|
|
28
|
+
hasGoogle?: boolean;
|
|
29
|
+
/** Show the "Continue with Apple" button (default false). */
|
|
30
|
+
hasApple?: boolean;
|
|
31
|
+
/** Disable inputs + show loading on submit. */
|
|
32
|
+
loading?: boolean;
|
|
33
|
+
/** Error message rendered in a danger Alert above the fields. */
|
|
34
|
+
error?: string;
|
|
35
|
+
/** Localizable labels — English defaults; pass translated strings to localize. */
|
|
36
|
+
passwordLabel?: string;
|
|
37
|
+
passwordPlaceholder?: string;
|
|
38
|
+
confirmLabel?: string;
|
|
39
|
+
confirmingLabel?: string;
|
|
40
|
+
cancelLabel?: string;
|
|
41
|
+
googleLabel?: string;
|
|
42
|
+
appleLabel?: string;
|
|
43
|
+
orLabel?: string;
|
|
44
|
+
style?: StyleProp<ViewStyle>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** Google "G" mark — matches the auth design's SSO glyph. */
|
|
48
|
+
function GoogleMark() {
|
|
49
|
+
return (
|
|
50
|
+
<Svg width={18} height={18} viewBox="0 0 24 24">
|
|
51
|
+
<Path
|
|
52
|
+
fill="#4285F4"
|
|
53
|
+
d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.76h3.56c2.08-1.92 3.28-4.74 3.28-8.09z"
|
|
54
|
+
/>
|
|
55
|
+
<Path
|
|
56
|
+
fill="#34A853"
|
|
57
|
+
d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.56-2.76c-.98.66-2.23 1.06-3.72 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84A11 11 0 0 0 12 23z"
|
|
58
|
+
/>
|
|
59
|
+
<Path
|
|
60
|
+
fill="#FBBC05"
|
|
61
|
+
d="M5.84 14.11a6.6 6.6 0 0 1 0-4.22V7.05H2.18a11 11 0 0 0 0 9.9l3.66-2.84z"
|
|
62
|
+
/>
|
|
63
|
+
<Path
|
|
64
|
+
fill="#EA4335"
|
|
65
|
+
d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1A11 11 0 0 0 2.18 7.05l3.66 2.84C6.71 7.31 9.14 5.38 12 5.38z"
|
|
66
|
+
/>
|
|
67
|
+
</Svg>
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** Apple mark — the SSO glyph, tinted to the current text color. */
|
|
72
|
+
function AppleMark() {
|
|
73
|
+
return (
|
|
74
|
+
<Svg width={17} height={17} viewBox="0 0 24 24">
|
|
75
|
+
<Path
|
|
76
|
+
fill={colors.text}
|
|
77
|
+
d="M16.37 12.7c.03 3.02 2.65 4.02 2.68 4.03-.02.07-.42 1.44-1.38 2.85-.83 1.22-1.7 2.44-3.06 2.46-1.34.03-1.77-.79-3.3-.79-1.53 0-2.01.77-3.28.82-1.32.05-2.32-1.32-3.16-2.54-1.72-2.5-3.03-7.05-1.27-10.12.87-1.53 2.44-2.5 4.14-2.52 1.3-.03 2.52.87 3.31.87.79 0 2.28-1.08 3.84-.92.65.03 2.49.26 3.67 1.99-.1.06-2.19 1.28-2.17 3.51M14.06 4.5c.7-.85 1.17-2.03 1.04-3.2-1 .04-2.22.67-2.94 1.51-.64.75-1.2 1.95-1.05 3.1 1.12.09 2.25-.57 2.95-1.41"
|
|
78
|
+
/>
|
|
79
|
+
</Svg>
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Step-up re-authentication dialog — "confirm it's you" before a sensitive
|
|
85
|
+
* action. A centered Modal with an optional password path + optional Google /
|
|
86
|
+
* Apple SSO paths; local password state is kept internal and cleared on close.
|
|
87
|
+
*/
|
|
88
|
+
export function ReauthDialog({
|
|
89
|
+
open,
|
|
90
|
+
onClose,
|
|
91
|
+
onSubmitPassword,
|
|
92
|
+
onGoogle,
|
|
93
|
+
onApple,
|
|
94
|
+
title = "Confirm it's you",
|
|
95
|
+
description = 'For your security, re-enter your password to continue.',
|
|
96
|
+
hasPassword = true,
|
|
97
|
+
hasGoogle = false,
|
|
98
|
+
hasApple = false,
|
|
99
|
+
loading = false,
|
|
100
|
+
error,
|
|
101
|
+
passwordLabel = 'Password',
|
|
102
|
+
passwordPlaceholder = 'Your password',
|
|
103
|
+
confirmLabel = 'Confirm',
|
|
104
|
+
confirmingLabel = 'Confirming…',
|
|
105
|
+
cancelLabel = 'Cancel',
|
|
106
|
+
googleLabel = 'Continue with Google',
|
|
107
|
+
appleLabel = 'Continue with Apple',
|
|
108
|
+
orLabel = 'or',
|
|
109
|
+
style,
|
|
110
|
+
}: ReauthDialogProps) {
|
|
111
|
+
const [password, setPassword] = useState('');
|
|
112
|
+
|
|
113
|
+
// Drop the field whenever the dialog closes so it never leaks across opens.
|
|
114
|
+
useEffect(() => {
|
|
115
|
+
if (!open) setPassword('');
|
|
116
|
+
}, [open]);
|
|
117
|
+
|
|
118
|
+
const close = () => {
|
|
119
|
+
setPassword('');
|
|
120
|
+
onClose();
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
const submit = () => {
|
|
124
|
+
if (loading || !password) return;
|
|
125
|
+
onSubmitPassword?.(password);
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
return (
|
|
129
|
+
<Modal open={open} onClose={close} title={title} size="sm">
|
|
130
|
+
<View style={[styles.body, style]}>
|
|
131
|
+
{description ? <Text style={styles.desc}>{description}</Text> : null}
|
|
132
|
+
|
|
133
|
+
{error ? (
|
|
134
|
+
<Alert tone="danger" style={styles.error}>
|
|
135
|
+
{error}
|
|
136
|
+
</Alert>
|
|
137
|
+
) : null}
|
|
138
|
+
|
|
139
|
+
{hasPassword ? (
|
|
140
|
+
<View style={styles.pw}>
|
|
141
|
+
<Input
|
|
142
|
+
label={passwordLabel}
|
|
143
|
+
secureTextEntry
|
|
144
|
+
autoComplete="current-password"
|
|
145
|
+
textContentType="password"
|
|
146
|
+
placeholder={passwordPlaceholder}
|
|
147
|
+
value={password}
|
|
148
|
+
editable={!loading}
|
|
149
|
+
invalid={Boolean(error)}
|
|
150
|
+
onChangeText={setPassword}
|
|
151
|
+
onSubmitEditing={submit}
|
|
152
|
+
/>
|
|
153
|
+
<Button
|
|
154
|
+
variant="primary"
|
|
155
|
+
title={loading ? confirmingLabel : confirmLabel}
|
|
156
|
+
style={styles.submit}
|
|
157
|
+
disabled={loading || !password}
|
|
158
|
+
onPress={submit}
|
|
159
|
+
/>
|
|
160
|
+
</View>
|
|
161
|
+
) : null}
|
|
162
|
+
|
|
163
|
+
{hasPassword && (hasGoogle || hasApple) ? (
|
|
164
|
+
<View style={styles.or}>
|
|
165
|
+
<View style={styles.ln} />
|
|
166
|
+
<Text style={styles.orText}>{orLabel}</Text>
|
|
167
|
+
<View style={styles.ln} />
|
|
168
|
+
</View>
|
|
169
|
+
) : null}
|
|
170
|
+
|
|
171
|
+
{hasGoogle ? (
|
|
172
|
+
<Pressable
|
|
173
|
+
accessibilityRole="button"
|
|
174
|
+
accessibilityLabel="Continue with Google"
|
|
175
|
+
disabled={loading}
|
|
176
|
+
onPress={() => onGoogle?.()}
|
|
177
|
+
>
|
|
178
|
+
{({ pressed }) => (
|
|
179
|
+
<View style={[styles.google, pressed && styles.pressed, loading && styles.disabled]}>
|
|
180
|
+
<GoogleMark />
|
|
181
|
+
<Text style={styles.googleLabel}>{googleLabel}</Text>
|
|
182
|
+
</View>
|
|
183
|
+
)}
|
|
184
|
+
</Pressable>
|
|
185
|
+
) : null}
|
|
186
|
+
|
|
187
|
+
{hasApple ? (
|
|
188
|
+
<Pressable
|
|
189
|
+
accessibilityRole="button"
|
|
190
|
+
accessibilityLabel="Continue with Apple"
|
|
191
|
+
disabled={loading}
|
|
192
|
+
onPress={() => onApple?.()}
|
|
193
|
+
>
|
|
194
|
+
{({ pressed }) => (
|
|
195
|
+
<View style={[styles.apple, pressed && styles.pressed, loading && styles.disabled]}>
|
|
196
|
+
<AppleMark />
|
|
197
|
+
<Text style={styles.appleLabel}>{appleLabel}</Text>
|
|
198
|
+
</View>
|
|
199
|
+
)}
|
|
200
|
+
</Pressable>
|
|
201
|
+
) : null}
|
|
202
|
+
|
|
203
|
+
<Button
|
|
204
|
+
variant="ghost"
|
|
205
|
+
title={cancelLabel}
|
|
206
|
+
style={styles.submit}
|
|
207
|
+
disabled={loading}
|
|
208
|
+
onPress={close}
|
|
209
|
+
/>
|
|
210
|
+
</View>
|
|
211
|
+
</Modal>
|
|
212
|
+
);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
const styles = StyleSheet.create({
|
|
216
|
+
body: { gap: 16 },
|
|
217
|
+
desc: {
|
|
218
|
+
fontFamily: fonts.ui,
|
|
219
|
+
fontSize: 14,
|
|
220
|
+
lineHeight: 22,
|
|
221
|
+
color: colors.textDim,
|
|
222
|
+
},
|
|
223
|
+
error: {},
|
|
224
|
+
// match web: input→Confirm gap == the body's 16px column gap (== Confirm→Cancel)
|
|
225
|
+
pw: { gap: 16 },
|
|
226
|
+
submit: { width: '100%' },
|
|
227
|
+
or: {
|
|
228
|
+
flexDirection: 'row',
|
|
229
|
+
alignItems: 'center',
|
|
230
|
+
gap: 12,
|
|
231
|
+
},
|
|
232
|
+
ln: { flex: 1, height: 1, backgroundColor: colors.border },
|
|
233
|
+
orText: {
|
|
234
|
+
fontFamily: fonts.mono,
|
|
235
|
+
fontSize: 11,
|
|
236
|
+
letterSpacing: 0.9,
|
|
237
|
+
textTransform: 'uppercase',
|
|
238
|
+
color: colors.textFaint,
|
|
239
|
+
},
|
|
240
|
+
// Mirrors Button's `default` variant (glass2 bg + border2 pill) so the
|
|
241
|
+
// Google glyph + label sit in the same chrome as the web Button.
|
|
242
|
+
google: {
|
|
243
|
+
flexDirection: 'row',
|
|
244
|
+
alignItems: 'center',
|
|
245
|
+
justifyContent: 'center',
|
|
246
|
+
gap: 9,
|
|
247
|
+
width: '100%',
|
|
248
|
+
paddingVertical: 12,
|
|
249
|
+
paddingHorizontal: 20,
|
|
250
|
+
borderRadius: radii.pill,
|
|
251
|
+
backgroundColor: colors.glass2,
|
|
252
|
+
borderWidth: 1,
|
|
253
|
+
borderColor: colors.border2,
|
|
254
|
+
},
|
|
255
|
+
googleLabel: {
|
|
256
|
+
fontFamily: fonts.ui,
|
|
257
|
+
fontSize: 14,
|
|
258
|
+
fontWeight: '600',
|
|
259
|
+
color: colors.text,
|
|
260
|
+
},
|
|
261
|
+
apple: {
|
|
262
|
+
flexDirection: 'row',
|
|
263
|
+
alignItems: 'center',
|
|
264
|
+
justifyContent: 'center',
|
|
265
|
+
gap: 9,
|
|
266
|
+
width: '100%',
|
|
267
|
+
paddingVertical: 12,
|
|
268
|
+
paddingHorizontal: 20,
|
|
269
|
+
borderRadius: radii.pill,
|
|
270
|
+
backgroundColor: colors.glass2,
|
|
271
|
+
borderWidth: 1,
|
|
272
|
+
borderColor: colors.border2,
|
|
273
|
+
},
|
|
274
|
+
appleLabel: {
|
|
275
|
+
fontFamily: fonts.ui,
|
|
276
|
+
fontSize: 14,
|
|
277
|
+
fontWeight: '600',
|
|
278
|
+
color: colors.text,
|
|
279
|
+
},
|
|
280
|
+
pressed: { opacity: 0.85, transform: [{ scale: 0.98 }] },
|
|
281
|
+
disabled: { opacity: 0.5 },
|
|
282
|
+
});
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { useId, type ReactNode } from 'react';
|
|
2
|
+
import { View, Text, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import Svg, { Circle, Defs, FeGaussianBlur, Filter, G } from 'react-native-svg';
|
|
4
|
+
import { colors, fonts } from '@lockin90/tokens';
|
|
5
|
+
import { Button } from './Button';
|
|
6
|
+
|
|
7
|
+
export interface RestTimerProps {
|
|
8
|
+
/** Seconds left (drives the arc + the centered readout). */
|
|
9
|
+
remainingSec: number;
|
|
10
|
+
/** Full rest duration in seconds (the 100% arc). */
|
|
11
|
+
totalSec: number;
|
|
12
|
+
/** Small mono caption inside the ring, above the time (default `'Rest'`). */
|
|
13
|
+
label?: string;
|
|
14
|
+
/** Dim line next to the ring (e.g. `'Next: Bench Press · set 3 of 5'`). */
|
|
15
|
+
sublabel?: string;
|
|
16
|
+
/** Trailing slot on the far right (e.g. a live HR readout). */
|
|
17
|
+
trailing?: ReactNode;
|
|
18
|
+
/** When given, renders the ghost `Skip` button. */
|
|
19
|
+
onSkip?: () => void;
|
|
20
|
+
/** Dims the arc + readout while the countdown is held. */
|
|
21
|
+
paused?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Compact bar layout — the design's Active rest bar (`.rb`/`.rg`): a 42px
|
|
24
|
+
* ring (r 18, stroke 4) with ONLY the mint time inside; `label` moves OUT
|
|
25
|
+
* of the ring into a text column above `sublabel` (mono caption over bold
|
|
26
|
+
* display line, e.g. "Rest" / "Next 1:05"); Skip + `trailing` sit inline on
|
|
27
|
+
* the right. No card chrome — the consumer wraps it in a Card. Default
|
|
28
|
+
* `false` keeps the 116px hero ring.
|
|
29
|
+
*/
|
|
30
|
+
compact?: boolean;
|
|
31
|
+
style?: StyleProp<ViewStyle>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* ring geometry — 116px viewBox, r 50 (matches the web twin exactly) */
|
|
35
|
+
const SIZE = 116;
|
|
36
|
+
const R = 50;
|
|
37
|
+
const C = 2 * Math.PI * R;
|
|
38
|
+
/* compact ring geometry — the design's Active rest bar `.rg` (42px, r 18) */
|
|
39
|
+
const SIZE_COMPACT = 42;
|
|
40
|
+
const R_COMPACT = 18;
|
|
41
|
+
|
|
42
|
+
/** `95 → '1:35'` — minutes:seconds, mono-friendly. */
|
|
43
|
+
export function formatRestTime(sec: number): string {
|
|
44
|
+
const s = Math.max(0, Math.round(sec));
|
|
45
|
+
const m = Math.floor(s / 60);
|
|
46
|
+
const r = s % 60;
|
|
47
|
+
return `${m}:${String(r).padStart(2, '0')}`;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** Remaining fraction, clamped 0–1. */
|
|
51
|
+
export function restFraction(remainingSec: number, totalSec: number): number {
|
|
52
|
+
if (!(totalSec > 0)) return 0;
|
|
53
|
+
return Math.max(0, Math.min(1, remainingSec / totalSec));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* RestTimer — the between-sets countdown: a mint arc draining on a faint
|
|
58
|
+
* track with the remaining time centered in mono, plus an optional sublabel,
|
|
59
|
+
* a ghost Skip transport, and a `trailing` slot. `compact` swaps the 116px
|
|
60
|
+
* hero ring for the design's Active rest bar (`.rb`/`.rg`): a 42px ring
|
|
61
|
+
* holding only the mint time, label + sublabel stacked beside it. Native twin
|
|
62
|
+
* of the web `RestTimer` (same prop API + geometry). Purely prop-driven — the
|
|
63
|
+
* caller ticks `remainingSec`; the arc re-renders per tick (the web's
|
|
64
|
+
* dashoffset transition has no native precedent — same rule as Ring's static
|
|
65
|
+
* pulse). The mint glow is a real Gaussian-blurred duplicate arc.
|
|
66
|
+
*/
|
|
67
|
+
export function RestTimer({
|
|
68
|
+
remainingSec,
|
|
69
|
+
totalSec,
|
|
70
|
+
label = 'Rest',
|
|
71
|
+
sublabel,
|
|
72
|
+
trailing,
|
|
73
|
+
onSkip,
|
|
74
|
+
paused = false,
|
|
75
|
+
compact = false,
|
|
76
|
+
style,
|
|
77
|
+
}: RestTimerProps) {
|
|
78
|
+
const uid = useId().replace(/[^a-zA-Z0-9]/g, '');
|
|
79
|
+
const blurId = `lk-resttimer-blur-${uid}`;
|
|
80
|
+
const frac = restFraction(remainingSec, totalSec);
|
|
81
|
+
const time = formatRestTime(remainingSec);
|
|
82
|
+
/* same dasharray math on both scales — only the geometry changes */
|
|
83
|
+
const size = compact ? SIZE_COMPACT : SIZE;
|
|
84
|
+
const r = compact ? R_COMPACT : R;
|
|
85
|
+
const strokeWidth = compact ? 4 : 8;
|
|
86
|
+
const c = compact ? 2 * Math.PI * R_COMPACT : C;
|
|
87
|
+
const offset = c * (1 - frac);
|
|
88
|
+
const hasSide = sublabel != null || onSkip != null;
|
|
89
|
+
const half = size / 2;
|
|
90
|
+
const skip = onSkip ? <Button variant="ghost" size="sm" title="Skip" onPress={onSkip} /> : null;
|
|
91
|
+
|
|
92
|
+
const arcProps = {
|
|
93
|
+
cx: half,
|
|
94
|
+
cy: half,
|
|
95
|
+
r,
|
|
96
|
+
strokeWidth,
|
|
97
|
+
stroke: colors.mint,
|
|
98
|
+
fill: 'none' as const,
|
|
99
|
+
strokeLinecap: 'round' as const,
|
|
100
|
+
strokeDasharray: `${c.toFixed(2)}`,
|
|
101
|
+
strokeDashoffset: offset,
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
return (
|
|
105
|
+
<View
|
|
106
|
+
accessibilityLabel={`${label}: ${time} remaining${paused ? ', paused' : ''}`}
|
|
107
|
+
style={[styles.row, compact && styles.rowCompact, style]}
|
|
108
|
+
>
|
|
109
|
+
<View style={compact ? styles.ringCompact : styles.ring}>
|
|
110
|
+
<Svg width={size} height={size} viewBox={`0 0 ${size} ${size}`}>
|
|
111
|
+
{!paused ? (
|
|
112
|
+
<Defs>
|
|
113
|
+
<Filter id={blurId} filterUnits="userSpaceOnUse" x={-12} y={-12} width={size + 24} height={size + 24}>
|
|
114
|
+
<FeGaussianBlur stdDeviation={3} />
|
|
115
|
+
</Filter>
|
|
116
|
+
</Defs>
|
|
117
|
+
) : null}
|
|
118
|
+
<Circle cx={half} cy={half} r={r} strokeWidth={strokeWidth} stroke="rgba(255,255,255,0.07)" fill="none" />
|
|
119
|
+
<G rotation={-90} originX={half} originY={half} opacity={paused ? 0.4 : 1}>
|
|
120
|
+
{/* glow — a Gaussian-blurred duplicate arc (the web drop-shadow) */}
|
|
121
|
+
{!paused ? <Circle {...arcProps} opacity={0.45} filter={`url(#${blurId})`} /> : null}
|
|
122
|
+
<Circle {...arcProps} />
|
|
123
|
+
</G>
|
|
124
|
+
</Svg>
|
|
125
|
+
<View style={styles.center} pointerEvents="none">
|
|
126
|
+
{/* compact: ONLY the mint time inside the ring (design `.rg .num`) */}
|
|
127
|
+
{!compact && <Text style={styles.label}>{label.toUpperCase()}</Text>}
|
|
128
|
+
<Text
|
|
129
|
+
style={[compact ? styles.timeCompact : styles.time, paused && styles.timePaused]}
|
|
130
|
+
>
|
|
131
|
+
{time}
|
|
132
|
+
</Text>
|
|
133
|
+
</View>
|
|
134
|
+
</View>
|
|
135
|
+
{compact ? (
|
|
136
|
+
<>
|
|
137
|
+
{/* compact: the label moves OUT of the ring into the text column
|
|
138
|
+
(design `.rb .rl` over `.rb .rt`) */}
|
|
139
|
+
<View style={styles.mainCompact}>
|
|
140
|
+
<Text style={styles.labelCompact}>{label.toUpperCase()}</Text>
|
|
141
|
+
{sublabel != null && <Text style={styles.subCompact}>{sublabel}</Text>}
|
|
142
|
+
</View>
|
|
143
|
+
{skip}
|
|
144
|
+
</>
|
|
145
|
+
) : hasSide ? (
|
|
146
|
+
<View style={styles.main}>
|
|
147
|
+
{sublabel != null && <Text style={styles.sub}>{sublabel}</Text>}
|
|
148
|
+
{skip}
|
|
149
|
+
</View>
|
|
150
|
+
) : null}
|
|
151
|
+
{trailing != null && <View style={styles.trailing}>{trailing}</View>}
|
|
152
|
+
</View>
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
const styles = StyleSheet.create({
|
|
157
|
+
row: { flexDirection: 'row', alignItems: 'center', gap: 16 },
|
|
158
|
+
rowCompact: { gap: 10 },
|
|
159
|
+
ring: { width: SIZE, height: SIZE },
|
|
160
|
+
ringCompact: { width: SIZE_COMPACT, height: SIZE_COMPACT },
|
|
161
|
+
center: {
|
|
162
|
+
...StyleSheet.absoluteFillObject,
|
|
163
|
+
alignItems: 'center',
|
|
164
|
+
justifyContent: 'center',
|
|
165
|
+
gap: 2,
|
|
166
|
+
},
|
|
167
|
+
label: { fontFamily: fonts.mono, fontSize: 9, letterSpacing: 1.3, color: colors.textFaint },
|
|
168
|
+
time: {
|
|
169
|
+
fontFamily: fonts.mono,
|
|
170
|
+
fontSize: 22,
|
|
171
|
+
fontWeight: '700',
|
|
172
|
+
fontVariant: ['tabular-nums'],
|
|
173
|
+
color: colors.text,
|
|
174
|
+
lineHeight: 24,
|
|
175
|
+
},
|
|
176
|
+
// compact centered readout — MINT mono 11 bold (design `.rg .num`)
|
|
177
|
+
timeCompact: {
|
|
178
|
+
fontFamily: fonts.mono,
|
|
179
|
+
fontSize: 11,
|
|
180
|
+
fontWeight: '700',
|
|
181
|
+
fontVariant: ['tabular-nums'],
|
|
182
|
+
color: colors.mint,
|
|
183
|
+
lineHeight: 13,
|
|
184
|
+
},
|
|
185
|
+
timePaused: { color: colors.textDim },
|
|
186
|
+
main: { flex: 1, alignItems: 'flex-start', gap: 9, minWidth: 0 },
|
|
187
|
+
sub: { fontSize: 12.5, color: colors.textDim },
|
|
188
|
+
// compact text column — mono caption over bold display line (design `.rl`/`.rt`)
|
|
189
|
+
mainCompact: { flex: 1, alignItems: 'flex-start', gap: 1, minWidth: 0 },
|
|
190
|
+
labelCompact: { fontFamily: fonts.mono, fontSize: 7, letterSpacing: 1, color: colors.textFaint },
|
|
191
|
+
subCompact: { fontFamily: fonts.display, fontSize: 12, fontWeight: '700', color: colors.text },
|
|
192
|
+
trailing: { marginLeft: 'auto' },
|
|
193
|
+
});
|