@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,310 @@
|
|
|
1
|
+
import { useId } from 'react';
|
|
2
|
+
import { View, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import Svg, { Defs, FeGaussianBlur, Filter, G, Path, Rect, Text as SvgText } from 'react-native-svg';
|
|
4
|
+
import { colors, fonts } from '@lockin90/tokens';
|
|
5
|
+
|
|
6
|
+
/* FunnelChart — the shared catalog conversion-funnel family (FN-01/03/04/05,
|
|
7
|
+
lockin90-design/charts/funnel-charts.html): centered trapezoid bands or
|
|
8
|
+
left-aligned stage bars drawn in a fixed 320×150 viewBox, mono labels,
|
|
9
|
+
coral per-stage drop-off, optional previous-period ghost bars. Native twin
|
|
10
|
+
of `@lockin90/ui` FunnelChart — same prop API; shine is a Gaussian-blurred
|
|
11
|
+
duplicate shape (Fabric-native SVG filters). The web-only ADMIN operator funnel
|
|
12
|
+
(`@lockin90/ui/admin`) is a different component and has no native twin. */
|
|
13
|
+
|
|
14
|
+
export type FunnelChartVariant =
|
|
15
|
+
| 'band-funnel' /* FN-01 — centered symmetric trapezoid bands + stage labels */
|
|
16
|
+
| 'bar-funnel' /* FN-03 — left-aligned stage bars + % + coral drop labels */
|
|
17
|
+
| 'zone-funnel' /* FN-04 — bar funnel, stage color = conversion zone */
|
|
18
|
+
| 'compare-funnel'; /* FN-05 — thin bars over previous-period ghost bars */
|
|
19
|
+
|
|
20
|
+
/** FN-01 band fill SELECT: solid spectrum tokens vs faint glass fill. */
|
|
21
|
+
export type FunnelChartFill = 'tokens' | 'glass';
|
|
22
|
+
|
|
23
|
+
/** One funnel stage, top (widest) → bottom. */
|
|
24
|
+
export interface FunnelStage {
|
|
25
|
+
/** Stage name, drawn in mono (e.g. "SIGNED UP"). */
|
|
26
|
+
label: string;
|
|
27
|
+
/** Stage size — raw count or 0–1 fraction; geometry + the printed % are
|
|
28
|
+
* normalized against the FIRST stage's value (the funnel top = 100%). */
|
|
29
|
+
value: number;
|
|
30
|
+
/** Previous-period value (same units) — the ghost bar in `compare-funnel`. */
|
|
31
|
+
prev?: number;
|
|
32
|
+
/** Color token override for this stage (e.g. `colors.violet`). Ignored by
|
|
33
|
+
* `zone-funnel`, where the conversion zone owns the color. */
|
|
34
|
+
color?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface FunnelChartProps {
|
|
38
|
+
/** Ordered stages, funnel top first. */
|
|
39
|
+
stages?: FunnelStage[];
|
|
40
|
+
/** Catalog variant (FN-01 / FN-03 / FN-04 / FN-05). */
|
|
41
|
+
variant?: FunnelChartVariant;
|
|
42
|
+
/** Band fill for `band-funnel` — solid spectrum tokens vs faint glass. */
|
|
43
|
+
fill?: FunnelChartFill;
|
|
44
|
+
/** Top-left mono caption (e.g. 'ONBOARDING · THIS MONTH'). */
|
|
45
|
+
title?: string;
|
|
46
|
+
/** Soft color glow behind the bands/bars (the catalog glow modifier). */
|
|
47
|
+
shine?: boolean;
|
|
48
|
+
/** Footer caption for `compare-funnel`'s ghost bars. */
|
|
49
|
+
ghostLabel?: string;
|
|
50
|
+
/** Accessible description of the chart. */
|
|
51
|
+
ariaLabel?: string;
|
|
52
|
+
/** Optional container style. */
|
|
53
|
+
style?: StyleProp<ViewStyle>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* ---- catalog geometry (viewBox units — charts/catalog.js) ---- */
|
|
57
|
+
const W = 320;
|
|
58
|
+
const H = 150;
|
|
59
|
+
const PAD = { l: 10, r: 12, t: 16, b: 14 };
|
|
60
|
+
const PLOT_W = W - PAD.l - PAD.r; // 298
|
|
61
|
+
const PLOT_H = H - PAD.t - PAD.b; // 120
|
|
62
|
+
/** widest band = 78% of the plot width, centered */
|
|
63
|
+
const BAND_MAX_W = PLOT_W * 0.78;
|
|
64
|
+
/** bar variants reserve a 96px label gutter left + % / drop labels right */
|
|
65
|
+
const BAR_X = PAD.l + 102;
|
|
66
|
+
const BAR_MAX_W = PLOT_W - 118; // 180
|
|
67
|
+
|
|
68
|
+
/* catalog stage palette (funnel-charts.html STAGES), wraps for longer funnels */
|
|
69
|
+
const STAGE_COLORS = [colors.cyan, colors.mint, colors.lime, colors.zoneMid] as const;
|
|
70
|
+
|
|
71
|
+
/* previous-period ghost fill — the catalog's white-14%. No token equivalent:
|
|
72
|
+
glass2 (.075) is half as bright, border2 (.16) is a border token. */
|
|
73
|
+
const GHOST_FILL = 'rgba(255, 255, 255, 0.14)';
|
|
74
|
+
|
|
75
|
+
const DEFAULT_STAGES: FunnelStage[] = [
|
|
76
|
+
{ label: 'SIGNED UP', value: 1 },
|
|
77
|
+
{ label: 'CONNECTED DEVICE', value: 0.72 },
|
|
78
|
+
{ label: 'FIRST SYNC', value: 0.58 },
|
|
79
|
+
{ label: 'DAY-7 ACTIVE', value: 0.34 },
|
|
80
|
+
];
|
|
81
|
+
|
|
82
|
+
/** Round for compact attribute values. */
|
|
83
|
+
const rd = (n: number) => Math.round(n * 100) / 100;
|
|
84
|
+
|
|
85
|
+
/** Conversion-zone color — the funnel catalog's thresholds (>0.6 / >0.4). */
|
|
86
|
+
const zoneColor = (frac: number): string =>
|
|
87
|
+
frac > 0.6 ? colors.zoneHigh : frac > 0.4 ? colors.zoneMid : colors.zoneLow;
|
|
88
|
+
|
|
89
|
+
/** Mono catalog label (8.5px JetBrains Mono, ~.06em tracking). */
|
|
90
|
+
function Label({
|
|
91
|
+
x,
|
|
92
|
+
y,
|
|
93
|
+
fill,
|
|
94
|
+
anchor = 'middle',
|
|
95
|
+
children,
|
|
96
|
+
}: {
|
|
97
|
+
x: number;
|
|
98
|
+
y: number;
|
|
99
|
+
fill: string;
|
|
100
|
+
anchor?: 'start' | 'middle' | 'end';
|
|
101
|
+
children: string;
|
|
102
|
+
}) {
|
|
103
|
+
return (
|
|
104
|
+
<SvgText
|
|
105
|
+
x={rd(x)}
|
|
106
|
+
y={rd(y)}
|
|
107
|
+
fill={fill}
|
|
108
|
+
textAnchor={anchor}
|
|
109
|
+
fontSize={8.5}
|
|
110
|
+
fontFamily={fonts.mono}
|
|
111
|
+
letterSpacing={0.5}
|
|
112
|
+
>
|
|
113
|
+
{children}
|
|
114
|
+
</SvgText>
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* FunnelChart — conversion-funnel chart for product surfaces (catalog family
|
|
120
|
+
* FN-01…FN-05). `band-funnel` draws the classic centered trapezoid bands
|
|
121
|
+
* (solid spectrum tokens or faint `glass` fill); the bar variants draw
|
|
122
|
+
* left-aligned stage bars with the conversion % after each bar and the coral
|
|
123
|
+
* per-stage drop-off at the right — `zone-funnel` colors each bar by its
|
|
124
|
+
* conversion zone, `compare-funnel` layers thin bars over previous-period
|
|
125
|
+
* ghost bars. Values are normalized against the first stage.
|
|
126
|
+
*/
|
|
127
|
+
export function FunnelChart({
|
|
128
|
+
stages = DEFAULT_STAGES,
|
|
129
|
+
variant = 'band-funnel',
|
|
130
|
+
fill = 'tokens',
|
|
131
|
+
title,
|
|
132
|
+
shine = false,
|
|
133
|
+
ghostLabel = 'GHOST = LAST MONTH',
|
|
134
|
+
ariaLabel = 'Conversion funnel',
|
|
135
|
+
style,
|
|
136
|
+
}: FunnelChartProps) {
|
|
137
|
+
const uid = useId().replace(/[^a-zA-Z0-9]/g, '');
|
|
138
|
+
const blurId = `lk-fnl-blur-${uid}`;
|
|
139
|
+
const isZone = variant === 'zone-funnel';
|
|
140
|
+
const isCompare = variant === 'compare-funnel';
|
|
141
|
+
const isBars = variant !== 'band-funnel';
|
|
142
|
+
const glass = fill === 'glass';
|
|
143
|
+
|
|
144
|
+
// normalize against the funnel top (first stage = 100%), clamped 0–1
|
|
145
|
+
const base = stages.length > 0 && stages[0].value > 0 ? stages[0].value : 1;
|
|
146
|
+
const frac = stages.map((s) => Math.max(0, Math.min(1, s.value / base)));
|
|
147
|
+
const n = stages.length || 1;
|
|
148
|
+
|
|
149
|
+
const colorOf = (i: number): string =>
|
|
150
|
+
isZone ? zoneColor(frac[i]) : (stages[i].color ?? STAGE_COLORS[i % STAGE_COLORS.length]);
|
|
151
|
+
|
|
152
|
+
return (
|
|
153
|
+
<View
|
|
154
|
+
accessibilityRole="image"
|
|
155
|
+
accessibilityLabel={ariaLabel}
|
|
156
|
+
style={[styles.root, style]}
|
|
157
|
+
>
|
|
158
|
+
<Svg width="100%" height="100%" viewBox={`0 0 ${W} ${H}`}>
|
|
159
|
+
{shine ? (
|
|
160
|
+
/* real Gaussian blur for the shine (Fabric-native in react-native-svg
|
|
161
|
+
15) — the native twin of the web `drop-shadow(0 0 6px glow)`. Region
|
|
162
|
+
in user space so thin bars/bands never clip the blur to their bbox. */
|
|
163
|
+
<Defs>
|
|
164
|
+
<Filter
|
|
165
|
+
id={blurId}
|
|
166
|
+
filterUnits="userSpaceOnUse"
|
|
167
|
+
x={-10}
|
|
168
|
+
y={-10}
|
|
169
|
+
width={W + 20}
|
|
170
|
+
height={H + 20}
|
|
171
|
+
>
|
|
172
|
+
<FeGaussianBlur stdDeviation={3} />
|
|
173
|
+
</Filter>
|
|
174
|
+
</Defs>
|
|
175
|
+
) : null}
|
|
176
|
+
{title ? (
|
|
177
|
+
<Label x={PAD.l + 2} y={11} fill={colors.textFaint} anchor="start">
|
|
178
|
+
{title}
|
|
179
|
+
</Label>
|
|
180
|
+
) : null}
|
|
181
|
+
|
|
182
|
+
{isBars
|
|
183
|
+
? /* ---- FN-03/04/05 · left-aligned stage bars ---- */
|
|
184
|
+
stages.map((stage, i) => {
|
|
185
|
+
const rh = PLOT_H / n;
|
|
186
|
+
const y = PAD.t + 6 + i * rh;
|
|
187
|
+
const cy = y + rh / 2;
|
|
188
|
+
const col = colorOf(i);
|
|
189
|
+
const barW = Math.max(8, BAR_MAX_W * frac[i]);
|
|
190
|
+
const barY = rd(cy - (isCompare ? 1 : 6));
|
|
191
|
+
const barH = isCompare ? 7 : 12;
|
|
192
|
+
const barR = isCompare ? 3.5 : 6;
|
|
193
|
+
const prevFrac =
|
|
194
|
+
isCompare && stage.prev != null
|
|
195
|
+
? Math.max(0, Math.min(1, stage.prev / base))
|
|
196
|
+
: null;
|
|
197
|
+
const drop =
|
|
198
|
+
i > 0 && frac[i - 1] > 0
|
|
199
|
+
? Math.max(0, Math.round((1 - frac[i] / frac[i - 1]) * 100))
|
|
200
|
+
: null;
|
|
201
|
+
|
|
202
|
+
return (
|
|
203
|
+
<G key={i}>
|
|
204
|
+
<Label x={PAD.l + 96} y={cy + 3} fill={colors.textDim} anchor="end">
|
|
205
|
+
{stage.label}
|
|
206
|
+
</Label>
|
|
207
|
+
{prevFrac != null ? (
|
|
208
|
+
<Rect
|
|
209
|
+
x={BAR_X}
|
|
210
|
+
y={rd(cy - 8)}
|
|
211
|
+
width={rd(BAR_MAX_W * prevFrac)}
|
|
212
|
+
height={5}
|
|
213
|
+
rx={2.5}
|
|
214
|
+
fill={GHOST_FILL}
|
|
215
|
+
/>
|
|
216
|
+
) : null}
|
|
217
|
+
{/* shine — a Gaussian-blurred duplicate of the bar behind it: the
|
|
218
|
+
same soft glow the web bar gets from `drop-shadow(0 0 6px col)`.
|
|
219
|
+
(Feather copies read as banded outlines on device.) */}
|
|
220
|
+
{shine ? (
|
|
221
|
+
<Rect
|
|
222
|
+
x={BAR_X}
|
|
223
|
+
y={barY}
|
|
224
|
+
width={rd(barW)}
|
|
225
|
+
height={barH}
|
|
226
|
+
rx={barR}
|
|
227
|
+
fill={col}
|
|
228
|
+
opacity={0.55}
|
|
229
|
+
filter={`url(#${blurId})`}
|
|
230
|
+
/>
|
|
231
|
+
) : null}
|
|
232
|
+
<Rect
|
|
233
|
+
x={BAR_X}
|
|
234
|
+
y={barY}
|
|
235
|
+
width={rd(barW)}
|
|
236
|
+
height={barH}
|
|
237
|
+
rx={barR}
|
|
238
|
+
fill={col}
|
|
239
|
+
opacity={0.92}
|
|
240
|
+
/>
|
|
241
|
+
<Label x={PAD.l + 108 + barW} y={cy + 3.5} fill={col} anchor="start">
|
|
242
|
+
{`${Math.round(frac[i] * 100)}%`}
|
|
243
|
+
</Label>
|
|
244
|
+
{drop != null ? (
|
|
245
|
+
<Label x={W - PAD.r - 2} y={y + 3} fill={colors.zoneLow} anchor="end">
|
|
246
|
+
{`−${drop}%`}
|
|
247
|
+
</Label>
|
|
248
|
+
) : null}
|
|
249
|
+
</G>
|
|
250
|
+
);
|
|
251
|
+
})
|
|
252
|
+
: /* ---- FN-01 · centered trapezoid bands ---- */
|
|
253
|
+
stages.map((stage, i) => {
|
|
254
|
+
const bh = (PLOT_H - 18) / n;
|
|
255
|
+
const y0 = PAD.t + 8 + i * (bh + 4);
|
|
256
|
+
const y1 = y0 + bh;
|
|
257
|
+
const cx = W / 2;
|
|
258
|
+
const wTop = BAND_MAX_W * (i === 0 ? frac[0] : frac[i - 1]);
|
|
259
|
+
const wBot = BAND_MAX_W * frac[i];
|
|
260
|
+
const col = colorOf(i);
|
|
261
|
+
const strokeW = glass ? 1.4 : 1;
|
|
262
|
+
const d = `M${rd(cx - wTop / 2)} ${rd(y0)}L${rd(cx + wTop / 2)} ${rd(
|
|
263
|
+
y0,
|
|
264
|
+
)}L${rd(cx + wBot / 2)} ${rd(y1)}L${rd(cx - wBot / 2)} ${rd(y1)}Z`;
|
|
265
|
+
|
|
266
|
+
return (
|
|
267
|
+
<G key={i}>
|
|
268
|
+
{/* shine — a Gaussian-blurred duplicate of the band behind it
|
|
269
|
+
(same fill + edge silhouette): the soft glow the web band gets
|
|
270
|
+
from `drop-shadow(0 0 6px col)` on its fill+stroke. */}
|
|
271
|
+
{shine ? (
|
|
272
|
+
<Path
|
|
273
|
+
d={d}
|
|
274
|
+
fill={col}
|
|
275
|
+
fillOpacity={glass ? 0.14 : 0.4}
|
|
276
|
+
stroke={col}
|
|
277
|
+
strokeWidth={strokeW}
|
|
278
|
+
strokeOpacity={0.8}
|
|
279
|
+
filter={`url(#${blurId})`}
|
|
280
|
+
/>
|
|
281
|
+
) : null}
|
|
282
|
+
<Path
|
|
283
|
+
d={d}
|
|
284
|
+
fill={col}
|
|
285
|
+
fillOpacity={glass ? 0.14 : 0.4}
|
|
286
|
+
stroke={col}
|
|
287
|
+
strokeWidth={strokeW}
|
|
288
|
+
strokeOpacity={0.8}
|
|
289
|
+
/>
|
|
290
|
+
<Label x={cx} y={(y0 + y1) / 2 + 3} fill={glass ? col : colors.text}>
|
|
291
|
+
{`${stage.label} · ${Math.round(frac[i] * 100)}%`}
|
|
292
|
+
</Label>
|
|
293
|
+
</G>
|
|
294
|
+
);
|
|
295
|
+
})}
|
|
296
|
+
|
|
297
|
+
{isCompare && ghostLabel ? (
|
|
298
|
+
<Label x={W - PAD.r - 2} y={H - 2} fill={colors.textFaint} anchor="end">
|
|
299
|
+
{ghostLabel}
|
|
300
|
+
</Label>
|
|
301
|
+
) : null}
|
|
302
|
+
</Svg>
|
|
303
|
+
</View>
|
|
304
|
+
);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
const styles = StyleSheet.create({
|
|
308
|
+
/* fixed catalog aspect (320×150); the Svg scales the viewBox to fit */
|
|
309
|
+
root: { width: '100%', aspectRatio: W / H },
|
|
310
|
+
});
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import { useId, type ReactNode } from 'react';
|
|
2
|
+
import { View, Text, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import Svg, { Path, Line, Circle, Defs, FeGaussianBlur, Filter, LinearGradient, Stop } from 'react-native-svg';
|
|
4
|
+
import { colors, fonts } from '@lockin90/tokens';
|
|
5
|
+
|
|
6
|
+
/** Zone verdict color for a normalized 0..1 value (catalog thresholds). */
|
|
7
|
+
function zoneColor01(t: number): string {
|
|
8
|
+
return t >= 0.62 ? colors.zoneHigh : t >= 0.38 ? colors.zoneMid : colors.zoneLow;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** A colored band on the [min,max] scale, filled up to its `to` value. Bands
|
|
12
|
+
* are stacked low→high; each paints from the previous band's `to` up to its
|
|
13
|
+
* own. */
|
|
14
|
+
export interface GaugeZone {
|
|
15
|
+
/** upper bound of this band on the [min,max] scale */
|
|
16
|
+
to: number;
|
|
17
|
+
/** the band color — a hex/rgb color string */
|
|
18
|
+
color: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface GaugeProps {
|
|
22
|
+
/** the current value, clamped to [min,max] */
|
|
23
|
+
value: number;
|
|
24
|
+
/** scale floor (default 0) */
|
|
25
|
+
min?: number;
|
|
26
|
+
/** scale ceiling (default 100) */
|
|
27
|
+
max?: number;
|
|
28
|
+
/** overall square box size in px (default 140) */
|
|
29
|
+
size?: number;
|
|
30
|
+
/** arc stroke width in px (default 12) */
|
|
31
|
+
thickness?: number;
|
|
32
|
+
/** total sweep in degrees, opening at bottom-center (default 270) */
|
|
33
|
+
sweep?: number;
|
|
34
|
+
/** colored zone bands up to each `to` on the [min,max] scale. When omitted a
|
|
35
|
+
* single accent progress arc to `value` is drawn over the track. */
|
|
36
|
+
zones?: GaugeZone[];
|
|
37
|
+
/** value-arc color (default `colors.accent`). Ignored when a `gradient`
|
|
38
|
+
* array is given or `zone` is on. */
|
|
39
|
+
color?: string;
|
|
40
|
+
/** value-arc gradient along the sweep (left → right). An array (≥2) paints N
|
|
41
|
+
* evenly-spaced gradient stops — e.g. `[colors.zoneLow, colors.zoneMid,
|
|
42
|
+
* colors.zoneHigh]` is the DN-13 red→amber→green strain gauge; a single
|
|
43
|
+
* string is treated like a solid `color`. */
|
|
44
|
+
gradient?: string | string[];
|
|
45
|
+
/** color the value arc + readout by the value's zone verdict on the
|
|
46
|
+
* [min,max] scale (≥62% → high, ≥38% → mid, else low). */
|
|
47
|
+
zone?: boolean;
|
|
48
|
+
/** glow underlay — a Gaussian-blurred duplicate of the value arc (the
|
|
49
|
+
* catalog's shine modifier; off by default). */
|
|
50
|
+
shine?: boolean;
|
|
51
|
+
/** number of tick marks along the arc (default 0 = off) */
|
|
52
|
+
ticks?: number;
|
|
53
|
+
/** tick placement: `span` straddles the arc (default, legacy) · `out` sits
|
|
54
|
+
* just outside it (DN-13 gauge-270 look). `out` shrinks the arc radius by
|
|
55
|
+
* 8px so the outer ticks fit the viewBox (native SVG clips). */
|
|
56
|
+
tickPosition?: 'span' | 'out';
|
|
57
|
+
/** draw the end-cap dot at the current value (default true) */
|
|
58
|
+
cap?: boolean;
|
|
59
|
+
/** small caption under the value */
|
|
60
|
+
label?: string;
|
|
61
|
+
/** show the numeric value readout (default true) */
|
|
62
|
+
showValue?: boolean;
|
|
63
|
+
/** override the centered content (replaces value + label) */
|
|
64
|
+
children?: ReactNode;
|
|
65
|
+
/** optional wrapper style */
|
|
66
|
+
style?: StyleProp<ViewStyle>;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** point on a circle at `cx,cy` radius `r` for screen-angle `deg`
|
|
70
|
+
* (0° = 3 o'clock, growing clockwise). */
|
|
71
|
+
function polar(cx: number, cy: number, r: number, deg: number) {
|
|
72
|
+
const a = (deg * Math.PI) / 180;
|
|
73
|
+
return { x: cx + r * Math.cos(a), y: cy + r * Math.sin(a) };
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** SVG arc path from `startDeg` to `endDeg` (clockwise) on a circle. */
|
|
77
|
+
function arcPath(cx: number, cy: number, r: number, startDeg: number, endDeg: number) {
|
|
78
|
+
const start = polar(cx, cy, r, startDeg);
|
|
79
|
+
const end = polar(cx, cy, r, endDeg);
|
|
80
|
+
const large = endDeg - startDeg > 180 ? 1 : 0;
|
|
81
|
+
return `M ${start.x.toFixed(2)} ${start.y.toFixed(2)} A ${r} ${r} 0 ${large} 1 ${end.x.toFixed(2)} ${end.y.toFixed(2)}`;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Gauge — an arc/dial primitive: a partial-circle track (default 270° sweep,
|
|
86
|
+
* open at the bottom-center) showing a `value` on a [min,max] scale. Supports
|
|
87
|
+
* colored `zones` bands (low/mid/high), a progress arc + round end cap to the
|
|
88
|
+
* current value, optional `ticks`, and a centered value/label readout. Covers
|
|
89
|
+
* the catalog gauges: DN-13 `gauge-270` (`gradient` + `ticks` +
|
|
90
|
+
* `tickPosition="out"`) and DN-14 `half-gauge` (`sweep={180}`). Distinct
|
|
91
|
+
* from `Ring` (a full-circle 0–100 single-color progress); Gauge adds an
|
|
92
|
+
* arbitrary sweep, a min/max scale, multi-zone bands and ticks.
|
|
93
|
+
*/
|
|
94
|
+
export function Gauge({
|
|
95
|
+
value,
|
|
96
|
+
min = 0,
|
|
97
|
+
max = 100,
|
|
98
|
+
size = 140,
|
|
99
|
+
thickness = 12,
|
|
100
|
+
sweep = 270,
|
|
101
|
+
zones,
|
|
102
|
+
color,
|
|
103
|
+
gradient,
|
|
104
|
+
zone = false,
|
|
105
|
+
shine = false,
|
|
106
|
+
ticks = 0,
|
|
107
|
+
tickPosition = 'span',
|
|
108
|
+
cap = true,
|
|
109
|
+
label,
|
|
110
|
+
showValue = true,
|
|
111
|
+
children,
|
|
112
|
+
style,
|
|
113
|
+
}: GaugeProps) {
|
|
114
|
+
const uid = useId();
|
|
115
|
+
const gradId = `lk-gauge-grad-${uid.replace(/[^a-zA-Z0-9]/g, '')}`;
|
|
116
|
+
|
|
117
|
+
const span = max - min || 1;
|
|
118
|
+
const sw = Math.max(0, Math.min(360, sweep));
|
|
119
|
+
const v = Math.max(min, Math.min(max, value));
|
|
120
|
+
|
|
121
|
+
const cx = size / 2;
|
|
122
|
+
const cy = size / 2;
|
|
123
|
+
// reserve room for outside ticks — native SVG clips at the viewBox
|
|
124
|
+
const outPad = tickPosition === 'out' ? 8 : 0;
|
|
125
|
+
const r = (size - thickness) / 2 - outPad;
|
|
126
|
+
|
|
127
|
+
// value-arc paint: zone verdict > N-stop gradient > single color > accent
|
|
128
|
+
const t01 = (v - min) / span;
|
|
129
|
+
const useGradient = Array.isArray(gradient) && !zone;
|
|
130
|
+
const solid = zone
|
|
131
|
+
? zoneColor01(t01)
|
|
132
|
+
: typeof gradient === 'string'
|
|
133
|
+
? gradient
|
|
134
|
+
: (color ?? colors.accent);
|
|
135
|
+
const arcStroke = useGradient ? `url(#${gradId})` : solid;
|
|
136
|
+
// cap tint follows the arc (gradient → its last stop, where the arc ends)
|
|
137
|
+
const capColor = useGradient ? gradient[gradient.length - 1]! : solid;
|
|
138
|
+
|
|
139
|
+
// The gap is centered at the bottom (screen-angle 90°). The arc starts to the
|
|
140
|
+
// left of bottom and sweeps clockwise over the top to the right of bottom.
|
|
141
|
+
const startDeg = 90 + (360 - sw) / 2;
|
|
142
|
+
const endDeg = startDeg + sw;
|
|
143
|
+
/** map a [min,max] value to its screen-angle along the sweep */
|
|
144
|
+
const toAngle = (val: number) => startDeg + ((val - min) / span) * sw;
|
|
145
|
+
|
|
146
|
+
const hasZones = Array.isArray(zones) && zones.length > 0;
|
|
147
|
+
|
|
148
|
+
// zone band arcs, stacked low→high from `min`
|
|
149
|
+
const bands = hasZones
|
|
150
|
+
? zones!
|
|
151
|
+
.slice()
|
|
152
|
+
.sort((a, b) => a.to - b.to)
|
|
153
|
+
.reduce<{ from: number; to: number; color: string }[]>((acc, z) => {
|
|
154
|
+
const prev = acc.length ? acc[acc.length - 1]!.to : min;
|
|
155
|
+
const to = Math.max(min, Math.min(max, z.to));
|
|
156
|
+
if (to > prev) acc.push({ from: prev, to, color: z.color });
|
|
157
|
+
return acc;
|
|
158
|
+
}, [])
|
|
159
|
+
: [];
|
|
160
|
+
|
|
161
|
+
// tick angles evenly spaced across the sweep (inclusive of both ends)
|
|
162
|
+
const tickMarks: number[] = [];
|
|
163
|
+
if (ticks > 0) {
|
|
164
|
+
const n = ticks;
|
|
165
|
+
for (let i = 0; i < n; i++) {
|
|
166
|
+
tickMarks.push(startDeg + (n === 1 ? 0 : (i / (n - 1)) * sw));
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
// `span` straddles the arc (legacy); `out` sits just past its outer edge (DN-13)
|
|
170
|
+
const tickOuter = r + thickness / 2 + (tickPosition === 'out' ? 7.5 : 2);
|
|
171
|
+
const tickInner = tickPosition === 'out' ? r + thickness / 2 + 2.5 : r - thickness / 2 - 2;
|
|
172
|
+
|
|
173
|
+
const valueAngle = toAngle(v);
|
|
174
|
+
const capPt = polar(cx, cy, r, valueAngle);
|
|
175
|
+
|
|
176
|
+
return (
|
|
177
|
+
<View style={[styles.root, { width: size, height: size }, style]}>
|
|
178
|
+
<Svg width={size} height={size} viewBox={`0 0 ${size} ${size}`}>
|
|
179
|
+
{useGradient ? (
|
|
180
|
+
<Defs>
|
|
181
|
+
<LinearGradient id={gradId} x1="0" y1="0" x2="1" y2="0">
|
|
182
|
+
{gradient.map((stopColor, i) => (
|
|
183
|
+
<Stop
|
|
184
|
+
key={i}
|
|
185
|
+
offset={i / Math.max(1, gradient.length - 1)}
|
|
186
|
+
stopColor={stopColor}
|
|
187
|
+
/>
|
|
188
|
+
))}
|
|
189
|
+
</LinearGradient>
|
|
190
|
+
</Defs>
|
|
191
|
+
) : null}
|
|
192
|
+
{shine && !hasZones ? (
|
|
193
|
+
/* real Gaussian blur for the shine (Fabric-native in react-native-svg 15) —
|
|
194
|
+
the native twin of the web value arc's `blur(6px)` underlay. Region in
|
|
195
|
+
user space so short/flat arcs never clip the blur to their bbox. */
|
|
196
|
+
<Defs>
|
|
197
|
+
<Filter
|
|
198
|
+
id={`${gradId}-blur`}
|
|
199
|
+
filterUnits="userSpaceOnUse"
|
|
200
|
+
x={-12}
|
|
201
|
+
y={-12}
|
|
202
|
+
width={size + 24}
|
|
203
|
+
height={size + 24}
|
|
204
|
+
>
|
|
205
|
+
<FeGaussianBlur stdDeviation={3} />
|
|
206
|
+
</Filter>
|
|
207
|
+
</Defs>
|
|
208
|
+
) : null}
|
|
209
|
+
|
|
210
|
+
{/* track — the full sweep, faint */}
|
|
211
|
+
<Path
|
|
212
|
+
d={arcPath(cx, cy, r, startDeg, endDeg)}
|
|
213
|
+
fill="none"
|
|
214
|
+
stroke={colors.border}
|
|
215
|
+
strokeWidth={thickness}
|
|
216
|
+
strokeLinecap="round"
|
|
217
|
+
/>
|
|
218
|
+
|
|
219
|
+
{/* zone bands (when provided) */}
|
|
220
|
+
{bands.map((b, i) => (
|
|
221
|
+
<Path
|
|
222
|
+
key={`band-${i}`}
|
|
223
|
+
d={arcPath(cx, cy, r, toAngle(b.from), toAngle(b.to))}
|
|
224
|
+
fill="none"
|
|
225
|
+
stroke={b.color}
|
|
226
|
+
strokeWidth={thickness}
|
|
227
|
+
strokeLinecap="round"
|
|
228
|
+
/>
|
|
229
|
+
))}
|
|
230
|
+
|
|
231
|
+
{/* shine — a Gaussian-blurred duplicate of the value arc behind it: the
|
|
232
|
+
same soft glow the web arc gets from its `blur(6px)` underlay.
|
|
233
|
+
(Discrete "feather" copies read as banded outlines on device.) */}
|
|
234
|
+
{shine && !hasZones && v > min ? (
|
|
235
|
+
<Path
|
|
236
|
+
d={arcPath(cx, cy, r, startDeg, valueAngle)}
|
|
237
|
+
fill="none"
|
|
238
|
+
stroke={arcStroke}
|
|
239
|
+
strokeWidth={thickness + 5}
|
|
240
|
+
strokeOpacity={0.5}
|
|
241
|
+
strokeLinecap="round"
|
|
242
|
+
filter={`url(#${gradId}-blur)`}
|
|
243
|
+
/>
|
|
244
|
+
) : null}
|
|
245
|
+
|
|
246
|
+
{/* progress arc to value — only when there are no zones */}
|
|
247
|
+
{!hasZones && v > min ? (
|
|
248
|
+
<Path
|
|
249
|
+
d={arcPath(cx, cy, r, startDeg, valueAngle)}
|
|
250
|
+
fill="none"
|
|
251
|
+
stroke={arcStroke}
|
|
252
|
+
strokeWidth={thickness}
|
|
253
|
+
strokeLinecap="round"
|
|
254
|
+
/>
|
|
255
|
+
) : null}
|
|
256
|
+
|
|
257
|
+
{/* ticks */}
|
|
258
|
+
{tickMarks.map((deg, i) => {
|
|
259
|
+
const a = polar(cx, cy, tickOuter, deg);
|
|
260
|
+
const b = polar(cx, cy, tickInner, deg);
|
|
261
|
+
return (
|
|
262
|
+
<Line
|
|
263
|
+
key={`tick-${i}`}
|
|
264
|
+
x1={a.x}
|
|
265
|
+
y1={a.y}
|
|
266
|
+
x2={b.x}
|
|
267
|
+
y2={b.y}
|
|
268
|
+
stroke={colors.textFaint}
|
|
269
|
+
strokeWidth={1.5}
|
|
270
|
+
strokeLinecap="round"
|
|
271
|
+
/>
|
|
272
|
+
);
|
|
273
|
+
})}
|
|
274
|
+
|
|
275
|
+
{/* end cap — a dot marking the current value on the arc */}
|
|
276
|
+
{cap && v > min ? (
|
|
277
|
+
<Circle
|
|
278
|
+
cx={capPt.x}
|
|
279
|
+
cy={capPt.y}
|
|
280
|
+
r={thickness / 2 + 1}
|
|
281
|
+
fill={colors.text}
|
|
282
|
+
stroke={capColor}
|
|
283
|
+
strokeWidth={2}
|
|
284
|
+
/>
|
|
285
|
+
) : null}
|
|
286
|
+
</Svg>
|
|
287
|
+
|
|
288
|
+
<View style={styles.center} pointerEvents="none">
|
|
289
|
+
{children ?? (
|
|
290
|
+
<>
|
|
291
|
+
{showValue ? (
|
|
292
|
+
<Text style={[styles.value, zone ? { color: solid } : null]}>
|
|
293
|
+
{Math.round(v)}
|
|
294
|
+
</Text>
|
|
295
|
+
) : null}
|
|
296
|
+
{label ? <Text style={styles.label}>{label}</Text> : null}
|
|
297
|
+
</>
|
|
298
|
+
)}
|
|
299
|
+
</View>
|
|
300
|
+
</View>
|
|
301
|
+
);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
const styles = StyleSheet.create({
|
|
305
|
+
root: { position: 'relative', alignItems: 'center', justifyContent: 'center' },
|
|
306
|
+
center: {
|
|
307
|
+
...StyleSheet.absoluteFillObject,
|
|
308
|
+
alignItems: 'center',
|
|
309
|
+
justifyContent: 'center',
|
|
310
|
+
gap: 2,
|
|
311
|
+
},
|
|
312
|
+
value: {
|
|
313
|
+
fontFamily: fonts.display,
|
|
314
|
+
fontWeight: '700',
|
|
315
|
+
letterSpacing: -1,
|
|
316
|
+
lineHeight: 34,
|
|
317
|
+
fontSize: 34,
|
|
318
|
+
color: colors.text,
|
|
319
|
+
textAlign: 'center',
|
|
320
|
+
},
|
|
321
|
+
label: {
|
|
322
|
+
fontFamily: fonts.mono,
|
|
323
|
+
fontSize: 10.5,
|
|
324
|
+
letterSpacing: 1.6,
|
|
325
|
+
textTransform: 'uppercase',
|
|
326
|
+
color: colors.textFaint,
|
|
327
|
+
textAlign: 'center',
|
|
328
|
+
},
|
|
329
|
+
});
|