@xyo-network/react-payload-raw-info 2.82.0 → 2.83.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (336) hide show
  1. package/dist/browser/index.d.ts +58 -2
  2. package/package.json +8 -24
  3. package/xy.config.ts +12 -0
  4. package/dist/browser/components/Button/RawInfoButton.d.cts +0 -14
  5. package/dist/browser/components/Button/RawInfoButton.d.cts.map +0 -1
  6. package/dist/browser/components/Button/RawInfoButton.d.mts +0 -14
  7. package/dist/browser/components/Button/RawInfoButton.d.mts.map +0 -1
  8. package/dist/browser/components/Button/RawInfoButton.d.ts +0 -14
  9. package/dist/browser/components/Button/RawInfoButton.d.ts.map +0 -1
  10. package/dist/browser/components/Button/RawInfoIconButton.d.cts +0 -14
  11. package/dist/browser/components/Button/RawInfoIconButton.d.cts.map +0 -1
  12. package/dist/browser/components/Button/RawInfoIconButton.d.mts +0 -14
  13. package/dist/browser/components/Button/RawInfoIconButton.d.mts.map +0 -1
  14. package/dist/browser/components/Button/RawInfoIconButton.d.ts +0 -14
  15. package/dist/browser/components/Button/RawInfoIconButton.d.ts.map +0 -1
  16. package/dist/browser/components/Button/index.d.cts +0 -3
  17. package/dist/browser/components/Button/index.d.cts.map +0 -1
  18. package/dist/browser/components/Button/index.d.mts +0 -3
  19. package/dist/browser/components/Button/index.d.mts.map +0 -1
  20. package/dist/browser/components/Button/index.d.ts +0 -3
  21. package/dist/browser/components/Button/index.d.ts.map +0 -1
  22. package/dist/browser/components/Button/lib/IconSize.d.cts +0 -2
  23. package/dist/browser/components/Button/lib/IconSize.d.cts.map +0 -1
  24. package/dist/browser/components/Button/lib/IconSize.d.mts +0 -2
  25. package/dist/browser/components/Button/lib/IconSize.d.mts.map +0 -1
  26. package/dist/browser/components/Button/lib/IconSize.d.ts +0 -2
  27. package/dist/browser/components/Button/lib/IconSize.d.ts.map +0 -1
  28. package/dist/browser/components/Button/lib/index.d.cts +0 -3
  29. package/dist/browser/components/Button/lib/index.d.cts.map +0 -1
  30. package/dist/browser/components/Button/lib/index.d.mts +0 -3
  31. package/dist/browser/components/Button/lib/index.d.mts.map +0 -1
  32. package/dist/browser/components/Button/lib/index.d.ts +0 -3
  33. package/dist/browser/components/Button/lib/index.d.ts.map +0 -1
  34. package/dist/browser/components/Button/lib/presetIconSize.d.cts +0 -3
  35. package/dist/browser/components/Button/lib/presetIconSize.d.cts.map +0 -1
  36. package/dist/browser/components/Button/lib/presetIconSize.d.mts +0 -3
  37. package/dist/browser/components/Button/lib/presetIconSize.d.mts.map +0 -1
  38. package/dist/browser/components/Button/lib/presetIconSize.d.ts +0 -3
  39. package/dist/browser/components/Button/lib/presetIconSize.d.ts.map +0 -1
  40. package/dist/browser/components/img/index.d.cts +0 -4
  41. package/dist/browser/components/img/index.d.cts.map +0 -1
  42. package/dist/browser/components/img/index.d.mts +0 -4
  43. package/dist/browser/components/img/index.d.mts.map +0 -1
  44. package/dist/browser/components/img/index.d.ts +0 -4
  45. package/dist/browser/components/img/index.d.ts.map +0 -1
  46. package/dist/browser/components/index.d.cts +0 -4
  47. package/dist/browser/components/index.d.cts.map +0 -1
  48. package/dist/browser/components/index.d.mts +0 -4
  49. package/dist/browser/components/index.d.mts.map +0 -1
  50. package/dist/browser/components/index.d.ts +0 -4
  51. package/dist/browser/components/index.d.ts.map +0 -1
  52. package/dist/browser/components/shared/Dialog/JsonViewerCollapse.d.cts +0 -9
  53. package/dist/browser/components/shared/Dialog/JsonViewerCollapse.d.cts.map +0 -1
  54. package/dist/browser/components/shared/Dialog/JsonViewerCollapse.d.mts +0 -9
  55. package/dist/browser/components/shared/Dialog/JsonViewerCollapse.d.mts.map +0 -1
  56. package/dist/browser/components/shared/Dialog/JsonViewerCollapse.d.ts +0 -9
  57. package/dist/browser/components/shared/Dialog/JsonViewerCollapse.d.ts.map +0 -1
  58. package/dist/browser/components/shared/Dialog/RawInfoDialog.d.cts +0 -11
  59. package/dist/browser/components/shared/Dialog/RawInfoDialog.d.cts.map +0 -1
  60. package/dist/browser/components/shared/Dialog/RawInfoDialog.d.mts +0 -11
  61. package/dist/browser/components/shared/Dialog/RawInfoDialog.d.mts.map +0 -1
  62. package/dist/browser/components/shared/Dialog/RawInfoDialog.d.ts +0 -11
  63. package/dist/browser/components/shared/Dialog/RawInfoDialog.d.ts.map +0 -1
  64. package/dist/browser/components/shared/Dialog/index.d.cts +0 -3
  65. package/dist/browser/components/shared/Dialog/index.d.cts.map +0 -1
  66. package/dist/browser/components/shared/Dialog/index.d.mts +0 -3
  67. package/dist/browser/components/shared/Dialog/index.d.mts.map +0 -1
  68. package/dist/browser/components/shared/Dialog/index.d.ts +0 -3
  69. package/dist/browser/components/shared/Dialog/index.d.ts.map +0 -1
  70. package/dist/browser/components/shared/JsonViewerEx.d.cts +0 -5
  71. package/dist/browser/components/shared/JsonViewerEx.d.cts.map +0 -1
  72. package/dist/browser/components/shared/JsonViewerEx.d.mts +0 -5
  73. package/dist/browser/components/shared/JsonViewerEx.d.mts.map +0 -1
  74. package/dist/browser/components/shared/JsonViewerEx.d.ts +0 -5
  75. package/dist/browser/components/shared/JsonViewerEx.d.ts.map +0 -1
  76. package/dist/browser/components/shared/index.d.cts +0 -3
  77. package/dist/browser/components/shared/index.d.cts.map +0 -1
  78. package/dist/browser/components/shared/index.d.mts +0 -3
  79. package/dist/browser/components/shared/index.d.mts.map +0 -1
  80. package/dist/browser/components/shared/index.d.ts +0 -3
  81. package/dist/browser/components/shared/index.d.ts.map +0 -1
  82. package/dist/browser/components/styled/StyledChipLabel.d.cts +0 -4
  83. package/dist/browser/components/styled/StyledChipLabel.d.cts.map +0 -1
  84. package/dist/browser/components/styled/StyledChipLabel.d.mts +0 -4
  85. package/dist/browser/components/styled/StyledChipLabel.d.mts.map +0 -1
  86. package/dist/browser/components/styled/StyledChipLabel.d.ts +0 -4
  87. package/dist/browser/components/styled/StyledChipLabel.d.ts.map +0 -1
  88. package/dist/browser/components/styled/index.d.cts +0 -2
  89. package/dist/browser/components/styled/index.d.cts.map +0 -1
  90. package/dist/browser/components/styled/index.d.mts +0 -2
  91. package/dist/browser/components/styled/index.d.mts.map +0 -1
  92. package/dist/browser/components/styled/index.d.ts +0 -2
  93. package/dist/browser/components/styled/index.d.ts.map +0 -1
  94. package/dist/browser/index.cjs +0 -275
  95. package/dist/browser/index.cjs.map +0 -1
  96. package/dist/browser/index.d.cts +0 -2
  97. package/dist/browser/index.d.cts.map +0 -1
  98. package/dist/browser/index.d.mts +0 -2
  99. package/dist/browser/index.d.mts.map +0 -1
  100. package/dist/browser/index.d.ts.map +0 -1
  101. package/dist/browser/lib/ExpansionProps.d.cts +0 -5
  102. package/dist/browser/lib/ExpansionProps.d.cts.map +0 -1
  103. package/dist/browser/lib/ExpansionProps.d.mts +0 -5
  104. package/dist/browser/lib/ExpansionProps.d.mts.map +0 -1
  105. package/dist/browser/lib/ExpansionProps.d.ts +0 -5
  106. package/dist/browser/lib/ExpansionProps.d.ts.map +0 -1
  107. package/dist/browser/lib/index.d.cts +0 -2
  108. package/dist/browser/lib/index.d.cts.map +0 -1
  109. package/dist/browser/lib/index.d.mts +0 -2
  110. package/dist/browser/lib/index.d.mts.map +0 -1
  111. package/dist/browser/lib/index.d.ts +0 -2
  112. package/dist/browser/lib/index.d.ts.map +0 -1
  113. package/dist/neutral/components/Button/RawInfoButton.d.cts +0 -14
  114. package/dist/neutral/components/Button/RawInfoButton.d.cts.map +0 -1
  115. package/dist/neutral/components/Button/RawInfoButton.d.mts +0 -14
  116. package/dist/neutral/components/Button/RawInfoButton.d.mts.map +0 -1
  117. package/dist/neutral/components/Button/RawInfoButton.d.ts +0 -14
  118. package/dist/neutral/components/Button/RawInfoButton.d.ts.map +0 -1
  119. package/dist/neutral/components/Button/RawInfoIconButton.d.cts +0 -14
  120. package/dist/neutral/components/Button/RawInfoIconButton.d.cts.map +0 -1
  121. package/dist/neutral/components/Button/RawInfoIconButton.d.mts +0 -14
  122. package/dist/neutral/components/Button/RawInfoIconButton.d.mts.map +0 -1
  123. package/dist/neutral/components/Button/RawInfoIconButton.d.ts +0 -14
  124. package/dist/neutral/components/Button/RawInfoIconButton.d.ts.map +0 -1
  125. package/dist/neutral/components/Button/index.d.cts +0 -3
  126. package/dist/neutral/components/Button/index.d.cts.map +0 -1
  127. package/dist/neutral/components/Button/index.d.mts +0 -3
  128. package/dist/neutral/components/Button/index.d.mts.map +0 -1
  129. package/dist/neutral/components/Button/index.d.ts +0 -3
  130. package/dist/neutral/components/Button/index.d.ts.map +0 -1
  131. package/dist/neutral/components/Button/lib/IconSize.d.cts +0 -2
  132. package/dist/neutral/components/Button/lib/IconSize.d.cts.map +0 -1
  133. package/dist/neutral/components/Button/lib/IconSize.d.mts +0 -2
  134. package/dist/neutral/components/Button/lib/IconSize.d.mts.map +0 -1
  135. package/dist/neutral/components/Button/lib/IconSize.d.ts +0 -2
  136. package/dist/neutral/components/Button/lib/IconSize.d.ts.map +0 -1
  137. package/dist/neutral/components/Button/lib/index.d.cts +0 -3
  138. package/dist/neutral/components/Button/lib/index.d.cts.map +0 -1
  139. package/dist/neutral/components/Button/lib/index.d.mts +0 -3
  140. package/dist/neutral/components/Button/lib/index.d.mts.map +0 -1
  141. package/dist/neutral/components/Button/lib/index.d.ts +0 -3
  142. package/dist/neutral/components/Button/lib/index.d.ts.map +0 -1
  143. package/dist/neutral/components/Button/lib/presetIconSize.d.cts +0 -3
  144. package/dist/neutral/components/Button/lib/presetIconSize.d.cts.map +0 -1
  145. package/dist/neutral/components/Button/lib/presetIconSize.d.mts +0 -3
  146. package/dist/neutral/components/Button/lib/presetIconSize.d.mts.map +0 -1
  147. package/dist/neutral/components/Button/lib/presetIconSize.d.ts +0 -3
  148. package/dist/neutral/components/Button/lib/presetIconSize.d.ts.map +0 -1
  149. package/dist/neutral/components/img/index.d.cts +0 -4
  150. package/dist/neutral/components/img/index.d.cts.map +0 -1
  151. package/dist/neutral/components/img/index.d.mts +0 -4
  152. package/dist/neutral/components/img/index.d.mts.map +0 -1
  153. package/dist/neutral/components/img/index.d.ts +0 -4
  154. package/dist/neutral/components/img/index.d.ts.map +0 -1
  155. package/dist/neutral/components/index.d.cts +0 -4
  156. package/dist/neutral/components/index.d.cts.map +0 -1
  157. package/dist/neutral/components/index.d.mts +0 -4
  158. package/dist/neutral/components/index.d.mts.map +0 -1
  159. package/dist/neutral/components/index.d.ts +0 -4
  160. package/dist/neutral/components/index.d.ts.map +0 -1
  161. package/dist/neutral/components/shared/Dialog/JsonViewerCollapse.d.cts +0 -9
  162. package/dist/neutral/components/shared/Dialog/JsonViewerCollapse.d.cts.map +0 -1
  163. package/dist/neutral/components/shared/Dialog/JsonViewerCollapse.d.mts +0 -9
  164. package/dist/neutral/components/shared/Dialog/JsonViewerCollapse.d.mts.map +0 -1
  165. package/dist/neutral/components/shared/Dialog/JsonViewerCollapse.d.ts +0 -9
  166. package/dist/neutral/components/shared/Dialog/JsonViewerCollapse.d.ts.map +0 -1
  167. package/dist/neutral/components/shared/Dialog/RawInfoDialog.d.cts +0 -11
  168. package/dist/neutral/components/shared/Dialog/RawInfoDialog.d.cts.map +0 -1
  169. package/dist/neutral/components/shared/Dialog/RawInfoDialog.d.mts +0 -11
  170. package/dist/neutral/components/shared/Dialog/RawInfoDialog.d.mts.map +0 -1
  171. package/dist/neutral/components/shared/Dialog/RawInfoDialog.d.ts +0 -11
  172. package/dist/neutral/components/shared/Dialog/RawInfoDialog.d.ts.map +0 -1
  173. package/dist/neutral/components/shared/Dialog/index.d.cts +0 -3
  174. package/dist/neutral/components/shared/Dialog/index.d.cts.map +0 -1
  175. package/dist/neutral/components/shared/Dialog/index.d.mts +0 -3
  176. package/dist/neutral/components/shared/Dialog/index.d.mts.map +0 -1
  177. package/dist/neutral/components/shared/Dialog/index.d.ts +0 -3
  178. package/dist/neutral/components/shared/Dialog/index.d.ts.map +0 -1
  179. package/dist/neutral/components/shared/JsonViewerEx.d.cts +0 -5
  180. package/dist/neutral/components/shared/JsonViewerEx.d.cts.map +0 -1
  181. package/dist/neutral/components/shared/JsonViewerEx.d.mts +0 -5
  182. package/dist/neutral/components/shared/JsonViewerEx.d.mts.map +0 -1
  183. package/dist/neutral/components/shared/JsonViewerEx.d.ts +0 -5
  184. package/dist/neutral/components/shared/JsonViewerEx.d.ts.map +0 -1
  185. package/dist/neutral/components/shared/index.d.cts +0 -3
  186. package/dist/neutral/components/shared/index.d.cts.map +0 -1
  187. package/dist/neutral/components/shared/index.d.mts +0 -3
  188. package/dist/neutral/components/shared/index.d.mts.map +0 -1
  189. package/dist/neutral/components/shared/index.d.ts +0 -3
  190. package/dist/neutral/components/shared/index.d.ts.map +0 -1
  191. package/dist/neutral/components/styled/StyledChipLabel.d.cts +0 -4
  192. package/dist/neutral/components/styled/StyledChipLabel.d.cts.map +0 -1
  193. package/dist/neutral/components/styled/StyledChipLabel.d.mts +0 -4
  194. package/dist/neutral/components/styled/StyledChipLabel.d.mts.map +0 -1
  195. package/dist/neutral/components/styled/StyledChipLabel.d.ts +0 -4
  196. package/dist/neutral/components/styled/StyledChipLabel.d.ts.map +0 -1
  197. package/dist/neutral/components/styled/index.d.cts +0 -2
  198. package/dist/neutral/components/styled/index.d.cts.map +0 -1
  199. package/dist/neutral/components/styled/index.d.mts +0 -2
  200. package/dist/neutral/components/styled/index.d.mts.map +0 -1
  201. package/dist/neutral/components/styled/index.d.ts +0 -2
  202. package/dist/neutral/components/styled/index.d.ts.map +0 -1
  203. package/dist/neutral/index.cjs +0 -275
  204. package/dist/neutral/index.cjs.map +0 -1
  205. package/dist/neutral/index.d.cts +0 -2
  206. package/dist/neutral/index.d.cts.map +0 -1
  207. package/dist/neutral/index.d.mts +0 -2
  208. package/dist/neutral/index.d.mts.map +0 -1
  209. package/dist/neutral/index.d.ts +0 -2
  210. package/dist/neutral/index.d.ts.map +0 -1
  211. package/dist/neutral/index.mjs +0 -244
  212. package/dist/neutral/index.mjs.map +0 -1
  213. package/dist/neutral/lib/ExpansionProps.d.cts +0 -5
  214. package/dist/neutral/lib/ExpansionProps.d.cts.map +0 -1
  215. package/dist/neutral/lib/ExpansionProps.d.mts +0 -5
  216. package/dist/neutral/lib/ExpansionProps.d.mts.map +0 -1
  217. package/dist/neutral/lib/ExpansionProps.d.ts +0 -5
  218. package/dist/neutral/lib/ExpansionProps.d.ts.map +0 -1
  219. package/dist/neutral/lib/index.d.cts +0 -2
  220. package/dist/neutral/lib/index.d.cts.map +0 -1
  221. package/dist/neutral/lib/index.d.mts +0 -2
  222. package/dist/neutral/lib/index.d.mts.map +0 -1
  223. package/dist/neutral/lib/index.d.ts +0 -2
  224. package/dist/neutral/lib/index.d.ts.map +0 -1
  225. package/dist/node/components/Button/RawInfoButton.d.cts +0 -14
  226. package/dist/node/components/Button/RawInfoButton.d.cts.map +0 -1
  227. package/dist/node/components/Button/RawInfoButton.d.mts +0 -14
  228. package/dist/node/components/Button/RawInfoButton.d.mts.map +0 -1
  229. package/dist/node/components/Button/RawInfoButton.d.ts +0 -14
  230. package/dist/node/components/Button/RawInfoButton.d.ts.map +0 -1
  231. package/dist/node/components/Button/RawInfoIconButton.d.cts +0 -14
  232. package/dist/node/components/Button/RawInfoIconButton.d.cts.map +0 -1
  233. package/dist/node/components/Button/RawInfoIconButton.d.mts +0 -14
  234. package/dist/node/components/Button/RawInfoIconButton.d.mts.map +0 -1
  235. package/dist/node/components/Button/RawInfoIconButton.d.ts +0 -14
  236. package/dist/node/components/Button/RawInfoIconButton.d.ts.map +0 -1
  237. package/dist/node/components/Button/index.d.cts +0 -3
  238. package/dist/node/components/Button/index.d.cts.map +0 -1
  239. package/dist/node/components/Button/index.d.mts +0 -3
  240. package/dist/node/components/Button/index.d.mts.map +0 -1
  241. package/dist/node/components/Button/index.d.ts +0 -3
  242. package/dist/node/components/Button/index.d.ts.map +0 -1
  243. package/dist/node/components/Button/lib/IconSize.d.cts +0 -2
  244. package/dist/node/components/Button/lib/IconSize.d.cts.map +0 -1
  245. package/dist/node/components/Button/lib/IconSize.d.mts +0 -2
  246. package/dist/node/components/Button/lib/IconSize.d.mts.map +0 -1
  247. package/dist/node/components/Button/lib/IconSize.d.ts +0 -2
  248. package/dist/node/components/Button/lib/IconSize.d.ts.map +0 -1
  249. package/dist/node/components/Button/lib/index.d.cts +0 -3
  250. package/dist/node/components/Button/lib/index.d.cts.map +0 -1
  251. package/dist/node/components/Button/lib/index.d.mts +0 -3
  252. package/dist/node/components/Button/lib/index.d.mts.map +0 -1
  253. package/dist/node/components/Button/lib/index.d.ts +0 -3
  254. package/dist/node/components/Button/lib/index.d.ts.map +0 -1
  255. package/dist/node/components/Button/lib/presetIconSize.d.cts +0 -3
  256. package/dist/node/components/Button/lib/presetIconSize.d.cts.map +0 -1
  257. package/dist/node/components/Button/lib/presetIconSize.d.mts +0 -3
  258. package/dist/node/components/Button/lib/presetIconSize.d.mts.map +0 -1
  259. package/dist/node/components/Button/lib/presetIconSize.d.ts +0 -3
  260. package/dist/node/components/Button/lib/presetIconSize.d.ts.map +0 -1
  261. package/dist/node/components/img/index.d.cts +0 -4
  262. package/dist/node/components/img/index.d.cts.map +0 -1
  263. package/dist/node/components/img/index.d.mts +0 -4
  264. package/dist/node/components/img/index.d.mts.map +0 -1
  265. package/dist/node/components/img/index.d.ts +0 -4
  266. package/dist/node/components/img/index.d.ts.map +0 -1
  267. package/dist/node/components/index.d.cts +0 -4
  268. package/dist/node/components/index.d.cts.map +0 -1
  269. package/dist/node/components/index.d.mts +0 -4
  270. package/dist/node/components/index.d.mts.map +0 -1
  271. package/dist/node/components/index.d.ts +0 -4
  272. package/dist/node/components/index.d.ts.map +0 -1
  273. package/dist/node/components/shared/Dialog/JsonViewerCollapse.d.cts +0 -9
  274. package/dist/node/components/shared/Dialog/JsonViewerCollapse.d.cts.map +0 -1
  275. package/dist/node/components/shared/Dialog/JsonViewerCollapse.d.mts +0 -9
  276. package/dist/node/components/shared/Dialog/JsonViewerCollapse.d.mts.map +0 -1
  277. package/dist/node/components/shared/Dialog/JsonViewerCollapse.d.ts +0 -9
  278. package/dist/node/components/shared/Dialog/JsonViewerCollapse.d.ts.map +0 -1
  279. package/dist/node/components/shared/Dialog/RawInfoDialog.d.cts +0 -11
  280. package/dist/node/components/shared/Dialog/RawInfoDialog.d.cts.map +0 -1
  281. package/dist/node/components/shared/Dialog/RawInfoDialog.d.mts +0 -11
  282. package/dist/node/components/shared/Dialog/RawInfoDialog.d.mts.map +0 -1
  283. package/dist/node/components/shared/Dialog/RawInfoDialog.d.ts +0 -11
  284. package/dist/node/components/shared/Dialog/RawInfoDialog.d.ts.map +0 -1
  285. package/dist/node/components/shared/Dialog/index.d.cts +0 -3
  286. package/dist/node/components/shared/Dialog/index.d.cts.map +0 -1
  287. package/dist/node/components/shared/Dialog/index.d.mts +0 -3
  288. package/dist/node/components/shared/Dialog/index.d.mts.map +0 -1
  289. package/dist/node/components/shared/Dialog/index.d.ts +0 -3
  290. package/dist/node/components/shared/Dialog/index.d.ts.map +0 -1
  291. package/dist/node/components/shared/JsonViewerEx.d.cts +0 -5
  292. package/dist/node/components/shared/JsonViewerEx.d.cts.map +0 -1
  293. package/dist/node/components/shared/JsonViewerEx.d.mts +0 -5
  294. package/dist/node/components/shared/JsonViewerEx.d.mts.map +0 -1
  295. package/dist/node/components/shared/JsonViewerEx.d.ts +0 -5
  296. package/dist/node/components/shared/JsonViewerEx.d.ts.map +0 -1
  297. package/dist/node/components/shared/index.d.cts +0 -3
  298. package/dist/node/components/shared/index.d.cts.map +0 -1
  299. package/dist/node/components/shared/index.d.mts +0 -3
  300. package/dist/node/components/shared/index.d.mts.map +0 -1
  301. package/dist/node/components/shared/index.d.ts +0 -3
  302. package/dist/node/components/shared/index.d.ts.map +0 -1
  303. package/dist/node/components/styled/StyledChipLabel.d.cts +0 -4
  304. package/dist/node/components/styled/StyledChipLabel.d.cts.map +0 -1
  305. package/dist/node/components/styled/StyledChipLabel.d.mts +0 -4
  306. package/dist/node/components/styled/StyledChipLabel.d.mts.map +0 -1
  307. package/dist/node/components/styled/StyledChipLabel.d.ts +0 -4
  308. package/dist/node/components/styled/StyledChipLabel.d.ts.map +0 -1
  309. package/dist/node/components/styled/index.d.cts +0 -2
  310. package/dist/node/components/styled/index.d.cts.map +0 -1
  311. package/dist/node/components/styled/index.d.mts +0 -2
  312. package/dist/node/components/styled/index.d.mts.map +0 -1
  313. package/dist/node/components/styled/index.d.ts +0 -2
  314. package/dist/node/components/styled/index.d.ts.map +0 -1
  315. package/dist/node/index.cjs +0 -284
  316. package/dist/node/index.cjs.map +0 -1
  317. package/dist/node/index.d.cts +0 -2
  318. package/dist/node/index.d.cts.map +0 -1
  319. package/dist/node/index.d.mts +0 -2
  320. package/dist/node/index.d.mts.map +0 -1
  321. package/dist/node/index.d.ts +0 -2
  322. package/dist/node/index.d.ts.map +0 -1
  323. package/dist/node/index.mjs +0 -244
  324. package/dist/node/index.mjs.map +0 -1
  325. package/dist/node/lib/ExpansionProps.d.cts +0 -5
  326. package/dist/node/lib/ExpansionProps.d.cts.map +0 -1
  327. package/dist/node/lib/ExpansionProps.d.mts +0 -5
  328. package/dist/node/lib/ExpansionProps.d.mts.map +0 -1
  329. package/dist/node/lib/ExpansionProps.d.ts +0 -5
  330. package/dist/node/lib/ExpansionProps.d.ts.map +0 -1
  331. package/dist/node/lib/index.d.cts +0 -2
  332. package/dist/node/lib/index.d.cts.map +0 -1
  333. package/dist/node/lib/index.d.mts +0 -2
  334. package/dist/node/lib/index.d.mts.map +0 -1
  335. package/dist/node/lib/index.d.ts +0 -2
  336. package/dist/node/lib/index.d.ts.map +0 -1
