@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.
Files changed (1055) hide show
  1. package/lib/commonjs/components/Accordion.js +144 -0
  2. package/lib/commonjs/components/Accordion.js.map +1 -0
  3. package/lib/commonjs/components/AchievementBadge.js +225 -0
  4. package/lib/commonjs/components/AchievementBadge.js.map +1 -0
  5. package/lib/commonjs/components/Alert.js +232 -0
  6. package/lib/commonjs/components/Alert.js.map +1 -0
  7. package/lib/commonjs/components/AreaChart.js +506 -0
  8. package/lib/commonjs/components/AreaChart.js.map +1 -0
  9. package/lib/commonjs/components/AuroraBackground.js +267 -0
  10. package/lib/commonjs/components/AuroraBackground.js.map +1 -0
  11. package/lib/commonjs/components/Avatar.js +187 -0
  12. package/lib/commonjs/components/Avatar.js.map +1 -0
  13. package/lib/commonjs/components/AvatarStack.js +95 -0
  14. package/lib/commonjs/components/AvatarStack.js.map +1 -0
  15. package/lib/commonjs/components/BackLink.js +77 -0
  16. package/lib/commonjs/components/BackLink.js.map +1 -0
  17. package/lib/commonjs/components/Badge.js +136 -0
  18. package/lib/commonjs/components/Badge.js.map +1 -0
  19. package/lib/commonjs/components/BarChart.js +641 -0
  20. package/lib/commonjs/components/BarChart.js.map +1 -0
  21. package/lib/commonjs/components/BarFill.js +55 -0
  22. package/lib/commonjs/components/BarFill.js.map +1 -0
  23. package/lib/commonjs/components/BeeswarmChart.js +615 -0
  24. package/lib/commonjs/components/BeeswarmChart.js.map +1 -0
  25. package/lib/commonjs/components/BiomarkerRange.js +610 -0
  26. package/lib/commonjs/components/BiomarkerRange.js.map +1 -0
  27. package/lib/commonjs/components/BodyBattery.js +563 -0
  28. package/lib/commonjs/components/BodyBattery.js.map +1 -0
  29. package/lib/commonjs/components/BrandMark.js +184 -0
  30. package/lib/commonjs/components/BrandMark.js.map +1 -0
  31. package/lib/commonjs/components/BulletChart.js +406 -0
  32. package/lib/commonjs/components/BulletChart.js.map +1 -0
  33. package/lib/commonjs/components/Button.js +154 -0
  34. package/lib/commonjs/components/Button.js.map +1 -0
  35. package/lib/commonjs/components/CaffeineClock.js +491 -0
  36. package/lib/commonjs/components/CaffeineClock.js.map +1 -0
  37. package/lib/commonjs/components/Card.js +142 -0
  38. package/lib/commonjs/components/Card.js.map +1 -0
  39. package/lib/commonjs/components/CharCounter.js +106 -0
  40. package/lib/commonjs/components/CharCounter.js.map +1 -0
  41. package/lib/commonjs/components/ChartState.js +554 -0
  42. package/lib/commonjs/components/ChartState.js.map +1 -0
  43. package/lib/commonjs/components/Checkbox.js +180 -0
  44. package/lib/commonjs/components/Checkbox.js.map +1 -0
  45. package/lib/commonjs/components/Chip.js +218 -0
  46. package/lib/commonjs/components/Chip.js.map +1 -0
  47. package/lib/commonjs/components/ChoiceChip.js +133 -0
  48. package/lib/commonjs/components/ChoiceChip.js.map +1 -0
  49. package/lib/commonjs/components/CodeBlock.js +126 -0
  50. package/lib/commonjs/components/CodeBlock.js.map +1 -0
  51. package/lib/commonjs/components/CodeField.js +129 -0
  52. package/lib/commonjs/components/CodeField.js.map +1 -0
  53. package/lib/commonjs/components/ColorPicker.js +181 -0
  54. package/lib/commonjs/components/ColorPicker.js.map +1 -0
  55. package/lib/commonjs/components/ComboChart.js +419 -0
  56. package/lib/commonjs/components/ComboChart.js.map +1 -0
  57. package/lib/commonjs/components/Combobox.js +108 -0
  58. package/lib/commonjs/components/Combobox.js.map +1 -0
  59. package/lib/commonjs/components/CompareChart.js +627 -0
  60. package/lib/commonjs/components/CompareChart.js.map +1 -0
  61. package/lib/commonjs/components/CompositeChart.js +654 -0
  62. package/lib/commonjs/components/CompositeChart.js.map +1 -0
  63. package/lib/commonjs/components/Countdown.js +152 -0
  64. package/lib/commonjs/components/Countdown.js.map +1 -0
  65. package/lib/commonjs/components/CreditCardVisual.js +167 -0
  66. package/lib/commonjs/components/CreditCardVisual.js.map +1 -0
  67. package/lib/commonjs/components/DateField.js +365 -0
  68. package/lib/commonjs/components/DateField.js.map +1 -0
  69. package/lib/commonjs/components/DayTimelineBlocks.js +253 -0
  70. package/lib/commonjs/components/DayTimelineBlocks.js.map +1 -0
  71. package/lib/commonjs/components/DayWheel.js +467 -0
  72. package/lib/commonjs/components/DayWheel.js.map +1 -0
  73. package/lib/commonjs/components/DeltaPill.js +154 -0
  74. package/lib/commonjs/components/DeltaPill.js.map +1 -0
  75. package/lib/commonjs/components/DistributionChart.js +776 -0
  76. package/lib/commonjs/components/DistributionChart.js.map +1 -0
  77. package/lib/commonjs/components/Divider.js +74 -0
  78. package/lib/commonjs/components/Divider.js.map +1 -0
  79. package/lib/commonjs/components/DonutChart.js +337 -0
  80. package/lib/commonjs/components/DonutChart.js.map +1 -0
  81. package/lib/commonjs/components/DotsLoader.js +94 -0
  82. package/lib/commonjs/components/DotsLoader.js.map +1 -0
  83. package/lib/commonjs/components/EffectAttributionLine.js +105 -0
  84. package/lib/commonjs/components/EffectAttributionLine.js.map +1 -0
  85. package/lib/commonjs/components/EmptyState.js +120 -0
  86. package/lib/commonjs/components/EmptyState.js.map +1 -0
  87. package/lib/commonjs/components/EngagementBar.js +122 -0
  88. package/lib/commonjs/components/EngagementBar.js.map +1 -0
  89. package/lib/commonjs/components/EnvironmentChart.js +573 -0
  90. package/lib/commonjs/components/EnvironmentChart.js.map +1 -0
  91. package/lib/commonjs/components/Eyebrow.js +32 -0
  92. package/lib/commonjs/components/Eyebrow.js.map +1 -0
  93. package/lib/commonjs/components/FocalPointPicker.js +196 -0
  94. package/lib/commonjs/components/FocalPointPicker.js.map +1 -0
  95. package/lib/commonjs/components/FollowButton.js +95 -0
  96. package/lib/commonjs/components/FollowButton.js.map +1 -0
  97. package/lib/commonjs/components/ForecastCallout.js +116 -0
  98. package/lib/commonjs/components/ForecastCallout.js.map +1 -0
  99. package/lib/commonjs/components/FormField.js +204 -0
  100. package/lib/commonjs/components/FormField.js.map +1 -0
  101. package/lib/commonjs/components/FunnelChart.js +260 -0
  102. package/lib/commonjs/components/FunnelChart.js.map +1 -0
  103. package/lib/commonjs/components/Gauge.js +252 -0
  104. package/lib/commonjs/components/Gauge.js.map +1 -0
  105. package/lib/commonjs/components/GradientText.js +136 -0
  106. package/lib/commonjs/components/GradientText.js.map +1 -0
  107. package/lib/commonjs/components/Heatmap.js +419 -0
  108. package/lib/commonjs/components/Heatmap.js.map +1 -0
  109. package/lib/commonjs/components/Highlight.js +55 -0
  110. package/lib/commonjs/components/Highlight.js.map +1 -0
  111. package/lib/commonjs/components/Hypnogram.js +842 -0
  112. package/lib/commonjs/components/Hypnogram.js.map +1 -0
  113. package/lib/commonjs/components/Icon.js +486 -0
  114. package/lib/commonjs/components/Icon.js.map +1 -0
  115. package/lib/commonjs/components/Input.js +142 -0
  116. package/lib/commonjs/components/Input.js.map +1 -0
  117. package/lib/commonjs/components/InsightCard.js +119 -0
  118. package/lib/commonjs/components/InsightCard.js.map +1 -0
  119. package/lib/commonjs/components/KeyValue.js +93 -0
  120. package/lib/commonjs/components/KeyValue.js.map +1 -0
  121. package/lib/commonjs/components/LeaderboardRow.js +140 -0
  122. package/lib/commonjs/components/LeaderboardRow.js.map +1 -0
  123. package/lib/commonjs/components/LineChart.js +1544 -0
  124. package/lib/commonjs/components/LineChart.js.map +1 -0
  125. package/lib/commonjs/components/ListRow.js +122 -0
  126. package/lib/commonjs/components/ListRow.js.map +1 -0
  127. package/lib/commonjs/components/Menu.js +183 -0
  128. package/lib/commonjs/components/Menu.js.map +1 -0
  129. package/lib/commonjs/components/MessageBubble.js +117 -0
  130. package/lib/commonjs/components/MessageBubble.js.map +1 -0
  131. package/lib/commonjs/components/MessageComposer.js +212 -0
  132. package/lib/commonjs/components/MessageComposer.js.map +1 -0
  133. package/lib/commonjs/components/MetaphorWidget.js +1053 -0
  134. package/lib/commonjs/components/MetaphorWidget.js.map +1 -0
  135. package/lib/commonjs/components/Meter.js +173 -0
  136. package/lib/commonjs/components/Meter.js.map +1 -0
  137. package/lib/commonjs/components/MetricTile.js +268 -0
  138. package/lib/commonjs/components/MetricTile.js.map +1 -0
  139. package/lib/commonjs/components/MiniRing.js +30 -0
  140. package/lib/commonjs/components/MiniRing.js.map +1 -0
  141. package/lib/commonjs/components/Modal.js +153 -0
  142. package/lib/commonjs/components/Modal.js.map +1 -0
  143. package/lib/commonjs/components/MuscleDiagram.js +326 -0
  144. package/lib/commonjs/components/MuscleDiagram.js.map +1 -0
  145. package/lib/commonjs/components/NoteField.js +73 -0
  146. package/lib/commonjs/components/NoteField.js.map +1 -0
  147. package/lib/commonjs/components/NotificationRow.js +234 -0
  148. package/lib/commonjs/components/NotificationRow.js.map +1 -0
  149. package/lib/commonjs/components/Pagination.js +212 -0
  150. package/lib/commonjs/components/Pagination.js.map +1 -0
  151. package/lib/commonjs/components/PasswordInput.js +120 -0
  152. package/lib/commonjs/components/PasswordInput.js.map +1 -0
  153. package/lib/commonjs/components/PasswordStrengthMeter.js +108 -0
  154. package/lib/commonjs/components/PasswordStrengthMeter.js.map +1 -0
  155. package/lib/commonjs/components/PendingPatternCard.js +182 -0
  156. package/lib/commonjs/components/PendingPatternCard.js.map +1 -0
  157. package/lib/commonjs/components/PhaseWheel.js +704 -0
  158. package/lib/commonjs/components/PhaseWheel.js.map +1 -0
  159. package/lib/commonjs/components/PkChart.js +566 -0
  160. package/lib/commonjs/components/PkChart.js.map +1 -0
  161. package/lib/commonjs/components/Popover.js +234 -0
  162. package/lib/commonjs/components/Popover.js.map +1 -0
  163. package/lib/commonjs/components/PrBadge.js +71 -0
  164. package/lib/commonjs/components/PrBadge.js.map +1 -0
  165. package/lib/commonjs/components/PrCard.js +150 -0
  166. package/lib/commonjs/components/PrCard.js.map +1 -0
  167. package/lib/commonjs/components/PricingTierCard.js +237 -0
  168. package/lib/commonjs/components/PricingTierCard.js.map +1 -0
  169. package/lib/commonjs/components/ProGate.js +235 -0
  170. package/lib/commonjs/components/ProGate.js.map +1 -0
  171. package/lib/commonjs/components/ProgressBar.js +515 -0
  172. package/lib/commonjs/components/ProgressBar.js.map +1 -0
  173. package/lib/commonjs/components/Pulse.js +36 -0
  174. package/lib/commonjs/components/Pulse.js.map +1 -0
  175. package/lib/commonjs/components/QRCode.js +519 -0
  176. package/lib/commonjs/components/QRCode.js.map +1 -0
  177. package/lib/commonjs/components/RadarChart.js +492 -0
  178. package/lib/commonjs/components/RadarChart.js.map +1 -0
  179. package/lib/commonjs/components/RangeBar.js +191 -0
  180. package/lib/commonjs/components/RangeBar.js.map +1 -0
  181. package/lib/commonjs/components/ReauthDialog.js +261 -0
  182. package/lib/commonjs/components/ReauthDialog.js.map +1 -0
  183. package/lib/commonjs/components/RestTimer.js +246 -0
  184. package/lib/commonjs/components/RestTimer.js.map +1 -0
  185. package/lib/commonjs/components/RichText.js +81 -0
  186. package/lib/commonjs/components/RichText.js.map +1 -0
  187. package/lib/commonjs/components/RichTextEditor.js +274 -0
  188. package/lib/commonjs/components/RichTextEditor.js.map +1 -0
  189. package/lib/commonjs/components/Ring.js +239 -0
  190. package/lib/commonjs/components/Ring.js.map +1 -0
  191. package/lib/commonjs/components/RoseChart.js +376 -0
  192. package/lib/commonjs/components/RoseChart.js.map +1 -0
  193. package/lib/commonjs/components/SankeyChart.js +652 -0
  194. package/lib/commonjs/components/SankeyChart.js.map +1 -0
  195. package/lib/commonjs/components/ScatterChart.js +432 -0
  196. package/lib/commonjs/components/ScatterChart.js.map +1 -0
  197. package/lib/commonjs/components/ScrollProgress.js +66 -0
  198. package/lib/commonjs/components/ScrollProgress.js.map +1 -0
  199. package/lib/commonjs/components/SectionDivider.js +59 -0
  200. package/lib/commonjs/components/SectionDivider.js.map +1 -0
  201. package/lib/commonjs/components/SectionHeader.js +53 -0
  202. package/lib/commonjs/components/SectionHeader.js.map +1 -0
  203. package/lib/commonjs/components/SegmentedTabs.js +336 -0
  204. package/lib/commonjs/components/SegmentedTabs.js.map +1 -0
  205. package/lib/commonjs/components/Select.js +380 -0
  206. package/lib/commonjs/components/Select.js.map +1 -0
  207. package/lib/commonjs/components/SessionBanner.js +220 -0
  208. package/lib/commonjs/components/SessionBanner.js.map +1 -0
  209. package/lib/commonjs/components/SessionChart.js +1046 -0
  210. package/lib/commonjs/components/SessionChart.js.map +1 -0
  211. package/lib/commonjs/components/SetTable.js +351 -0
  212. package/lib/commonjs/components/SetTable.js.map +1 -0
  213. package/lib/commonjs/components/ShareCard.js +227 -0
  214. package/lib/commonjs/components/ShareCard.js.map +1 -0
  215. package/lib/commonjs/components/Sheet.js +220 -0
  216. package/lib/commonjs/components/Sheet.js.map +1 -0
  217. package/lib/commonjs/components/Skeleton.js +28 -0
  218. package/lib/commonjs/components/Skeleton.js.map +1 -0
  219. package/lib/commonjs/components/Slider.js +173 -0
  220. package/lib/commonjs/components/Slider.js.map +1 -0
  221. package/lib/commonjs/components/Sortable.js +230 -0
  222. package/lib/commonjs/components/Sortable.js.map +1 -0
  223. package/lib/commonjs/components/SourceChip.js +111 -0
  224. package/lib/commonjs/components/SourceChip.js.map +1 -0
  225. package/lib/commonjs/components/Sparkline.js +110 -0
  226. package/lib/commonjs/components/Sparkline.js.map +1 -0
  227. package/lib/commonjs/components/Spinner.js +132 -0
  228. package/lib/commonjs/components/Spinner.js.map +1 -0
  229. package/lib/commonjs/components/SplitButton.js +158 -0
  230. package/lib/commonjs/components/SplitButton.js.map +1 -0
  231. package/lib/commonjs/components/SsoButton.js +109 -0
  232. package/lib/commonjs/components/SsoButton.js.map +1 -0
  233. package/lib/commonjs/components/StackedBar.js +133 -0
  234. package/lib/commonjs/components/StackedBar.js.map +1 -0
  235. package/lib/commonjs/components/Stat.js +167 -0
  236. package/lib/commonjs/components/Stat.js.map +1 -0
  237. package/lib/commonjs/components/StatTile.js +644 -0
  238. package/lib/commonjs/components/StatTile.js.map +1 -0
  239. package/lib/commonjs/components/StateLabel.js +73 -0
  240. package/lib/commonjs/components/StateLabel.js.map +1 -0
  241. package/lib/commonjs/components/StatusDot.js +65 -0
  242. package/lib/commonjs/components/StatusDot.js.map +1 -0
  243. package/lib/commonjs/components/Stepper.js +355 -0
  244. package/lib/commonjs/components/Stepper.js.map +1 -0
  245. package/lib/commonjs/components/SupplementChart.js +1002 -0
  246. package/lib/commonjs/components/SupplementChart.js.map +1 -0
  247. package/lib/commonjs/components/TabBar.js +303 -0
  248. package/lib/commonjs/components/TabBar.js.map +1 -0
  249. package/lib/commonjs/components/Table.js +458 -0
  250. package/lib/commonjs/components/Table.js.map +1 -0
  251. package/lib/commonjs/components/Tabs.js +88 -0
  252. package/lib/commonjs/components/Tabs.js.map +1 -0
  253. package/lib/commonjs/components/TagCloud.js +118 -0
  254. package/lib/commonjs/components/TagCloud.js.map +1 -0
  255. package/lib/commonjs/components/TagInput.js +298 -0
  256. package/lib/commonjs/components/TagInput.js.map +1 -0
  257. package/lib/commonjs/components/TemplateCard.js +206 -0
  258. package/lib/commonjs/components/TemplateCard.js.map +1 -0
  259. package/lib/commonjs/components/Timeline.js +219 -0
  260. package/lib/commonjs/components/Timeline.js.map +1 -0
  261. package/lib/commonjs/components/TimelineChart.js +1228 -0
  262. package/lib/commonjs/components/TimelineChart.js.map +1 -0
  263. package/lib/commonjs/components/Toast.js +156 -0
  264. package/lib/commonjs/components/Toast.js.map +1 -0
  265. package/lib/commonjs/components/Toggle.js +166 -0
  266. package/lib/commonjs/components/Toggle.js.map +1 -0
  267. package/lib/commonjs/components/Toolbar.js +310 -0
  268. package/lib/commonjs/components/Toolbar.js.map +1 -0
  269. package/lib/commonjs/components/Tooltip.js +245 -0
  270. package/lib/commonjs/components/Tooltip.js.map +1 -0
  271. package/lib/commonjs/components/TypingIndicator.js +112 -0
  272. package/lib/commonjs/components/TypingIndicator.js.map +1 -0
  273. package/lib/commonjs/components/UnitChart.js +482 -0
  274. package/lib/commonjs/components/UnitChart.js.map +1 -0
  275. package/lib/commonjs/components/VersionBadge.js +133 -0
  276. package/lib/commonjs/components/VersionBadge.js.map +1 -0
  277. package/lib/commonjs/components/VideoThumbnail.js +152 -0
  278. package/lib/commonjs/components/VideoThumbnail.js.map +1 -0
  279. package/lib/commonjs/components/VitalsStrip.js +766 -0
  280. package/lib/commonjs/components/VitalsStrip.js.map +1 -0
  281. package/lib/commonjs/components/WatchComplication.js +563 -0
  282. package/lib/commonjs/components/WatchComplication.js.map +1 -0
  283. package/lib/commonjs/components/ZoneBar.js +149 -0
  284. package/lib/commonjs/components/ZoneBar.js.map +1 -0
  285. package/lib/commonjs/components/ZonePyramid.js +398 -0
  286. package/lib/commonjs/components/ZonePyramid.js.map +1 -0
  287. package/lib/commonjs/index.js +1140 -0
  288. package/lib/commonjs/index.js.map +1 -0
  289. package/lib/commonjs/internal/optionalBlur.js +34 -0
  290. package/lib/commonjs/internal/optionalBlur.js.map +1 -0
  291. package/lib/commonjs/internal/optionalHaptics.js +40 -0
  292. package/lib/commonjs/internal/optionalHaptics.js.map +1 -0
  293. package/lib/commonjs/package.json +1 -0
  294. package/lib/commonjs/theme.js +73 -0
  295. package/lib/commonjs/theme.js.map +1 -0
  296. package/lib/module/components/Accordion.js +139 -0
  297. package/lib/module/components/Accordion.js.map +1 -0
  298. package/lib/module/components/AchievementBadge.js +223 -0
  299. package/lib/module/components/AchievementBadge.js.map +1 -0
  300. package/lib/module/components/Alert.js +227 -0
  301. package/lib/module/components/Alert.js.map +1 -0
  302. package/lib/module/components/AreaChart.js +501 -0
  303. package/lib/module/components/AreaChart.js.map +1 -0
  304. package/lib/module/components/AuroraBackground.js +262 -0
  305. package/lib/module/components/AuroraBackground.js.map +1 -0
  306. package/lib/module/components/Avatar.js +183 -0
  307. package/lib/module/components/Avatar.js.map +1 -0
  308. package/lib/module/components/AvatarStack.js +91 -0
  309. package/lib/module/components/AvatarStack.js.map +1 -0
  310. package/lib/module/components/BackLink.js +73 -0
  311. package/lib/module/components/BackLink.js.map +1 -0
  312. package/lib/module/components/Badge.js +132 -0
  313. package/lib/module/components/Badge.js.map +1 -0
  314. package/lib/module/components/BarChart.js +636 -0
  315. package/lib/module/components/BarChart.js.map +1 -0
  316. package/lib/module/components/BarFill.js +51 -0
  317. package/lib/module/components/BarFill.js.map +1 -0
  318. package/lib/module/components/BeeswarmChart.js +610 -0
  319. package/lib/module/components/BeeswarmChart.js.map +1 -0
  320. package/lib/module/components/BiomarkerRange.js +605 -0
  321. package/lib/module/components/BiomarkerRange.js.map +1 -0
  322. package/lib/module/components/BodyBattery.js +558 -0
  323. package/lib/module/components/BodyBattery.js.map +1 -0
  324. package/lib/module/components/BrandMark.js +179 -0
  325. package/lib/module/components/BrandMark.js.map +1 -0
  326. package/lib/module/components/BulletChart.js +401 -0
  327. package/lib/module/components/BulletChart.js.map +1 -0
  328. package/lib/module/components/Button.js +150 -0
  329. package/lib/module/components/Button.js.map +1 -0
  330. package/lib/module/components/CaffeineClock.js +486 -0
  331. package/lib/module/components/CaffeineClock.js.map +1 -0
  332. package/lib/module/components/Card.js +138 -0
  333. package/lib/module/components/Card.js.map +1 -0
  334. package/lib/module/components/CharCounter.js +102 -0
  335. package/lib/module/components/CharCounter.js.map +1 -0
  336. package/lib/module/components/ChartState.js +549 -0
  337. package/lib/module/components/ChartState.js.map +1 -0
  338. package/lib/module/components/Checkbox.js +175 -0
  339. package/lib/module/components/Checkbox.js.map +1 -0
  340. package/lib/module/components/Chip.js +214 -0
  341. package/lib/module/components/Chip.js.map +1 -0
  342. package/lib/module/components/ChoiceChip.js +129 -0
  343. package/lib/module/components/ChoiceChip.js.map +1 -0
  344. package/lib/module/components/CodeBlock.js +122 -0
  345. package/lib/module/components/CodeBlock.js.map +1 -0
  346. package/lib/module/components/CodeField.js +125 -0
  347. package/lib/module/components/CodeField.js.map +1 -0
  348. package/lib/module/components/ColorPicker.js +177 -0
  349. package/lib/module/components/ColorPicker.js.map +1 -0
  350. package/lib/module/components/ComboChart.js +414 -0
  351. package/lib/module/components/ComboChart.js.map +1 -0
  352. package/lib/module/components/Combobox.js +104 -0
  353. package/lib/module/components/Combobox.js.map +1 -0
  354. package/lib/module/components/CompareChart.js +622 -0
  355. package/lib/module/components/CompareChart.js.map +1 -0
  356. package/lib/module/components/CompositeChart.js +649 -0
  357. package/lib/module/components/CompositeChart.js.map +1 -0
  358. package/lib/module/components/Countdown.js +148 -0
  359. package/lib/module/components/Countdown.js.map +1 -0
  360. package/lib/module/components/CreditCardVisual.js +163 -0
  361. package/lib/module/components/CreditCardVisual.js.map +1 -0
  362. package/lib/module/components/DateField.js +361 -0
  363. package/lib/module/components/DateField.js.map +1 -0
  364. package/lib/module/components/DayTimelineBlocks.js +249 -0
  365. package/lib/module/components/DayTimelineBlocks.js.map +1 -0
  366. package/lib/module/components/DayWheel.js +462 -0
  367. package/lib/module/components/DayWheel.js.map +1 -0
  368. package/lib/module/components/DeltaPill.js +149 -0
  369. package/lib/module/components/DeltaPill.js.map +1 -0
  370. package/lib/module/components/DistributionChart.js +771 -0
  371. package/lib/module/components/DistributionChart.js.map +1 -0
  372. package/lib/module/components/Divider.js +70 -0
  373. package/lib/module/components/Divider.js.map +1 -0
  374. package/lib/module/components/DonutChart.js +332 -0
  375. package/lib/module/components/DonutChart.js.map +1 -0
  376. package/lib/module/components/DotsLoader.js +90 -0
  377. package/lib/module/components/DotsLoader.js.map +1 -0
  378. package/lib/module/components/EffectAttributionLine.js +101 -0
  379. package/lib/module/components/EffectAttributionLine.js.map +1 -0
  380. package/lib/module/components/EmptyState.js +115 -0
  381. package/lib/module/components/EmptyState.js.map +1 -0
  382. package/lib/module/components/EngagementBar.js +118 -0
  383. package/lib/module/components/EngagementBar.js.map +1 -0
  384. package/lib/module/components/EnvironmentChart.js +568 -0
  385. package/lib/module/components/EnvironmentChart.js.map +1 -0
  386. package/lib/module/components/Eyebrow.js +28 -0
  387. package/lib/module/components/Eyebrow.js.map +1 -0
  388. package/lib/module/components/FocalPointPicker.js +192 -0
  389. package/lib/module/components/FocalPointPicker.js.map +1 -0
  390. package/lib/module/components/FollowButton.js +91 -0
  391. package/lib/module/components/FollowButton.js.map +1 -0
  392. package/lib/module/components/ForecastCallout.js +112 -0
  393. package/lib/module/components/ForecastCallout.js.map +1 -0
  394. package/lib/module/components/FormField.js +198 -0
  395. package/lib/module/components/FormField.js.map +1 -0
  396. package/lib/module/components/FunnelChart.js +255 -0
  397. package/lib/module/components/FunnelChart.js.map +1 -0
  398. package/lib/module/components/Gauge.js +249 -0
  399. package/lib/module/components/Gauge.js.map +1 -0
  400. package/lib/module/components/GradientText.js +130 -0
  401. package/lib/module/components/GradientText.js.map +1 -0
  402. package/lib/module/components/Heatmap.js +414 -0
  403. package/lib/module/components/Heatmap.js.map +1 -0
  404. package/lib/module/components/Highlight.js +51 -0
  405. package/lib/module/components/Highlight.js.map +1 -0
  406. package/lib/module/components/Hypnogram.js +837 -0
  407. package/lib/module/components/Hypnogram.js.map +1 -0
  408. package/lib/module/components/Icon.js +480 -0
  409. package/lib/module/components/Icon.js.map +1 -0
  410. package/lib/module/components/Input.js +138 -0
  411. package/lib/module/components/Input.js.map +1 -0
  412. package/lib/module/components/InsightCard.js +115 -0
  413. package/lib/module/components/InsightCard.js.map +1 -0
  414. package/lib/module/components/KeyValue.js +89 -0
  415. package/lib/module/components/KeyValue.js.map +1 -0
  416. package/lib/module/components/LeaderboardRow.js +136 -0
  417. package/lib/module/components/LeaderboardRow.js.map +1 -0
  418. package/lib/module/components/LineChart.js +1539 -0
  419. package/lib/module/components/LineChart.js.map +1 -0
  420. package/lib/module/components/ListRow.js +118 -0
  421. package/lib/module/components/ListRow.js.map +1 -0
  422. package/lib/module/components/Menu.js +179 -0
  423. package/lib/module/components/Menu.js.map +1 -0
  424. package/lib/module/components/MessageBubble.js +113 -0
  425. package/lib/module/components/MessageBubble.js.map +1 -0
  426. package/lib/module/components/MessageComposer.js +208 -0
  427. package/lib/module/components/MessageComposer.js.map +1 -0
  428. package/lib/module/components/MetaphorWidget.js +1048 -0
  429. package/lib/module/components/MetaphorWidget.js.map +1 -0
  430. package/lib/module/components/Meter.js +169 -0
  431. package/lib/module/components/Meter.js.map +1 -0
  432. package/lib/module/components/MetricTile.js +263 -0
  433. package/lib/module/components/MetricTile.js.map +1 -0
  434. package/lib/module/components/MiniRing.js +26 -0
  435. package/lib/module/components/MiniRing.js.map +1 -0
  436. package/lib/module/components/Modal.js +148 -0
  437. package/lib/module/components/Modal.js.map +1 -0
  438. package/lib/module/components/MuscleDiagram.js +321 -0
  439. package/lib/module/components/MuscleDiagram.js.map +1 -0
  440. package/lib/module/components/NoteField.js +69 -0
  441. package/lib/module/components/NoteField.js.map +1 -0
  442. package/lib/module/components/NotificationRow.js +230 -0
  443. package/lib/module/components/NotificationRow.js.map +1 -0
  444. package/lib/module/components/Pagination.js +207 -0
  445. package/lib/module/components/Pagination.js.map +1 -0
  446. package/lib/module/components/PasswordInput.js +116 -0
  447. package/lib/module/components/PasswordInput.js.map +1 -0
  448. package/lib/module/components/PasswordStrengthMeter.js +104 -0
  449. package/lib/module/components/PasswordStrengthMeter.js.map +1 -0
  450. package/lib/module/components/PendingPatternCard.js +178 -0
  451. package/lib/module/components/PendingPatternCard.js.map +1 -0
  452. package/lib/module/components/PhaseWheel.js +699 -0
  453. package/lib/module/components/PhaseWheel.js.map +1 -0
  454. package/lib/module/components/PkChart.js +558 -0
  455. package/lib/module/components/PkChart.js.map +1 -0
  456. package/lib/module/components/Popover.js +230 -0
  457. package/lib/module/components/Popover.js.map +1 -0
  458. package/lib/module/components/PrBadge.js +66 -0
  459. package/lib/module/components/PrBadge.js.map +1 -0
  460. package/lib/module/components/PrCard.js +146 -0
  461. package/lib/module/components/PrCard.js.map +1 -0
  462. package/lib/module/components/PricingTierCard.js +233 -0
  463. package/lib/module/components/PricingTierCard.js.map +1 -0
  464. package/lib/module/components/ProGate.js +229 -0
  465. package/lib/module/components/ProGate.js.map +1 -0
  466. package/lib/module/components/ProgressBar.js +511 -0
  467. package/lib/module/components/ProgressBar.js.map +1 -0
  468. package/lib/module/components/Pulse.js +32 -0
  469. package/lib/module/components/Pulse.js.map +1 -0
  470. package/lib/module/components/QRCode.js +514 -0
  471. package/lib/module/components/QRCode.js.map +1 -0
  472. package/lib/module/components/RadarChart.js +487 -0
  473. package/lib/module/components/RadarChart.js.map +1 -0
  474. package/lib/module/components/RangeBar.js +187 -0
  475. package/lib/module/components/RangeBar.js.map +1 -0
  476. package/lib/module/components/ReauthDialog.js +256 -0
  477. package/lib/module/components/ReauthDialog.js.map +1 -0
  478. package/lib/module/components/RestTimer.js +239 -0
  479. package/lib/module/components/RestTimer.js.map +1 -0
  480. package/lib/module/components/RichText.js +77 -0
  481. package/lib/module/components/RichText.js.map +1 -0
  482. package/lib/module/components/RichTextEditor.js +269 -0
  483. package/lib/module/components/RichTextEditor.js.map +1 -0
  484. package/lib/module/components/Ring.js +236 -0
  485. package/lib/module/components/Ring.js.map +1 -0
  486. package/lib/module/components/RoseChart.js +371 -0
  487. package/lib/module/components/RoseChart.js.map +1 -0
  488. package/lib/module/components/SankeyChart.js +647 -0
  489. package/lib/module/components/SankeyChart.js.map +1 -0
  490. package/lib/module/components/ScatterChart.js +427 -0
  491. package/lib/module/components/ScatterChart.js.map +1 -0
  492. package/lib/module/components/ScrollProgress.js +62 -0
  493. package/lib/module/components/ScrollProgress.js.map +1 -0
  494. package/lib/module/components/SectionDivider.js +55 -0
  495. package/lib/module/components/SectionDivider.js.map +1 -0
  496. package/lib/module/components/SectionHeader.js +49 -0
  497. package/lib/module/components/SectionHeader.js.map +1 -0
  498. package/lib/module/components/SegmentedTabs.js +332 -0
  499. package/lib/module/components/SegmentedTabs.js.map +1 -0
  500. package/lib/module/components/Select.js +375 -0
  501. package/lib/module/components/Select.js.map +1 -0
  502. package/lib/module/components/SessionBanner.js +216 -0
  503. package/lib/module/components/SessionBanner.js.map +1 -0
  504. package/lib/module/components/SessionChart.js +1040 -0
  505. package/lib/module/components/SessionChart.js.map +1 -0
  506. package/lib/module/components/SetTable.js +345 -0
  507. package/lib/module/components/SetTable.js.map +1 -0
  508. package/lib/module/components/ShareCard.js +223 -0
  509. package/lib/module/components/ShareCard.js.map +1 -0
  510. package/lib/module/components/Sheet.js +216 -0
  511. package/lib/module/components/Sheet.js.map +1 -0
  512. package/lib/module/components/Skeleton.js +24 -0
  513. package/lib/module/components/Skeleton.js.map +1 -0
  514. package/lib/module/components/Slider.js +169 -0
  515. package/lib/module/components/Slider.js.map +1 -0
  516. package/lib/module/components/Sortable.js +226 -0
  517. package/lib/module/components/Sortable.js.map +1 -0
  518. package/lib/module/components/SourceChip.js +107 -0
  519. package/lib/module/components/SourceChip.js.map +1 -0
  520. package/lib/module/components/Sparkline.js +105 -0
  521. package/lib/module/components/Sparkline.js.map +1 -0
  522. package/lib/module/components/Spinner.js +127 -0
  523. package/lib/module/components/Spinner.js.map +1 -0
  524. package/lib/module/components/SplitButton.js +154 -0
  525. package/lib/module/components/SplitButton.js.map +1 -0
  526. package/lib/module/components/SsoButton.js +104 -0
  527. package/lib/module/components/SsoButton.js.map +1 -0
  528. package/lib/module/components/StackedBar.js +129 -0
  529. package/lib/module/components/StackedBar.js.map +1 -0
  530. package/lib/module/components/Stat.js +163 -0
  531. package/lib/module/components/Stat.js.map +1 -0
  532. package/lib/module/components/StatTile.js +639 -0
  533. package/lib/module/components/StatTile.js.map +1 -0
  534. package/lib/module/components/StateLabel.js +69 -0
  535. package/lib/module/components/StateLabel.js.map +1 -0
  536. package/lib/module/components/StatusDot.js +61 -0
  537. package/lib/module/components/StatusDot.js.map +1 -0
  538. package/lib/module/components/Stepper.js +350 -0
  539. package/lib/module/components/Stepper.js.map +1 -0
  540. package/lib/module/components/SupplementChart.js +997 -0
  541. package/lib/module/components/SupplementChart.js.map +1 -0
  542. package/lib/module/components/TabBar.js +298 -0
  543. package/lib/module/components/TabBar.js.map +1 -0
  544. package/lib/module/components/Table.js +452 -0
  545. package/lib/module/components/Table.js.map +1 -0
  546. package/lib/module/components/Tabs.js +84 -0
  547. package/lib/module/components/Tabs.js.map +1 -0
  548. package/lib/module/components/TagCloud.js +113 -0
  549. package/lib/module/components/TagCloud.js.map +1 -0
  550. package/lib/module/components/TagInput.js +291 -0
  551. package/lib/module/components/TagInput.js.map +1 -0
  552. package/lib/module/components/TemplateCard.js +202 -0
  553. package/lib/module/components/TemplateCard.js.map +1 -0
  554. package/lib/module/components/Timeline.js +214 -0
  555. package/lib/module/components/Timeline.js.map +1 -0
  556. package/lib/module/components/TimelineChart.js +1223 -0
  557. package/lib/module/components/TimelineChart.js.map +1 -0
  558. package/lib/module/components/Toast.js +151 -0
  559. package/lib/module/components/Toast.js.map +1 -0
  560. package/lib/module/components/Toggle.js +162 -0
  561. package/lib/module/components/Toggle.js.map +1 -0
  562. package/lib/module/components/Toolbar.js +306 -0
  563. package/lib/module/components/Toolbar.js.map +1 -0
  564. package/lib/module/components/Tooltip.js +241 -0
  565. package/lib/module/components/Tooltip.js.map +1 -0
  566. package/lib/module/components/TypingIndicator.js +108 -0
  567. package/lib/module/components/TypingIndicator.js.map +1 -0
  568. package/lib/module/components/UnitChart.js +477 -0
  569. package/lib/module/components/UnitChart.js.map +1 -0
  570. package/lib/module/components/VersionBadge.js +129 -0
  571. package/lib/module/components/VersionBadge.js.map +1 -0
  572. package/lib/module/components/VideoThumbnail.js +147 -0
  573. package/lib/module/components/VideoThumbnail.js.map +1 -0
  574. package/lib/module/components/VitalsStrip.js +761 -0
  575. package/lib/module/components/VitalsStrip.js.map +1 -0
  576. package/lib/module/components/WatchComplication.js +558 -0
  577. package/lib/module/components/WatchComplication.js.map +1 -0
  578. package/lib/module/components/ZoneBar.js +145 -0
  579. package/lib/module/components/ZoneBar.js.map +1 -0
  580. package/lib/module/components/ZonePyramid.js +393 -0
  581. package/lib/module/components/ZonePyramid.js.map +1 -0
  582. package/lib/module/index.js +166 -0
  583. package/lib/module/index.js.map +1 -0
  584. package/lib/module/internal/optionalBlur.js +30 -0
  585. package/lib/module/internal/optionalBlur.js.map +1 -0
  586. package/lib/module/internal/optionalHaptics.js +34 -0
  587. package/lib/module/internal/optionalHaptics.js.map +1 -0
  588. package/lib/module/theme.js +6 -0
  589. package/lib/module/theme.js.map +1 -0
  590. package/lib/typescript/components/Accordion.d.ts +20 -0
  591. package/lib/typescript/components/Accordion.d.ts.map +1 -0
  592. package/lib/typescript/components/AchievementBadge.d.ts +29 -0
  593. package/lib/typescript/components/AchievementBadge.d.ts.map +1 -0
  594. package/lib/typescript/components/Alert.d.ts +18 -0
  595. package/lib/typescript/components/Alert.d.ts.map +1 -0
  596. package/lib/typescript/components/AreaChart.d.ts +58 -0
  597. package/lib/typescript/components/AreaChart.d.ts.map +1 -0
  598. package/lib/typescript/components/AuroraBackground.d.ts +24 -0
  599. package/lib/typescript/components/AuroraBackground.d.ts.map +1 -0
  600. package/lib/typescript/components/Avatar.d.ts +38 -0
  601. package/lib/typescript/components/Avatar.d.ts.map +1 -0
  602. package/lib/typescript/components/AvatarStack.d.ts +26 -0
  603. package/lib/typescript/components/AvatarStack.d.ts.map +1 -0
  604. package/lib/typescript/components/BackLink.d.ts +20 -0
  605. package/lib/typescript/components/BackLink.d.ts.map +1 -0
  606. package/lib/typescript/components/Badge.d.ts +12 -0
  607. package/lib/typescript/components/Badge.d.ts.map +1 -0
  608. package/lib/typescript/components/BarChart.d.ts +83 -0
  609. package/lib/typescript/components/BarChart.d.ts.map +1 -0
  610. package/lib/typescript/components/BarFill.d.ts +15 -0
  611. package/lib/typescript/components/BarFill.d.ts.map +1 -0
  612. package/lib/typescript/components/BeeswarmChart.d.ts +71 -0
  613. package/lib/typescript/components/BeeswarmChart.d.ts.map +1 -0
  614. package/lib/typescript/components/BiomarkerRange.d.ts +64 -0
  615. package/lib/typescript/components/BiomarkerRange.d.ts.map +1 -0
  616. package/lib/typescript/components/BodyBattery.d.ts +70 -0
  617. package/lib/typescript/components/BodyBattery.d.ts.map +1 -0
  618. package/lib/typescript/components/BrandMark.d.ts +10 -0
  619. package/lib/typescript/components/BrandMark.d.ts.map +1 -0
  620. package/lib/typescript/components/BulletChart.d.ts +61 -0
  621. package/lib/typescript/components/BulletChart.d.ts.map +1 -0
  622. package/lib/typescript/components/Button.d.ts +27 -0
  623. package/lib/typescript/components/Button.d.ts.map +1 -0
  624. package/lib/typescript/components/CaffeineClock.d.ts +64 -0
  625. package/lib/typescript/components/CaffeineClock.d.ts.map +1 -0
  626. package/lib/typescript/components/Card.d.ts +23 -0
  627. package/lib/typescript/components/Card.d.ts.map +1 -0
  628. package/lib/typescript/components/CharCounter.d.ts +30 -0
  629. package/lib/typescript/components/CharCounter.d.ts.map +1 -0
  630. package/lib/typescript/components/ChartState.d.ts +58 -0
  631. package/lib/typescript/components/ChartState.d.ts.map +1 -0
  632. package/lib/typescript/components/Checkbox.d.ts +44 -0
  633. package/lib/typescript/components/Checkbox.d.ts.map +1 -0
  634. package/lib/typescript/components/Chip.d.ts +17 -0
  635. package/lib/typescript/components/Chip.d.ts.map +1 -0
  636. package/lib/typescript/components/ChoiceChip.d.ts +31 -0
  637. package/lib/typescript/components/ChoiceChip.d.ts.map +1 -0
  638. package/lib/typescript/components/CodeBlock.d.ts +18 -0
  639. package/lib/typescript/components/CodeBlock.d.ts.map +1 -0
  640. package/lib/typescript/components/CodeField.d.ts +22 -0
  641. package/lib/typescript/components/CodeField.d.ts.map +1 -0
  642. package/lib/typescript/components/ColorPicker.d.ts +20 -0
  643. package/lib/typescript/components/ColorPicker.d.ts.map +1 -0
  644. package/lib/typescript/components/ComboChart.d.ts +56 -0
  645. package/lib/typescript/components/ComboChart.d.ts.map +1 -0
  646. package/lib/typescript/components/Combobox.d.ts +39 -0
  647. package/lib/typescript/components/Combobox.d.ts.map +1 -0
  648. package/lib/typescript/components/CompareChart.d.ts +80 -0
  649. package/lib/typescript/components/CompareChart.d.ts.map +1 -0
  650. package/lib/typescript/components/CompositeChart.d.ts +83 -0
  651. package/lib/typescript/components/CompositeChart.d.ts.map +1 -0
  652. package/lib/typescript/components/Countdown.d.ts +28 -0
  653. package/lib/typescript/components/Countdown.d.ts.map +1 -0
  654. package/lib/typescript/components/CreditCardVisual.d.ts +26 -0
  655. package/lib/typescript/components/CreditCardVisual.d.ts.map +1 -0
  656. package/lib/typescript/components/DateField.d.ts +39 -0
  657. package/lib/typescript/components/DateField.d.ts.map +1 -0
  658. package/lib/typescript/components/DayTimelineBlocks.d.ts +40 -0
  659. package/lib/typescript/components/DayTimelineBlocks.d.ts.map +1 -0
  660. package/lib/typescript/components/DayWheel.d.ts +70 -0
  661. package/lib/typescript/components/DayWheel.d.ts.map +1 -0
  662. package/lib/typescript/components/DeltaPill.d.ts +22 -0
  663. package/lib/typescript/components/DeltaPill.d.ts.map +1 -0
  664. package/lib/typescript/components/DistributionChart.d.ts +94 -0
  665. package/lib/typescript/components/DistributionChart.d.ts.map +1 -0
  666. package/lib/typescript/components/Divider.d.ts +16 -0
  667. package/lib/typescript/components/Divider.d.ts.map +1 -0
  668. package/lib/typescript/components/DonutChart.d.ts +70 -0
  669. package/lib/typescript/components/DonutChart.d.ts.map +1 -0
  670. package/lib/typescript/components/DotsLoader.d.ts +19 -0
  671. package/lib/typescript/components/DotsLoader.d.ts.map +1 -0
  672. package/lib/typescript/components/EffectAttributionLine.d.ts +24 -0
  673. package/lib/typescript/components/EffectAttributionLine.d.ts.map +1 -0
  674. package/lib/typescript/components/EmptyState.d.ts +17 -0
  675. package/lib/typescript/components/EmptyState.d.ts.map +1 -0
  676. package/lib/typescript/components/EngagementBar.d.ts +23 -0
  677. package/lib/typescript/components/EngagementBar.d.ts.map +1 -0
  678. package/lib/typescript/components/EnvironmentChart.d.ts +89 -0
  679. package/lib/typescript/components/EnvironmentChart.d.ts.map +1 -0
  680. package/lib/typescript/components/Eyebrow.d.ts +7 -0
  681. package/lib/typescript/components/Eyebrow.d.ts.map +1 -0
  682. package/lib/typescript/components/FocalPointPicker.d.ts +31 -0
  683. package/lib/typescript/components/FocalPointPicker.d.ts.map +1 -0
  684. package/lib/typescript/components/FollowButton.d.ts +21 -0
  685. package/lib/typescript/components/FollowButton.d.ts.map +1 -0
  686. package/lib/typescript/components/ForecastCallout.d.ts +21 -0
  687. package/lib/typescript/components/ForecastCallout.d.ts.map +1 -0
  688. package/lib/typescript/components/FormField.d.ts +32 -0
  689. package/lib/typescript/components/FormField.d.ts.map +1 -0
  690. package/lib/typescript/components/FunnelChart.d.ts +46 -0
  691. package/lib/typescript/components/FunnelChart.d.ts.map +1 -0
  692. package/lib/typescript/components/Gauge.d.ts +70 -0
  693. package/lib/typescript/components/Gauge.d.ts.map +1 -0
  694. package/lib/typescript/components/GradientText.d.ts +21 -0
  695. package/lib/typescript/components/GradientText.d.ts.map +1 -0
  696. package/lib/typescript/components/Heatmap.d.ts +87 -0
  697. package/lib/typescript/components/Heatmap.d.ts.map +1 -0
  698. package/lib/typescript/components/Highlight.d.ts +11 -0
  699. package/lib/typescript/components/Highlight.d.ts.map +1 -0
  700. package/lib/typescript/components/Hypnogram.d.ts +94 -0
  701. package/lib/typescript/components/Hypnogram.d.ts.map +1 -0
  702. package/lib/typescript/components/Icon.d.ts +30 -0
  703. package/lib/typescript/components/Icon.d.ts.map +1 -0
  704. package/lib/typescript/components/Input.d.ts +25 -0
  705. package/lib/typescript/components/Input.d.ts.map +1 -0
  706. package/lib/typescript/components/InsightCard.d.ts +37 -0
  707. package/lib/typescript/components/InsightCard.d.ts.map +1 -0
  708. package/lib/typescript/components/KeyValue.d.ts +18 -0
  709. package/lib/typescript/components/KeyValue.d.ts.map +1 -0
  710. package/lib/typescript/components/LeaderboardRow.d.ts +31 -0
  711. package/lib/typescript/components/LeaderboardRow.d.ts.map +1 -0
  712. package/lib/typescript/components/LineChart.d.ts +166 -0
  713. package/lib/typescript/components/LineChart.d.ts.map +1 -0
  714. package/lib/typescript/components/ListRow.d.ts +37 -0
  715. package/lib/typescript/components/ListRow.d.ts.map +1 -0
  716. package/lib/typescript/components/Menu.d.ts +28 -0
  717. package/lib/typescript/components/Menu.d.ts.map +1 -0
  718. package/lib/typescript/components/MessageBubble.d.ts +20 -0
  719. package/lib/typescript/components/MessageBubble.d.ts.map +1 -0
  720. package/lib/typescript/components/MessageComposer.d.ts +20 -0
  721. package/lib/typescript/components/MessageComposer.d.ts.map +1 -0
  722. package/lib/typescript/components/MetaphorWidget.d.ts +107 -0
  723. package/lib/typescript/components/MetaphorWidget.d.ts.map +1 -0
  724. package/lib/typescript/components/Meter.d.ts +34 -0
  725. package/lib/typescript/components/Meter.d.ts.map +1 -0
  726. package/lib/typescript/components/MetricTile.d.ts +43 -0
  727. package/lib/typescript/components/MetricTile.d.ts.map +1 -0
  728. package/lib/typescript/components/MiniRing.d.ts +9 -0
  729. package/lib/typescript/components/MiniRing.d.ts.map +1 -0
  730. package/lib/typescript/components/Modal.d.ts +19 -0
  731. package/lib/typescript/components/Modal.d.ts.map +1 -0
  732. package/lib/typescript/components/MuscleDiagram.d.ts +37 -0
  733. package/lib/typescript/components/MuscleDiagram.d.ts.map +1 -0
  734. package/lib/typescript/components/NoteField.d.ts +9 -0
  735. package/lib/typescript/components/NoteField.d.ts.map +1 -0
  736. package/lib/typescript/components/NotificationRow.d.ts +36 -0
  737. package/lib/typescript/components/NotificationRow.d.ts.map +1 -0
  738. package/lib/typescript/components/Pagination.d.ts +22 -0
  739. package/lib/typescript/components/Pagination.d.ts.map +1 -0
  740. package/lib/typescript/components/PasswordInput.d.ts +24 -0
  741. package/lib/typescript/components/PasswordInput.d.ts.map +1 -0
  742. package/lib/typescript/components/PasswordStrengthMeter.d.ts +18 -0
  743. package/lib/typescript/components/PasswordStrengthMeter.d.ts.map +1 -0
  744. package/lib/typescript/components/PendingPatternCard.d.ts +27 -0
  745. package/lib/typescript/components/PendingPatternCard.d.ts.map +1 -0
  746. package/lib/typescript/components/PhaseWheel.d.ts +103 -0
  747. package/lib/typescript/components/PhaseWheel.d.ts.map +1 -0
  748. package/lib/typescript/components/PkChart.d.ts +67 -0
  749. package/lib/typescript/components/PkChart.d.ts.map +1 -0
  750. package/lib/typescript/components/Popover.d.ts +27 -0
  751. package/lib/typescript/components/Popover.d.ts.map +1 -0
  752. package/lib/typescript/components/PrBadge.d.ts +21 -0
  753. package/lib/typescript/components/PrBadge.d.ts.map +1 -0
  754. package/lib/typescript/components/PrCard.d.ts +29 -0
  755. package/lib/typescript/components/PrCard.d.ts.map +1 -0
  756. package/lib/typescript/components/PricingTierCard.d.ts +46 -0
  757. package/lib/typescript/components/PricingTierCard.d.ts.map +1 -0
  758. package/lib/typescript/components/ProGate.d.ts +26 -0
  759. package/lib/typescript/components/ProGate.d.ts.map +1 -0
  760. package/lib/typescript/components/ProgressBar.d.ts +60 -0
  761. package/lib/typescript/components/ProgressBar.d.ts.map +1 -0
  762. package/lib/typescript/components/Pulse.d.ts +8 -0
  763. package/lib/typescript/components/Pulse.d.ts.map +1 -0
  764. package/lib/typescript/components/QRCode.d.ts +17 -0
  765. package/lib/typescript/components/QRCode.d.ts.map +1 -0
  766. package/lib/typescript/components/RadarChart.d.ts +59 -0
  767. package/lib/typescript/components/RadarChart.d.ts.map +1 -0
  768. package/lib/typescript/components/RangeBar.d.ts +38 -0
  769. package/lib/typescript/components/RangeBar.d.ts.map +1 -0
  770. package/lib/typescript/components/ReauthDialog.d.ts +44 -0
  771. package/lib/typescript/components/ReauthDialog.d.ts.map +1 -0
  772. package/lib/typescript/components/RestTimer.d.ts +45 -0
  773. package/lib/typescript/components/RestTimer.d.ts.map +1 -0
  774. package/lib/typescript/components/RichText.d.ts +26 -0
  775. package/lib/typescript/components/RichText.d.ts.map +1 -0
  776. package/lib/typescript/components/RichTextEditor.d.ts +25 -0
  777. package/lib/typescript/components/RichTextEditor.d.ts.map +1 -0
  778. package/lib/typescript/components/Ring.d.ts +63 -0
  779. package/lib/typescript/components/Ring.d.ts.map +1 -0
  780. package/lib/typescript/components/RoseChart.d.ts +54 -0
  781. package/lib/typescript/components/RoseChart.d.ts.map +1 -0
  782. package/lib/typescript/components/SankeyChart.d.ts +93 -0
  783. package/lib/typescript/components/SankeyChart.d.ts.map +1 -0
  784. package/lib/typescript/components/ScatterChart.d.ts +59 -0
  785. package/lib/typescript/components/ScatterChart.d.ts.map +1 -0
  786. package/lib/typescript/components/ScrollProgress.d.ts +24 -0
  787. package/lib/typescript/components/ScrollProgress.d.ts.map +1 -0
  788. package/lib/typescript/components/SectionDivider.d.ts +18 -0
  789. package/lib/typescript/components/SectionDivider.d.ts.map +1 -0
  790. package/lib/typescript/components/SectionHeader.d.ts +18 -0
  791. package/lib/typescript/components/SectionHeader.d.ts.map +1 -0
  792. package/lib/typescript/components/SegmentedTabs.d.ts +85 -0
  793. package/lib/typescript/components/SegmentedTabs.d.ts.map +1 -0
  794. package/lib/typescript/components/Select.d.ts +47 -0
  795. package/lib/typescript/components/Select.d.ts.map +1 -0
  796. package/lib/typescript/components/SessionBanner.d.ts +45 -0
  797. package/lib/typescript/components/SessionBanner.d.ts.map +1 -0
  798. package/lib/typescript/components/SessionChart.d.ts +130 -0
  799. package/lib/typescript/components/SessionChart.d.ts.map +1 -0
  800. package/lib/typescript/components/SetTable.d.ts +58 -0
  801. package/lib/typescript/components/SetTable.d.ts.map +1 -0
  802. package/lib/typescript/components/ShareCard.d.ts +40 -0
  803. package/lib/typescript/components/ShareCard.d.ts.map +1 -0
  804. package/lib/typescript/components/Sheet.d.ts +22 -0
  805. package/lib/typescript/components/Sheet.d.ts.map +1 -0
  806. package/lib/typescript/components/Skeleton.d.ts +9 -0
  807. package/lib/typescript/components/Skeleton.d.ts.map +1 -0
  808. package/lib/typescript/components/Slider.d.ts +27 -0
  809. package/lib/typescript/components/Slider.d.ts.map +1 -0
  810. package/lib/typescript/components/Sortable.d.ts +25 -0
  811. package/lib/typescript/components/Sortable.d.ts.map +1 -0
  812. package/lib/typescript/components/SourceChip.d.ts +24 -0
  813. package/lib/typescript/components/SourceChip.d.ts.map +1 -0
  814. package/lib/typescript/components/Sparkline.d.ts +28 -0
  815. package/lib/typescript/components/Sparkline.d.ts.map +1 -0
  816. package/lib/typescript/components/Spinner.d.ts +23 -0
  817. package/lib/typescript/components/Spinner.d.ts.map +1 -0
  818. package/lib/typescript/components/SplitButton.d.ts +21 -0
  819. package/lib/typescript/components/SplitButton.d.ts.map +1 -0
  820. package/lib/typescript/components/SsoButton.d.ts +10 -0
  821. package/lib/typescript/components/SsoButton.d.ts.map +1 -0
  822. package/lib/typescript/components/StackedBar.d.ts +32 -0
  823. package/lib/typescript/components/StackedBar.d.ts.map +1 -0
  824. package/lib/typescript/components/Stat.d.ts +33 -0
  825. package/lib/typescript/components/Stat.d.ts.map +1 -0
  826. package/lib/typescript/components/StatTile.d.ts +90 -0
  827. package/lib/typescript/components/StatTile.d.ts.map +1 -0
  828. package/lib/typescript/components/StateLabel.d.ts +12 -0
  829. package/lib/typescript/components/StateLabel.d.ts.map +1 -0
  830. package/lib/typescript/components/StatusDot.d.ts +13 -0
  831. package/lib/typescript/components/StatusDot.d.ts.map +1 -0
  832. package/lib/typescript/components/Stepper.d.ts +47 -0
  833. package/lib/typescript/components/Stepper.d.ts.map +1 -0
  834. package/lib/typescript/components/SupplementChart.d.ts +121 -0
  835. package/lib/typescript/components/SupplementChart.d.ts.map +1 -0
  836. package/lib/typescript/components/TabBar.d.ts +52 -0
  837. package/lib/typescript/components/TabBar.d.ts.map +1 -0
  838. package/lib/typescript/components/Table.d.ts +64 -0
  839. package/lib/typescript/components/Table.d.ts.map +1 -0
  840. package/lib/typescript/components/Tabs.d.ts +16 -0
  841. package/lib/typescript/components/Tabs.d.ts.map +1 -0
  842. package/lib/typescript/components/TagCloud.d.ts +31 -0
  843. package/lib/typescript/components/TagCloud.d.ts.map +1 -0
  844. package/lib/typescript/components/TagInput.d.ts +37 -0
  845. package/lib/typescript/components/TagInput.d.ts.map +1 -0
  846. package/lib/typescript/components/TemplateCard.d.ts +43 -0
  847. package/lib/typescript/components/TemplateCard.d.ts.map +1 -0
  848. package/lib/typescript/components/Timeline.d.ts +18 -0
  849. package/lib/typescript/components/Timeline.d.ts.map +1 -0
  850. package/lib/typescript/components/TimelineChart.d.ts +124 -0
  851. package/lib/typescript/components/TimelineChart.d.ts.map +1 -0
  852. package/lib/typescript/components/Toast.d.ts +18 -0
  853. package/lib/typescript/components/Toast.d.ts.map +1 -0
  854. package/lib/typescript/components/Toggle.d.ts +22 -0
  855. package/lib/typescript/components/Toggle.d.ts.map +1 -0
  856. package/lib/typescript/components/Toolbar.d.ts +48 -0
  857. package/lib/typescript/components/Toolbar.d.ts.map +1 -0
  858. package/lib/typescript/components/Tooltip.d.ts +16 -0
  859. package/lib/typescript/components/Tooltip.d.ts.map +1 -0
  860. package/lib/typescript/components/TypingIndicator.d.ts +16 -0
  861. package/lib/typescript/components/TypingIndicator.d.ts.map +1 -0
  862. package/lib/typescript/components/UnitChart.d.ts +84 -0
  863. package/lib/typescript/components/UnitChart.d.ts.map +1 -0
  864. package/lib/typescript/components/VersionBadge.d.ts +17 -0
  865. package/lib/typescript/components/VersionBadge.d.ts.map +1 -0
  866. package/lib/typescript/components/VideoThumbnail.d.ts +24 -0
  867. package/lib/typescript/components/VideoThumbnail.d.ts.map +1 -0
  868. package/lib/typescript/components/VitalsStrip.d.ts +53 -0
  869. package/lib/typescript/components/VitalsStrip.d.ts.map +1 -0
  870. package/lib/typescript/components/WatchComplication.d.ts +84 -0
  871. package/lib/typescript/components/WatchComplication.d.ts.map +1 -0
  872. package/lib/typescript/components/ZoneBar.d.ts +33 -0
  873. package/lib/typescript/components/ZoneBar.d.ts.map +1 -0
  874. package/lib/typescript/components/ZonePyramid.d.ts +51 -0
  875. package/lib/typescript/components/ZonePyramid.d.ts.map +1 -0
  876. package/lib/typescript/index.d.ts +288 -0
  877. package/lib/typescript/index.d.ts.map +1 -0
  878. package/lib/typescript/internal/optionalBlur.d.ts +13 -0
  879. package/lib/typescript/internal/optionalBlur.d.ts.map +1 -0
  880. package/lib/typescript/internal/optionalHaptics.d.ts +7 -0
  881. package/lib/typescript/internal/optionalHaptics.d.ts.map +1 -0
  882. package/lib/typescript/theme.d.ts +5 -0
  883. package/lib/typescript/theme.d.ts.map +1 -0
  884. package/package.json +92 -3
  885. package/src/components/Accordion.tsx +130 -0
  886. package/src/components/AchievementBadge.tsx +217 -0
  887. package/src/components/Alert.tsx +149 -0
  888. package/src/components/AreaChart.tsx +546 -0
  889. package/src/components/AuroraBackground.tsx +198 -0
  890. package/src/components/Avatar.tsx +164 -0
  891. package/src/components/AvatarStack.tsx +94 -0
  892. package/src/components/BackLink.tsx +64 -0
  893. package/src/components/Badge.tsx +91 -0
  894. package/src/components/BarChart.tsx +643 -0
  895. package/src/components/BarFill.tsx +37 -0
  896. package/src/components/BeeswarmChart.tsx +567 -0
  897. package/src/components/BiomarkerRange.tsx +571 -0
  898. package/src/components/BodyBattery.tsx +551 -0
  899. package/src/components/BrandMark.tsx +107 -0
  900. package/src/components/BulletChart.tsx +433 -0
  901. package/src/components/Button.tsx +127 -0
  902. package/src/components/CaffeineClock.tsx +472 -0
  903. package/src/components/Card.tsx +139 -0
  904. package/src/components/CharCounter.tsx +113 -0
  905. package/src/components/ChartState.tsx +473 -0
  906. package/src/components/Checkbox.tsx +175 -0
  907. package/src/components/Chip.tsx +132 -0
  908. package/src/components/ChoiceChip.tsx +119 -0
  909. package/src/components/CodeBlock.tsx +106 -0
  910. package/src/components/CodeField.tsx +137 -0
  911. package/src/components/ColorPicker.tsx +169 -0
  912. package/src/components/ComboChart.tsx +476 -0
  913. package/src/components/Combobox.tsx +141 -0
  914. package/src/components/CompareChart.tsx +651 -0
  915. package/src/components/CompositeChart.tsx +609 -0
  916. package/src/components/Countdown.tsx +155 -0
  917. package/src/components/CreditCardVisual.tsx +151 -0
  918. package/src/components/DateField.tsx +346 -0
  919. package/src/components/DayTimelineBlocks.tsx +270 -0
  920. package/src/components/DayWheel.tsx +483 -0
  921. package/src/components/DeltaPill.tsx +114 -0
  922. package/src/components/DistributionChart.tsx +739 -0
  923. package/src/components/Divider.tsx +61 -0
  924. package/src/components/DonutChart.tsx +399 -0
  925. package/src/components/DotsLoader.tsx +74 -0
  926. package/src/components/EffectAttributionLine.tsx +82 -0
  927. package/src/components/EmptyState.tsx +108 -0
  928. package/src/components/EngagementBar.tsx +140 -0
  929. package/src/components/EnvironmentChart.tsx +522 -0
  930. package/src/components/Eyebrow.tsx +22 -0
  931. package/src/components/FocalPointPicker.tsx +193 -0
  932. package/src/components/FollowButton.tsx +78 -0
  933. package/src/components/ForecastCallout.tsx +100 -0
  934. package/src/components/FormField.tsx +217 -0
  935. package/src/components/FunnelChart.tsx +310 -0
  936. package/src/components/Gauge.tsx +329 -0
  937. package/src/components/GradientText.tsx +114 -0
  938. package/src/components/Heatmap.tsx +459 -0
  939. package/src/components/Highlight.tsx +36 -0
  940. package/src/components/Hypnogram.tsx +751 -0
  941. package/src/components/Icon.tsx +680 -0
  942. package/src/components/Input.tsx +125 -0
  943. package/src/components/InsightCard.tsx +130 -0
  944. package/src/components/KeyValue.tsx +83 -0
  945. package/src/components/LeaderboardRow.tsx +156 -0
  946. package/src/components/LineChart.tsx +1529 -0
  947. package/src/components/ListRow.tsx +153 -0
  948. package/src/components/Menu.tsx +156 -0
  949. package/src/components/MessageBubble.tsx +118 -0
  950. package/src/components/MessageComposer.tsx +202 -0
  951. package/src/components/MetaphorWidget.tsx +848 -0
  952. package/src/components/Meter.tsx +186 -0
  953. package/src/components/MetricTile.tsx +247 -0
  954. package/src/components/MiniRing.tsx +17 -0
  955. package/src/components/Modal.tsx +129 -0
  956. package/src/components/MuscleDiagram.tsx +319 -0
  957. package/src/components/NoteField.tsx +68 -0
  958. package/src/components/NotificationRow.tsx +230 -0
  959. package/src/components/Pagination.tsx +188 -0
  960. package/src/components/PasswordInput.tsx +111 -0
  961. package/src/components/PasswordStrengthMeter.tsx +104 -0
  962. package/src/components/PendingPatternCard.tsx +163 -0
  963. package/src/components/PhaseWheel.tsx +781 -0
  964. package/src/components/PkChart.tsx +539 -0
  965. package/src/components/Popover.tsx +206 -0
  966. package/src/components/PrBadge.tsx +51 -0
  967. package/src/components/PrCard.tsx +132 -0
  968. package/src/components/PricingTierCard.tsx +234 -0
  969. package/src/components/ProGate.tsx +194 -0
  970. package/src/components/ProgressBar.tsx +439 -0
  971. package/src/components/Pulse.tsx +17 -0
  972. package/src/components/QRCode.tsx +555 -0
  973. package/src/components/RadarChart.tsx +538 -0
  974. package/src/components/RangeBar.tsx +206 -0
  975. package/src/components/ReauthDialog.tsx +282 -0
  976. package/src/components/RestTimer.tsx +193 -0
  977. package/src/components/RichText.tsx +71 -0
  978. package/src/components/RichTextEditor.tsx +207 -0
  979. package/src/components/Ring.tsx +269 -0
  980. package/src/components/RoseChart.tsx +375 -0
  981. package/src/components/SankeyChart.tsx +687 -0
  982. package/src/components/ScatterChart.tsx +498 -0
  983. package/src/components/ScrollProgress.tsx +61 -0
  984. package/src/components/SectionDivider.tsx +51 -0
  985. package/src/components/SectionHeader.tsx +41 -0
  986. package/src/components/SegmentedTabs.tsx +389 -0
  987. package/src/components/Select.tsx +335 -0
  988. package/src/components/SessionBanner.tsx +195 -0
  989. package/src/components/SessionChart.tsx +917 -0
  990. package/src/components/SetTable.tsx +341 -0
  991. package/src/components/ShareCard.tsx +145 -0
  992. package/src/components/Sheet.tsx +212 -0
  993. package/src/components/Skeleton.tsx +13 -0
  994. package/src/components/Slider.tsx +187 -0
  995. package/src/components/Sortable.tsx +263 -0
  996. package/src/components/SourceChip.tsx +95 -0
  997. package/src/components/Sparkline.tsx +108 -0
  998. package/src/components/Spinner.tsx +128 -0
  999. package/src/components/SplitButton.tsx +111 -0
  1000. package/src/components/SsoButton.tsx +93 -0
  1001. package/src/components/StackedBar.tsx +138 -0
  1002. package/src/components/Stat.tsx +118 -0
  1003. package/src/components/StatTile.tsx +581 -0
  1004. package/src/components/StateLabel.tsx +62 -0
  1005. package/src/components/StatusDot.tsx +58 -0
  1006. package/src/components/Stepper.tsx +359 -0
  1007. package/src/components/SupplementChart.tsx +1044 -0
  1008. package/src/components/TabBar.tsx +297 -0
  1009. package/src/components/Table.tsx +448 -0
  1010. package/src/components/Tabs.tsx +85 -0
  1011. package/src/components/TagCloud.tsx +111 -0
  1012. package/src/components/TagInput.tsx +325 -0
  1013. package/src/components/TemplateCard.tsx +181 -0
  1014. package/src/components/Timeline.tsx +132 -0
  1015. package/src/components/TimelineChart.tsx +1035 -0
  1016. package/src/components/Toast.tsx +138 -0
  1017. package/src/components/Toggle.tsx +155 -0
  1018. package/src/components/Toolbar.tsx +292 -0
  1019. package/src/components/Tooltip.tsx +193 -0
  1020. package/src/components/TypingIndicator.tsx +106 -0
  1021. package/src/components/UnitChart.tsx +519 -0
  1022. package/src/components/VersionBadge.tsx +129 -0
  1023. package/src/components/VideoThumbnail.tsx +140 -0
  1024. package/src/components/VitalsStrip.tsx +636 -0
  1025. package/src/components/WatchComplication.tsx +536 -0
  1026. package/src/components/ZoneBar.tsx +148 -0
  1027. package/src/components/ZonePyramid.tsx +405 -0
  1028. package/src/components/__tests__/Chip.test.tsx +33 -0
  1029. package/src/components/__tests__/CodeInput.test.tsx +62 -0
  1030. package/src/components/__tests__/DeltaPill.test.tsx +41 -0
  1031. package/src/components/__tests__/GradientText.test.tsx +69 -0
  1032. package/src/components/__tests__/Icon.test.tsx +61 -0
  1033. package/src/components/__tests__/Input.test.tsx +30 -0
  1034. package/src/components/__tests__/LineChart.test.tsx +62 -0
  1035. package/src/components/__tests__/ListRow.test.tsx +28 -0
  1036. package/src/components/__tests__/PkChart.test.tsx +47 -0
  1037. package/src/components/__tests__/PrBadge.test.tsx +32 -0
  1038. package/src/components/__tests__/PrCard.test.tsx +49 -0
  1039. package/src/components/__tests__/RestTimer.test.tsx +94 -0
  1040. package/src/components/__tests__/SegmentedTabs.test.tsx +58 -0
  1041. package/src/components/__tests__/SessionBanner.test.tsx +96 -0
  1042. package/src/components/__tests__/SetTable.test.tsx +105 -0
  1043. package/src/components/__tests__/SourceChip.test.tsx +82 -0
  1044. package/src/components/__tests__/SupplementChart.test.tsx +71 -0
  1045. package/src/components/__tests__/Table.test.tsx +81 -0
  1046. package/src/components/__tests__/TemplateCard.test.tsx +85 -0
  1047. package/src/components/__tests__/Toggle.test.tsx +49 -0
  1048. package/src/components/__tests__/UnitChart.test.tsx +44 -0
  1049. package/src/components/__tests__/markup.ts +142 -0
  1050. package/src/components/__tests__/react-dom-server.d.ts +11 -0
  1051. package/src/index.ts +320 -0
  1052. package/src/internal/optionalBlur.ts +37 -0
  1053. package/src/internal/optionalHaptics.ts +38 -0
  1054. package/src/theme.ts +26 -0
  1055. package/README.md +0 -3
