@bundle-stats/ui 4.4.0-beta.0 → 4.4.0-beta.3

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 (557) hide show
  1. package/globals.d.ts +4 -0
  2. package/lib/app/app.js +26 -8
  3. package/lib/app/app.js.map +1 -1
  4. package/lib/app/app.module.css +8 -5
  5. package/lib/assets/icons.svg +17 -1
  6. package/lib/assets/icons.svg.js +12 -0
  7. package/lib/assets/icons.svg.js.map +1 -1
  8. package/lib/components/asset-info/asset-info.js +48 -44
  9. package/lib/components/asset-info/asset-info.js.map +1 -1
  10. package/lib/components/asset-info/asset-info.module.css +28 -6
  11. package/lib/components/asset-info/index.js.map +1 -1
  12. package/lib/components/asset-not-predictive/asset-not-predictive.js +28 -0
  13. package/lib/components/asset-not-predictive/asset-not-predictive.js.map +1 -0
  14. package/lib/components/asset-not-predictive/asset-not-predictive.module.css +3 -0
  15. package/lib/components/{duplicate-packages-insight → asset-not-predictive}/index.js +1 -1
  16. package/lib/components/asset-not-predictive/index.js.map +1 -0
  17. package/lib/components/bundle-assets/bundle-assets.js +31 -44
  18. package/lib/components/bundle-assets/bundle-assets.js.map +1 -1
  19. package/lib/components/bundle-assets/bundle-assets.module.css +11 -22
  20. package/lib/components/bundle-assets/bundle-assets.utils.js +3 -1
  21. package/lib/components/bundle-assets/bundle-assets.utils.js.map +1 -1
  22. package/lib/components/bundle-assets/index.js +4 -1
  23. package/lib/components/bundle-assets/index.js.map +1 -1
  24. package/lib/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.js +11 -7
  25. package/lib/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.js.map +1 -1
  26. package/lib/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.module.css +1 -1
  27. package/lib/components/bundle-modules/bundle-modules.js +30 -39
  28. package/lib/components/bundle-modules/bundle-modules.js.map +1 -1
  29. package/lib/components/bundle-modules/bundle-modules.module.css +3 -2
  30. package/lib/components/bundle-modules/bundle-modules.utils.js +5 -5
  31. package/lib/components/bundle-modules/bundle-modules.utils.js.map +1 -1
  32. package/lib/components/bundle-modules/index.js +5 -2
  33. package/lib/components/bundle-modules/index.js.map +1 -1
  34. package/lib/components/bundle-packages/bundle-packages.js +36 -61
  35. package/lib/components/bundle-packages/bundle-packages.js.map +1 -1
  36. package/lib/components/bundle-packages/bundle-packages.module.css +4 -0
  37. package/lib/components/bundle-packages/index.js +4 -1
  38. package/lib/components/bundle-packages/index.js.map +1 -1
  39. package/lib/components/delta/delta.module.css +2 -1
  40. package/lib/components/entry-info/entry-info.js +56 -0
  41. package/lib/components/entry-info/entry-info.js.map +1 -0
  42. package/lib/components/entry-info/entry-info.module.css +92 -0
  43. package/lib/components/{summary-item → entry-info}/index.js +1 -1
  44. package/lib/components/entry-info/index.js.map +1 -0
  45. package/lib/components/index.js +9 -7
  46. package/lib/components/index.js.map +1 -1
  47. package/lib/components/insight-icon/index.js +18 -0
  48. package/lib/components/insight-icon/index.js.map +1 -0
  49. package/lib/components/insight-icon/insight-icon.js +25 -0
  50. package/lib/components/insight-icon/insight-icon.js.map +1 -0
  51. package/lib/components/insight-icon/insight-icon.module.css +24 -0
  52. package/lib/components/{job-meta → insights}/index.js +1 -1
  53. package/lib/components/insights/index.js.map +1 -0
  54. package/lib/components/insights/insights.js +25 -0
  55. package/lib/components/insights/insights.js.map +1 -0
  56. package/lib/components/insights/insights.module.css +14 -0
  57. package/lib/components/job-header/job-header.js +12 -11
  58. package/lib/components/job-header/job-header.js.map +1 -1
  59. package/lib/components/jobs-header/index.js.map +1 -1
  60. package/lib/components/jobs-header/jobs-header.js +21 -14
  61. package/lib/components/jobs-header/jobs-header.js.map +1 -1
  62. package/lib/components/jobs-header/jobs-header.module.css +51 -4
  63. package/lib/components/metric/index.js.map +1 -1
  64. package/lib/components/metric/metric.js +7 -64
  65. package/lib/components/metric/metric.js.map +1 -1
  66. package/lib/components/metric/metric.module.css +3 -3
  67. package/lib/components/metric-run-info/index.js +18 -0
  68. package/lib/components/metric-run-info/index.js.map +1 -0
  69. package/lib/components/metric-run-info/metric-run-info.js +64 -0
  70. package/lib/components/metric-run-info/metric-run-info.js.map +1 -0
  71. package/lib/components/metric-run-info/metric-run-info.module.css +18 -0
  72. package/lib/components/metrics-table-options/metrics-table-options.js +1 -1
  73. package/lib/components/metrics-table-options/metrics-table-options.js.map +1 -1
  74. package/lib/components/metrics-table-search/metrics-table-search.module.css +0 -6
  75. package/lib/components/metrics-table-title/metrics-table-title.module.css +1 -0
  76. package/lib/components/module-info/index.js.map +1 -1
  77. package/lib/components/module-info/module-info.js +47 -47
  78. package/lib/components/module-info/module-info.js.map +1 -1
  79. package/lib/components/module-info/module-info.module.css +8 -33
  80. package/lib/components/package-info/index.js +18 -0
  81. package/lib/components/package-info/index.js.map +1 -0
  82. package/lib/components/package-info/package-info.js +77 -0
  83. package/lib/components/package-info/package-info.js.map +1 -0
  84. package/lib/components/package-info/package-info.module.css +13 -0
  85. package/lib/components/run-info/index.js +18 -0
  86. package/lib/components/run-info/index.js.map +1 -0
  87. package/lib/components/run-info/run-info.js +70 -0
  88. package/lib/components/run-info/run-info.js.map +1 -0
  89. package/lib/components/run-info/run-info.module.css +76 -0
  90. package/lib/components/summary/index.js.map +1 -1
  91. package/lib/components/summary/summary.js +10 -31
  92. package/lib/components/summary/summary.js.map +1 -1
  93. package/lib/components/summary/summary.module.css +27 -7
  94. package/lib/constants.js +1 -23
  95. package/lib/constants.js.map +1 -1
  96. package/lib/css/variables.css +18 -13
  97. package/lib/layout/box/box.js +3 -23
  98. package/lib/layout/box/box.js.map +1 -1
  99. package/lib/layout/box/box.module.css +11 -0
  100. package/lib/layout/box/index.js +15 -3
  101. package/lib/layout/box/index.js.map +1 -1
  102. package/lib/layout/flex-stack/flex-stack.js +3 -19
  103. package/lib/layout/flex-stack/flex-stack.js.map +1 -1
  104. package/lib/layout/flex-stack/index.js.map +1 -1
  105. package/lib/layout/stack/index.js.map +1 -1
  106. package/lib/layout/stack/stack.js +3 -16
  107. package/lib/layout/stack/stack.js.map +1 -1
  108. package/lib/tokens.js +38 -0
  109. package/lib/tokens.js.map +1 -0
  110. package/lib/ui/alert/alert.js +2 -12
  111. package/lib/ui/alert/alert.js.map +1 -1
  112. package/lib/ui/alert/index.js.map +1 -1
  113. package/lib/ui/container/container.js +1 -10
  114. package/lib/ui/container/container.js.map +1 -1
  115. package/lib/ui/container/index.js +15 -3
  116. package/lib/ui/container/index.js.map +1 -1
  117. package/lib/ui/dropdown/dropdown.module.css +1 -2
  118. package/lib/ui/file-name/file-name.js +1 -1
  119. package/lib/ui/file-name/file-name.js.map +1 -1
  120. package/lib/ui/filters/filters.module.css +1 -5
  121. package/lib/ui/horizontal-bar-chart/horizontal-bar-chart.module.css +2 -0
  122. package/lib/ui/hover-card/hover-card.js +3 -21
  123. package/lib/ui/hover-card/hover-card.js.map +1 -1
  124. package/lib/ui/hover-card/index.js.map +1 -1
  125. package/lib/ui/icon/icon.js +4 -0
  126. package/lib/ui/icon/icon.js.map +1 -1
  127. package/lib/ui/index.js +1 -3
  128. package/lib/ui/index.js.map +1 -1
  129. package/lib/ui/input/input.module.css +3 -4
  130. package/lib/ui/table/index.js.map +1 -1
  131. package/lib/ui/table/table.js +3 -17
  132. package/lib/ui/table/table.js.map +1 -1
  133. package/lib/ui/tag/index.js.map +1 -1
  134. package/lib/ui/tag/tag.js +5 -29
  135. package/lib/ui/tag/tag.js.map +1 -1
  136. package/lib/ui/tag/tag.module.css +15 -1
  137. package/lib/ui/tooltip/index.js.map +1 -1
  138. package/lib/ui/tooltip/tooltip.js +3 -23
  139. package/lib/ui/tooltip/tooltip.js.map +1 -1
  140. package/lib/ui/tooltip/tooltip.module.css +3 -4
  141. package/lib-esm/app/app.js +27 -9
  142. package/lib-esm/app/app.js.map +1 -1
  143. package/lib-esm/app/app.module.css +8 -5
  144. package/lib-esm/assets/icons.svg +17 -1
  145. package/lib-esm/assets/icons.svg.js +12 -0
  146. package/lib-esm/assets/icons.svg.js.map +1 -1
  147. package/lib-esm/components/asset-info/asset-info.js +27 -45
  148. package/lib-esm/components/asset-info/asset-info.js.map +1 -1
  149. package/lib-esm/components/asset-info/asset-info.module.css +28 -6
  150. package/lib-esm/components/asset-info/index.js.map +1 -1
  151. package/lib-esm/components/asset-not-predictive/asset-not-predictive.js +21 -0
  152. package/lib-esm/components/asset-not-predictive/asset-not-predictive.js.map +1 -0
  153. package/lib-esm/components/asset-not-predictive/asset-not-predictive.module.css +3 -0
  154. package/lib-esm/components/asset-not-predictive/index.js +2 -0
  155. package/lib-esm/components/asset-not-predictive/index.js.map +1 -0
  156. package/lib-esm/components/bundle-assets/bundle-assets.js +34 -49
  157. package/lib-esm/components/bundle-assets/bundle-assets.js.map +1 -1
  158. package/lib-esm/components/bundle-assets/bundle-assets.module.css +11 -22
  159. package/lib-esm/components/bundle-assets/bundle-assets.utils.js +3 -1
  160. package/lib-esm/components/bundle-assets/bundle-assets.utils.js.map +1 -1
  161. package/lib-esm/components/bundle-assets/index.js +5 -2
  162. package/lib-esm/components/bundle-assets/index.js.map +1 -1
  163. package/lib-esm/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.js +10 -8
  164. package/lib-esm/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.js.map +1 -1
  165. package/lib-esm/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.module.css +1 -1
  166. package/lib-esm/components/bundle-modules/bundle-modules.js +32 -41
  167. package/lib-esm/components/bundle-modules/bundle-modules.js.map +1 -1
  168. package/lib-esm/components/bundle-modules/bundle-modules.module.css +3 -2
  169. package/lib-esm/components/bundle-modules/bundle-modules.utils.js +3 -3
  170. package/lib-esm/components/bundle-modules/bundle-modules.utils.js.map +1 -1
  171. package/lib-esm/components/bundle-modules/index.js +7 -4
  172. package/lib-esm/components/bundle-modules/index.js.map +1 -1
  173. package/lib-esm/components/bundle-packages/bundle-packages.js +37 -62
  174. package/lib-esm/components/bundle-packages/bundle-packages.js.map +1 -1
  175. package/lib-esm/components/bundle-packages/bundle-packages.module.css +4 -0
  176. package/lib-esm/components/bundle-packages/index.js +5 -2
  177. package/lib-esm/components/bundle-packages/index.js.map +1 -1
  178. package/lib-esm/components/delta/delta.module.css +2 -1
  179. package/lib-esm/components/entry-info/entry-info.js +50 -0
  180. package/lib-esm/components/entry-info/entry-info.js.map +1 -0
  181. package/lib-esm/components/entry-info/entry-info.module.css +92 -0
  182. package/lib-esm/components/entry-info/index.js +2 -0
  183. package/lib-esm/components/entry-info/index.js.map +1 -0
  184. package/lib-esm/components/index.js +4 -3
  185. package/lib-esm/components/index.js.map +1 -1
  186. package/lib-esm/components/insight-icon/index.js +2 -0
  187. package/lib-esm/components/insight-icon/index.js.map +1 -0
  188. package/lib-esm/components/insight-icon/insight-icon.js +18 -0
  189. package/lib-esm/components/insight-icon/insight-icon.js.map +1 -0
  190. package/lib-esm/components/insight-icon/insight-icon.module.css +24 -0
  191. package/lib-esm/components/insights/index.js +2 -0
  192. package/lib-esm/components/insights/index.js.map +1 -0
  193. package/lib-esm/components/insights/insights.js +18 -0
  194. package/lib-esm/components/insights/insights.js.map +1 -0
  195. package/lib-esm/components/insights/insights.module.css +14 -0
  196. package/lib-esm/components/job-header/job-header.js +12 -11
  197. package/lib-esm/components/job-header/job-header.js.map +1 -1
  198. package/lib-esm/components/jobs-header/index.js.map +1 -1
  199. package/lib-esm/components/jobs-header/jobs-header.js +20 -13
  200. package/lib-esm/components/jobs-header/jobs-header.js.map +1 -1
  201. package/lib-esm/components/jobs-header/jobs-header.module.css +51 -4
  202. package/lib-esm/components/metric/index.js.map +1 -1
  203. package/lib-esm/components/metric/metric.js +7 -41
  204. package/lib-esm/components/metric/metric.js.map +1 -1
  205. package/lib-esm/components/metric/metric.module.css +3 -3
  206. package/lib-esm/components/metric-run-info/index.js +2 -0
  207. package/lib-esm/components/metric-run-info/index.js.map +1 -0
  208. package/lib-esm/components/metric-run-info/metric-run-info.js +34 -0
  209. package/lib-esm/components/metric-run-info/metric-run-info.js.map +1 -0
  210. package/lib-esm/components/metric-run-info/metric-run-info.module.css +18 -0
  211. package/lib-esm/components/metrics-table-options/metrics-table-options.js +1 -1
  212. package/lib-esm/components/metrics-table-options/metrics-table-options.js.map +1 -1
  213. package/lib-esm/components/metrics-table-search/metrics-table-search.module.css +0 -6
  214. package/lib-esm/components/metrics-table-title/metrics-table-title.module.css +1 -0
  215. package/lib-esm/components/module-info/index.js.map +1 -1
  216. package/lib-esm/components/module-info/module-info.js +26 -48
  217. package/lib-esm/components/module-info/module-info.js.map +1 -1
  218. package/lib-esm/components/module-info/module-info.module.css +8 -33
  219. package/lib-esm/components/package-info/index.js +2 -0
  220. package/lib-esm/components/package-info/index.js.map +1 -0
  221. package/lib-esm/components/package-info/package-info.js +48 -0
  222. package/lib-esm/components/package-info/package-info.js.map +1 -0
  223. package/lib-esm/components/package-info/package-info.module.css +13 -0
  224. package/lib-esm/components/run-info/index.js +2 -0
  225. package/lib-esm/components/run-info/index.js.map +1 -0
  226. package/lib-esm/components/run-info/run-info.js +40 -0
  227. package/lib-esm/components/run-info/run-info.js.map +1 -0
  228. package/lib-esm/components/run-info/run-info.module.css +76 -0
  229. package/lib-esm/components/summary/index.js.map +1 -1
  230. package/lib-esm/components/summary/summary.js +9 -30
  231. package/lib-esm/components/summary/summary.js.map +1 -1
  232. package/lib-esm/components/summary/summary.module.css +27 -7
  233. package/lib-esm/constants.js +0 -22
  234. package/lib-esm/constants.js.map +1 -1
  235. package/lib-esm/css/variables.css +18 -13
  236. package/lib-esm/layout/box/box.js +3 -23
  237. package/lib-esm/layout/box/box.js.map +1 -1
  238. package/lib-esm/layout/box/box.module.css +11 -0
  239. package/lib-esm/layout/box/index.js +1 -1
  240. package/lib-esm/layout/box/index.js.map +1 -1
  241. package/lib-esm/layout/flex-stack/flex-stack.js +3 -19
  242. package/lib-esm/layout/flex-stack/flex-stack.js.map +1 -1
  243. package/lib-esm/layout/flex-stack/index.js.map +1 -1
  244. package/lib-esm/layout/stack/index.js.map +1 -1
  245. package/lib-esm/layout/stack/stack.js +3 -16
  246. package/lib-esm/layout/stack/stack.js.map +1 -1
  247. package/lib-esm/tokens.js +35 -0
  248. package/lib-esm/tokens.js.map +1 -0
  249. package/lib-esm/ui/alert/alert.js +2 -12
  250. package/lib-esm/ui/alert/alert.js.map +1 -1
  251. package/lib-esm/ui/alert/index.js.map +1 -1
  252. package/lib-esm/ui/container/container.js +1 -10
  253. package/lib-esm/ui/container/container.js.map +1 -1
  254. package/lib-esm/ui/container/index.js +1 -1
  255. package/lib-esm/ui/container/index.js.map +1 -1
  256. package/lib-esm/ui/dropdown/dropdown.module.css +1 -2
  257. package/lib-esm/ui/file-name/file-name.js +1 -1
  258. package/lib-esm/ui/file-name/file-name.js.map +1 -1
  259. package/lib-esm/ui/filters/filters.module.css +1 -5
  260. package/lib-esm/ui/horizontal-bar-chart/horizontal-bar-chart.module.css +2 -0
  261. package/lib-esm/ui/hover-card/hover-card.js +3 -21
  262. package/lib-esm/ui/hover-card/hover-card.js.map +1 -1
  263. package/lib-esm/ui/hover-card/index.js.map +1 -1
  264. package/lib-esm/ui/icon/icon.js +4 -0
  265. package/lib-esm/ui/icon/icon.js.map +1 -1
  266. package/lib-esm/ui/index.js +0 -1
  267. package/lib-esm/ui/index.js.map +1 -1
  268. package/lib-esm/ui/input/input.module.css +3 -4
  269. package/lib-esm/ui/table/index.js.map +1 -1
  270. package/lib-esm/ui/table/table.js +3 -17
  271. package/lib-esm/ui/table/table.js.map +1 -1
  272. package/lib-esm/ui/tag/index.js.map +1 -1
  273. package/lib-esm/ui/tag/tag.js +4 -28
  274. package/lib-esm/ui/tag/tag.js.map +1 -1
  275. package/lib-esm/ui/tag/tag.module.css +15 -1
  276. package/lib-esm/ui/tooltip/index.js.map +1 -1
  277. package/lib-esm/ui/tooltip/tooltip.js +4 -23
  278. package/lib-esm/ui/tooltip/tooltip.js.map +1 -1
  279. package/lib-esm/ui/tooltip/tooltip.module.css +3 -4
  280. package/package.json +23 -29
  281. package/src/app/app.jsx +34 -9
  282. package/src/app/app.module.css +8 -5
  283. package/src/assets/icons/error.svg +6 -0
  284. package/src/assets/icons/external-link.svg +1 -0
  285. package/src/assets/icons/info.svg +6 -0
  286. package/src/assets/icons/more-vertical.svg +5 -0
  287. package/src/assets/icons.svg +17 -1
  288. package/src/assets/icons.svg.jsx +53 -0
  289. package/src/components/asset-info/asset-info.module.css +28 -6
  290. package/src/components/asset-info/asset-info.stories.tsx +74 -0
  291. package/src/components/asset-info/asset-info.tsx +159 -0
  292. package/src/components/asset-not-predictive/asset-not-predictive.module.css +3 -0
  293. package/src/components/asset-not-predictive/asset-not-predictive.stories.tsx +23 -0
  294. package/src/components/asset-not-predictive/asset-not-predictive.tsx +44 -0
  295. package/src/components/asset-not-predictive/index.ts +1 -0
  296. package/src/components/bundle-assets/bundle-assets.jsx +94 -107
  297. package/src/components/bundle-assets/bundle-assets.module.css +11 -22
  298. package/src/components/bundle-assets/bundle-assets.utils.js +3 -2
  299. package/src/components/bundle-assets/index.jsx +7 -1
  300. package/src/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.jsx +21 -17
  301. package/src/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.module.css +1 -1
  302. package/src/components/bundle-modules/bundle-modules.jsx +91 -100
  303. package/src/components/bundle-modules/bundle-modules.module.css +3 -2
  304. package/src/components/bundle-modules/bundle-modules.utils.js +5 -3
  305. package/src/components/bundle-modules/index.jsx +9 -3
  306. package/src/components/bundle-packages/bundle-packages.jsx +116 -179
  307. package/src/components/bundle-packages/bundle-packages.module.css +4 -0
  308. package/src/components/bundle-packages/index.jsx +7 -1
  309. package/src/components/delta/delta.module.css +2 -1
  310. package/src/components/entry-info/entry-info.module.css +92 -0
  311. package/src/components/entry-info/entry-info.stories.tsx +75 -0
  312. package/src/components/entry-info/entry-info.tsx +134 -0
  313. package/src/components/entry-info/index.ts +1 -0
  314. package/src/components/index.js +4 -3
  315. package/src/components/insight-icon/index.ts +1 -0
  316. package/src/components/insight-icon/insight-icon.module.css +24 -0
  317. package/src/components/insight-icon/insight-icon.tsx +25 -0
  318. package/src/components/insights/index.ts +1 -0
  319. package/src/components/insights/insights.module.css +14 -0
  320. package/src/components/insights/insights.stories.tsx +54 -0
  321. package/src/components/insights/insights.tsx +44 -0
  322. package/src/components/job-header/job-header.jsx +16 -13
  323. package/src/components/jobs-header/jobs-header.module.css +51 -4
  324. package/src/components/jobs-header/jobs-header.stories.tsx +51 -0
  325. package/src/components/jobs-header/jobs-header.tsx +90 -0
  326. package/src/components/metric/metric.module.css +3 -3
  327. package/src/components/metric/metric.stories.tsx +41 -0
  328. package/src/components/metric/metric.tsx +42 -0
  329. package/src/components/metric-run-info/index.ts +1 -0
  330. package/src/components/metric-run-info/metric-run-info.module.css +18 -0
  331. package/src/components/metric-run-info/metric-run-info.stories.tsx +34 -0
  332. package/src/components/metric-run-info/metric-run-info.tsx +85 -0
  333. package/src/components/metrics-table-options/metrics-table-options.jsx +1 -1
  334. package/src/components/metrics-table-search/metrics-table-search.module.css +0 -6
  335. package/src/components/metrics-table-title/metrics-table-title.module.css +1 -0
  336. package/src/components/module-info/module-info.module.css +8 -33
  337. package/src/components/module-info/module-info.stories.tsx +44 -0
  338. package/src/components/module-info/module-info.tsx +116 -0
  339. package/src/components/package-info/index.ts +1 -0
  340. package/src/components/package-info/package-info.module.css +13 -0
  341. package/src/components/package-info/package-info.stories.tsx +36 -0
  342. package/src/components/package-info/package-info.tsx +135 -0
  343. package/src/components/run-info/index.ts +1 -0
  344. package/src/components/run-info/run-info.module.css +76 -0
  345. package/src/components/run-info/run-info.stories.tsx +58 -0
  346. package/src/components/run-info/run-info.tsx +111 -0
  347. package/src/components/summary/summary.module.css +27 -7
  348. package/src/components/summary/summary.stories.tsx +57 -0
  349. package/src/components/summary/summary.tsx +103 -0
  350. package/src/constants.js +0 -24
  351. package/src/css/variables.css +18 -13
  352. package/src/layout/box/box.module.css +11 -0
  353. package/src/layout/box/box.stories.tsx +49 -0
  354. package/src/layout/box/box.tsx +49 -0
  355. package/src/layout/box/index.ts +1 -0
  356. package/src/layout/flex-stack/flex-stack.stories.tsx +59 -0
  357. package/src/layout/flex-stack/flex-stack.tsx +43 -0
  358. package/src/layout/stack/stack.stories.tsx +53 -0
  359. package/src/layout/stack/stack.tsx +22 -0
  360. package/src/tokens.ts +37 -0
  361. package/src/ui/alert/alert.stories.tsx +39 -0
  362. package/src/ui/alert/alert.tsx +23 -0
  363. package/src/ui/container/container.stories.tsx +29 -0
  364. package/src/ui/container/container.tsx +18 -0
  365. package/src/ui/container/index.ts +1 -0
  366. package/src/ui/dropdown/dropdown.module.css +1 -2
  367. package/src/ui/file-name/file-name.jsx +1 -1
  368. package/src/ui/filters/filters.module.css +1 -5
  369. package/src/ui/horizontal-bar-chart/horizontal-bar-chart.module.css +2 -0
  370. package/src/ui/hover-card/hover-card.stories.tsx +41 -0
  371. package/src/ui/hover-card/{hover-card.jsx → hover-card.tsx} +22 -30
  372. package/src/ui/icon/icon.jsx +4 -0
  373. package/src/ui/index.js +0 -1
  374. package/src/ui/input/input.module.css +3 -4
  375. package/src/ui/table/table.stories.tsx +238 -0
  376. package/src/ui/table/table.tsx +38 -0
  377. package/src/ui/tag/tag.module.css +15 -1
  378. package/src/ui/tag/tag.stories.tsx +32 -0
  379. package/src/ui/tag/tag.tsx +28 -0
  380. package/src/ui/tooltip/tooltip.module.css +3 -4
  381. package/src/ui/tooltip/tooltip.stories.tsx +30 -0
  382. package/src/ui/tooltip/tooltip.tsx +57 -0
  383. package/types/app/header/header.d.ts +5 -5
  384. package/types/components/asset-info/asset-info.d.ts +20 -23
  385. package/types/components/asset-info/index.d.ts +1 -1
  386. package/types/components/asset-not-predictive/asset-not-predictive.d.ts +8 -0
  387. package/types/components/asset-not-predictive/index.d.ts +1 -0
  388. package/types/components/browsertime-table/browsertime-table.d.ts +5 -5
  389. package/types/components/bundle-assets/bundle-assets.constants.d.ts +6 -6
  390. package/types/components/bundle-assets/bundle-assets.d.ts +28 -20
  391. package/types/components/bundle-assets/index.d.ts +11 -11
  392. package/types/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.d.ts +6 -6
  393. package/types/components/bundle-assets-totals-table/bundle-assets-totals-table.d.ts +7 -7
  394. package/types/components/bundle-modules/bundle-modules.constants.d.ts +6 -6
  395. package/types/components/bundle-modules/bundle-modules.d.ts +28 -24
  396. package/types/components/bundle-modules/bundle-modules.utils.d.ts +1 -1
  397. package/types/components/bundle-modules/index.d.ts +11 -11
  398. package/types/components/bundle-packages/bundle-packages.constants.d.ts +6 -6
  399. package/types/components/bundle-packages/bundle-packages.d.ts +24 -20
  400. package/types/components/bundle-packages/index.d.ts +11 -11
  401. package/types/components/component-link.d.ts +6 -6
  402. package/types/components/delta/delta.d.ts +7 -7
  403. package/types/components/entry-info/entry-info.d.ts +25 -0
  404. package/types/components/entry-info/index.d.ts +1 -0
  405. package/types/components/index.d.ts +4 -3
  406. package/types/components/insight-icon/index.d.ts +1 -0
  407. package/types/components/insight-icon/insight-icon.d.ts +7 -0
  408. package/types/components/insights/index.d.ts +1 -0
  409. package/types/components/insights/insights.d.ts +8 -0
  410. package/types/components/job-header/job-header.d.ts +9 -9
  411. package/types/components/job-name/job-name.d.ts +9 -9
  412. package/types/components/jobs-header/index.d.ts +1 -1
  413. package/types/components/jobs-header/jobs-header.d.ts +18 -15
  414. package/types/components/lighthouse-table/lighthouse-table.d.ts +5 -5
  415. package/types/components/metric/index.d.ts +1 -1
  416. package/types/components/metric/metric.d.ts +6 -32
  417. package/types/components/metric-run-info/index.d.ts +1 -0
  418. package/types/components/metric-run-info/metric-run-info.d.ts +13 -0
  419. package/types/components/metrics-table/metrics-table.d.ts +14 -14
  420. package/types/components/metrics-table-options/metrics-table-options.d.ts +7 -7
  421. package/types/components/metrics-table-search/metrics-table-search.d.ts +7 -7
  422. package/types/components/metrics-table-title/metrics-table-title.d.ts +10 -10
  423. package/types/components/module-info/index.d.ts +1 -1
  424. package/types/components/module-info/module-info.d.ts +19 -34
  425. package/types/components/package-info/index.d.ts +1 -0
  426. package/types/components/package-info/package-info.d.ts +15 -0
  427. package/types/components/run-info/index.d.ts +1 -0
  428. package/types/components/run-info/run-info.d.ts +16 -0
  429. package/types/components/summary/index.d.ts +1 -1
  430. package/types/components/summary/summary.d.ts +25 -36
  431. package/types/components/total-size-type-title/total-size-type-title.d.ts +3 -3
  432. package/types/constants.d.ts +4 -15
  433. package/types/i18n.d.ts +15 -15
  434. package/types/layout/box/box.d.ts +12 -25
  435. package/types/layout/box/index.d.ts +1 -1
  436. package/types/layout/flex-stack/flex-stack.d.ts +10 -33
  437. package/types/layout/flex-stack/index.d.ts +1 -1
  438. package/types/layout/footer/footer.d.ts +5 -5
  439. package/types/layout/separator.d.ts +4 -4
  440. package/types/layout/stack/index.d.ts +1 -1
  441. package/types/layout/stack/stack.d.ts +7 -20
  442. package/types/tokens.d.ts +23 -0
  443. package/types/ui/alert/alert.d.ts +7 -14
  444. package/types/ui/alert/index.d.ts +1 -1
  445. package/types/ui/container/container.d.ts +5 -17
  446. package/types/ui/container/index.d.ts +1 -1
  447. package/types/ui/dropdown/dropdown.d.ts +16 -16
  448. package/types/ui/empty-set/empty-set.d.ts +7 -7
  449. package/types/ui/file-name/file-name.d.ts +7 -7
  450. package/types/ui/filters/filters.d.ts +6 -6
  451. package/types/ui/filters/filters.utils.d.ts +2 -2
  452. package/types/ui/filters/index.d.ts +4 -4
  453. package/types/ui/horizontal-bar-chart/horizontal-bar-chart.d.ts +6 -6
  454. package/types/ui/hover-card/hover-card.d.ts +12 -26
  455. package/types/ui/hover-card/index.d.ts +1 -1
  456. package/types/ui/icon/icon.d.ts +26 -22
  457. package/types/ui/index.d.ts +0 -1
  458. package/types/ui/input/input.d.ts +5 -5
  459. package/types/ui/loader/loader.d.ts +8 -8
  460. package/types/ui/skeleton/skeleton.d.ts +7 -7
  461. package/types/ui/sort-dropdown/sort-dropdown.d.ts +11 -11
  462. package/types/ui/table/index.d.ts +1 -1
  463. package/types/ui/table/table.d.ts +14 -33
  464. package/types/ui/tabs/tabs.d.ts +10 -10
  465. package/types/ui/tag/index.d.ts +1 -1
  466. package/types/ui/tag/tag.d.ts +22 -33
  467. package/types/ui/toolbar/toolbar.d.ts +6 -6
  468. package/types/ui/tooltip/index.d.ts +1 -1
  469. package/types/ui/tooltip/tooltip.d.ts +10 -28
  470. package/lib/components/duplicate-packages-insight/duplicate-packages-insight.js +0 -31
  471. package/lib/components/duplicate-packages-insight/duplicate-packages-insight.js.map +0 -1
  472. package/lib/components/duplicate-packages-insight/duplicate-packages-insight.module.css +0 -18
  473. package/lib/components/duplicate-packages-insight/index.js.map +0 -1
  474. package/lib/components/job-meta/index.js.map +0 -1
  475. package/lib/components/job-meta/job-meta.js +0 -34
  476. package/lib/components/job-meta/job-meta.js.map +0 -1
  477. package/lib/components/job-meta/job-meta.module.css +0 -19
  478. package/lib/components/summary-item/index.js.map +0 -1
  479. package/lib/components/summary-item/summary-item.js +0 -97
  480. package/lib/components/summary-item/summary-item.js.map +0 -1
  481. package/lib/components/summary-item/summary-item.module.css +0 -58
  482. package/lib/ui/panels/index.js +0 -6
  483. package/lib/ui/panels/index.js.map +0 -1
  484. package/lib/ui/panels/panels.js +0 -28
  485. package/lib/ui/panels/panels.js.map +0 -1
  486. package/lib/ui/panels/panels.module.css +0 -23
  487. package/lib-esm/components/duplicate-packages-insight/duplicate-packages-insight.js +0 -24
  488. package/lib-esm/components/duplicate-packages-insight/duplicate-packages-insight.js.map +0 -1
  489. package/lib-esm/components/duplicate-packages-insight/duplicate-packages-insight.module.css +0 -18
  490. package/lib-esm/components/duplicate-packages-insight/index.js +0 -2
  491. package/lib-esm/components/duplicate-packages-insight/index.js.map +0 -1
  492. package/lib-esm/components/job-meta/index.js +0 -2
  493. package/lib-esm/components/job-meta/index.js.map +0 -1
  494. package/lib-esm/components/job-meta/job-meta.js +0 -27
  495. package/lib-esm/components/job-meta/job-meta.js.map +0 -1
  496. package/lib-esm/components/job-meta/job-meta.module.css +0 -19
  497. package/lib-esm/components/summary-item/index.js +0 -2
  498. package/lib-esm/components/summary-item/index.js.map +0 -1
  499. package/lib-esm/components/summary-item/summary-item.js +0 -67
  500. package/lib-esm/components/summary-item/summary-item.js.map +0 -1
  501. package/lib-esm/components/summary-item/summary-item.module.css +0 -58
  502. package/lib-esm/ui/panels/index.js +0 -2
  503. package/lib-esm/ui/panels/index.js.map +0 -1
  504. package/lib-esm/ui/panels/panels.js +0 -21
  505. package/lib-esm/ui/panels/panels.js.map +0 -1
  506. package/lib-esm/ui/panels/panels.module.css +0 -23
  507. package/src/components/asset-info/asset-info.jsx +0 -96
  508. package/src/components/duplicate-packages-insight/duplicate-packages-insight.module.css +0 -18
  509. package/src/components/duplicate-packages-insight/duplicate-packages-insight.stories.tsx +0 -66
  510. package/src/components/duplicate-packages-insight/duplicate-packages-insight.tsx +0 -81
  511. package/src/components/duplicate-packages-insight/index.ts +0 -1
  512. package/src/components/job-meta/index.js +0 -1
  513. package/src/components/job-meta/job-meta.jsx +0 -47
  514. package/src/components/job-meta/job-meta.module.css +0 -19
  515. package/src/components/jobs-header/jobs-header.jsx +0 -43
  516. package/src/components/metric/metric.jsx +0 -63
  517. package/src/components/module-info/module-info.jsx +0 -123
  518. package/src/components/summary/summary.jsx +0 -73
  519. package/src/components/summary-item/index.js +0 -1
  520. package/src/components/summary-item/summary-item.jsx +0 -142
  521. package/src/components/summary-item/summary-item.module.css +0 -58
  522. package/src/layout/box/box.jsx +0 -67
  523. package/src/layout/box/index.js +0 -1
  524. package/src/layout/flex-stack/flex-stack.jsx +0 -49
  525. package/src/layout/stack/stack.jsx +0 -32
  526. package/src/ui/alert/alert.jsx +0 -27
  527. package/src/ui/container/container.jsx +0 -24
  528. package/src/ui/container/index.js +0 -1
  529. package/src/ui/panels/index.js +0 -1
  530. package/src/ui/panels/panels.jsx +0 -39
  531. package/src/ui/panels/panels.module.css +0 -23
  532. package/src/ui/table/table.jsx +0 -37
  533. package/src/ui/tag/tag.jsx +0 -49
  534. package/src/ui/tooltip/tooltip.jsx +0 -67
  535. package/tsconfig.esm.json +0 -13
  536. package/tsconfig.json +0 -7
  537. package/tsconfig.lib.json +0 -9
  538. package/types/components/duplicate-packages-insight/duplicate-packages-insight.d.ts +0 -11
  539. package/types/components/duplicate-packages-insight/index.d.ts +0 -1
  540. package/types/components/job-meta/index.d.ts +0 -1
  541. package/types/components/job-meta/job-meta.d.ts +0 -18
  542. package/types/components/summary-item/index.d.ts +0 -1
  543. package/types/components/summary-item/summary-item.d.ts +0 -40
  544. package/types/ui/panels/index.d.ts +0 -1
  545. package/types/ui/panels/panels.d.ts +0 -18
  546. /package/src/components/asset-info/{index.js → index.ts} +0 -0
  547. /package/src/components/jobs-header/{index.js → index.ts} +0 -0
  548. /package/src/components/metric/{index.js → index.ts} +0 -0
  549. /package/src/components/module-info/{index.js → index.ts} +0 -0
  550. /package/src/components/summary/{index.js → index.ts} +0 -0
  551. /package/src/layout/flex-stack/{index.js → index.ts} +0 -0
  552. /package/src/layout/stack/{index.js → index.ts} +0 -0
  553. /package/src/ui/alert/{index.js → index.ts} +0 -0
  554. /package/src/ui/hover-card/{index.js → index.ts} +0 -0
  555. /package/src/ui/table/{index.js → index.ts} +0 -0
  556. /package/src/ui/tag/{index.js → index.ts} +0 -0
  557. /package/src/ui/tooltip/{index.js → index.ts} +0 -0
