@bundle-stats/ui 4.3.0-beta.3 → 4.3.0-rc.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 (451) hide show
  1. package/globals.d.ts +4 -0
  2. package/lib/app/app.js +21 -9
  3. package/lib/app/app.js.map +1 -1
  4. package/lib/assets/icons.svg +5 -0
  5. package/lib/assets/icons.svg.js +4 -0
  6. package/lib/assets/icons.svg.js.map +1 -1
  7. package/lib/components/asset-info/asset-info.js +43 -44
  8. package/lib/components/asset-info/asset-info.js.map +1 -1
  9. package/lib/components/asset-info/asset-info.module.css +18 -6
  10. package/lib/components/asset-info/index.js.map +1 -1
  11. package/lib/components/asset-not-predictive/asset-not-predictive.js +28 -0
  12. package/lib/components/asset-not-predictive/asset-not-predictive.js.map +1 -0
  13. package/lib/components/asset-not-predictive/asset-not-predictive.module.css +3 -0
  14. package/lib/components/asset-not-predictive/index.js +18 -0
  15. package/lib/components/asset-not-predictive/index.js.map +1 -0
  16. package/lib/components/bundle-assets/bundle-assets.js +17 -25
  17. package/lib/components/bundle-assets/bundle-assets.js.map +1 -1
  18. package/lib/components/bundle-assets/bundle-assets.module.css +13 -20
  19. package/lib/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.js +7 -5
  20. package/lib/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.js.map +1 -1
  21. package/lib/components/bundle-modules/bundle-modules.js +1 -2
  22. package/lib/components/bundle-modules/bundle-modules.js.map +1 -1
  23. package/lib/components/bundle-modules/bundle-modules.module.css +5 -0
  24. package/lib/components/bundle-packages/bundle-packages.js +14 -45
  25. package/lib/components/bundle-packages/bundle-packages.js.map +1 -1
  26. package/lib/components/bundle-packages/bundle-packages.module.css +4 -0
  27. package/lib/components/delta/delta.module.css +2 -1
  28. package/lib/components/entry-info/entry-info.js +46 -0
  29. package/lib/components/entry-info/entry-info.js.map +1 -0
  30. package/lib/components/entry-info/entry-info.module.css +33 -0
  31. package/lib/components/{summary-item → entry-info}/index.js +1 -1
  32. package/lib/components/entry-info/index.js.map +1 -0
  33. package/lib/components/index.js +7 -3
  34. package/lib/components/index.js.map +1 -1
  35. package/lib/components/insight-icon/index.js +18 -0
  36. package/lib/components/insight-icon/index.js.map +1 -0
  37. package/lib/components/insight-icon/insight-icon.js +25 -0
  38. package/lib/components/insight-icon/insight-icon.js.map +1 -0
  39. package/lib/components/insight-icon/insight-icon.module.css +24 -0
  40. package/lib/components/insights/insights.js +6 -39
  41. package/lib/components/insights/insights.js.map +1 -1
  42. package/lib/components/insights/insights.module.css +1 -19
  43. package/lib/components/metric/index.js.map +1 -1
  44. package/lib/components/metric/metric.js +7 -64
  45. package/lib/components/metric/metric.js.map +1 -1
  46. package/lib/components/metric/metric.module.css +3 -3
  47. package/lib/components/metric-run-info/index.js +18 -0
  48. package/lib/components/metric-run-info/index.js.map +1 -0
  49. package/lib/components/metric-run-info/metric-run-info.js +64 -0
  50. package/lib/components/metric-run-info/metric-run-info.js.map +1 -0
  51. package/lib/components/metric-run-info/metric-run-info.module.css +18 -0
  52. package/lib/components/metrics-table-options/metrics-table-options.js +1 -1
  53. package/lib/components/metrics-table-options/metrics-table-options.js.map +1 -1
  54. package/lib/components/metrics-table-search/metrics-table-search.module.css +0 -6
  55. package/lib/components/metrics-table-title/metrics-table-title.module.css +1 -0
  56. package/lib/components/module-info/index.js.map +1 -1
  57. package/lib/components/module-info/module-info.js +46 -47
  58. package/lib/components/module-info/module-info.js.map +1 -1
  59. package/lib/components/module-info/module-info.module.css +4 -6
  60. package/lib/components/package-info/index.js +18 -0
  61. package/lib/components/package-info/index.js.map +1 -0
  62. package/lib/components/package-info/package-info.js +71 -0
  63. package/lib/components/package-info/package-info.js.map +1 -0
  64. package/lib/components/package-info/package-info.module.css +13 -0
  65. package/lib/components/run-info/index.js +18 -0
  66. package/lib/components/run-info/index.js.map +1 -0
  67. package/lib/components/run-info/run-info.js +70 -0
  68. package/lib/components/run-info/run-info.js.map +1 -0
  69. package/{src/components/summary-item/summary-item.module.css → lib/components/run-info/run-info.module.css} +14 -19
  70. package/lib/components/summary/index.js.map +1 -1
  71. package/lib/components/summary/summary.js +10 -30
  72. package/lib/components/summary/summary.js.map +1 -1
  73. package/lib/components/summary/summary.module.css +17 -6
  74. package/lib/constants.js +1 -23
  75. package/lib/constants.js.map +1 -1
  76. package/lib/css/variables.css +17 -13
  77. package/lib/layout/box/box.js +3 -23
  78. package/lib/layout/box/box.js.map +1 -1
  79. package/lib/layout/box/box.module.css +11 -0
  80. package/lib/layout/box/index.js +15 -3
  81. package/lib/layout/box/index.js.map +1 -1
  82. package/lib/layout/flex-stack/flex-stack.js +3 -19
  83. package/lib/layout/flex-stack/flex-stack.js.map +1 -1
  84. package/lib/layout/flex-stack/index.js.map +1 -1
  85. package/lib/layout/stack/index.js.map +1 -1
  86. package/lib/layout/stack/stack.js +3 -16
  87. package/lib/layout/stack/stack.js.map +1 -1
  88. package/lib/tokens.js +38 -0
  89. package/lib/tokens.js.map +1 -0
  90. package/lib/ui/alert/alert.js +2 -12
  91. package/lib/ui/alert/alert.js.map +1 -1
  92. package/lib/ui/alert/index.js.map +1 -1
  93. package/lib/ui/container/container.js +1 -10
  94. package/lib/ui/container/container.js.map +1 -1
  95. package/lib/ui/container/index.js +15 -3
  96. package/lib/ui/container/index.js.map +1 -1
  97. package/lib/ui/dropdown/dropdown.module.css +1 -2
  98. package/lib/ui/file-name/file-name.js +1 -1
  99. package/lib/ui/file-name/file-name.js.map +1 -1
  100. package/lib/ui/filters/filters.module.css +1 -5
  101. package/lib/ui/hover-card/hover-card.js +1 -1
  102. package/lib/ui/icon/icon.js +1 -0
  103. package/lib/ui/icon/icon.js.map +1 -1
  104. package/lib/ui/index.js +1 -3
  105. package/lib/ui/index.js.map +1 -1
  106. package/lib/ui/input/input.module.css +3 -4
  107. package/lib/ui/table/index.js.map +1 -1
  108. package/lib/ui/table/table.js +3 -17
  109. package/lib/ui/table/table.js.map +1 -1
  110. package/lib/ui/tag/index.js.map +1 -1
  111. package/lib/ui/tag/tag.js +5 -29
  112. package/lib/ui/tag/tag.js.map +1 -1
  113. package/lib/ui/tag/tag.module.css +15 -1
  114. package/lib/ui/tooltip/index.js.map +1 -1
  115. package/lib/ui/tooltip/tooltip.js +3 -23
  116. package/lib/ui/tooltip/tooltip.js.map +1 -1
  117. package/lib/ui/tooltip/tooltip.module.css +4 -4
  118. package/lib-esm/app/app.js +22 -10
  119. package/lib-esm/app/app.js.map +1 -1
  120. package/lib-esm/assets/icons.svg +5 -0
  121. package/lib-esm/assets/icons.svg.js +4 -0
  122. package/lib-esm/assets/icons.svg.js.map +1 -1
  123. package/lib-esm/components/asset-info/asset-info.js +22 -45
  124. package/lib-esm/components/asset-info/asset-info.js.map +1 -1
  125. package/lib-esm/components/asset-info/asset-info.module.css +18 -6
  126. package/lib-esm/components/asset-info/index.js.map +1 -1
  127. package/lib-esm/components/asset-not-predictive/asset-not-predictive.js +21 -0
  128. package/lib-esm/components/asset-not-predictive/asset-not-predictive.js.map +1 -0
  129. package/lib-esm/components/asset-not-predictive/asset-not-predictive.module.css +3 -0
  130. package/lib-esm/components/asset-not-predictive/index.js +2 -0
  131. package/lib-esm/components/asset-not-predictive/index.js.map +1 -0
  132. package/lib-esm/components/bundle-assets/bundle-assets.js +17 -25
  133. package/lib-esm/components/bundle-assets/bundle-assets.js.map +1 -1
  134. package/lib-esm/components/bundle-assets/bundle-assets.module.css +13 -20
  135. package/lib-esm/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.js +6 -6
  136. package/lib-esm/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.js.map +1 -1
  137. package/lib-esm/components/bundle-modules/bundle-modules.js +1 -2
  138. package/lib-esm/components/bundle-modules/bundle-modules.js.map +1 -1
  139. package/lib-esm/components/bundle-modules/bundle-modules.module.css +5 -0
  140. package/lib-esm/components/bundle-packages/bundle-packages.js +15 -46
  141. package/lib-esm/components/bundle-packages/bundle-packages.js.map +1 -1
  142. package/lib-esm/components/bundle-packages/bundle-packages.module.css +4 -0
  143. package/lib-esm/components/delta/delta.module.css +2 -1
  144. package/lib-esm/components/entry-info/entry-info.js +40 -0
  145. package/lib-esm/components/entry-info/entry-info.js.map +1 -0
  146. package/lib-esm/components/entry-info/entry-info.module.css +33 -0
  147. package/lib-esm/components/entry-info/index.js +2 -0
  148. package/lib-esm/components/entry-info/index.js.map +1 -0
  149. package/lib-esm/components/index.js +3 -1
  150. package/lib-esm/components/index.js.map +1 -1
  151. package/lib-esm/components/insight-icon/index.js +2 -0
  152. package/lib-esm/components/insight-icon/index.js.map +1 -0
  153. package/lib-esm/components/insight-icon/insight-icon.js +18 -0
  154. package/lib-esm/components/insight-icon/insight-icon.js.map +1 -0
  155. package/lib-esm/components/insight-icon/insight-icon.module.css +24 -0
  156. package/lib-esm/components/insights/insights.js +7 -40
  157. package/lib-esm/components/insights/insights.js.map +1 -1
  158. package/lib-esm/components/insights/insights.module.css +1 -19
  159. package/lib-esm/components/metric/index.js.map +1 -1
  160. package/lib-esm/components/metric/metric.js +7 -41
  161. package/lib-esm/components/metric/metric.js.map +1 -1
  162. package/lib-esm/components/metric/metric.module.css +3 -3
  163. package/lib-esm/components/metric-run-info/index.js +2 -0
  164. package/lib-esm/components/metric-run-info/index.js.map +1 -0
  165. package/lib-esm/components/metric-run-info/metric-run-info.js +34 -0
  166. package/lib-esm/components/metric-run-info/metric-run-info.js.map +1 -0
  167. package/lib-esm/components/metric-run-info/metric-run-info.module.css +18 -0
  168. package/lib-esm/components/metrics-table-options/metrics-table-options.js +1 -1
  169. package/lib-esm/components/metrics-table-options/metrics-table-options.js.map +1 -1
  170. package/lib-esm/components/metrics-table-search/metrics-table-search.module.css +0 -6
  171. package/lib-esm/components/metrics-table-title/metrics-table-title.module.css +1 -0
  172. package/lib-esm/components/module-info/index.js.map +1 -1
  173. package/lib-esm/components/module-info/module-info.js +25 -48
  174. package/lib-esm/components/module-info/module-info.js.map +1 -1
  175. package/lib-esm/components/module-info/module-info.module.css +4 -6
  176. package/lib-esm/components/package-info/index.js +2 -0
  177. package/lib-esm/components/package-info/index.js.map +1 -0
  178. package/lib-esm/components/package-info/package-info.js +42 -0
  179. package/lib-esm/components/package-info/package-info.js.map +1 -0
  180. package/lib-esm/components/package-info/package-info.module.css +13 -0
  181. package/lib-esm/components/run-info/index.js +2 -0
  182. package/lib-esm/components/run-info/index.js.map +1 -0
  183. package/lib-esm/components/run-info/run-info.js +40 -0
  184. package/lib-esm/components/run-info/run-info.js.map +1 -0
  185. package/lib-esm/components/{summary-item/summary-item.module.css → run-info/run-info.module.css} +14 -19
  186. package/lib-esm/components/summary/index.js.map +1 -1
  187. package/lib-esm/components/summary/summary.js +9 -29
  188. package/lib-esm/components/summary/summary.js.map +1 -1
  189. package/lib-esm/components/summary/summary.module.css +17 -6
  190. package/lib-esm/constants.js +0 -22
  191. package/lib-esm/constants.js.map +1 -1
  192. package/lib-esm/css/variables.css +17 -13
  193. package/lib-esm/layout/box/box.js +3 -23
  194. package/lib-esm/layout/box/box.js.map +1 -1
  195. package/lib-esm/layout/box/box.module.css +11 -0
  196. package/lib-esm/layout/box/index.js +1 -1
  197. package/lib-esm/layout/box/index.js.map +1 -1
  198. package/lib-esm/layout/flex-stack/flex-stack.js +3 -19
  199. package/lib-esm/layout/flex-stack/flex-stack.js.map +1 -1
  200. package/lib-esm/layout/flex-stack/index.js.map +1 -1
  201. package/lib-esm/layout/stack/index.js.map +1 -1
  202. package/lib-esm/layout/stack/stack.js +3 -16
  203. package/lib-esm/layout/stack/stack.js.map +1 -1
  204. package/lib-esm/tokens.js +35 -0
  205. package/lib-esm/tokens.js.map +1 -0
  206. package/lib-esm/ui/alert/alert.js +2 -12
  207. package/lib-esm/ui/alert/alert.js.map +1 -1
  208. package/lib-esm/ui/alert/index.js.map +1 -1
  209. package/lib-esm/ui/container/container.js +1 -10
  210. package/lib-esm/ui/container/container.js.map +1 -1
  211. package/lib-esm/ui/container/index.js +1 -1
  212. package/lib-esm/ui/container/index.js.map +1 -1
  213. package/lib-esm/ui/dropdown/dropdown.module.css +1 -2
  214. package/lib-esm/ui/file-name/file-name.js +1 -1
  215. package/lib-esm/ui/file-name/file-name.js.map +1 -1
  216. package/lib-esm/ui/filters/filters.module.css +1 -5
  217. package/lib-esm/ui/hover-card/hover-card.js +1 -1
  218. package/lib-esm/ui/icon/icon.js +1 -0
  219. package/lib-esm/ui/icon/icon.js.map +1 -1
  220. package/lib-esm/ui/index.js +0 -1
  221. package/lib-esm/ui/index.js.map +1 -1
  222. package/lib-esm/ui/input/input.module.css +3 -4
  223. package/lib-esm/ui/table/index.js.map +1 -1
  224. package/lib-esm/ui/table/table.js +3 -17
  225. package/lib-esm/ui/table/table.js.map +1 -1
  226. package/lib-esm/ui/tag/index.js.map +1 -1
  227. package/lib-esm/ui/tag/tag.js +4 -28
  228. package/lib-esm/ui/tag/tag.js.map +1 -1
  229. package/lib-esm/ui/tag/tag.module.css +15 -1
  230. package/lib-esm/ui/tooltip/index.js.map +1 -1
  231. package/lib-esm/ui/tooltip/tooltip.js +3 -23
  232. package/lib-esm/ui/tooltip/tooltip.js.map +1 -1
  233. package/lib-esm/ui/tooltip/tooltip.module.css +4 -4
  234. package/package.json +14 -18
  235. package/src/app/app.jsx +25 -10
  236. package/src/assets/icons/more-vertical.svg +5 -0
  237. package/src/assets/icons.svg +5 -0
  238. package/src/assets/icons.svg.jsx +14 -0
  239. package/src/components/asset-info/asset-info.module.css +18 -6
  240. package/src/components/asset-info/asset-info.stories.tsx +64 -0
  241. package/src/components/asset-info/asset-info.tsx +133 -0
  242. package/src/components/asset-not-predictive/asset-not-predictive.module.css +3 -0
  243. package/src/components/asset-not-predictive/asset-not-predictive.stories.tsx +23 -0
  244. package/src/components/asset-not-predictive/asset-not-predictive.tsx +44 -0
  245. package/src/components/asset-not-predictive/index.ts +1 -0
  246. package/src/components/bundle-assets/bundle-assets.jsx +43 -53
  247. package/src/components/bundle-assets/bundle-assets.module.css +13 -20
  248. package/src/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.jsx +18 -15
  249. package/src/components/bundle-modules/bundle-modules.jsx +11 -9
  250. package/src/components/bundle-modules/bundle-modules.module.css +5 -0
  251. package/src/components/bundle-packages/bundle-packages.jsx +55 -118
  252. package/src/components/bundle-packages/bundle-packages.module.css +4 -0
  253. package/src/components/delta/delta.module.css +2 -1
  254. package/src/components/entry-info/entry-info.module.css +33 -0
  255. package/src/components/entry-info/entry-info.stories.tsx +67 -0
  256. package/src/components/entry-info/entry-info.tsx +107 -0
  257. package/src/components/entry-info/index.ts +1 -0
  258. package/src/components/index.js +3 -1
  259. package/src/components/insight-icon/index.ts +1 -0
  260. package/src/components/insight-icon/insight-icon.module.css +24 -0
  261. package/src/components/insight-icon/insight-icon.tsx +25 -0
  262. package/src/components/insights/insights.module.css +1 -19
  263. package/src/components/insights/insights.stories.tsx +26 -22
  264. package/src/components/insights/insights.tsx +8 -65
  265. package/src/components/metric/metric.module.css +3 -3
  266. package/src/components/metric/metric.stories.tsx +41 -0
  267. package/src/components/metric/metric.tsx +42 -0
  268. package/src/components/metric-run-info/index.ts +1 -0
  269. package/src/components/metric-run-info/metric-run-info.module.css +18 -0
  270. package/src/components/metric-run-info/metric-run-info.stories.tsx +34 -0
  271. package/src/components/metric-run-info/metric-run-info.tsx +85 -0
  272. package/src/components/metrics-table-options/metrics-table-options.jsx +1 -1
  273. package/src/components/metrics-table-search/metrics-table-search.module.css +0 -6
  274. package/src/components/metrics-table-title/metrics-table-title.module.css +1 -0
  275. package/src/components/module-info/module-info.module.css +4 -6
  276. package/src/components/module-info/module-info.stories.tsx +44 -0
  277. package/src/components/module-info/module-info.tsx +79 -0
  278. package/src/components/package-info/index.ts +1 -0
  279. package/src/components/package-info/package-info.module.css +13 -0
  280. package/src/components/package-info/package-info.stories.tsx +36 -0
  281. package/src/components/package-info/package-info.tsx +112 -0
  282. package/src/components/run-info/index.ts +1 -0
  283. package/{lib/components/summary-item/summary-item.module.css → src/components/run-info/run-info.module.css} +14 -19
  284. package/src/components/run-info/run-info.stories.tsx +49 -0
  285. package/src/components/run-info/run-info.tsx +108 -0
  286. package/src/components/summary/summary.module.css +17 -6
  287. package/src/components/summary/summary.stories.tsx +57 -0
  288. package/src/components/summary/summary.tsx +103 -0
  289. package/src/constants.js +0 -24
  290. package/src/css/variables.css +17 -13
  291. package/src/layout/box/box.module.css +11 -0
  292. package/src/layout/box/box.stories.tsx +49 -0
  293. package/src/layout/box/box.tsx +49 -0
  294. package/src/layout/box/index.ts +1 -0
  295. package/src/layout/flex-stack/flex-stack.stories.tsx +59 -0
  296. package/src/layout/flex-stack/flex-stack.tsx +43 -0
  297. package/src/layout/stack/stack.stories.tsx +53 -0
  298. package/src/layout/stack/stack.tsx +22 -0
  299. package/src/tokens.ts +37 -0
  300. package/src/ui/alert/alert.stories.tsx +39 -0
  301. package/src/ui/alert/alert.tsx +23 -0
  302. package/src/ui/container/container.stories.tsx +29 -0
  303. package/src/ui/container/container.tsx +18 -0
  304. package/src/ui/container/index.ts +1 -0
  305. package/src/ui/dropdown/dropdown.module.css +1 -2
  306. package/src/ui/file-name/file-name.jsx +1 -1
  307. package/src/ui/filters/filters.module.css +1 -5
  308. package/src/ui/hover-card/hover-card.jsx +1 -1
  309. package/src/ui/icon/icon.jsx +1 -0
  310. package/src/ui/index.js +0 -1
  311. package/src/ui/input/input.module.css +3 -4
  312. package/src/ui/table/table.stories.tsx +238 -0
  313. package/src/ui/table/table.tsx +38 -0
  314. package/src/ui/tag/tag.module.css +15 -1
  315. package/src/ui/tag/tag.stories.tsx +32 -0
  316. package/src/ui/tag/tag.tsx +28 -0
  317. package/src/ui/tooltip/tooltip.module.css +4 -4
  318. package/src/ui/tooltip/tooltip.stories.tsx +30 -0
  319. package/src/ui/tooltip/tooltip.tsx +56 -0
  320. package/types/app/header/header.d.ts +1 -1
  321. package/types/components/asset-info/asset-info.d.ts +18 -23
  322. package/types/components/asset-info/index.d.ts +1 -1
  323. package/types/components/asset-not-predictive/asset-not-predictive.d.ts +8 -0
  324. package/types/components/asset-not-predictive/index.d.ts +1 -0
  325. package/types/components/browsertime-table/browsertime-table.d.ts +1 -1
  326. package/types/components/bundle-assets/bundle-assets.d.ts +2 -2
  327. package/types/components/bundle-assets/index.d.ts +1 -1
  328. package/types/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.d.ts +2 -2
  329. package/types/components/bundle-assets-totals-table/bundle-assets-totals-table.d.ts +2 -2
  330. package/types/components/bundle-modules/bundle-modules.d.ts +2 -2
  331. package/types/components/bundle-modules/index.d.ts +1 -1
  332. package/types/components/bundle-packages/bundle-packages.d.ts +2 -2
  333. package/types/components/bundle-packages/index.d.ts +1 -1
  334. package/types/components/component-link.d.ts +1 -1
  335. package/types/components/delta/delta.d.ts +1 -1
  336. package/types/components/entry-info/entry-info.d.ts +18 -0
  337. package/types/components/entry-info/index.d.ts +1 -0
  338. package/types/components/index.d.ts +3 -1
  339. package/types/components/insight-icon/index.d.ts +1 -0
  340. package/types/components/insight-icon/insight-icon.d.ts +7 -0
  341. package/types/components/insights/insights.d.ts +2 -2
  342. package/types/components/job-header/job-header.d.ts +1 -1
  343. package/types/components/job-meta/job-meta.d.ts +1 -1
  344. package/types/components/job-name/job-name.d.ts +1 -1
  345. package/types/components/jobs-header/jobs-header.d.ts +1 -1
  346. package/types/components/lighthouse-table/lighthouse-table.d.ts +1 -1
  347. package/types/components/metric/index.d.ts +1 -1
  348. package/types/components/metric/metric.d.ts +6 -32
  349. package/types/components/metric-run-info/index.d.ts +1 -0
  350. package/types/components/metric-run-info/metric-run-info.d.ts +13 -0
  351. package/types/components/metrics-table/metrics-table.d.ts +1 -1
  352. package/types/components/metrics-table-options/metrics-table-options.d.ts +1 -1
  353. package/types/components/metrics-table-search/metrics-table-search.d.ts +1 -1
  354. package/types/components/metrics-table-title/metrics-table-title.d.ts +1 -1
  355. package/types/components/module-info/index.d.ts +1 -1
  356. package/types/components/module-info/module-info.d.ts +16 -34
  357. package/types/components/package-info/index.d.ts +1 -0
  358. package/types/components/package-info/package-info.d.ts +15 -0
  359. package/types/components/run-info/index.d.ts +1 -0
  360. package/types/components/run-info/run-info.d.ts +16 -0
  361. package/types/components/summary/index.d.ts +1 -1
  362. package/types/components/summary/summary.d.ts +25 -36
  363. package/types/components/total-size-type-title/total-size-type-title.d.ts +1 -1
  364. package/types/constants.d.ts +0 -11
  365. package/types/layout/box/box.d.ts +12 -25
  366. package/types/layout/box/index.d.ts +1 -1
  367. package/types/layout/flex-stack/flex-stack.d.ts +10 -33
  368. package/types/layout/flex-stack/index.d.ts +1 -1
  369. package/types/layout/footer/footer.d.ts +1 -1
  370. package/types/layout/separator.d.ts +2 -2
  371. package/types/layout/stack/index.d.ts +1 -1
  372. package/types/layout/stack/stack.d.ts +7 -20
  373. package/types/tokens.d.ts +23 -0
  374. package/types/ui/alert/alert.d.ts +7 -14
  375. package/types/ui/alert/index.d.ts +1 -1
  376. package/types/ui/container/container.d.ts +5 -17
  377. package/types/ui/container/index.d.ts +1 -1
  378. package/types/ui/dropdown/dropdown.d.ts +1 -1
  379. package/types/ui/empty-set/empty-set.d.ts +1 -1
  380. package/types/ui/file-name/file-name.d.ts +2 -2
  381. package/types/ui/filters/filters.d.ts +1 -1
  382. package/types/ui/filters/index.d.ts +1 -1
  383. package/types/ui/horizontal-bar-chart/horizontal-bar-chart.d.ts +1 -1
  384. package/types/ui/hover-card/hover-card.d.ts +1 -1
  385. package/types/ui/icon/icon.d.ts +2 -1
  386. package/types/ui/index.d.ts +0 -1
  387. package/types/ui/input/input.d.ts +1 -1
  388. package/types/ui/loader/loader.d.ts +1 -1
  389. package/types/ui/skeleton/skeleton.d.ts +1 -1
  390. package/types/ui/sort-dropdown/sort-dropdown.d.ts +1 -1
  391. package/types/ui/table/index.d.ts +1 -1
  392. package/types/ui/table/table.d.ts +14 -33
  393. package/types/ui/tabs/tabs.d.ts +1 -1
  394. package/types/ui/tag/index.d.ts +1 -1
  395. package/types/ui/tag/tag.d.ts +22 -33
  396. package/types/ui/toolbar/toolbar.d.ts +1 -1
  397. package/types/ui/tooltip/index.d.ts +1 -1
  398. package/types/ui/tooltip/tooltip.d.ts +10 -28
  399. package/lib/components/summary-item/index.js.map +0 -1
  400. package/lib/components/summary-item/summary-item.js +0 -97
  401. package/lib/components/summary-item/summary-item.js.map +0 -1
  402. package/lib/ui/panels/index.js +0 -6
  403. package/lib/ui/panels/index.js.map +0 -1
  404. package/lib/ui/panels/panels.js +0 -28
  405. package/lib/ui/panels/panels.js.map +0 -1
  406. package/lib/ui/panels/panels.module.css +0 -23
  407. package/lib-esm/components/summary-item/index.js +0 -2
  408. package/lib-esm/components/summary-item/index.js.map +0 -1
  409. package/lib-esm/components/summary-item/summary-item.js +0 -67
  410. package/lib-esm/components/summary-item/summary-item.js.map +0 -1
  411. package/lib-esm/ui/panels/index.js +0 -2
  412. package/lib-esm/ui/panels/index.js.map +0 -1
  413. package/lib-esm/ui/panels/panels.js +0 -21
  414. package/lib-esm/ui/panels/panels.js.map +0 -1
  415. package/lib-esm/ui/panels/panels.module.css +0 -23
  416. package/src/components/asset-info/asset-info.jsx +0 -96
  417. package/src/components/metric/metric.jsx +0 -63
  418. package/src/components/module-info/module-info.jsx +0 -93
  419. package/src/components/summary/summary.jsx +0 -73
  420. package/src/components/summary-item/index.js +0 -1
  421. package/src/components/summary-item/summary-item.jsx +0 -142
  422. package/src/layout/box/box.jsx +0 -67
  423. package/src/layout/box/index.js +0 -1
  424. package/src/layout/flex-stack/flex-stack.jsx +0 -49
  425. package/src/layout/stack/stack.jsx +0 -32
  426. package/src/ui/alert/alert.jsx +0 -27
  427. package/src/ui/container/container.jsx +0 -24
  428. package/src/ui/container/index.js +0 -1
  429. package/src/ui/panels/index.js +0 -1
  430. package/src/ui/panels/panels.jsx +0 -39
  431. package/src/ui/panels/panels.module.css +0 -23
  432. package/src/ui/table/table.jsx +0 -37
  433. package/src/ui/tag/tag.jsx +0 -49
  434. package/src/ui/tooltip/tooltip.jsx +0 -67
  435. package/tsconfig.esm.json +0 -13
  436. package/tsconfig.json +0 -7
  437. package/tsconfig.lib.json +0 -9
  438. package/types/components/summary-item/index.d.ts +0 -1
  439. package/types/components/summary-item/summary-item.d.ts +0 -40
  440. package/types/ui/panels/index.d.ts +0 -1
  441. package/types/ui/panels/panels.d.ts +0 -18
  442. /package/src/components/asset-info/{index.js → index.ts} +0 -0
  443. /package/src/components/metric/{index.js → index.ts} +0 -0
  444. /package/src/components/module-info/{index.js → index.ts} +0 -0
  445. /package/src/components/summary/{index.js → index.ts} +0 -0
  446. /package/src/layout/flex-stack/{index.js → index.ts} +0 -0
  447. /package/src/layout/stack/{index.js → index.ts} +0 -0
  448. /package/src/ui/alert/{index.js → index.ts} +0 -0
  449. /package/src/ui/table/{index.js → index.ts} +0 -0
  450. /package/src/ui/tag/{index.js → index.ts} +0 -0
  451. /package/src/ui/tooltip/{index.js → index.ts} +0 -0
