@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,113 @@
|
|
|
1
|
+
import { View, Text, StyleSheet, type ViewProps, type DimensionValue } from 'react-native';
|
|
2
|
+
import { colors, fonts } from '@lockin90/tokens';
|
|
3
|
+
|
|
4
|
+
/** Length status — drives the fill + count color. */
|
|
5
|
+
export type CharCounterStatus = 'ok' | 'warn' | 'over';
|
|
6
|
+
|
|
7
|
+
export interface CharCounterProps extends ViewProps {
|
|
8
|
+
/** current input length */
|
|
9
|
+
value: number;
|
|
10
|
+
/** the length limit */
|
|
11
|
+
max: number;
|
|
12
|
+
/** fraction (0..1) of max at which to flip to the warn state (default 0.85) */
|
|
13
|
+
warnAt?: number;
|
|
14
|
+
/** render the thin fill bar (default true) */
|
|
15
|
+
showBar?: boolean;
|
|
16
|
+
/** render the "value / max" mono readout (default true) */
|
|
17
|
+
showCount?: boolean;
|
|
18
|
+
/** override the readout text (default `${value} / ${max}`) */
|
|
19
|
+
format?: (value: number, max: number) => string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const clamp = (x: number, lo: number, hi: number) => Math.max(lo, Math.min(hi, x));
|
|
23
|
+
|
|
24
|
+
/** Resolve the length status from value/max and the warn threshold. */
|
|
25
|
+
const statusOf = (value: number, max: number, warnAt: number): CharCounterStatus => {
|
|
26
|
+
if (value > max) return 'over';
|
|
27
|
+
if (value >= warnAt * max) return 'warn';
|
|
28
|
+
return 'ok';
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const defaultFormat = (value: number, max: number) => `${value} / ${max}`;
|
|
32
|
+
|
|
33
|
+
/** Fill color per status: ok → mint, warn → zone-mid (amber), over → bad (red). */
|
|
34
|
+
const FILL_COLOR: Record<CharCounterStatus, string> = {
|
|
35
|
+
ok: colors.mint,
|
|
36
|
+
warn: colors.zoneMid,
|
|
37
|
+
over: colors.bad,
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** Count text color per status: ok → faint, warn → amber, over → red. */
|
|
41
|
+
const COUNT_COLOR: Record<CharCounterStatus, string> = {
|
|
42
|
+
ok: colors.textFaint,
|
|
43
|
+
warn: colors.warn,
|
|
44
|
+
over: colors.bad,
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* CharCounter — an input-aware character-count feedback row.
|
|
49
|
+
*
|
|
50
|
+
* A thin fill bar (fraction = value/max) + a "value / max" mono readout that
|
|
51
|
+
* turns warn (approaching max) then over (exceeds max). For SEO meta fields,
|
|
52
|
+
* post titles, bio fields — any length-limited input.
|
|
53
|
+
*
|
|
54
|
+
* Distinct from Meter (generic value-in-range) and BarFill (raw fraction): this
|
|
55
|
+
* is specifically the count/limit form-field adornment with an over-limit state
|
|
56
|
+
* and an "x / max" readout. Mirrors the .charbar from the CMS editors.
|
|
57
|
+
*/
|
|
58
|
+
export function CharCounter({
|
|
59
|
+
value,
|
|
60
|
+
max,
|
|
61
|
+
warnAt = 0.85,
|
|
62
|
+
showBar = true,
|
|
63
|
+
showCount = true,
|
|
64
|
+
format = defaultFormat,
|
|
65
|
+
style,
|
|
66
|
+
...rest
|
|
67
|
+
}: CharCounterProps) {
|
|
68
|
+
const safeMax = max || 1;
|
|
69
|
+
const frac = clamp(value / safeMax, 0, 1);
|
|
70
|
+
const status = statusOf(value, max, warnAt);
|
|
71
|
+
const fillWidth = `${frac * 100}%` as DimensionValue;
|
|
72
|
+
|
|
73
|
+
return (
|
|
74
|
+
<View style={[styles.root, style]} {...rest}>
|
|
75
|
+
{showBar && (
|
|
76
|
+
<View style={styles.track}>
|
|
77
|
+
<View style={[styles.fill, { width: fillWidth, backgroundColor: FILL_COLOR[status] }]} />
|
|
78
|
+
</View>
|
|
79
|
+
)}
|
|
80
|
+
{showCount && (
|
|
81
|
+
<Text style={[styles.ct, { color: COUNT_COLOR[status] }]} numberOfLines={1}>
|
|
82
|
+
{format(value, max)}
|
|
83
|
+
</Text>
|
|
84
|
+
)}
|
|
85
|
+
</View>
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const styles = StyleSheet.create({
|
|
90
|
+
root: {
|
|
91
|
+
flexDirection: 'row',
|
|
92
|
+
alignItems: 'center',
|
|
93
|
+
gap: 9,
|
|
94
|
+
marginTop: 6,
|
|
95
|
+
},
|
|
96
|
+
track: {
|
|
97
|
+
flex: 1,
|
|
98
|
+
height: 4,
|
|
99
|
+
borderRadius: 999,
|
|
100
|
+
backgroundColor: 'rgba(255,255,255,0.07)',
|
|
101
|
+
overflow: 'hidden',
|
|
102
|
+
},
|
|
103
|
+
fill: {
|
|
104
|
+
height: '100%',
|
|
105
|
+
borderRadius: 999,
|
|
106
|
+
},
|
|
107
|
+
ct: {
|
|
108
|
+
flexShrink: 0,
|
|
109
|
+
fontFamily: fonts.mono,
|
|
110
|
+
fontSize: 9.5,
|
|
111
|
+
color: colors.textFaint,
|
|
112
|
+
},
|
|
113
|
+
});
|
|
@@ -0,0 +1,473 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { View, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import Svg, { Circle, G, Line, Path, Rect, Text as SvgText } from 'react-native-svg';
|
|
4
|
+
import { colors, fonts } from '@lockin90/tokens';
|
|
5
|
+
|
|
6
|
+
/* ChartState — the catalog chart-states family (SV-01…SV-06,
|
|
7
|
+
lockin90-design/charts/state-charts.html): the non-data states every chart
|
|
8
|
+
card needs — loading, syncing, empty, locked, error and partial-sync —
|
|
9
|
+
drawn at real chart geometry (fixed 320×150 viewBox) so data can land with
|
|
10
|
+
no layout shift. Native twin of `@lockin90/ui` ChartState — same prop API +
|
|
11
|
+
geometry; the partial-sync SMIL pulse is a static dot + faint halo ring and
|
|
12
|
+
every glow is a wider faint duplicate shape (never SVG filters), like
|
|
13
|
+
`Ring`. The CTA/RETRY pill takes `onCtaPress` (react-native-svg `onPress`). */
|
|
14
|
+
|
|
15
|
+
/** Catalog variant names (`lockin90-design/charts/state-charts.html`). */
|
|
16
|
+
export type ChartStateVariant =
|
|
17
|
+
| 'skeleton-chart' /* SV-01 — placeholder bars + title/legend stubs */
|
|
18
|
+
| 'loading-ring' /* SV-02 — spinner arc + what is actually syncing */
|
|
19
|
+
| 'empty-cta' /* SV-03 — ghost bars + reason + filled mint CTA pill */
|
|
20
|
+
| 'locked-forecast' /* SV-04 — ghost curve + unlocks-at-N + progress dots */
|
|
21
|
+
| 'error-retry' /* SV-05 — coral triangle + reason + RETRY pill */
|
|
22
|
+
| 'partial-sync'; /* SV-06 — solid to last synced point, dashed after */
|
|
23
|
+
|
|
24
|
+
export interface ChartStateProps {
|
|
25
|
+
/** state form (default `'skeleton-chart'`, SV-01) */
|
|
26
|
+
variant?: ChartStateVariant;
|
|
27
|
+
/** faint mono caption at the top-left (per-variant catalog default:
|
|
28
|
+
* LOADING / SYNCING / NO DATA / NOT ENOUGH DATA / ERROR / PARTIAL DATA) */
|
|
29
|
+
title?: string;
|
|
30
|
+
/** the main dim line — the plain-words reason (per-variant default, e.g.
|
|
31
|
+
* `'NO MEALS LOGGED YET'`, `"COULDN'T LOAD ENERGY DATA"`) */
|
|
32
|
+
message?: string;
|
|
33
|
+
/** `loading-ring` — the second, fainter line: what is actually syncing
|
|
34
|
+
* (default 'SYNCING WHOOP + OURA') */
|
|
35
|
+
detail?: string;
|
|
36
|
+
/** faint bottom note (skeleton + partial-sync catalog defaults; `''` hides) */
|
|
37
|
+
caption?: string;
|
|
38
|
+
/** CTA pill text — `empty-cta` (filled, default 'LOG YOUR FIRST MEAL') and
|
|
39
|
+
* `error-retry` (outline, default 'RETRY'); `''` hides the pill */
|
|
40
|
+
cta?: string;
|
|
41
|
+
/** pill tint (defaults: empty-cta mint · error-retry coral) */
|
|
42
|
+
ctaColor?: string;
|
|
43
|
+
/** press handler for the CTA/RETRY pill — makes it an accessible button */
|
|
44
|
+
onCtaPress?: () => void;
|
|
45
|
+
/** `skeleton-chart` — placeholder bar heights 0–1 (default: the catalog 9) */
|
|
46
|
+
bars?: number[];
|
|
47
|
+
/** `empty-cta` — dashed ghost-bar heights 0–1 (default `[0.35, 0.55, 0.45]`) */
|
|
48
|
+
ghostBars?: number[];
|
|
49
|
+
/** `locked-forecast` ghost curve / `partial-sync` line — values 0–1
|
|
50
|
+
* (defaults: the catalog's seeded waves) */
|
|
51
|
+
data?: number[];
|
|
52
|
+
/** `locked-forecast` — days of data collected so far (default 3) */
|
|
53
|
+
progress?: number;
|
|
54
|
+
/** `locked-forecast` — days required to unlock (default 7) */
|
|
55
|
+
total?: number;
|
|
56
|
+
/** `partial-sync` — index of the last synced point (default 8); the line
|
|
57
|
+
* is solid through it, dashed ghost after */
|
|
58
|
+
syncedIndex?: number;
|
|
59
|
+
/** `partial-sync` — chip at the sync boundary (default 'SYNC PENDING') */
|
|
60
|
+
pendingLabel?: string;
|
|
61
|
+
/** glow underlay — wider faint duplicate shapes on native, never filters */
|
|
62
|
+
shine?: boolean;
|
|
63
|
+
/** rendered width in px — the 320×150 viewBox scales to fit */
|
|
64
|
+
width?: number;
|
|
65
|
+
/** rendered height in px */
|
|
66
|
+
height?: number;
|
|
67
|
+
/** optional wrapper style */
|
|
68
|
+
style?: StyleProp<ViewStyle>;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* --------------------------------------------------------------- geometry
|
|
72
|
+
* The catalog canvas: 320×150, pad l10 r12 t16 b14 (catalog.js). */
|
|
73
|
+
const W = 320;
|
|
74
|
+
const H = 150;
|
|
75
|
+
const P = { l: 10, r: 12, t: 16, b: 14 };
|
|
76
|
+
const plotW = W - P.l - P.r;
|
|
77
|
+
const plotH = H - P.t - P.b;
|
|
78
|
+
|
|
79
|
+
/* ------------------------------------------- catalog deterministic data
|
|
80
|
+
* mulberry32 + genData('wave') ported from catalog.js so the default curves
|
|
81
|
+
* reproduce the catalog cards exactly (locked seed 5 ×12 · partial seed 9 ×14). */
|
|
82
|
+
function mulberry32(a: number): () => number {
|
|
83
|
+
return () => {
|
|
84
|
+
a |= 0;
|
|
85
|
+
a = (a + 0x6d2b79f5) | 0;
|
|
86
|
+
let t = Math.imul(a ^ (a >>> 15), 1 | a);
|
|
87
|
+
t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;
|
|
88
|
+
return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
const clamp01 = (v: number) => Math.max(0.03, Math.min(0.97, v));
|
|
92
|
+
|
|
93
|
+
function genWave(seed: number, n: number): number[] {
|
|
94
|
+
const r = mulberry32(seed);
|
|
95
|
+
const ph = r() * 6;
|
|
96
|
+
const f = 1.15 + r() * 0.5;
|
|
97
|
+
const amp = 0.2 + r() * 0.08;
|
|
98
|
+
const base = 0.48 + r() * 0.12;
|
|
99
|
+
const v: number[] = [];
|
|
100
|
+
for (let i = 0; i < n; i++) {
|
|
101
|
+
const t = i / (n - 1);
|
|
102
|
+
v.push(clamp01(base + Math.sin(t * Math.PI * 2 * f + ph) * amp + (r() - 0.5) * 0.08));
|
|
103
|
+
}
|
|
104
|
+
return v;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
const DEFAULT_SKELETON_BARS = [0.45, 0.6, 0.35, 0.7, 0.5, 0.65, 0.4, 0.75, 0.55];
|
|
108
|
+
const DEFAULT_GHOST_BARS = [0.35, 0.55, 0.45];
|
|
109
|
+
const DEFAULT_LOCKED_DATA = genWave(5, 12);
|
|
110
|
+
const DEFAULT_PARTIAL_DATA = genWave(9, 14);
|
|
111
|
+
|
|
112
|
+
const DEFAULT_TITLES: Record<ChartStateVariant, string> = {
|
|
113
|
+
'skeleton-chart': 'LOADING',
|
|
114
|
+
'loading-ring': 'SYNCING',
|
|
115
|
+
'empty-cta': 'NO DATA',
|
|
116
|
+
'locked-forecast': 'NOT ENOUGH DATA',
|
|
117
|
+
'error-retry': 'ERROR',
|
|
118
|
+
'partial-sync': 'PARTIAL DATA',
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
/** y for a 0–1 value in the plot box (catalog `Y`) */
|
|
122
|
+
function Yv(v: number): number {
|
|
123
|
+
return P.t + (1 - v) * plotH;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/** evenly-spread plot points for a 0–1 series (catalog `pts`) */
|
|
127
|
+
function seriesPts(data: number[]): { x: number; y: number }[] {
|
|
128
|
+
return data.map((v, i) => ({
|
|
129
|
+
x: P.l + (data.length <= 1 ? plotW / 2 : (i * plotW) / (data.length - 1)),
|
|
130
|
+
y: Yv(v),
|
|
131
|
+
}));
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/** open arc — 0° at 12 o'clock, clockwise (catalog `arcPath`) */
|
|
135
|
+
function arcPath(cx: number, cy: number, r: number, a0: number, a1: number): string {
|
|
136
|
+
const pol = (aDeg: number) => {
|
|
137
|
+
const a = ((aDeg - 90) * Math.PI) / 180;
|
|
138
|
+
return { x: cx + r * Math.cos(a), y: cy + r * Math.sin(a) };
|
|
139
|
+
};
|
|
140
|
+
const p0 = pol(a0);
|
|
141
|
+
const p1 = pol(a1);
|
|
142
|
+
const lg = (a1 - a0) % 360 > 180 ? 1 : 0;
|
|
143
|
+
return `M${p0.x.toFixed(1)} ${p0.y.toFixed(1)}A${r} ${r} 0 ${lg} 1 ${p1.x.toFixed(1)} ${p1.y.toFixed(1)}`;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/** Fritsch–Carlson monotone cubic — the catalog's `smoothPath` (no overshoot). */
|
|
147
|
+
function smoothPath(p: { x: number; y: number }[]): string {
|
|
148
|
+
const n = p.length;
|
|
149
|
+
if (n < 3) return p.map((q, i) => `${i ? 'L' : 'M'}${q.x.toFixed(1)} ${q.y.toFixed(1)}`).join('');
|
|
150
|
+
const dx: number[] = [];
|
|
151
|
+
const m: number[] = [];
|
|
152
|
+
const tg: number[] = [];
|
|
153
|
+
for (let i = 0; i < n - 1; i++) {
|
|
154
|
+
dx[i] = p[i + 1]!.x - p[i]!.x;
|
|
155
|
+
m[i] = (p[i + 1]!.y - p[i]!.y) / dx[i]!;
|
|
156
|
+
}
|
|
157
|
+
tg[0] = m[0]!;
|
|
158
|
+
tg[n - 1] = m[n - 2]!;
|
|
159
|
+
for (let i = 1; i < n - 1; i++) tg[i] = m[i - 1]! * m[i]! <= 0 ? 0 : (m[i - 1]! + m[i]!) / 2;
|
|
160
|
+
for (let i = 0; i < n - 1; i++) {
|
|
161
|
+
if (m[i] === 0) {
|
|
162
|
+
tg[i] = 0;
|
|
163
|
+
tg[i + 1] = 0;
|
|
164
|
+
} else {
|
|
165
|
+
const a = tg[i]! / m[i]!;
|
|
166
|
+
const b = tg[i + 1]! / m[i]!;
|
|
167
|
+
const s = a * a + b * b;
|
|
168
|
+
if (s > 9) {
|
|
169
|
+
const tau = 3 / Math.sqrt(s);
|
|
170
|
+
tg[i] = tau * a * m[i]!;
|
|
171
|
+
tg[i + 1] = tau * b * m[i]!;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
let d = `M${p[0]!.x.toFixed(1)} ${p[0]!.y.toFixed(1)}`;
|
|
176
|
+
for (let i = 0; i < n - 1; i++) {
|
|
177
|
+
const h = dx[i]! / 3;
|
|
178
|
+
d += `C${(p[i]!.x + h).toFixed(1)} ${(p[i]!.y + h * tg[i]!).toFixed(1)} ${(p[i + 1]!.x - h).toFixed(1)} ${(p[i + 1]!.y - h * tg[i + 1]!).toFixed(1)} ${p[i + 1]!.x.toFixed(1)} ${p[i + 1]!.y.toFixed(1)}`;
|
|
179
|
+
}
|
|
180
|
+
return d;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
function Label({
|
|
184
|
+
x,
|
|
185
|
+
y,
|
|
186
|
+
text,
|
|
187
|
+
color = colors.textFaint,
|
|
188
|
+
anchor = 'middle',
|
|
189
|
+
}: {
|
|
190
|
+
x: number;
|
|
191
|
+
y: number;
|
|
192
|
+
text: string;
|
|
193
|
+
color?: string;
|
|
194
|
+
anchor?: 'start' | 'middle' | 'end';
|
|
195
|
+
}) {
|
|
196
|
+
return (
|
|
197
|
+
<SvgText x={x} y={y} fill={color} fontSize={8.5} textAnchor={anchor} fontFamily={fonts.mono} letterSpacing={0.5}>
|
|
198
|
+
{text}
|
|
199
|
+
</SvgText>
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/** chip-pill label (dark rect + tinted hairline) — `y` = pill center */
|
|
204
|
+
function Tag({
|
|
205
|
+
x,
|
|
206
|
+
y,
|
|
207
|
+
text,
|
|
208
|
+
color,
|
|
209
|
+
anchor = 'middle',
|
|
210
|
+
}: {
|
|
211
|
+
x: number;
|
|
212
|
+
y: number;
|
|
213
|
+
text: string;
|
|
214
|
+
color: string;
|
|
215
|
+
anchor?: 'start' | 'middle' | 'end';
|
|
216
|
+
}) {
|
|
217
|
+
const w = text.length * 5.35 + 12;
|
|
218
|
+
let xa = anchor === 'end' ? x - w : anchor === 'start' ? x : x - w / 2;
|
|
219
|
+
xa = Math.max(P.l - 4, Math.min(xa, W - P.r - w + 4));
|
|
220
|
+
return (
|
|
221
|
+
<G>
|
|
222
|
+
<Rect
|
|
223
|
+
x={xa.toFixed(1)}
|
|
224
|
+
y={(y - 6.5).toFixed(1)}
|
|
225
|
+
width={w.toFixed(1)}
|
|
226
|
+
height={13}
|
|
227
|
+
rx={6.5}
|
|
228
|
+
fill="rgba(8,10,18,0.78)"
|
|
229
|
+
stroke={color}
|
|
230
|
+
strokeOpacity={0.35}
|
|
231
|
+
strokeWidth={0.8}
|
|
232
|
+
/>
|
|
233
|
+
<SvgText
|
|
234
|
+
x={(xa + w / 2).toFixed(1)}
|
|
235
|
+
y={(y + 2.8).toFixed(1)}
|
|
236
|
+
fill={color}
|
|
237
|
+
fontSize={8}
|
|
238
|
+
textAnchor="middle"
|
|
239
|
+
fontFamily={fonts.mono}
|
|
240
|
+
letterSpacing={0.4}
|
|
241
|
+
>
|
|
242
|
+
{text}
|
|
243
|
+
</SvgText>
|
|
244
|
+
</G>
|
|
245
|
+
);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/** the action pill (catalog `pill()`) — filled (CTA) or outline (RETRY);
|
|
249
|
+
* with `onPress` it becomes an accessible SVG button */
|
|
250
|
+
function Pill({
|
|
251
|
+
cx,
|
|
252
|
+
cy,
|
|
253
|
+
text,
|
|
254
|
+
color,
|
|
255
|
+
filled,
|
|
256
|
+
onPress,
|
|
257
|
+
shine,
|
|
258
|
+
}: {
|
|
259
|
+
cx: number;
|
|
260
|
+
cy: number;
|
|
261
|
+
text: string;
|
|
262
|
+
color: string;
|
|
263
|
+
filled: boolean;
|
|
264
|
+
onPress?: () => void;
|
|
265
|
+
shine?: boolean;
|
|
266
|
+
}) {
|
|
267
|
+
const w = text.length * 5 + 58;
|
|
268
|
+
return (
|
|
269
|
+
<G onPress={onPress} accessible={!!onPress} accessibilityRole={onPress ? 'button' : undefined} accessibilityLabel={onPress ? text : undefined}>
|
|
270
|
+
{/* glow — wider faint duplicate pill (web: blurred) */}
|
|
271
|
+
{shine ? <Rect x={cx - w / 2 - 3} y={cy - 15} width={w + 6} height={30} rx={15} fill={color} opacity={0.18} /> : null}
|
|
272
|
+
<Rect
|
|
273
|
+
x={cx - w / 2}
|
|
274
|
+
y={cy - 12}
|
|
275
|
+
width={w}
|
|
276
|
+
height={24}
|
|
277
|
+
rx={12}
|
|
278
|
+
fill={filled ? color : 'rgba(255,255,255,0.04)'}
|
|
279
|
+
fillOpacity={filled ? 0.14 : 1}
|
|
280
|
+
stroke={color}
|
|
281
|
+
strokeOpacity={0.55}
|
|
282
|
+
strokeWidth={1}
|
|
283
|
+
/>
|
|
284
|
+
<SvgText x={cx} y={cy + 3} fill={color} fontSize={9} textAnchor="middle" fontFamily={fonts.mono} letterSpacing={0.7}>
|
|
285
|
+
{text}
|
|
286
|
+
</SvgText>
|
|
287
|
+
</G>
|
|
288
|
+
);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
function Grid() {
|
|
292
|
+
return (
|
|
293
|
+
<G>
|
|
294
|
+
{[0.25, 0.5, 0.75].map((f) => (
|
|
295
|
+
<Line key={f} x1={P.l} x2={W - P.r} y1={P.t + plotH * f} y2={P.t + plotH * f} stroke="rgba(255,255,255,0.05)" strokeWidth={1} />
|
|
296
|
+
))}
|
|
297
|
+
<Line x1={P.l} x2={W - P.r} y1={H - P.b} y2={H - P.b} stroke="rgba(255,255,255,0.09)" strokeWidth={1} />
|
|
298
|
+
</G>
|
|
299
|
+
);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* ChartState — the kit's chart non-data state (catalog family `state-charts`,
|
|
304
|
+
* SV-01…SV-06): loading, empty, locked, error and partial-sync rendered at
|
|
305
|
+
* REAL chart geometry so the card doesn't shift when data lands. Native twin
|
|
306
|
+
* of `@lockin90/ui` ChartState — same prop API + geometry; the partial-sync
|
|
307
|
+
* pulse is a static dot + halo and glows are wider faint duplicates.
|
|
308
|
+
*/
|
|
309
|
+
export function ChartState({
|
|
310
|
+
variant = 'skeleton-chart',
|
|
311
|
+
title,
|
|
312
|
+
message,
|
|
313
|
+
detail,
|
|
314
|
+
caption,
|
|
315
|
+
cta,
|
|
316
|
+
ctaColor,
|
|
317
|
+
onCtaPress,
|
|
318
|
+
bars = DEFAULT_SKELETON_BARS,
|
|
319
|
+
ghostBars = DEFAULT_GHOST_BARS,
|
|
320
|
+
data,
|
|
321
|
+
progress = 3,
|
|
322
|
+
total = 7,
|
|
323
|
+
syncedIndex = 8,
|
|
324
|
+
pendingLabel = 'SYNC PENDING',
|
|
325
|
+
shine = false,
|
|
326
|
+
width = W,
|
|
327
|
+
height = H,
|
|
328
|
+
style,
|
|
329
|
+
}: ChartStateProps) {
|
|
330
|
+
const heading = title ?? DEFAULT_TITLES[variant];
|
|
331
|
+
|
|
332
|
+
let accessibilityLabel: string;
|
|
333
|
+
let content: ReactNode;
|
|
334
|
+
|
|
335
|
+
if (variant === 'skeleton-chart') {
|
|
336
|
+
/* ----------------------------------------------- SV-01 skeleton-chart */
|
|
337
|
+
const note = caption ?? 'SKELETON · NO SHIMMER IN REDUCED MOTION';
|
|
338
|
+
accessibilityLabel = `${heading}: chart loading placeholder`;
|
|
339
|
+
content = (
|
|
340
|
+
<>
|
|
341
|
+
<Grid />
|
|
342
|
+
<Rect x={P.l + 2} y={22} width={64} height={8} rx={4} fill="rgba(255,255,255,0.07)" />
|
|
343
|
+
<Rect x={W - P.r - 54} y={22} width={54} height={8} rx={4} fill="rgba(255,255,255,0.05)" />
|
|
344
|
+
{bars.map((v, i) => {
|
|
345
|
+
const x = P.l + 14 + i * 32;
|
|
346
|
+
const y = Yv(v * 0.8);
|
|
347
|
+
return (
|
|
348
|
+
<Rect
|
|
349
|
+
key={i}
|
|
350
|
+
x={x}
|
|
351
|
+
y={y.toFixed(1)}
|
|
352
|
+
width={20}
|
|
353
|
+
height={(H - P.b - y).toFixed(1)}
|
|
354
|
+
rx={3}
|
|
355
|
+
fill={`rgba(255,255,255,${i === 4 ? 0.1 : 0.065})`}
|
|
356
|
+
/>
|
|
357
|
+
);
|
|
358
|
+
})}
|
|
359
|
+
{note ? <Label x={160} y={142} text={note} /> : null}
|
|
360
|
+
</>
|
|
361
|
+
);
|
|
362
|
+
} else if (variant === 'loading-ring') {
|
|
363
|
+
/* ------------------------------------------------- SV-02 loading-ring */
|
|
364
|
+
accessibilityLabel = `${heading}: ${message ?? 'loading data'}`;
|
|
365
|
+
content = (
|
|
366
|
+
<>
|
|
367
|
+
{/* arc glow — wider faint duplicate (web: blurred) */}
|
|
368
|
+
{shine ? <Path d={arcPath(160, 70, 22, 0, 70)} fill="none" stroke={colors.mint} strokeWidth={8} strokeLinecap="round" opacity={0.3} /> : null}
|
|
369
|
+
<Path d={arcPath(160, 70, 22, 0, 300)} fill="none" stroke="rgba(255,255,255,0.3)" strokeWidth={3.5} strokeLinecap="round" />
|
|
370
|
+
<Path d={arcPath(160, 70, 22, 0, 70)} fill="none" stroke={colors.mint} strokeWidth={3.5} strokeLinecap="round" />
|
|
371
|
+
<Label x={160} y={112} text={message ?? 'LOADING DATA…'} color={colors.textDim} />
|
|
372
|
+
{(detail ?? 'SYNCING WHOOP + OURA') ? <Label x={160} y={128} text={detail ?? 'SYNCING WHOOP + OURA'} /> : null}
|
|
373
|
+
</>
|
|
374
|
+
);
|
|
375
|
+
} else if (variant === 'empty-cta') {
|
|
376
|
+
/* ---------------------------------------------------- SV-03 empty-cta */
|
|
377
|
+
const ctaText = cta ?? 'LOG YOUR FIRST MEAL';
|
|
378
|
+
accessibilityLabel = `${heading}: ${message ?? 'no data yet'}`;
|
|
379
|
+
content = (
|
|
380
|
+
<>
|
|
381
|
+
{ghostBars.map((v, i) => {
|
|
382
|
+
const y = 76 - v * 42;
|
|
383
|
+
return (
|
|
384
|
+
<Rect
|
|
385
|
+
key={i}
|
|
386
|
+
x={138 + i * 16}
|
|
387
|
+
y={y.toFixed(1)}
|
|
388
|
+
width={11}
|
|
389
|
+
height={(76 - y).toFixed(1)}
|
|
390
|
+
rx={2.5}
|
|
391
|
+
fill="none"
|
|
392
|
+
stroke="rgba(255,255,255,0.22)"
|
|
393
|
+
strokeWidth={1.2}
|
|
394
|
+
strokeDasharray="3 3"
|
|
395
|
+
/>
|
|
396
|
+
);
|
|
397
|
+
})}
|
|
398
|
+
<Label x={160} y={96} text={message ?? 'NO MEALS LOGGED YET'} color={colors.textDim} />
|
|
399
|
+
{ctaText ? <Pill cx={160} cy={120} text={ctaText} color={ctaColor ?? colors.mint} filled onPress={onCtaPress} shine={shine} /> : null}
|
|
400
|
+
</>
|
|
401
|
+
);
|
|
402
|
+
} else if (variant === 'locked-forecast') {
|
|
403
|
+
/* ---------------------------------------------- SV-04 locked-forecast */
|
|
404
|
+
const vals = data ?? DEFAULT_LOCKED_DATA;
|
|
405
|
+
const pts = seriesPts(vals);
|
|
406
|
+
const done = Math.max(0, Math.min(total, progress));
|
|
407
|
+
const dotsX0 = 160 - (total - 1) * 5;
|
|
408
|
+
accessibilityLabel = `${heading}: ${done} of ${total} days collected`;
|
|
409
|
+
content = (
|
|
410
|
+
<>
|
|
411
|
+
<Grid />
|
|
412
|
+
{pts.length > 0 ? <Path d={smoothPath(pts)} fill="none" stroke="rgba(255,255,255,0.16)" strokeWidth={2} strokeDasharray="4 5" /> : null}
|
|
413
|
+
<Label x={160} y={58} text={message ?? `FORECAST UNLOCKS AT ${total} DAYS OF DATA`} color={colors.textDim} />
|
|
414
|
+
{Array.from({ length: total }, (_, i) => (
|
|
415
|
+
<Circle key={i} cx={dotsX0 + i * 10} cy={74} r={3} fill={i < done ? colors.mint : 'rgba(255,255,255,0.12)'} />
|
|
416
|
+
))}
|
|
417
|
+
<Label x={160 + (total - 1) * 5 + 12} y={77} text={`${done}/${total}`} color={colors.mint} anchor="start" />
|
|
418
|
+
</>
|
|
419
|
+
);
|
|
420
|
+
} else if (variant === 'error-retry') {
|
|
421
|
+
/* -------------------------------------------------- SV-05 error-retry */
|
|
422
|
+
const ctaText = cta ?? 'RETRY';
|
|
423
|
+
accessibilityLabel = `${heading}: ${message ?? "couldn't load data"}`;
|
|
424
|
+
content = (
|
|
425
|
+
<>
|
|
426
|
+
{/* triangle glow — filled faint duplicate (web: blurred) */}
|
|
427
|
+
{shine ? <Path d="M160 41l19 33h-38z" fill={colors.zoneLow} opacity={0.18} /> : null}
|
|
428
|
+
<Path d="M160 44l16 27h-32z" fill="none" stroke={colors.zoneLow} strokeWidth={1.6} strokeLinejoin="round" />
|
|
429
|
+
<Line x1={160} x2={160} y1={54} y2={62} stroke={colors.zoneLow} strokeWidth={1.6} />
|
|
430
|
+
<Circle cx={160} cy={66.5} r={0.9} fill={colors.zoneLow} />
|
|
431
|
+
<Label x={160} y={92} text={message ?? "COULDN'T LOAD ENERGY DATA"} color={colors.textDim} />
|
|
432
|
+
{ctaText ? <Pill cx={160} cy={116} text={ctaText} color={ctaColor ?? colors.zoneLow} filled={false} onPress={onCtaPress} shine={shine} /> : null}
|
|
433
|
+
</>
|
|
434
|
+
);
|
|
435
|
+
} else {
|
|
436
|
+
/* ------------------------------------------------- SV-06 partial-sync */
|
|
437
|
+
const vals = data ?? DEFAULT_PARTIAL_DATA;
|
|
438
|
+
const pts = seriesPts(vals);
|
|
439
|
+
const cut = Math.max(0, Math.min(pts.length - 1, syncedIndex));
|
|
440
|
+
const cp = pts[cut];
|
|
441
|
+
const note = caption ?? 'SOLID = SYNCED · DASHED = AWAITING DEVICE';
|
|
442
|
+
accessibilityLabel = `${heading}: synced through point ${cut + 1} of ${pts.length}`;
|
|
443
|
+
content = (
|
|
444
|
+
<>
|
|
445
|
+
<Grid />
|
|
446
|
+
{pts.length > 0 ? <Path d={smoothPath(pts.slice(0, cut + 1))} fill="none" stroke={colors.mint} strokeWidth={2.2} strokeLinecap="round" /> : null}
|
|
447
|
+
{cut < pts.length - 1 ? (
|
|
448
|
+
<Path d={smoothPath(pts.slice(cut))} fill="none" stroke="rgba(255,255,255,0.18)" strokeWidth={1.6} strokeDasharray="3 4" />
|
|
449
|
+
) : null}
|
|
450
|
+
{cp ? (
|
|
451
|
+
<G>
|
|
452
|
+
<Rect x={cp.x.toFixed(1)} y={P.t + 4} width={(W - P.r - cp.x).toFixed(1)} height={plotH - 8} fill="rgba(255,255,255,0.03)" />
|
|
453
|
+
{/* pulse — static dot + faint halo ring (no SMIL on native) */}
|
|
454
|
+
{shine ? <Circle cx={cp.x.toFixed(1)} cy={cp.y.toFixed(1)} r={9} fill={colors.zoneMid} opacity={0.25} /> : null}
|
|
455
|
+
<Circle cx={cp.x.toFixed(1)} cy={cp.y.toFixed(1)} r={7} fill="none" stroke={colors.zoneMid} strokeWidth={1.4} strokeOpacity={0.4} />
|
|
456
|
+
<Circle cx={cp.x.toFixed(1)} cy={cp.y.toFixed(1)} r={3.6} fill={colors.zoneMid} />
|
|
457
|
+
{pendingLabel ? <Tag x={cp.x + 10} y={P.t + 14} text={pendingLabel} color={colors.zoneMid} anchor="start" /> : null}
|
|
458
|
+
</G>
|
|
459
|
+
) : null}
|
|
460
|
+
{note ? <Label x={160} y={144} text={note} /> : null}
|
|
461
|
+
</>
|
|
462
|
+
);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
return (
|
|
466
|
+
<View accessibilityRole="image" accessibilityLabel={accessibilityLabel} style={[{ width, height }, style]}>
|
|
467
|
+
<Svg width={width} height={height} viewBox={`0 0 ${W} ${H}`}>
|
|
468
|
+
<Label x={P.l + 2} y={11} text={heading} anchor="start" />
|
|
469
|
+
{content}
|
|
470
|
+
</Svg>
|
|
471
|
+
</View>
|
|
472
|
+
);
|
|
473
|
+
}
|