@@ -1,16 +1,16 @@
1
1
  export function EmptySet(props: any): JSX.Element;
2
2
  export namespace EmptySet {
3
3
  namespace propTypes {
4
- const resources: PropTypes.Validator<string>;
5
- const filtered: PropTypes.Validator<boolean>;
6
- const handleResetFilters: PropTypes.Requireable<(...args: any[]) => any>;
7
- const handleViewAll: PropTypes.Requireable<(...args: any[]) => any>;
4
+ let resources: PropTypes.Validator<string>;
5
+ let filtered: PropTypes.Validator<boolean>;
6
+ let handleResetFilters: PropTypes.Requireable<(...args: any[]) => any>;
7
+ let handleViewAll: PropTypes.Requireable<(...args: any[]) => any>;
8
8
  }
9
9
  namespace defaultProps {
10
- const handleResetFilters_1: null;
10
+ let handleResetFilters_1: null;
11
11
  export { handleResetFilters_1 as handleResetFilters };
12
- const handleViewAll_1: null;
12
+ let handleViewAll_1: null;
13
13
  export { handleViewAll_1 as handleViewAll };
14
14
  }
15
15
  }
16
- import PropTypes from "prop-types";
16
+ import PropTypes from 'prop-types';
@@ -5,17 +5,17 @@ export function FileName({ className, as: Component, name }: {
5
5
  }): JSX.Element;
