@bundle-stats/ui 4.2.5-beta.1 → 4.2.5-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.
- package/lib/app/app.js +4 -4
- package/lib/app/app.js.map +1 -1
- package/lib/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.js +2 -8
- package/lib/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.js.map +1 -1
- package/lib/components/index.js +3 -1
- package/lib/components/index.js.map +1 -1
- package/lib/components/metric-run-info/metric-run-info.js +52 -33
- package/lib/components/metric-run-info/metric-run-info.js.map +1 -1
- package/lib/components/metric-run-info/metric-run-info.module.css +14 -36
- package/lib/components/metrics-table-title/metrics-table-title.module.css +1 -0
- package/lib/components/run-info/index.js +18 -0
- package/lib/components/run-info/index.js.map +1 -0
- package/lib/components/run-info/run-info.js +70 -0
- package/lib/components/run-info/run-info.js.map +1 -0
- package/lib/components/run-info/run-info.module.css +41 -0
- package/lib/components/summary/summary.js +5 -45
- package/lib/components/summary/summary.js.map +1 -1
- package/lib-esm/app/app.js +4 -4
- package/lib-esm/app/app.js.map +1 -1
- package/lib-esm/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.js +2 -8
- package/lib-esm/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.js.map +1 -1
- package/lib-esm/components/index.js +1 -0
- package/lib-esm/components/index.js.map +1 -1
- package/lib-esm/components/metric-run-info/metric-run-info.js +29 -33
- package/lib-esm/components/metric-run-info/metric-run-info.js.map +1 -1
- package/lib-esm/components/metric-run-info/metric-run-info.module.css +14 -36
- package/lib-esm/components/metrics-table-title/metrics-table-title.module.css +1 -0
- package/lib-esm/components/run-info/index.js +2 -0
- package/lib-esm/components/run-info/index.js.map +1 -0
- package/lib-esm/components/run-info/run-info.js +40 -0
- package/lib-esm/components/run-info/run-info.js.map +1 -0
- package/lib-esm/components/run-info/run-info.module.css +41 -0
- package/lib-esm/components/summary/summary.js +6 -23
- package/lib-esm/components/summary/summary.js.map +1 -1
- package/package.json +6 -6
- package/src/app/app.jsx +4 -0
- package/src/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.jsx +5 -10
- package/src/components/index.js +1 -0
- package/src/components/metric/metric.tsx +1 -1
- package/src/components/metric-run-info/metric-run-info.module.css +14 -36
- package/src/components/metric-run-info/metric-run-info.stories.tsx +14 -29
- package/src/components/metric-run-info/metric-run-info.tsx +68 -85
- package/src/components/metrics-table-title/metrics-table-title.module.css +1 -0
- package/src/components/run-info/index.ts +1 -0
- package/src/components/run-info/run-info.module.css +41 -0
- package/src/components/run-info/run-info.stories.tsx +49 -0
- package/src/components/run-info/run-info.tsx +106 -0
- package/src/components/summary/summary.stories.tsx +1 -0
- package/src/components/summary/summary.tsx +41 -62
- package/types/components/index.d.ts +1 -0
- package/types/components/metric/metric.d.ts +1 -1
- package/types/components/metric-run-info/metric-run-info.d.ts +10 -11
- package/types/components/run-info/index.d.ts +1 -0
- package/types/components/run-info/run-info.d.ts +15 -0
- package/types/components/summary/summary.d.ts +14 -4
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MetricRunInfoProps } from '../metric-run-info';
|
|
3
|
+
interface SummaryItemProps {
|
|
4
|
+
metricId: string;
|
|
5
|
+
data?: Record<string, SummaryItemData> | null;
|
|
6
|
+
customLink: React.ElementType;
|
|
7
|
+
size?: MetricRunInfoProps['size'];
|
|
8
|
+
loading: boolean;
|
|
9
|
+
showDelta: boolean;
|
|
10
|
+
showBaseline: boolean;
|
|
11
|
+
}
|
|
3
12
|
interface SummaryItemData {
|
|
4
13
|
current: number;
|
|
5
14
|
baseline: number;
|
|
@@ -7,10 +16,11 @@ interface SummaryItemData {
|
|
|
7
16
|
interface SummaryProps {
|
|
8
17
|
size?: MetricRunInfoProps['size'];
|
|
9
18
|
keys?: Array<string>;
|
|
10
|
-
data?:
|
|
19
|
+
data?: SummaryItemProps['data'];
|
|
11
20
|
loading?: boolean;
|
|
12
|
-
showSummaryItemDelta?:
|
|
13
|
-
|
|
21
|
+
showSummaryItemDelta?: SummaryItemProps['showDelta'];
|
|
22
|
+
showSummaryItemBaseline?: SummaryItemProps['showBaseline'];
|
|
23
|
+
summaryItemLink?: SummaryItemProps['customLink'];
|
|
14
24
|
}
|
|
15
|
-
export declare const Summary: ({ className, size, keys, data, loading, showSummaryItemDelta, summaryItemLink, }: SummaryProps & React.ComponentProps<'div'>) => JSX.Element;
|
|
25
|
+
export declare const Summary: ({ className, size, keys, data, loading, showSummaryItemDelta, showSummaryItemBaseline, summaryItemLink, }: SummaryProps & React.ComponentProps<'div'>) => JSX.Element;
|
|
16
26
|
export {};
|