@@ -0,0 +1,1529 @@
1
+ import { useEffect, useId, useRef, useState } from 'react';
2
+ import {
3
+ Animated,
4
+ Easing,
5
+ StyleSheet,
6
+ Text,
7
+ View,
8
+ type DimensionValue,
9
+ type LayoutChangeEvent,
10
+ type StyleProp,
11
+ type ViewStyle,
12
+ } from 'react-native';
13
+ import Svg, { ClipPath, Defs, FeGaussianBlur, Filter, Line, LinearGradient, Path, Rect, Stop } from 'react-native-svg';
14
+ import { colors, fonts } from '@lockin90/tokens';
15
+
16
+ /** A round overlay dot pinned over a data point (kept circular by rendering it as
17
+ * an absolutely-positioned View over the stretched Svg), with an optional
18
+ * floating label tag. */
19
+ export interface LineMarker {
20
+ /** index into `data` to anchor the dot on */
21
+ index: number;
22
+ /** dot color (hex); defaults to the line `color` */
23
+ color?: string;
24
+ /** optional small floating tag above the dot */
25
+ label?: string;
26
+ }
27
+
28
+ /** Catalog variant names — one per line-chart form in
29
+ * `lockin90-design/charts/line-charts.html` (LC-01 … LC-56). */
30
+ export type LineChartVariant =
31
+ | 'solid' // LC-01
32
+ | 'gradient' // LC-09
33
+ | 'veil' // LC-15
34
+ | 'tide-split' // LC-19
35
+ | 'glass-fill' // LC-20
36
+ | 'curve-styles' // LC-21
37
+ | 'dash-dot' // LC-24
38
+ | 'stroke-weight' // LC-26
39
+ | 'neon' // LC-28
40
+ | 'aurora-halo' // LC-30
41
+ | 'ghost-echo' // LC-32
42
+ | 'bead-chain' // LC-33
43
+ | 'comet-head' // LC-34
44
+ | 'peak-flag' // LC-35
45
+ | 'now-split' // LC-36
46
+ | 'goal-line' // LC-37
47
+ | 'event-pins' // LC-38
48
+ | 'multi-compare' // LC-39
49
+ | 'you-vs-cohort' // LC-41
50
+ | 'ghost-prev' // LC-42
51
+ | 'calibrating-taper' // LC-43
52
+ | 'delta-ribbon' // LC-44
53
+ | 'confidence-veil' // LC-45
54
+ | 'forecast-fan' // LC-46
55
+ | 'range-band' // LC-47
56
+ | 'raw-vs-avg' // LC-48
57
+ | 'anomaly-spark' // LC-49
58
+ | 'zone-ribbon' // LC-50
59
+ | 'day-fade' // LC-51
60
+ | 'forecast-horizon' // LC-52
61
+ | 'zone-forecast' // LC-54
62
+ | 'coach-forecast'; // LC-56
63
+
64
+ /** Curve interpolation (LC-21): monotone smooth / sharp linear / step-after. */
65
+ export type LineCurve = 'smooth' | 'linear' | 'step';
66
+ /** Main-line dash pattern (LC-24): solid / dashed 7-5 / dotted round-cap. */
67
+ export type LinePattern = 'solid' | 'dashed' | 'dotted';
68
+
69
+ /** One explicit gradient stop (offset 0..1). A plain `string[]` gradient
70
+ * spreads its stops evenly instead. */
71
+ export interface GradientStop {
72
+ offset: number;
73
+ color: string;
74
+ }
75
+
76
+ /** An extra overlay series sharing the main chart's x/y scale (LC-39/41/42/44/56). */
77
+ export interface LineSeries {
78
+ /** y-values on the shared scale */
79
+ data: number[];
80
+ /** stroke color (hex token) */
81
+ color?: string;
82
+ /** stroke width (default 2) */
83
+ weight?: number;
84
+ /** dash style; `dash` (viewBox units) overrides it */
85
+ pattern?: LinePattern;
86
+ dash?: string;
87
+ /** stroke opacity */
88
+ opacity?: number;
89
+ /** per-series curve override (defaults to the chart's curve) */
90
+ curve?: LineCurve;
91
+ /** chip-pill label drawn over the series */
92
+ label?: string;
93
+ /** index into this series' `data` to anchor the label (default: last point) */
94
+ labelIndex?: number;
95
+ /** label y-offset in viewBox px (default −12) */
96
+ labelDy?: number;
97
+ /** the series starts at this index of the main `data`'s x positions (LC-56 RECOMMENDED) */
98
+ fromIndex?: number;
99
+ }
100
+
101
+ /** A chip-pill annotation anchored to a data index (LC-52 ACTUAL / FORECAST). */
102
+ export interface LineLabel {
103
+ index: number;
104
+ text: string;
105
+ color?: string;
106
+ /** y-offset in viewBox px from the data point (default −12) */
107
+ dy?: number;
108
+ }
109
+
110
+ export interface LineChartProps {
111
+ /** catalog variant — presets the catalog look; explicit props override */
112
+ variant?: LineChartVariant;
113
+ /** y-values, auto-scaled to fit the plot height */
114
+ data?: number[];
115
+ /** x labels under the chart (optional) */
116
+ axis?: string[];
117
+ /** line color (hex) */
118
+ color?: string;
119
+ /** multi-stop horizontal stroke gradient — evenly-spread `string[]` or
120
+ * explicit `GradientStop[]` (LC-51 day-fade); overrides `color` for the stroke */
121
+ gradient?: string[] | GradientStop[];
122
+ /** area fill under the line (legacy fade; with a variant: the veil fill) */
123
+ area?: boolean;
124
+ /** smoothing; when false, straight segments (kept for back-compat — prefer `curve`) */
125
+ smooth?: boolean;
126
+ /** curve interpolation (LC-21) — with a variant, `smooth` maps onto this */
127
+ curve?: LineCurve;
128
+ /** main-line dash pattern (LC-24) */
129
+ pattern?: LinePattern;
130
+ /** main-line stroke width (LC-26; default 2.5 with a variant, 3 legacy) */
131
+ weight?: number;
132
+ /** hue-matched glow underlay — a Gaussian-blurred duplicate of the stroke */
133
+ shine?: boolean;
134
+ /** pin the y-scale to [min, max] instead of auto-scaling to the data */
135
+ yDomain?: [number, number];
136
+ /** plot height in px (also the viewBox height) */
137
+ height?: number;
138
+ /** round overlay dots at data indices, with optional label tags */
139
+ markers?: LineMarker[];
140
+ /** faint horizontal gridlines */
141
+ grid?: boolean;
142
+ /** show value labels down the right edge, on the data's y-scale */
143
+ yAxis?: boolean;
144
+ /** explicit y-axis tick values; if omitted (and `yAxis`), ~4 evenly-spaced
145
+ * ticks are derived from the data min..max */
146
+ yTicks?: number[];
147
+ /** filled uncertainty ribbon behind the line, on the SAME y-scale as data;
148
+ * restyled by `confidence-veil` (CI gradient + edge) / `range-band` (min-max) */
149
+ band?: { upper: number[]; lower: number[]; color?: string };
150
+ /** widening forecast fan drawn from the `now` index (LC-46/52/54) */
151
+ fan?: { upper: number[]; lower: number[]; color?: string };
152
+ /** from this data index onward the main line renders dashed (forecast continuation) */
153
+ dashedFromIndex?: number;
154
+ /** NOW anchor (data index): vertical rule + dot; past solid / future dashed (LC-36) */
155
+ now?: number;
156
+ /** pulse ring on the NOW dot (reduced-motion safe) */
157
+ nowPulse?: boolean;
158
+ /** NOW rule caption (default 'NOW') */
159
+ nowLabel?: string;
160
+ /** calibrating split (data index): solid→dashed + tag, no rule (LC-43) */
161
+ taper?: number;
162
+ /** taper caption (default 'CALIBRATING') */
163
+ taperLabel?: string;
164
+ /** goal value (data units): dashed rule + dots on points above it (LC-37) */
165
+ goal?: number;
166
+ /** goal caption (default 'GOAL') */
167
+ goalLabel?: string;
168
+ /** tide-split baseline value (data units; default: scale midpoint) (LC-19) */
169
+ baseline?: number;
170
+ /** event pin flags at data indices (LC-38) */
171
+ pins?: number[];
172
+ /** extra overlay series (LC-39/41/42/44/56) */
173
+ series?: LineSeries[];
174
+ /** fill the gap between `data` and `series[0]` (LC-44 delta-ribbon) */
175
+ ribbon?: boolean;
176
+ /** chip-pill annotations at data indices */
177
+ labels?: LineLabel[];
178
+ /** small round dots: at every datum ('all', LC-33) or the last one ('end', LC-34) */
179
+ dots?: 'all' | 'end' | 'none';
180
+ /** pulse ring on the end dot (LC-34) */
181
+ pulse?: boolean;
182
+ /** auto PEAK (mint) / DIP (coral) dots + captions (LC-35) */
183
+ peaks?: boolean;
184
+ /** flag outliers vs the 5-pt moving average (LC-49) */
185
+ anomalies?: boolean;
186
+ /** outlier threshold in data units (default: 14% of the y-span) */
187
+ anomalyThreshold?: number;
188
+ /** stroke = y-mapped zone gradient high→mid→low (LC-50/54/56) */
189
+ zoneStroke?: boolean;
190
+ /** '100' / '0' y-end captions (LC-54/56) */
191
+ yEnds?: boolean;
192
+ /** stroke for the post-`now` segment (+fan tint) (LC-52 forecast-horizon) */
193
+ futureColor?: string;
194
+ /** ghost echo copies below the line (LC-32) */
195
+ echo?: number;
196
+ /** optional container style */
197
+ style?: StyleProp<ViewStyle>;
198
+ }
199
+
200
+ const VB_W = 560;
201
+ /** vertical inset (viewBox units) so the line never touches the top/bottom edge */
202
+ const PAD_Y = 14;
203
+ /** horizontal inset (viewBox units) so the first/last points, the round line caps
204
+ * and the overlay marker dots stay fully inside the plot instead of clipping at
205
+ * the left/right edges. */
206
+ const PAD_X = 14;
207
+ /** number of interior horizontal gridlines */
208
+ const GRID_LINES = 3;
209
+ /** width (px) of the right gutter reserved for y-axis value labels */
210
+ const Y_GUTTER = 36;
211
+ /** number of derived y-axis ticks when `yTicks` is omitted */
212
+ const Y_TICKS = 4;
213
+
214
+ /** Map a value to its y position (viewBox units) using the same inverted,
215
+ * auto-scaled mapping as `toPoints` (max → top, min → bottom). */
216
+ function valueToY(v: number, min: number, span: number, height: number): number {
217
+ const top = PAD_Y;
218
+ const bottom = height - PAD_Y;
219
+ const t = (v - min) / span;
220
+ return bottom - t * (bottom - top);
221
+ }
222
+
223
+ /** Derive ~`Y_TICKS` evenly-spaced tick values across [min, max]. */
224
+ function deriveTicks(min: number, max: number): number[] {
225
+ if (max === min) return [min];
226
+ const ticks: number[] = [];
227
+ for (let i = 0; i < Y_TICKS; i++) {
228
+ ticks.push(min + ((max - min) * i) / (Y_TICKS - 1));
229
+ }
230
+ return ticks;
231
+ }
232
+
233
+ /** Compact label for a tick value: integers as-is, else 1 decimal. */
234
+ const tickLabel = (v: number) => (Number.isInteger(v) ? String(v) : v.toFixed(1));
235
+
236
+ const DEFAULT_DATA = [52, 40, 30, 28, 38, 56, 80, 104, 116, 118, 108, 90, 76, 66, 60, 58];
237
+ const DEFAULT_AXIS = ['9am', '12pm', '3pm', '6pm', '9pm'];
238
+
239
+ /** Map a series to viewBox points on an EXPLICIT y-scale (min/span), spreading x
240
+ * evenly across the padded inner width [PAD_X, VB_W−PAD_X]. `n` is the index span
241
+ * used for x positioning — pass the primary data length so a band's points align
242
+ * column-for-column with the data. `offset` shifts the series right by that many
243
+ * x slots (LineSeries.fromIndex). Inverted (max → top, min → bottom). */
244
+ function mapPoints(
245
+ values: number[],
246
+ n: number,
247
+ height: number,
248
+ min: number,
249
+ span: number,
250
+ offset = 0,
251
+ ): Array<[number, number]> {
252
+ if (values.length === 0) return [];
253
+ const top = PAD_Y;
254
+ const bottom = height - PAD_Y;
255
+ const innerW = VB_W - PAD_X * 2;
256
+ return values.map((v, i) => {
257
+ const x = n === 1 ? VB_W / 2 : PAD_X + ((i + offset) / (n - 1)) * innerW;
258
+ const t = (v - min) / span; // 0 at min, 1 at max
259
+ const y = bottom - t * (bottom - top); // max → top, min → bottom
260
+ return [x, y];
261
+ });
262
+ }
263
+
264
+ /** Round a number for compact path strings. */
265
+ const r = (n: number) => Math.round(n * 100) / 100;
266
+
267
+ /** Straight polyline through the points. */
268
+ function linePath(pts: Array<[number, number]>): string {
269
+ if (pts.length === 0) return '';
270
+ return pts.map(([x, y], i) => `${i === 0 ? 'M' : 'L'}${r(x)},${r(y)}`).join(' ');
271
+ }
272
+
273
+ /** Catmull-Rom spline expressed as cubic béziers — the legacy smoothing kept for
274
+ * back-compat (used when neither `variant` nor `curve` is set). */
275
+ function smoothPath(pts: Array<[number, number]>): string {
276
+ const n = pts.length;
277
+ if (n < 3) return linePath(pts);
278
+ let d = `M${r(pts[0][0])},${r(pts[0][1])}`;
279
+ for (let i = 0; i < n - 1; i++) {
280
+ const p0 = pts[i - 1] ?? pts[i];
281
+ const p1 = pts[i];
282
+ const p2 = pts[i + 1];
283
+ const p3 = pts[i + 2] ?? p2;
284
+ // Catmull-Rom → Bézier control points (tension = 1/6)
285
+ const c1x = p1[0] + (p2[0] - p0[0]) / 6;
286
+ const c1y = p1[1] + (p2[1] - p0[1]) / 6;
287
+ const c2x = p2[0] - (p3[0] - p1[0]) / 6;
288
+ const c2y = p2[1] - (p3[1] - p1[1]) / 6;
289
+ d += ` C${r(c1x)},${r(c1y)} ${r(c2x)},${r(c2y)} ${r(p2[0])},${r(p2[1])}`;
290
+ }
291
+ return d;
292
+ }
293
+
294
+ /** Fritsch–Carlson monotone cubic — the catalog's `smoothPath` (no overshoot),
295
+ * used for every variant / explicit `curve` render. Faithful port. */
296
+ function monotonePath(pts: Array<[number, number]>): string {
297
+ const n = pts.length;
298
+ if (n < 3) return linePath(pts);
299
+ const dx: number[] = [];
300
+ const m: number[] = [];
301
+ const tg: number[] = [];
302
+ for (let i = 0; i < n - 1; i++) {
303
+ dx[i] = pts[i + 1][0] - pts[i][0];
304
+ m[i] = (pts[i + 1][1] - pts[i][1]) / dx[i];
305
+ }
306
+ tg[0] = m[0];
307
+ tg[n - 1] = m[n - 2];
308
+ for (let i = 1; i < n - 1; i++) tg[i] = m[i - 1] * m[i] <= 0 ? 0 : (m[i - 1] + m[i]) / 2;
309
+ for (let i = 0; i < n - 1; i++) {
310
+ if (m[i] === 0) {
311
+ tg[i] = 0;
312
+ tg[i + 1] = 0;
313
+ } else {
314
+ const a = tg[i] / m[i];
315
+ const b = tg[i + 1] / m[i];
316
+ const s = a * a + b * b;
317
+ if (s > 9) {
318
+ const tau = 3 / Math.sqrt(s);
319
+ tg[i] = tau * a * m[i];
320
+ tg[i + 1] = tau * b * m[i];
321
+ }
322
+ }
323
+ }
324
+ let d = `M${r(pts[0][0])},${r(pts[0][1])}`;
325
+ for (let i = 0; i < n - 1; i++) {
326
+ const h = dx[i] / 3;
327
+ d += ` C${r(pts[i][0] + h)},${r(pts[i][1] + h * tg[i])} ${r(pts[i + 1][0] - h)},${r(
328
+ pts[i + 1][1] - h * tg[i + 1],
329
+ )} ${r(pts[i + 1][0])},${r(pts[i + 1][1])}`;
330
+ }
331
+ return d;
332
+ }
333
+
334
+ /** Step-after path (doses, tiers) — the catalog's `stepPath`. */
335
+ function stepPath(pts: Array<[number, number]>): string {
336
+ if (pts.length === 0) return '';
337
+ let d = `M${r(pts[0][0])},${r(pts[0][1])}`;
338
+ for (let i = 1; i < pts.length; i++) {
339
+ d += ` L${r(pts[i][0])},${r(pts[i - 1][1])} L${r(pts[i][0])},${r(pts[i][1])}`;
340
+ }
341
+ return d;
342
+ }
343
+
344
+ /** Trailing moving average over a window (the catalog's `movAvg`). */
345
+ function movAvg(data: number[], w: number): number[] {
346
+ return data.map((_, i) => {
347
+ const a = Math.max(0, i - w + 1);
348
+ let s = 0;
349
+ for (let j = a; j <= i; j++) s += data[j];
350
+ return s / (i - a + 1);
351
+ });
352
+ }
353
+
354
+ /** dash string for a `LinePattern` (viewBox units, per the catalog). */
355
+ function patternDash(p: LinePattern | undefined): string | undefined {
356
+ if (p === 'dashed') return '7 5';
357
+ if (p === 'dotted') return '0.1 6.5';
358
+ return undefined;
359
+ }
360
+
361
+ /** estimated chip-pill width (px): ~5.35px per 8px-mono glyph + padding — the
362
+ * same `tag()` estimate the SVG chart families use for their pills. */
363
+ const chipWidth = (text: string) => text.length * 5.35 + 12;
364
+
365
+ /** chip x-anchoring: centered on the point, flipped to 'end'/'start' when the
366
+ * pill's half-width would cross the plot edge (e.g. a series label anchored
367
+ * on the last point), so edge-hugging pills stay fully inside the plot. */
368
+ function chipAlign(x: number, text: string): 'start' | 'center' | 'end' {
369
+ const half = chipWidth(text) / 2;
370
+ if (x + half > VB_W) return 'end';
371
+ if (x - half < 0) return 'start';
372
+ return 'center';
373
+ }
374
+
375
+ const isUrlRef = (s: string) => s.startsWith('url(');
376
+
377
+ /* ---------------- variant presets (the catalog CFG, tokens only) ---------------- */
378
+
379
+ const FLUX: GradientStop[] = [
380
+ { offset: 0, color: colors.lime },
381
+ { offset: 0.28, color: colors.mint },
382
+ { offset: 0.52, color: colors.cyan },
383
+ { offset: 0.76, color: colors.accent },
384
+ { offset: 1, color: colors.magenta },
385
+ ];
386
+ const DAY_FADE: GradientStop[] = [
387
+ { offset: 0, color: colors.mint },
388
+ { offset: 0.35, color: colors.lime },
389
+ { offset: 0.7, color: colors.zoneMid },
390
+ { offset: 1, color: colors.zoneLow },
391
+ ];
392
+
393
+ interface SeriesPreset {
394
+ color?: string;
395
+ weight?: number;
396
+ dash?: string;
397
+ opacity?: number;
398
+ }
399
+
400
+ interface Preset {
401
+ color?: string;
402
+ gradient?: GradientStop[];
403
+ weight?: number;
404
+ opacity?: number;
405
+ fill?: 'off' | 'veil' | 'glass' | 'split';
406
+ pattern?: LinePattern;
407
+ shine?: boolean;
408
+ /** neon/halo glow — rendered as a Gaussian-blurred duplicate path */
409
+ glow?: { r: number; alpha: number; color?: string };
410
+ echo?: number;
411
+ dots?: 'all' | 'end';
412
+ pulse?: boolean;
413
+ peaks?: boolean;
414
+ rawAvg?: boolean;
415
+ anomalies?: boolean;
416
+ zoneStroke?: boolean;
417
+ ribbon?: boolean;
418
+ yEnds?: boolean;
419
+ nowPulse?: boolean;
420
+ futureColor?: string;
421
+ bandStyle?: 'ci' | 'range';
422
+ fanColor?: string;
423
+ seriesDefaults?: SeriesPreset[];
424
+ }
425
+
426
+ const PRESETS: Record<LineChartVariant, Preset> = {
427
+ solid: { weight: 2.5, fill: 'off' },
428
+ gradient: { weight: 3, fill: 'off', gradient: FLUX },
429
+ veil: { weight: 2.5, fill: 'veil' },
430
+ 'tide-split': { fill: 'split' },
431
+ 'glass-fill': { weight: 2.5, fill: 'glass', color: colors.textDim },
432
+ 'curve-styles': { weight: 2.5, fill: 'off' },
433
+ 'dash-dot': { weight: 2.5, fill: 'off', pattern: 'dashed', color: colors.violet },
434
+ 'stroke-weight': { weight: 2.5, fill: 'off' },
435
+ neon: { weight: 2.5, fill: 'off', glow: { r: 7, alpha: 0.8 } },
436
+ 'aurora-halo': {
437
+ weight: 3,
438
+ fill: 'off',
439
+ gradient: FLUX,
440
+ glow: { r: 12, alpha: 0.55, color: colors.accent },
441
+ },
442
+ 'ghost-echo': { weight: 2.5, fill: 'off', echo: 2, color: colors.cyan },
443
+ 'bead-chain': { weight: 2.5, fill: 'off', dots: 'all' },
444
+ 'comet-head': { weight: 2.5, fill: 'off', dots: 'end', pulse: true },
445
+ 'peak-flag': { weight: 2.5, fill: 'off', peaks: true, color: colors.cyan },
446
+ 'now-split': { weight: 2.5, fill: 'off', color: colors.accent },
447
+ 'goal-line': { weight: 2.5, fill: 'off', color: colors.cyan },
448
+ 'event-pins': { weight: 2.5, fill: 'off' },
449
+ 'multi-compare': {
450
+ weight: 2.5,
451
+ fill: 'off',
452
+ seriesDefaults: [
453
+ { color: colors.violet, weight: 2.2 },
454
+ { color: colors.lime, weight: 2 },
455
+ ],
456
+ },
457
+ 'you-vs-cohort': {
458
+ weight: 2.5,
459
+ fill: 'off',
460
+ seriesDefaults: [{ color: colors.text, opacity: 0.35, dash: '5 5', weight: 1.8 }],
461
+ },
462
+ 'ghost-prev': {
463
+ weight: 2.5,
464
+ fill: 'off',
465
+ color: colors.cyan,
466
+ seriesDefaults: [{ color: colors.cyan, opacity: 0.28, weight: 2 }],
467
+ },
468
+ 'calibrating-taper': { weight: 2.5, fill: 'off', color: colors.zoneMid },
469
+ 'delta-ribbon': {
470
+ weight: 2.5,
471
+ fill: 'off',
472
+ ribbon: true,
473
+ seriesDefaults: [{ color: colors.violet, weight: 2.2 }],
474
+ },
475
+ 'confidence-veil': { weight: 2.5, fill: 'off', color: colors.cyan, bandStyle: 'ci' },
476
+ 'forecast-fan': { weight: 2.5, fill: 'off', color: colors.accent },
477
+ 'range-band': { weight: 2.5, fill: 'off', color: colors.violet, bandStyle: 'range' },
478
+ 'raw-vs-avg': { fill: 'off', rawAvg: true, color: colors.cyan },
479
+ 'anomaly-spark': {
480
+ weight: 1.5,
481
+ fill: 'off',
482
+ color: colors.text,
483
+ opacity: 0.4,
484
+ anomalies: true,
485
+ },
486
+ 'zone-ribbon': { weight: 3, fill: 'off', zoneStroke: true },
487
+ 'day-fade': { weight: 3, fill: 'off', gradient: DAY_FADE, shine: true },
488
+ 'forecast-horizon': {
489
+ weight: 2.5,
490
+ fill: 'off',
491
+ color: colors.mint,
492
+ futureColor: colors.violet,
493
+ fanColor: colors.violet,
494
+ shine: true,
495
+ nowPulse: true,
496
+ },
497
+ 'zone-forecast': {
498
+ weight: 3,
499
+ fill: 'off',
500
+ zoneStroke: true,
501
+ shine: true,
502
+ nowPulse: true,
503
+ yEnds: true,
504
+ fanColor: colors.text,
505
+ },
506
+ 'coach-forecast': {
507
+ weight: 3,
508
+ fill: 'off',
509
+ zoneStroke: true,
510
+ shine: true,
511
+ nowPulse: true,
512
+ yEnds: true,
513
+ seriesDefaults: [
514
+ { color: colors.textDim, weight: 1.6, dash: '3 4', opacity: 0.75 },
515
+ { color: colors.mint, weight: 1.8, dash: '2 4', opacity: 0.6 },
516
+ ],
517
+ },
518
+ };
519
+
520
+ /** fallback overlay-series palette when neither the series nor the variant styles it */
521
+ const SERIES_FALLBACK = [colors.violet, colors.lime, colors.cyan];
522
+
523
+ /* ---------------- overlay descriptors ---------------- */
524
+
525
+ interface ODot {
526
+ x: number;
527
+ y: number;
528
+ d: number;
529
+ color: string;
530
+ glow?: boolean;
531
+ }
532
+ interface ORing {
533
+ x: number;
534
+ y: number;
535
+ d: number;
536
+ color: string;
537
+ }
538
+ interface ONote {
539
+ x: number;
540
+ y: number;
541
+ text: string;
542
+ color: string;
543
+ anchor: 'top' | 'point' | 'right';
544
+ }
545
+ interface OChip {
546
+ x: number;
547
+ y: number;
548
+ text: string;
549
+ color: string;
550
+ align: 'start' | 'center' | 'end';
551
+ }
552
+ interface OPulse {
553
+ x: number;
554
+ y: number;
555
+ color: string;
556
+ }
557
+
558
+ /** Expanding + fading ring riding a dot (NOW / comet head) — Animated loop,
559
+ * mirroring the web CSS `lk-lc-pulse` keyframes (1.8s, scale 1→3, .8→0). */
560
+ function PulseRing({ color }: { color: string }) {
561
+ const v = useRef(new Animated.Value(0)).current;
562
+ useEffect(() => {
563
+ const loop = Animated.loop(
564
+ Animated.timing(v, {
565
+ toValue: 1,
566
+ duration: 1800,
567
+ easing: Easing.out(Easing.quad),
568
+ useNativeDriver: true,
569
+ }),
570
+ );
571
+ loop.start();
572
+ return () => loop.stop();
573
+ }, [v]);
574
+ return (
575
+ <Animated.View
576
+ style={[
577
+ styles.pulse,
578
+ {
579
+ borderColor: color,
580
+ opacity: v.interpolate({ inputRange: [0, 1], outputRange: [0.8, 0] }),
581
+ transform: [{ scale: v.interpolate({ inputRange: [0, 1], outputRange: [1, 3] }) }],
582
+ },
583
+ ]}
584
+ />
585
+ );
586
+ }
587
+
588
+ /** LineChart — a generic line/area chart primitive: a smooth (monotone-cubic /
589
+ * Catmull-Rom) or straight gradient/solid line over a faint area fill and
590
+ * horizontal grid, with optional round overlay marker dots + label tags and an
591
+ * x-axis row. `variant` unlocks the 32 catalog looks (LC-01…LC-56): veils,
592
+ * tide-split, neon/halo/echo, bead/comet/peak/now/goal/pin markers, compare
593
+ * series, CI/range bands, forecast fans and zone-gradient strokes. The Svg
594
+ * stretches to the measured container width via a fixed viewBox + non-uniform
595
+ * scaling; dots and text are absolutely-positioned Views placed by percentage
596
+ * so they stay perfectly round/legible. Glow/shine render as Gaussian-blurred
597
+ * duplicate paths (Fabric-native SVG filters — Ring precedent). */
598
+ export function LineChart({
599
+ variant,
600
+ data = DEFAULT_DATA,
601
+ axis = DEFAULT_AXIS,
602
+ color,
603
+ gradient,
604
+ area,
605
+ smooth = true,
606
+ curve,
607
+ pattern,
608
+ weight,
609
+ shine,
610
+ yDomain,
611
+ height = 180,
612
+ markers,
613
+ grid = true,
614
+ yAxis = false,
615
+ yTicks,
616
+ band,
617
+ fan,
618
+ dashedFromIndex,
619
+ now,
620
+ nowPulse,
621
+ nowLabel = 'NOW',
622
+ taper,
623
+ taperLabel = 'CALIBRATING',
624
+ goal,
625
+ goalLabel = 'GOAL',
626
+ baseline,
627
+ pins,
628
+ series,
629
+ ribbon,
630
+ labels,
631
+ dots,
632
+ pulse,
633
+ peaks,
634
+ anomalies,
635
+ anomalyThreshold,
636
+ zoneStroke,
637
+ yEnds,
638
+ futureColor,
639
+ echo,
640
+ style,
641
+ }: LineChartProps) {
642
+ const [width, setWidth] = useState(0);
643
+ const onLayout = (e: LayoutChangeEvent) => setWidth(e.nativeEvent.layout.width);
644
+ const uid = useId();
645
+ const strokeId = `lk-lc-stroke-${uid}`;
646
+ const fillId = `lk-lc-fill-${uid}`;
647
+ const zoneId = `lk-lc-zone-${uid}`;
648
+ const bandId = `lk-lc-band-${uid}`;
649
+ const fanId = `lk-lc-fan-${uid}`;
650
+ const splitId = `lk-lc-split-${uid}`;
651
+ const glowBlurId = `lk-lc-glowblur-${uid}`;
652
+ const shineBlurId = `lk-lc-shineblur-${uid}`;
653
+
654
+ const preset = variant ? PRESETS[variant] : undefined;
655
+
656
+ /* ---- resolved options: explicit prop > variant preset > legacy default ---- */
657
+ const strokeColor = color ?? preset?.color ?? colors.mint;
658
+ const gradInput = gradient ?? preset?.gradient;
659
+ const gradStops: GradientStop[] | null =
660
+ Array.isArray(gradInput) && gradInput.length >= 2
661
+ ? typeof gradInput[0] === 'string'
662
+ ? (gradInput as string[]).map((c, i) => ({ offset: i / (gradInput.length - 1), color: c }))
663
+ : (gradInput as GradientStop[])
664
+ : null;
665
+ const w = weight ?? preset?.weight ?? (variant ? 2.5 : 3);
666
+ const mainOpacity = preset?.opacity;
667
+ const mainDash = patternDash(pattern ?? preset?.pattern);
668
+ const wantShine = shine ?? preset?.shine ?? false;
669
+ const glowCfg = preset?.glow;
670
+ const echoN = echo ?? preset?.echo ?? 0;
671
+ const dotsMode = dots ?? preset?.dots ?? 'none';
672
+ const wantPulse = pulse ?? preset?.pulse ?? false;
673
+ const wantPeaks = peaks ?? preset?.peaks ?? false;
674
+ const wantAnoms = anomalies ?? preset?.anomalies ?? false;
675
+ const wantZone = zoneStroke ?? preset?.zoneStroke ?? false;
676
+ const wantRibbon = (ribbon ?? preset?.ribbon ?? false) && !!series?.length;
677
+ const wantYEnds = yEnds ?? preset?.yEnds ?? false;
678
+ const wantNowPulse = nowPulse ?? preset?.nowPulse ?? false;
679
+ const futColor = futureColor ?? preset?.futureColor;
680
+ const wantRawAvg = preset?.rawAvg ?? false;
681
+ const bandStyle = preset?.bandStyle;
682
+
683
+ // area fill mode: explicit `area` > variant preset > legacy default (on)
684
+ const fillMode: 'legacy' | 'veil' | 'glass' | 'split' | null = (() => {
685
+ const presetFill = preset?.fill;
686
+ if (area === false) return null;
687
+ if (area === true) {
688
+ if (presetFill === 'glass' || presetFill === 'split') return presetFill;
689
+ return variant ? 'veil' : 'legacy';
690
+ }
691
+ if (variant) return presetFill === 'off' || presetFill == null ? null : presetFill;
692
+ return 'legacy';
693
+ })();
694
+
695
+ /* ---- shared y-scale: data ∪ band ∪ fan ∪ series ∪ goal/baseline, or yDomain ---- */
696
+ const hasBand = !!band && band.upper.length > 0 && band.lower.length > 0;
697
+ const hasFan = !!fan && fan.upper.length > 0 && fan.lower.length > 0;
698
+ const scaleVals: number[] = hasBand ? [...data, ...band!.upper, ...band!.lower] : [...data];
699
+ if (hasFan) scaleVals.push(...fan!.upper, ...fan!.lower);
700
+ series?.forEach((s) => scaleVals.push(...s.data));
701
+ if (goal != null) scaleVals.push(goal);
702
+ if (baseline != null) scaleVals.push(baseline);
703
+ const dMin = yDomain ? yDomain[0] : scaleVals.length ? Math.min(...scaleVals) : 0;
704
+ const dMax = yDomain ? yDomain[1] : scaleVals.length ? Math.max(...scaleVals) : 0;
705
+ const dSpan = dMax - dMin || 1;
706
+
707
+ /* ---- curve: variants (and explicit `curve`) use the monotone catalog math ---- */
708
+ const curveKind: LineCurve = curve ?? (smooth ? 'smooth' : 'linear');
709
+ const legacySmoothing = variant == null && curve == null;
710
+ const pathFor = (p: Array<[number, number]>, k: LineCurve = curveKind): string =>
711
+ k === 'step'
712
+ ? stepPath(p)
713
+ : k === 'linear'
714
+ ? linePath(p)
715
+ : legacySmoothing
716
+ ? smoothPath(p)
717
+ : monotonePath(p);
718
+
719
+ const pts = mapPoints(data, data.length, height, dMin, dSpan);
720
+ const line = pathFor(pts);
721
+ // close the line down to the floor for the area fill — drop straight down from
722
+ // the last/first points (which are inset by PAD_X) so the fill stays aligned.
723
+ const firstX = pts.length ? r(pts[0][0]) : 0;
724
+ const lastX = pts.length ? r(pts[pts.length - 1][0]) : 0;
725
+ const areaPath = line ? `${line} L${lastX},${height} L${firstX},${height} Z` : '';
726
+
727
+ /* ---- main-line split: `now`/`taper` (catalog 5-5) or legacy dashedFromIndex ---- */
728
+ const clampIdx = (i: number) => Math.max(0, Math.min(data.length - 1, Math.round(i)));
729
+ const nowIdx = now != null && data.length > 1 ? clampIdx(now) : null;
730
+ const taperIdx = taper != null && data.length > 1 ? clampIdx(taper) : null;
731
+ const variantSplit =
732
+ nowIdx != null && nowIdx > 0 && nowIdx < pts.length - 1
733
+ ? nowIdx
734
+ : taperIdx != null && taperIdx > 0 && taperIdx < pts.length - 1
735
+ ? taperIdx
736
+ : null;
737
+ // legacy split (kept byte-identical when no variant props are used)
738
+ const splitAt =
739
+ variantSplit == null &&
740
+ dashedFromIndex != null &&
741
+ dashedFromIndex > 0 &&
742
+ dashedFromIndex < pts.length - 1
743
+ ? dashedFromIndex
744
+ : null;
745
+ const headEnd = variantSplit ?? splitAt;
746
+ const solidPts = headEnd != null ? pts.slice(0, headEnd + 1) : pts;
747
+ const dashPts = headEnd != null ? pts.slice(headEnd) : [];
748
+ const solidLine = headEnd != null ? pathFor(solidPts) : line;
749
+ const dashLine = headEnd != null ? pathFor(dashPts) : '';
750
+
751
+ /* ---- band ribbon (legacy solid / LC-45 CI / LC-47 range) ---- */
752
+ const bandUpperPts = hasBand ? mapPoints(band!.upper, data.length, height, dMin, dSpan) : [];
753
+ const bandLowerPts = hasBand ? mapPoints(band!.lower, data.length, height, dMin, dSpan) : [];
754
+ const bandLowerBack = bandLowerPts
755
+ .slice()
756
+ .reverse()
757
+ .map(([x, y]) => `L${r(x)},${r(y)}`)
758
+ .join(' ');
759
+ const bandPath =
760
+ hasBand && bandUpperPts.length > 0 && bandLowerPts.length > 0
761
+ ? bandStyle
762
+ ? `${pathFor(bandUpperPts)} ${bandLowerBack} Z`
763
+ : `${linePath(bandUpperPts)} ${bandLowerBack} Z`
764
+ : '';
765
+ const bandFill = band?.color ?? strokeColor;
766
+
767
+ /* ---- forecast fan: drawn from the `now` index (LC-46/52/54) ---- */
768
+ const fanFrom = nowIdx ?? 0;
769
+ const fanUpperPts = hasFan
770
+ ? mapPoints(fan!.upper, data.length, height, dMin, dSpan).slice(fanFrom)
771
+ : [];
772
+ const fanLowerPts = hasFan
773
+ ? mapPoints(fan!.lower, data.length, height, dMin, dSpan).slice(fanFrom)
774
+ : [];
775
+ const fanPath =
776
+ fanUpperPts.length > 1
777
+ ? `${pathFor(fanUpperPts)} ${fanLowerPts
778
+ .slice()
779
+ .reverse()
780
+ .map(([x, y]) => `L${r(x)},${r(y)}`)
781
+ .join(' ')} Z`
782
+ : '';
783
+ const fanColor = fan?.color ?? preset?.fanColor ?? colors.accent;
784
+
785
+ /* ---- stroke refs ---- */
786
+ const useGradient = gradStops != null && !wantZone;
787
+ const stroke = wantZone ? `url(#${zoneId})` : useGradient ? `url(#${strokeId})` : strokeColor;
788
+ const pastStroke = stroke;
789
+ const futStroke = wantZone ? stroke : (futColor ?? stroke);
790
+ const nowDotColor = isUrlRef(pastStroke) ? colors.text : pastStroke;
791
+ const plainDotColor = isUrlRef(stroke) ? colors.mint : stroke;
792
+
793
+ /* ---- raw-vs-avg (LC-48) ---- */
794
+ const avgPts = wantRawAvg ? mapPoints(movAvg(data, 5), data.length, height, dMin, dSpan) : [];
795
+
796
+ /* ---- glow (neon/halo): Gaussian-blurred duplicate path ---- */
797
+ const glowColor = glowCfg
798
+ ? (glowCfg.color ?? (isUrlRef(stroke) ? colors.accent : strokeColor))
799
+ : null;
800
+
801
+ /* ---- tide-split geometry (LC-19) ---- */
802
+ const baseVal = baseline ?? dMin + dSpan / 2;
803
+ const baseY = valueToY(baseVal, dMin, dSpan, height);
804
+ const splitAreaPath = line ? `${line} L${lastX},${r(baseY)} L${firstX},${r(baseY)} Z` : '';
805
+
806
+ /* ---- goal rule (LC-37) ---- */
807
+ const goalY = goal != null ? valueToY(goal, dMin, dSpan, height) : null;
808
+
809
+ /* ---- overlays (Views — stay round/legible under the non-uniform stretch) ---- */
810
+ const oDots: ODot[] = [];
811
+ const oRings: ORing[] = [];
812
+ const oNotes: ONote[] = [];
813
+ const oChips: OChip[] = [];
814
+ const oPulses: OPulse[] = [];
815
+
816
+ if (dotsMode === 'all') for (const [x, y] of pts) oDots.push({ x, y, d: 5.2, color: plainDotColor });
817
+ if (dotsMode === 'end' || wantPulse) {
818
+ const last = pts[pts.length - 1];
819
+ if (last) {
820
+ oDots.push({ x: last[0], y: last[1], d: 7.2, color: plainDotColor, glow: true });
821
+ if (wantPulse) oPulses.push({ x: last[0], y: last[1], color: plainDotColor });
822
+ }
823
+ }
824
+ if (wantPeaks && data.length > 1) {
825
+ const mx = data.indexOf(Math.max(...data));
826
+ const mn = data.indexOf(Math.min(...data));
827
+ oDots.push({ x: pts[mx][0], y: pts[mx][1], d: 6.4, color: colors.mint, glow: true });
828
+ oNotes.push({ x: pts[mx][0], y: pts[mx][1] - 10, text: 'PEAK', color: colors.mint, anchor: 'point' });
829
+ oDots.push({ x: pts[mn][0], y: pts[mn][1], d: 6.4, color: colors.zoneLow, glow: true });
830
+ oNotes.push({ x: pts[mn][0], y: pts[mn][1] + 12, text: 'DIP', color: colors.zoneLow, anchor: 'point' });
831
+ }
832
+ if (goalY != null) {
833
+ oNotes.push({ x: VB_W, y: goalY - 8, text: goalLabel, color: colors.zoneMid, anchor: 'right' });
834
+ data.forEach((v, i) => {
835
+ if (goal != null && v > goal) oDots.push({ x: pts[i][0], y: pts[i][1], d: 4.4, color: colors.mint });
836
+ });
837
+ }
838
+ pins?.forEach((pi) => {
839
+ const q = pts[clampIdx(pi)];
840
+ if (!q) return;
841
+ oDots.push({ x: q[0], y: q[1] - 19, d: 6, color: colors.accent, glow: true });
842
+ oDots.push({ x: q[0], y: q[1], d: 4.4, color: colors.text });
843
+ });
844
+ if (nowIdx != null && pts[nowIdx]) {
845
+ oDots.push({ x: pts[nowIdx][0], y: pts[nowIdx][1], d: 7.2, color: nowDotColor, glow: true });
846
+ if (wantNowPulse) oPulses.push({ x: pts[nowIdx][0], y: pts[nowIdx][1], color: nowDotColor });
847
+ oNotes.push({ x: pts[nowIdx][0], y: 0, text: nowLabel, color: colors.textDim, anchor: 'top' });
848
+ }
849
+ if (taperIdx != null && nowIdx == null) {
850
+ const li = Math.min(taperIdx + 3, pts.length - 1);
851
+ oNotes.push({ x: pts[li][0], y: 0, text: taperLabel, color: colors.zoneMid, anchor: 'top' });
852
+ }
853
+ if (wantAnoms && data.length > 1) {
854
+ const avg = movAvg(data, 5);
855
+ const thr = anomalyThreshold ?? dSpan * 0.14;
856
+ data.forEach((v, i) => {
857
+ if (Math.abs(v - avg[i]) > thr) {
858
+ oDots.push({ x: pts[i][0], y: pts[i][1], d: 6.4, color: colors.zoneLow, glow: true });
859
+ oRings.push({ x: pts[i][0], y: pts[i][1], d: 12, color: colors.zoneLow });
860
+ }
861
+ });
862
+ }
863
+ if (wantYEnds) {
864
+ oNotes.push({ x: PAD_X + 6, y: PAD_Y, text: '100', color: colors.zoneHigh, anchor: 'point' });
865
+ oNotes.push({ x: PAD_X + 2, y: height - PAD_Y, text: '0', color: colors.zoneLow, anchor: 'point' });
866
+ }
867
+ labels?.forEach((L) => {
868
+ const q = pts[clampIdx(L.index)];
869
+ if (!q) return;
870
+ oChips.push({
871
+ x: q[0],
872
+ y: q[1] + (L.dy ?? -12),
873
+ text: L.text,
874
+ color: L.color ?? colors.textDim,
875
+ align: chipAlign(q[0], L.text),
876
+ });
877
+ });
878
+
879
+ /* ---- overlay series (LC-39/41/42/44/56) ---- */
880
+ const seriesRender = (series ?? []).map((s, i) => {
881
+ const sd = preset?.seriesDefaults?.[i];
882
+ const sColor = s.color ?? sd?.color ?? SERIES_FALLBACK[i % SERIES_FALLBACK.length];
883
+ const sW = s.weight ?? sd?.weight ?? 2;
884
+ const sDash = s.dash ?? patternDash(s.pattern) ?? sd?.dash;
885
+ const sOpacity = s.opacity ?? sd?.opacity;
886
+ const sPts = mapPoints(s.data, data.length, height, dMin, dSpan, s.fromIndex ?? 0);
887
+ const d = pathFor(sPts, s.curve ?? curveKind);
888
+ if (s.label && sPts.length > 0) {
889
+ const li = Math.max(0, Math.min(sPts.length - 1, s.labelIndex ?? sPts.length - 1));
890
+ oChips.push({
891
+ x: sPts[li][0],
892
+ y: sPts[li][1] + (s.labelDy ?? -12),
893
+ text: s.label,
894
+ color: sColor,
895
+ align: chipAlign(sPts[li][0], s.label),
896
+ });
897
+ }
898
+ return { d, sColor, sW, sDash, sOpacity, sPts, key: i };
899
+ });
900
+
901
+ /* ---- delta ribbon between data and series[0] (LC-44) ---- */
902
+ const ribbonPath =
903
+ wantRibbon && seriesRender[0] && seriesRender[0].sPts.length > 0
904
+ ? `${line} ${seriesRender[0].sPts
905
+ .slice()
906
+ .reverse()
907
+ .map(([x, y]) => `L${r(x)},${r(y)}`)
908
+ .join(' ')} Z`
909
+ : '';
910
+
911
+ const ticks = yAxis ? (yTicks && yTicks.length > 0 ? yTicks : deriveTicks(dMin, dMax)) : [];
912
+ const tickRows = ticks.map((v) => ({ v, y: valueToY(v, dMin, dSpan, height) }));
913
+
914
+ // the drawing area shrinks by the gutter width when the y-axis is on, so the
915
+ // line/markers stay in lock-step with the value labels (the line still uses
916
+ // the full data range — only the rendered width changes).
917
+ const canvasW = yAxis ? Math.max(0, width - Y_GUTTER) : width;
918
+
919
+ // interior gridline y-positions — align with the ticks when the y-axis is on,
920
+ // otherwise the evenly-spaced default interior lines.
921
+ let gridYs: number[] = [];
922
+ if (grid) {
923
+ if (yAxis && tickRows.length > 0) {
924
+ gridYs = tickRows.map((t) => t.y);
925
+ } else {
926
+ for (let i = 1; i <= GRID_LINES; i++) {
927
+ gridYs.push((height / (GRID_LINES + 1)) * i);
928
+ }
929
+ }
930
+ }
931
+
932
+ const ox = (x: number) => `${(x / VB_W) * 100}%` as DimensionValue;
933
+ const oy = (y: number) => `${(y / height) * 100}%` as DimensionValue;
934
+ const drawMain = fillMode !== 'split' && !wantRawAvg;
935
+
936
+ return (
937
+ <View style={[styles.root, style]}>
938
+ <View style={[styles.plot, { height }]} onLayout={onLayout}>
939
+ <View style={[styles.canvas, { width: canvasW }]}>
940
+ {canvasW > 0 && (
941
+ <Svg
942
+ width={canvasW}
943
+ height={height}
944
+ viewBox={`0 0 ${VB_W} ${height}`}
945
+ preserveAspectRatio="none"
946
+ >
947
+ <Defs>
948
+ {useGradient && (
949
+ <LinearGradient id={strokeId} x1="0" y1="0" x2={VB_W} y2="0" gradientUnits="userSpaceOnUse">
950
+ {gradStops!.map((stop, i) => (
951
+ <Stop key={i} offset={stop.offset} stopColor={stop.color} />
952
+ ))}
953
+ </LinearGradient>
954
+ )}
955
+ {wantZone && (
956
+ <LinearGradient
957
+ id={zoneId}
958
+ x1="0"
959
+ y1={PAD_Y}
960
+ x2="0"
961
+ y2={height - PAD_Y}
962
+ gradientUnits="userSpaceOnUse"
963
+ >
964
+ <Stop offset="0" stopColor={colors.zoneHigh} />
965
+ <Stop offset="0.52" stopColor={colors.zoneMid} />
966
+ <Stop offset="1" stopColor={colors.zoneLow} />
967
+ </LinearGradient>
968
+ )}
969
+ {(fillMode === 'legacy' || fillMode === 'veil' || variant == null) && (
970
+ <LinearGradient id={fillId} x1="0" y1="0" x2="0" y2={height} gradientUnits="userSpaceOnUse">
971
+ <Stop offset="0" stopColor={strokeColor} stopOpacity={0.26} />
972
+ <Stop offset="1" stopColor={strokeColor} stopOpacity={fillMode === 'veil' ? 0.02 : 0} />
973
+ </LinearGradient>
974
+ )}
975
+ {fillMode === 'split' && (
976
+ <>
977
+ <LinearGradient id={`${splitId}-au`} x1="0" y1="0" x2="0" y2="1">
978
+ <Stop offset="0" stopColor={colors.mint} stopOpacity={0.28} />
979
+ <Stop offset="1" stopColor={colors.mint} stopOpacity={0.02} />
980
+ </LinearGradient>
981
+ <LinearGradient id={`${splitId}-al`} x1="0" y1="0" x2="0" y2="1">
982
+ <Stop offset="0" stopColor={colors.zoneLow} stopOpacity={0.02} />
983
+ <Stop offset="1" stopColor={colors.zoneLow} stopOpacity={0.26} />
984
+ </LinearGradient>
985
+ <ClipPath id={`${splitId}-cu`}>
986
+ <Rect x={0} y={0} width={VB_W} height={r(baseY)} />
987
+ </ClipPath>
988
+ <ClipPath id={`${splitId}-cl`}>
989
+ <Rect x={0} y={r(baseY)} width={VB_W} height={Math.max(0, height - baseY)} />
990
+ </ClipPath>
991
+ </>
992
+ )}
993
+ {bandStyle && (
994
+ <LinearGradient id={bandId} x1="0" y1="0" x2="0" y2="1">
995
+ <Stop offset="0" stopColor={bandFill} stopOpacity={bandStyle === 'ci' ? 0.16 : 0.14} />
996
+ <Stop offset="1" stopColor={bandFill} stopOpacity={0.03} />
997
+ </LinearGradient>
998
+ )}
999
+ {fanPath ? (
1000
+ <LinearGradient id={fanId} x1="0" y1="0" x2="1" y2="0">
1001
+ <Stop offset="0" stopColor={fanColor} stopOpacity={0.2} />
1002
+ <Stop offset="1" stopColor={fanColor} stopOpacity={0.02} />
1003
+ </LinearGradient>
1004
+ ) : null}
1005
+ {/* real Gaussian blurs for the neon/halo glow + shine underlays
1006
+ (Fabric-native in react-native-svg 15) — the native twins of the
1007
+ web line's `drop-shadow(0 0 {r}px …)` / `blur(5px)`. Regions in
1008
+ user space so a flat line never clips the blur to its bbox. */}
1009
+ {glowCfg ? (
1010
+ <Filter
1011
+ id={glowBlurId}
1012
+ filterUnits="userSpaceOnUse"
1013
+ x={-24}
1014
+ y={-24}
1015
+ width={VB_W + 48}
1016
+ height={height + 48}
1017
+ >
1018
+ <FeGaussianBlur stdDeviation={glowCfg.r / 2} />
1019
+ </Filter>
1020
+ ) : null}
1021
+ {wantShine ? (
1022
+ <Filter
1023
+ id={shineBlurId}
1024
+ filterUnits="userSpaceOnUse"
1025
+ x={-16}
1026
+ y={-16}
1027
+ width={VB_W + 32}
1028
+ height={height + 32}
1029
+ >
1030
+ <FeGaussianBlur stdDeviation={2.5} />
1031
+ </Filter>
1032
+ ) : null}
1033
+ </Defs>
1034
+
1035
+ {/* faint horizontal gridlines */}
1036
+ {gridYs.map((gy) => (
1037
+ <Line key={gy} x1={0} y1={r(gy)} x2={VB_W} y2={r(gy)} stroke={colors.border} strokeWidth={1} opacity={0.6} />
1038
+ ))}
1039
+
1040
+ {/* uncertainty ribbon — legacy solid, or the LC-45 CI / LC-47 range styling */}
1041
+ {bandPath && !bandStyle ? (
1042
+ <Path d={bandPath} fill={bandFill} fillOpacity={0.14} stroke="none" />
1043
+ ) : null}
1044
+ {bandPath && bandStyle === 'ci' ? (
1045
+ <Path
1046
+ d={bandPath}
1047
+ fill={`url(#${bandId})`}
1048
+ stroke={bandFill}
1049
+ strokeOpacity={0.25}
1050
+ strokeWidth={0.7}
1051
+ />
1052
+ ) : null}
1053
+ {bandPath && bandStyle === 'range' ? (
1054
+ <>
1055
+ <Path d={bandPath} fill={`url(#${bandId})`} stroke="none" />
1056
+ <Path d={pathFor(bandUpperPts)} fill="none" stroke={bandFill} strokeOpacity={0.3} strokeWidth={1} />
1057
+ <Path d={pathFor(bandLowerPts)} fill="none" stroke={bandFill} strokeOpacity={0.3} strokeWidth={1} />
1058
+ </>
1059
+ ) : null}
1060
+
1061
+ {/* forecast fan — widening uncertainty from the NOW anchor (LC-46/52/54) */}
1062
+ {fanPath ? <Path d={fanPath} fill={`url(#${fanId})`} stroke="none" /> : null}
1063
+
1064
+ {/* delta ribbon between the two series (LC-44) */}
1065
+ {ribbonPath ? <Path d={ribbonPath} fill={colors.accent} fillOpacity={0.12} stroke="none" /> : null}
1066
+
1067
+ {/* area fills: legacy/veil fade · flat glass · tide-split (LC-15/19/20) */}
1068
+ {(fillMode === 'legacy' || fillMode === 'veil') && areaPath ? (
1069
+ <Path d={areaPath} fill={`url(#${fillId})`} />
1070
+ ) : null}
1071
+ {fillMode === 'glass' && areaPath ? <Path d={areaPath} fill={colors.glass2} /> : null}
1072
+ {fillMode === 'split' && splitAreaPath ? (
1073
+ <>
1074
+ <Path d={splitAreaPath} fill={`url(#${splitId}-au)`} clipPath={`url(#${splitId}-cu)`} />
1075
+ <Path d={splitAreaPath} fill={`url(#${splitId}-al)`} clipPath={`url(#${splitId}-cl)`} />
1076
+ <Path
1077
+ d={line}
1078
+ fill="none"
1079
+ stroke={colors.mint}
1080
+ strokeWidth={2.2}
1081
+ strokeLinecap="round"
1082
+ clipPath={`url(#${splitId}-cu)`}
1083
+ />
1084
+ <Path
1085
+ d={line}
1086
+ fill="none"
1087
+ stroke={colors.zoneLow}
1088
+ strokeWidth={2.2}
1089
+ strokeLinecap="round"
1090
+ clipPath={`url(#${splitId}-cl)`}
1091
+ />
1092
+ <Line
1093
+ x1={0}
1094
+ x2={VB_W}
1095
+ y1={r(baseY)}
1096
+ y2={r(baseY)}
1097
+ stroke={colors.text}
1098
+ strokeOpacity={0.18}
1099
+ strokeWidth={1}
1100
+ strokeDasharray="3 4"
1101
+ />
1102
+ </>
1103
+ ) : null}
1104
+
1105
+ {/* raw series + 5-pt moving average (LC-48) */}
1106
+ {wantRawAvg ? (
1107
+ <>
1108
+ <Path d={linePath(pts)} fill="none" stroke={colors.text} strokeOpacity={0.16} strokeWidth={1} />
1109
+ <Path
1110
+ d={monotonePath(avgPts)}
1111
+ fill="none"
1112
+ stroke={stroke}
1113
+ strokeWidth={2.6}
1114
+ strokeLinecap="round"
1115
+ strokeLinejoin="round"
1116
+ />
1117
+ </>
1118
+ ) : null}
1119
+
1120
+ {/* ghost echoes — offset faint copies (LC-32) */}
1121
+ {echoN > 0
1122
+ ? Array.from({ length: echoN }, (_, i) => echoN - i).map((e) => (
1123
+ <Path
1124
+ key={`echo-${e}`}
1125
+ d={line}
1126
+ fill="none"
1127
+ stroke={stroke}
1128
+ strokeWidth={w}
1129
+ strokeLinecap="round"
1130
+ transform={`translate(0, ${e * 7})`}
1131
+ opacity={Math.max(0, 0.28 - e * 0.09)}
1132
+ />
1133
+ ))
1134
+ : null}
1135
+
1136
+ {/* neon/halo glow — a Gaussian-blurred duplicate of the line behind it:
1137
+ the same soft halo the web line gets from
1138
+ `drop-shadow(0 0 {glowCfg.r}px color-mix(glow {alpha}%))`. */}
1139
+ {drawMain && glowCfg && solidLine ? (
1140
+ <Path
1141
+ d={solidLine}
1142
+ fill="none"
1143
+ stroke={glowColor!}
1144
+ strokeWidth={w + 2}
1145
+ strokeLinecap="round"
1146
+ strokeOpacity={glowCfg.alpha}
1147
+ filter={`url(#${glowBlurId})`}
1148
+ />
1149
+ ) : null}
1150
+
1151
+ {/* shine — a Gaussian-blurred hue-matched duplicate under the line:
1152
+ the same underlay the web line blurs with `blur(5px)`
1153
+ (gradient/zone-safe, unlike a single-color drop-shadow). */}
1154
+ {drawMain && wantShine && solidLine ? (
1155
+ <Path
1156
+ d={solidLine}
1157
+ fill="none"
1158
+ stroke={pastStroke}
1159
+ strokeWidth={w + 5}
1160
+ strokeLinecap="round"
1161
+ strokeDasharray={headEnd == null ? mainDash : undefined}
1162
+ strokeOpacity={0.45}
1163
+ filter={`url(#${shineBlurId})`}
1164
+ />
1165
+ ) : null}
1166
+ {drawMain && wantShine && dashLine ? (
1167
+ <Path
1168
+ d={dashLine}
1169
+ fill="none"
1170
+ stroke={futStroke}
1171
+ strokeWidth={w + 5}
1172
+ strokeLinecap="round"
1173
+ strokeDasharray="5 5"
1174
+ strokeOpacity={0.45}
1175
+ filter={`url(#${shineBlurId})`}
1176
+ />
1177
+ ) : null}
1178
+
1179
+ {/* the main line — split into a solid head + dashed forecast tail when
1180
+ `now`/`taper`/`dashedFromIndex` is set; one continuous path otherwise */}
1181
+ {drawMain && solidLine ? (
1182
+ <Path
1183
+ d={solidLine}
1184
+ fill="none"
1185
+ stroke={pastStroke}
1186
+ strokeWidth={w}
1187
+ strokeLinecap="round"
1188
+ strokeLinejoin="round"
1189
+ strokeDasharray={headEnd == null ? mainDash : undefined}
1190
+ opacity={mainOpacity}
1191
+ />
1192
+ ) : null}
1193
+ {drawMain && dashLine && variantSplit != null ? (
1194
+ <Path
1195
+ d={dashLine}
1196
+ fill="none"
1197
+ stroke={futStroke}
1198
+ strokeWidth={w}
1199
+ strokeLinecap="round"
1200
+ strokeLinejoin="round"
1201
+ strokeDasharray="5 5"
1202
+ opacity={0.75}
1203
+ />
1204
+ ) : null}
1205
+ {drawMain && dashLine && variantSplit == null ? (
1206
+ <Path
1207
+ d={dashLine}
1208
+ fill="none"
1209
+ stroke={stroke}
1210
+ strokeWidth={w}
1211
+ strokeLinecap="round"
1212
+ strokeLinejoin="round"
1213
+ strokeDasharray="6 6"
1214
+ opacity={0.85}
1215
+ />
1216
+ ) : null}
1217
+
1218
+ {/* overlay series (LC-39/41/42/44/56) */}
1219
+ {seriesRender.map((s) => (
1220
+ <Path
1221
+ key={`s-${s.key}`}
1222
+ d={s.d}
1223
+ fill="none"
1224
+ stroke={s.sColor}
1225
+ strokeWidth={s.sW}
1226
+ strokeLinecap="round"
1227
+ strokeLinejoin="round"
1228
+ strokeDasharray={s.sDash}
1229
+ opacity={s.sOpacity}
1230
+ />
1231
+ ))}
1232
+
1233
+ {/* GOAL rule (LC-37) */}
1234
+ {goalY != null ? (
1235
+ <Line
1236
+ x1={0}
1237
+ x2={VB_W}
1238
+ y1={r(goalY)}
1239
+ y2={r(goalY)}
1240
+ stroke={colors.zoneMid}
1241
+ strokeWidth={1}
1242
+ strokeDasharray="5 4"
1243
+ opacity={0.8}
1244
+ />
1245
+ ) : null}
1246
+
1247
+ {/* NOW rule (LC-36/46/52/54/56) */}
1248
+ {nowIdx != null && pts[nowIdx] ? (
1249
+ <Line
1250
+ x1={r(pts[nowIdx][0])}
1251
+ x2={r(pts[nowIdx][0])}
1252
+ y1={2}
1253
+ y2={height}
1254
+ stroke={colors.text}
1255
+ strokeOpacity={0.22}
1256
+ strokeWidth={1}
1257
+ />
1258
+ ) : null}
1259
+
1260
+ {/* event-pin stems (LC-38) — dots are View overlays */}
1261
+ {pins?.map((pi, i) => {
1262
+ const q = pts[clampIdx(pi)];
1263
+ if (!q) return null;
1264
+ return (
1265
+ <Line
1266
+ key={`pin-${i}`}
1267
+ x1={r(q[0])}
1268
+ x2={r(q[0])}
1269
+ y1={r(q[1])}
1270
+ y2={r(q[1] - 16)}
1271
+ stroke={colors.text}
1272
+ strokeOpacity={0.3}
1273
+ strokeWidth={1}
1274
+ />
1275
+ );
1276
+ })}
1277
+ </Svg>
1278
+ )}
1279
+
1280
+ {/* round marker overlays — positioned by % so they stay circular */}
1281
+ {markers?.map((m, i) => {
1282
+ const pt = pts[m.index];
1283
+ if (!pt) return null;
1284
+ const left = `${(pt[0] / VB_W) * 100}%` as DimensionValue;
1285
+ const top = `${(pt[1] / height) * 100}%` as DimensionValue;
1286
+ const dot = m.color ?? strokeColor;
1287
+ return (
1288
+ <View key={i} style={[styles.marker, { left, top }]} pointerEvents="none">
1289
+ {m.label ? (
1290
+ <View style={[styles.tag, { borderColor: dot }]}>
1291
+ <Text style={[styles.tagText, { color: dot }]}>{m.label}</Text>
1292
+ </View>
1293
+ ) : null}
1294
+ <View style={[styles.dot, { backgroundColor: dot }]} />
1295
+ </View>
1296
+ );
1297
+ })}
1298
+
1299
+ {/* variant dot overlays (beads, comet head, peaks, goal hits, pins, now, anomalies) */}
1300
+ {oDots.map((d, i) => (
1301
+ <View key={`vd-${i}`} style={[styles.anchor, { left: ox(d.x), top: oy(d.y) }]} pointerEvents="none">
1302
+ <View
1303
+ style={[
1304
+ { position: 'absolute', width: d.d, height: d.d, borderRadius: d.d / 2, backgroundColor: d.color },
1305
+ d.glow
1306
+ ? { shadowColor: d.color, shadowOpacity: 0.8, shadowRadius: 6, shadowOffset: { width: 0, height: 0 }, elevation: 3 }
1307
+ : null,
1308
+ ]}
1309
+ />
1310
+ </View>
1311
+ ))}
1312
+ {oRings.map((g, i) => (
1313
+ <View key={`vr-${i}`} style={[styles.anchor, { left: ox(g.x), top: oy(g.y) }]} pointerEvents="none">
1314
+ <View
1315
+ style={{
1316
+ position: 'absolute',
1317
+ width: g.d,
1318
+ height: g.d,
1319
+ borderRadius: g.d / 2,
1320
+ borderWidth: 1,
1321
+ borderColor: g.color,
1322
+ opacity: 0.5,
1323
+ }}
1324
+ />
1325
+ </View>
1326
+ ))}
1327
+ {oPulses.map((p, i) => (
1328
+ <View key={`vp-${i}`} style={[styles.anchor, { left: ox(p.x), top: oy(p.y) }]} pointerEvents="none">
1329
+ <PulseRing color={p.color} />
1330
+ </View>
1331
+ ))}
1332
+ {oNotes.map((nte, i) =>
1333
+ nte.anchor === 'right' ? (
1334
+ <Text
1335
+ key={`vn-${i}`}
1336
+ style={[styles.note, { position: 'absolute', right: 2, top: oy(nte.y), marginTop: -4, color: nte.color }]}
1337
+ >
1338
+ {nte.text}
1339
+ </Text>
1340
+ ) : (
1341
+ <View
1342
+ key={`vn-${i}`}
1343
+ style={[
1344
+ nte.anchor === 'top' ? styles.anchorTop : styles.anchor,
1345
+ { left: ox(nte.x), top: nte.anchor === 'top' ? 0 : oy(nte.y) },
1346
+ ]}
1347
+ pointerEvents="none"
1348
+ >
1349
+ <Text style={[styles.note, { position: 'absolute', color: nte.color }]} numberOfLines={1}>
1350
+ {nte.text}
1351
+ </Text>
1352
+ </View>
1353
+ ),
1354
+ )}
1355
+ {oChips.map((c, i) => (
1356
+ <View
1357
+ key={`vc-${i}`}
1358
+ // edge-anchored pills hang inward from their point instead of
1359
+ // centering on it (the default anchor), so they never clip
1360
+ style={[
1361
+ c.align === 'end' ? styles.anchorEnd : c.align === 'start' ? styles.anchorStart : styles.anchor,
1362
+ { left: ox(c.x), top: oy(c.y) },
1363
+ ]}
1364
+ pointerEvents="none"
1365
+ >
1366
+ <View style={[styles.chip, { borderColor: c.color }]}>
1367
+ <Text style={[styles.chipText, { color: c.color }]} numberOfLines={1}>
1368
+ {c.text}
1369
+ </Text>
1370
+ </View>
1371
+ </View>
1372
+ ))}
1373
+ </View>
1374
+
1375
+ {/* y-axis value labels, pinned in the right gutter at each tick's y */}
1376
+ {yAxis && tickRows.length > 0 ? (
1377
+ <View style={styles.yaxis} pointerEvents="none">
1378
+ {tickRows.map((t, i) => (
1379
+ <Text
1380
+ key={i}
1381
+ style={[styles.ytick, { top: `${(t.y / height) * 100}%` as DimensionValue }]}
1382
+ numberOfLines={1}
1383
+ >
1384
+ {tickLabel(t.v)}
1385
+ </Text>
1386
+ ))}
1387
+ </View>
1388
+ ) : null}
1389
+ </View>
1390
+
1391
+ {axis && axis.length > 0 && (
1392
+ <View style={[styles.axis, yAxis ? { paddingRight: Y_GUTTER } : null]}>
1393
+ {axis.map((t, i) => (
1394
+ <Text key={i} style={styles.axisText}>{t}</Text>
1395
+ ))}
1396
+ </View>
1397
+ )}
1398
+ </View>
1399
+ );
1400
+ }
1401
+
1402
+ const styles = StyleSheet.create({
1403
+ root: { flexDirection: 'column', gap: 8, width: '100%' },
1404
+ plot: { position: 'relative', flexDirection: 'row', width: '100%' },
1405
+ // drawing area: holds the Svg + marker overlays; markers anchor against it
1406
+ canvas: { position: 'relative', height: '100%' },
1407
+ // right gutter holding the y-axis value labels
1408
+ yaxis: { width: Y_GUTTER, height: '100%' },
1409
+ ytick: {
1410
+ position: 'absolute',
1411
+ right: 0,
1412
+ marginTop: -5,
1413
+ paddingLeft: 6,
1414
+ fontFamily: fonts.mono,
1415
+ fontSize: 10,
1416
+ lineHeight: 10,
1417
+ letterSpacing: 0.2,
1418
+ color: colors.textFaint,
1419
+ textAlign: 'right',
1420
+ },
1421
+ marker: {
1422
+ position: 'absolute',
1423
+ // translate(-50%, -50%) on an 11px dot
1424
+ marginLeft: -5.5,
1425
+ marginTop: -5.5,
1426
+ alignItems: 'center',
1427
+ },
1428
+ dot: {
1429
+ width: 11,
1430
+ height: 11,
1431
+ borderRadius: 5.5,
1432
+ borderWidth: 2,
1433
+ borderColor: colors.bg0,
1434
+ shadowColor: '#fff',
1435
+ shadowOpacity: 0.35,
1436
+ shadowRadius: 8,
1437
+ shadowOffset: { width: 0, height: 0 },
1438
+ elevation: 4,
1439
+ },
1440
+ tag: {
1441
+ position: 'absolute',
1442
+ bottom: 16,
1443
+ paddingHorizontal: 6,
1444
+ paddingVertical: 2,
1445
+ borderRadius: 6,
1446
+ borderWidth: 1,
1447
+ backgroundColor: colors.glass2,
1448
+ },
1449
+ tagText: {
1450
+ fontFamily: fonts.mono,
1451
+ fontSize: 9,
1452
+ lineHeight: 11,
1453
+ letterSpacing: 0.36,
1454
+ },
1455
+ // zero-size anchor centered on its data point: absolutely-positioned children
1456
+ // with no offsets are centered on it by alignItems/justifyContent (Yoga static
1457
+ // position), so dots/text/chips stay round & legible under the SVG stretch.
1458
+ anchor: {
1459
+ position: 'absolute',
1460
+ width: 0,
1461
+ height: 0,
1462
+ alignItems: 'center',
1463
+ justifyContent: 'center',
1464
+ },
1465
+ // edge-anchored chip variants: the pill hangs inward from its anchor point
1466
+ // (left edge at the point / right edge at the point) instead of centering
1467
+ anchorStart: {
1468
+ position: 'absolute',
1469
+ width: 0,
1470
+ height: 0,
1471
+ alignItems: 'flex-start',
1472
+ justifyContent: 'center',
1473
+ },
1474
+ anchorEnd: {
1475
+ position: 'absolute',
1476
+ width: 0,
1477
+ height: 0,
1478
+ alignItems: 'flex-end',
1479
+ justifyContent: 'center',
1480
+ },
1481
+ // same anchor pinned to the plot top (NOW / CALIBRATING captions)
1482
+ anchorTop: {
1483
+ position: 'absolute',
1484
+ width: 0,
1485
+ height: 0,
1486
+ alignItems: 'center',
1487
+ justifyContent: 'flex-start',
1488
+ },
1489
+ // pulse ring riding the NOW / comet dot (mirrors web lk-lc-pulse)
1490
+ pulse: {
1491
+ position: 'absolute',
1492
+ width: 9,
1493
+ height: 9,
1494
+ borderRadius: 4.5,
1495
+ borderWidth: 1.4,
1496
+ },
1497
+ // tiny mono annotations (NOW / GOAL / PEAK / DIP / CALIBRATING / 100 / 0)
1498
+ note: {
1499
+ fontFamily: fonts.mono,
1500
+ fontSize: 8.5,
1501
+ lineHeight: 9,
1502
+ letterSpacing: 0.5,
1503
+ },
1504
+ // chip-pill series/inline labels (dark chip + tinted hairline border)
1505
+ chip: {
1506
+ position: 'absolute',
1507
+ paddingHorizontal: 7,
1508
+ paddingVertical: 3,
1509
+ borderRadius: 999,
1510
+ borderWidth: 1,
1511
+ backgroundColor: colors.bg0,
1512
+ },
1513
+ chipText: {
1514
+ fontFamily: fonts.mono,
1515
+ fontSize: 8,
1516
+ lineHeight: 9,
1517
+ letterSpacing: 0.4,
1518
+ },
1519
+ axis: {
1520
+ flexDirection: 'row',
1521
+ justifyContent: 'space-between',
1522
+ paddingHorizontal: 1,
1523
+ },
1524
+ axisText: {
1525
+ fontFamily: fonts.mono,
1526
+ fontSize: 9.5,
1527
+ color: colors.textFaint,
1528
+ },
1529
+ });