6
6
  export namespace FileName {
7
7
  namespace defaultProps {
8
- const className: string;
9
- const as: string;
10
- const name: string;
8
+ let className: string;
9
+ let as: string;
10
+ let name: string;
11
11
  }
12
12
  namespace propTypes {
13
- const className_1: PropTypes.Requireable<string>;
13
+ let className_1: PropTypes.Requireable<string>;
14
14
  export { className_1 as className };
15
- const as_1: PropTypes.Requireable<PropTypes.ReactComponentLike>;
15
+ let as_1: PropTypes.Requireable<PropTypes.ReactComponentLike>;
16
16
  export { as_1 as as };
17
- const name_1: PropTypes.Requireable<string>;
17
+ let name_1: number;
18
18
  export { name_1 as name };
19
19
  }
20
20
  }
21
- import PropTypes from "prop-types";
21
+ import PropTypes from 'prop-types';
@@ -1,14 +1,14 @@
1
1
  export function Filters(props: any): JSX.Element;
2
2
  export namespace Filters {
3
3
  namespace defaultProps {
4
- const className: string;
4
+ let className: string;
5
5
  }
6
6
  namespace propTypes {
7
- const className_1: PropTypes.Requireable<string>;
7
+ let className_1: PropTypes.Requireable<string>;
8
8
  export { className_1 as className };
9
- export const values: PropTypes.Validator<object>;
10
- export const filters: PropTypes.Validator<object>;
11
- export const toggleFilter: PropTypes.Validator<(...args: any[]) => any>;
9
+ export let values: PropTypes.Validator<object>;
10
+ export let filters: PropTypes.Validator<object>;
11
+ export let toggleFilter: PropTypes.Validator<(...args: any[]) => any>;
12
12
  }
13
13
  }