@@ -9,4 +9,4 @@ export namespace Filters {
9
9
  export { onChange_1 as onChange };
10
10
  }
11
11
  }
12
- import PropTypes from "prop-types";
12
+ import PropTypes from 'prop-types';
@@ -19,4 +19,4 @@ export namespace HorizontalBarChart {
19
19
  export { maxValue_1 as maxValue };
20
20
  }
21
21
  }
22
- import PropTypes from "prop-types";
22
+ import PropTypes from 'prop-types';
@@ -24,4 +24,4 @@ export namespace HoverCard {
24
24
  export { href_1 as href };
25
25
  }
26
26
  }
27
- import PropTypes from "prop-types";
27
+ import PropTypes from 'prop-types';
@@ -33,8 +33,9 @@ declare namespace ICONS {
33
33
  const INFO: string;
34
34
  const HELP: string;
35
35
  const MENU: string;
36
+ const MORE_VERTICAL: string;
36
37
  const SORT: string;
37
38
  const WARNING: string;
38
39
  }
39
- import PropTypes from "prop-types";
40
+ import PropTypes from 'prop-types';
40
41
  export {};
@@ -9,7 +9,6 @@ export { HoverCard } from "./hover-card";
9
9
  export { Icon } from "./icon";
10
10
  export { Input } from "./input";
