@lockin90/ui-native 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Accordion.js +144 -0
- package/lib/commonjs/components/Accordion.js.map +1 -0
- package/lib/commonjs/components/AchievementBadge.js +225 -0
- package/lib/commonjs/components/AchievementBadge.js.map +1 -0
- package/lib/commonjs/components/Alert.js +232 -0
- package/lib/commonjs/components/Alert.js.map +1 -0
- package/lib/commonjs/components/AreaChart.js +506 -0
- package/lib/commonjs/components/AreaChart.js.map +1 -0
- package/lib/commonjs/components/AuroraBackground.js +267 -0
- package/lib/commonjs/components/AuroraBackground.js.map +1 -0
- package/lib/commonjs/components/Avatar.js +187 -0
- package/lib/commonjs/components/Avatar.js.map +1 -0
- package/lib/commonjs/components/AvatarStack.js +95 -0
- package/lib/commonjs/components/AvatarStack.js.map +1 -0
- package/lib/commonjs/components/BackLink.js +77 -0
- package/lib/commonjs/components/BackLink.js.map +1 -0
- package/lib/commonjs/components/Badge.js +136 -0
- package/lib/commonjs/components/Badge.js.map +1 -0
- package/lib/commonjs/components/BarChart.js +641 -0
- package/lib/commonjs/components/BarChart.js.map +1 -0
- package/lib/commonjs/components/BarFill.js +55 -0
- package/lib/commonjs/components/BarFill.js.map +1 -0
- package/lib/commonjs/components/BeeswarmChart.js +615 -0
- package/lib/commonjs/components/BeeswarmChart.js.map +1 -0
- package/lib/commonjs/components/BiomarkerRange.js +610 -0
- package/lib/commonjs/components/BiomarkerRange.js.map +1 -0
- package/lib/commonjs/components/BodyBattery.js +563 -0
- package/lib/commonjs/components/BodyBattery.js.map +1 -0
- package/lib/commonjs/components/BrandMark.js +184 -0
- package/lib/commonjs/components/BrandMark.js.map +1 -0
- package/lib/commonjs/components/BulletChart.js +406 -0
- package/lib/commonjs/components/BulletChart.js.map +1 -0
- package/lib/commonjs/components/Button.js +154 -0
- package/lib/commonjs/components/Button.js.map +1 -0
- package/lib/commonjs/components/CaffeineClock.js +491 -0
- package/lib/commonjs/components/CaffeineClock.js.map +1 -0
- package/lib/commonjs/components/Card.js +142 -0
- package/lib/commonjs/components/Card.js.map +1 -0
- package/lib/commonjs/components/CharCounter.js +106 -0
- package/lib/commonjs/components/CharCounter.js.map +1 -0
- package/lib/commonjs/components/ChartState.js +554 -0
- package/lib/commonjs/components/ChartState.js.map +1 -0
- package/lib/commonjs/components/Checkbox.js +180 -0
- package/lib/commonjs/components/Checkbox.js.map +1 -0
- package/lib/commonjs/components/Chip.js +218 -0
- package/lib/commonjs/components/Chip.js.map +1 -0
- package/lib/commonjs/components/ChoiceChip.js +133 -0
- package/lib/commonjs/components/ChoiceChip.js.map +1 -0
- package/lib/commonjs/components/CodeBlock.js +126 -0
- package/lib/commonjs/components/CodeBlock.js.map +1 -0
- package/lib/commonjs/components/CodeField.js +129 -0
- package/lib/commonjs/components/CodeField.js.map +1 -0
- package/lib/commonjs/components/ColorPicker.js +181 -0
- package/lib/commonjs/components/ColorPicker.js.map +1 -0
- package/lib/commonjs/components/ComboChart.js +419 -0
- package/lib/commonjs/components/ComboChart.js.map +1 -0
- package/lib/commonjs/components/Combobox.js +108 -0
- package/lib/commonjs/components/Combobox.js.map +1 -0
- package/lib/commonjs/components/CompareChart.js +627 -0
- package/lib/commonjs/components/CompareChart.js.map +1 -0
- package/lib/commonjs/components/CompositeChart.js +654 -0
- package/lib/commonjs/components/CompositeChart.js.map +1 -0
- package/lib/commonjs/components/Countdown.js +152 -0
- package/lib/commonjs/components/Countdown.js.map +1 -0
- package/lib/commonjs/components/CreditCardVisual.js +167 -0
- package/lib/commonjs/components/CreditCardVisual.js.map +1 -0
- package/lib/commonjs/components/DateField.js +365 -0
- package/lib/commonjs/components/DateField.js.map +1 -0
- package/lib/commonjs/components/DayTimelineBlocks.js +253 -0
- package/lib/commonjs/components/DayTimelineBlocks.js.map +1 -0
- package/lib/commonjs/components/DayWheel.js +467 -0
- package/lib/commonjs/components/DayWheel.js.map +1 -0
- package/lib/commonjs/components/DeltaPill.js +154 -0
- package/lib/commonjs/components/DeltaPill.js.map +1 -0
- package/lib/commonjs/components/DistributionChart.js +776 -0
- package/lib/commonjs/components/DistributionChart.js.map +1 -0
- package/lib/commonjs/components/Divider.js +74 -0
- package/lib/commonjs/components/Divider.js.map +1 -0
- package/lib/commonjs/components/DonutChart.js +337 -0
- package/lib/commonjs/components/DonutChart.js.map +1 -0
- package/lib/commonjs/components/DotsLoader.js +94 -0
- package/lib/commonjs/components/DotsLoader.js.map +1 -0
- package/lib/commonjs/components/EffectAttributionLine.js +105 -0
- package/lib/commonjs/components/EffectAttributionLine.js.map +1 -0
- package/lib/commonjs/components/EmptyState.js +120 -0
- package/lib/commonjs/components/EmptyState.js.map +1 -0
- package/lib/commonjs/components/EngagementBar.js +122 -0
- package/lib/commonjs/components/EngagementBar.js.map +1 -0
- package/lib/commonjs/components/EnvironmentChart.js +573 -0
- package/lib/commonjs/components/EnvironmentChart.js.map +1 -0
- package/lib/commonjs/components/Eyebrow.js +32 -0
- package/lib/commonjs/components/Eyebrow.js.map +1 -0
- package/lib/commonjs/components/FocalPointPicker.js +196 -0
- package/lib/commonjs/components/FocalPointPicker.js.map +1 -0
- package/lib/commonjs/components/FollowButton.js +95 -0
- package/lib/commonjs/components/FollowButton.js.map +1 -0
- package/lib/commonjs/components/ForecastCallout.js +116 -0
- package/lib/commonjs/components/ForecastCallout.js.map +1 -0
- package/lib/commonjs/components/FormField.js +204 -0
- package/lib/commonjs/components/FormField.js.map +1 -0
- package/lib/commonjs/components/FunnelChart.js +260 -0
- package/lib/commonjs/components/FunnelChart.js.map +1 -0
- package/lib/commonjs/components/Gauge.js +252 -0
- package/lib/commonjs/components/Gauge.js.map +1 -0
- package/lib/commonjs/components/GradientText.js +136 -0
- package/lib/commonjs/components/GradientText.js.map +1 -0
- package/lib/commonjs/components/Heatmap.js +419 -0
- package/lib/commonjs/components/Heatmap.js.map +1 -0
- package/lib/commonjs/components/Highlight.js +55 -0
- package/lib/commonjs/components/Highlight.js.map +1 -0
- package/lib/commonjs/components/Hypnogram.js +842 -0
- package/lib/commonjs/components/Hypnogram.js.map +1 -0
- package/lib/commonjs/components/Icon.js +486 -0
- package/lib/commonjs/components/Icon.js.map +1 -0
- package/lib/commonjs/components/Input.js +142 -0
- package/lib/commonjs/components/Input.js.map +1 -0
- package/lib/commonjs/components/InsightCard.js +119 -0
- package/lib/commonjs/components/InsightCard.js.map +1 -0
- package/lib/commonjs/components/KeyValue.js +93 -0
- package/lib/commonjs/components/KeyValue.js.map +1 -0
- package/lib/commonjs/components/LeaderboardRow.js +140 -0
- package/lib/commonjs/components/LeaderboardRow.js.map +1 -0
- package/lib/commonjs/components/LineChart.js +1544 -0
- package/lib/commonjs/components/LineChart.js.map +1 -0
- package/lib/commonjs/components/ListRow.js +122 -0
- package/lib/commonjs/components/ListRow.js.map +1 -0
- package/lib/commonjs/components/Menu.js +183 -0
- package/lib/commonjs/components/Menu.js.map +1 -0
- package/lib/commonjs/components/MessageBubble.js +117 -0
- package/lib/commonjs/components/MessageBubble.js.map +1 -0
- package/lib/commonjs/components/MessageComposer.js +212 -0
- package/lib/commonjs/components/MessageComposer.js.map +1 -0
- package/lib/commonjs/components/MetaphorWidget.js +1053 -0
- package/lib/commonjs/components/MetaphorWidget.js.map +1 -0
- package/lib/commonjs/components/Meter.js +173 -0
- package/lib/commonjs/components/Meter.js.map +1 -0
- package/lib/commonjs/components/MetricTile.js +268 -0
- package/lib/commonjs/components/MetricTile.js.map +1 -0
- package/lib/commonjs/components/MiniRing.js +30 -0
- package/lib/commonjs/components/MiniRing.js.map +1 -0
- package/lib/commonjs/components/Modal.js +153 -0
- package/lib/commonjs/components/Modal.js.map +1 -0
- package/lib/commonjs/components/MuscleDiagram.js +326 -0
- package/lib/commonjs/components/MuscleDiagram.js.map +1 -0
- package/lib/commonjs/components/NoteField.js +73 -0
- package/lib/commonjs/components/NoteField.js.map +1 -0
- package/lib/commonjs/components/NotificationRow.js +234 -0
- package/lib/commonjs/components/NotificationRow.js.map +1 -0
- package/lib/commonjs/components/Pagination.js +212 -0
- package/lib/commonjs/components/Pagination.js.map +1 -0
- package/lib/commonjs/components/PasswordInput.js +120 -0
- package/lib/commonjs/components/PasswordInput.js.map +1 -0
- package/lib/commonjs/components/PasswordStrengthMeter.js +108 -0
- package/lib/commonjs/components/PasswordStrengthMeter.js.map +1 -0
- package/lib/commonjs/components/PendingPatternCard.js +182 -0
- package/lib/commonjs/components/PendingPatternCard.js.map +1 -0
- package/lib/commonjs/components/PhaseWheel.js +704 -0
- package/lib/commonjs/components/PhaseWheel.js.map +1 -0
- package/lib/commonjs/components/PkChart.js +566 -0
- package/lib/commonjs/components/PkChart.js.map +1 -0
- package/lib/commonjs/components/Popover.js +234 -0
- package/lib/commonjs/components/Popover.js.map +1 -0
- package/lib/commonjs/components/PrBadge.js +71 -0
- package/lib/commonjs/components/PrBadge.js.map +1 -0
- package/lib/commonjs/components/PrCard.js +150 -0
- package/lib/commonjs/components/PrCard.js.map +1 -0
- package/lib/commonjs/components/PricingTierCard.js +237 -0
- package/lib/commonjs/components/PricingTierCard.js.map +1 -0
- package/lib/commonjs/components/ProGate.js +235 -0
- package/lib/commonjs/components/ProGate.js.map +1 -0
- package/lib/commonjs/components/ProgressBar.js +515 -0
- package/lib/commonjs/components/ProgressBar.js.map +1 -0
- package/lib/commonjs/components/Pulse.js +36 -0
- package/lib/commonjs/components/Pulse.js.map +1 -0
- package/lib/commonjs/components/QRCode.js +519 -0
- package/lib/commonjs/components/QRCode.js.map +1 -0
- package/lib/commonjs/components/RadarChart.js +492 -0
- package/lib/commonjs/components/RadarChart.js.map +1 -0
- package/lib/commonjs/components/RangeBar.js +191 -0
- package/lib/commonjs/components/RangeBar.js.map +1 -0
- package/lib/commonjs/components/ReauthDialog.js +261 -0
- package/lib/commonjs/components/ReauthDialog.js.map +1 -0
- package/lib/commonjs/components/RestTimer.js +246 -0
- package/lib/commonjs/components/RestTimer.js.map +1 -0
- package/lib/commonjs/components/RichText.js +81 -0
- package/lib/commonjs/components/RichText.js.map +1 -0
- package/lib/commonjs/components/RichTextEditor.js +274 -0
- package/lib/commonjs/components/RichTextEditor.js.map +1 -0
- package/lib/commonjs/components/Ring.js +239 -0
- package/lib/commonjs/components/Ring.js.map +1 -0
- package/lib/commonjs/components/RoseChart.js +376 -0
- package/lib/commonjs/components/RoseChart.js.map +1 -0
- package/lib/commonjs/components/SankeyChart.js +652 -0
- package/lib/commonjs/components/SankeyChart.js.map +1 -0
- package/lib/commonjs/components/ScatterChart.js +432 -0
- package/lib/commonjs/components/ScatterChart.js.map +1 -0
- package/lib/commonjs/components/ScrollProgress.js +66 -0
- package/lib/commonjs/components/ScrollProgress.js.map +1 -0
- package/lib/commonjs/components/SectionDivider.js +59 -0
- package/lib/commonjs/components/SectionDivider.js.map +1 -0
- package/lib/commonjs/components/SectionHeader.js +53 -0
- package/lib/commonjs/components/SectionHeader.js.map +1 -0
- package/lib/commonjs/components/SegmentedTabs.js +336 -0
- package/lib/commonjs/components/SegmentedTabs.js.map +1 -0
- package/lib/commonjs/components/Select.js +380 -0
- package/lib/commonjs/components/Select.js.map +1 -0
- package/lib/commonjs/components/SessionBanner.js +220 -0
- package/lib/commonjs/components/SessionBanner.js.map +1 -0
- package/lib/commonjs/components/SessionChart.js +1046 -0
- package/lib/commonjs/components/SessionChart.js.map +1 -0
- package/lib/commonjs/components/SetTable.js +351 -0
- package/lib/commonjs/components/SetTable.js.map +1 -0
- package/lib/commonjs/components/ShareCard.js +227 -0
- package/lib/commonjs/components/ShareCard.js.map +1 -0
- package/lib/commonjs/components/Sheet.js +220 -0
- package/lib/commonjs/components/Sheet.js.map +1 -0
- package/lib/commonjs/components/Skeleton.js +28 -0
- package/lib/commonjs/components/Skeleton.js.map +1 -0
- package/lib/commonjs/components/Slider.js +173 -0
- package/lib/commonjs/components/Slider.js.map +1 -0
- package/lib/commonjs/components/Sortable.js +230 -0
- package/lib/commonjs/components/Sortable.js.map +1 -0
- package/lib/commonjs/components/SourceChip.js +111 -0
- package/lib/commonjs/components/SourceChip.js.map +1 -0
- package/lib/commonjs/components/Sparkline.js +110 -0
- package/lib/commonjs/components/Sparkline.js.map +1 -0
- package/lib/commonjs/components/Spinner.js +132 -0
- package/lib/commonjs/components/Spinner.js.map +1 -0
- package/lib/commonjs/components/SplitButton.js +158 -0
- package/lib/commonjs/components/SplitButton.js.map +1 -0
- package/lib/commonjs/components/SsoButton.js +109 -0
- package/lib/commonjs/components/SsoButton.js.map +1 -0
- package/lib/commonjs/components/StackedBar.js +133 -0
- package/lib/commonjs/components/StackedBar.js.map +1 -0
- package/lib/commonjs/components/Stat.js +167 -0
- package/lib/commonjs/components/Stat.js.map +1 -0
- package/lib/commonjs/components/StatTile.js +644 -0
- package/lib/commonjs/components/StatTile.js.map +1 -0
- package/lib/commonjs/components/StateLabel.js +73 -0
- package/lib/commonjs/components/StateLabel.js.map +1 -0
- package/lib/commonjs/components/StatusDot.js +65 -0
- package/lib/commonjs/components/StatusDot.js.map +1 -0
- package/lib/commonjs/components/Stepper.js +355 -0
- package/lib/commonjs/components/Stepper.js.map +1 -0
- package/lib/commonjs/components/SupplementChart.js +1002 -0
- package/lib/commonjs/components/SupplementChart.js.map +1 -0
- package/lib/commonjs/components/TabBar.js +303 -0
- package/lib/commonjs/components/TabBar.js.map +1 -0
- package/lib/commonjs/components/Table.js +458 -0
- package/lib/commonjs/components/Table.js.map +1 -0
- package/lib/commonjs/components/Tabs.js +88 -0
- package/lib/commonjs/components/Tabs.js.map +1 -0
- package/lib/commonjs/components/TagCloud.js +118 -0
- package/lib/commonjs/components/TagCloud.js.map +1 -0
- package/lib/commonjs/components/TagInput.js +298 -0
- package/lib/commonjs/components/TagInput.js.map +1 -0
- package/lib/commonjs/components/TemplateCard.js +206 -0
- package/lib/commonjs/components/TemplateCard.js.map +1 -0
- package/lib/commonjs/components/Timeline.js +219 -0
- package/lib/commonjs/components/Timeline.js.map +1 -0
- package/lib/commonjs/components/TimelineChart.js +1228 -0
- package/lib/commonjs/components/TimelineChart.js.map +1 -0
- package/lib/commonjs/components/Toast.js +156 -0
- package/lib/commonjs/components/Toast.js.map +1 -0
- package/lib/commonjs/components/Toggle.js +166 -0
- package/lib/commonjs/components/Toggle.js.map +1 -0
- package/lib/commonjs/components/Toolbar.js +310 -0
- package/lib/commonjs/components/Toolbar.js.map +1 -0
- package/lib/commonjs/components/Tooltip.js +245 -0
- package/lib/commonjs/components/Tooltip.js.map +1 -0
- package/lib/commonjs/components/TypingIndicator.js +112 -0
- package/lib/commonjs/components/TypingIndicator.js.map +1 -0
- package/lib/commonjs/components/UnitChart.js +482 -0
- package/lib/commonjs/components/UnitChart.js.map +1 -0
- package/lib/commonjs/components/VersionBadge.js +133 -0
- package/lib/commonjs/components/VersionBadge.js.map +1 -0
- package/lib/commonjs/components/VideoThumbnail.js +152 -0
- package/lib/commonjs/components/VideoThumbnail.js.map +1 -0
- package/lib/commonjs/components/VitalsStrip.js +766 -0
- package/lib/commonjs/components/VitalsStrip.js.map +1 -0
- package/lib/commonjs/components/WatchComplication.js +563 -0
- package/lib/commonjs/components/WatchComplication.js.map +1 -0
- package/lib/commonjs/components/ZoneBar.js +149 -0
- package/lib/commonjs/components/ZoneBar.js.map +1 -0
- package/lib/commonjs/components/ZonePyramid.js +398 -0
- package/lib/commonjs/components/ZonePyramid.js.map +1 -0
- package/lib/commonjs/index.js +1140 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/internal/optionalBlur.js +34 -0
- package/lib/commonjs/internal/optionalBlur.js.map +1 -0
- package/lib/commonjs/internal/optionalHaptics.js +40 -0
- package/lib/commonjs/internal/optionalHaptics.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/theme.js +61 -0
- package/lib/commonjs/theme.js.map +1 -0
- package/lib/module/components/Accordion.js +139 -0
- package/lib/module/components/Accordion.js.map +1 -0
- package/lib/module/components/AchievementBadge.js +223 -0
- package/lib/module/components/AchievementBadge.js.map +1 -0
- package/lib/module/components/Alert.js +227 -0
- package/lib/module/components/Alert.js.map +1 -0
- package/lib/module/components/AreaChart.js +501 -0
- package/lib/module/components/AreaChart.js.map +1 -0
- package/lib/module/components/AuroraBackground.js +262 -0
- package/lib/module/components/AuroraBackground.js.map +1 -0
- package/lib/module/components/Avatar.js +183 -0
- package/lib/module/components/Avatar.js.map +1 -0
- package/lib/module/components/AvatarStack.js +91 -0
- package/lib/module/components/AvatarStack.js.map +1 -0
- package/lib/module/components/BackLink.js +73 -0
- package/lib/module/components/BackLink.js.map +1 -0
- package/lib/module/components/Badge.js +132 -0
- package/lib/module/components/Badge.js.map +1 -0
- package/lib/module/components/BarChart.js +636 -0
- package/lib/module/components/BarChart.js.map +1 -0
- package/lib/module/components/BarFill.js +51 -0
- package/lib/module/components/BarFill.js.map +1 -0
- package/lib/module/components/BeeswarmChart.js +610 -0
- package/lib/module/components/BeeswarmChart.js.map +1 -0
- package/lib/module/components/BiomarkerRange.js +605 -0
- package/lib/module/components/BiomarkerRange.js.map +1 -0
- package/lib/module/components/BodyBattery.js +558 -0
- package/lib/module/components/BodyBattery.js.map +1 -0
- package/lib/module/components/BrandMark.js +179 -0
- package/lib/module/components/BrandMark.js.map +1 -0
- package/lib/module/components/BulletChart.js +401 -0
- package/lib/module/components/BulletChart.js.map +1 -0
- package/lib/module/components/Button.js +150 -0
- package/lib/module/components/Button.js.map +1 -0
- package/lib/module/components/CaffeineClock.js +486 -0
- package/lib/module/components/CaffeineClock.js.map +1 -0
- package/lib/module/components/Card.js +138 -0
- package/lib/module/components/Card.js.map +1 -0
- package/lib/module/components/CharCounter.js +102 -0
- package/lib/module/components/CharCounter.js.map +1 -0
- package/lib/module/components/ChartState.js +549 -0
- package/lib/module/components/ChartState.js.map +1 -0
- package/lib/module/components/Checkbox.js +175 -0
- package/lib/module/components/Checkbox.js.map +1 -0
- package/lib/module/components/Chip.js +214 -0
- package/lib/module/components/Chip.js.map +1 -0
- package/lib/module/components/ChoiceChip.js +129 -0
- package/lib/module/components/ChoiceChip.js.map +1 -0
- package/lib/module/components/CodeBlock.js +122 -0
- package/lib/module/components/CodeBlock.js.map +1 -0
- package/lib/module/components/CodeField.js +125 -0
- package/lib/module/components/CodeField.js.map +1 -0
- package/lib/module/components/ColorPicker.js +177 -0
- package/lib/module/components/ColorPicker.js.map +1 -0
- package/lib/module/components/ComboChart.js +414 -0
- package/lib/module/components/ComboChart.js.map +1 -0
- package/lib/module/components/Combobox.js +104 -0
- package/lib/module/components/Combobox.js.map +1 -0
- package/lib/module/components/CompareChart.js +622 -0
- package/lib/module/components/CompareChart.js.map +1 -0
- package/lib/module/components/CompositeChart.js +649 -0
- package/lib/module/components/CompositeChart.js.map +1 -0
- package/lib/module/components/Countdown.js +148 -0
- package/lib/module/components/Countdown.js.map +1 -0
- package/lib/module/components/CreditCardVisual.js +163 -0
- package/lib/module/components/CreditCardVisual.js.map +1 -0
- package/lib/module/components/DateField.js +361 -0
- package/lib/module/components/DateField.js.map +1 -0
- package/lib/module/components/DayTimelineBlocks.js +249 -0
- package/lib/module/components/DayTimelineBlocks.js.map +1 -0
- package/lib/module/components/DayWheel.js +462 -0
- package/lib/module/components/DayWheel.js.map +1 -0
- package/lib/module/components/DeltaPill.js +149 -0
- package/lib/module/components/DeltaPill.js.map +1 -0
- package/lib/module/components/DistributionChart.js +771 -0
- package/lib/module/components/DistributionChart.js.map +1 -0
- package/lib/module/components/Divider.js +70 -0
- package/lib/module/components/Divider.js.map +1 -0
- package/lib/module/components/DonutChart.js +332 -0
- package/lib/module/components/DonutChart.js.map +1 -0
- package/lib/module/components/DotsLoader.js +90 -0
- package/lib/module/components/DotsLoader.js.map +1 -0
- package/lib/module/components/EffectAttributionLine.js +101 -0
- package/lib/module/components/EffectAttributionLine.js.map +1 -0
- package/lib/module/components/EmptyState.js +115 -0
- package/lib/module/components/EmptyState.js.map +1 -0
- package/lib/module/components/EngagementBar.js +118 -0
- package/lib/module/components/EngagementBar.js.map +1 -0
- package/lib/module/components/EnvironmentChart.js +568 -0
- package/lib/module/components/EnvironmentChart.js.map +1 -0
- package/lib/module/components/Eyebrow.js +28 -0
- package/lib/module/components/Eyebrow.js.map +1 -0
- package/lib/module/components/FocalPointPicker.js +192 -0
- package/lib/module/components/FocalPointPicker.js.map +1 -0
- package/lib/module/components/FollowButton.js +91 -0
- package/lib/module/components/FollowButton.js.map +1 -0
- package/lib/module/components/ForecastCallout.js +112 -0
- package/lib/module/components/ForecastCallout.js.map +1 -0
- package/lib/module/components/FormField.js +198 -0
- package/lib/module/components/FormField.js.map +1 -0
- package/lib/module/components/FunnelChart.js +255 -0
- package/lib/module/components/FunnelChart.js.map +1 -0
- package/lib/module/components/Gauge.js +249 -0
- package/lib/module/components/Gauge.js.map +1 -0
- package/lib/module/components/GradientText.js +130 -0
- package/lib/module/components/GradientText.js.map +1 -0
- package/lib/module/components/Heatmap.js +414 -0
- package/lib/module/components/Heatmap.js.map +1 -0
- package/lib/module/components/Highlight.js +51 -0
- package/lib/module/components/Highlight.js.map +1 -0
- package/lib/module/components/Hypnogram.js +837 -0
- package/lib/module/components/Hypnogram.js.map +1 -0
- package/lib/module/components/Icon.js +480 -0
- package/lib/module/components/Icon.js.map +1 -0
- package/lib/module/components/Input.js +138 -0
- package/lib/module/components/Input.js.map +1 -0
- package/lib/module/components/InsightCard.js +115 -0
- package/lib/module/components/InsightCard.js.map +1 -0
- package/lib/module/components/KeyValue.js +89 -0
- package/lib/module/components/KeyValue.js.map +1 -0
- package/lib/module/components/LeaderboardRow.js +136 -0
- package/lib/module/components/LeaderboardRow.js.map +1 -0
- package/lib/module/components/LineChart.js +1539 -0
- package/lib/module/components/LineChart.js.map +1 -0
- package/lib/module/components/ListRow.js +118 -0
- package/lib/module/components/ListRow.js.map +1 -0
- package/lib/module/components/Menu.js +179 -0
- package/lib/module/components/Menu.js.map +1 -0
- package/lib/module/components/MessageBubble.js +113 -0
- package/lib/module/components/MessageBubble.js.map +1 -0
- package/lib/module/components/MessageComposer.js +208 -0
- package/lib/module/components/MessageComposer.js.map +1 -0
- package/lib/module/components/MetaphorWidget.js +1048 -0
- package/lib/module/components/MetaphorWidget.js.map +1 -0
- package/lib/module/components/Meter.js +169 -0
- package/lib/module/components/Meter.js.map +1 -0
- package/lib/module/components/MetricTile.js +263 -0
- package/lib/module/components/MetricTile.js.map +1 -0
- package/lib/module/components/MiniRing.js +26 -0
- package/lib/module/components/MiniRing.js.map +1 -0
- package/lib/module/components/Modal.js +148 -0
- package/lib/module/components/Modal.js.map +1 -0
- package/lib/module/components/MuscleDiagram.js +321 -0
- package/lib/module/components/MuscleDiagram.js.map +1 -0
- package/lib/module/components/NoteField.js +69 -0
- package/lib/module/components/NoteField.js.map +1 -0
- package/lib/module/components/NotificationRow.js +230 -0
- package/lib/module/components/NotificationRow.js.map +1 -0
- package/lib/module/components/Pagination.js +207 -0
- package/lib/module/components/Pagination.js.map +1 -0
- package/lib/module/components/PasswordInput.js +116 -0
- package/lib/module/components/PasswordInput.js.map +1 -0
- package/lib/module/components/PasswordStrengthMeter.js +104 -0
- package/lib/module/components/PasswordStrengthMeter.js.map +1 -0
- package/lib/module/components/PendingPatternCard.js +178 -0
- package/lib/module/components/PendingPatternCard.js.map +1 -0
- package/lib/module/components/PhaseWheel.js +699 -0
- package/lib/module/components/PhaseWheel.js.map +1 -0
- package/lib/module/components/PkChart.js +558 -0
- package/lib/module/components/PkChart.js.map +1 -0
- package/lib/module/components/Popover.js +230 -0
- package/lib/module/components/Popover.js.map +1 -0
- package/lib/module/components/PrBadge.js +66 -0
- package/lib/module/components/PrBadge.js.map +1 -0
- package/lib/module/components/PrCard.js +146 -0
- package/lib/module/components/PrCard.js.map +1 -0
- package/lib/module/components/PricingTierCard.js +233 -0
- package/lib/module/components/PricingTierCard.js.map +1 -0
- package/lib/module/components/ProGate.js +229 -0
- package/lib/module/components/ProGate.js.map +1 -0
- package/lib/module/components/ProgressBar.js +511 -0
- package/lib/module/components/ProgressBar.js.map +1 -0
- package/lib/module/components/Pulse.js +32 -0
- package/lib/module/components/Pulse.js.map +1 -0
- package/lib/module/components/QRCode.js +514 -0
- package/lib/module/components/QRCode.js.map +1 -0
- package/lib/module/components/RadarChart.js +487 -0
- package/lib/module/components/RadarChart.js.map +1 -0
- package/lib/module/components/RangeBar.js +187 -0
- package/lib/module/components/RangeBar.js.map +1 -0
- package/lib/module/components/ReauthDialog.js +256 -0
- package/lib/module/components/ReauthDialog.js.map +1 -0
- package/lib/module/components/RestTimer.js +239 -0
- package/lib/module/components/RestTimer.js.map +1 -0
- package/lib/module/components/RichText.js +77 -0
- package/lib/module/components/RichText.js.map +1 -0
- package/lib/module/components/RichTextEditor.js +269 -0
- package/lib/module/components/RichTextEditor.js.map +1 -0
- package/lib/module/components/Ring.js +236 -0
- package/lib/module/components/Ring.js.map +1 -0
- package/lib/module/components/RoseChart.js +371 -0
- package/lib/module/components/RoseChart.js.map +1 -0
- package/lib/module/components/SankeyChart.js +647 -0
- package/lib/module/components/SankeyChart.js.map +1 -0
- package/lib/module/components/ScatterChart.js +427 -0
- package/lib/module/components/ScatterChart.js.map +1 -0
- package/lib/module/components/ScrollProgress.js +62 -0
- package/lib/module/components/ScrollProgress.js.map +1 -0
- package/lib/module/components/SectionDivider.js +55 -0
- package/lib/module/components/SectionDivider.js.map +1 -0
- package/lib/module/components/SectionHeader.js +49 -0
- package/lib/module/components/SectionHeader.js.map +1 -0
- package/lib/module/components/SegmentedTabs.js +332 -0
- package/lib/module/components/SegmentedTabs.js.map +1 -0
- package/lib/module/components/Select.js +375 -0
- package/lib/module/components/Select.js.map +1 -0
- package/lib/module/components/SessionBanner.js +216 -0
- package/lib/module/components/SessionBanner.js.map +1 -0
- package/lib/module/components/SessionChart.js +1040 -0
- package/lib/module/components/SessionChart.js.map +1 -0
- package/lib/module/components/SetTable.js +345 -0
- package/lib/module/components/SetTable.js.map +1 -0
- package/lib/module/components/ShareCard.js +223 -0
- package/lib/module/components/ShareCard.js.map +1 -0
- package/lib/module/components/Sheet.js +216 -0
- package/lib/module/components/Sheet.js.map +1 -0
- package/lib/module/components/Skeleton.js +24 -0
- package/lib/module/components/Skeleton.js.map +1 -0
- package/lib/module/components/Slider.js +169 -0
- package/lib/module/components/Slider.js.map +1 -0
- package/lib/module/components/Sortable.js +226 -0
- package/lib/module/components/Sortable.js.map +1 -0
- package/lib/module/components/SourceChip.js +107 -0
- package/lib/module/components/SourceChip.js.map +1 -0
- package/lib/module/components/Sparkline.js +105 -0
- package/lib/module/components/Sparkline.js.map +1 -0
- package/lib/module/components/Spinner.js +127 -0
- package/lib/module/components/Spinner.js.map +1 -0
- package/lib/module/components/SplitButton.js +154 -0
- package/lib/module/components/SplitButton.js.map +1 -0
- package/lib/module/components/SsoButton.js +104 -0
- package/lib/module/components/SsoButton.js.map +1 -0
- package/lib/module/components/StackedBar.js +129 -0
- package/lib/module/components/StackedBar.js.map +1 -0
- package/lib/module/components/Stat.js +163 -0
- package/lib/module/components/Stat.js.map +1 -0
- package/lib/module/components/StatTile.js +639 -0
- package/lib/module/components/StatTile.js.map +1 -0
- package/lib/module/components/StateLabel.js +69 -0
- package/lib/module/components/StateLabel.js.map +1 -0
- package/lib/module/components/StatusDot.js +61 -0
- package/lib/module/components/StatusDot.js.map +1 -0
- package/lib/module/components/Stepper.js +350 -0
- package/lib/module/components/Stepper.js.map +1 -0
- package/lib/module/components/SupplementChart.js +997 -0
- package/lib/module/components/SupplementChart.js.map +1 -0
- package/lib/module/components/TabBar.js +298 -0
- package/lib/module/components/TabBar.js.map +1 -0
- package/lib/module/components/Table.js +452 -0
- package/lib/module/components/Table.js.map +1 -0
- package/lib/module/components/Tabs.js +84 -0
- package/lib/module/components/Tabs.js.map +1 -0
- package/lib/module/components/TagCloud.js +113 -0
- package/lib/module/components/TagCloud.js.map +1 -0
- package/lib/module/components/TagInput.js +291 -0
- package/lib/module/components/TagInput.js.map +1 -0
- package/lib/module/components/TemplateCard.js +202 -0
- package/lib/module/components/TemplateCard.js.map +1 -0
- package/lib/module/components/Timeline.js +214 -0
- package/lib/module/components/Timeline.js.map +1 -0
- package/lib/module/components/TimelineChart.js +1223 -0
- package/lib/module/components/TimelineChart.js.map +1 -0
- package/lib/module/components/Toast.js +151 -0
- package/lib/module/components/Toast.js.map +1 -0
- package/lib/module/components/Toggle.js +162 -0
- package/lib/module/components/Toggle.js.map +1 -0
- package/lib/module/components/Toolbar.js +306 -0
- package/lib/module/components/Toolbar.js.map +1 -0
- package/lib/module/components/Tooltip.js +241 -0
- package/lib/module/components/Tooltip.js.map +1 -0
- package/lib/module/components/TypingIndicator.js +108 -0
- package/lib/module/components/TypingIndicator.js.map +1 -0
- package/lib/module/components/UnitChart.js +477 -0
- package/lib/module/components/UnitChart.js.map +1 -0
- package/lib/module/components/VersionBadge.js +129 -0
- package/lib/module/components/VersionBadge.js.map +1 -0
- package/lib/module/components/VideoThumbnail.js +147 -0
- package/lib/module/components/VideoThumbnail.js.map +1 -0
- package/lib/module/components/VitalsStrip.js +761 -0
- package/lib/module/components/VitalsStrip.js.map +1 -0
- package/lib/module/components/WatchComplication.js +558 -0
- package/lib/module/components/WatchComplication.js.map +1 -0
- package/lib/module/components/ZoneBar.js +145 -0
- package/lib/module/components/ZoneBar.js.map +1 -0
- package/lib/module/components/ZonePyramid.js +393 -0
- package/lib/module/components/ZonePyramid.js.map +1 -0
- package/lib/module/index.js +166 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/internal/optionalBlur.js +30 -0
- package/lib/module/internal/optionalBlur.js.map +1 -0
- package/lib/module/internal/optionalHaptics.js +34 -0
- package/lib/module/internal/optionalHaptics.js.map +1 -0
- package/lib/module/theme.js +6 -0
- package/lib/module/theme.js.map +1 -0
- package/lib/typescript/components/Accordion.d.ts +20 -0
- package/lib/typescript/components/Accordion.d.ts.map +1 -0
- package/lib/typescript/components/AchievementBadge.d.ts +29 -0
- package/lib/typescript/components/AchievementBadge.d.ts.map +1 -0
- package/lib/typescript/components/Alert.d.ts +18 -0
- package/lib/typescript/components/Alert.d.ts.map +1 -0
- package/lib/typescript/components/AreaChart.d.ts +58 -0
- package/lib/typescript/components/AreaChart.d.ts.map +1 -0
- package/lib/typescript/components/AuroraBackground.d.ts +24 -0
- package/lib/typescript/components/AuroraBackground.d.ts.map +1 -0
- package/lib/typescript/components/Avatar.d.ts +38 -0
- package/lib/typescript/components/Avatar.d.ts.map +1 -0
- package/lib/typescript/components/AvatarStack.d.ts +26 -0
- package/lib/typescript/components/AvatarStack.d.ts.map +1 -0
- package/lib/typescript/components/BackLink.d.ts +20 -0
- package/lib/typescript/components/BackLink.d.ts.map +1 -0
- package/lib/typescript/components/Badge.d.ts +12 -0
- package/lib/typescript/components/Badge.d.ts.map +1 -0
- package/lib/typescript/components/BarChart.d.ts +83 -0
- package/lib/typescript/components/BarChart.d.ts.map +1 -0
- package/lib/typescript/components/BarFill.d.ts +15 -0
- package/lib/typescript/components/BarFill.d.ts.map +1 -0
- package/lib/typescript/components/BeeswarmChart.d.ts +71 -0
- package/lib/typescript/components/BeeswarmChart.d.ts.map +1 -0
- package/lib/typescript/components/BiomarkerRange.d.ts +64 -0
- package/lib/typescript/components/BiomarkerRange.d.ts.map +1 -0
- package/lib/typescript/components/BodyBattery.d.ts +70 -0
- package/lib/typescript/components/BodyBattery.d.ts.map +1 -0
- package/lib/typescript/components/BrandMark.d.ts +10 -0
- package/lib/typescript/components/BrandMark.d.ts.map +1 -0
- package/lib/typescript/components/BulletChart.d.ts +61 -0
- package/lib/typescript/components/BulletChart.d.ts.map +1 -0
- package/lib/typescript/components/Button.d.ts +27 -0
- package/lib/typescript/components/Button.d.ts.map +1 -0
- package/lib/typescript/components/CaffeineClock.d.ts +64 -0
- package/lib/typescript/components/CaffeineClock.d.ts.map +1 -0
- package/lib/typescript/components/Card.d.ts +23 -0
- package/lib/typescript/components/Card.d.ts.map +1 -0
- package/lib/typescript/components/CharCounter.d.ts +30 -0
- package/lib/typescript/components/CharCounter.d.ts.map +1 -0
- package/lib/typescript/components/ChartState.d.ts +58 -0
- package/lib/typescript/components/ChartState.d.ts.map +1 -0
- package/lib/typescript/components/Checkbox.d.ts +44 -0
- package/lib/typescript/components/Checkbox.d.ts.map +1 -0
- package/lib/typescript/components/Chip.d.ts +17 -0
- package/lib/typescript/components/Chip.d.ts.map +1 -0
- package/lib/typescript/components/ChoiceChip.d.ts +31 -0
- package/lib/typescript/components/ChoiceChip.d.ts.map +1 -0
- package/lib/typescript/components/CodeBlock.d.ts +18 -0
- package/lib/typescript/components/CodeBlock.d.ts.map +1 -0
- package/lib/typescript/components/CodeField.d.ts +22 -0
- package/lib/typescript/components/CodeField.d.ts.map +1 -0
- package/lib/typescript/components/ColorPicker.d.ts +20 -0
- package/lib/typescript/components/ColorPicker.d.ts.map +1 -0
- package/lib/typescript/components/ComboChart.d.ts +56 -0
- package/lib/typescript/components/ComboChart.d.ts.map +1 -0
- package/lib/typescript/components/Combobox.d.ts +39 -0
- package/lib/typescript/components/Combobox.d.ts.map +1 -0
- package/lib/typescript/components/CompareChart.d.ts +80 -0
- package/lib/typescript/components/CompareChart.d.ts.map +1 -0
- package/lib/typescript/components/CompositeChart.d.ts +83 -0
- package/lib/typescript/components/CompositeChart.d.ts.map +1 -0
- package/lib/typescript/components/Countdown.d.ts +28 -0
- package/lib/typescript/components/Countdown.d.ts.map +1 -0
- package/lib/typescript/components/CreditCardVisual.d.ts +26 -0
- package/lib/typescript/components/CreditCardVisual.d.ts.map +1 -0
- package/lib/typescript/components/DateField.d.ts +39 -0
- package/lib/typescript/components/DateField.d.ts.map +1 -0
- package/lib/typescript/components/DayTimelineBlocks.d.ts +40 -0
- package/lib/typescript/components/DayTimelineBlocks.d.ts.map +1 -0
- package/lib/typescript/components/DayWheel.d.ts +70 -0
- package/lib/typescript/components/DayWheel.d.ts.map +1 -0
- package/lib/typescript/components/DeltaPill.d.ts +22 -0
- package/lib/typescript/components/DeltaPill.d.ts.map +1 -0
- package/lib/typescript/components/DistributionChart.d.ts +94 -0
- package/lib/typescript/components/DistributionChart.d.ts.map +1 -0
- package/lib/typescript/components/Divider.d.ts +16 -0
- package/lib/typescript/components/Divider.d.ts.map +1 -0
- package/lib/typescript/components/DonutChart.d.ts +70 -0
- package/lib/typescript/components/DonutChart.d.ts.map +1 -0
- package/lib/typescript/components/DotsLoader.d.ts +19 -0
- package/lib/typescript/components/DotsLoader.d.ts.map +1 -0
- package/lib/typescript/components/EffectAttributionLine.d.ts +24 -0
- package/lib/typescript/components/EffectAttributionLine.d.ts.map +1 -0
- package/lib/typescript/components/EmptyState.d.ts +17 -0
- package/lib/typescript/components/EmptyState.d.ts.map +1 -0
- package/lib/typescript/components/EngagementBar.d.ts +23 -0
- package/lib/typescript/components/EngagementBar.d.ts.map +1 -0
- package/lib/typescript/components/EnvironmentChart.d.ts +89 -0
- package/lib/typescript/components/EnvironmentChart.d.ts.map +1 -0
- package/lib/typescript/components/Eyebrow.d.ts +7 -0
- package/lib/typescript/components/Eyebrow.d.ts.map +1 -0
- package/lib/typescript/components/FocalPointPicker.d.ts +31 -0
- package/lib/typescript/components/FocalPointPicker.d.ts.map +1 -0
- package/lib/typescript/components/FollowButton.d.ts +21 -0
- package/lib/typescript/components/FollowButton.d.ts.map +1 -0
- package/lib/typescript/components/ForecastCallout.d.ts +21 -0
- package/lib/typescript/components/ForecastCallout.d.ts.map +1 -0
- package/lib/typescript/components/FormField.d.ts +32 -0
- package/lib/typescript/components/FormField.d.ts.map +1 -0
- package/lib/typescript/components/FunnelChart.d.ts +46 -0
- package/lib/typescript/components/FunnelChart.d.ts.map +1 -0
- package/lib/typescript/components/Gauge.d.ts +70 -0
- package/lib/typescript/components/Gauge.d.ts.map +1 -0
- package/lib/typescript/components/GradientText.d.ts +21 -0
- package/lib/typescript/components/GradientText.d.ts.map +1 -0
- package/lib/typescript/components/Heatmap.d.ts +87 -0
- package/lib/typescript/components/Heatmap.d.ts.map +1 -0
- package/lib/typescript/components/Highlight.d.ts +11 -0
- package/lib/typescript/components/Highlight.d.ts.map +1 -0
- package/lib/typescript/components/Hypnogram.d.ts +94 -0
- package/lib/typescript/components/Hypnogram.d.ts.map +1 -0
- package/lib/typescript/components/Icon.d.ts +30 -0
- package/lib/typescript/components/Icon.d.ts.map +1 -0
- package/lib/typescript/components/Input.d.ts +25 -0
- package/lib/typescript/components/Input.d.ts.map +1 -0
- package/lib/typescript/components/InsightCard.d.ts +37 -0
- package/lib/typescript/components/InsightCard.d.ts.map +1 -0
- package/lib/typescript/components/KeyValue.d.ts +18 -0
- package/lib/typescript/components/KeyValue.d.ts.map +1 -0
- package/lib/typescript/components/LeaderboardRow.d.ts +31 -0
- package/lib/typescript/components/LeaderboardRow.d.ts.map +1 -0
- package/lib/typescript/components/LineChart.d.ts +166 -0
- package/lib/typescript/components/LineChart.d.ts.map +1 -0
- package/lib/typescript/components/ListRow.d.ts +37 -0
- package/lib/typescript/components/ListRow.d.ts.map +1 -0
- package/lib/typescript/components/Menu.d.ts +28 -0
- package/lib/typescript/components/Menu.d.ts.map +1 -0
- package/lib/typescript/components/MessageBubble.d.ts +20 -0
- package/lib/typescript/components/MessageBubble.d.ts.map +1 -0
- package/lib/typescript/components/MessageComposer.d.ts +20 -0
- package/lib/typescript/components/MessageComposer.d.ts.map +1 -0
- package/lib/typescript/components/MetaphorWidget.d.ts +107 -0
- package/lib/typescript/components/MetaphorWidget.d.ts.map +1 -0
- package/lib/typescript/components/Meter.d.ts +34 -0
- package/lib/typescript/components/Meter.d.ts.map +1 -0
- package/lib/typescript/components/MetricTile.d.ts +43 -0
- package/lib/typescript/components/MetricTile.d.ts.map +1 -0
- package/lib/typescript/components/MiniRing.d.ts +9 -0
- package/lib/typescript/components/MiniRing.d.ts.map +1 -0
- package/lib/typescript/components/Modal.d.ts +19 -0
- package/lib/typescript/components/Modal.d.ts.map +1 -0
- package/lib/typescript/components/MuscleDiagram.d.ts +37 -0
- package/lib/typescript/components/MuscleDiagram.d.ts.map +1 -0
- package/lib/typescript/components/NoteField.d.ts +9 -0
- package/lib/typescript/components/NoteField.d.ts.map +1 -0
- package/lib/typescript/components/NotificationRow.d.ts +36 -0
- package/lib/typescript/components/NotificationRow.d.ts.map +1 -0
- package/lib/typescript/components/Pagination.d.ts +22 -0
- package/lib/typescript/components/Pagination.d.ts.map +1 -0
- package/lib/typescript/components/PasswordInput.d.ts +24 -0
- package/lib/typescript/components/PasswordInput.d.ts.map +1 -0
- package/lib/typescript/components/PasswordStrengthMeter.d.ts +18 -0
- package/lib/typescript/components/PasswordStrengthMeter.d.ts.map +1 -0
- package/lib/typescript/components/PendingPatternCard.d.ts +27 -0
- package/lib/typescript/components/PendingPatternCard.d.ts.map +1 -0
- package/lib/typescript/components/PhaseWheel.d.ts +103 -0
- package/lib/typescript/components/PhaseWheel.d.ts.map +1 -0
- package/lib/typescript/components/PkChart.d.ts +67 -0
- package/lib/typescript/components/PkChart.d.ts.map +1 -0
- package/lib/typescript/components/Popover.d.ts +27 -0
- package/lib/typescript/components/Popover.d.ts.map +1 -0
- package/lib/typescript/components/PrBadge.d.ts +21 -0
- package/lib/typescript/components/PrBadge.d.ts.map +1 -0
- package/lib/typescript/components/PrCard.d.ts +29 -0
- package/lib/typescript/components/PrCard.d.ts.map +1 -0
- package/lib/typescript/components/PricingTierCard.d.ts +46 -0
- package/lib/typescript/components/PricingTierCard.d.ts.map +1 -0
- package/lib/typescript/components/ProGate.d.ts +26 -0
- package/lib/typescript/components/ProGate.d.ts.map +1 -0
- package/lib/typescript/components/ProgressBar.d.ts +60 -0
- package/lib/typescript/components/ProgressBar.d.ts.map +1 -0
- package/lib/typescript/components/Pulse.d.ts +8 -0
- package/lib/typescript/components/Pulse.d.ts.map +1 -0
- package/lib/typescript/components/QRCode.d.ts +17 -0
- package/lib/typescript/components/QRCode.d.ts.map +1 -0
- package/lib/typescript/components/RadarChart.d.ts +59 -0
- package/lib/typescript/components/RadarChart.d.ts.map +1 -0
- package/lib/typescript/components/RangeBar.d.ts +38 -0
- package/lib/typescript/components/RangeBar.d.ts.map +1 -0
- package/lib/typescript/components/ReauthDialog.d.ts +44 -0
- package/lib/typescript/components/ReauthDialog.d.ts.map +1 -0
- package/lib/typescript/components/RestTimer.d.ts +45 -0
- package/lib/typescript/components/RestTimer.d.ts.map +1 -0
- package/lib/typescript/components/RichText.d.ts +26 -0
- package/lib/typescript/components/RichText.d.ts.map +1 -0
- package/lib/typescript/components/RichTextEditor.d.ts +25 -0
- package/lib/typescript/components/RichTextEditor.d.ts.map +1 -0
- package/lib/typescript/components/Ring.d.ts +63 -0
- package/lib/typescript/components/Ring.d.ts.map +1 -0
- package/lib/typescript/components/RoseChart.d.ts +54 -0
- package/lib/typescript/components/RoseChart.d.ts.map +1 -0
- package/lib/typescript/components/SankeyChart.d.ts +93 -0
- package/lib/typescript/components/SankeyChart.d.ts.map +1 -0
- package/lib/typescript/components/ScatterChart.d.ts +59 -0
- package/lib/typescript/components/ScatterChart.d.ts.map +1 -0
- package/lib/typescript/components/ScrollProgress.d.ts +24 -0
- package/lib/typescript/components/ScrollProgress.d.ts.map +1 -0
- package/lib/typescript/components/SectionDivider.d.ts +18 -0
- package/lib/typescript/components/SectionDivider.d.ts.map +1 -0
- package/lib/typescript/components/SectionHeader.d.ts +18 -0
- package/lib/typescript/components/SectionHeader.d.ts.map +1 -0
- package/lib/typescript/components/SegmentedTabs.d.ts +85 -0
- package/lib/typescript/components/SegmentedTabs.d.ts.map +1 -0
- package/lib/typescript/components/Select.d.ts +47 -0
- package/lib/typescript/components/Select.d.ts.map +1 -0
- package/lib/typescript/components/SessionBanner.d.ts +45 -0
- package/lib/typescript/components/SessionBanner.d.ts.map +1 -0
- package/lib/typescript/components/SessionChart.d.ts +130 -0
- package/lib/typescript/components/SessionChart.d.ts.map +1 -0
- package/lib/typescript/components/SetTable.d.ts +58 -0
- package/lib/typescript/components/SetTable.d.ts.map +1 -0
- package/lib/typescript/components/ShareCard.d.ts +40 -0
- package/lib/typescript/components/ShareCard.d.ts.map +1 -0
- package/lib/typescript/components/Sheet.d.ts +22 -0
- package/lib/typescript/components/Sheet.d.ts.map +1 -0
- package/lib/typescript/components/Skeleton.d.ts +9 -0
- package/lib/typescript/components/Skeleton.d.ts.map +1 -0
- package/lib/typescript/components/Slider.d.ts +27 -0
- package/lib/typescript/components/Slider.d.ts.map +1 -0
- package/lib/typescript/components/Sortable.d.ts +25 -0
- package/lib/typescript/components/Sortable.d.ts.map +1 -0
- package/lib/typescript/components/SourceChip.d.ts +24 -0
- package/lib/typescript/components/SourceChip.d.ts.map +1 -0
- package/lib/typescript/components/Sparkline.d.ts +28 -0
- package/lib/typescript/components/Sparkline.d.ts.map +1 -0
- package/lib/typescript/components/Spinner.d.ts +23 -0
- package/lib/typescript/components/Spinner.d.ts.map +1 -0
- package/lib/typescript/components/SplitButton.d.ts +21 -0
- package/lib/typescript/components/SplitButton.d.ts.map +1 -0
- package/lib/typescript/components/SsoButton.d.ts +10 -0
- package/lib/typescript/components/SsoButton.d.ts.map +1 -0
- package/lib/typescript/components/StackedBar.d.ts +32 -0
- package/lib/typescript/components/StackedBar.d.ts.map +1 -0
- package/lib/typescript/components/Stat.d.ts +33 -0
- package/lib/typescript/components/Stat.d.ts.map +1 -0
- package/lib/typescript/components/StatTile.d.ts +90 -0
- package/lib/typescript/components/StatTile.d.ts.map +1 -0
- package/lib/typescript/components/StateLabel.d.ts +12 -0
- package/lib/typescript/components/StateLabel.d.ts.map +1 -0
- package/lib/typescript/components/StatusDot.d.ts +13 -0
- package/lib/typescript/components/StatusDot.d.ts.map +1 -0
- package/lib/typescript/components/Stepper.d.ts +47 -0
- package/lib/typescript/components/Stepper.d.ts.map +1 -0
- package/lib/typescript/components/SupplementChart.d.ts +121 -0
- package/lib/typescript/components/SupplementChart.d.ts.map +1 -0
- package/lib/typescript/components/TabBar.d.ts +52 -0
- package/lib/typescript/components/TabBar.d.ts.map +1 -0
- package/lib/typescript/components/Table.d.ts +64 -0
- package/lib/typescript/components/Table.d.ts.map +1 -0
- package/lib/typescript/components/Tabs.d.ts +16 -0
- package/lib/typescript/components/Tabs.d.ts.map +1 -0
- package/lib/typescript/components/TagCloud.d.ts +31 -0
- package/lib/typescript/components/TagCloud.d.ts.map +1 -0
- package/lib/typescript/components/TagInput.d.ts +37 -0
- package/lib/typescript/components/TagInput.d.ts.map +1 -0
- package/lib/typescript/components/TemplateCard.d.ts +43 -0
- package/lib/typescript/components/TemplateCard.d.ts.map +1 -0
- package/lib/typescript/components/Timeline.d.ts +18 -0
- package/lib/typescript/components/Timeline.d.ts.map +1 -0
- package/lib/typescript/components/TimelineChart.d.ts +124 -0
- package/lib/typescript/components/TimelineChart.d.ts.map +1 -0
- package/lib/typescript/components/Toast.d.ts +18 -0
- package/lib/typescript/components/Toast.d.ts.map +1 -0
- package/lib/typescript/components/Toggle.d.ts +22 -0
- package/lib/typescript/components/Toggle.d.ts.map +1 -0
- package/lib/typescript/components/Toolbar.d.ts +48 -0
- package/lib/typescript/components/Toolbar.d.ts.map +1 -0
- package/lib/typescript/components/Tooltip.d.ts +16 -0
- package/lib/typescript/components/Tooltip.d.ts.map +1 -0
- package/lib/typescript/components/TypingIndicator.d.ts +16 -0
- package/lib/typescript/components/TypingIndicator.d.ts.map +1 -0
- package/lib/typescript/components/UnitChart.d.ts +84 -0
- package/lib/typescript/components/UnitChart.d.ts.map +1 -0
- package/lib/typescript/components/VersionBadge.d.ts +17 -0
- package/lib/typescript/components/VersionBadge.d.ts.map +1 -0
- package/lib/typescript/components/VideoThumbnail.d.ts +24 -0
- package/lib/typescript/components/VideoThumbnail.d.ts.map +1 -0
- package/lib/typescript/components/VitalsStrip.d.ts +53 -0
- package/lib/typescript/components/VitalsStrip.d.ts.map +1 -0
- package/lib/typescript/components/WatchComplication.d.ts +84 -0
- package/lib/typescript/components/WatchComplication.d.ts.map +1 -0
- package/lib/typescript/components/ZoneBar.d.ts +33 -0
- package/lib/typescript/components/ZoneBar.d.ts.map +1 -0
- package/lib/typescript/components/ZonePyramid.d.ts +51 -0
- package/lib/typescript/components/ZonePyramid.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +288 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/internal/optionalBlur.d.ts +13 -0
- package/lib/typescript/internal/optionalBlur.d.ts.map +1 -0
- package/lib/typescript/internal/optionalHaptics.d.ts +7 -0
- package/lib/typescript/internal/optionalHaptics.d.ts.map +1 -0
- package/lib/typescript/theme.d.ts +5 -0
- package/lib/typescript/theme.d.ts.map +1 -0
- package/package.json +92 -3
- package/src/components/Accordion.tsx +130 -0
- package/src/components/AchievementBadge.tsx +217 -0
- package/src/components/Alert.tsx +149 -0
- package/src/components/AreaChart.tsx +546 -0
- package/src/components/AuroraBackground.tsx +198 -0
- package/src/components/Avatar.tsx +164 -0
- package/src/components/AvatarStack.tsx +94 -0
- package/src/components/BackLink.tsx +64 -0
- package/src/components/Badge.tsx +91 -0
- package/src/components/BarChart.tsx +643 -0
- package/src/components/BarFill.tsx +37 -0
- package/src/components/BeeswarmChart.tsx +567 -0
- package/src/components/BiomarkerRange.tsx +571 -0
- package/src/components/BodyBattery.tsx +551 -0
- package/src/components/BrandMark.tsx +107 -0
- package/src/components/BulletChart.tsx +433 -0
- package/src/components/Button.tsx +127 -0
- package/src/components/CaffeineClock.tsx +472 -0
- package/src/components/Card.tsx +139 -0
- package/src/components/CharCounter.tsx +113 -0
- package/src/components/ChartState.tsx +473 -0
- package/src/components/Checkbox.tsx +175 -0
- package/src/components/Chip.tsx +132 -0
- package/src/components/ChoiceChip.tsx +119 -0
- package/src/components/CodeBlock.tsx +106 -0
- package/src/components/CodeField.tsx +137 -0
- package/src/components/ColorPicker.tsx +169 -0
- package/src/components/ComboChart.tsx +476 -0
- package/src/components/Combobox.tsx +141 -0
- package/src/components/CompareChart.tsx +651 -0
- package/src/components/CompositeChart.tsx +609 -0
- package/src/components/Countdown.tsx +155 -0
- package/src/components/CreditCardVisual.tsx +151 -0
- package/src/components/DateField.tsx +346 -0
- package/src/components/DayTimelineBlocks.tsx +270 -0
- package/src/components/DayWheel.tsx +483 -0
- package/src/components/DeltaPill.tsx +114 -0
- package/src/components/DistributionChart.tsx +739 -0
- package/src/components/Divider.tsx +61 -0
- package/src/components/DonutChart.tsx +399 -0
- package/src/components/DotsLoader.tsx +74 -0
- package/src/components/EffectAttributionLine.tsx +82 -0
- package/src/components/EmptyState.tsx +108 -0
- package/src/components/EngagementBar.tsx +140 -0
- package/src/components/EnvironmentChart.tsx +522 -0
- package/src/components/Eyebrow.tsx +22 -0
- package/src/components/FocalPointPicker.tsx +193 -0
- package/src/components/FollowButton.tsx +78 -0
- package/src/components/ForecastCallout.tsx +100 -0
- package/src/components/FormField.tsx +217 -0
- package/src/components/FunnelChart.tsx +310 -0
- package/src/components/Gauge.tsx +329 -0
- package/src/components/GradientText.tsx +114 -0
- package/src/components/Heatmap.tsx +459 -0
- package/src/components/Highlight.tsx +36 -0
- package/src/components/Hypnogram.tsx +751 -0
- package/src/components/Icon.tsx +680 -0
- package/src/components/Input.tsx +125 -0
- package/src/components/InsightCard.tsx +130 -0
- package/src/components/KeyValue.tsx +83 -0
- package/src/components/LeaderboardRow.tsx +156 -0
- package/src/components/LineChart.tsx +1529 -0
- package/src/components/ListRow.tsx +153 -0
- package/src/components/Menu.tsx +156 -0
- package/src/components/MessageBubble.tsx +118 -0
- package/src/components/MessageComposer.tsx +202 -0
- package/src/components/MetaphorWidget.tsx +848 -0
- package/src/components/Meter.tsx +186 -0
- package/src/components/MetricTile.tsx +247 -0
- package/src/components/MiniRing.tsx +17 -0
- package/src/components/Modal.tsx +129 -0
- package/src/components/MuscleDiagram.tsx +319 -0
- package/src/components/NoteField.tsx +68 -0
- package/src/components/NotificationRow.tsx +230 -0
- package/src/components/Pagination.tsx +188 -0
- package/src/components/PasswordInput.tsx +111 -0
- package/src/components/PasswordStrengthMeter.tsx +104 -0
- package/src/components/PendingPatternCard.tsx +163 -0
- package/src/components/PhaseWheel.tsx +781 -0
- package/src/components/PkChart.tsx +539 -0
- package/src/components/Popover.tsx +206 -0
- package/src/components/PrBadge.tsx +51 -0
- package/src/components/PrCard.tsx +132 -0
- package/src/components/PricingTierCard.tsx +234 -0
- package/src/components/ProGate.tsx +194 -0
- package/src/components/ProgressBar.tsx +439 -0
- package/src/components/Pulse.tsx +17 -0
- package/src/components/QRCode.tsx +555 -0
- package/src/components/RadarChart.tsx +538 -0
- package/src/components/RangeBar.tsx +206 -0
- package/src/components/ReauthDialog.tsx +282 -0
- package/src/components/RestTimer.tsx +193 -0
- package/src/components/RichText.tsx +71 -0
- package/src/components/RichTextEditor.tsx +207 -0
- package/src/components/Ring.tsx +269 -0
- package/src/components/RoseChart.tsx +375 -0
- package/src/components/SankeyChart.tsx +687 -0
- package/src/components/ScatterChart.tsx +498 -0
- package/src/components/ScrollProgress.tsx +61 -0
- package/src/components/SectionDivider.tsx +51 -0
- package/src/components/SectionHeader.tsx +41 -0
- package/src/components/SegmentedTabs.tsx +389 -0
- package/src/components/Select.tsx +335 -0
- package/src/components/SessionBanner.tsx +195 -0
- package/src/components/SessionChart.tsx +917 -0
- package/src/components/SetTable.tsx +341 -0
- package/src/components/ShareCard.tsx +145 -0
- package/src/components/Sheet.tsx +212 -0
- package/src/components/Skeleton.tsx +13 -0
- package/src/components/Slider.tsx +187 -0
- package/src/components/Sortable.tsx +263 -0
- package/src/components/SourceChip.tsx +95 -0
- package/src/components/Sparkline.tsx +108 -0
- package/src/components/Spinner.tsx +128 -0
- package/src/components/SplitButton.tsx +111 -0
- package/src/components/SsoButton.tsx +93 -0
- package/src/components/StackedBar.tsx +138 -0
- package/src/components/Stat.tsx +118 -0
- package/src/components/StatTile.tsx +581 -0
- package/src/components/StateLabel.tsx +62 -0
- package/src/components/StatusDot.tsx +58 -0
- package/src/components/Stepper.tsx +359 -0
- package/src/components/SupplementChart.tsx +1044 -0
- package/src/components/TabBar.tsx +297 -0
- package/src/components/Table.tsx +448 -0
- package/src/components/Tabs.tsx +85 -0
- package/src/components/TagCloud.tsx +111 -0
- package/src/components/TagInput.tsx +325 -0
- package/src/components/TemplateCard.tsx +181 -0
- package/src/components/Timeline.tsx +132 -0
- package/src/components/TimelineChart.tsx +1035 -0
- package/src/components/Toast.tsx +138 -0
- package/src/components/Toggle.tsx +155 -0
- package/src/components/Toolbar.tsx +292 -0
- package/src/components/Tooltip.tsx +193 -0
- package/src/components/TypingIndicator.tsx +106 -0
- package/src/components/UnitChart.tsx +519 -0
- package/src/components/VersionBadge.tsx +129 -0
- package/src/components/VideoThumbnail.tsx +140 -0
- package/src/components/VitalsStrip.tsx +636 -0
- package/src/components/WatchComplication.tsx +536 -0
- package/src/components/ZoneBar.tsx +148 -0
- package/src/components/ZonePyramid.tsx +405 -0
- package/src/components/__tests__/Chip.test.tsx +33 -0
- package/src/components/__tests__/CodeInput.test.tsx +62 -0
- package/src/components/__tests__/DeltaPill.test.tsx +41 -0
- package/src/components/__tests__/GradientText.test.tsx +69 -0
- package/src/components/__tests__/Icon.test.tsx +61 -0
- package/src/components/__tests__/Input.test.tsx +30 -0
- package/src/components/__tests__/LineChart.test.tsx +62 -0
- package/src/components/__tests__/ListRow.test.tsx +28 -0
- package/src/components/__tests__/PkChart.test.tsx +47 -0
- package/src/components/__tests__/PrBadge.test.tsx +32 -0
- package/src/components/__tests__/PrCard.test.tsx +49 -0
- package/src/components/__tests__/RestTimer.test.tsx +94 -0
- package/src/components/__tests__/SegmentedTabs.test.tsx +58 -0
- package/src/components/__tests__/SessionBanner.test.tsx +96 -0
- package/src/components/__tests__/SetTable.test.tsx +105 -0
- package/src/components/__tests__/SourceChip.test.tsx +82 -0
- package/src/components/__tests__/SupplementChart.test.tsx +71 -0
- package/src/components/__tests__/Table.test.tsx +81 -0
- package/src/components/__tests__/TemplateCard.test.tsx +85 -0
- package/src/components/__tests__/Toggle.test.tsx +49 -0
- package/src/components/__tests__/UnitChart.test.tsx +44 -0
- package/src/components/__tests__/markup.ts +142 -0
- package/src/components/__tests__/react-dom-server.d.ts +11 -0
- package/src/index.ts +320 -0
- package/src/internal/optionalBlur.ts +37 -0
- package/src/internal/optionalHaptics.ts +38 -0
- package/src/theme.ts +14 -0
- package/README.md +0 -3
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
import { View, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
+
import { useId } from 'react';
|
|
3
|
+
import Svg, { Circle, Defs, FeGaussianBlur, Filter, G, Path, Rect, Text as SvgText } from 'react-native-svg';
|
|
4
|
+
import { colors, fonts } from '@lockin90/tokens';
|
|
5
|
+
|
|
6
|
+
/* UnitChart — the shared catalog unit/waffle family (UN-01…UN-05,
|
|
7
|
+
lockin90-design/charts/unit-charts.html): every unit is a day, a dose, a
|
|
8
|
+
session — waffles and pictograms drawn in a fixed 320×150 viewBox with mono
|
|
9
|
+
catalog labels. Native twin of `@lockin90/ui` UnitChart — same prop API;
|
|
10
|
+
shine is a real Gaussian-blurred duplicate shape (Fabric-native SVG filters
|
|
11
|
+
in react-native-svg 15) and the UN-01 TODAY pulse is a static duplicate
|
|
12
|
+
halo (no CSS animation on native). */
|
|
13
|
+
|
|
14
|
+
export type UnitChartVariant =
|
|
15
|
+
| 'waffle-90' /* UN-01 — 90 dots (15×6) · filled ramps toward today · lime TODAY pulse + caption */
|
|
16
|
+
| 'waffle-share' /* UN-02 — 10×10 squares partitioned by zone colors + dot legend */
|
|
17
|
+
| 'pictogram-rows' /* UN-03 — icon rows (dumbbell/moon/cup) · done vs remaining 18% + counts */
|
|
18
|
+
| 'day-dots' /* UN-04 — 7 big dots · done = fill + dark check · pending outline + day letters + pill */
|
|
19
|
+
| 'habit-grid'; /* UN-05 — habit rows × 7 day dots, each row its own hue */
|
|
20
|
+
|
|
21
|
+
/** One share of the `waffle-share` 10×10 grid — `value` cells (of 100). */
|
|
22
|
+
export interface UnitSegment {
|
|
23
|
+
/** Legend word ('GOOD'). */
|
|
24
|
+
label: string;
|
|
25
|
+
/** Cell count out of 100 (segments fill the grid in order; leftover stays faint). */
|
|
26
|
+
value: number;
|
|
27
|
+
/** Cell + legend-dot color. Defaults cycle mint / zone-mid / zone-low. */
|
|
28
|
+
color?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** Built-in `pictogram-rows` glyphs (24×24 stroke paths from the catalog). */
|
|
32
|
+
export type UnitPictogramIcon = 'dumbbell' | 'moon' | 'cup';
|
|
33
|
+
|
|
34
|
+
/** One `pictogram-rows` tally row: `done` of `total` icon units. */
|
|
35
|
+
export interface UnitPictogramRow {
|
|
36
|
+
/** Row label, mono, right-aligned before the icons ('SLEEP 8H+'). */
|
|
37
|
+
label: string;
|
|
38
|
+
/** Units drawn. */
|
|
39
|
+
total: number;
|
|
40
|
+
/** Units at full opacity (remaining draw at 18%). */
|
|
41
|
+
done: number;
|
|
42
|
+
/** Built-in glyph. Defaults cycle dumbbell / moon / cup. */
|
|
43
|
+
icon?: UnitPictogramIcon;
|
|
44
|
+
/** Custom 24×24 stroke path — overrides `icon`. */
|
|
45
|
+
iconPath?: string;
|
|
46
|
+
/** Icon stroke + count color. Defaults cycle cyan / violet / zone-mid. */
|
|
47
|
+
color?: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** One `habit-grid` row: a week of on/off dots in the habit's own hue. */
|
|
51
|
+
export interface UnitHabitRow {
|
|
52
|
+
/** Habit label, mono, drawn in the row hue ('MEDITATE'). */
|
|
53
|
+
label: string;
|
|
54
|
+
/** 7 day flags, Monday first. */
|
|
55
|
+
days: (boolean | 0 | 1)[];
|
|
56
|
+
/** Row hue. Defaults cycle mint / cyan / lime. */
|
|
57
|
+
color?: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface UnitChartProps {
|
|
61
|
+
/** Catalog variant (UN-01 / UN-02 / UN-03 / UN-04 / UN-05). */
|
|
62
|
+
variant?: UnitChartVariant;
|
|
63
|
+
/** `waffle-90` — total dots (one per program day). */
|
|
64
|
+
total?: number;
|
|
65
|
+
/** `waffle-90` — days completed; dot `done` is TODAY (pulses lime). */
|
|
66
|
+
done?: number;
|
|
67
|
+
/** `waffle-90` — grid columns (rows derive as `ceil(total / columns)`). */
|
|
68
|
+
columns?: number;
|
|
69
|
+
/** `waffle-90` fill / `day-dots` dot color. */
|
|
70
|
+
color?: string;
|
|
71
|
+
/** `waffle-share` — the grid shares (values sum to ≤100). */
|
|
72
|
+
segments?: UnitSegment[];
|
|
73
|
+
/** `pictogram-rows` — the tally rows. */
|
|
74
|
+
rows?: UnitPictogramRow[];
|
|
75
|
+
/** `day-dots` — 7 day flags, Monday first. */
|
|
76
|
+
days?: (boolean | 0 | 1)[];
|
|
77
|
+
/** Day letters under `day-dots` / `habit-grid` dots (one char per day). */
|
|
78
|
+
dayLabels?: string;
|
|
79
|
+
/** `habit-grid` — the habit rows. */
|
|
80
|
+
habits?: UnitHabitRow[];
|
|
81
|
+
/** Top-left mono caption ('90-DAY LOCK-IN'). */
|
|
82
|
+
title?: string;
|
|
83
|
+
/** Top-right mint stat. `waffle-90` derives `'62%'` from done/total; '' hides. */
|
|
84
|
+
stat?: string;
|
|
85
|
+
/** Bottom faint legend line. `waffle-90` derives
|
|
86
|
+
* 'EACH DOT = A DAY · 56 OF 90 LOCKED IN'; '' hides. */
|
|
87
|
+
caption?: string;
|
|
88
|
+
/** `day-dots` chip-pill, top-right ('5 OF 7 · ON TRACK' — derived); '' hides. */
|
|
89
|
+
note?: string;
|
|
90
|
+
/** Soft glow underlays (the catalog glow modifier). */
|
|
91
|
+
shine?: boolean;
|
|
92
|
+
/** Accessible description of the chart. */
|
|
93
|
+
ariaLabel?: string;
|
|
94
|
+
/** Optional container style. */
|
|
95
|
+
style?: StyleProp<ViewStyle>;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* ---- catalog geometry (viewBox units — charts/catalog.js) ---- */
|
|
99
|
+
const W = 320;
|
|
100
|
+
const H = 150;
|
|
101
|
+
const PAD = { l: 10, r: 12, t: 16, b: 14 };
|
|
102
|
+
const PLOT_W = W - PAD.l - PAD.r; // 298
|
|
103
|
+
const PLOT_H = H - PAD.t - PAD.b; // 120
|
|
104
|
+
|
|
105
|
+
/** Round for compact attribute values. */
|
|
106
|
+
const rd = (n: number) => Math.round(n * 100) / 100;
|
|
107
|
+
|
|
108
|
+
/* built-in pictogram glyphs (24×24 stroke paths — the catalog rows) */
|
|
109
|
+
const ICON_PATHS: Record<UnitPictogramIcon, string> = {
|
|
110
|
+
dumbbell: 'M6 10h2v4H6zM16 10h2v4h-2zM8 11h8v2H8z',
|
|
111
|
+
moon: 'M15 4a7 7 0 1 0 5 10 8 8 0 0 1-5-10z',
|
|
112
|
+
cup: 'M5 8h10v6a4 4 0 0 1-4 4H9a4 4 0 0 1-4-4zM15 9h2a2 2 0 0 1 0 4h-2',
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
/* default hue cycles (catalog rows) */
|
|
116
|
+
const SEGMENT_COLORS = [colors.mint, colors.zoneMid, colors.zoneLow];
|
|
117
|
+
const PICTO_COLORS = [colors.cyan, colors.violet, colors.zoneMid];
|
|
118
|
+
const PICTO_ICONS: UnitPictogramIcon[] = ['dumbbell', 'moon', 'cup'];
|
|
119
|
+
const HABIT_COLORS = [colors.mint, colors.cyan, colors.lime];
|
|
120
|
+
|
|
121
|
+
/* the catalog demo data (unit-charts.html) — stories reproduce the cards */
|
|
122
|
+
const DEFAULT_SEGMENTS: UnitSegment[] = [
|
|
123
|
+
{ label: 'GOOD', value: 52 },
|
|
124
|
+
{ label: 'OK', value: 31 },
|
|
125
|
+
{ label: 'ROUGH', value: 17 },
|
|
126
|
+
];
|
|
127
|
+
const DEFAULT_ROWS: UnitPictogramRow[] = [
|
|
128
|
+
{ label: 'TRAINING', total: 5, done: 3 },
|
|
129
|
+
{ label: 'SLEEP 8H+', total: 7, done: 5 },
|
|
130
|
+
{ label: 'NO-CAFF DAYS', total: 7, done: 4 },
|
|
131
|
+
];
|
|
132
|
+
const DEFAULT_DAYS = [true, true, true, true, true, false, false];
|
|
133
|
+
const DEFAULT_HABITS: UnitHabitRow[] = [
|
|
134
|
+
{ label: 'MEDITATE', days: [1, 1, 0, 1, 1, 1, 0] },
|
|
135
|
+
{ label: 'LIFT', days: [1, 0, 1, 0, 1, 0, 0] },
|
|
136
|
+
{ label: 'SUNLIGHT', days: [1, 1, 1, 1, 0, 1, 1] },
|
|
137
|
+
];
|
|
138
|
+
|
|
139
|
+
/** Mono catalog label (8.5px JetBrains Mono, ~.06em tracking). */
|
|
140
|
+
function Label({
|
|
141
|
+
x,
|
|
142
|
+
y,
|
|
143
|
+
fill,
|
|
144
|
+
anchor = 'middle',
|
|
145
|
+
children,
|
|
146
|
+
}: {
|
|
147
|
+
x: number;
|
|
148
|
+
y: number;
|
|
149
|
+
fill: string;
|
|
150
|
+
anchor?: 'start' | 'middle' | 'end';
|
|
151
|
+
children: string;
|
|
152
|
+
}) {
|
|
153
|
+
return (
|
|
154
|
+
<SvgText
|
|
155
|
+
x={rd(x)}
|
|
156
|
+
y={rd(y)}
|
|
157
|
+
fill={fill}
|
|
158
|
+
textAnchor={anchor}
|
|
159
|
+
fontSize={8.5}
|
|
160
|
+
fontFamily={fonts.mono}
|
|
161
|
+
letterSpacing={0.5}
|
|
162
|
+
>
|
|
163
|
+
{children}
|
|
164
|
+
</SvgText>
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/** Chip-pill annotation (dark rounded rect + tinted hairline + mono text). */
|
|
169
|
+
function Tag({
|
|
170
|
+
x,
|
|
171
|
+
y,
|
|
172
|
+
color,
|
|
173
|
+
anchor = 'middle',
|
|
174
|
+
children,
|
|
175
|
+
}: {
|
|
176
|
+
x: number;
|
|
177
|
+
y: number;
|
|
178
|
+
color: string;
|
|
179
|
+
anchor?: 'start' | 'middle' | 'end';
|
|
180
|
+
children: string;
|
|
181
|
+
}) {
|
|
182
|
+
const w = children.length * 5.35 + 12;
|
|
183
|
+
let xa = anchor === 'end' ? x - w : anchor === 'start' ? x : x - w / 2;
|
|
184
|
+
xa = Math.max(PAD.l - 4, Math.min(xa, W - PAD.r - w + 4));
|
|
185
|
+
return (
|
|
186
|
+
<G>
|
|
187
|
+
<Rect
|
|
188
|
+
x={rd(xa)}
|
|
189
|
+
y={rd(y - 6.5)}
|
|
190
|
+
width={rd(w)}
|
|
191
|
+
height={13}
|
|
192
|
+
rx={6.5}
|
|
193
|
+
fill={colors.bg0}
|
|
194
|
+
fillOpacity={0.78}
|
|
195
|
+
stroke={color}
|
|
196
|
+
strokeOpacity={0.35}
|
|
197
|
+
strokeWidth={0.8}
|
|
198
|
+
/>
|
|
199
|
+
<SvgText
|
|
200
|
+
x={rd(xa + w / 2)}
|
|
201
|
+
y={rd(y + 2.8)}
|
|
202
|
+
fill={color}
|
|
203
|
+
textAnchor="middle"
|
|
204
|
+
fontSize={8}
|
|
205
|
+
fontFamily={fonts.mono}
|
|
206
|
+
letterSpacing={0.4}
|
|
207
|
+
>
|
|
208
|
+
{children}
|
|
209
|
+
</SvgText>
|
|
210
|
+
</G>
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/** TODAY pulse — static core + duplicate halo ring (no SMIL/JS animation on
|
|
215
|
+
* native; the web ring animation is a documented substrate diff). */
|
|
216
|
+
function PulseDot({ x, y, color }: { x: number; y: number; color: string }) {
|
|
217
|
+
return (
|
|
218
|
+
<G>
|
|
219
|
+
<Circle cx={rd(x)} cy={rd(y)} r={7} fill="none" stroke={color} strokeWidth={1.4} strokeOpacity={0.4} />
|
|
220
|
+
<Circle cx={rd(x)} cy={rd(y)} r={3.6} fill={color} />
|
|
221
|
+
</G>
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* UnitChart — countable-units chart for product surfaces (catalog family
|
|
227
|
+
* UN-01…UN-05). `waffle-90` is THE program waffle: every day is a dot, filled
|
|
228
|
+
* ramps toward today, TODAY pulses lime. `waffle-share` renders a percentage
|
|
229
|
+
* as a 10×10 zone-colored grid, `pictogram-rows` as friendly icon tallies,
|
|
230
|
+
* `day-dots` as a single habit's week strip, `habit-grid` as the mini habit
|
|
231
|
+
* board (rows × day dots, one hue per habit).
|
|
232
|
+
*/
|
|
233
|
+
export function UnitChart({
|
|
234
|
+
variant = 'waffle-90',
|
|
235
|
+
total = 90,
|
|
236
|
+
done = 56,
|
|
237
|
+
columns = 15,
|
|
238
|
+
color = colors.mint,
|
|
239
|
+
segments = DEFAULT_SEGMENTS,
|
|
240
|
+
rows = DEFAULT_ROWS,
|
|
241
|
+
days = DEFAULT_DAYS,
|
|
242
|
+
dayLabels = 'MTWTFSS',
|
|
243
|
+
habits = DEFAULT_HABITS,
|
|
244
|
+
title,
|
|
245
|
+
stat,
|
|
246
|
+
caption,
|
|
247
|
+
note,
|
|
248
|
+
shine = false,
|
|
249
|
+
ariaLabel = 'Unit chart',
|
|
250
|
+
style,
|
|
251
|
+
}: UnitChartProps) {
|
|
252
|
+
const uid = useId().replace(/[^a-zA-Z0-9]/g, '');
|
|
253
|
+
const blur4Id = `lk-unit-blur4-${uid}`;
|
|
254
|
+
const blur5Id = `lk-unit-blur5-${uid}`;
|
|
255
|
+
const resolvedStat =
|
|
256
|
+
stat ?? (variant === 'waffle-90' && total > 0 ? `${Math.round((done / total) * 100)}%` : undefined);
|
|
257
|
+
const resolvedCaption =
|
|
258
|
+
caption ?? (variant === 'waffle-90' ? `EACH DOT = A DAY · ${done} OF ${total} LOCKED IN` : undefined);
|
|
259
|
+
|
|
260
|
+
return (
|
|
261
|
+
<View accessibilityRole="image" accessibilityLabel={ariaLabel} style={[styles.root, style]}>
|
|
262
|
+
<Svg width="100%" height="100%" viewBox={`0 0 ${W} ${H}`}>
|
|
263
|
+
{shine ? (
|
|
264
|
+
/* real Gaussian blurs for the shine (Fabric-native in react-native-svg
|
|
265
|
+
15) — the native twins of the web `blur(4px)` / `blur(5px)`
|
|
266
|
+
underlays. Regions in user space over the full canvas so small
|
|
267
|
+
units never clip the blur. */
|
|
268
|
+
<Defs>
|
|
269
|
+
<Filter id={blur4Id} filterUnits="userSpaceOnUse" x={-10} y={-10} width={W + 20} height={H + 20}>
|
|
270
|
+
<FeGaussianBlur stdDeviation={2} />
|
|
271
|
+
</Filter>
|
|
272
|
+
<Filter id={blur5Id} filterUnits="userSpaceOnUse" x={-10} y={-10} width={W + 20} height={H + 20}>
|
|
273
|
+
<FeGaussianBlur stdDeviation={2.5} />
|
|
274
|
+
</Filter>
|
|
275
|
+
</Defs>
|
|
276
|
+
) : null}
|
|
277
|
+
{title ? (
|
|
278
|
+
<Label x={PAD.l + 2} y={11} fill={colors.textFaint} anchor="start">
|
|
279
|
+
{title}
|
|
280
|
+
</Label>
|
|
281
|
+
) : null}
|
|
282
|
+
{resolvedStat ? (
|
|
283
|
+
<SvgText
|
|
284
|
+
x={W - PAD.r - 2}
|
|
285
|
+
y={12}
|
|
286
|
+
fill={colors.mint}
|
|
287
|
+
textAnchor="end"
|
|
288
|
+
fontSize={12}
|
|
289
|
+
fontFamily={fonts.display}
|
|
290
|
+
fontWeight="700"
|
|
291
|
+
>
|
|
292
|
+
{resolvedStat}
|
|
293
|
+
</SvgText>
|
|
294
|
+
) : null}
|
|
295
|
+
|
|
296
|
+
{variant === 'waffle-90' ? (
|
|
297
|
+
/* ---- UN-01 · the 90-day program waffle ---- */
|
|
298
|
+
(() => {
|
|
299
|
+
const rowsN = Math.max(1, Math.ceil(total / Math.max(1, columns)));
|
|
300
|
+
const gap = 4;
|
|
301
|
+
const cw = (PLOT_W - 30 - gap * (columns - 1)) / columns; // dot diameter
|
|
302
|
+
return (
|
|
303
|
+
<>
|
|
304
|
+
{Array.from({ length: total }, (_, i) => {
|
|
305
|
+
const r = i % rowsN;
|
|
306
|
+
const c = Math.floor(i / rowsN);
|
|
307
|
+
const x = PAD.l + 16 + c * (cw + gap);
|
|
308
|
+
const y = PAD.t + 10 + r * (cw + gap);
|
|
309
|
+
const filled = i < done;
|
|
310
|
+
return (
|
|
311
|
+
<G key={i}>
|
|
312
|
+
{/* shine — a Gaussian-blurred duplicate unit (the web
|
|
313
|
+
`blur(4px)` underlay) */}
|
|
314
|
+
{shine && filled && i % 7 === 0 ? (
|
|
315
|
+
<Circle
|
|
316
|
+
cx={rd(x + cw / 2)}
|
|
317
|
+
cy={rd(y + cw / 2)}
|
|
318
|
+
r={rd(cw / 2 + 2)}
|
|
319
|
+
fill={color}
|
|
320
|
+
opacity={0.5}
|
|
321
|
+
filter={`url(#${blur4Id})`}
|
|
322
|
+
/>
|
|
323
|
+
) : null}
|
|
324
|
+
<Circle
|
|
325
|
+
cx={rd(x + cw / 2)}
|
|
326
|
+
cy={rd(y + cw / 2)}
|
|
327
|
+
r={rd(cw / 2)}
|
|
328
|
+
fill={filled ? color : colors.glass2}
|
|
329
|
+
opacity={filled ? rd(0.5 + 0.5 * (i / done)) : 1}
|
|
330
|
+
/>
|
|
331
|
+
{i === done ? <PulseDot x={x + cw / 2} y={y + cw / 2} color={colors.lime} /> : null}
|
|
332
|
+
</G>
|
|
333
|
+
);
|
|
334
|
+
})}
|
|
335
|
+
{resolvedCaption ? (
|
|
336
|
+
<Label x={PAD.l + 16} y={H - 4} fill={colors.textFaint} anchor="start">
|
|
337
|
+
{resolvedCaption}
|
|
338
|
+
</Label>
|
|
339
|
+
) : null}
|
|
340
|
+
</>
|
|
341
|
+
);
|
|
342
|
+
})()
|
|
343
|
+
) : variant === 'waffle-share' ? (
|
|
344
|
+
/* ---- UN-02 · 10×10 percent grid + dot legend ---- */
|
|
345
|
+
(() => {
|
|
346
|
+
const n = 10;
|
|
347
|
+
const gap = 3;
|
|
348
|
+
const cell = Math.min(PLOT_H - 22, 110) / n - gap + 3; // 9.8
|
|
349
|
+
// grid sits LEFT of center — the +20 right-shift made its last columns
|
|
350
|
+
// (right edge ≈244) run under the dot legend at x=226; -34 keeps ≥36px clear.
|
|
351
|
+
const gx = W / 2 - (n * (cell + gap)) / 2 - 34;
|
|
352
|
+
const cells = [];
|
|
353
|
+
for (let r = 0; r < n; r++) {
|
|
354
|
+
for (let c = 0; c < n; c++) {
|
|
355
|
+
const idx = r * n + c;
|
|
356
|
+
let acc = 0;
|
|
357
|
+
let col: string = colors.glass2;
|
|
358
|
+
for (let k = 0; k < segments.length; k++) {
|
|
359
|
+
acc += segments[k].value;
|
|
360
|
+
if (idx < acc) {
|
|
361
|
+
col = segments[k].color ?? SEGMENT_COLORS[k % SEGMENT_COLORS.length];
|
|
362
|
+
break;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
cells.push(
|
|
366
|
+
<Rect
|
|
367
|
+
key={idx}
|
|
368
|
+
x={rd(gx + c * (cell + gap))}
|
|
369
|
+
y={rd(PAD.t + 8 + r * (cell + gap))}
|
|
370
|
+
width={rd(cell)}
|
|
371
|
+
height={rd(cell)}
|
|
372
|
+
rx={2}
|
|
373
|
+
fill={col}
|
|
374
|
+
opacity={0.9}
|
|
375
|
+
/>,
|
|
376
|
+
);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
return (
|
|
380
|
+
<>
|
|
381
|
+
{cells}
|
|
382
|
+
{segments.map((s, i) => {
|
|
383
|
+
const ly = PAD.t + 26 + i * 22;
|
|
384
|
+
const col = s.color ?? SEGMENT_COLORS[i % SEGMENT_COLORS.length];
|
|
385
|
+
return (
|
|
386
|
+
<G key={i}>
|
|
387
|
+
<Circle cx={226} cy={ly} r={4} fill={col} />
|
|
388
|
+
<Label x={236} y={ly + 3} fill={colors.textDim} anchor="start">
|
|
389
|
+
{`${s.label} ${s.value}`}
|
|
390
|
+
</Label>
|
|
391
|
+
</G>
|
|
392
|
+
);
|
|
393
|
+
})}
|
|
394
|
+
</>
|
|
395
|
+
);
|
|
396
|
+
})()
|
|
397
|
+
) : variant === 'pictogram-rows' ? (
|
|
398
|
+
/* ---- UN-03 · icon tallies (done vs remaining 18%) ---- */
|
|
399
|
+
<>
|
|
400
|
+
{rows.map((row, ri) => {
|
|
401
|
+
const y = PAD.t + 16 + ri * 34;
|
|
402
|
+
const col = row.color ?? PICTO_COLORS[ri % PICTO_COLORS.length];
|
|
403
|
+
const d = row.iconPath ?? ICON_PATHS[row.icon ?? PICTO_ICONS[ri % PICTO_ICONS.length]];
|
|
404
|
+
return (
|
|
405
|
+
<G key={ri}>
|
|
406
|
+
<Label x={PAD.l + 74} y={y + 12} fill={colors.textDim} anchor="end">
|
|
407
|
+
{row.label}
|
|
408
|
+
</Label>
|
|
409
|
+
{Array.from({ length: row.total }, (_, u) => (
|
|
410
|
+
<G
|
|
411
|
+
key={u}
|
|
412
|
+
transform={`translate(${PAD.l + 86 + u * 26} ${y}) scale(0.9)`}
|
|
413
|
+
opacity={u < row.done ? 1 : 0.18}
|
|
414
|
+
>
|
|
415
|
+
<Path d={d} fill="none" stroke={col} strokeWidth={1.8} strokeLinecap="round" strokeLinejoin="round" />
|
|
416
|
+
</G>
|
|
417
|
+
))}
|
|
418
|
+
<Label x={PAD.l + 86 + row.total * 26 + 4} y={y + 12} fill={col} anchor="start">
|
|
419
|
+
{`${row.done}/${row.total}`}
|
|
420
|
+
</Label>
|
|
421
|
+
</G>
|
|
422
|
+
);
|
|
423
|
+
})}
|
|
424
|
+
</>
|
|
425
|
+
) : variant === 'day-dots' ? (
|
|
426
|
+
/* ---- UN-04 · single habit week strip ---- */
|
|
427
|
+
(() => {
|
|
428
|
+
const y = H / 2 + 4;
|
|
429
|
+
const onCount = days.filter(Boolean).length;
|
|
430
|
+
const pill = note ?? `${onCount} OF ${days.length} · ON TRACK`;
|
|
431
|
+
return (
|
|
432
|
+
<>
|
|
433
|
+
{days.map((raw, u) => {
|
|
434
|
+
const on = Boolean(raw);
|
|
435
|
+
const x = PAD.l + 34 + u * 38;
|
|
436
|
+
return (
|
|
437
|
+
<G key={u}>
|
|
438
|
+
{/* shine — a Gaussian-blurred duplicate dot (the web
|
|
439
|
+
`blur(5px)` underlay) */}
|
|
440
|
+
{on && shine ? (
|
|
441
|
+
<Circle cx={x} cy={y} r={12} fill={color} opacity={0.5} filter={`url(#${blur5Id})`} />
|
|
442
|
+
) : null}
|
|
443
|
+
<Circle
|
|
444
|
+
cx={x}
|
|
445
|
+
cy={y}
|
|
446
|
+
r={10}
|
|
447
|
+
fill={on ? color : 'none'}
|
|
448
|
+
stroke={on ? color : colors.border2}
|
|
449
|
+
strokeWidth={1.6}
|
|
450
|
+
/>
|
|
451
|
+
{on ? (
|
|
452
|
+
<Path
|
|
453
|
+
d={`M${x - 4} ${y}l3 3 5 -6`}
|
|
454
|
+
fill="none"
|
|
455
|
+
stroke={colors.bg0}
|
|
456
|
+
strokeWidth={2}
|
|
457
|
+
strokeLinecap="round"
|
|
458
|
+
strokeLinejoin="round"
|
|
459
|
+
/>
|
|
460
|
+
) : null}
|
|
461
|
+
<Label x={x} y={y + 24} fill={colors.textFaint}>
|
|
462
|
+
{dayLabels[u] ?? ''}
|
|
463
|
+
</Label>
|
|
464
|
+
</G>
|
|
465
|
+
);
|
|
466
|
+
})}
|
|
467
|
+
{pill ? (
|
|
468
|
+
<Tag x={W - PAD.r - 4} y={y - 24} color={color} anchor="end">
|
|
469
|
+
{pill}
|
|
470
|
+
</Tag>
|
|
471
|
+
) : null}
|
|
472
|
+
</>
|
|
473
|
+
);
|
|
474
|
+
})()
|
|
475
|
+
) : variant === 'habit-grid' ? (
|
|
476
|
+
/* ---- UN-05 · the mini habit board (rows × day dots) ---- */
|
|
477
|
+
<>
|
|
478
|
+
{habits.map((hb, hi) => {
|
|
479
|
+
const y = PAD.t + 18 + hi * 30;
|
|
480
|
+
const col = hb.color ?? HABIT_COLORS[hi % HABIT_COLORS.length];
|
|
481
|
+
return (
|
|
482
|
+
<G key={hi}>
|
|
483
|
+
<Label x={PAD.l + 64} y={y + 4} fill={col} anchor="end">
|
|
484
|
+
{hb.label}
|
|
485
|
+
</Label>
|
|
486
|
+
{hb.days.map((raw, di) => {
|
|
487
|
+
const on = Boolean(raw);
|
|
488
|
+
return (
|
|
489
|
+
<Circle
|
|
490
|
+
key={di}
|
|
491
|
+
cx={PAD.l + 78 + di * 30}
|
|
492
|
+
cy={y}
|
|
493
|
+
r={8}
|
|
494
|
+
fill={on ? col : 'none'}
|
|
495
|
+
stroke={on ? col : colors.border2}
|
|
496
|
+
strokeWidth={1.4}
|
|
497
|
+
opacity={on ? 0.9 : 1}
|
|
498
|
+
/>
|
|
499
|
+
);
|
|
500
|
+
})}
|
|
501
|
+
</G>
|
|
502
|
+
);
|
|
503
|
+
})}
|
|
504
|
+
{Array.from({ length: 7 }, (_, d) => (
|
|
505
|
+
<Label key={d} x={PAD.l + 78 + d * 30} y={H - 4} fill={colors.textFaint}>
|
|
506
|
+
{dayLabels[d] ?? ''}
|
|
507
|
+
</Label>
|
|
508
|
+
))}
|
|
509
|
+
</>
|
|
510
|
+
) : null}
|
|
511
|
+
</Svg>
|
|
512
|
+
</View>
|
|
513
|
+
);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
const styles = StyleSheet.create({
|
|
517
|
+
/* fixed catalog aspect (320×150); the Svg scales the viewBox to fit */
|
|
518
|
+
root: { width: '100%', aspectRatio: W / H },
|
|
519
|
+
});
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { View, Text, StyleSheet, type ViewProps } from 'react-native';
|
|
2
|
+
import { colors, radii, fonts } from '@lockin90/tokens';
|
|
3
|
+
|
|
4
|
+
export type VersionEnv = 'prod' | 'staging' | 'dev';
|
|
5
|
+
|
|
6
|
+
export interface VersionBadgeProps extends ViewProps {
|
|
7
|
+
/** version string, e.g. `v1.6.0` */
|
|
8
|
+
version: string;
|
|
9
|
+
/** short build hash, e.g. `a1b2c3d` */
|
|
10
|
+
build?: string;
|
|
11
|
+
/** deployment environment — tints the leading dot + env label (default `prod`) */
|
|
12
|
+
env?: VersionEnv;
|
|
13
|
+
/** optional build/release date segment */
|
|
14
|
+
date?: string;
|
|
15
|
+
/** show the leading env-colored status dot (default true) */
|
|
16
|
+
dot?: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const ENV_COLOR: Record<VersionEnv, string> = {
|
|
20
|
+
prod: colors.mint,
|
|
21
|
+
staging: colors.warn,
|
|
22
|
+
dev: colors.accent,
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
const ENV_LABEL: Record<VersionEnv, string> = {
|
|
26
|
+
prod: 'PROD',
|
|
27
|
+
staging: 'STAGING',
|
|
28
|
+
dev: 'DEV',
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** Compact monospace build/version chip — version · build · env · date, with an env-colored status dot. */
|
|
32
|
+
export function VersionBadge({
|
|
33
|
+
version,
|
|
34
|
+
build,
|
|
35
|
+
env = 'prod',
|
|
36
|
+
date,
|
|
37
|
+
dot = true,
|
|
38
|
+
style,
|
|
39
|
+
...rest
|
|
40
|
+
}: VersionBadgeProps) {
|
|
41
|
+
const tint = ENV_COLOR[env];
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<View style={[styles.badge, env !== 'prod' && { borderColor: hexAlpha(tint, 0.4) }, style]} {...rest}>
|
|
45
|
+
<View style={styles.seg}>
|
|
46
|
+
{dot && (
|
|
47
|
+
<View
|
|
48
|
+
style={[
|
|
49
|
+
styles.dot,
|
|
50
|
+
{ backgroundColor: tint, shadowColor: tint, shadowOpacity: 1, shadowRadius: 4 },
|
|
51
|
+
]}
|
|
52
|
+
/>
|
|
53
|
+
)}
|
|
54
|
+
<Text style={styles.ver}>{version}</Text>
|
|
55
|
+
</View>
|
|
56
|
+
{build != null && (
|
|
57
|
+
<View style={[styles.seg, styles.segDivider]}>
|
|
58
|
+
<Text style={styles.faint}>build {build}</Text>
|
|
59
|
+
</View>
|
|
60
|
+
)}
|
|
61
|
+
{date != null && (
|
|
62
|
+
<View style={[styles.seg, styles.segDivider]}>
|
|
63
|
+
<Text style={styles.faint}>{date}</Text>
|
|
64
|
+
</View>
|
|
65
|
+
)}
|
|
66
|
+
<View style={[styles.seg, styles.segDivider]}>
|
|
67
|
+
<Text style={[styles.env, { color: tint }]}>{ENV_LABEL[env]}</Text>
|
|
68
|
+
</View>
|
|
69
|
+
</View>
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/** `#RRGGBB` + alpha → `rgba(...)`. */
|
|
74
|
+
function hexAlpha(hex: string, alpha: number): string {
|
|
75
|
+
const h = hex.replace('#', '');
|
|
76
|
+
const r = parseInt(h.slice(0, 2), 16);
|
|
77
|
+
const g = parseInt(h.slice(2, 4), 16);
|
|
78
|
+
const b = parseInt(h.slice(4, 6), 16);
|
|
79
|
+
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const styles = StyleSheet.create({
|
|
83
|
+
badge: {
|
|
84
|
+
flexDirection: 'row',
|
|
85
|
+
alignItems: 'center',
|
|
86
|
+
alignSelf: 'flex-start',
|
|
87
|
+
borderRadius: radii.pill,
|
|
88
|
+
borderWidth: 1,
|
|
89
|
+
borderColor: colors.border,
|
|
90
|
+
backgroundColor: colors.glass2,
|
|
91
|
+
overflow: 'hidden',
|
|
92
|
+
},
|
|
93
|
+
seg: {
|
|
94
|
+
flexDirection: 'row',
|
|
95
|
+
alignItems: 'center',
|
|
96
|
+
gap: 6,
|
|
97
|
+
paddingHorizontal: 10,
|
|
98
|
+
paddingVertical: 4,
|
|
99
|
+
},
|
|
100
|
+
segDivider: {
|
|
101
|
+
borderLeftWidth: 1,
|
|
102
|
+
borderLeftColor: colors.border,
|
|
103
|
+
},
|
|
104
|
+
ver: {
|
|
105
|
+
fontFamily: fonts.mono,
|
|
106
|
+
fontSize: 10.5,
|
|
107
|
+
lineHeight: 14,
|
|
108
|
+
color: colors.textDim,
|
|
109
|
+
},
|
|
110
|
+
faint: {
|
|
111
|
+
fontFamily: fonts.mono,
|
|
112
|
+
fontSize: 10.5,
|
|
113
|
+
lineHeight: 14,
|
|
114
|
+
color: colors.textFaint,
|
|
115
|
+
},
|
|
116
|
+
env: {
|
|
117
|
+
fontFamily: fonts.mono,
|
|
118
|
+
fontSize: 10.5,
|
|
119
|
+
lineHeight: 14,
|
|
120
|
+
fontWeight: '600',
|
|
121
|
+
letterSpacing: 0.6,
|
|
122
|
+
},
|
|
123
|
+
dot: {
|
|
124
|
+
width: 6,
|
|
125
|
+
height: 6,
|
|
126
|
+
borderRadius: 3,
|
|
127
|
+
shadowOffset: { width: 0, height: 0 },
|
|
128
|
+
},
|
|
129
|
+
});
|