14
- import PropTypes from "prop-types";
14
+ import PropTypes from 'prop-types';
@@ -1,6 +1,6 @@
1
1
  export namespace LABELS {
2
- const NONE: string;
3
- const ALL: string;
2
+ let NONE: string;
3
+ let ALL: string;
4
4
  }
5
5
  export function getGroupFiltersLabelSuffix(filters: Array<any[]>): string;
6
6
  export function getInitialValues(key: any, filters: any): any;
@@ -1,12 +1,12 @@
1
1
  export function Filters(props: any): JSX.Element;
2
2
  export namespace Filters {
3
3
  namespace defaultProps {
4
- const onChange: null;
4
+ let onChange: null;
5
5
  }
6
6
  namespace propTypes {
7
- export const filters: PropTypes.Validator<object>;
8
- const onChange_1: PropTypes.Requireable<(...args: any[]) => any>;
7
+ export let filters: PropTypes.Validator<object>;
8
+ let onChange_1: PropTypes.Requireable<(...args: any[]) => any>;
9
9
  export { onChange_1 as onChange };
10
10
  }
11
11
  }
12
- import PropTypes from "prop-types";
12
+ import PropTypes from 'prop-types';
@@ -1,13 +1,13 @@
1
1
  export function HorizontalBarChart(props: any): JSX.Element;
