@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,405 @@
|
|
|
1
|
+
import { useId } from 'react';
|
|
2
|
+
import { View, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import Svg, { Defs, FeGaussianBlur, Filter, G, Line, Rect, Text as SvgText } from 'react-native-svg';
|
|
4
|
+
import { colors, fonts } from '@lockin90/tokens';
|
|
5
|
+
|
|
6
|
+
/* ZonePyramid — the shared catalog pyramid family (PY-01…PY-03,
|
|
7
|
+
lockin90-design/charts/pyramid-charts.html): time-in-zone as a training
|
|
8
|
+
pyramid — base easy, tip hard — drawn in a fixed 320×150 viewBox with mono
|
|
9
|
+
catalog labels. Native twin of `@lockin90/ui` ZonePyramid — same prop API;
|
|
10
|
+
shine is a real Gaussian-blurred duplicate bar (Fabric-native SVG filters
|
|
11
|
+
in react-native-svg 15). */
|
|
12
|
+
|
|
13
|
+
export type ZonePyramidVariant =
|
|
14
|
+
| 'zone-pyramid' /* PY-01 — 5 centered bars Z5→Z1 · % left, h:mm right, zone letter inside */
|
|
15
|
+
| 'target-pyramid' /* PY-02 — PY-01 + dashed white target outline per zone + amber OVER pill */
|
|
16
|
+
| 'mirror-pyramid'; /* PY-03 — population-pyramid: this week right (solid) vs last week left (32%) */
|
|
17
|
+
|
|
18
|
+
/** One pyramid row, top row first (Z5 → Z1). */
|
|
19
|
+
export interface PyramidZone {
|
|
20
|
+
/** Zone letter/name — inside the bar when it's wide enough ('Z2'). */
|
|
21
|
+
label: string;
|
|
22
|
+
/** Time in zone (minutes) — bar width normalizes to the longest zone. */
|
|
23
|
+
minutes: number;
|
|
24
|
+
/** Target minutes (`target-pyramid` dashed outline; same scale as `minutes`). */
|
|
25
|
+
target?: number;
|
|
26
|
+
/** Previous-period minutes (`mirror-pyramid` left bar; same scale). */
|
|
27
|
+
prev?: number;
|
|
28
|
+
/** Left label override; derived as the share of total ('17%'). */
|
|
29
|
+
pct?: string;
|
|
30
|
+
/** Right label override; derived as h:mm from `minutes` ('1:58'). */
|
|
31
|
+
time?: string;
|
|
32
|
+
/** Bar color. Defaults cycle zone-low / zone-mid / lime / mint / cyan (Z5→Z1). */
|
|
33
|
+
color?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface ZonePyramidProps {
|
|
37
|
+
/** Catalog variant (PY-01 / PY-02 / PY-03). */
|
|
38
|
+
variant?: ZonePyramidVariant;
|
|
39
|
+
/** The rows, top first (Z5 → Z1). */
|
|
40
|
+
zones?: PyramidZone[];
|
|
41
|
+
/** Top-left mono caption ('TIME IN ZONE · WEEK'). */
|
|
42
|
+
title?: string;
|
|
43
|
+
/** Bottom faint line. `zone-pyramid` derives '11H 11M TOTAL'; '' hides. */
|
|
44
|
+
caption?: string;
|
|
45
|
+
/** The pill: `target-pyramid` biggest overage ('Z3 +40M OVER' — derived),
|
|
46
|
+
* `mirror-pyramid` biggest change ('Z2 +29 MIN' — derived); '' hides. */
|
|
47
|
+
note?: string;
|
|
48
|
+
/** `mirror-pyramid` column headings. */
|
|
49
|
+
periodLabels?: [string, string];
|
|
50
|
+
/** Soft glow underlay behind each solid bar (the catalog glow modifier). */
|
|
51
|
+
shine?: boolean;
|
|
52
|
+
/** Accessible description of the chart. */
|
|
53
|
+
ariaLabel?: string;
|
|
54
|
+
/** Optional container style. */
|
|
55
|
+
style?: StyleProp<ViewStyle>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* ---- catalog geometry (viewBox units — charts/pyramid-charts.html) ---- */
|
|
59
|
+
const W = 320;
|
|
60
|
+
const H = 150;
|
|
61
|
+
const PAD = { l: 10, r: 12, t: 16, b: 14 };
|
|
62
|
+
/** widest bar box + row metrics (the page's MAXW / RH / GAP) */
|
|
63
|
+
const MAXW = 168;
|
|
64
|
+
const RH = 16;
|
|
65
|
+
const GAP = 5;
|
|
66
|
+
const CX = 160;
|
|
67
|
+
const TOP = 28;
|
|
68
|
+
/** the longest zone's bar spans 95% of the bar box (catalog headroom) */
|
|
69
|
+
const HEAD = 0.95;
|
|
70
|
+
/** mirror layout: half-width bar boxes either side of a 14px spine gap */
|
|
71
|
+
const MIRROR_TOP = 30;
|
|
72
|
+
const MIRROR_MAXW = 108;
|
|
73
|
+
const SPINE = 14;
|
|
74
|
+
/** zone letters render inside bars wider than this; above the bar otherwise */
|
|
75
|
+
const LABEL_MIN_W = 34;
|
|
76
|
+
|
|
77
|
+
/** Round for compact attribute values. */
|
|
78
|
+
const rd = (n: number) => Math.round(n * 100) / 100;
|
|
79
|
+
|
|
80
|
+
/* Z5 → Z1 hue ladder (the catalog rows) */
|
|
81
|
+
const ZONE_COLORS = [colors.zoneLow, colors.zoneMid, colors.lime, colors.mint, colors.cyan];
|
|
82
|
+
|
|
83
|
+
/* the catalog demo data (pyramid-charts.html ZONES + derived target/prev
|
|
84
|
+
minutes) — stories reproduce the cards */
|
|
85
|
+
const DEFAULT_ZONES: PyramidZone[] = [
|
|
86
|
+
{ label: 'Z5', minutes: 36, target: 26, prev: 22, pct: '3%', time: '0:36' },
|
|
87
|
+
{ label: 'Z4', minutes: 72, target: 53, prev: 94, pct: '8%', time: '1:12' },
|
|
88
|
+
{ label: 'Z3', minutes: 118, target: 78, prev: 130, pct: '17%', time: '1:58' },
|
|
89
|
+
{ label: 'Z2', minutes: 195, target: 224, prev: 166, pct: '29%', time: '3:15' },
|
|
90
|
+
{ label: 'Z1', minutes: 250, target: 263, prev: 238, pct: '43%', time: '4:10' },
|
|
91
|
+
];
|
|
92
|
+
|
|
93
|
+
/** minutes → 'h:mm' ('118' → '1:58'). */
|
|
94
|
+
function hmm(minutes: number): string {
|
|
95
|
+
const m = Math.max(0, Math.round(minutes));
|
|
96
|
+
return `${Math.floor(m / 60)}:${String(m % 60).padStart(2, '0')}`;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/** Mono catalog label (8.5px JetBrains Mono, ~.06em tracking). */
|
|
100
|
+
function Label({
|
|
101
|
+
x,
|
|
102
|
+
y,
|
|
103
|
+
fill,
|
|
104
|
+
anchor = 'middle',
|
|
105
|
+
children,
|
|
106
|
+
}: {
|
|
107
|
+
x: number;
|
|
108
|
+
y: number;
|
|
109
|
+
fill: string;
|
|
110
|
+
anchor?: 'start' | 'middle' | 'end';
|
|
111
|
+
children: string;
|
|
112
|
+
}) {
|
|
113
|
+
return (
|
|
114
|
+
<SvgText
|
|
115
|
+
x={rd(x)}
|
|
116
|
+
y={rd(y)}
|
|
117
|
+
fill={fill}
|
|
118
|
+
textAnchor={anchor}
|
|
119
|
+
fontSize={8.5}
|
|
120
|
+
fontFamily={fonts.mono}
|
|
121
|
+
letterSpacing={0.5}
|
|
122
|
+
>
|
|
123
|
+
{children}
|
|
124
|
+
</SvgText>
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/** Chip-pill annotation (dark rounded rect + tinted hairline + mono text). */
|
|
129
|
+
function Tag({
|
|
130
|
+
x,
|
|
131
|
+
y,
|
|
132
|
+
color,
|
|
133
|
+
anchor = 'middle',
|
|
134
|
+
children,
|
|
135
|
+
}: {
|
|
136
|
+
x: number;
|
|
137
|
+
y: number;
|
|
138
|
+
color: string;
|
|
139
|
+
anchor?: 'start' | 'middle' | 'end';
|
|
140
|
+
children: string;
|
|
141
|
+
}) {
|
|
142
|
+
const w = children.length * 5.35 + 12;
|
|
143
|
+
let xa = anchor === 'end' ? x - w : anchor === 'start' ? x : x - w / 2;
|
|
144
|
+
xa = Math.max(PAD.l - 4, Math.min(xa, W - PAD.r - w + 4));
|
|
145
|
+
return (
|
|
146
|
+
<G>
|
|
147
|
+
<Rect
|
|
148
|
+
x={rd(xa)}
|
|
149
|
+
y={rd(y - 6.5)}
|
|
150
|
+
width={rd(w)}
|
|
151
|
+
height={13}
|
|
152
|
+
rx={6.5}
|
|
153
|
+
fill={colors.bg0}
|
|
154
|
+
fillOpacity={0.78}
|
|
155
|
+
stroke={color}
|
|
156
|
+
strokeOpacity={0.35}
|
|
157
|
+
strokeWidth={0.8}
|
|
158
|
+
/>
|
|
159
|
+
<SvgText
|
|
160
|
+
x={rd(xa + w / 2)}
|
|
161
|
+
y={rd(y + 2.8)}
|
|
162
|
+
fill={color}
|
|
163
|
+
textAnchor="middle"
|
|
164
|
+
fontSize={8}
|
|
165
|
+
fontFamily={fonts.mono}
|
|
166
|
+
letterSpacing={0.4}
|
|
167
|
+
>
|
|
168
|
+
{children}
|
|
169
|
+
</SvgText>
|
|
170
|
+
</G>
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* ZonePyramid — time-in-zone intensity pyramid for product surfaces (catalog
|
|
176
|
+
* family PY-01…PY-03). `zone-pyramid` is THE weekly intensity-distribution
|
|
177
|
+
* card: centered bars Z5→Z1, width = time, % left / h:mm right, zone letter
|
|
178
|
+
* inside wide bars — a base-heavy shape reads as healthy. `target-pyramid`
|
|
179
|
+
* overlays a dashed target outline per zone plus an amber OVER pill where you
|
|
180
|
+
* exceed; `mirror-pyramid` mirrors this week (solid, right) against last week
|
|
181
|
+
* (32%, left) around a spine with the zone letters on it.
|
|
182
|
+
*/
|
|
183
|
+
export function ZonePyramid({
|
|
184
|
+
variant = 'zone-pyramid',
|
|
185
|
+
zones = DEFAULT_ZONES,
|
|
186
|
+
title,
|
|
187
|
+
caption,
|
|
188
|
+
note,
|
|
189
|
+
periodLabels = ['THIS WEEK', 'LAST WEEK'],
|
|
190
|
+
shine = false,
|
|
191
|
+
ariaLabel = 'Zone pyramid',
|
|
192
|
+
style,
|
|
193
|
+
}: ZonePyramidProps) {
|
|
194
|
+
const uid = useId().replace(/[^a-zA-Z0-9]/g, '');
|
|
195
|
+
const blurId = `lk-pyr-blur-${uid}`;
|
|
196
|
+
const maxMin = Math.max(...zones.map((z) => z.minutes), 0);
|
|
197
|
+
const totalMin = zones.reduce((a, z) => a + Math.max(0, z.minutes), 0);
|
|
198
|
+
const frac = (m: number) => (maxMin > 0 ? (Math.max(0, m) / maxMin) * HEAD : 0);
|
|
199
|
+
const colorOf = (i: number) => zones[i].color ?? ZONE_COLORS[i % ZONE_COLORS.length];
|
|
200
|
+
const pctOf = (z: PyramidZone) =>
|
|
201
|
+
z.pct ?? (totalMin > 0 ? `${Math.round((Math.max(0, z.minutes) / totalMin) * 100)}%` : '0%');
|
|
202
|
+
|
|
203
|
+
let body = null;
|
|
204
|
+
if (variant === 'mirror-pyramid') {
|
|
205
|
+
/* ---- PY-03 · this week vs last week around a spine ---- */
|
|
206
|
+
const spineBottom = MIRROR_TOP + zones.length * (RH + GAP) - GAP + 2;
|
|
207
|
+
/* derived delta pill: the zone with the biggest week-over-week change */
|
|
208
|
+
let deltaIdx = 0;
|
|
209
|
+
zones.forEach((z, i) => {
|
|
210
|
+
const d = z.minutes - (z.prev ?? 0);
|
|
211
|
+
const best = zones[deltaIdx].minutes - (zones[deltaIdx].prev ?? 0);
|
|
212
|
+
if (Math.abs(d) > Math.abs(best)) deltaIdx = i;
|
|
213
|
+
});
|
|
214
|
+
const delta = zones.length ? zones[deltaIdx].minutes - (zones[deltaIdx].prev ?? 0) : 0;
|
|
215
|
+
const resolvedNote =
|
|
216
|
+
note ??
|
|
217
|
+
(zones.length
|
|
218
|
+
? `${zones[deltaIdx].label} ${delta >= 0 ? '+' : ''}${Math.round(delta)} MIN`
|
|
219
|
+
: undefined);
|
|
220
|
+
body = (
|
|
221
|
+
<>
|
|
222
|
+
{zones.map((z, i) => {
|
|
223
|
+
const y = MIRROR_TOP + i * (RH + GAP);
|
|
224
|
+
const wNow = frac(z.minutes) * MIRROR_MAXW;
|
|
225
|
+
const wPrev = frac(z.prev ?? 0) * MIRROR_MAXW;
|
|
226
|
+
const col = colorOf(i);
|
|
227
|
+
return (
|
|
228
|
+
<G key={i}>
|
|
229
|
+
{/* shine — a Gaussian-blurred duplicate bar behind the solid one
|
|
230
|
+
(the web `.lk-pyr-shine` blur(4px) underlay) */}
|
|
231
|
+
{shine ? (
|
|
232
|
+
<Rect
|
|
233
|
+
x={CX + SPINE}
|
|
234
|
+
y={y}
|
|
235
|
+
width={rd(wNow)}
|
|
236
|
+
height={RH}
|
|
237
|
+
rx={RH / 2}
|
|
238
|
+
fill={col}
|
|
239
|
+
opacity={0.55}
|
|
240
|
+
filter={`url(#${blurId})`}
|
|
241
|
+
/>
|
|
242
|
+
) : null}
|
|
243
|
+
<Rect x={CX + SPINE} y={y} width={rd(wNow)} height={RH} rx={RH / 2} fill={col} opacity={0.88} />
|
|
244
|
+
<Rect
|
|
245
|
+
x={rd(CX - SPINE - wPrev)}
|
|
246
|
+
y={y}
|
|
247
|
+
width={rd(wPrev)}
|
|
248
|
+
height={RH}
|
|
249
|
+
rx={RH / 2}
|
|
250
|
+
fill={col}
|
|
251
|
+
opacity={0.32}
|
|
252
|
+
/>
|
|
253
|
+
<Label x={CX} y={y + RH / 2 + 3} fill={colors.textDim}>
|
|
254
|
+
{z.label}
|
|
255
|
+
</Label>
|
|
256
|
+
</G>
|
|
257
|
+
);
|
|
258
|
+
})}
|
|
259
|
+
<Label x={CX + SPINE + 50} y={24} fill={colors.text}>
|
|
260
|
+
{periodLabels[0]}
|
|
261
|
+
</Label>
|
|
262
|
+
<Label x={CX - SPINE - 50} y={24} fill={colors.textFaint}>
|
|
263
|
+
{periodLabels[1]}
|
|
264
|
+
</Label>
|
|
265
|
+
<Line x1={CX} x2={CX} y1={MIRROR_TOP - 2} y2={rd(spineBottom)} stroke={colors.border} strokeWidth={1} />
|
|
266
|
+
{resolvedNote ? (
|
|
267
|
+
<Tag x={CX + 80} y={140} color={zones.length ? colorOf(deltaIdx) : colors.mint}>
|
|
268
|
+
{resolvedNote}
|
|
269
|
+
</Tag>
|
|
270
|
+
) : null}
|
|
271
|
+
</>
|
|
272
|
+
);
|
|
273
|
+
} else {
|
|
274
|
+
/* ---- PY-01 / PY-02 · the centered pyramid (+ dashed targets) ---- */
|
|
275
|
+
const targets = variant === 'target-pyramid';
|
|
276
|
+
/* derived OVER pill: the zone with the biggest positive overage */
|
|
277
|
+
let overIdx = -1;
|
|
278
|
+
if (targets) {
|
|
279
|
+
zones.forEach((z, i) => {
|
|
280
|
+
if (z.target == null) return;
|
|
281
|
+
const over = z.minutes - z.target;
|
|
282
|
+
if (over > 0 && (overIdx < 0 || over > zones[overIdx].minutes - (zones[overIdx].target ?? 0))) overIdx = i;
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
const resolvedNote =
|
|
286
|
+
note ??
|
|
287
|
+
(targets && overIdx >= 0
|
|
288
|
+
? `${zones[overIdx].label} +${Math.round(zones[overIdx].minutes - (zones[overIdx].target ?? 0))}M OVER`
|
|
289
|
+
: undefined);
|
|
290
|
+
const resolvedCaption =
|
|
291
|
+
caption ??
|
|
292
|
+
(variant === 'zone-pyramid'
|
|
293
|
+
? `${Math.floor(Math.round(totalMin) / 60)}H ${String(Math.round(totalMin) % 60).padStart(2, '0')}M TOTAL`
|
|
294
|
+
: undefined);
|
|
295
|
+
body = (
|
|
296
|
+
<>
|
|
297
|
+
{zones.map((z, i) => {
|
|
298
|
+
const y = TOP + i * (RH + GAP);
|
|
299
|
+
const w = frac(z.minutes) * MAXW;
|
|
300
|
+
const x = CX - w / 2;
|
|
301
|
+
const col = colorOf(i);
|
|
302
|
+
return (
|
|
303
|
+
<G key={i}>
|
|
304
|
+
{/* shine — a Gaussian-blurred duplicate bar behind the solid one
|
|
305
|
+
(the web `.lk-pyr-shine` blur(4px) underlay) */}
|
|
306
|
+
{shine ? (
|
|
307
|
+
<Rect
|
|
308
|
+
x={rd(x)}
|
|
309
|
+
y={y}
|
|
310
|
+
width={rd(w)}
|
|
311
|
+
height={RH}
|
|
312
|
+
rx={RH / 2}
|
|
313
|
+
fill={col}
|
|
314
|
+
opacity={0.55}
|
|
315
|
+
filter={`url(#${blurId})`}
|
|
316
|
+
/>
|
|
317
|
+
) : null}
|
|
318
|
+
<Rect x={rd(x)} y={y} width={rd(w)} height={RH} rx={RH / 2} fill={col} opacity={0.88} />
|
|
319
|
+
{targets && z.target != null ? (
|
|
320
|
+
<Rect
|
|
321
|
+
x={rd(CX - (frac(z.target) * MAXW) / 2)}
|
|
322
|
+
y={y - 1.5}
|
|
323
|
+
width={rd(frac(z.target) * MAXW)}
|
|
324
|
+
height={RH + 3}
|
|
325
|
+
rx={(RH + 3) / 2}
|
|
326
|
+
fill="none"
|
|
327
|
+
stroke={colors.text}
|
|
328
|
+
strokeOpacity={0.55}
|
|
329
|
+
strokeWidth={1}
|
|
330
|
+
strokeDasharray="3 3"
|
|
331
|
+
/>
|
|
332
|
+
) : null}
|
|
333
|
+
{w > LABEL_MIN_W ? (
|
|
334
|
+
<SvgText
|
|
335
|
+
x={CX}
|
|
336
|
+
y={rd(y + RH / 2 + 3)}
|
|
337
|
+
fill={colors.bg0}
|
|
338
|
+
fillOpacity={0.85}
|
|
339
|
+
textAnchor="middle"
|
|
340
|
+
fontSize={8.5}
|
|
341
|
+
fontFamily={fonts.mono}
|
|
342
|
+
fontWeight="700"
|
|
343
|
+
>
|
|
344
|
+
{z.label}
|
|
345
|
+
</SvgText>
|
|
346
|
+
) : (
|
|
347
|
+
<Label x={CX} y={y - 3} fill={col}>
|
|
348
|
+
{z.label}
|
|
349
|
+
</Label>
|
|
350
|
+
)}
|
|
351
|
+
<Label x={CX - MAXW / 2 - 10} y={y + RH / 2 + 3} fill={colors.textFaint} anchor="end">
|
|
352
|
+
{pctOf(z)}
|
|
353
|
+
</Label>
|
|
354
|
+
<Label x={CX + MAXW / 2 + 10} y={y + RH / 2 + 3} fill={colors.textDim} anchor="start">
|
|
355
|
+
{z.time ?? hmm(z.minutes)}
|
|
356
|
+
</Label>
|
|
357
|
+
</G>
|
|
358
|
+
);
|
|
359
|
+
})}
|
|
360
|
+
{resolvedNote && overIdx >= 0 ? (
|
|
361
|
+
<Tag x={CX + MAXW / 2 + 24} y={TOP + overIdx * (RH + GAP)} color={colors.zoneMid} anchor="end">
|
|
362
|
+
{resolvedNote}
|
|
363
|
+
</Tag>
|
|
364
|
+
) : resolvedNote ? (
|
|
365
|
+
<Tag x={CX + MAXW / 2 + 24} y={TOP} color={colors.zoneMid} anchor="end">
|
|
366
|
+
{resolvedNote}
|
|
367
|
+
</Tag>
|
|
368
|
+
) : null}
|
|
369
|
+
{resolvedCaption ? (
|
|
370
|
+
<Label x={CX} y={144} fill={colors.textFaint}>
|
|
371
|
+
{resolvedCaption}
|
|
372
|
+
</Label>
|
|
373
|
+
) : null}
|
|
374
|
+
</>
|
|
375
|
+
);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
return (
|
|
379
|
+
<View accessibilityRole="image" accessibilityLabel={ariaLabel} style={[styles.root, style]}>
|
|
380
|
+
<Svg width="100%" height="100%" viewBox={`0 0 ${W} ${H}`}>
|
|
381
|
+
{shine ? (
|
|
382
|
+
/* real Gaussian blur for the shine (Fabric-native in react-native-svg
|
|
383
|
+
15) — the native twin of the web `.lk-pyr-shine` blur(4px). Region in
|
|
384
|
+
user space over the full canvas so flat bars never clip the blur. */
|
|
385
|
+
<Defs>
|
|
386
|
+
<Filter id={blurId} filterUnits="userSpaceOnUse" x={-10} y={-10} width={W + 20} height={H + 20}>
|
|
387
|
+
<FeGaussianBlur stdDeviation={2} />
|
|
388
|
+
</Filter>
|
|
389
|
+
</Defs>
|
|
390
|
+
) : null}
|
|
391
|
+
{title ? (
|
|
392
|
+
<Label x={PAD.l + 2} y={11} fill={colors.textFaint} anchor="start">
|
|
393
|
+
{title}
|
|
394
|
+
</Label>
|
|
395
|
+
) : null}
|
|
396
|
+
{body}
|
|
397
|
+
</Svg>
|
|
398
|
+
</View>
|
|
399
|
+
);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
const styles = StyleSheet.create({
|
|
403
|
+
/* fixed catalog aspect (320×150); the Svg scales the viewBox to fit */
|
|
404
|
+
root: { width: '100%', aspectRatio: W / H },
|
|
405
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* Chip (native) — tone coloring, with focus on the `pr` tone added for the
|
|
2
|
+
Finished-recap PR pills: it must use the dedicated off-spectrum PR red
|
|
3
|
+
(#FF4757 border / #FF6B78 text), NOT `low`'s zoneLow (#FF4D6D) — a PR is a
|
|
4
|
+
deliberate break from the spectrum, not a "low" status reading. */
|
|
5
|
+
import { describe, expect, test } from 'vitest';
|
|
6
|
+
import { Chip } from '../Chip';
|
|
7
|
+
import { ancestors, findByText, hasDeclaration, parse, render, type El } from './markup';
|
|
8
|
+
|
|
9
|
+
function carriesColor(el: El, rgb: string): boolean {
|
|
10
|
+
return (el.attrs.style ?? '').includes(rgb) || hasDeclaration(el, rgb);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
describe('Chip tone', () => {
|
|
14
|
+
test("tone='pr' uses the dedicated PR red text (#FF6B78), not zoneLow", () => {
|
|
15
|
+
const root = parse(render(Chip, { tone: 'pr', label: '1RM Bench 130kg' }));
|
|
16
|
+
const label = findByText(root, '1RM Bench 130kg')!;
|
|
17
|
+
expect(label).toBeDefined();
|
|
18
|
+
expect(carriesColor(label, '255,107,120')).toBe(true); // #FF6B78
|
|
19
|
+
expect(carriesColor(label, '255,77,109')).toBe(false); // NOT zoneLow ('low' tone)
|
|
20
|
+
// the pill chrome (ancestor) carries the PR-red border/bg family, not zoneLow
|
|
21
|
+
expect(ancestors(label).some((a) => carriesColor(a, '255,71,87'))).toBe(true);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
test("tone='low' still uses zoneLow (unaffected by the new pr tone)", () => {
|
|
25
|
+
const root = parse(render(Chip, { tone: 'low', label: 'Low' }));
|
|
26
|
+
expect(carriesColor(findByText(root, 'Low')!, '255,77,109')).toBe(true);
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
test("size='sm' tone='pr' still carries the PR red text", () => {
|
|
30
|
+
const root = parse(render(Chip, { tone: 'pr', size: 'sm', label: 'PR' }));
|
|
31
|
+
expect(carriesColor(findByText(root, 'PR')!, '255,107,120')).toBe(true);
|
|
32
|
+
});
|
|
33
|
+
});
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { describe, expect, test } from 'vitest';
|
|
2
|
+
import { CodeInput, spreadCodeAcrossBoxes } from '../TagInput';
|
|
3
|
+
import { findAll, parse, render } from './markup';
|
|
4
|
+
|
|
5
|
+
/* Multi-char paste / iOS SMS autofill lands the whole code in ONE box; the
|
|
6
|
+
* component spreads it across the remaining boxes and moves focus after the
|
|
7
|
+
* last written char. The spread math lives in the pure helper
|
|
8
|
+
* `spreadCodeAcrossBoxes` (extracted from `onBoxChange` — press/typing events
|
|
9
|
+
* can't be dispatched without a DOM environment). */
|
|
10
|
+
|
|
11
|
+
describe('spreadCodeAcrossBoxes (paste spread math)', () => {
|
|
12
|
+
test('a full-length paste into box 0 fills every box and focuses the last', () => {
|
|
13
|
+
expect(spreadCodeAcrossBoxes(['', '', '', '', '', ''], 0, '123456', 6)).toEqual({
|
|
14
|
+
code: '123456',
|
|
15
|
+
focusIndex: 5,
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
test('a mid-code paste fills from that box on and keeps earlier digits', () => {
|
|
20
|
+
expect(spreadCodeAcrossBoxes(['1', '2', '', '', '', ''], 2, '345', 6)).toEqual({
|
|
21
|
+
code: '12345',
|
|
22
|
+
focusIndex: 5,
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
test('overflow past the last box is dropped and focus clamps to the last box', () => {
|
|
27
|
+
expect(spreadCodeAcrossBoxes(['1', '2', '3', '4', '', ''], 4, '789XYZ', 6)).toEqual({
|
|
28
|
+
code: '123478',
|
|
29
|
+
focusIndex: 5,
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
test('pasting over existing digits overwrites them', () => {
|
|
34
|
+
expect(spreadCodeAcrossBoxes(['9', '9', '9', '9', '9', '9'], 1, '00', 6)).toEqual({
|
|
35
|
+
code: '900999',
|
|
36
|
+
focusIndex: 3,
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
test('does not mutate the incoming chars', () => {
|
|
41
|
+
const chars = ['1', '', ''];
|
|
42
|
+
spreadCodeAcrossBoxes(chars, 0, '456', 3);
|
|
43
|
+
expect(chars).toEqual(['1', '', '']);
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
describe('CodeInput rendering', () => {
|
|
48
|
+
test('a controlled value spreads across the boxes, clamped to length', () => {
|
|
49
|
+
const html = render(CodeInput, { length: 6, value: '1234567' });
|
|
50
|
+
const inputs = findAll(parse(html), (e) => e.tag === 'input');
|
|
51
|
+
expect(inputs.length).toBe(6);
|
|
52
|
+
expect(inputs.map((i) => i.attrs.value ?? '')).toEqual(['1', '2', '3', '4', '5', '6']);
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
test('box 0 accepts the whole code (paste target); the rest stay single-char', () => {
|
|
56
|
+
const html = render(CodeInput, { length: 6 });
|
|
57
|
+
const inputs = findAll(parse(html), (e) => e.tag === 'input');
|
|
58
|
+
// react-native-web forwards the prop verbatim (camelCase attr in SSR output)
|
|
59
|
+
expect(inputs[0].attrs.maxLength).toBe('6');
|
|
60
|
+
for (const box of inputs.slice(1)) expect(box.attrs.maxLength).toBe('1');
|
|
61
|
+
});
|
|
62
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* DeltaPill (native) — sign inference, including the TRUE MINUS sign U+2212
|
|
2
|
+
('−4', the design's negative glyph): it must read as negative (energy tone
|
|
3
|
+
→ AMBER cost treatment), not lose its sign and paint the mint gain. */
|
|
4
|
+
import { describe, expect, test } from 'vitest';
|
|
5
|
+
import { DeltaPill } from '../DeltaPill';
|
|
6
|
+
import { ancestors, findByText, hasDeclaration, parse, render, type El } from './markup';
|
|
7
|
+
|
|
8
|
+
/** The element carries the color, whether react-native-web serialized it as
|
|
9
|
+
* an atomic class or an inline style (dynamic style objects go inline). */
|
|
10
|
+
function carriesColor(el: El, rgb: string): boolean {
|
|
11
|
+
return (el.attrs.style ?? '').includes(rgb) || hasDeclaration(el, rgb);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
describe('DeltaPill sign inference', () => {
|
|
15
|
+
test("true minus U+2212 '−4' infers down — energy tone paints AMBER, not mint", () => {
|
|
16
|
+
const root = parse(render(DeltaPill, { value: '−4', tone: 'energy' }));
|
|
17
|
+
const val = findByText(root, '−4')!;
|
|
18
|
+
expect(val).toBeDefined();
|
|
19
|
+
expect(carriesColor(val, '255,176,32')).toBe(true); // zoneMid amber
|
|
20
|
+
expect(carriesColor(val, '52,245,197')).toBe(false); // NOT the mint gain
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
test("'+2' still infers up (mint gain)", () => {
|
|
24
|
+
const root = parse(render(DeltaPill, { value: '+2', tone: 'energy' }));
|
|
25
|
+
expect(carriesColor(findByText(root, '+2')!, '52,245,197')).toBe(true);
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
test("ASCII '-3' stays down (default tone → coral)", () => {
|
|
29
|
+
const root = parse(render(DeltaPill, { value: '-3' }));
|
|
30
|
+
expect(carriesColor(findByText(root, '-3')!, '255,77,109')).toBe(true); // zoneLow
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
test('a zero value renders the neutral tone at the border-2/glass-2 tier (not the washed-out base chrome)', () => {
|
|
34
|
+
const root = parse(render(DeltaPill, { value: '0' }));
|
|
35
|
+
const val = findByText(root, '0')!;
|
|
36
|
+
expect(val).toBeDefined();
|
|
37
|
+
// ancestors carry the pill's background — glass-2 rgba(255,255,255,0.075),
|
|
38
|
+
// rendered by RN's color processing as '0.07' (2-decimal rounding).
|
|
39
|
+
expect([val, ...ancestors(val)].some((el) => carriesColor(el, '255,255,255,0.07'))).toBe(true);
|
|
40
|
+
});
|
|
41
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { describe, expect, test } from 'vitest';
|
|
2
|
+
import { gradients } from '@lockin90/tokens';
|
|
3
|
+
import { GradientText, gradientTextStops } from '../GradientText';
|
|
4
|
+
import { render } from './markup';
|
|
5
|
+
|
|
6
|
+
/* Mirrored-spectrum stops: the animated fill scrolls a 2×-width gradient by
|
|
7
|
+
* one width per loop, so its stop sequence must MIRROR back through the same
|
|
8
|
+
* hues (…lime→…→magenta→…→lime…) — a plain tiled spectrum would jump
|
|
9
|
+
* last-stop→first-stop (flux: magenta→lime) once per loop.
|
|
10
|
+
*
|
|
11
|
+
* NOTE on markup coverage: GradientText renders a hidden measurer <Text> first
|
|
12
|
+
* and only draws the SVG after onLayout reports a size — onLayout never fires
|
|
13
|
+
* under renderToStaticMarkup (and this workspace has no jsdom), so the <Stop>
|
|
14
|
+
* elements are unreachable in static markup. The stop selection was therefore
|
|
15
|
+
* extracted as the pure `gradientTextStops(stops, still)` helper (behavior
|
|
16
|
+
* identical) and is asserted here at helper level. */
|
|
17
|
+
|
|
18
|
+
const FLUX: readonly string[] = gradients.flux.stops; // lime → mint → cyan → violet → magenta
|
|
19
|
+
|
|
20
|
+
describe('GradientText mirrored-spectrum stops', () => {
|
|
21
|
+
test('still=true keeps the plain spectrum', () => {
|
|
22
|
+
expect(gradientTextStops(FLUX, true)).toEqual([...FLUX]);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
test('still=false mirrors the spectrum back (…→last→…→first)', () => {
|
|
26
|
+
const stops = gradientTextStops(FLUX, false);
|
|
27
|
+
const n = FLUX.length;
|
|
28
|
+
expect(stops.length).toBe(2 * n - 1);
|
|
29
|
+
// front half is the spectrum, back half retraces it
|
|
30
|
+
expect(stops.slice(0, n)).toEqual([...FLUX]);
|
|
31
|
+
for (let i = 0; i < n; i++) {
|
|
32
|
+
expect(stops[n - 1 + i]).toBe(FLUX[n - 1 - i]);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
test('no hue jump anywhere in the loop (every step moves ≤1 stop; the seam repeats the first hue)', () => {
|
|
37
|
+
const stops = gradientTextStops(FLUX, false);
|
|
38
|
+
// tile it once, as the scrolling loop does, and check every adjacent pair
|
|
39
|
+
const tiled = [...stops, ...stops];
|
|
40
|
+
for (let i = 0; i < tiled.length - 1; i++) {
|
|
41
|
+
const a = FLUX.indexOf(tiled[i]);
|
|
42
|
+
const b = FLUX.indexOf(tiled[i + 1]);
|
|
43
|
+
expect(a, `unknown stop ${tiled[i]}`).toBeGreaterThanOrEqual(0);
|
|
44
|
+
expect(
|
|
45
|
+
Math.abs(a - b),
|
|
46
|
+
`hue jump ${tiled[i]} → ${tiled[i + 1]} at position ${i}`,
|
|
47
|
+
).toBeLessThanOrEqual(1);
|
|
48
|
+
}
|
|
49
|
+
// in particular the lime→magenta jump of a plain tile never occurs
|
|
50
|
+
const last = FLUX[FLUX.length - 1];
|
|
51
|
+
const first = FLUX[0];
|
|
52
|
+
for (let i = 0; i < tiled.length - 1; i++) {
|
|
53
|
+
expect([tiled[i], tiled[i + 1]]).not.toEqual([last, first]);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
test('two-stop gradients mirror to a 3-stop palindrome', () => {
|
|
58
|
+
expect(gradientTextStops(gradients.cta.stops, false)).toEqual([
|
|
59
|
+
gradients.cta.stops[0],
|
|
60
|
+
gradients.cta.stops[1],
|
|
61
|
+
gradients.cta.stops[0],
|
|
62
|
+
]);
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
test('SSR renders the measuring pass with the text content (pre-layout)', () => {
|
|
66
|
+
const html = render(GradientText, { children: 'Energy', still: true });
|
|
67
|
+
expect(html).toContain('Energy');
|
|
68
|
+
});
|
|
69
|
+
});
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* Icon (native) — training-set additions: kit-reused Lucide glyphs
|
|
2
|
+
(dumbbell, footprints, bike, waves, zap, ball) and the 8 custom Aurora
|
|
3
|
+
activity glyphs, stroke 1.85, 24-box viewBox. Mirrors the web twin's
|
|
4
|
+
coverage. */
|
|
5
|
+
import { describe, expect, test } from 'vitest';
|
|
6
|
+
import { Icon, type IconName } from '../Icon';
|
|
7
|
+
import { render } from './markup';
|
|
8
|
+
|
|
9
|
+
const KIT_REUSED: IconName[] = ['dumbbell', 'footprints', 'bike', 'waves', 'zap', 'ball'];
|
|
10
|
+
|
|
11
|
+
describe('Icon — kit-reused activity glyphs', () => {
|
|
12
|
+
test('renders an svg for every kit-reused name, each visually distinct', () => {
|
|
13
|
+
const markups = KIT_REUSED.map((name) => render(Icon, { name }));
|
|
14
|
+
markups.forEach((html) => expect(html).toContain('<svg'));
|
|
15
|
+
expect(new Set(markups).size).toBe(KIT_REUSED.length);
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
test('skill reuses the existing target glyph — no duplicate name was added', () => {
|
|
19
|
+
const html = render(Icon, { name: 'target' });
|
|
20
|
+
expect(html).toContain('<svg');
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
describe('Icon — custom Aurora activity glyphs', () => {
|
|
25
|
+
const CASES: Array<[IconName, string]> = [
|
|
26
|
+
['activity-mobility', 'M12 8v5M6 21l3-5 3-3 3 3 3 5M8.5 12.5h7'],
|
|
27
|
+
['activity-rowing', 'M4.5 5l11 11M14 5l-2.2.6.7 2.4M15.5 16.5 20 12'],
|
|
28
|
+
['activity-yoga', 'M12 8v4M12 12c-3.5 0-6.5 1.5-6.5 4M12 12c3.5 0 6.5 1.5 6.5 4M8 15.5h8'],
|
|
29
|
+
['activity-pilates', 'M8 9l4 2 4-2M12 11v4M9 20l3-5 3 5'],
|
|
30
|
+
['activity-stretching', 'M7 7v4l5 2M12 13l6-1M18 12l-1.5-2M18 12l.5-2.4'],
|
|
31
|
+
['activity-sauna', 'M4 20h16'],
|
|
32
|
+
['activity-cold-plunge', 'M12 3v18'],
|
|
33
|
+
];
|
|
34
|
+
|
|
35
|
+
test.each(CASES)('%s renders the exact board path on a 1.85 stroke, 24-box viewBox', (name, pathFragment) => {
|
|
36
|
+
const html = render(Icon, { name, color: '#EEF1F8' });
|
|
37
|
+
expect(html).toContain('viewBox="0 0 24 24"');
|
|
38
|
+
expect(html).toContain(pathFragment);
|
|
39
|
+
expect(html).toContain('stroke-width="1.85"');
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
test('activity-rowing is no longer a duplicate of the swimming (waves) glyph', () => {
|
|
43
|
+
const rowing = render(Icon, { name: 'activity-rowing', color: '#EEF1F8' });
|
|
44
|
+
const waves = render(Icon, { name: 'waves', color: '#EEF1F8' });
|
|
45
|
+
expect(rowing).not.toBe(waves);
|
|
46
|
+
expect(rowing).not.toContain('M4 17c1.6 0 1.6 1.2 3.2 1.2');
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
test('activity-stretching is a dedicated glyph, distinct from activity-mobility', () => {
|
|
50
|
+
const stretching = render(Icon, { name: 'activity-stretching', color: '#EEF1F8' });
|
|
51
|
+
const mobility = render(Icon, { name: 'activity-mobility', color: '#EEF1F8' });
|
|
52
|
+
expect(stretching).not.toBe(mobility);
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
test('activity-foam-roll renders the roller rect + 3 ribs', () => {
|
|
56
|
+
const html = render(Icon, { name: 'activity-foam-roll', color: '#EEF1F8' });
|
|
57
|
+
expect(html).toContain('<rect');
|
|
58
|
+
expect(html).toContain('M8 9v6M12 9v6M16 9v6');
|
|
59
|
+
expect(html).toContain('stroke-width="1.85"');
|
|
60
|
+
});
|
|
61
|
+
});
|