@buoy-gg/shared-ui 7.0.33 → 7.0.35

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 (323) hide show
  1. package/lib/commonjs/JsModal.js +57 -22
  2. package/lib/commonjs/dataViewer/CyberpunkInput.js +3 -2
  3. package/lib/commonjs/dataViewer/DataTreeActionBar.js +3 -2
  4. package/lib/commonjs/dataViewer/DataTreeActionDock.js +2 -1
  5. package/lib/commonjs/dataViewer/DiffSummary.js +4 -3
  6. package/lib/commonjs/dataViewer/LiveExplorer.js +11 -10
  7. package/lib/commonjs/dataViewer/SplitDiffViewer.js +10 -9
  8. package/lib/commonjs/dataViewer/ThemedSplitView.js +12 -11
  9. package/lib/commonjs/dataViewer/ValueEditModal.js +6 -5
  10. package/lib/commonjs/dataViewer/VirtualizedDataExplorer.js +4 -3
  11. package/lib/commonjs/dataViewer/tree/TreeDiffViewer.js +15 -14
  12. package/lib/commonjs/hooks/index.js +26 -0
  13. package/lib/commonjs/hooks/safe-area-impl.js +1 -1
  14. package/lib/commonjs/hooks/useChangeLog.js +55 -0
  15. package/lib/commonjs/hooks/useEventStoreEvents.js +65 -0
  16. package/lib/commonjs/hooks/usePersistedState.js +45 -10
  17. package/lib/commonjs/icons/index.js +533 -1
  18. package/lib/commonjs/index.js +143 -0
  19. package/lib/commonjs/license/FreeAccountPrompt.js +2 -1
  20. package/lib/commonjs/license/LicenseEntryModal.js +2 -1
  21. package/lib/commonjs/storage/definePersistedSetting.js +67 -0
  22. package/lib/commonjs/storage/index.js +8 -1
  23. package/lib/commonjs/stores/ChangeLog.js +197 -0
  24. package/lib/commonjs/stores/createToolStore.js +175 -0
  25. package/lib/commonjs/stores/index.js +15 -1
  26. package/lib/commonjs/sync/toolSyncAdapter.js +63 -0
  27. package/lib/commonjs/sync/wireForm.js +172 -0
  28. package/lib/commonjs/tools/defineTool.js +79 -0
  29. package/lib/commonjs/ui/components/ChangeRow.js +111 -0
  30. package/lib/commonjs/ui/components/ChipStrip.js +94 -0
  31. package/lib/commonjs/ui/components/ClipboardHintBanner.js +2 -1
  32. package/lib/commonjs/ui/components/CompactRow.js +3 -2
  33. package/lib/commonjs/ui/components/DataInspector.js +3 -2
  34. package/lib/commonjs/ui/components/DetailView.js +2 -1
  35. package/lib/commonjs/ui/components/DetailViewToggle.js +130 -0
  36. package/lib/commonjs/ui/components/DevToolsCard.js +3 -1
  37. package/lib/commonjs/ui/components/DynamicFilterView.js +8 -7
  38. package/lib/commonjs/ui/components/EntityFilterView.js +355 -0
  39. package/lib/commonjs/ui/components/EventHistoryViewer/CompareBar.js +5 -4
  40. package/lib/commonjs/ui/components/EventHistoryViewer/DiffModeTabs.js +2 -1
  41. package/lib/commonjs/ui/components/EventHistoryViewer/EventPickerModal.js +5 -4
  42. package/lib/commonjs/ui/components/EventStepperFooter.js +4 -3
  43. package/lib/commonjs/ui/components/ExpandablePopover.js +12 -4
  44. package/lib/commonjs/ui/components/ExpandedInfoRow.js +3 -2
  45. package/lib/commonjs/ui/components/ExportPreview.js +174 -0
  46. package/lib/commonjs/ui/components/FilterComponents.js +2 -1
  47. package/lib/commonjs/ui/components/InfoRow.js +91 -0
  48. package/lib/commonjs/ui/components/ModalHeader.js +40 -7
  49. package/lib/commonjs/ui/components/Pill.js +115 -0
  50. package/lib/commonjs/ui/components/ToggleRow.js +116 -0
  51. package/lib/commonjs/ui/components/ToolFooter.js +205 -0
  52. package/lib/commonjs/ui/components/index.js +100 -1
  53. package/lib/commonjs/ui/console/CyberpunkSectionButton.js +3 -2
  54. package/lib/commonjs/ui/fonts.js +12 -0
  55. package/lib/commonjs/ui/gameUI/components/GameUICollapsibleSection.js +4 -3
  56. package/lib/commonjs/ui/gameUI/components/GameUICompactStats.js +12 -11
  57. package/lib/commonjs/ui/gameUI/components/GameUIIssuesList.js +9 -8
  58. package/lib/commonjs/ui/gameUI/components/GameUIStatusHeader.js +4 -3
  59. package/lib/commonjs/ui/index.js +32 -2
  60. package/lib/commonjs/ui/listPresets.js +43 -0
  61. package/lib/commonjs/ui/night/primitives.js +3 -1
  62. package/lib/commonjs/ui/toolTheme.js +4 -3
  63. package/lib/commonjs/utils/snapshotProviderKit.js +167 -0
  64. package/lib/commonjs/utils/stateTools.js +160 -0
  65. package/lib/module/JsModal.js +57 -22
  66. package/lib/module/dataViewer/CyberpunkInput.js +3 -2
  67. package/lib/module/dataViewer/DataTreeActionBar.js +3 -2
  68. package/lib/module/dataViewer/DataTreeActionDock.js +2 -1
  69. package/lib/module/dataViewer/DiffSummary.js +4 -3
  70. package/lib/module/dataViewer/LiveExplorer.js +11 -11
  71. package/lib/module/dataViewer/SplitDiffViewer.js +10 -9
  72. package/lib/module/dataViewer/ThemedSplitView.js +12 -11
  73. package/lib/module/dataViewer/ValueEditModal.js +6 -5
  74. package/lib/module/dataViewer/VirtualizedDataExplorer.js +5 -4
  75. package/lib/module/dataViewer/tree/TreeDiffViewer.js +15 -15
  76. package/lib/module/hooks/index.js +3 -1
  77. package/lib/module/hooks/safe-area-impl.js +1 -1
  78. package/lib/module/hooks/useChangeLog.js +50 -0
  79. package/lib/module/hooks/useEventStoreEvents.js +61 -0
  80. package/lib/module/hooks/usePersistedState.js +44 -10
  81. package/lib/module/icons/index.js +27 -2
  82. package/lib/module/index.js +11 -1
  83. package/lib/module/license/FreeAccountPrompt.js +2 -2
  84. package/lib/module/license/LicenseEntryModal.js +3 -3
  85. package/lib/module/storage/definePersistedSetting.js +63 -0
  86. package/lib/module/storage/index.js +2 -1
  87. package/lib/module/stores/ChangeLog.js +192 -0
  88. package/lib/module/stores/createToolStore.js +171 -0
  89. package/lib/module/stores/index.js +3 -1
  90. package/lib/module/sync/toolSyncAdapter.js +58 -0
  91. package/lib/module/sync/wireForm.js +159 -0
  92. package/lib/module/tools/defineTool.js +74 -0
  93. package/lib/module/ui/components/ChangeRow.js +106 -0
  94. package/lib/module/ui/components/ChipStrip.js +91 -0
  95. package/lib/module/ui/components/ClipboardHintBanner.js +2 -1
  96. package/lib/module/ui/components/CompactRow.js +3 -2
  97. package/lib/module/ui/components/DataInspector.js +3 -2
  98. package/lib/module/ui/components/DetailView.js +2 -1
  99. package/lib/module/ui/components/DetailViewToggle.js +125 -0
  100. package/lib/module/ui/components/DevToolsCard.js +3 -1
  101. package/lib/module/ui/components/DynamicFilterView.js +8 -7
  102. package/lib/module/ui/components/EntityFilterView.js +351 -0
  103. package/lib/module/ui/components/EventHistoryViewer/CompareBar.js +6 -5
  104. package/lib/module/ui/components/EventHistoryViewer/DiffModeTabs.js +3 -2
  105. package/lib/module/ui/components/EventHistoryViewer/EventPickerModal.js +6 -5
  106. package/lib/module/ui/components/EventStepperFooter.js +4 -3
  107. package/lib/module/ui/components/ExpandablePopover.js +12 -4
  108. package/lib/module/ui/components/ExpandedInfoRow.js +3 -2
  109. package/lib/module/ui/components/ExportPreview.js +169 -0
  110. package/lib/module/ui/components/FilterComponents.js +2 -2
  111. package/lib/module/ui/components/InfoRow.js +87 -0
  112. package/lib/module/ui/components/ModalHeader.js +40 -7
  113. package/lib/module/ui/components/Pill.js +111 -0
  114. package/lib/module/ui/components/ToggleRow.js +112 -0
  115. package/lib/module/ui/components/ToolFooter.js +197 -0
  116. package/lib/module/ui/components/index.js +10 -1
  117. package/lib/module/ui/console/CyberpunkSectionButton.js +3 -2
  118. package/lib/module/ui/fonts.js +8 -0
  119. package/lib/module/ui/gameUI/components/GameUICollapsibleSection.js +4 -3
  120. package/lib/module/ui/gameUI/components/GameUICompactStats.js +12 -11
  121. package/lib/module/ui/gameUI/components/GameUIIssuesList.js +9 -8
  122. package/lib/module/ui/gameUI/components/GameUIStatusHeader.js +4 -3
  123. package/lib/module/ui/index.js +7 -1
  124. package/lib/module/ui/listPresets.js +39 -0
  125. package/lib/module/ui/night/primitives.js +3 -1
  126. package/lib/module/ui/toolTheme.js +4 -4
  127. package/lib/module/utils/snapshotProviderKit.js +156 -0
  128. package/lib/module/utils/stateTools.js +154 -0
  129. package/lib/typescript/commonjs/JsModal.d.ts.map +1 -1
  130. package/lib/typescript/commonjs/dataViewer/CyberpunkInput.d.ts.map +1 -1
  131. package/lib/typescript/commonjs/dataViewer/DataTreeActionBar.d.ts.map +1 -1
  132. package/lib/typescript/commonjs/dataViewer/DataTreeActionDock.d.ts.map +1 -1
  133. package/lib/typescript/commonjs/dataViewer/DiffSummary.d.ts.map +1 -1
  134. package/lib/typescript/commonjs/dataViewer/LiveExplorer.d.ts.map +1 -1
  135. package/lib/typescript/commonjs/dataViewer/SplitDiffViewer.d.ts.map +1 -1
  136. package/lib/typescript/commonjs/dataViewer/ThemedSplitView.d.ts.map +1 -1
  137. package/lib/typescript/commonjs/dataViewer/ValueEditModal.d.ts.map +1 -1
  138. package/lib/typescript/commonjs/dataViewer/VirtualizedDataExplorer.d.ts.map +1 -1
  139. package/lib/typescript/commonjs/dataViewer/tree/TreeDiffViewer.d.ts.map +1 -1
  140. package/lib/typescript/commonjs/hooks/index.d.ts +3 -1
  141. package/lib/typescript/commonjs/hooks/index.d.ts.map +1 -1
  142. package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +1 -1
  143. package/lib/typescript/commonjs/hooks/useChangeLog.d.ts +38 -0
  144. package/lib/typescript/commonjs/hooks/useChangeLog.d.ts.map +1 -0
  145. package/lib/typescript/commonjs/hooks/useEventStoreEvents.d.ts +25 -0
  146. package/lib/typescript/commonjs/hooks/useEventStoreEvents.d.ts.map +1 -0
  147. package/lib/typescript/commonjs/hooks/usePersistedState.d.ts +34 -5
  148. package/lib/typescript/commonjs/hooks/usePersistedState.d.ts.map +1 -1
  149. package/lib/typescript/commonjs/icons/index.d.ts +4 -1
  150. package/lib/typescript/commonjs/icons/index.d.ts.map +1 -1
  151. package/lib/typescript/commonjs/index.d.ts +6 -1
  152. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  153. package/lib/typescript/commonjs/license/FreeAccountPrompt.d.ts.map +1 -1
  154. package/lib/typescript/commonjs/license/LicenseEntryModal.d.ts.map +1 -1
  155. package/lib/typescript/commonjs/storage/definePersistedSetting.d.ts +39 -0
  156. package/lib/typescript/commonjs/storage/definePersistedSetting.d.ts.map +1 -0
  157. package/lib/typescript/commonjs/storage/index.d.ts +1 -0
  158. package/lib/typescript/commonjs/storage/index.d.ts.map +1 -1
  159. package/lib/typescript/commonjs/stores/ChangeLog.d.ts +100 -0
  160. package/lib/typescript/commonjs/stores/ChangeLog.d.ts.map +1 -0
  161. package/lib/typescript/commonjs/stores/createToolStore.d.ts +92 -0
  162. package/lib/typescript/commonjs/stores/createToolStore.d.ts.map +1 -0
  163. package/lib/typescript/commonjs/stores/index.d.ts +2 -0
  164. package/lib/typescript/commonjs/stores/index.d.ts.map +1 -1
  165. package/lib/typescript/commonjs/sync/toolSyncAdapter.d.ts +66 -0
  166. package/lib/typescript/commonjs/sync/toolSyncAdapter.d.ts.map +1 -0
  167. package/lib/typescript/commonjs/sync/wireForm.d.ts +100 -0
  168. package/lib/typescript/commonjs/sync/wireForm.d.ts.map +1 -0
  169. package/lib/typescript/commonjs/tools/defineTool.d.ts +100 -0
  170. package/lib/typescript/commonjs/tools/defineTool.d.ts.map +1 -0
  171. package/lib/typescript/commonjs/ui/components/ChangeRow.d.ts +52 -0
  172. package/lib/typescript/commonjs/ui/components/ChangeRow.d.ts.map +1 -0
  173. package/lib/typescript/commonjs/ui/components/ChipStrip.d.ts +41 -0
  174. package/lib/typescript/commonjs/ui/components/ChipStrip.d.ts.map +1 -0
  175. package/lib/typescript/commonjs/ui/components/ClipboardHintBanner.d.ts.map +1 -1
  176. package/lib/typescript/commonjs/ui/components/CompactRow.d.ts.map +1 -1
  177. package/lib/typescript/commonjs/ui/components/DataInspector.d.ts.map +1 -1
  178. package/lib/typescript/commonjs/ui/components/DetailView.d.ts.map +1 -1
  179. package/lib/typescript/commonjs/ui/components/DetailViewToggle.d.ts +36 -0
  180. package/lib/typescript/commonjs/ui/components/DetailViewToggle.d.ts.map +1 -0
  181. package/lib/typescript/commonjs/ui/components/DevToolsCard.d.ts +8 -1
  182. package/lib/typescript/commonjs/ui/components/DevToolsCard.d.ts.map +1 -1
  183. package/lib/typescript/commonjs/ui/components/DynamicFilterView.d.ts.map +1 -1
  184. package/lib/typescript/commonjs/ui/components/EntityFilterView.d.ts +51 -0
  185. package/lib/typescript/commonjs/ui/components/EntityFilterView.d.ts.map +1 -0
  186. package/lib/typescript/commonjs/ui/components/EventHistoryViewer/CompareBar.d.ts.map +1 -1
  187. package/lib/typescript/commonjs/ui/components/EventHistoryViewer/DiffModeTabs.d.ts.map +1 -1
  188. package/lib/typescript/commonjs/ui/components/EventHistoryViewer/EventPickerModal.d.ts.map +1 -1
  189. package/lib/typescript/commonjs/ui/components/EventStepperFooter.d.ts.map +1 -1
  190. package/lib/typescript/commonjs/ui/components/ExpandablePopover.d.ts +5 -1
  191. package/lib/typescript/commonjs/ui/components/ExpandablePopover.d.ts.map +1 -1
  192. package/lib/typescript/commonjs/ui/components/ExpandedInfoRow.d.ts.map +1 -1
  193. package/lib/typescript/commonjs/ui/components/ExportPreview.d.ts +48 -0
  194. package/lib/typescript/commonjs/ui/components/ExportPreview.d.ts.map +1 -0
  195. package/lib/typescript/commonjs/ui/components/FilterComponents.d.ts.map +1 -1
  196. package/lib/typescript/commonjs/ui/components/InfoRow.d.ts +33 -0
  197. package/lib/typescript/commonjs/ui/components/InfoRow.d.ts.map +1 -0
  198. package/lib/typescript/commonjs/ui/components/ModalHeader.d.ts +31 -1
  199. package/lib/typescript/commonjs/ui/components/ModalHeader.d.ts.map +1 -1
  200. package/lib/typescript/commonjs/ui/components/Pill.d.ts +38 -0
  201. package/lib/typescript/commonjs/ui/components/Pill.d.ts.map +1 -0
  202. package/lib/typescript/commonjs/ui/components/ToggleRow.d.ts +33 -0
  203. package/lib/typescript/commonjs/ui/components/ToggleRow.d.ts.map +1 -0
  204. package/lib/typescript/commonjs/ui/components/ToolFooter.d.ts +69 -0
  205. package/lib/typescript/commonjs/ui/components/ToolFooter.d.ts.map +1 -0
  206. package/lib/typescript/commonjs/ui/components/index.d.ts +9 -0
  207. package/lib/typescript/commonjs/ui/components/index.d.ts.map +1 -1
  208. package/lib/typescript/commonjs/ui/console/CyberpunkSectionButton.d.ts.map +1 -1
  209. package/lib/typescript/commonjs/ui/fonts.d.ts +7 -0
  210. package/lib/typescript/commonjs/ui/fonts.d.ts.map +1 -0
  211. package/lib/typescript/commonjs/ui/gameUI/components/GameUICollapsibleSection.d.ts.map +1 -1
  212. package/lib/typescript/commonjs/ui/gameUI/components/GameUICompactStats.d.ts.map +1 -1
  213. package/lib/typescript/commonjs/ui/gameUI/components/GameUIIssuesList.d.ts.map +1 -1
  214. package/lib/typescript/commonjs/ui/gameUI/components/GameUIStatusHeader.d.ts.map +1 -1
  215. package/lib/typescript/commonjs/ui/index.d.ts +2 -0
  216. package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
  217. package/lib/typescript/commonjs/ui/listPresets.d.ts +28 -0
  218. package/lib/typescript/commonjs/ui/listPresets.d.ts.map +1 -0
  219. package/lib/typescript/commonjs/ui/night/primitives.d.ts +3 -1
  220. package/lib/typescript/commonjs/ui/night/primitives.d.ts.map +1 -1
  221. package/lib/typescript/commonjs/ui/toolTheme.d.ts.map +1 -1
  222. package/lib/typescript/commonjs/utils/snapshotProviderKit.d.ts +81 -0
  223. package/lib/typescript/commonjs/utils/snapshotProviderKit.d.ts.map +1 -0
  224. package/lib/typescript/commonjs/utils/stateTools.d.ts +44 -0
  225. package/lib/typescript/commonjs/utils/stateTools.d.ts.map +1 -0
  226. package/lib/typescript/module/JsModal.d.ts.map +1 -1
  227. package/lib/typescript/module/dataViewer/CyberpunkInput.d.ts.map +1 -1
  228. package/lib/typescript/module/dataViewer/DataTreeActionBar.d.ts.map +1 -1
  229. package/lib/typescript/module/dataViewer/DataTreeActionDock.d.ts.map +1 -1
  230. package/lib/typescript/module/dataViewer/DiffSummary.d.ts.map +1 -1
  231. package/lib/typescript/module/dataViewer/LiveExplorer.d.ts.map +1 -1
  232. package/lib/typescript/module/dataViewer/SplitDiffViewer.d.ts.map +1 -1
  233. package/lib/typescript/module/dataViewer/ThemedSplitView.d.ts.map +1 -1
  234. package/lib/typescript/module/dataViewer/ValueEditModal.d.ts.map +1 -1
  235. package/lib/typescript/module/dataViewer/VirtualizedDataExplorer.d.ts.map +1 -1
  236. package/lib/typescript/module/dataViewer/tree/TreeDiffViewer.d.ts.map +1 -1
  237. package/lib/typescript/module/hooks/index.d.ts +3 -1
  238. package/lib/typescript/module/hooks/index.d.ts.map +1 -1
  239. package/lib/typescript/module/hooks/safe-area-impl.d.ts +1 -1
  240. package/lib/typescript/module/hooks/useChangeLog.d.ts +38 -0
  241. package/lib/typescript/module/hooks/useChangeLog.d.ts.map +1 -0
  242. package/lib/typescript/module/hooks/useEventStoreEvents.d.ts +25 -0
  243. package/lib/typescript/module/hooks/useEventStoreEvents.d.ts.map +1 -0
  244. package/lib/typescript/module/hooks/usePersistedState.d.ts +34 -5
  245. package/lib/typescript/module/hooks/usePersistedState.d.ts.map +1 -1
  246. package/lib/typescript/module/icons/index.d.ts +4 -1
  247. package/lib/typescript/module/icons/index.d.ts.map +1 -1
  248. package/lib/typescript/module/index.d.ts +6 -1
  249. package/lib/typescript/module/index.d.ts.map +1 -1
  250. package/lib/typescript/module/license/FreeAccountPrompt.d.ts.map +1 -1
  251. package/lib/typescript/module/license/LicenseEntryModal.d.ts.map +1 -1
  252. package/lib/typescript/module/storage/definePersistedSetting.d.ts +39 -0
  253. package/lib/typescript/module/storage/definePersistedSetting.d.ts.map +1 -0
  254. package/lib/typescript/module/storage/index.d.ts +1 -0
  255. package/lib/typescript/module/storage/index.d.ts.map +1 -1
  256. package/lib/typescript/module/stores/ChangeLog.d.ts +100 -0
  257. package/lib/typescript/module/stores/ChangeLog.d.ts.map +1 -0
  258. package/lib/typescript/module/stores/createToolStore.d.ts +92 -0
  259. package/lib/typescript/module/stores/createToolStore.d.ts.map +1 -0
  260. package/lib/typescript/module/stores/index.d.ts +2 -0
  261. package/lib/typescript/module/stores/index.d.ts.map +1 -1
  262. package/lib/typescript/module/sync/toolSyncAdapter.d.ts +66 -0
  263. package/lib/typescript/module/sync/toolSyncAdapter.d.ts.map +1 -0
  264. package/lib/typescript/module/sync/wireForm.d.ts +100 -0
  265. package/lib/typescript/module/sync/wireForm.d.ts.map +1 -0
  266. package/lib/typescript/module/tools/defineTool.d.ts +100 -0
  267. package/lib/typescript/module/tools/defineTool.d.ts.map +1 -0
  268. package/lib/typescript/module/ui/components/ChangeRow.d.ts +52 -0
  269. package/lib/typescript/module/ui/components/ChangeRow.d.ts.map +1 -0
  270. package/lib/typescript/module/ui/components/ChipStrip.d.ts +41 -0
  271. package/lib/typescript/module/ui/components/ChipStrip.d.ts.map +1 -0
  272. package/lib/typescript/module/ui/components/ClipboardHintBanner.d.ts.map +1 -1
  273. package/lib/typescript/module/ui/components/CompactRow.d.ts.map +1 -1
  274. package/lib/typescript/module/ui/components/DataInspector.d.ts.map +1 -1
  275. package/lib/typescript/module/ui/components/DetailView.d.ts.map +1 -1
  276. package/lib/typescript/module/ui/components/DetailViewToggle.d.ts +36 -0
  277. package/lib/typescript/module/ui/components/DetailViewToggle.d.ts.map +1 -0
  278. package/lib/typescript/module/ui/components/DevToolsCard.d.ts +8 -1
  279. package/lib/typescript/module/ui/components/DevToolsCard.d.ts.map +1 -1
  280. package/lib/typescript/module/ui/components/DynamicFilterView.d.ts.map +1 -1
  281. package/lib/typescript/module/ui/components/EntityFilterView.d.ts +51 -0
  282. package/lib/typescript/module/ui/components/EntityFilterView.d.ts.map +1 -0
  283. package/lib/typescript/module/ui/components/EventHistoryViewer/CompareBar.d.ts.map +1 -1
  284. package/lib/typescript/module/ui/components/EventHistoryViewer/DiffModeTabs.d.ts.map +1 -1
  285. package/lib/typescript/module/ui/components/EventHistoryViewer/EventPickerModal.d.ts.map +1 -1
  286. package/lib/typescript/module/ui/components/EventStepperFooter.d.ts.map +1 -1
  287. package/lib/typescript/module/ui/components/ExpandablePopover.d.ts +5 -1
  288. package/lib/typescript/module/ui/components/ExpandablePopover.d.ts.map +1 -1
  289. package/lib/typescript/module/ui/components/ExpandedInfoRow.d.ts.map +1 -1
  290. package/lib/typescript/module/ui/components/ExportPreview.d.ts +48 -0
  291. package/lib/typescript/module/ui/components/ExportPreview.d.ts.map +1 -0
  292. package/lib/typescript/module/ui/components/FilterComponents.d.ts.map +1 -1
  293. package/lib/typescript/module/ui/components/InfoRow.d.ts +33 -0
  294. package/lib/typescript/module/ui/components/InfoRow.d.ts.map +1 -0
  295. package/lib/typescript/module/ui/components/ModalHeader.d.ts +31 -1
  296. package/lib/typescript/module/ui/components/ModalHeader.d.ts.map +1 -1
  297. package/lib/typescript/module/ui/components/Pill.d.ts +38 -0
  298. package/lib/typescript/module/ui/components/Pill.d.ts.map +1 -0
  299. package/lib/typescript/module/ui/components/ToggleRow.d.ts +33 -0
  300. package/lib/typescript/module/ui/components/ToggleRow.d.ts.map +1 -0
  301. package/lib/typescript/module/ui/components/ToolFooter.d.ts +69 -0
  302. package/lib/typescript/module/ui/components/ToolFooter.d.ts.map +1 -0
  303. package/lib/typescript/module/ui/components/index.d.ts +9 -0
  304. package/lib/typescript/module/ui/components/index.d.ts.map +1 -1
  305. package/lib/typescript/module/ui/console/CyberpunkSectionButton.d.ts.map +1 -1
  306. package/lib/typescript/module/ui/fonts.d.ts +7 -0
  307. package/lib/typescript/module/ui/fonts.d.ts.map +1 -0
  308. package/lib/typescript/module/ui/gameUI/components/GameUICollapsibleSection.d.ts.map +1 -1
  309. package/lib/typescript/module/ui/gameUI/components/GameUICompactStats.d.ts.map +1 -1
  310. package/lib/typescript/module/ui/gameUI/components/GameUIIssuesList.d.ts.map +1 -1
  311. package/lib/typescript/module/ui/gameUI/components/GameUIStatusHeader.d.ts.map +1 -1
  312. package/lib/typescript/module/ui/index.d.ts +2 -0
  313. package/lib/typescript/module/ui/index.d.ts.map +1 -1
  314. package/lib/typescript/module/ui/listPresets.d.ts +28 -0
  315. package/lib/typescript/module/ui/listPresets.d.ts.map +1 -0
  316. package/lib/typescript/module/ui/night/primitives.d.ts +3 -1
  317. package/lib/typescript/module/ui/night/primitives.d.ts.map +1 -1
  318. package/lib/typescript/module/ui/toolTheme.d.ts.map +1 -1
  319. package/lib/typescript/module/utils/snapshotProviderKit.d.ts +81 -0
  320. package/lib/typescript/module/utils/snapshotProviderKit.d.ts.map +1 -0
  321. package/lib/typescript/module/utils/stateTools.d.ts +44 -0
  322. package/lib/typescript/module/utils/stateTools.d.ts.map +1 -0
  323. package/package.json +4 -4