2
2
  export namespace HorizontalBarChart {
3
3
  namespace defaultProps {
4
- const className: string;
5
- const maxValue: null;
4
+ let className: string;
5
+ let maxValue: null;
6
6
  }
7
7
  namespace propTypes {
8
- const className_1: PropTypes.Requireable<string>;
8
+ let className_1: PropTypes.Requireable<string>;
9
9
  export { className_1 as className };
10
- export const data: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
10
+ export let data: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
11
11
  labels: PropTypes.Requireable<(string | null | undefined)[]>;
12
12
  values: PropTypes.Requireable<(NonNullable<number | PropTypes.InferProps<{
13
13
  value: PropTypes.Requireable<number>;
@@ -15,8 +15,8 @@ export namespace HorizontalBarChart {
15
15
  label: PropTypes.Requireable<NonNullable<string | PropTypes.ReactElementLike | null | undefined>>;
16
16
  }> | null | undefined> | null | undefined)[]>;
17
17
  }>>>;
18
- const maxValue_1: PropTypes.Requireable<number>;
18
+ let maxValue_1: PropTypes.Requireable<number>;
19
19
  export { maxValue_1 as maxValue };
20
20
  }
21
21
  }
22
- import PropTypes from "prop-types";
22
+ import PropTypes from 'prop-types';
@@ -1,27 +1,13 @@
1
- export function HoverCard(props: any): JSX.Element;
2
- export namespace HoverCard {
3
- namespace propTypes {
4
- const className: PropTypes.Requireable<string>;
5
- const hoverCardClassName: PropTypes.Requireable<string>;
6
- const anchorClassName: PropTypes.Requireable<string>;
7
- const label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
8
- const href: PropTypes.Requireable<string>;
9
- const as: PropTypes.Requireable<PropTypes.ReactComponentLike>;
10
- const children: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactNodeLike | ((...args: any[]) => any)>>>;
11
- }
12
- namespace defaultProps {
13
- const className_1: string;
14
- export { className_1 as className };
15
- const hoverCardClassName_1: string;
16
- export { hoverCardClassName_1 as hoverCardClassName };
17
- const anchorClassName_1: string;
18
- export { anchorClassName_1 as anchorClassName };
19
- const label_1: string;
20
- export { label_1 as label };
21
- const as_1: string;
22
- export { as_1 as as };
23
- const href_1: string;
24
- export { href_1 as href };
25
- }
1
+ import React from 'react';
2
+ export interface HoverCardProps {
3
+ className?: string;
4
+ anchorClassName?: string;
5
+ hoverCardClassName?: string;
6
+ href?: string;
7
+ as?: React.ElementType;
8
+ label: React.ReactNode;
9
+ children?: React.ReactNode | (({ close }: {
10
+ close: () => void;
11
+ }) => React.ReactNode);
26
12
  }
27
- import PropTypes from "prop-types";
13
+ export declare const HoverCard: (props: HoverCardProps) => JSX.Element;
@@ -1 +1 @@
1
- export * from "./hover-card";
1
+ export * from './hover-card';
@@ -1,38 +1,42 @@
1
1
  export function Icon(props: any): JSX.Element;
2
2
  export namespace Icon {
3
3
  export { ICONS };
4
- export const SIZE_SMALL: string;
5
- export const SIZE_MEDIUM: string;
6
- export const SIZE_LARGE: string;
7
- export const SIZES: string[];
4
+ export let SIZE_SMALL: string;
5
+ export let SIZE_MEDIUM: string;
6
+ export let SIZE_LARGE: string;
7
+ export let SIZES: string[];
8
8
  export namespace defaultProps {
9
- export const className: string;
10
- export const as: string;
9
+ export let className: string;
10
+ export let as: string;
11
11
  import size = Icon.SIZE_MEDIUM;
12
12
  export { size };
13
13
  }
14
14
  export namespace propTypes {
15
- const className_1: PropTypes.Requireable<string>;
15
+ let className_1: PropTypes.Requireable<string>;
16
16
  export { className_1 as className };
17
- export const glyph: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactNodeLike>>>;
18
- const as_1: PropTypes.Requireable<PropTypes.ReactNodeLike>;
17
+ export let glyph: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactNodeLike>>>;
18
+ let as_1: PropTypes.Requireable<PropTypes.ReactNodeLike>;
19
19
  export { as_1 as as };
20
- const size_1: PropTypes.Requireable<string>;
20
+ let size_1: PropTypes.Requireable<string>;
21
21
  export { size_1 as size };
22
22
  }
23
23
  }
24
24
  declare namespace ICONS {
25
- const ARROW: string;
26
- const ARROW_RIGHT_CIRLCE: string;
27
- const CANCEL: string;
28
- const CLOSE: string;
29
- const CLOCK: string;
30
- const COMMIT: string;
31
- const FILTER: string;
32
- const HELP: string;
33
- const MENU: string;
34
- const SORT: string;
35
- const WARNING: string;
25
+ let ARROW: string;
26
+ let ARROW_RIGHT_CIRLCE: string;
27
+ let CANCEL: string;
28
+ let CLOSE: string;
29
+ let CLOCK: string;
30
+ let COMMIT: string;
31
+ let ERROR: string;
32
+ let EXTERNAL_LINK: string;
33
+ let FILTER: string;
34
+ let INFO: string;
35
+ let HELP: string;
36
+ let MENU: string;
37
+ let MORE_VERTICAL: string;
38
+ let SORT: string;
39
+ let WARNING: string;
36
40
  }
37
- import PropTypes from "prop-types";
41
+ import PropTypes from 'prop-types';
38
42
  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";
@@ -5,14 +5,14 @@ export function Input({ className, size, ...restProps }: {
5
5
  }): JSX.Element;
6
6
  export namespace Input {
7
7
  namespace propTypes {
8
- const className: PropTypes.Requireable<string>;
9
- const size: PropTypes.Requireable<string>;
8
+ let className: PropTypes.Requireable<string>;
9
+ let size: PropTypes.Requireable<string>;
10
10
  }
11
11
  namespace defaultProps {
12
- const className_1: string;
12
+ let className_1: string;
13
13
  export { className_1 as className };
14
- const size_1: string;
14
+ let size_1: string;
15
15
  export { size_1 as size };
16
16
  }
17
17
  }
18
- import PropTypes from "prop-types";
18
+ import PropTypes from 'prop-types';
@@ -4,20 +4,20 @@ export function Loader({ className, size, ...restProps }: {
4
4
  size: any;
5
5
  }): JSX.Element;
6
6
  export namespace Loader {
7
- const SIZE_SMALL: string;
8
- const SIZE_MEDIUM: string;
9
- const SIZE_LARGE: string;
10
- const SIZES: string[];
7
+ let SIZE_SMALL: string;
8
+ let SIZE_MEDIUM: string;
9
+ let SIZE_LARGE: string;
10
+ let SIZES: string[];
11
11
  namespace defaultProps {
12
- export const className: string;
12
+ export let className: string;
13
13
  import size = Loader.SIZE_MEDIUM;
14
14
  export { size };
15
15
  }
16
16
  namespace propTypes {
17
- const className_1: PropTypes.Requireable<string>;
17
+ let className_1: PropTypes.Requireable<string>;
18
18
  export { className_1 as className };
19
- const size_1: PropTypes.Requireable<string>;
19
+ let size_1: PropTypes.Requireable<string>;
20
20
  export { size_1 as size };
21
21
  }
22
22
  }
23
- import PropTypes from "prop-types";
23
+ import PropTypes from 'prop-types';
@@ -1,17 +1,17 @@
1
1
  export function Skeleton(props: any): JSX.Element;
2
2
  export namespace Skeleton {
3
3
  namespace propTypes {
4
- const className: PropTypes.Requireable<string>;
5
- const as: PropTypes.Requireable<PropTypes.ReactComponentLike>;
6
- const block: PropTypes.Requireable<boolean>;
4
+ let className: PropTypes.Requireable<string>;
5
+ let as: PropTypes.Requireable<PropTypes.ReactComponentLike>;
6
+ let block: PropTypes.Requireable<boolean>;
7
7
  }
8
8
  namespace defaultProps {
9
- const className_1: string;
9
+ let className_1: string;
10
10
  export { className_1 as className };
11
- const as_1: string;
11
+ let as_1: string;
12
12
  export { as_1 as as };
13
- const block_1: boolean;
13
+ let block_1: boolean;
14
14
  export { block_1 as block };
15
15
  }
16
16
  }
17
- import PropTypes from "prop-types";
17
+ import PropTypes from 'prop-types';
@@ -1,24 +1,24 @@
1
1
  export function SortDropdown(props: any): JSX.Element;
2
2
  export namespace SortDropdown {
3
3
  namespace defaultProps {
4
- const className: string;
5
- const label: string;
4
+ let className: string;
5
+ let label: string;
6
6
  function onChange(): void;
7
- const field: string;
8
- const direction: string;
7
+ let field: string;
8
+ let direction: string;
9
9
  }
10
10
  namespace propTypes {
11
- const className_1: PropTypes.Requireable<string>;
11
+ let className_1: PropTypes.Requireable<string>;
12
12
  export { className_1 as className };
13
- const label_1: PropTypes.Requireable<string>;
13
+ let label_1: PropTypes.Requireable<string>;
14
14
  export { label_1 as label };
15
- export const fields: PropTypes.Validator<NonNullable<PropTypes.InferProps<{}>>>;
16
- const onChange_1: PropTypes.Requireable<(...args: any[]) => any>;
15
+ export let fields: PropTypes.Validator<NonNullable<PropTypes.InferProps<{}>>>;
16
+ let onChange_1: PropTypes.Requireable<(...args: any[]) => any>;
17
17
  export { onChange_1 as onChange };
18
- const field_1: PropTypes.Requireable<string>;
18
+ let field_1: PropTypes.Requireable<string>;
19
19
  export { field_1 as field };
20
- const direction_1: PropTypes.Requireable<string>;
20
+ let direction_1: PropTypes.Requireable<string>;
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 {};
@@ -4,16 +4,16 @@ export function Tabs({ className, ...restProps }: {
4
4
  }): JSX.Element;
5
5
  export namespace Tabs {
6
6
  export namespace defaultProps {
7
- const className: string;
7
+ let className: string;
8
8
  }
9
9
  export namespace propTypes {
10
- const className_1: PropTypes.Requireable<string>;
10
+ let className_1: PropTypes.Requireable<string>;
11
11
  export { className_1 as className };
12
- export const children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
12
+ export let children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
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;
@@ -22,18 +22,18 @@ declare function Item({ isTabActive, as: Component, className, ...restProps }: {
22
22
  }): JSX.Element;
23
23
  declare namespace Item {
24
24
  export namespace defaultProps_1 {
25
- export const isTabActive: boolean;
26
- const className_2: string;
25
+ export let isTabActive: boolean;
26
+ let className_2: string;
27
27
  export { className_2 as className };
28
- export const as: string;
28
+ export let as: string;
29
29
  }
30
30
  export { defaultProps_1 as defaultProps };
31
31
  export namespace propTypes_1 {
32
- const isTabActive_1: PropTypes.Requireable<boolean>;
32
+ let isTabActive_1: PropTypes.Requireable<boolean>;
33
33
  export { isTabActive_1 as isTabActive };
34
- const className_3: PropTypes.Requireable<string>;
34
+ let className_3: PropTypes.Requireable<string>;
35
35
  export { className_3 as className };
36
- const as_1: PropTypes.Requireable<PropTypes.ReactComponentLike>;
36
+ let as_1: PropTypes.Requireable<PropTypes.ReactComponentLike>;
37
37
  export { as_1 as as };
38
38
  }
39
39
  export { propTypes_1 as propTypes };
@@ -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 {};
@@ -1,15 +1,15 @@
1
1
  export function Toolbar(props: any): JSX.Element;
2
2
  export namespace Toolbar {
3
3
  namespace propTypes {
4
- const className: PropTypes.Requireable<string>;
5
- const children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
6
- const renderActions: PropTypes.Requireable<(...args: any[]) => any>;
4
+ let className: PropTypes.Requireable<string>;
5
+ let children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
6
+ let renderActions: PropTypes.Requireable<(...args: any[]) => any>;
7
7
  }
8
8
  namespace defaultProps {
9
- const className_1: string;
9
+ let className_1: string;
10
10
  export { className_1 as className };
11
- const renderActions_1: null;
11
+ let renderActions_1: null;
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,31 +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.DuplicatePackagesInsight = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const utils_1 = require("@bundle-stats/utils");
9
- const alert_1 = require("../../ui/alert");
10
- const component_link_1 = require("../component-link");
11
- const delta_1 = require("../delta");
12
- const duplicate_packages_insight_module_css_1 = __importDefault(require("./duplicate-packages-insight.module.css"));
13
- const AlertKindMap = new Map([
14
- [utils_1.InsightType.INFO, 'info'],
15
- [utils_1.InsightType.ERROR, 'danger'],
16
- [utils_1.InsightType.WARNING, 'warning'],
17
- ]);
18
- const DuplicatePackagesInsight = (props) => {
19
- const { type, data, summary, showDelta = true, customComponentLink: CustomComponentLink = component_link_1.ComponentLink, ...restProps } = props;
20
- const metric = (0, utils_1.getGlobalMetricType)('webpack.duplicatePackageCount');
21
- const metricRunInfo = (0, utils_1.getMetricRunInfo)(metric, summary.current, summary.baseline);
22
- const hasDuplicatePackages = metricRunInfo.value > 0 || (metricRunInfo && (metricRunInfo.delta !== 0));
23
- return (react_1.default.createElement(alert_1.Alert, { kind: AlertKindMap.get(type), ...restProps },
24
- react_1.default.createElement("span", { className: duplicate_packages_insight_module_css_1.default.message }, data.text),
25
- hasDuplicatePackages && (react_1.default.createElement("span", { className: duplicate_packages_insight_module_css_1.default.metric },
26
- metricRunInfo.value,
27
- showDelta && typeof metricRunInfo.delta !== 'undefined' && (react_1.default.createElement(delta_1.Delta, { className: duplicate_packages_insight_module_css_1.default.delta, inverted: true, displayValue: metricRunInfo.displayDelta, deltaType: metricRunInfo.deltaType })))),
28
- react_1.default.createElement("span", { className: duplicate_packages_insight_module_css_1.default.link }, hasDuplicatePackages ? (react_1.default.createElement(CustomComponentLink, { ...utils_1.BUNDLE_PACKAGES_DUPLICATE }, "View duplicate packages")) : (react_1.default.createElement(CustomComponentLink, { ...utils_1.BUNDLE_PACKAGES_COUNT }, "View packages")))));
29
- };
30
- exports.DuplicatePackagesInsight = DuplicatePackagesInsight;
31
- //# sourceMappingURL=duplicate-packages-insight.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"duplicate-packages-insight.js","sourceRoot":"","sources":["../../../src/components/duplicate-packages-insight/duplicate-packages-insight.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,+CAQ6B;AAE7B,0CAAuC;AACvC,sDAAkD;AAClD,oCAAiC;AAEjC,oHAA0D;AAU1D,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC;IAC3B,CAAC,mBAAW,CAAC,IAAI,EAAE,MAAM,CAAC;IAC1B,CAAC,mBAAW,CAAC,KAAK,EAAE,QAAQ,CAAC;IAC7B,CAAC,mBAAW,CAAC,OAAO,EAAE,SAAS,CAAC;CACjC,CAAC,CAAC;AAEI,MAAM,wBAAwB,GAAG,CAAC,KAAoC,EAAE,EAAE;IAC/E,MAAM,EACJ,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,SAAS,GAAG,IAAI,EAChB,mBAAmB,EAAE,mBAAmB,GAAG,8BAAa,EACxD,GAAG,SAAS,EACb,GAAG,KAAK,CAAC;IAEV,MAAM,MAAM,GAAG,IAAA,2BAAmB,EAAC,+BAA+B,CAAC,CAAC;IAEpE,MAAM,aAAa,GAAG,IAAA,wBAAgB,EACpC,MAAM,EACN,OAAO,CAAC,OAAO,EACf,OAAO,CAAC,QAAQ,CACjB,CAAC;IAEF,MAAM,oBAAoB,GAAG,aAAa,CAAC,KAAK,GAAG,CAAC,IAAI,CAAC,aAAa,IAAI,CAAC,aAAa,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC;IAEvG,OAAO,CACL,8BAAC,aAAK,IAAC,IAAI,EAAE,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,KAAM,SAAS;QAChD,wCAAM,SAAS,EAAE,+CAAG,CAAC,OAAO,IAAG,IAAI,CAAC,IAAI,CAAQ;QAC/C,oBAAoB,IAAI,CACvB,wCAAM,SAAS,EAAE,+CAAG,CAAC,MAAM;YACxB,aAAa,CAAC,KAAK;YACnB,SAAS,IAAI,OAAO,aAAa,CAAC,KAAK,KAAK,WAAW,IAAI,CAC1D,8BAAC,aAAK,IACJ,SAAS,EAAE,+CAAG,CAAC,KAAK,EACpB,QAAQ,QACR,YAAY,EAAE,aAAa,CAAC,YAAsB,EAClD,SAAS,EAAE,aAAa,CAAC,SAAmB,GAC5C,CACH,CACI,CACR;QACD,wCAAM,SAAS,EAAE,+CAAG,CAAC,IAAI,IACtB,oBAAoB,CAAC,CAAC,CAAC,CACtB,8BAAC,mBAAmB,OAAK,iCAAgC,8BAEnC,CACvB,CAAC,CAAC,CAAC,CACF,8BAAC,mBAAmB,OAAK,6BAA4B,oBAE/B,CACvB,CACI,CACD,CACT,CAAC;AACJ,CAAC,CAAC;AAjDW,QAAA,wBAAwB,4BAiDnC"}