@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,175 @@
|
|
|
1
|
+
import { View, Text, Pressable, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
+
import Svg, { Path } from 'react-native-svg';
|
|
3
|
+
import { colors, fonts } from '@lockin90/tokens';
|
|
4
|
+
|
|
5
|
+
/* ── shared check glyph ─────────────────────────────────────────────── */
|
|
6
|
+
function CheckGlyph() {
|
|
7
|
+
return (
|
|
8
|
+
<Svg width={12} height={12} viewBox="0 0 16 16">
|
|
9
|
+
<Path
|
|
10
|
+
d="M3.5 8.5l3 3 6-7"
|
|
11
|
+
fill="none"
|
|
12
|
+
stroke="#fff"
|
|
13
|
+
strokeWidth={2.4}
|
|
14
|
+
strokeLinecap="round"
|
|
15
|
+
strokeLinejoin="round"
|
|
16
|
+
/>
|
|
17
|
+
</Svg>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* ── Checkbox ───────────────────────────────────────────────────────── */
|
|
22
|
+
export interface CheckboxProps {
|
|
23
|
+
/** controlled checked state */
|
|
24
|
+
checked?: boolean;
|
|
25
|
+
/** show a dash instead of a tick (mixed selection) */
|
|
26
|
+
indeterminate?: boolean;
|
|
27
|
+
/** fires with the next checked value */
|
|
28
|
+
onChange?: (checked: boolean) => void;
|
|
29
|
+
/** text beside the box */
|
|
30
|
+
label?: string;
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
style?: StyleProp<ViewStyle>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** Custom checkbox — accent-filled box with a tick (or dash when indeterminate). */
|
|
36
|
+
export function Checkbox({
|
|
37
|
+
checked = false,
|
|
38
|
+
indeterminate = false,
|
|
39
|
+
onChange,
|
|
40
|
+
label,
|
|
41
|
+
disabled = false,
|
|
42
|
+
style,
|
|
43
|
+
}: CheckboxProps) {
|
|
44
|
+
const filled = checked || indeterminate;
|
|
45
|
+
return (
|
|
46
|
+
<Pressable
|
|
47
|
+
accessibilityRole="checkbox"
|
|
48
|
+
accessibilityState={{ checked: indeterminate ? 'mixed' : checked, disabled }}
|
|
49
|
+
disabled={disabled}
|
|
50
|
+
onPress={() => onChange?.(!checked)}
|
|
51
|
+
style={[styles.row, disabled && styles.disabled, style]}
|
|
52
|
+
>
|
|
53
|
+
<View style={[styles.box, filled && styles.boxFilled]}>
|
|
54
|
+
{indeterminate ? <View style={styles.dash} /> : checked ? <CheckGlyph /> : null}
|
|
55
|
+
</View>
|
|
56
|
+
{label ? <Text style={styles.label}>{label}</Text> : null}
|
|
57
|
+
</Pressable>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* ── Radio ──────────────────────────────────────────────────────────── */
|
|
62
|
+
export interface RadioProps {
|
|
63
|
+
/** controlled selected state */
|
|
64
|
+
checked?: boolean;
|
|
65
|
+
/** fires with the next checked value */
|
|
66
|
+
onChange?: (checked: boolean) => void;
|
|
67
|
+
/** text beside the dot */
|
|
68
|
+
label?: string;
|
|
69
|
+
value?: string;
|
|
70
|
+
disabled?: boolean;
|
|
71
|
+
style?: StyleProp<ViewStyle>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** Custom radio — accent dot fills the ring when selected. */
|
|
75
|
+
export function Radio({
|
|
76
|
+
checked = false,
|
|
77
|
+
onChange,
|
|
78
|
+
label,
|
|
79
|
+
disabled = false,
|
|
80
|
+
style,
|
|
81
|
+
}: RadioProps) {
|
|
82
|
+
return (
|
|
83
|
+
<Pressable
|
|
84
|
+
accessibilityRole="radio"
|
|
85
|
+
accessibilityState={{ checked, disabled }}
|
|
86
|
+
disabled={disabled}
|
|
87
|
+
onPress={() => onChange?.(!checked)}
|
|
88
|
+
style={[styles.row, disabled && styles.disabled, style]}
|
|
89
|
+
>
|
|
90
|
+
<View style={[styles.ring, checked && styles.ringChecked]}>
|
|
91
|
+
{checked ? <View style={styles.dot} /> : null}
|
|
92
|
+
</View>
|
|
93
|
+
{label ? <Text style={styles.label}>{label}</Text> : null}
|
|
94
|
+
</Pressable>
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* ── RadioGroup ─────────────────────────────────────────────────────── */
|
|
99
|
+
export interface RadioOption {
|
|
100
|
+
value: string;
|
|
101
|
+
label: string;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface RadioGroupProps {
|
|
105
|
+
options?: RadioOption[];
|
|
106
|
+
/** currently selected value */
|
|
107
|
+
value?: string;
|
|
108
|
+
/** fires with the chosen option value */
|
|
109
|
+
onChange?: (value: string) => void;
|
|
110
|
+
disabled?: boolean;
|
|
111
|
+
style?: StyleProp<ViewStyle>;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** A vertical column of mutually-exclusive radios. */
|
|
115
|
+
export function RadioGroup({
|
|
116
|
+
options = [],
|
|
117
|
+
value,
|
|
118
|
+
onChange,
|
|
119
|
+
disabled = false,
|
|
120
|
+
style,
|
|
121
|
+
}: RadioGroupProps) {
|
|
122
|
+
return (
|
|
123
|
+
<View accessibilityRole="radiogroup" style={[styles.group, style]}>
|
|
124
|
+
{options.map((opt) => (
|
|
125
|
+
<Radio
|
|
126
|
+
key={opt.value}
|
|
127
|
+
value={opt.value}
|
|
128
|
+
label={opt.label}
|
|
129
|
+
checked={value === opt.value}
|
|
130
|
+
disabled={disabled}
|
|
131
|
+
onChange={(c) => {
|
|
132
|
+
if (c) onChange?.(opt.value);
|
|
133
|
+
}}
|
|
134
|
+
/>
|
|
135
|
+
))}
|
|
136
|
+
</View>
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
const styles = StyleSheet.create({
|
|
141
|
+
row: { flexDirection: 'row', alignItems: 'center', gap: 9 },
|
|
142
|
+
disabled: { opacity: 0.5 },
|
|
143
|
+
label: { fontFamily: fonts.ui, fontSize: 13.5, color: colors.text, lineHeight: 18 },
|
|
144
|
+
|
|
145
|
+
// checkbox
|
|
146
|
+
box: {
|
|
147
|
+
width: 18,
|
|
148
|
+
height: 18,
|
|
149
|
+
borderRadius: 5,
|
|
150
|
+
borderWidth: 1.5,
|
|
151
|
+
borderColor: colors.border2,
|
|
152
|
+
backgroundColor: colors.glass2,
|
|
153
|
+
alignItems: 'center',
|
|
154
|
+
justifyContent: 'center',
|
|
155
|
+
},
|
|
156
|
+
boxFilled: { backgroundColor: colors.accent, borderColor: 'transparent' },
|
|
157
|
+
dash: { width: 9, height: 2, borderRadius: 1, backgroundColor: '#fff' },
|
|
158
|
+
|
|
159
|
+
// radio
|
|
160
|
+
ring: {
|
|
161
|
+
width: 18,
|
|
162
|
+
height: 18,
|
|
163
|
+
borderRadius: 9,
|
|
164
|
+
borderWidth: 1.5,
|
|
165
|
+
borderColor: colors.border2,
|
|
166
|
+
backgroundColor: colors.glass2,
|
|
167
|
+
alignItems: 'center',
|
|
168
|
+
justifyContent: 'center',
|
|
169
|
+
},
|
|
170
|
+
ringChecked: { borderColor: colors.accent },
|
|
171
|
+
dot: { width: 9, height: 9, borderRadius: 4.5, backgroundColor: colors.accent },
|
|
172
|
+
|
|
173
|
+
// group
|
|
174
|
+
group: { flexDirection: 'column', gap: 10 },
|
|
175
|
+
});
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { View, Text, StyleSheet, type ViewProps } from 'react-native';
|
|
2
|
+
import { LinearGradient } from 'expo-linear-gradient';
|
|
3
|
+
import { colors, radii, fonts, gradients } from '@lockin90/tokens';
|
|
4
|
+
|
|
5
|
+
export type ChipTone = 'default' | 'neutral' | 'high' | 'mid' | 'low' | 'accent' | 'pr';
|
|
6
|
+
/** `md` (default) is the standard status pill; `sm` is the compact count/status
|
|
7
|
+
* badge — tighter box, 10px tabular mono, filled-gradient accent. With `dot`,
|
|
8
|
+
* `sm` collapses to a bare glowing circle. */
|
|
9
|
+
export type ChipSize = 'sm' | 'md';
|
|
10
|
+
|
|
11
|
+
export interface ChipProps extends ViewProps {
|
|
12
|
+
tone?: ChipTone;
|
|
13
|
+
/** leading glowing dot in the current color */
|
|
14
|
+
dot?: boolean;
|
|
15
|
+
/** `md` (default) status pill · `sm` compact count/status badge (see `ChipSize`). */
|
|
16
|
+
size?: ChipSize;
|
|
17
|
+
label: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const TONE: Record<ChipTone, { color: string; border: string; bg: string }> = {
|
|
21
|
+
default: { color: colors.textDim, border: colors.border, bg: colors.glass },
|
|
22
|
+
neutral: { color: colors.textFaint, border: colors.border2, bg: colors.glass2 },
|
|
23
|
+
high: { color: colors.zoneHigh, border: 'rgba(52,245,197,0.35)', bg: 'rgba(52,245,197,0.08)' },
|
|
24
|
+
mid: { color: colors.zoneMid, border: 'rgba(255,176,32,0.35)', bg: 'rgba(255,176,32,0.08)' },
|
|
25
|
+
low: { color: colors.zoneLow, border: 'rgba(255,77,109,0.35)', bg: 'rgba(255,77,109,0.08)' },
|
|
26
|
+
accent: { color: '#cbbcff', border: 'rgba(124,92,255,0.4)', bg: 'rgba(124,92,255,0.10)' },
|
|
27
|
+
// Dedicated PR red (design `.bd` — Finished's record pills) — NOT `low`'s
|
|
28
|
+
// zoneLow #FF4D6D (that's a spectrum/status color); a PR must scream a
|
|
29
|
+
// deliberately off-spectrum red, matching `PrBadge`'s `#FF4757`.
|
|
30
|
+
pr: { color: '#FF6B78', border: 'rgba(255,71,87,0.4)', bg: 'rgba(255,71,87,0.08)' },
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** `sm` tone overrides — the compact badge tweaks a few backgrounds vs the md
|
|
34
|
+
* pill (high/mid/low read slightly stronger; neutral reads dim on glass-2).
|
|
35
|
+
* The `accent` tone is handled specially (filled gradient). */
|
|
36
|
+
const TONE_SM: Partial<Record<ChipTone, Partial<{ color: string; border: string; bg: string }>>> = {
|
|
37
|
+
neutral: { color: colors.textDim, border: colors.border, bg: colors.glass2 },
|
|
38
|
+
high: { bg: 'rgba(52,245,197,0.10)' },
|
|
39
|
+
mid: { bg: 'rgba(255,176,32,0.10)' },
|
|
40
|
+
low: { bg: 'rgba(255,77,109,0.10)' },
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** Color of the bare glowing circle for `sm` + `dot`. */
|
|
44
|
+
const DOT_COLOR: Record<ChipTone, string> = {
|
|
45
|
+
default: colors.textDim,
|
|
46
|
+
neutral: colors.textFaint,
|
|
47
|
+
high: colors.zoneHigh,
|
|
48
|
+
mid: colors.zoneMid,
|
|
49
|
+
low: colors.zoneLow,
|
|
50
|
+
accent: colors.accent,
|
|
51
|
+
pr: '#FF4757',
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** Status pill — mono label, signal-colored tones. `size="sm"` is the compact badge. */
|
|
55
|
+
export function Chip({ tone = 'default', dot, size = 'md', label, style, ...rest }: ChipProps) {
|
|
56
|
+
const t = TONE[tone];
|
|
57
|
+
|
|
58
|
+
// sm + dot → bare glowing circle, no text (the retired `Badge`'s dot mode)
|
|
59
|
+
if (size === 'sm' && dot) {
|
|
60
|
+
const dc = DOT_COLOR[tone];
|
|
61
|
+
return (
|
|
62
|
+
<View
|
|
63
|
+
style={[styles.smDot, { backgroundColor: dc, shadowColor: dc }, tone === 'neutral' && styles.smDotNoGlow, style]}
|
|
64
|
+
{...rest}
|
|
65
|
+
/>
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// sm accent → FILLED gradient count pill with dark text
|
|
70
|
+
if (size === 'sm' && tone === 'accent') {
|
|
71
|
+
return (
|
|
72
|
+
<View style={[styles.chip, styles.chipSm, styles.chipSmAccent, style]} {...rest}>
|
|
73
|
+
<LinearGradient
|
|
74
|
+
colors={[...gradients.cta.stops] as [string, string]}
|
|
75
|
+
start={{ x: 0, y: 0 }}
|
|
76
|
+
end={{ x: 1, y: 1 }}
|
|
77
|
+
style={StyleSheet.absoluteFill}
|
|
78
|
+
/>
|
|
79
|
+
<Text style={[styles.label, styles.labelSm, styles.labelSmAccent]}>{label}</Text>
|
|
80
|
+
</View>
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
const sm = size === 'sm';
|
|
85
|
+
const o = sm ? TONE_SM[tone] : undefined;
|
|
86
|
+
const color = o?.color ?? t.color;
|
|
87
|
+
const border = o?.border ?? t.border;
|
|
88
|
+
const bg = o?.bg ?? t.bg;
|
|
89
|
+
|
|
90
|
+
return (
|
|
91
|
+
<View style={[styles.chip, sm && styles.chipSm, { borderColor: border, backgroundColor: bg }, style]} {...rest}>
|
|
92
|
+
{dot && <View style={[styles.dot, { backgroundColor: color, shadowColor: color }]} />}
|
|
93
|
+
<Text style={[styles.label, sm && styles.labelSm, { color }]}>{label}</Text>
|
|
94
|
+
</View>
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
const styles = StyleSheet.create({
|
|
99
|
+
chip: {
|
|
100
|
+
flexDirection: 'row',
|
|
101
|
+
alignItems: 'center',
|
|
102
|
+
gap: 7,
|
|
103
|
+
paddingVertical: 5,
|
|
104
|
+
paddingHorizontal: 11,
|
|
105
|
+
borderRadius: radii.pill,
|
|
106
|
+
borderWidth: 1,
|
|
107
|
+
alignSelf: 'flex-start',
|
|
108
|
+
},
|
|
109
|
+
chipSm: {
|
|
110
|
+
gap: 4,
|
|
111
|
+
justifyContent: 'center',
|
|
112
|
+
minWidth: 16,
|
|
113
|
+
minHeight: 16,
|
|
114
|
+
paddingVertical: 2,
|
|
115
|
+
paddingHorizontal: 6,
|
|
116
|
+
},
|
|
117
|
+
chipSmAccent: { borderColor: 'transparent', overflow: 'hidden' },
|
|
118
|
+
dot: { width: 6, height: 6, borderRadius: 3, shadowOpacity: 0.9, shadowRadius: 6 },
|
|
119
|
+
smDot: {
|
|
120
|
+
width: 8,
|
|
121
|
+
height: 8,
|
|
122
|
+
borderRadius: 4,
|
|
123
|
+
alignSelf: 'flex-start',
|
|
124
|
+
shadowOpacity: 0.9,
|
|
125
|
+
shadowRadius: 6,
|
|
126
|
+
shadowOffset: { width: 0, height: 0 },
|
|
127
|
+
},
|
|
128
|
+
smDotNoGlow: { shadowOpacity: 0 },
|
|
129
|
+
label: { fontFamily: fonts.mono, fontSize: 11, fontWeight: '500', letterSpacing: 0.4 },
|
|
130
|
+
labelSm: { fontSize: 10, fontWeight: '600', letterSpacing: 0, lineHeight: 10, fontVariant: ['tabular-nums'] },
|
|
131
|
+
labelSmAccent: { color: '#0A0A12' },
|
|
132
|
+
});
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { Pressable, Text, View, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import { colors, radii, fonts } from '@lockin90/tokens';
|
|
4
|
+
|
|
5
|
+
export type ChoiceChipSize = 'sm' | 'md';
|
|
6
|
+
|
|
7
|
+
export interface ChoiceChipProps {
|
|
8
|
+
/** Selected (`.on`) state — accent border + tint + brighter text. */
|
|
9
|
+
selected?: boolean;
|
|
10
|
+
/** Pill size. */
|
|
11
|
+
size?: ChoiceChipSize;
|
|
12
|
+
/** Leading glow dot (ignored when `icon` is set). */
|
|
13
|
+
leadingDot?: boolean;
|
|
14
|
+
/** Leading glyph (overrides `leadingDot`). */
|
|
15
|
+
icon?: ReactNode;
|
|
16
|
+
/** Stacked grid-cell layout — icon ABOVE a small centred label, rounded-rect,
|
|
17
|
+
* fills its flex cell (vs the default inline pill). For quick-action grids. */
|
|
18
|
+
stacked?: boolean;
|
|
19
|
+
/** Disable the pill. */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/** Fired on press. */
|
|
22
|
+
onPress?: () => void;
|
|
23
|
+
/** Label. */
|
|
24
|
+
children: ReactNode;
|
|
25
|
+
style?: StyleProp<ViewStyle>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* ChoiceChip — a pressable, selectable filter pill (multi-select). The native
|
|
30
|
+
* twin of the web `ChoiceChip`: a `Pressable` pill whose `selected` state tints
|
|
31
|
+
* to the accent token. Distinct from the display-only `Chip` and the
|
|
32
|
+
* single-select `SegmentedTabs`.
|
|
33
|
+
*/
|
|
34
|
+
export function ChoiceChip({
|
|
35
|
+
selected = false,
|
|
36
|
+
size = 'md',
|
|
37
|
+
leadingDot,
|
|
38
|
+
icon,
|
|
39
|
+
stacked = false,
|
|
40
|
+
disabled = false,
|
|
41
|
+
onPress,
|
|
42
|
+
children,
|
|
43
|
+
style,
|
|
44
|
+
}: ChoiceChipProps) {
|
|
45
|
+
return (
|
|
46
|
+
<Pressable
|
|
47
|
+
onPress={onPress}
|
|
48
|
+
disabled={disabled}
|
|
49
|
+
accessibilityRole="button"
|
|
50
|
+
accessibilityState={{ selected, disabled }}
|
|
51
|
+
style={({ pressed }) => [
|
|
52
|
+
styles.chip,
|
|
53
|
+
size === 'sm' && styles.chipSm,
|
|
54
|
+
stacked && styles.chipStacked,
|
|
55
|
+
selected ? styles.chipOn : styles.chipOff,
|
|
56
|
+
pressed && !disabled && styles.chipPressed,
|
|
57
|
+
disabled && styles.chipDisabled,
|
|
58
|
+
style,
|
|
59
|
+
]}
|
|
60
|
+
>
|
|
61
|
+
{icon != null ? (
|
|
62
|
+
<View style={styles.icon}>{icon}</View>
|
|
63
|
+
) : leadingDot ? (
|
|
64
|
+
<View style={[styles.dot, selected ? styles.dotOn : styles.dotOff]} />
|
|
65
|
+
) : null}
|
|
66
|
+
<Text
|
|
67
|
+
style={[
|
|
68
|
+
styles.label,
|
|
69
|
+
size === 'sm' && styles.labelSm,
|
|
70
|
+
stacked && styles.labelStacked,
|
|
71
|
+
selected ? styles.labelOn : styles.labelOff,
|
|
72
|
+
]}
|
|
73
|
+
numberOfLines={1}
|
|
74
|
+
>
|
|
75
|
+
{children}
|
|
76
|
+
</Text>
|
|
77
|
+
</Pressable>
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const styles = StyleSheet.create({
|
|
82
|
+
chip: {
|
|
83
|
+
flexDirection: 'row',
|
|
84
|
+
alignItems: 'center',
|
|
85
|
+
gap: 7,
|
|
86
|
+
paddingVertical: 7,
|
|
87
|
+
paddingHorizontal: 13,
|
|
88
|
+
borderRadius: radii.pill,
|
|
89
|
+
borderWidth: 1,
|
|
90
|
+
alignSelf: 'flex-start',
|
|
91
|
+
},
|
|
92
|
+
chipSm: { paddingVertical: 5, paddingHorizontal: 10 },
|
|
93
|
+
// stacked grid cell — icon over label, rounded rect, fills the flex column.
|
|
94
|
+
// alignItems:'center' overrides the base row alignment so the icon+label centre
|
|
95
|
+
// horizontally; extra vertical padding keeps the top icon off the rounded edge.
|
|
96
|
+
chipStacked: {
|
|
97
|
+
flexDirection: 'column',
|
|
98
|
+
alignItems: 'center',
|
|
99
|
+
gap: 6,
|
|
100
|
+
paddingVertical: 13,
|
|
101
|
+
paddingHorizontal: 4,
|
|
102
|
+
borderRadius: radii.md,
|
|
103
|
+
alignSelf: 'stretch',
|
|
104
|
+
justifyContent: 'center',
|
|
105
|
+
},
|
|
106
|
+
chipOff: { borderColor: colors.border, backgroundColor: colors.glass },
|
|
107
|
+
chipOn: { borderColor: 'rgba(124,92,255,0.5)', backgroundColor: 'rgba(124,92,255,0.12)' },
|
|
108
|
+
chipPressed: { opacity: 0.85 },
|
|
109
|
+
chipDisabled: { opacity: 0.5 },
|
|
110
|
+
icon: { alignItems: 'center', justifyContent: 'center' },
|
|
111
|
+
dot: { width: 6, height: 6, borderRadius: 3, shadowOpacity: 0.9, shadowRadius: 6 },
|
|
112
|
+
dotOff: { backgroundColor: colors.textDim, shadowColor: colors.textDim },
|
|
113
|
+
dotOn: { backgroundColor: colors.accent, shadowColor: colors.accent },
|
|
114
|
+
label: { fontFamily: fonts.ui, fontSize: 13, lineHeight: 16 },
|
|
115
|
+
labelSm: { fontSize: 12 },
|
|
116
|
+
labelStacked: { fontFamily: fonts.mono, fontSize: 10, lineHeight: 13, letterSpacing: 0.3, textAlign: 'center' },
|
|
117
|
+
labelOff: { color: colors.textDim },
|
|
118
|
+
labelOn: { color: colors.text },
|
|
119
|
+
});
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { View, Text, ScrollView, StyleSheet } from 'react-native';
|
|
2
|
+
import { colors, radii, fonts } from '@lockin90/tokens';
|
|
3
|
+
import { CopyButton } from './Popover';
|
|
4
|
+
|
|
5
|
+
export interface CodeBlockProps {
|
|
6
|
+
/** The raw code / JSON / identifier shown in the block. */
|
|
7
|
+
code: string;
|
|
8
|
+
/** Optional header title, e.g. 'Response' / 'Incident ID' / a filename. */
|
|
9
|
+
label?: string;
|
|
10
|
+
/** Render a CopyButton (value=code) in the header. Default true. */
|
|
11
|
+
copyable?: boolean;
|
|
12
|
+
/** Wrap long lines instead of horizontal scrolling. Default false. */
|
|
13
|
+
wrap?: boolean;
|
|
14
|
+
/** Cap the scroll area height (px); content scrolls vertically past it. */
|
|
15
|
+
maxHeight?: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** Monospace code / JSON block on a dark inset surface. Optional header
|
|
19
|
+
* (label + traffic-light dots + copy) over a horizontally scrolling mono body
|
|
20
|
+
* (or wrapped), optionally height-capped with vertical scroll. Mirrors the web
|
|
21
|
+
* `CodeBlock` prop API. Used for raw-record/JSON viewers, incident IDs, keys. */
|
|
22
|
+
export function CodeBlock({ code, label, copyable = true, wrap = false, maxHeight }: CodeBlockProps) {
|
|
23
|
+
const hasHeader = label != null || copyable;
|
|
24
|
+
|
|
25
|
+
const body = wrap ? (
|
|
26
|
+
<View style={styles.body}>
|
|
27
|
+
<Text style={styles.code}>{code}</Text>
|
|
28
|
+
</View>
|
|
29
|
+
) : (
|
|
30
|
+
<ScrollView
|
|
31
|
+
horizontal
|
|
32
|
+
showsHorizontalScrollIndicator={false}
|
|
33
|
+
contentContainerStyle={styles.body}
|
|
34
|
+
>
|
|
35
|
+
<Text style={styles.code}>{code}</Text>
|
|
36
|
+
</ScrollView>
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
return (
|
|
40
|
+
<View style={styles.root}>
|
|
41
|
+
{hasHeader && (
|
|
42
|
+
<View style={styles.head}>
|
|
43
|
+
<View style={styles.dots} accessibilityElementsHidden importantForAccessibility="no-hide-descendants">
|
|
44
|
+
<View style={[styles.dot, { backgroundColor: colors.zoneLow }]} />
|
|
45
|
+
<View style={[styles.dot, { backgroundColor: colors.zoneMid }]} />
|
|
46
|
+
<View style={[styles.dot, { backgroundColor: colors.mint }]} />
|
|
47
|
+
</View>
|
|
48
|
+
{label != null && (
|
|
49
|
+
<Text style={styles.label} numberOfLines={1}>
|
|
50
|
+
{label}
|
|
51
|
+
</Text>
|
|
52
|
+
)}
|
|
53
|
+
{copyable && (
|
|
54
|
+
<View style={styles.copy}>
|
|
55
|
+
<CopyButton value={code} />
|
|
56
|
+
</View>
|
|
57
|
+
)}
|
|
58
|
+
</View>
|
|
59
|
+
)}
|
|
60
|
+
{maxHeight != null ? (
|
|
61
|
+
<ScrollView style={{ maxHeight }} showsVerticalScrollIndicator={false}>
|
|
62
|
+
{body}
|
|
63
|
+
</ScrollView>
|
|
64
|
+
) : (
|
|
65
|
+
body
|
|
66
|
+
)}
|
|
67
|
+
</View>
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const styles = StyleSheet.create({
|
|
72
|
+
root: {
|
|
73
|
+
borderRadius: radii.sm,
|
|
74
|
+
borderWidth: 1,
|
|
75
|
+
borderColor: colors.border,
|
|
76
|
+
backgroundColor: colors.bg0,
|
|
77
|
+
overflow: 'hidden',
|
|
78
|
+
},
|
|
79
|
+
head: {
|
|
80
|
+
flexDirection: 'row',
|
|
81
|
+
alignItems: 'center',
|
|
82
|
+
gap: 9,
|
|
83
|
+
paddingHorizontal: 12,
|
|
84
|
+
paddingVertical: 8,
|
|
85
|
+
borderBottomWidth: 1,
|
|
86
|
+
borderBottomColor: colors.border,
|
|
87
|
+
backgroundColor: colors.glass,
|
|
88
|
+
},
|
|
89
|
+
dots: { flexDirection: 'row', gap: 5 },
|
|
90
|
+
dot: { width: 9, height: 9, borderRadius: 999 },
|
|
91
|
+
label: {
|
|
92
|
+
flex: 1,
|
|
93
|
+
fontFamily: fonts.mono,
|
|
94
|
+
fontSize: 10.5,
|
|
95
|
+
letterSpacing: 0.4,
|
|
96
|
+
color: colors.textFaint,
|
|
97
|
+
},
|
|
98
|
+
copy: { marginLeft: 'auto' },
|
|
99
|
+
body: { paddingHorizontal: 16, paddingVertical: 14 },
|
|
100
|
+
code: {
|
|
101
|
+
fontFamily: fonts.mono,
|
|
102
|
+
fontSize: 11.5,
|
|
103
|
+
lineHeight: 20,
|
|
104
|
+
color: colors.textDim,
|
|
105
|
+
},
|
|
106
|
+
});
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import {
|
|
3
|
+
View,
|
|
4
|
+
Text,
|
|
5
|
+
TextInput,
|
|
6
|
+
StyleSheet,
|
|
7
|
+
type TextInputProps,
|
|
8
|
+
} from 'react-native';
|
|
9
|
+
import { colors, radii, fonts } from '@lockin90/tokens';
|
|
10
|
+
|
|
11
|
+
export interface CodeFieldProps
|
|
12
|
+
extends Omit<TextInputProps, 'value' | 'onChange' | 'onChangeText'> {
|
|
13
|
+
/** Current code / embed string. */
|
|
14
|
+
value: string;
|
|
15
|
+
/** Fired with the next string on every edit. */
|
|
16
|
+
onChange: (value: string) => void;
|
|
17
|
+
/** Optional language label rendered as a chip in the header (e.g. 'html', 'json'). */
|
|
18
|
+
language?: string;
|
|
19
|
+
/** Placeholder shown when empty. */
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
/** Visible rows of the input. Default 8. */
|
|
22
|
+
rows?: number;
|
|
23
|
+
/** Invalid state — red border. */
|
|
24
|
+
invalid?: boolean;
|
|
25
|
+
/** Wrap long lines. On native the multiline input always wraps; kept for prop parity. */
|
|
26
|
+
wrap?: boolean;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** Editable multiline monospace code / embed input on the same dark inset
|
|
30
|
+
* surface as `CodeBlock`. Mirrors the web `CodeField` prop API. Tab-to-insert
|
|
31
|
+
* is web-only (no soft-keyboard Tab on native); otherwise identical. */
|
|
32
|
+
export function CodeField({
|
|
33
|
+
value,
|
|
34
|
+
onChange,
|
|
35
|
+
language,
|
|
36
|
+
placeholder,
|
|
37
|
+
rows = 8,
|
|
38
|
+
invalid = false,
|
|
39
|
+
// `wrap` is destructured (not forwarded to TextInput) for prop parity with
|
|
40
|
+
// web; native multiline always wraps, so it has no runtime effect here.
|
|
41
|
+
wrap: _wrap = false,
|
|
42
|
+
style,
|
|
43
|
+
onFocus,
|
|
44
|
+
onBlur,
|
|
45
|
+
...rest
|
|
46
|
+
}: CodeFieldProps) {
|
|
47
|
+
const [focused, setFocused] = useState(false);
|
|
48
|
+
const hasHeader = language != null;
|
|
49
|
+
|
|
50
|
+
const borderColor = invalid
|
|
51
|
+
? colors.zoneLow
|
|
52
|
+
: focused
|
|
53
|
+
? colors.accent
|
|
54
|
+
: colors.border;
|
|
55
|
+
|
|
56
|
+
return (
|
|
57
|
+
<View style={[styles.root, { borderColor }]}>
|
|
58
|
+
{hasHeader && (
|
|
59
|
+
<View style={styles.head}>
|
|
60
|
+
<View
|
|
61
|
+
style={styles.dots}
|
|
62
|
+
accessibilityElementsHidden
|
|
63
|
+
importantForAccessibility="no-hide-descendants"
|
|
64
|
+
>
|
|
65
|
+
<View style={[styles.dot, { backgroundColor: colors.zoneLow }]} />
|
|
66
|
+
<View style={[styles.dot, { backgroundColor: colors.zoneMid }]} />
|
|
67
|
+
<View style={[styles.dot, { backgroundColor: colors.mint }]} />
|
|
68
|
+
</View>
|
|
69
|
+
{language != null && (
|
|
70
|
+
<Text style={styles.lang} numberOfLines={1}>
|
|
71
|
+
{language}
|
|
72
|
+
</Text>
|
|
73
|
+
)}
|
|
74
|
+
</View>
|
|
75
|
+
)}
|
|
76
|
+
<TextInput
|
|
77
|
+
multiline
|
|
78
|
+
textAlignVertical="top"
|
|
79
|
+
numberOfLines={rows}
|
|
80
|
+
value={value}
|
|
81
|
+
onChangeText={onChange}
|
|
82
|
+
placeholder={placeholder}
|
|
83
|
+
placeholderTextColor={colors.textFaint}
|
|
84
|
+
autoCapitalize="none"
|
|
85
|
+
autoCorrect={false}
|
|
86
|
+
spellCheck={false}
|
|
87
|
+
style={[styles.ta, { minHeight: rows * 20 + 28 }, style]}
|
|
88
|
+
onFocus={(e) => {
|
|
89
|
+
setFocused(true);
|
|
90
|
+
onFocus?.(e);
|
|
91
|
+
}}
|
|
92
|
+
onBlur={(e) => {
|
|
93
|
+
setFocused(false);
|
|
94
|
+
onBlur?.(e);
|
|
95
|
+
}}
|
|
96
|
+
{...rest}
|
|
97
|
+
/>
|
|
98
|
+
</View>
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
const styles = StyleSheet.create({
|
|
103
|
+
root: {
|
|
104
|
+
borderRadius: radii.sm,
|
|
105
|
+
borderWidth: 1,
|
|
106
|
+
borderColor: colors.border,
|
|
107
|
+
backgroundColor: colors.bg0,
|
|
108
|
+
overflow: 'hidden',
|
|
109
|
+
},
|
|
110
|
+
head: {
|
|
111
|
+
flexDirection: 'row',
|
|
112
|
+
alignItems: 'center',
|
|
113
|
+
gap: 9,
|
|
114
|
+
paddingHorizontal: 12,
|
|
115
|
+
paddingVertical: 8,
|
|
116
|
+
borderBottomWidth: 1,
|
|
117
|
+
borderBottomColor: colors.border,
|
|
118
|
+
backgroundColor: colors.glass,
|
|
119
|
+
},
|
|
120
|
+
dots: { flexDirection: 'row', gap: 5 },
|
|
121
|
+
dot: { width: 9, height: 9, borderRadius: 999 },
|
|
122
|
+
lang: {
|
|
123
|
+
marginLeft: 'auto',
|
|
124
|
+
fontFamily: fonts.mono,
|
|
125
|
+
fontSize: 10.5,
|
|
126
|
+
letterSpacing: 0.4,
|
|
127
|
+
color: colors.textFaint,
|
|
128
|
+
},
|
|
129
|
+
ta: {
|
|
130
|
+
paddingHorizontal: 16,
|
|
131
|
+
paddingVertical: 14,
|
|
132
|
+
fontFamily: fonts.mono,
|
|
133
|
+
fontSize: 11.5,
|
|
134
|
+
lineHeight: 20,
|
|
135
|
+
color: colors.textDim,
|
|
136
|
+
},
|
|
137
|
+
});
|