@@ -0,0 +1,174 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ExportPreview = ExportPreview;
7
+ exports.sizeWarningLevel = sizeWarningLevel;
8
+ var _reactNative = require("react-native");
9
+ var _index = require("../../icons/index.js");
10
+ var _nightTheme = require("../night/nightTheme.js");
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+ /**
13
+ * ExportPreview — the collapsible "what will be copied" panel at the bottom
14
+ * of a copy-settings screen.
15
+ *
16
+ * Collapsed, it is a card: an eye icon, "Show Preview", a one-line summary
17
+ * ("14 events · ~12.3 KB (mock data)"), a chevron — and, when the estimated
18
+ * payload is big, an amber or red size warning under it. Expanded, it is a
19
+ * "Hide Preview" bar over whatever the tool renders (a DataViewer for JSON,
20
+ * a mono text block otherwise).
21
+ *
22
+ * network, events and highlight-updates each drew this (~120 lines apiece).
23
+ * Tools keep their own summary string, warning copy and body; the chrome
24
+ * and the size-threshold ladder live here.
25
+ */
26
+
27
+ /** The two-step ladder every copy view used (thresholds differ per tool). */
28
+ function sizeWarningLevel(bytes, thresholds) {
29
+ if (bytes >= thresholds.danger) return "danger";
30
+ if (bytes >= thresholds.warning) return "warning";
31
+ return "none";
32
+ }
33
+ const DEFAULT_WARNING = {
34
+ warning: "Large payload — preview may be slow",
35
+ danger: "Very large payload — may cause performance issues"
36
+ };
37
+ function ExportPreview({
38
+ expanded,
39
+ onExpandedChange,
40
+ summary,
41
+ warningLevel = "none",
42
+ warningText = DEFAULT_WARNING,
43
+ testIDs,
44
+ renderBody
45
+ }) {
46
+ if (!expanded) {
47
+ const warningColor = warningLevel === "danger" ? _nightTheme.night.color.danger : warningLevel === "warning" ? _nightTheme.night.color.warning : _nightTheme.night.color.textSecondary;
48
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
49
+ style: styles.collapsed,
50
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
51
+ style: styles.expandButton,
52
+ onPress: () => onExpandedChange(true),
53
+ testID: testIDs?.expand,
54
+ accessibilityRole: "button",
55
+ accessibilityLabel: "Show export preview",
56
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
57
+ style: styles.expandButtonContent,
58
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Eye, {
59
+ size: 16,
60
+ color: _nightTheme.night.color.info
61
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
62
+ style: styles.expandButtonTextContainer,
63
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
64
+ style: styles.expandButtonTitle,
65
+ children: "Show Preview"
66
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
67
+ style: styles.expandButtonSubtitle,
68
+ testID: testIDs?.summary,
69
+ children: summary
70
+ })]
71
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ChevronDown, {
72
+ size: 16,
73
+ color: _nightTheme.night.color.textTertiary
74
+ })]
75
+ })
76
+ }), warningLevel !== "none" ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
77
+ style: [styles.sizeWarning, warningLevel === "danger" && styles.sizeWarningDanger],
78
+ testID: testIDs?.warning,
79
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.AlertTriangle, {
80
+ size: 12,
81
+ color: warningColor
82
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
83
+ style: [styles.sizeWarningText, {
84
+ color: warningColor
85
+ }],
86
+ children: warningLevel === "danger" ? warningText.danger : warningText.warning
87
+ })]
88
+ }) : null]
89
+ });
90
+ }
91
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
92
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
93
+ style: styles.collapseButton,
94
+ onPress: () => onExpandedChange(false),
95
+ testID: testIDs?.collapse,
96
+ accessibilityRole: "button",
97
+ accessibilityLabel: "Hide export preview",
98
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
99
+ style: styles.collapseButtonText,
100
+ children: "Hide Preview"
101
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ChevronUp, {
102
+ size: 14,
103
+ color: _nightTheme.night.color.textSecondary
104
+ })]
105
+ }), renderBody()]
106
+ });
107
+ }
108
+ const styles = _reactNative.StyleSheet.create({
109
+ collapsed: {
110
+ gap: 8
111
+ },
112
+ expandButton: {
113
+ backgroundColor: _nightTheme.night.color.surfaceElevated,
114
+ borderRadius: 8,
115
+ borderWidth: 1,
116
+ borderColor: _nightTheme.night.color.border,
117
+ padding: 12
118
+ },
119
+ expandButtonContent: {
120
+ flexDirection: "row",
121
+ alignItems: "center",
122
+ gap: 10
123
+ },
124
+ expandButtonTextContainer: {
125
+ flex: 1
126
+ },
127
+ expandButtonTitle: {
128
+ fontSize: 13,
129
+ fontWeight: "600",
130
+ color: _nightTheme.night.color.text
131
+ },
132
+ expandButtonSubtitle: {
133
+ fontSize: 11,
134
+ color: _nightTheme.night.color.textSecondary,
135
+ marginTop: 2
136
+ },
137
+ collapseButton: {
138
+ flexDirection: "row",
139
+ alignItems: "center",
140
+ justifyContent: "center",
141
+ gap: 6,
142
+ paddingVertical: 8,
143
+ marginBottom: 8,
144
+ backgroundColor: _nightTheme.night.color.surfaceElevated,
145
+ borderRadius: 6,
146
+ borderWidth: 1,
147
+ borderColor: _nightTheme.night.color.border
148
+ },
149
+ collapseButtonText: {
150
+ fontSize: 12,
151
+ fontWeight: "500",
152
+ color: _nightTheme.night.color.textSecondary
153
+ },
154
+ sizeWarning: {
155
+ flexDirection: "row",
156
+ alignItems: "center",
157
+ gap: 6,
158
+ paddingHorizontal: 10,
159
+ paddingVertical: 6,
160
+ backgroundColor: _nightTheme.night.color.warningSoft,
161
+ borderRadius: 6,
162
+ borderWidth: 1,
163
+ borderColor: _nightTheme.night.color.warning + "30"
164
+ },
165
+ sizeWarningDanger: {
166
+ backgroundColor: _nightTheme.night.color.dangerSoft,
167
+ borderColor: _nightTheme.night.color.danger + "30"
168
+ },
169
+ sizeWarningText: {
170
+ fontSize: 11,
171
+ fontWeight: "500",
172
+ flex: 1
173
+ }
174
+ });
@@ -11,6 +11,7 @@ exports.FilterSection = FilterSection;
11
11
  var _reactNative = require("react-native");