11
11
  export { Loader } from "./loader";
12
- export { Panels } from "./panels";
13
12
  export { Skeleton } from "./skeleton";
14
13
  export { SortDropdown } from "./sort-dropdown";
15
14
  export { Table } from "./table";
@@ -15,4 +15,4 @@ export namespace Input {
15
15
  export { size_1 as size };
16
16
  }
17
17
  }
18
- import PropTypes from "prop-types";
18
+ import PropTypes from 'prop-types';
@@ -20,4 +20,4 @@ export namespace Loader {
20
20
  export { size_1 as size };
21
21
  }
22
22
  }
23
- import PropTypes from "prop-types";
23
+ import PropTypes from 'prop-types';
@@ -14,4 +14,4 @@ export namespace Skeleton {
14
14
  export { block_1 as block };
15
15
  }
16
16
  }
17
- import PropTypes from "prop-types";
17
+ import PropTypes from 'prop-types';
@@ -21,4 +21,4 @@ export namespace SortDropdown {
21
21
  export { direction_1 as direction };
22
22
  }
23
23
  }
24
- import PropTypes from "prop-types";
24
+ import PropTypes from 'prop-types';
@@ -1 +1 @@
1
- export * from "./table";
1
+ export * from './table';
@@ -1,34 +1,15 @@
1
- export function Table({ className, emptyMessage, compact, outline, children }: {
2
- className: any;
3
- emptyMessage: any;
4
- compact: any;
5
- outline: any;
6
- children: any;
7
- }): JSX.Element;
8
- export namespace Table {
9
- const THead: string;
10
- const TBody: string;
11
- const Tr: string;
12
- const Th: string;
13
- const Td: string;
14
- namespace defaultProps {
15
- const className: string;
16
- const emptyMessage: string;
17
- const children: null;
18
- const compact: boolean;
19
- const outline: boolean;
20
- }
21
- namespace propTypes {
22
- const className_1: PropTypes.Requireable<string>;
23
- export { className_1 as className };
24
- const emptyMessage_1: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
25
- export { emptyMessage_1 as emptyMessage };
26
- const compact_1: PropTypes.Requireable<boolean>;
27
- export { compact_1 as compact };
28
- const outline_1: PropTypes.Requireable<boolean>;
29
- export { outline_1 as outline };
30
- const children_1: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
31
- export { children_1 as children };
32
- }
1
+ import React from 'react';
2
+ interface TableProps {
3
+ emptyMessage?: React.ReactNode;
4
+ compact?: boolean;
5
+ outline?: boolean;
33
6
  }
34
- import PropTypes from "prop-types";
7
+ export declare const Table: {
8
+ (props: TableProps & React.ComponentProps<'table'>): JSX.Element;
9
+ THead: React.ElementType<any>;
10
+ TBody: React.ElementType<any>;
11
+ Tr: React.ElementType<any>;
12
+ Th: React.ElementType<any>;
13
+ Td: React.ElementType<any>;
14
+ };
15
+ export {};
@@ -13,7 +13,7 @@ export namespace Tabs {
13
13
  }
14
14
  export { Item };
15
15
  }