@@ -1,244 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
- // src/components/Button/RawInfoButton.tsx
5
- import { toJson } from "@xylabs/object";
6
- import { ButtonEx } from "@xylabs/react-button";
7
- import React5, { useMemo, useState } from "react";
8
-
9
- // src/components/img/index.tsx
10
- import { createSvgIcon } from "@mui/material";
11
- import React from "react";
12
- var XyoColorLogo = createSvgIcon(/* @__PURE__ */ React.createElement("svg", {
13
- xmlns: "http://www.w3.org/2000/svg",
14
- viewBox: "0 0 256 238"
15
- }, /* @__PURE__ */ React.createElement("path", {
16
- className: "cls-1",
17
- d: "M74.5,28.33,21.29,120.5,74.5,212.67H180.94l1.76-3,51.46-89.13L180.94,28.33ZM84.65,40.54h78.83L111.65,56.93a15.85,15.85,0,0,1,2,5l59.66-18.81L185.22,101a20.12,20.12,0,0,1,5.36-.78l-10-47.91,37.87,65.53h-7.62a24.21,24.21,0,0,1,.15,2.68,23.29,23.29,0,0,1-.15,2.68h7.62l-39.1,67.75,10.92-50.13A20.57,20.57,0,0,1,185,140l-12.88,59-58.37-19.53a17.61,17.61,0,0,1-1.7,5l47.5,15.92H84.65l4-6.85A20.17,20.17,0,0,1,83.93,191L80,197.78,42.67,133.13l37,32.66a20.52,20.52,0,0,1,3.6-4L36.69,120.66,85,77.79a17.45,17.45,0,0,1-3.19-4.32l-39.46,35L80,43.22l5.56,9.69A17.51,17.51,0,0,1,90.12,50Zm28.24,31.17a16.15,16.15,0,0,1-2.68,4.64l62,35.81a19.74,19.74,0,0,1,2.83-4.54Zm-20,10.51v75.33a18,18,0,0,1,2.47-.16,17.18,17.18,0,0,1,2.89.21v-75a11.21,11.21,0,0,1-1.29,0,17.57,17.57,0,0,1-4.07-.47Zm79.34,46.63-62.08,35.81a18.45,18.45,0,0,1,2.68,4.68l62.23-36a19.68,19.68,0,0,1-2.83-4.53Z",
18
- fill: "#8d8fc6"
19
- }), /* @__PURE__ */ React.createElement("path", {
20
- className: "cls-2",
21
- d: "M97,48.58a17.06,17.06,0,1,0,17,17,17.08,17.08,0,0,0-17-17Zm0,5.36a11.7,11.7,0,1,1-11.7,11.69A11.65,11.65,0,0,1,97,53.94Z",
22
- fill: "#579fd6"
23
- }), /* @__PURE__ */ React.createElement("path", {
24
- className: "cls-3",
25
- d: "M95.37,157.39a18.73,18.73,0,1,0,18.7,18.7,18.74,18.74,0,0,0-18.7-18.7Zm0,5.31A13.4,13.4,0,1,1,82,176.09a13.37,13.37,0,0,1,13.4-13.39Z",
26
- fill: "#f27046"
27
- }), /* @__PURE__ */ React.createElement("path", {
28
- className: "cls-4",
29
- d: "M190.73,100.2A20.3,20.3,0,1,0,211,120.5a20.34,20.34,0,0,0-20.3-20.3Zm0,5.36a14.94,14.94,0,1,1-14.94,14.94,14.88,14.88,0,0,1,14.94-14.94Z",
30
- fill: "#eb407a"
31
- })), "XyoColorLogo");
32
-
33
- // src/components/shared/Dialog/JsonViewerCollapse.tsx
34
- import { Button, Chip, Collapse, Typography as Typography2 } from "@mui/material";
35
- import { FlexCol, FlexRow } from "@xylabs/react-flexbox";
36
- import { usePromise } from "@xylabs/react-promise";
37
- import { PayloadBuilder } from "@xyo-network/payload-builder";
38
- import { isAnyPayload } from "@xyo-network/payload-model";
39
- import { useDataState } from "@xyo-network/react-shared";
40
- import React3 from "react";
41
-
42
- // src/components/styled/StyledChipLabel.tsx
43
- import { styled, Typography } from "@mui/material";
44
- var StyledChipLabel = styled(Typography, {
45
- name: "StyledChipLabel"
46
- })(({ theme }) => ({
47
- display: "block",
48
- lineHeight: 1,
49
- overflow: "hidden",
50
- paddingRight: theme.spacing(0.95),
51
- textOverflow: "ellipsis",
52
- whiteSpace: "nowrap"
53
- }));
54
-
55
- // src/components/shared/JsonViewerEx.tsx
56
- import { useTheme } from "@mui/material";
57
- import { JsonViewer } from "@textea/json-viewer";
58
- import { useColorSchemeEx } from "@xylabs/react-invertible-theme";
59
- import React2 from "react";
60
- var JsonViewerEx = /* @__PURE__ */ __name((props) => {
61
- const theme = useTheme();
62
- const { darkMode } = useColorSchemeEx();
63
- return /* @__PURE__ */ React2.createElement(JsonViewer, {
64
- theme: darkMode ? "dark" : "light",
65
- collapseStringsAfterLength: 50,
66
- style: {
67
- background: darkMode ? theme.palette.background.paper : theme.palette.grey[200],
68
- borderRadius: theme.shape.borderRadius,
69
- padding: theme.spacing(2)
70
- },
71
- ...props
72
- });
73
- }, "JsonViewerEx");
74
-
75
- // src/components/shared/Dialog/JsonViewerCollapse.tsx
76
- var JsonViewerCollapse = /* @__PURE__ */ __name(({ defaultExpandedJson, jsonValue, updateExpandedJson, ...props }) => {
77
- const [expandedJson, setExpandedJson] = useDataState(defaultExpandedJson);
78
- const [hash] = usePromise(async () => {
79
- if (!jsonValue || !isAnyPayload(jsonValue)) return;
80
- return await PayloadBuilder.dataHash(jsonValue);
81
- }, [
82
- jsonValue
83
- ]);
84
- const actionText = expandedJson ? "Hide JSON" : "Show JSON";
85
- const handleExpansion = /* @__PURE__ */ __name(() => {
86
- updateExpandedJson == null ? void 0 : updateExpandedJson(!expandedJson);
87
- setExpandedJson(!expandedJson);
88
- }, "handleExpansion");
89
- return /* @__PURE__ */ React3.createElement(React3.Fragment, null, jsonValue ? /* @__PURE__ */ React3.createElement(FlexRow, null, /* @__PURE__ */ React3.createElement(Button, {
90
- onClick: handleExpansion,
91
- size: "small",
92
- variant: "outlined"
93
- }, actionText)) : null, /* @__PURE__ */ React3.createElement(Collapse, {
94
- in: expandedJson,
95
- ...props
96
- }, jsonValue ? /* @__PURE__ */ React3.createElement(FlexCol, {
97
- alignItems: "stretch",
98
- gap: 1.5
99
- }, /* @__PURE__ */ React3.createElement(Typography2, {
100
- sx: {
101
- lineHeight: 1
102
- }
103
- }, "Payload Hash:"), hash ? /* @__PURE__ */ React3.createElement(Chip, {
104
- label: /* @__PURE__ */ React3.createElement(StyledChipLabel, null, hash),
105
- sx: {
106
- alignSelf: "start"
107
- }
108
- }) : null, /* @__PURE__ */ React3.createElement(JsonViewerEx, {
109
- value: jsonValue
110
- })) : null));
111
- }, "JsonViewerCollapse");
112
-
113
- // src/components/shared/Dialog/RawInfoDialog.tsx
114
- import { Button as Button2, Dialog, DialogActions, DialogContent, DialogTitle } from "@mui/material";
115
- import React4 from "react";
116
- var RawInfoDialog = /* @__PURE__ */ __name(({ defaultExpandedJson, dialogContent, onCloseCallback, jsonValue: jsonObject, updateExpandedJson, open = false, ...props }) => {
117
- const onDialogClick = /* @__PURE__ */ __name((event) => {
118
- event.stopPropagation();
119
- }, "onDialogClick");
120
- return (
121
- // Wrapping in a span so we can catch click events and prevent them from propagating outside the component
122
- /* @__PURE__ */ React4.createElement("span", {
123
- onClick: onDialogClick
124
- }, /* @__PURE__ */ React4.createElement(Dialog, {
125
- fullWidth: true,
126
- maxWidth: "lg",
127
- onClose: /* @__PURE__ */ __name(() => onCloseCallback == null ? void 0 : onCloseCallback(), "onClose"),
128
- open,
129
- ...props
130
- }, /* @__PURE__ */ React4.createElement(DialogTitle, null, "Raw Data"), /* @__PURE__ */ React4.createElement(DialogContent, {
131
- sx: {
132
- display: "flex",
133
- flexDirection: "column",
134
- gap: 2
135
- }
136
- }, dialogContent, /* @__PURE__ */ React4.createElement(JsonViewerCollapse, {
137
- defaultExpandedJson,
138
- jsonValue: jsonObject,
139
- updateExpandedJson
140
- })), /* @__PURE__ */ React4.createElement(DialogActions, null, /* @__PURE__ */ React4.createElement(Button2, {
141
- variant: "contained",
142
- onClick: /* @__PURE__ */ __name(() => onCloseCallback == null ? void 0 : onCloseCallback(), "onClick")
143
- }, "Close"))))
144
- );
145
- }, "RawInfoDialog");
146
-
147
- // src/components/Button/lib/presetIconSize.ts
148
- var presetIconSizeValue = /* @__PURE__ */ __name((size) => {
149
- switch (size) {
150
- case "small": {
151
- return 16;
152
- }
153
- case "medium": {
154
- return 32;
155
- }
156
- case "large": {
157
- return 48;
158
- }
159
- }
160
- }, "presetIconSizeValue");
161
-
162
- // src/components/Button/RawInfoButton.tsx
163
- var RawInfoButton = /* @__PURE__ */ __name(({ defaultExpandedJson = true, dialogContent, iconOnly, iconSize = 24, onCloseCallback, children, rawValue, presetIconSize, updateExpandedJson, ...props }) => {
164
- const [open, setOpen] = useState(false);
165
- const size = presetIconSizeValue(presetIconSize);
166
- const json = useMemo(() => toJson(rawValue), [
167
- rawValue
168
- ]);
169
- const handleClick = /* @__PURE__ */ __name((event) => {
170
- event.stopPropagation();
171
- setOpen(true);
172
- }, "handleClick");
173
- const onCloseCallBackWrapped = /* @__PURE__ */ __name(() => {
174
- setOpen(false);
175
- onCloseCallback == null ? void 0 : onCloseCallback();
176
- }, "onCloseCallBackWrapped");
177
- return /* @__PURE__ */ React5.createElement("span", null, /* @__PURE__ */ React5.createElement(ButtonEx, {
178
- variant: "outlined",
179
- size: "small",
180
- startIcon: /* @__PURE__ */ React5.createElement(XyoColorLogo, {
181
- sx: {
182
- height: size ?? iconSize,
183
- width: size ?? iconSize
184
- }
185
- }),
186
- onClick: handleClick,
187
- disabled: iconOnly ? false : !rawValue,
188
- ...props
189
- }, children ?? /* @__PURE__ */ React5.createElement("span", null, "Data")), iconOnly ? null : /* @__PURE__ */ React5.createElement(RawInfoDialog, {
190
- defaultExpandedJson,
191
- jsonValue: json,
192
- onCloseCallback: onCloseCallBackWrapped,
193
- dialogContent,
194
- open,
195
- updateExpandedJson
196
- }));
197
- }, "RawInfoButton");
198
-
199
- // src/components/Button/RawInfoIconButton.tsx
200
- import { IconButton } from "@mui/material";
201
- import { toJson as toJson2 } from "@xylabs/object";
202
- import React6, { forwardRef, useMemo as useMemo2, useState as useState2 } from "react";
203
- var RawInfoIconButton = /* @__PURE__ */ forwardRef(({ defaultExpandedJson = true, dialogContent, iconOnly, iconSize = 32, onCloseCallback, rawValue, presetIconSize, updateExpandedJson, ...props }, ref) => {
204
- const [open, setOpen] = useState2(false);
205
- const size = presetIconSizeValue(presetIconSize);
206
- const json = useMemo2(() => toJson2(rawValue), [
207
- rawValue
208
- ]);
209
- const handleClick = /* @__PURE__ */ __name((event) => {
210
- event.stopPropagation();
211
- setOpen(true);
212
- }, "handleClick");
213
- const onCloseCallBackWrapped = /* @__PURE__ */ __name(() => {
214
- setOpen(false);
215
- onCloseCallback == null ? void 0 : onCloseCallback();
216
- }, "onCloseCallBackWrapped");
217
- return /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement(IconButton, {
218
- onClick: handleClick,
219
- ref,
220
- ...props
221
- }, /* @__PURE__ */ React6.createElement(XyoColorLogo, {
222
- sx: {
223
- height: size ?? iconSize,
224
- width: size ?? iconSize
225
- }
226
- })), iconOnly ? null : /* @__PURE__ */ React6.createElement(RawInfoDialog, {
227
- defaultExpandedJson,
228
- jsonValue: json,
229
- onCloseCallback: onCloseCallBackWrapped,
230
- dialogContent,
231
- open,
232
- updateExpandedJson
233
- }));
234
- });
235
- RawInfoIconButton.displayName = "RawInfoIcon";
236
- export {
237
- JsonViewerCollapse,
238
- JsonViewerEx,
239
- RawInfoButton,
240
- RawInfoDialog,
241
- RawInfoIconButton,
242
- StyledChipLabel
243
- };
244
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/Button/RawInfoButton.tsx","../../src/components/img/index.tsx","../../src/components/shared/Dialog/JsonViewerCollapse.tsx","../../src/components/styled/StyledChipLabel.tsx","../../src/components/shared/JsonViewerEx.tsx","../../src/components/shared/Dialog/RawInfoDialog.tsx","../../src/components/Button/lib/presetIconSize.ts","../../src/components/Button/RawInfoIconButton.tsx"],"sourcesContent":["import { toJson } from '@xylabs/object'\nimport { ButtonEx, ButtonExProps } from '@xylabs/react-button'\nimport React, { MouseEventHandler, ReactNode, useMemo, useState } from 'react'\n\nimport { ExpansionProps } from '../../lib/index.ts'\nimport { XyoColorLogo } from '../img/index.tsx'\nimport { RawInfoDialog } from '../shared/index.ts'\nimport { IconSize, presetIconSizeValue } from './lib/index.ts'\n\nexport interface RawInfoButtonProps extends ButtonExProps, ExpansionProps {\n dialogContent?: ReactNode\n iconOnly?: boolean\n iconSize?: number\n onCloseCallback?: () => void\n presetIconSize?: IconSize\n rawValue?: unknown\n}\n\nexport const RawInfoButton: React.FC<RawInfoButtonProps> = ({\n defaultExpandedJson = true,\n dialogContent,\n iconOnly,\n iconSize = 24,\n onCloseCallback,\n children,\n rawValue,\n presetIconSize,\n updateExpandedJson,\n ...props\n}) => {\n const [open, setOpen] = useState(false)\n const size = presetIconSizeValue(presetIconSize)\n const json = useMemo(() => toJson(rawValue), [rawValue])\n\n const handleClick: MouseEventHandler<HTMLButtonElement> = (event) => {\n event.stopPropagation()\n setOpen(true)\n }\n\n const onCloseCallBackWrapped = () => {\n setOpen(false)\n onCloseCallback?.()\n }\n\n return (\n <span>\n <ButtonEx\n variant=\"outlined\"\n size=\"small\"\n startIcon={<XyoColorLogo sx={{ height: size ?? iconSize, width: size ?? iconSize }} />}\n onClick={handleClick}\n disabled={iconOnly ? false : !rawValue}\n {...props}\n >\n {children ?? <span>Data</span>}\n </ButtonEx>\n {iconOnly\n ? null\n : (\n <RawInfoDialog\n defaultExpandedJson={defaultExpandedJson}\n jsonValue={json}\n onCloseCallback={onCloseCallBackWrapped}\n dialogContent={dialogContent}\n open={open}\n updateExpandedJson={updateExpandedJson}\n />\n )}\n </span>\n )\n}\n","import { createSvgIcon } from '@mui/material'\nimport React from 'react'\n\nexport const XyoColorLogo = createSvgIcon(\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 256 238\">\n <path\n className=\"cls-1\"\n d=\"M74.5,28.33,21.29,120.5,74.5,212.67H180.94l1.76-3,51.46-89.13L180.94,28.33ZM84.65,40.54h78.83L111.65,56.93a15.85,15.85,0,0,1,2,5l59.66-18.81L185.22,101a20.12,20.12,0,0,1,5.36-.78l-10-47.91,37.87,65.53h-7.62a24.21,24.21,0,0,1,.15,2.68,23.29,23.29,0,0,1-.15,2.68h7.62l-39.1,67.75,10.92-50.13A20.57,20.57,0,0,1,185,140l-12.88,59-58.37-19.53a17.61,17.61,0,0,1-1.7,5l47.5,15.92H84.65l4-6.85A20.17,20.17,0,0,1,83.93,191L80,197.78,42.67,133.13l37,32.66a20.52,20.52,0,0,1,3.6-4L36.69,120.66,85,77.79a17.45,17.45,0,0,1-3.19-4.32l-39.46,35L80,43.22l5.56,9.69A17.51,17.51,0,0,1,90.12,50Zm28.24,31.17a16.15,16.15,0,0,1-2.68,4.64l62,35.81a19.74,19.74,0,0,1,2.83-4.54Zm-20,10.51v75.33a18,18,0,0,1,2.47-.16,17.18,17.18,0,0,1,2.89.21v-75a11.21,11.21,0,0,1-1.29,0,17.57,17.57,0,0,1-4.07-.47Zm79.34,46.63-62.08,35.81a18.45,18.45,0,0,1,2.68,4.68l62.23-36a19.68,19.68,0,0,1-2.83-4.53Z\"\n fill=\"#8d8fc6\"\n />\n <path\n className=\"cls-2\"\n d=\"M97,48.58a17.06,17.06,0,1,0,17,17,17.08,17.08,0,0,0-17-17Zm0,5.36a11.7,11.7,0,1,1-11.7,11.69A11.65,11.65,0,0,1,97,53.94Z\"\n fill=\"#579fd6\"\n />\n <path\n className=\"cls-3\"\n d=\"M95.37,157.39a18.73,18.73,0,1,0,18.7,18.7,18.74,18.74,0,0,0-18.7-18.7Zm0,5.31A13.4,13.4,0,1,1,82,176.09a13.37,13.37,0,0,1,13.4-13.39Z\"\n fill=\"#f27046\"\n />\n <path\n className=\"cls-4\"\n d=\"M190.73,100.2A20.3,20.3,0,1,0,211,120.5a20.34,20.34,0,0,0-20.3-20.3Zm0,5.36a14.94,14.94,0,1,1-14.94,14.94,14.88,14.88,0,0,1,14.94-14.94Z\"\n fill=\"#eb407a\"\n />\n </svg>,\n 'XyoColorLogo',\n)\n","import { Button, Chip, Collapse, CollapseProps, Typography } from '@mui/material'\nimport { JsonValue } from '@xylabs/object'\nimport { FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport { usePromise } from '@xylabs/react-promise'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { isAnyPayload } from '@xyo-network/payload-model'\nimport { useDataState } from '@xyo-network/react-shared'\nimport React from 'react'\n\nimport { ExpansionProps } from '../../../lib/index.ts'\nimport { StyledChipLabel } from '../../styled/index.ts'\nimport { JsonViewerEx } from '../JsonViewerEx.tsx'\n\nexport interface RawInfoPayloadCollapse extends CollapseProps, ExpansionProps {\n jsonValue?: JsonValue\n}\n\nexport const JsonViewerCollapse: React.FC<RawInfoPayloadCollapse> = ({ defaultExpandedJson, jsonValue, updateExpandedJson, ...props }) => {\n const [expandedJson, setExpandedJson] = useDataState(defaultExpandedJson)\n\n const [hash] = usePromise(async () => {\n if (!jsonValue || !isAnyPayload(jsonValue)) return\n return await PayloadBuilder.dataHash(jsonValue)\n }, [jsonValue])\n\n const actionText = expandedJson ? 'Hide JSON' : 'Show JSON'\n\n const handleExpansion = () => {\n updateExpandedJson?.(!expandedJson)\n setExpandedJson(!expandedJson)\n }\n\n return (\n <>\n {jsonValue\n ? (\n <FlexRow>\n <Button onClick={handleExpansion} size=\"small\" variant=\"outlined\">\n {actionText}\n </Button>\n </FlexRow>\n )\n : null}\n <Collapse in={expandedJson} {...props}>\n {jsonValue\n ? (\n <FlexCol alignItems=\"stretch\" gap={1.5}>\n <Typography sx={{ lineHeight: 1 }}>Payload Hash:</Typography>\n {hash\n ? <Chip label={<StyledChipLabel>{hash}</StyledChipLabel>} sx={{ alignSelf: 'start' }} />\n : null}\n <JsonViewerEx value={jsonValue} />\n </FlexCol>\n )\n : null}\n </Collapse>\n </>\n )\n}\n","import { styled, Typography } from '@mui/material'\n\nexport const StyledChipLabel = styled(Typography, { name: 'StyledChipLabel' })(({ theme }) => ({\n display: 'block',\n lineHeight: 1,\n overflow: 'hidden',\n paddingRight: theme.spacing(0.95),\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n}))\n","import { useTheme } from '@mui/material'\nimport { JsonViewer, JsonViewerProps } from '@textea/json-viewer'\nimport { useColorSchemeEx } from '@xylabs/react-invertible-theme'\nimport React from 'react'\n\nexport type JsonViewerExProps = JsonViewerProps\n\nexport const JsonViewerEx: React.FC<JsonViewerExProps> = (props) => {\n const theme = useTheme()\n const { darkMode } = useColorSchemeEx()\n\n return (\n <JsonViewer\n theme={darkMode ? 'dark' : 'light'}\n collapseStringsAfterLength={50}\n style={{\n background: darkMode ? theme.palette.background.paper : theme.palette.grey[200],\n borderRadius: theme.shape.borderRadius,\n padding: theme.spacing(2),\n }}\n {...props}\n />\n )\n}\n","import { Button, Dialog, DialogActions, DialogContent, DialogProps, DialogTitle } from '@mui/material'\nimport { JsonValue } from '@xylabs/object'\nimport React, { MouseEventHandler, ReactNode } from 'react'\n\nimport { ExpansionProps } from '../../../lib/index.ts'\nimport { JsonViewerCollapse } from './JsonViewerCollapse.tsx'\n\nexport interface RawInfoDialogProps extends DialogProps, ExpansionProps {\n dialogContent?: ReactNode\n jsonValue?: JsonValue\n onCloseCallback?: () => void\n}\n\nexport const RawInfoDialog: React.FC<RawInfoDialogProps> = ({\n defaultExpandedJson,\n dialogContent,\n onCloseCallback,\n jsonValue: jsonObject,\n updateExpandedJson,\n open = false,\n ...props\n}) => {\n const onDialogClick: MouseEventHandler<HTMLSpanElement> = (event) => {\n event.stopPropagation()\n }\n\n return (\n // Wrapping in a span so we can catch click events and prevent them from propagating outside the component\n <span onClick={onDialogClick}>\n <Dialog fullWidth maxWidth=\"lg\" onClose={() => onCloseCallback?.()} open={open} {...props}>\n <DialogTitle>Raw Data</DialogTitle>\n <DialogContent sx={{ display: 'flex', flexDirection: 'column', gap: 2 }}>\n {dialogContent}\n <JsonViewerCollapse defaultExpandedJson={defaultExpandedJson} jsonValue={jsonObject} updateExpandedJson={updateExpandedJson} />\n </DialogContent>\n <DialogActions>\n <Button variant=\"contained\" onClick={() => onCloseCallback?.()}>\n Close\n </Button>\n </DialogActions>\n </Dialog>\n </span>\n )\n}\n","import { IconSize } from './IconSize.ts'\n\nexport const presetIconSizeValue = (size?: IconSize) => {\n switch (size) {\n case 'small': {\n return 16\n }\n case 'medium': {\n return 32\n }\n case 'large': {\n return 48\n }\n }\n}\n","import { IconButton, IconButtonProps } from '@mui/material'\nimport { toJson } from '@xylabs/object'\nimport React, { forwardRef, MouseEventHandler, ReactNode, useMemo, useState } from 'react'\n\nimport { ExpansionProps } from '../../lib/index.ts'\nimport { XyoColorLogo } from '../img/index.tsx'\nimport { RawInfoDialog } from '../shared/index.ts'\nimport { IconSize, presetIconSizeValue } from './lib/index.ts'\n\nexport interface RawInfoIconProps extends IconButtonProps, ExpansionProps {\n dialogContent?: ReactNode\n iconOnly?: boolean\n iconSize?: number\n onCloseCallback?: () => void\n presetIconSize?: IconSize\n rawValue?: unknown\n}\n\nexport const RawInfoIconButton = forwardRef<HTMLButtonElement, RawInfoIconProps>(\n (\n { defaultExpandedJson = true, dialogContent, iconOnly, iconSize = 32, onCloseCallback, rawValue, presetIconSize, updateExpandedJson, ...props },\n ref,\n ) => {\n const [open, setOpen] = useState(false)\n const size = presetIconSizeValue(presetIconSize)\n const json = useMemo(() => toJson(rawValue), [rawValue])\n\n const handleClick: MouseEventHandler<HTMLButtonElement> = (event) => {\n event.stopPropagation()\n setOpen(true)\n }\n\n const onCloseCallBackWrapped = () => {\n setOpen(false)\n onCloseCallback?.()\n }\n\n return (\n <>\n <IconButton onClick={handleClick} ref={ref} {...props}>\n <XyoColorLogo sx={{ height: size ?? iconSize, width: size ?? iconSize }} />\n </IconButton>\n {iconOnly\n ? null\n : (\n <RawInfoDialog\n defaultExpandedJson={defaultExpandedJson}\n jsonValue={json}\n onCloseCallback={onCloseCallBackWrapped}\n dialogContent={dialogContent}\n open={open}\n updateExpandedJson={updateExpandedJson}\n />\n )}\n </>\n )\n },\n)\n\nRawInfoIconButton.displayName = 'RawInfoIcon'\n"],"mappings":";;;;AAAA,SAASA,cAAc;AACvB,SAASC,gBAA+B;AACxC,OAAOC,UAAuCC,SAASC,gBAAgB;;;ACFvE,SAASC,qBAAqB;AAC9B,OAAOC,WAAW;AAEX,IAAMC,eAAeF,cAC1B,sBAAA,cAACG,OAAAA;EAAIC,OAAM;EAA6BC,SAAQ;GAC9C,sBAAA,cAACC,QAAAA;EACCC,WAAU;EACVC,GAAE;EACFC,MAAK;IAEP,sBAAA,cAACH,QAAAA;EACCC,WAAU;EACVC,GAAE;EACFC,MAAK;IAEP,sBAAA,cAACH,QAAAA;EACCC,WAAU;EACVC,GAAE;EACFC,MAAK;IAEP,sBAAA,cAACH,QAAAA;EACCC,WAAU;EACVC,GA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AAA,cAACC,QAAAA,MAAK,MAAA,CAAA,GAEpBrB,WACG,OAEE,gBAAAoB,OAAA,cAACW,eAAAA;IACCjC;IACAkC,WAAWnB;IACXX,iBAAiBiB;IACjBpB;IACAS;IACAF;;AAKd,GApD2D;;;AOlB3D,SAAS2B,kBAAmC;AAC5C,SAASC,UAAAA,eAAc;AACvB,OAAOC,UAASC,YAA0CC,WAAAA,UAASC,YAAAA,iBAAgB;AAgB5E,IAAMC,oBAAoBC,2BAC/B,CACE,EAAEC,sBAAsB,MAAMC,eAAeC,UAAUC,WAAW,IAAIC,iBAAiBC,UAAUC,gBAAgBC,oBAAoB,GAAGC,MAAAA,GACxIC,QAAAA;AAEA,QAAM,CAACC,MAAMC,OAAAA,IAAWC,UAAS,KAAA;AACjC,QAAMC,OAAOC,oBAAoBR,cAAAA;AACjC,QAAMS,OAAOC,SAAQ,MAAMC,QAAOZ,QAAAA,GAAW;IAACA;GAAS;AAEvD,QAAMa,cAAoD,wBAACC,UAAAA;AACzDA,UAAMC,gBAAe;AACrBT,YAAQ,IAAA;EACV,GAH0D;AAK1D,QAAMU,yBAAyB,6BAAA;AAC7BV,YAAQ,KAAA;AACRP;EACF,GAH+B;AAK/B,SACE,gBAAAkB,OAAA,cAAAA,OAAA,UAAA,MACE,gBAAAA,OAAA,cAACC,YAAAA;IAAWC,SAASN;IAAaT;IAAW,GAAGD;KAC9C,gBAAAc,OAAA,cAACG,cAAAA;IAAaC,IAAI;MAAEC,QAAQd,QAAQV;MAAUyB,OAAOf,QAAQV;IAAS;OAEvED,WACG,OAEE,gBAAAoB,OAAA,cAACO,eAAAA;IACC7B;IACA8B,WAAWf;IACXX,iBAAiBiB;IACjBpB;IACAS;IACAH;;AAKd,CAAA;AAGFT,kBAAkBiC,cAAc;","names":["toJson","ButtonEx","React","useMemo","useState","createSvgIcon","React","XyoColorLogo","svg","xmlns","viewBox","path","className","d","fill","Button","Chip","Collapse","Typography","FlexCol","FlexRow","usePromise","PayloadBuilder","isAnyPayload","useDataState","React","styled","Typography","StyledChipLabel","name","theme","display","lineHeight","overflow","paddingRight","spacing","textOverflow","whiteSpace","useTheme","JsonViewer","useColorSchemeEx","React","JsonViewerEx","props","theme","useTheme","darkMode","useColorSchemeEx","React","JsonViewer","collapseStringsAfterLength","style","background","palette","paper","grey","borderRadius","shape","padding","spacing","JsonViewerCollapse","defaultExpandedJson","jsonValue","updateExpandedJson","props","expandedJson","setExpandedJson","useDataState","hash","usePromise","isAnyPayload","PayloadBuilder","dataHash","actionText","handleExpansion","React","FlexRow","Button","onClick","size","variant","Collapse","in","FlexCol","alignItems","gap","Typography","sx","lineHeight","Chip","label","StyledChipLabel","alignSelf","JsonViewerEx","value","Button","Dialog","DialogActions","DialogContent","DialogTitle","React","RawInfoDialog","defaultExpandedJson","dialogContent","onCloseCallback","jsonValue","jsonObject","updateExpandedJson","open","props","onDialogClick","event","stopPropagation","React","span","onClick","Dialog","fullWidth","maxWidth","onClose","DialogTitle","DialogContent","sx","display","flexDirection","gap","JsonViewerCollapse","DialogActions","Button","variant","presetIconSizeValue","size","RawInfoButton","defaultExpandedJson","dialogContent","iconOnly","iconSize","onCloseCallback","children","rawValue","presetIconSize","updateExpandedJson","props","open","setOpen","useState","size","presetIconSizeValue","json","useMemo","toJson","handleClick","event","stopPropagation","onCloseCallBackWrapped","React","span","ButtonEx","variant","startIcon","XyoColorLogo","sx","height","width","onClick","disabled","RawInfoDialog","jsonValue","IconButton","toJson","React","forwardRef","useMemo","useState","RawInfoIconButton","forwardRef","defaultExpandedJson","dialogContent","iconOnly","iconSize","onCloseCallback","rawValue","presetIconSize","updateExpandedJson","props","ref","open","setOpen","useState","size","presetIconSizeValue","json","useMemo","toJson","handleClick","event","stopPropagation","onCloseCallBackWrapped","React","IconButton","onClick","XyoColorLogo","sx","height","width","RawInfoDialog","jsonValue","displayName"]}
@@ -1,5 +0,0 @@
1
- export interface ExpansionProps {
2
- defaultExpandedJson?: boolean;
3
- updateExpandedJson?: (expanded: boolean) => void;
4
- }
5
- //# sourceMappingURL=ExpansionProps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExpansionProps.d.ts","sourceRoot":"","sources":["../../../src/lib/ExpansionProps.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,kBAAkB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;CACjD"}
@@ -1,5 +0,0 @@
1
- export interface ExpansionProps {
2
- defaultExpandedJson?: boolean;
3
- updateExpandedJson?: (expanded: boolean) => void;
4
- }
5
- //# sourceMappingURL=ExpansionProps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExpansionProps.d.ts","sourceRoot":"","sources":["../../../src/lib/ExpansionProps.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,kBAAkB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;CACjD"}
@@ -1,5 +0,0 @@
1
- export interface ExpansionProps {
2
- defaultExpandedJson?: boolean;
3
- updateExpandedJson?: (expanded: boolean) => void;
4
- }
5
- //# sourceMappingURL=ExpansionProps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExpansionProps.d.ts","sourceRoot":"","sources":["../../../src/lib/ExpansionProps.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,kBAAkB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;CACjD"}
@@ -1,2 +0,0 @@
1
- export * from './ExpansionProps.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './ExpansionProps.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './ExpansionProps.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}