12
12
  var _index = require("../../icons/index.js");
13
13
  var _nightTheme = require("../night/nightTheme.js");
14
+ var _fonts = require("../fonts.js");
14
15
  var _jsxRuntime = require("react/jsx-runtime");
15
16
  // Container for filter section
16
17
 
@@ -280,7 +281,7 @@ const styles = _reactNative.StyleSheet.create({
280
281
  filterItemText: {
281
282
  flex: 1,
282
283
  fontSize: 12,
283
- fontFamily: "monospace",
284
+ fontFamily: _fonts.monoFont,
284
285
  marginRight: 8,
285
286
  color: _nightTheme.night.color.text
286
287
  },
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.InfoRow = InfoRow;
7
+ var _reactNative = require("react-native");
8
+ var _nightTheme = require("../night/nightTheme.js");
9
+ var _CopyButton = require("./CopyButton.js");
10
+ var _fonts = require("../fonts.js");
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+ /**
13
+ * InfoRow — the label / value line of every detail screen.
14
+ *
15
+ * Thirteen tools hand-rolled this (redux and zustand byte-for-byte). The
16
+ * night-theme recipe below is theirs: 11 px, tertiary label on the left,
17
+ * right-aligned value that truncates in the MIDDLE so both ends of an id or
18
+ * a path stay readable, optional monospace, optional color.
19
+ *
20
+ * `ellipsizeMode="middle"` truncates the RENDERED text and iOS reports the
21
+ * truncated string back, so anything a test reads off one of these rows has
22
+ * to be short enough to fit on the line.
23
+ */
24
+
25
+ function InfoRow({
26
+ label,
27
+ value,
28
+ valueColor,
29
+ mono = false,
30
+ copyable = false,
31
+ numberOfLines = 1,
32
+ testID,
33
+ style,
34
+ labelStyle,
35
+ valueStyle
36
+ }) {
37
+ const isText = typeof value === "string" || typeof value === "number";
38
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
39
+ style: [styles.row, style],
40
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
41
+ style: [styles.label, labelStyle],
42
+ numberOfLines: 1,
43
+ children: label
44
+ }), isText ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
45
+ testID: testID,
46
+ style: [styles.value, mono && styles.valueMono, valueColor ? {
47
+ color: valueColor
48
+ } : undefined, valueStyle],
49
+ numberOfLines: numberOfLines,
50
+ ellipsizeMode: "middle",
51
+ children: String(value)
52
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
53
+ style: styles.valueNode,
54
+ testID: testID,
55
+ children: value
56
+ }), copyable && isText ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_CopyButton.CopyButton, {
57
+ value: String(value),
58
+ size: 12
59
+ }) : null]
60
+ });
61
+ }
62
+ const styles = _reactNative.StyleSheet.create({
63
+ row: {
64
+ flexDirection: "row",
65
+ alignItems: "center",
66
+ justifyContent: "space-between"
67
+ },
68
+ label: {
69
+ fontSize: 11,
70
+ color: _nightTheme.night.color.textTertiary,
71
+ fontWeight: "500"
72
+ },
73
+ value: {
74
+ fontSize: 11,
75
+ color: _nightTheme.night.color.text,
76
+ fontWeight: "500",
77
+ flex: 1,
78
+ textAlign: "right",
79
+ marginLeft: 12
80
+ },
81
+ valueMono: {
82
+ fontFamily: _fonts.monoFont
83
+ },
84
+ valueNode: {
85
+ flex: 1,
86
+ flexDirection: "row",
87
+ justifyContent: "flex-end",
88
+ alignItems: "center",
89
+ marginLeft: 12
90
+ }
91
+ });
@@ -147,16 +147,32 @@ function HeaderSearch({
147
147
  onCancel,
148
148
  placeholder = "Search...",
149
149
  autoFocus = true,
150
- testID
150
+ testID,
151
+ containerTestID,
152
+ clearTestID,
153
+ accessibilityLabel,
154
+ onBlur,
155
+ iconSize = 12,
156
+ dismissOnBlur = false,
157
+ onDismiss,
158
+ clearOnlyWhenText = false,
159
+ inputProps,
160
+ containerNativeID
151
161
  }) {
152
162
  const inputRef = (0, _react.useRef)(null);
163
+ // Set while the ✕ is pressed so the blur it causes doesn't dismiss first.
164
+ const clearPressRef = (0, _react.useRef)(false);
153
165
  (0, _react.useEffect)(() => {
154
166
  if (autoFocus) inputRef.current?.focus();
155
167
  }, [autoFocus]);
168
+ const dismiss = onDismiss ?? onCancel;
169
+ const showClear = !clearOnlyWhenText || value.length > 0;
156
170
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
157
171
  style: styles.searchContainer,
172
+ testID: containerTestID,
173
+ nativeID: containerNativeID,
158
174
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Search, {
159
- size: 12,
175
+ size: iconSize,
160
176
  color: _nightTheme.night.color.textSecondary
161
177
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
162
178
  ref: inputRef,
@@ -165,21 +181,38 @@ function HeaderSearch({
165
181
  placeholderTextColor: _nightTheme.night.color.placeholder,
166
182
  value: value,
167
183
  onChangeText: onChangeText,
184
+ onSubmitEditing: () => dismissOnBlur ? dismiss() : inputRef.current?.blur(),
185
+ onBlur: () => {
186
+ if (dismissOnBlur && !clearPressRef.current) dismiss();
187
+ onBlur?.();
188
+ },
168
189
  autoCorrect: false,
169
190
  autoCapitalize: "none",
191
+ returnKeyType: "search",
170
192
  testID: testID,
171
- accessibilityLabel: placeholder
172
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
173
- onPress: onCancel,
193
+ accessibilityLabel: accessibilityLabel ?? placeholder,
194
+ ...inputProps
195
+ }), showClear ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
196
+ onPress: onCancel
197
+ // react-native-web delays press-in ~50ms by default (native fires it
198
+ // immediately), which would put it AFTER the blur.
199
+ ,
200
+ delayPressIn: 0,
201
+ onPressIn: () => {
202
+ clearPressRef.current = true;
203
+ },
204
+ onPressOut: () => {
205
+ clearPressRef.current = false;
206
+ },
174
207
  style: styles.searchCancelButton,
175
208
  accessibilityRole: "button",
176
209
  accessibilityLabel: "Clear search",
177
- testID: testID ? `${testID}-clear` : undefined,
210
+ testID: clearTestID ?? (testID ? `${testID}-clear` : undefined),
178
211
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.X, {
179
212
  size: 12,
180
213
  color: _nightTheme.night.color.textSecondary
181
214
  })
182
- })]
215
+ }) : null]
183
216
  });