16
- import PropTypes from "prop-types";
16
+ import PropTypes from 'prop-types';
17
17
  declare function Item({ isTabActive, as: Component, className, ...restProps }: {
18
18
  [x: string]: any;
19
19
  isTabActive: any;
@@ -1 +1 @@
1
- export * from "./tag";
1
+ export * from './tag';
@@ -1,34 +1,23 @@
1
- export namespace KINDS {
2
- const DEFAULT: string;
3
- const SUCCESS: string;
4
- const INFO: string;
5
- const WARNING: string;
6
- const DANGER: string;
1
+ import React from 'react';
2
+ import { KIND, SIZE } from '../../tokens';
3
+ interface TagProps {
4
+ as?: React.ElementType;
5
+ kind?: (typeof KIND)[keyof typeof KIND];
6
+ size?: (typeof SIZE)[keyof typeof SIZE];
7
7
  }
8
- export namespace SIZES {
9
- const SMALL: string;
10
- const MEDIUM: string;
11
- const LARGE: string;
12
- }
13
- export function Tag(props: any): JSX.Element;
14
- export namespace Tag {
15
- export namespace propTypes {
16
- const className: PropTypes.Requireable<string>;
17
- const as: PropTypes.Requireable<PropTypes.ReactComponentLike>;
18
- const kind: PropTypes.Requireable<string>;
19
- const size: PropTypes.Requireable<string>;
20
- }
21
- export namespace defaultProps {
22
- const className_1: string;
23
- export { className_1 as className };
24
- const as_1: string;
25
- export { as_1 as as };
26
- import kind_1 = KINDS.DEFAULT;
27
- export { kind_1 as kind };
28
- import size_1 = SIZES.MEDIUM;
29
- export { size_1 as size };
30
- }
31
- export { KINDS };
32
- export { SIZES };
33
- }
34
- import PropTypes from "prop-types";
8
+ export declare const Tag: {
9
+ (props: TagProps & React.ComponentProps<'span'>): JSX.Element;
10
+ KINDS: {
11
+ readonly DEFAULT: "default";
12
+ readonly SUCCESS: "success";
13
+ readonly INFO: "info";
14
+ readonly WARNING: "warning";
15
+ readonly DANGER: "danger";
16
+ };
17
+ SIZES: {
18
+ readonly SMALL: "small";
19
+ readonly MEDIUM: "medium";
20
+ readonly LARGE: "large";
21
+ };
22
+ };
23
+ export {};
@@ -12,4 +12,4 @@ export namespace Toolbar {
12
12
  export { renderActions_1 as renderActions };
13
13
  }
14
14
  }
15
- import PropTypes from "prop-types";
15
+ import PropTypes from 'prop-types';
@@ -1 +1 @@
1
- export * from "./tooltip";
1
+ export * from './tooltip';
@@ -1,29 +1,11 @@
1
- export function Tooltip(props: any): JSX.Element;
2
- export namespace Tooltip {
3
- namespace defaultProps {
4
- const className: string;
5
- const tooltipClassName: string;
6
- const title: string;
7
- const as: string;
8
- const containerRef: null;
9
- const darkMode: boolean;
10
- }
11
- namespace propTypes {
12
- const className_1: PropTypes.Requireable<string>;
13
- export { className_1 as className };
14
- const tooltipClassName_1: PropTypes.Requireable<string>;
15
- export { tooltipClassName_1 as tooltipClassName };
16
- const title_1: PropTypes.Requireable<PropTypes.ReactNodeLike>;
17
- export { title_1 as title };
18
- export const children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
19
- const as_1: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | ((...args: any[]) => any) | null | undefined>>;
20
- export { as_1 as as };
21
- const containerRef_1: PropTypes.Requireable<PropTypes.InferProps<{
22
- current: PropTypes.Requireable<object>;
23
- }>>;
24
- export { containerRef_1 as containerRef };
25
- const darkMode_1: PropTypes.Requireable<boolean>;
26
- export { darkMode_1 as darkMode };
27
- }
1
+ import React from 'react';
2
+ interface TooltipProps<T extends React.ElementType> {
3
+ className?: string;
4
+ tooltipClassName?: string;
5
+ title?: React.ReactNode;
6
+ as?: T;
7
+ containerRef?: React.RefObject<HTMLElement>;
8
+ darkMode?: boolean;
28
9
  }
29
- import PropTypes from "prop-types";
10
+ export declare const Tooltip: <T extends React.ElementType<any> = "span">(props: TooltipProps<T> & Omit<React.ComponentProps<T>, keyof TooltipProps<T>>) => JSX.Element;
11
+ export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/summary-item/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
@@ -1,97 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.SummaryItem = void 0;
30
- const react_1 = __importStar(require("react"));
31
- const prop_types_1 = __importDefault(require("prop-types"));
32
- const classnames_1 = __importDefault(require("classnames"));
33
- const utils_1 = require("@bundle-stats/utils");
34
- const icon_1 = require("../../ui/icon");
35
- const hover_card_1 = require("../../ui/hover-card");
36
- const skeleton_1 = require("../../ui/skeleton");
37
- const flex_stack_1 = require("../../layout/flex-stack");
38
- const stack_1 = require("../../layout/stack");
39
- const metric_1 = require("../metric");
40
- const delta_1 = require("../delta");
41
- const summary_item_module_css_1 = __importDefault(require("./summary-item.module.css"));
42
- const MetricInfo = ({ description, url }) => {
43
- const onClick = (0, react_1.useCallback)(() => {
44
- if (url) {
45
- window.open(url);
46
- }
47
- }, [url]);
48
- return (react_1.default.createElement(stack_1.Stack, { space: "xxxsmall" },
49
- react_1.default.createElement("p", null, description),
50
- url && (react_1.default.createElement("p", null,
51
- react_1.default.createElement("button", { type: "button", onClick: onClick, className: summary_item_module_css_1.default.readMoreLink }, "Read more")))));
52
- };
53
- MetricInfo.propTypes = {
54
- description: prop_types_1.default.string.isRequired,
55
- url: prop_types_1.default.string,
56
- };
57
- MetricInfo.defaultProps = {
58
- url: '',
59
- };
60
- const SummaryItem = ({ className, as: Component, size, id, data, loading, showDelta, showMetricDescription, ...props }) => {
61
- const { baseline, current } = data || { baseline: 0, current: 0 };
62
- const metric = (0, utils_1.getGlobalMetricType)(id);
63
- const runInfo = (0, utils_1.getMetricRunInfo)(metric, current, baseline);
64
- const showMetricDescriptionTooltip = showMetricDescription && metric?.description;
65
- const rootClassName = (0, classnames_1.default)(summary_item_module_css_1.default.root, className, summary_item_module_css_1.default[size], showDelta && summary_item_module_css_1.default.showDelta);
66
- return (react_1.default.createElement(stack_1.Stack, { space: "xxsmall", as: Component, className: rootClassName, ...props },
67
- react_1.default.createElement(flex_stack_1.FlexStack, { space: "xxxsmall", alignItems: "center", as: "h3", className: summary_item_module_css_1.default.title },
68
- react_1.default.createElement("span", null, metric.label),
69
- showMetricDescriptionTooltip && (react_1.default.createElement(hover_card_1.HoverCard, { label: react_1.default.createElement(icon_1.Icon, { glyph: icon_1.Icon.ICONS.HELP }), className: summary_item_module_css_1.default.titleIcon },
70
- react_1.default.createElement(MetricInfo, { ...metric })))),
71
- !loading ? (react_1.default.createElement(stack_1.Stack, null,
72
- react_1.default.createElement(metric_1.Metric, { className: summary_item_module_css_1.default.currentMetric, value: current, formatter: metric.formatter, enhanced: true, inline: true }, showDelta && (react_1.default.createElement(delta_1.Delta, { className: summary_item_module_css_1.default.delta, displayValue: runInfo.displayDeltaPercentage, deltaType: runInfo.deltaType }))),
73
- react_1.default.createElement(metric_1.Metric, { className: summary_item_module_css_1.default.baselineMetric, value: baseline, formatter: metric.formatter }))) : (react_1.default.createElement(stack_1.Stack, null,
74
- react_1.default.createElement(skeleton_1.Skeleton, { as: "p", className: (0, classnames_1.default)(summary_item_module_css_1.default.currentMetric, summary_item_module_css_1.default.loading) }),
75
- react_1.default.createElement(skeleton_1.Skeleton, { as: "p", className: (0, classnames_1.default)(summary_item_module_css_1.default.baselineMetric, summary_item_module_css_1.default.loading) })))));
76
- };
77
- exports.SummaryItem = SummaryItem;
78
- exports.SummaryItem.defaultProps = {
79
- className: '',
80
- as: 'div',
81
- data: null,
82
- size: 'medium',
83
- loading: false,
84
- showMetricDescription: false,
85
- showDelta: true,
86
- };
87
- exports.SummaryItem.propTypes = {
88
- className: prop_types_1.default.string,
89
- as: prop_types_1.default.elementType,
90
- size: prop_types_1.default.oneOf(['medium', 'large']),
91
- id: prop_types_1.default.string.isRequired,
92
- loading: prop_types_1.default.bool,
93
- data: prop_types_1.default.object,
94
- showMetricDescription: prop_types_1.default.bool,
95
- showDelta: prop_types_1.default.bool,
96
- };
97
- //# sourceMappingURL=summary-item.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"summary-item.js","sourceRoot":"","sources":["../../../src/components/summary-item/summary-item.jsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA2C;AAC3C,4DAAmC;AACnC,4DAA4B;AAC5B,+CAA4E;AAE5E,wCAAqC;AACrC,oDAAgD;AAChD,gDAA6C;AAC7C,wDAAoD;AACpD,8CAA2C;AAC3C,sCAAmC;AACnC,oCAAiC;AACjC,wFAA4C;AAE5C,MAAM,UAAU,GAAG,CAAC,EAAE,WAAW,EAAE,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C,OAAO,CAAC,GAAI;YAClE,8BAAC,mBAAQ,IAAC,EAAE,EAAC,GAAG,EAAC,SAAS,EAAE,IAAA,oBAAE,EAAC,iCAAG,CAAC,cAAc,EAAE,iCAAG,CAAC,OAAO,CAAC,GAAI,CAC7D,CACT,CACK,CACT,CAAC;AACJ,CAAC,CAAC;AA5DW,QAAA,WAAW,eA4DtB;AAEF,mBAAW,CAAC,YAAY,GAAG;IACzB,SAAS,EAAE,EAAE;IACb,EAAE,EAAE,KAAK;IACT,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,KAAK;IACd,qBAAqB,EAAE,KAAK;IAC5B,SAAS,EAAE,IAAI;CAChB,CAAC;AAEF,mBAAW,CAAC,SAAS,GAAG;IAEtB,SAAS,EAAE,oBAAS,CAAC,MAAM;IAG3B,EAAE,EAAE,oBAAS,CAAC,WAAW;IAGzB,IAAI,EAAE,oBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAG1C,EAAE,EAAE,oBAAS,CAAC,MAAM,CAAC,UAAU;IAG/B,OAAO,EAAE,oBAAS,CAAC,IAAI;IAGvB,IAAI,EAAE,oBAAS,CAAC,MAAM;IAGtB,qBAAqB,EAAE,oBAAS,CAAC,IAAI;IAGrC,SAAS,EAAE,oBAAS,CAAC,IAAI;CAC1B,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Panels = void 0;
4
- var panels_1 = require("./panels");
5
- Object.defineProperty(exports, "Panels", { enumerable: true, get: function () { return panels_1.Panels; } });
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui/panels/index.js"],"names":[],"mappings":";;;AAAA,mCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Panels = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const prop_types_1 = __importDefault(require("prop-types"));
9
- const classnames_1 = __importDefault(require("classnames"));
10
- const panels_module_css_1 = __importDefault(require("./panels.module.css"));
11
- const cloneElement = (element) => {
12
- const { className, ...restProps } = element.props;
13
- return react_1.default.cloneElement(element, {
14
- ...restProps,
15
- className: (0, classnames_1.default)(panels_module_css_1.default.panel, className),
16
- });
17
- };
18
- const Panels = ({ className, children, ...restProps }) => (react_1.default.createElement("div", { className: (0, classnames_1.default)(panels_module_css_1.default.root, className), ...restProps }, react_1.default.Children.map(children, cloneElement)));
19
- exports.Panels = Panels;
20
- exports.Panels.defaultProps = {
21
- className: '',
22
- children: null,
23
- };
24
- exports.Panels.propTypes = {
25
- className: prop_types_1.default.string,
26
- children: prop_types_1.default.node,
27
- };
28
- //# sourceMappingURL=panels.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"panels.js","sourceRoot":"","sources":["../../../src/ui/panels/panels.jsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,4DAAmC;AACnC,4DAA4B;AAE5B,4EAAsC;AAEtC,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,EAAE;IAC/B,MAAM,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC;IAElD,OAAO,eAAK,CAAC,YAAY,CACvB,OAAO,EACP;QACE,GAAG,SAAS;QACZ,SAAS,EAAE,IAAA,oBAAE,EAAC,2BAAG,CAAC,KAAK,EAAE,SAAS,CAAC;KACpC,CACF,CAAC;AACJ,CAAC,CAAC;AAEK,MAAM,MAAM,GAAG,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,EAAE,EAAE,CAAC,CAC/D,uCACE,SAAS,EAAE,IAAA,oBAAE,EAAC,2BAAG,CAAC,IAAI,EAAE,SAAS,CAAC,KAC9B,SAAS,IAEZ,eAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,YAAY,CAAC,CACvC,CACP,CAAC;AAPW,QAAA,MAAM,UAOjB;AAEF,cAAM,CAAC,YAAY,GAAG;IACpB,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE,IAAI;CACf,CAAC;AAEF,cAAM,CAAC,SAAS,GAAG;IAEjB,SAAS,EAAE,oBAAS,CAAC,MAAM;IAG3B,QAAQ,EAAE,oBAAS,CAAC,IAAI;CACzB,CAAC"}
@@ -1,23 +0,0 @@
1
- .root {
2
- display: flex;
3
- flex-wrap: wrap;
4
- }
5
-
6
- .panel {
7
- flex: 1 1 100%;
8
- }
9
-
10
- .panel + .panel {
11
- margin-top: var(--space-medium);
12
- }
13
-
14
- @media (min-width: 768px) {
15
- .root {
16
- flex-wrap: nowrap;
17
- }
18
-
19
- .panel + .panel {
20
- margin-top: 0;
21
- margin-left: var(--space-medium);
22
- }
23
- }
@@ -1,2 +0,0 @@
1
- export * from './summary-item';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/summary-item/index.js"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -1,67 +0,0 @@
1
- import React, { useCallback } from 'react';
2
- import PropTypes from 'prop-types';
3
- import cx from 'classnames';
4
- import { getGlobalMetricType, getMetricRunInfo } from '@bundle-stats/utils';
5
- import { Icon } from '../../ui/icon';
6
- import { HoverCard } from '../../ui/hover-card';
7
- import { Skeleton } from '../../ui/skeleton';
8
- import { FlexStack } from '../../layout/flex-stack';
9
- import { Stack } from '../../layout/stack';
10
- import { Metric } from '../metric';
11
- import { Delta } from '../delta';
12
- import css from './summary-item.module.css';
13
- const MetricInfo = ({ description, url }) => {
14
- const onClick = useCallback(() => {
15
- if (url) {
16
- window.open(url);
17
- }
18
- }, [url]);
19
- return (React.createElement(Stack, { space: "xxxsmall" },
20
- React.createElement("p", null, description),
21
- url && (React.createElement("p", null,
22
- React.createElement("button", { type: "button", onClick: onClick, className: css.readMoreLink }, "Read more")))));
23
- };
24
- MetricInfo.propTypes = {
25
- description: PropTypes.string.isRequired,
26
- url: PropTypes.string,
27
- };
28
- MetricInfo.defaultProps = {
29
- url: '',
30
- };
31
- export const SummaryItem = ({ className, as: Component, size, id, data, loading, showDelta, showMetricDescription, ...props }) => {
32
- const { baseline, current } = data || { baseline: 0, current: 0 };
33
- const metric = getGlobalMetricType(id);
34
- const runInfo = getMetricRunInfo(metric, current, baseline);
35
- const showMetricDescriptionTooltip = showMetricDescription && (metric === null || metric === void 0 ? void 0 : metric.description);
36
- const rootClassName = cx(css.root, className, css[size], showDelta && css.showDelta);
37
- return (React.createElement(Stack, { space: "xxsmall", as: Component, className: rootClassName, ...props },
38
- React.createElement(FlexStack, { space: "xxxsmall", alignItems: "center", as: "h3", className: css.title },
39
- React.createElement("span", null, metric.label),
40
- showMetricDescriptionTooltip && (React.createElement(HoverCard, { label: React.createElement(Icon, { glyph: Icon.ICONS.HELP }), className: css.titleIcon },
41
- React.createElement(MetricInfo, { ...metric })))),
42
- !loading ? (React.createElement(Stack, null,
43
- React.createElement(Metric, { className: css.currentMetric, value: current, formatter: metric.formatter, enhanced: true, inline: true }, showDelta && (React.createElement(Delta, { className: css.delta, displayValue: runInfo.displayDeltaPercentage, deltaType: runInfo.deltaType }))),
44
- React.createElement(Metric, { className: css.baselineMetric, value: baseline, formatter: metric.formatter }))) : (React.createElement(Stack, null,
45
- React.createElement(Skeleton, { as: "p", className: cx(css.currentMetric, css.loading) }),
46
- React.createElement(Skeleton, { as: "p", className: cx(css.baselineMetric, css.loading) })))));
47
- };
48
- SummaryItem.defaultProps = {
49
- className: '',
50
- as: 'div',
51
- data: null,
52
- size: 'medium',
53
- loading: false,
54
- showMetricDescription: false,
55
- showDelta: true,
56
- };
57
- SummaryItem.propTypes = {
58
- className: PropTypes.string,
59
- as: PropTypes.elementType,
60
- size: PropTypes.oneOf(['medium', 'large']),
61
- id: PropTypes.string.isRequired,
62
- loading: PropTypes.bool,
63
- data: PropTypes.object,
64
- showMetricDescription: PropTypes.bool,
65
- showDelta: PropTypes.bool,
66
- };
67
- //# sourceMappingURL=summary-item.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"summary-item.js","sourceRoot":"","sources":["../../../src/components/summary-item/summary-item.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5E,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,GAAG,MAAM,2BAA2B,CAAC;AAE5C,MAAM,UAAU,GAAG,CAAC,EAAE,WAAW,EAAE,GAAG,EAAE,EAAE,EAAE;IAE1C,MAAM,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE;QAC/B,IAAI,GAAG,EAAE;YACP,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SAClB;IACH,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAEV,OAAO,CACL,oBAAC,KAAK,IAAC,KAAK,EAAC,UAAU;QACrB,+BAAI,WAAW,CAAK;QACnB,GAAG,IAAI,CACN;YACE,g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;IACd,OAAO,EAAE,KAAK;IACd,qBAAqB,EAAE,KAAK;IAC5B,SAAS,EAAE,IAAI;CAChB,CAAC;AAEF,WAAW,CAAC,SAAS,GAAG;IAEtB,SAAS,EAAE,SAAS,CAAC,MAAM;IAG3B,EAAE,EAAE,SAAS,CAAC,WAAW;IAGzB,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAG1C,EAAE,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU;IAG/B,OAAO,EAAE,SAAS,CAAC,IAAI;IAGvB,IAAI,EAAE,SAAS,CAAC,MAAM;IAGtB,qBAAqB,EAAE,SAAS,CAAC,IAAI;IAGrC,SAAS,EAAE,SAAS,CAAC,IAAI;CAC1B,CAAC"}
@@ -1,2 +0,0 @@
1
- export { Panels } from './panels';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui/panels/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import cx from 'classnames';
4
- import css from './panels.module.css';
5
- const cloneElement = (element) => {
6
- const { className, ...restProps } = element.props;
7
- return React.cloneElement(element, {
8
- ...restProps,
9
- className: cx(css.panel, className),
10
- });
11
- };
12
- export const Panels = ({ className, children, ...restProps }) => (React.createElement("div", { className: cx(css.root, className), ...restProps }, React.Children.map(children, cloneElement)));
13
- Panels.defaultProps = {
14
- className: '',
15
- children: null,
16
- };
17
- Panels.propTypes = {
18
- className: PropTypes.string,
19
- children: PropTypes.node,
20
- };
21
- //# sourceMappingURL=panels.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"panels.js","sourceRoot":"","sources":["../../../src/ui/panels/panels.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,GAAG,MAAM,qBAAqB,CAAC;AAEtC,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,EAAE;IAC/B,MAAM,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC;IAElD,OAAO,KAAK,CAAC,YAAY,CACvB,OAAO,EACP;QACE,GAAG,SAAS;QACZ,SAAS,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,EAAE,SAAS,CAAC;KACpC,CACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,EAAE,EAAE,CAAC,CAC/D,6BACE,SAAS,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,SAAS,CAAC,KAC9B,SAAS,IAEZ,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,YAAY,CAAC,CACvC,CACP,CAAC;AAEF,MAAM,CAAC,YAAY,GAAG;IACpB,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE,IAAI;CACf,CAAC;AAEF,MAAM,CAAC,SAAS,GAAG;IAEjB,SAAS,EAAE,SAAS,CAAC,MAAM;IAG3B,QAAQ,EAAE,SAAS,CAAC,IAAI;CACzB,CAAC"}
@@ -1,23 +0,0 @@
1
- .root {
2
- display: flex;
3
- flex-wrap: wrap;
4
- }
5
-
6
- .panel {
7
- flex: 1 1 100%;
8
- }
9
-
10
- .panel + .panel {
11
- margin-top: var(--space-medium);
12
- }
13
-
14
- @media (min-width: 768px) {
15
- .root {
16
- flex-wrap: nowrap;
17
- }
18
-
19
- .panel + .panel {
20
- margin-top: 0;
21
- margin-left: var(--space-medium);
22
- }
23
- }