@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,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { View, StyleSheet } from 'react-native';
|
|
4
|
+
import { LinearGradient } from 'expo-linear-gradient';
|
|
5
|
+
import { gradients } from '@lockin90/tokens';
|
|
6
|
+
|
|
7
|
+
/** Fill gradient — one of the `@lockin90/tokens` gradient tokens. */
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
/** Thin gradient progress bar. */
|
|
10
|
+
export function BarFill({
|
|
11
|
+
value,
|
|
12
|
+
height = 8,
|
|
13
|
+
gradient = 'cta',
|
|
14
|
+
style,
|
|
15
|
+
...rest
|
|
16
|
+
}) {
|
|
17
|
+
const v = Math.max(0, Math.min(1, value));
|
|
18
|
+
const pct = `${v * 100}%`;
|
|
19
|
+
const stops = gradients[gradient].stops;
|
|
20
|
+
return /*#__PURE__*/_jsx(View, {
|
|
21
|
+
style: [styles.track, {
|
|
22
|
+
height,
|
|
23
|
+
borderRadius: height
|
|
24
|
+
}, style],
|
|
25
|
+
...rest,
|
|
26
|
+
children: /*#__PURE__*/_jsx(LinearGradient, {
|
|
27
|
+
colors: stops,
|
|
28
|
+
start: {
|
|
29
|
+
x: 0,
|
|
30
|
+
y: 0
|
|
31
|
+
},
|
|
32
|
+
end: {
|
|
33
|
+
x: 1,
|
|
34
|
+
y: 0
|
|
35
|
+
},
|
|
36
|
+
style: {
|
|
37
|
+
height: '100%',
|
|
38
|
+
width: pct,
|
|
39
|
+
borderRadius: height
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
const styles = StyleSheet.create({
|
|
45
|
+
track: {
|
|
46
|
+
width: '100%',
|
|
47
|
+
backgroundColor: 'rgba(255,255,255,0.06)',
|
|
48
|
+
overflow: 'hidden'
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
//# sourceMappingURL=BarFill.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["View","StyleSheet","LinearGradient","gradients","jsx","_jsx","BarFill","value","height","gradient","style","rest","v","Math","max","min","pct","stops","styles","track","borderRadius","children","colors","start","x","y","end","width","create","backgroundColor","overflow"],"sourceRoot":"../../../src","sources":["components/BarFill.tsx"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,UAAU,QAA6C,cAAc;AACpF,SAASC,cAAc,QAAQ,sBAAsB;AACrD,SAASC,SAAS,QAAQ,kBAAkB;;AAE5C;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAaA;AACA,OAAO,SAASC,OAAOA,CAAC;EAAEC,KAAK;EAAEC,MAAM,GAAG,CAAC;EAAEC,QAAQ,GAAG,KAAK;EAAEC,KAAK;EAAE,GAAGC;AAAmB,CAAC,EAAE;EAC7F,MAAMC,CAAC,GAAGC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,GAAG,CAAC,CAAC,EAAER,KAAK,CAAC,CAAC;EACzC,MAAMS,GAAG,GAAG,GAAGJ,CAAC,GAAG,GAAG,GAAqB;EAC3C,MAAMK,KAAK,GAAGd,SAAS,CAACM,QAAQ,CAAC,CAACQ,KAA0D;EAC5F,oBACEZ,IAAA,CAACL,IAAI;IAACU,KAAK,EAAE,CAACQ,MAAM,CAACC,KAAK,EAAE;MAAEX,MAAM;MAAEY,YAAY,EAAEZ;IAAO,CAAC,EAAEE,KAAK,CAAE;IAAA,GAAKC,IAAI;IAAAU,QAAA,eAC5EhB,IAAA,CAACH,cAAc;MACboB,MAAM,EAAEL,KAAM;MACdM,KAAK,EAAE;QAAEC,CAAC,EAAE,CAAC;QAAEC,CAAC,EAAE;MAAE,CAAE;MACtBC,GAAG,EAAE;QAAEF,CAAC,EAAE,CAAC;QAAEC,CAAC,EAAE;MAAE,CAAE;MACpBf,KAAK,EAAE;QAAEF,MAAM,EAAE,MAAM;QAAEmB,KAAK,EAAEX,GAAG;QAAEI,YAAY,EAAEZ;MAAO;IAAE,CAC7D;EAAC,CACE,CAAC;AAEX;AAEA,MAAMU,MAAM,GAAGjB,UAAU,CAAC2B,MAAM,CAAC;EAC/BT,KAAK,EAAE;IAAEQ,KAAK,EAAE,MAAM;IAAEE,eAAe,EAAE,wBAAwB;IAAEC,QAAQ,EAAE;EAAS;AACxF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,610 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useId } from 'react';
|
|
4
|
+
import { View, StyleSheet } from 'react-native';
|
|
5
|
+
import Svg, { Circle, Defs, FeGaussianBlur, Filter, G, Line, Rect, Text as SvgText } from 'react-native-svg';
|
|
6
|
+
import { colors, fonts } from '@lockin90/tokens';
|
|
7
|
+
|
|
8
|
+
/* BeeswarmChart — the shared catalog beeswarm family (BW-01…BW-04,
|
|
9
|
+
lockin90-design/charts/beeswarm-charts.html): every session is a dot — your
|
|
10
|
+
whole history in one swarm along a value axis, drawn in a fixed 320×150
|
|
11
|
+
viewBox. Placement is the catalog's greedy collision-free algorithm ported
|
|
12
|
+
verbatim (sort by x, first non-colliding vertical offset wins). Native twin
|
|
13
|
+
of `@lockin90/ui` BeeswarmChart — same prop API; glows are real
|
|
14
|
+
Gaussian-blurred duplicates (Fabric-native SVG filters in react-native-svg
|
|
15
|
+
15) and the BW-02 TODAY pulse is a static duplicate halo (no CSS animation
|
|
16
|
+
on native). */
|
|
17
|
+
|
|
18
|
+
/* BW-04 — two swarms stacked on a shared axis + mean ticks + delta pill */
|
|
19
|
+
|
|
20
|
+
/** One swarm dot: a session/day value on the x axis. */
|
|
21
|
+
|
|
22
|
+
/** One `month-swarm` row: a labeled swarm sharing the axis. */
|
|
23
|
+
|
|
24
|
+
/** An x-axis tick: a domain value + its label. */
|
|
25
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
26
|
+
/* ---- catalog geometry (viewBox units — charts/catalog.js + beeswarm page) ---- */
|
|
27
|
+
const W = 320;
|
|
28
|
+
const H = 150;
|
|
29
|
+
const PAD = {
|
|
30
|
+
l: 10,
|
|
31
|
+
r: 12,
|
|
32
|
+
t: 16,
|
|
33
|
+
b: 14
|
|
34
|
+
};
|
|
35
|
+
/** Dot radius the swarm packs with (drawn radius can differ — BW-04 draws 2.8). */
|
|
36
|
+
const R = 3.1;
|
|
37
|
+
|
|
38
|
+
/** Round for compact attribute values. */
|
|
39
|
+
const rd = n => Math.round(n * 100) / 100;
|
|
40
|
+
|
|
41
|
+
/** Zone verdict color for a 0–100 value (same thresholds as the catalog). */
|
|
42
|
+
const zoneColor = v => v >= 62 ? colors.zoneHigh : v >= 38 ? colors.zoneMid : colors.zoneLow;
|
|
43
|
+
|
|
44
|
+
/** The catalog's deterministic PRNG — the default demo data reproduces the
|
|
45
|
+
* design page dot-for-dot (seeds 7 / 11 / 13 / 21 / 22). */
|
|
46
|
+
function mulberry32(a) {
|
|
47
|
+
return () => {
|
|
48
|
+
a |= 0;
|
|
49
|
+
a = a + 0x6d2b79f5 | 0;
|
|
50
|
+
let t = Math.imul(a ^ a >>> 15, 1 | a);
|
|
51
|
+
t = t + Math.imul(t ^ t >>> 7, 61 | t) ^ t;
|
|
52
|
+
return ((t ^ t >>> 14) >>> 0) / 4294967296;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/** Greedy beeswarm (ported from the catalog): sort by x; for each dot try
|
|
56
|
+
* vertical offsets 0, ±STEP, ±2·STEP … and keep the first that doesn't
|
|
57
|
+
* collide with an already-placed dot. If all 24 offsets collide the dot is
|
|
58
|
+
* placed at the last offset anyway (the catalog drops it — we never lose data). */
|
|
59
|
+
function swarm(xs, cy) {
|
|
60
|
+
const step = R * 2 + 0.6;
|
|
61
|
+
const minD = 2 * R + 0.4;
|
|
62
|
+
const order = xs.map((x, i) => ({
|
|
63
|
+
x,
|
|
64
|
+
i
|
|
65
|
+
})).sort((a, b) => a.x - b.x);
|
|
66
|
+
const placed = [];
|
|
67
|
+
const out = new Array(xs.length);
|
|
68
|
+
for (const o of order) {
|
|
69
|
+
let py = cy;
|
|
70
|
+
for (let k = 0; k < 24; k++) {
|
|
71
|
+
const y = cy + (k % 2 ? -1 : 1) * Math.ceil(k / 2) * step;
|
|
72
|
+
py = y;
|
|
73
|
+
let ok = true;
|
|
74
|
+
for (let j = placed.length - 1; j >= 0; j--) {
|
|
75
|
+
const p = placed[j];
|
|
76
|
+
if (o.x - p.x > minD) break; // placed stays x-sorted
|
|
77
|
+
const dx = o.x - p.x;
|
|
78
|
+
const dy = y - p.y;
|
|
79
|
+
if (dx * dx + dy * dy < minD * minD) {
|
|
80
|
+
ok = false;
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
if (ok) break;
|
|
85
|
+
}
|
|
86
|
+
placed.push({
|
|
87
|
+
x: o.x,
|
|
88
|
+
y: py
|
|
89
|
+
});
|
|
90
|
+
out[o.i] = {
|
|
91
|
+
x: o.x,
|
|
92
|
+
y: py
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
return out;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* ---- per-variant catalog layout ---- */
|
|
99
|
+
const LAYOUT = {
|
|
100
|
+
'history-swarm': {
|
|
101
|
+
x0: 26,
|
|
102
|
+
x1: 226,
|
|
103
|
+
cy: 74,
|
|
104
|
+
axisY: 126
|
|
105
|
+
},
|
|
106
|
+
'score-swarm': {
|
|
107
|
+
x0: 26,
|
|
108
|
+
x1: 292,
|
|
109
|
+
cy: 78,
|
|
110
|
+
axisY: 130
|
|
111
|
+
},
|
|
112
|
+
'pr-swarm': {
|
|
113
|
+
x0: 26,
|
|
114
|
+
x1: 250,
|
|
115
|
+
cy: 76,
|
|
116
|
+
axisY: 126
|
|
117
|
+
},
|
|
118
|
+
'month-swarm': {
|
|
119
|
+
x0: 46,
|
|
120
|
+
x1: 292,
|
|
121
|
+
cy: 52,
|
|
122
|
+
axisY: 136
|
|
123
|
+
} // second row at cy 106
|
|
124
|
+
};
|
|
125
|
+
const DEFAULT_DOMAINS = {
|
|
126
|
+
'history-swarm': [15, 95],
|
|
127
|
+
'score-swarm': [0, 100],
|
|
128
|
+
'pr-swarm': [55, 115],
|
|
129
|
+
'month-swarm': [15, 95]
|
|
130
|
+
};
|
|
131
|
+
const DEFAULT_TICKS = {
|
|
132
|
+
'history-swarm': [{
|
|
133
|
+
value: 20,
|
|
134
|
+
label: '20M'
|
|
135
|
+
}, {
|
|
136
|
+
value: 40,
|
|
137
|
+
label: '40M'
|
|
138
|
+
}, {
|
|
139
|
+
value: 60,
|
|
140
|
+
label: '60M'
|
|
141
|
+
}, {
|
|
142
|
+
value: 80,
|
|
143
|
+
label: '80M'
|
|
144
|
+
}],
|
|
145
|
+
'score-swarm': [0, 25, 50, 75, 100].map(v => ({
|
|
146
|
+
value: v,
|
|
147
|
+
label: String(v)
|
|
148
|
+
})),
|
|
149
|
+
'pr-swarm': [{
|
|
150
|
+
value: 60,
|
|
151
|
+
label: '60KG'
|
|
152
|
+
}, {
|
|
153
|
+
value: 80,
|
|
154
|
+
label: '80KG'
|
|
155
|
+
}, {
|
|
156
|
+
value: 100,
|
|
157
|
+
label: '100KG'
|
|
158
|
+
}],
|
|
159
|
+
'month-swarm': [{
|
|
160
|
+
value: 30,
|
|
161
|
+
label: '30M'
|
|
162
|
+
}, {
|
|
163
|
+
value: 50,
|
|
164
|
+
label: '50M'
|
|
165
|
+
}, {
|
|
166
|
+
value: 70,
|
|
167
|
+
label: '70M'
|
|
168
|
+
}]
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
/* ---- the catalog demo data (same seeds → dot-for-dot parity) ---- */
|
|
172
|
+
function historyDefaults() {
|
|
173
|
+
const r = mulberry32(7);
|
|
174
|
+
const pts = [];
|
|
175
|
+
for (let i = 0; i < 60; i++) {
|
|
176
|
+
const value = 20 + 70 * (r() * 0.5 + r() * 0.5); // minutes 20..90
|
|
177
|
+
const tv = r();
|
|
178
|
+
pts.push({
|
|
179
|
+
value,
|
|
180
|
+
series: tv < 0.5 ? 0 : tv < 0.82 ? 1 : 2,
|
|
181
|
+
ring: i >= 55
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
return pts;
|
|
185
|
+
}
|
|
186
|
+
function scoreDefaults() {
|
|
187
|
+
const r = mulberry32(11);
|
|
188
|
+
const pts = [];
|
|
189
|
+
for (let i = 0; i < 50; i++) pts.push({
|
|
190
|
+
value: Math.round(28 + 66 * (r() * 0.5 + r() * 0.5))
|
|
191
|
+
});
|
|
192
|
+
pts[49] = {
|
|
193
|
+
value: 72,
|
|
194
|
+
hero: true
|
|
195
|
+
};
|
|
196
|
+
return pts;
|
|
197
|
+
}
|
|
198
|
+
function prDefaults() {
|
|
199
|
+
const r = mulberry32(13);
|
|
200
|
+
const pts = [];
|
|
201
|
+
for (let i = 0; i < 40; i++) pts.push({
|
|
202
|
+
value: 62 + 40 * (r() * 0.6 + r() * 0.4)
|
|
203
|
+
});
|
|
204
|
+
pts[39] = {
|
|
205
|
+
value: 110,
|
|
206
|
+
hero: true
|
|
207
|
+
};
|
|
208
|
+
return pts;
|
|
209
|
+
}
|
|
210
|
+
function monthDefaults() {
|
|
211
|
+
const gen = (seed, boost) => {
|
|
212
|
+
const r = mulberry32(seed);
|
|
213
|
+
const v = [];
|
|
214
|
+
for (let q = 0; q < 30; q++) v.push(22 + 62 * (r() * 0.5 + r() * 0.5) + boost);
|
|
215
|
+
return v;
|
|
216
|
+
};
|
|
217
|
+
return [{
|
|
218
|
+
label: 'JUN',
|
|
219
|
+
values: gen(21, 6)
|
|
220
|
+
}, {
|
|
221
|
+
label: 'MAY',
|
|
222
|
+
values: gen(22, 0)
|
|
223
|
+
}];
|
|
224
|
+
}
|
|
225
|
+
const DEFAULT_POINTS = {
|
|
226
|
+
'history-swarm': historyDefaults(),
|
|
227
|
+
'score-swarm': scoreDefaults(),
|
|
228
|
+
'pr-swarm': prDefaults()
|
|
229
|
+
};
|
|
230
|
+
const DEFAULT_GROUPS = monthDefaults();
|
|
231
|
+
const DEFAULT_SERIES_LABELS = ['STRENGTH', 'CARDIO', 'MOBILITY'];
|
|
232
|
+
const DEFAULT_PALETTE = [colors.violet, colors.cyan, colors.lime];
|
|
233
|
+
|
|
234
|
+
/** Mono catalog label (8.5px JetBrains Mono, ~.06em tracking). */
|
|
235
|
+
function Label({
|
|
236
|
+
x,
|
|
237
|
+
y,
|
|
238
|
+
fill,
|
|
239
|
+
anchor = 'middle',
|
|
240
|
+
children
|
|
241
|
+
}) {
|
|
242
|
+
return /*#__PURE__*/_jsx(SvgText, {
|
|
243
|
+
x: rd(x),
|
|
244
|
+
y: rd(y),
|
|
245
|
+
fill: fill,
|
|
246
|
+
textAnchor: anchor,
|
|
247
|
+
fontSize: 8.5,
|
|
248
|
+
fontFamily: fonts.mono,
|
|
249
|
+
letterSpacing: 0.5,
|
|
250
|
+
children: children
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/** Chip-pill annotation (dark rounded rect + tinted hairline + mono text). */
|
|
255
|
+
function Tag({
|
|
256
|
+
x,
|
|
257
|
+
y,
|
|
258
|
+
color,
|
|
259
|
+
anchor = 'middle',
|
|
260
|
+
children
|
|
261
|
+
}) {
|
|
262
|
+
const w = children.length * 5.35 + 12;
|
|
263
|
+
let xa = anchor === 'end' ? x - w : anchor === 'start' ? x : x - w / 2;
|
|
264
|
+
xa = Math.max(PAD.l - 4, Math.min(xa, W - PAD.r - w + 4));
|
|
265
|
+
return /*#__PURE__*/_jsxs(G, {
|
|
266
|
+
children: [/*#__PURE__*/_jsx(Rect, {
|
|
267
|
+
x: rd(xa),
|
|
268
|
+
y: rd(y - 6.5),
|
|
269
|
+
width: rd(w),
|
|
270
|
+
height: 13,
|
|
271
|
+
rx: 6.5,
|
|
272
|
+
fill: colors.bg0,
|
|
273
|
+
fillOpacity: 0.78,
|
|
274
|
+
stroke: color,
|
|
275
|
+
strokeOpacity: 0.35,
|
|
276
|
+
strokeWidth: 0.8
|
|
277
|
+
}), /*#__PURE__*/_jsx(SvgText, {
|
|
278
|
+
x: rd(xa + w / 2),
|
|
279
|
+
y: rd(y + 2.8),
|
|
280
|
+
fill: color,
|
|
281
|
+
textAnchor: "middle",
|
|
282
|
+
fontSize: 8,
|
|
283
|
+
fontFamily: fonts.mono,
|
|
284
|
+
letterSpacing: 0.4,
|
|
285
|
+
children: children
|
|
286
|
+
})]
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/** The x axis: hairline + value ticks + labels (the catalog axis()). */
|
|
291
|
+
function Axis({
|
|
292
|
+
x0,
|
|
293
|
+
x1,
|
|
294
|
+
y,
|
|
295
|
+
ticks,
|
|
296
|
+
domain
|
|
297
|
+
}) {
|
|
298
|
+
const span = domain[1] - domain[0] || 1;
|
|
299
|
+
return /*#__PURE__*/_jsxs(G, {
|
|
300
|
+
children: [/*#__PURE__*/_jsx(Line, {
|
|
301
|
+
x1: x0,
|
|
302
|
+
x2: x1,
|
|
303
|
+
y1: y,
|
|
304
|
+
y2: y,
|
|
305
|
+
stroke: colors.text,
|
|
306
|
+
strokeOpacity: 0.12,
|
|
307
|
+
strokeWidth: 1
|
|
308
|
+
}), ticks.map((t, i) => {
|
|
309
|
+
const tx = x0 + (x1 - x0) * (t.value - domain[0]) / span;
|
|
310
|
+
return /*#__PURE__*/_jsxs(G, {
|
|
311
|
+
children: [/*#__PURE__*/_jsx(Line, {
|
|
312
|
+
x1: rd(tx),
|
|
313
|
+
x2: rd(tx),
|
|
314
|
+
y1: y - 2,
|
|
315
|
+
y2: y + 2,
|
|
316
|
+
stroke: colors.text,
|
|
317
|
+
strokeOpacity: 0.2,
|
|
318
|
+
strokeWidth: 1
|
|
319
|
+
}), /*#__PURE__*/_jsx(Label, {
|
|
320
|
+
x: tx,
|
|
321
|
+
y: y + 11,
|
|
322
|
+
fill: colors.textFaint,
|
|
323
|
+
children: t.label
|
|
324
|
+
})]
|
|
325
|
+
}, i);
|
|
326
|
+
})]
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* BeeswarmChart — dot-swarm distribution chart for product surfaces (catalog
|
|
332
|
+
* family BW-01…BW-04). `history-swarm` is THE training-history overview:
|
|
333
|
+
* every session is a dot along the duration axis, colored by type, this week
|
|
334
|
+
* ringed white. `score-swarm` places TODAY (pilled, static halo on native)
|
|
335
|
+
* inside your own score distribution, `pr-swarm` celebrates one glowing PR
|
|
336
|
+
* dot, `month-swarm` stacks two months on a shared axis with mean ticks and
|
|
337
|
+
* a delta pill.
|
|
338
|
+
*/
|
|
339
|
+
export function BeeswarmChart({
|
|
340
|
+
variant = 'history-swarm',
|
|
341
|
+
points,
|
|
342
|
+
groups,
|
|
343
|
+
domain,
|
|
344
|
+
ticks,
|
|
345
|
+
seriesLabels = DEFAULT_SERIES_LABELS,
|
|
346
|
+
palette = DEFAULT_PALETTE,
|
|
347
|
+
note,
|
|
348
|
+
caption,
|
|
349
|
+
endLabel,
|
|
350
|
+
title,
|
|
351
|
+
shine = false,
|
|
352
|
+
ariaLabel = 'Beeswarm chart',
|
|
353
|
+
style
|
|
354
|
+
}) {
|
|
355
|
+
const uid = useId().replace(/[^a-zA-Z0-9]/g, '');
|
|
356
|
+
const blurId = `lk-swarm-blur-${uid}`;
|
|
357
|
+
const L = LAYOUT[variant];
|
|
358
|
+
const dom = domain ?? DEFAULT_DOMAINS[variant];
|
|
359
|
+
const axisTicks = ticks ?? DEFAULT_TICKS[variant];
|
|
360
|
+
const span = dom[1] - dom[0] || 1;
|
|
361
|
+
const xOf = v => L.x0 + (L.x1 - L.x0) * (v - dom[0]) / span;
|
|
362
|
+
const usingDefaultPoints = points === undefined;
|
|
363
|
+
const pts = variant === 'month-swarm' ? [] : points ?? DEFAULT_POINTS[variant];
|
|
364
|
+
const rows = variant === 'month-swarm' ? (groups ?? DEFAULT_GROUPS).slice(0, 2) : [];
|
|
365
|
+
|
|
366
|
+
/* shine underlay — a Gaussian-blurred faint duplicate behind a dot: the
|
|
367
|
+
native twin of the web helper's `blur(4px)` underlay. (Un-blurred wide
|
|
368
|
+
copies read as hard outlines on device.) */
|
|
369
|
+
const glow = (x, y, r, fill, key) => /*#__PURE__*/_jsx(Circle, {
|
|
370
|
+
cx: rd(x),
|
|
371
|
+
cy: rd(y),
|
|
372
|
+
r: rd(r),
|
|
373
|
+
fill: fill,
|
|
374
|
+
opacity: 0.4,
|
|
375
|
+
filter: `url(#${blurId})`
|
|
376
|
+
}, key);
|
|
377
|
+
let body = null;
|
|
378
|
+
if (variant === 'history-swarm') {
|
|
379
|
+
/* ---- BW-01 · the training-history swarm ---- */
|
|
380
|
+
const dots = swarm(pts.map(p => xOf(p.value)), L.cy);
|
|
381
|
+
const resolvedCaption = caption ?? (pts.some(p => p.ring) ? '○ = THIS WEEK' : undefined);
|
|
382
|
+
body = /*#__PURE__*/_jsxs(_Fragment, {
|
|
383
|
+
children: [shine ? dots.map((d, i) => glow(d.x, d.y, R + 2.5, palette[(pts[i].series ?? 0) % palette.length], `g${i}`)) : null, dots.map((d, i) => /*#__PURE__*/_jsx(Circle, {
|
|
384
|
+
cx: rd(d.x),
|
|
385
|
+
cy: rd(d.y),
|
|
386
|
+
r: R,
|
|
387
|
+
fill: palette[(pts[i].series ?? 0) % palette.length],
|
|
388
|
+
opacity: 0.85,
|
|
389
|
+
stroke: pts[i].ring ? colors.text : undefined,
|
|
390
|
+
strokeOpacity: pts[i].ring ? 0.95 : undefined,
|
|
391
|
+
strokeWidth: pts[i].ring ? 1.2 : undefined
|
|
392
|
+
}, i)), /*#__PURE__*/_jsx(Axis, {
|
|
393
|
+
x0: L.x0,
|
|
394
|
+
x1: L.x1,
|
|
395
|
+
y: L.axisY,
|
|
396
|
+
ticks: axisTicks,
|
|
397
|
+
domain: dom
|
|
398
|
+
}), seriesLabels.map((lg, i) => /*#__PURE__*/_jsxs(G, {
|
|
399
|
+
children: [/*#__PURE__*/_jsx(Circle, {
|
|
400
|
+
cx: 246,
|
|
401
|
+
cy: 46 + i * 18,
|
|
402
|
+
r: 3.5,
|
|
403
|
+
fill: palette[i % palette.length]
|
|
404
|
+
}), /*#__PURE__*/_jsx(Label, {
|
|
405
|
+
x: 254,
|
|
406
|
+
y: 49 + i * 18,
|
|
407
|
+
fill: colors.textDim,
|
|
408
|
+
anchor: "start",
|
|
409
|
+
children: lg
|
|
410
|
+
})]
|
|
411
|
+
}, lg)), resolvedCaption ? /*#__PURE__*/_jsx(Label, {
|
|
412
|
+
x: 246,
|
|
413
|
+
y: 106,
|
|
414
|
+
fill: colors.textDim,
|
|
415
|
+
anchor: "start",
|
|
416
|
+
children: resolvedCaption
|
|
417
|
+
}) : null]
|
|
418
|
+
});
|
|
419
|
+
} else if (variant === 'score-swarm') {
|
|
420
|
+
/* ---- BW-02 · you vs your own history (TODAY — static halo on native) ---- */
|
|
421
|
+
const heroIdx = (() => {
|
|
422
|
+
const h = pts.findIndex(p => p.hero);
|
|
423
|
+
return h >= 0 ? h : pts.length - 1;
|
|
424
|
+
})();
|
|
425
|
+
const dots = swarm(pts.map(p => xOf(p.value)), L.cy);
|
|
426
|
+
const hero = dots[heroIdx];
|
|
427
|
+
const resolvedNote = note ?? (pts.length ? `TODAY · ${Math.round(pts[heroIdx].value)}` : undefined);
|
|
428
|
+
body = /*#__PURE__*/_jsxs(_Fragment, {
|
|
429
|
+
children: [shine ? dots.map((d, i) => i === heroIdx ? null : glow(d.x, d.y, R + 2.5, zoneColor(pts[i].value), `g${i}`)) : null, dots.map((d, i) => i === heroIdx ? null : /*#__PURE__*/_jsx(Circle, {
|
|
430
|
+
cx: rd(d.x),
|
|
431
|
+
cy: rd(d.y),
|
|
432
|
+
r: R,
|
|
433
|
+
fill: zoneColor(pts[i].value),
|
|
434
|
+
opacity: 0.8
|
|
435
|
+
}, i)), hero ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
436
|
+
children: [/*#__PURE__*/_jsx(Circle, {
|
|
437
|
+
cx: rd(hero.x),
|
|
438
|
+
cy: rd(hero.y),
|
|
439
|
+
r: 7,
|
|
440
|
+
fill: "none",
|
|
441
|
+
stroke: colors.text,
|
|
442
|
+
strokeWidth: 1.4,
|
|
443
|
+
strokeOpacity: 0.4
|
|
444
|
+
}), /*#__PURE__*/_jsx(Circle, {
|
|
445
|
+
cx: rd(hero.x),
|
|
446
|
+
cy: rd(hero.y),
|
|
447
|
+
r: 3.6,
|
|
448
|
+
fill: colors.text
|
|
449
|
+
}), resolvedNote ? /*#__PURE__*/_jsx(Tag, {
|
|
450
|
+
x: hero.x,
|
|
451
|
+
y: hero.y - 16,
|
|
452
|
+
color: colors.mint,
|
|
453
|
+
children: resolvedNote
|
|
454
|
+
}) : null]
|
|
455
|
+
}) : null, /*#__PURE__*/_jsx(Axis, {
|
|
456
|
+
x0: L.x0,
|
|
457
|
+
x1: L.x1,
|
|
458
|
+
y: L.axisY,
|
|
459
|
+
ticks: axisTicks,
|
|
460
|
+
domain: dom
|
|
461
|
+
})]
|
|
462
|
+
});
|
|
463
|
+
} else if (variant === 'pr-swarm') {
|
|
464
|
+
/* ---- BW-03 · one hero dot (the PR glows — Gaussian-blurred duplicate) ---- */
|
|
465
|
+
const heroIdx = (() => {
|
|
466
|
+
const h = pts.findIndex(p => p.hero);
|
|
467
|
+
if (h >= 0) return h;
|
|
468
|
+
let best = 0;
|
|
469
|
+
pts.forEach((p, i) => {
|
|
470
|
+
if (p.value > (pts[best]?.value ?? -Infinity)) best = i;
|
|
471
|
+
});
|
|
472
|
+
return best;
|
|
473
|
+
})();
|
|
474
|
+
const dots = swarm(pts.map(p => xOf(p.value)), L.cy);
|
|
475
|
+
const hero = dots[heroIdx];
|
|
476
|
+
const resolvedNote = note ?? (pts.length ? `PR · ${Math.round(pts[heroIdx].value)}` : undefined);
|
|
477
|
+
const resolvedEnd = endLabel ?? (usingDefaultPoints ? 'SQUAT' : undefined);
|
|
478
|
+
body = /*#__PURE__*/_jsxs(_Fragment, {
|
|
479
|
+
children: [dots.map((d, i) => i === heroIdx ? null : /*#__PURE__*/_jsx(Circle, {
|
|
480
|
+
cx: rd(d.x),
|
|
481
|
+
cy: rd(d.y),
|
|
482
|
+
r: R,
|
|
483
|
+
fill: colors.text,
|
|
484
|
+
opacity: 0.35
|
|
485
|
+
}, i)), hero ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
486
|
+
children: [/*#__PURE__*/_jsx(Circle, {
|
|
487
|
+
cx: rd(hero.x),
|
|
488
|
+
cy: rd(hero.y),
|
|
489
|
+
r: 7,
|
|
490
|
+
fill: colors.mint,
|
|
491
|
+
opacity: 0.6,
|
|
492
|
+
filter: `url(#${blurId})`
|
|
493
|
+
}), /*#__PURE__*/_jsx(Circle, {
|
|
494
|
+
cx: rd(hero.x),
|
|
495
|
+
cy: rd(hero.y),
|
|
496
|
+
r: 4.2,
|
|
497
|
+
fill: colors.mint
|
|
498
|
+
}), resolvedNote ? /*#__PURE__*/_jsx(Tag, {
|
|
499
|
+
x: hero.x - 2,
|
|
500
|
+
y: hero.y - 18,
|
|
501
|
+
color: colors.mint,
|
|
502
|
+
children: resolvedNote
|
|
503
|
+
}) : null]
|
|
504
|
+
}) : null, /*#__PURE__*/_jsx(Axis, {
|
|
505
|
+
x0: L.x0,
|
|
506
|
+
x1: L.x1,
|
|
507
|
+
y: L.axisY,
|
|
508
|
+
ticks: axisTicks,
|
|
509
|
+
domain: dom
|
|
510
|
+
}), resolvedEnd ? /*#__PURE__*/_jsx(Label, {
|
|
511
|
+
x: 282,
|
|
512
|
+
y: 76,
|
|
513
|
+
fill: colors.textDim,
|
|
514
|
+
children: resolvedEnd
|
|
515
|
+
}) : null]
|
|
516
|
+
});
|
|
517
|
+
} else {
|
|
518
|
+
/* ---- BW-04 · month vs month on a shared axis ---- */
|
|
519
|
+
const cys = [52, 106];
|
|
520
|
+
const meansX = [];
|
|
521
|
+
const rendered = rows.map((g, gi) => {
|
|
522
|
+
const cy = cys[gi] ?? 106;
|
|
523
|
+
const col = g.color ?? (gi === 0 ? colors.mint : colors.text);
|
|
524
|
+
const fillOp = g.color ? 1 : gi === 0 ? 1 : 0.5;
|
|
525
|
+
const op = gi === 0 ? 0.85 : 0.7;
|
|
526
|
+
const dots = swarm(g.values.map(xOf), cy);
|
|
527
|
+
const mean = g.values.length ? g.values.reduce((a, b) => a + b, 0) / g.values.length : dom[0];
|
|
528
|
+
const mx = xOf(mean);
|
|
529
|
+
meansX.push(mx);
|
|
530
|
+
return /*#__PURE__*/_jsxs(G, {
|
|
531
|
+
children: [shine ? dots.map((d, i) => glow(d.x, d.y, 2.8 + 2.5, col, `g${gi}-${i}`)) : null, dots.map((d, i) => /*#__PURE__*/_jsx(Circle, {
|
|
532
|
+
cx: rd(d.x),
|
|
533
|
+
cy: rd(d.y),
|
|
534
|
+
r: 2.8,
|
|
535
|
+
fill: col,
|
|
536
|
+
fillOpacity: fillOp,
|
|
537
|
+
opacity: op
|
|
538
|
+
}, i)), /*#__PURE__*/_jsx(Line, {
|
|
539
|
+
x1: rd(mx),
|
|
540
|
+
x2: rd(mx),
|
|
541
|
+
y1: cy - 15,
|
|
542
|
+
y2: cy + 15,
|
|
543
|
+
stroke: col,
|
|
544
|
+
strokeOpacity: rd(fillOp * 0.9),
|
|
545
|
+
strokeWidth: 1.6
|
|
546
|
+
}), /*#__PURE__*/_jsx(Label, {
|
|
547
|
+
x: 26,
|
|
548
|
+
y: cy + 3,
|
|
549
|
+
fill: gi === 0 ? col : colors.textDim,
|
|
550
|
+
anchor: "start",
|
|
551
|
+
children: g.label
|
|
552
|
+
})]
|
|
553
|
+
}, gi);
|
|
554
|
+
});
|
|
555
|
+
const meanOf = g => g && g.values.length ? g.values.reduce((a, b) => a + b, 0) / g.values.length : 0;
|
|
556
|
+
const delta = meanOf(rows[0]) - meanOf(rows[1]);
|
|
557
|
+
const resolvedNote = note ?? (rows.length >= 2 ? `${delta >= 0 ? '+' : ''}${Math.round(delta)} MIN AVG` : undefined);
|
|
558
|
+
body = /*#__PURE__*/_jsxs(_Fragment, {
|
|
559
|
+
children: [rendered, /*#__PURE__*/_jsx(Axis, {
|
|
560
|
+
x0: L.x0,
|
|
561
|
+
x1: L.x1,
|
|
562
|
+
y: L.axisY,
|
|
563
|
+
ticks: axisTicks,
|
|
564
|
+
domain: dom
|
|
565
|
+
}), resolvedNote && meansX.length >= 2 ? /*#__PURE__*/_jsx(Tag, {
|
|
566
|
+
x: (meansX[0] + meansX[1]) / 2 + 30,
|
|
567
|
+
y: 24,
|
|
568
|
+
color: colors.mint,
|
|
569
|
+
children: resolvedNote
|
|
570
|
+
}) : null]
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
return /*#__PURE__*/_jsx(View, {
|
|
574
|
+
accessibilityRole: "image",
|
|
575
|
+
accessibilityLabel: ariaLabel,
|
|
576
|
+
style: [styles.root, style],
|
|
577
|
+
children: /*#__PURE__*/_jsxs(Svg, {
|
|
578
|
+
width: "100%",
|
|
579
|
+
height: "100%",
|
|
580
|
+
viewBox: `0 0 ${W} ${H}`,
|
|
581
|
+
children: [/*#__PURE__*/_jsx(Defs, {
|
|
582
|
+
children: /*#__PURE__*/_jsx(Filter, {
|
|
583
|
+
id: blurId,
|
|
584
|
+
filterUnits: "userSpaceOnUse",
|
|
585
|
+
x: -10,
|
|
586
|
+
y: -10,
|
|
587
|
+
width: W + 20,
|
|
588
|
+
height: H + 20,
|
|
589
|
+
children: /*#__PURE__*/_jsx(FeGaussianBlur, {
|
|
590
|
+
stdDeviation: 2
|
|
591
|
+
})
|
|
592
|
+
})
|
|
593
|
+
}), title ? /*#__PURE__*/_jsx(Label, {
|
|
594
|
+
x: PAD.l + 2,
|
|
595
|
+
y: 11,
|
|
596
|
+
fill: colors.textFaint,
|
|
597
|
+
anchor: "start",
|
|
598
|
+
children: title
|
|
599
|
+
}) : null, body]
|
|
600
|
+
})
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
const styles = StyleSheet.create({
|
|
604
|
+
/* fixed catalog aspect (320×150); the Svg scales the viewBox to fit */
|
|
605
|
+
root: {
|
|
606
|
+
width: '100%',
|
|
607
|
+
aspectRatio: W / H
|
|
608
|
+
}
|
|
609
|
+
});
|
|
610
|
+
//# sourceMappingURL=BeeswarmChart.js.map
|