184
217
  }
185
218
 
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Pill = Pill;
7
+ var _reactNative = require("react-native");
8
+ var _nightTheme = require("../night/nightTheme.js");
9
+ var _fonts = require("../fonts.js");
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ /**
12
+ * Pill — the small caption chip every tool draws next to a row: a verdict
13
+ * ("UNUSED", "OVERSIZE"), a kind ("event", "transaction"), a link ("↔ 2"),
14
+ * a source ("MMKV"). Sixteen packages defined 150+ local pill styles that
15
+ * fall into five looks; those are the `variant`s here. Text is always in
16
+ * the pill's color (or the muted ink for `quiet`), never the series color
17
+ * of anything else.
18
+ *
19
+ * - `tinted` — color fill at 15% + border at 40% (scenarios, react-query chips)
20
+ * - `soft` — color fill at 20%, rounded, no border (events correlation badge)
21
+ * - `outline` — color border only (sentry envelope types)
22
+ * - `quiet` — neutral 6% white fill, muted text, optional color dot (assets)
23
+ * - `text` — bare colored caption, no chrome (images row badges)
24
+ */
25
+
26
+ function Pill({
27
+ label,
28
+ color = _nightTheme.night.color.textSecondary,
29
+ variant = "tinted",
30
+ size = "xs",
31
+ mono = false,
32
+ uppercase,
33
+ dot = false,
34
+ icon,
35
+ testID,
36
+ style
37
+ }) {
38
+ const upper = uppercase ?? (variant === "tinted" || variant === "quiet" || variant === "text");
39
+ const textColor = variant === "quiet" ? _nightTheme.night.color.textSecondary : color;
40
+ const chrome = variant === "tinted" ? {
41
+ backgroundColor: `${color}15`,
42
+ borderColor: `${color}40`,
43
+ borderWidth: 1
44
+ } : variant === "soft" ? {
45
+ backgroundColor: `${color}20`
46
+ } : variant === "outline" ? {
47
+ borderColor: color,
48
+ borderWidth: 1
49
+ } : variant === "quiet" ? {
50
+ backgroundColor: "rgba(255,255,255,0.06)"
51
+ } : {};
52
+ if (variant === "text") {
53
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
54
+ style: [styles.text, size === "sm" && styles.textSm, mono && styles.mono, upper && styles.upper, {
55
+ color: textColor
56
+ }],
57
+ testID: testID,
58
+ children: label
59
+ });
60
+ }
61
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
62
+ style: [styles.pill, variant === "soft" && styles.pillSoft, size === "sm" && styles.pillSm, chrome, style],
63
+ children: [icon, dot && variant === "quiet" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
64
+ style: [styles.dot, {
65
+ backgroundColor: color
66
+ }]
67
+ }) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
68
+ style: [styles.text, size === "sm" && styles.textSm, mono && styles.mono, upper && styles.upper, {
69
+ color: textColor
70
+ }],
71
+ testID: testID,
72
+ children: label
73
+ })]
74
+ });
75
+ }
76
+ const styles = _reactNative.StyleSheet.create({
77
+ pill: {
78
+ flexDirection: "row",
79
+ alignItems: "center",
80
+ alignSelf: "flex-start",
81
+ gap: 4,
82
+ paddingHorizontal: 6,
83
+ paddingVertical: 2,
84
+ borderRadius: 4
85
+ },
86
+ pillSoft: {
87
+ paddingHorizontal: 8,
88
+ borderRadius: 10
89
+ },
90
+ pillSm: {
91
+ paddingHorizontal: 8,
92
+ paddingVertical: 3
93
+ },
94
+ dot: {
95
+ width: 5,
96
+ height: 5,
97
+ borderRadius: 2.5
98
+ },
99
+ text: {
100
+ fontSize: 10,
101
+ fontWeight: "600",
102
+ letterSpacing: 0.3
103
+ },
104
+ textSm: {
105
+ fontSize: 11
106
+ },
107
+ mono: {
108
+ fontFamily: _fonts.monoFont
109
+ },
110
+ upper: {
111
+ textTransform: "uppercase",
112
+ letterSpacing: 0.5,
113
+ fontWeight: "700"
114
+ }
115
+ });
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ToggleRow = ToggleRow;
7
+ var _reactNative = require("react-native");
8
+ var _nightTheme = require("../night/nightTheme.js");
9
+ var _jsxRuntime = require("react/jsx-runtime");
10
+ /**
11
+ * ToggleRow — a labeled switch row for a tool's settings surface.
12
+ *
13
+ * Every settings screen (impersonate, image-overlay, highlight-updates,
14
+ * perf-monitor, scenarios, storage, ask-buoy) drew its own `toggleRow` +
15
+ * `<Switch>` pair with the same night track colors. The native switch stays
16
+ * (a custom control would be a visible design change); the row chrome,
17
+ * the label/description stack and the accent/warning tone are shared.
18
+ *
19
+ * - `variant="card"` — an elevated bordered pill row (image-overlay)
20
+ * - `variant="plain"` — a bare list row for use inside a card (impersonate)
21
+ */
22
+
23
+ function ToggleRow({
24
+ label,
25
+ description,
26
+ value,
27
+ onValueChange,
28
+ disabled = false,
29
+ tone = "accent",
30
+ accessory,
31
+ variant = "card",
32
+ emphasizeLabel = false,
33
+ testID,
34
+ style
35
+ }) {
36
+ const onColor = tone === "warning" ? _nightTheme.night.color.warning : _nightTheme.night.color.accent;
37
+ const isCard = variant === "card";
38
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
39
+ style: [styles.row, isCard ? styles.rowCard : styles.rowPlain, style],
40
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
41
+ style: styles.info,
42
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
43
+ style: styles.header,
44
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
45
+ style: [isCard ? styles.labelCard : styles.labelPlain, emphasizeLabel && {
46
+ color: onColor
47
+ }],
48
+ numberOfLines: 2,
49
+ children: label
50
+ }), accessory]
51
+ }), description ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
52
+ style: styles.description,
53
+ children: description
54
+ }) : null]
55
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Switch, {
56
+ value: value,
57
+ onValueChange: onValueChange,
58
+ disabled: disabled,
59
+ testID: testID,
60
+ accessibilityLabel: label,
61
+ trackColor: isCard ? {
62
+ false: _nightTheme.night.color.surfaceElevated,
63
+ true: onColor
64
+ } : {
65
+ false: _nightTheme.night.color.border,
66
+ true: `${onColor}50`
67
+ },
68
+ thumbColor: isCard ? undefined : value ? onColor : _nightTheme.night.color.knob
69
+ })]
70
+ });
71
+ }
72
+ const styles = _reactNative.StyleSheet.create({
73
+ row: {
74
+ flexDirection: "row",
75
+ alignItems: "center",
76
+ justifyContent: "space-between"
77
+ },
78
+ rowCard: {
79
+ backgroundColor: _nightTheme.night.color.surfaceElevated,
80
+ borderRadius: 8,
81
+ borderWidth: 1,
82
+ borderColor: _nightTheme.night.color.border,
83
+ paddingHorizontal: 12,
84
+ paddingVertical: 8
85
+ },
86
+ rowPlain: {
87
+ paddingVertical: 12,
88
+ paddingHorizontal: 12
89
+ },
90
+ info: {
91
+ flex: 1,
92
+ marginRight: 12
93
+ },
94
+ header: {
95
+ flexDirection: "row",
96
+ alignItems: "center",
97
+ gap: 8,
98
+ flexWrap: "wrap"
99
+ },
100
+ labelCard: {
101
+ fontSize: 13,
102
+ fontWeight: "500",
103
+ color: _nightTheme.night.color.textSecondary
104
+ },
105
+ labelPlain: {
106
+ fontSize: 14,
107
+ fontWeight: "500",
108
+ color: _nightTheme.night.color.text
109
+ },
110
+ description: {
111
+ fontSize: 12,
112
+ color: _nightTheme.night.color.textTertiary,
113
+ lineHeight: 16,
114
+ marginTop: 3
115
+ }
116
+ });