@bundle-stats/ui 4.22.2-beta.0 → 4.22.2-beta.1
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/chart-colors.json +1 -1
- package/lib/components/asset-meta-tag/asset-meta-tag.module.css +10 -3
- package/lib/components/browsertime-table/browsertime-table.js +2 -2
- package/lib/components/browsertime-table/browsertime-table.js.map +1 -1
- package/lib/components/bundle-assets/bundle-assets.utils.js.map +1 -1
- package/lib/components/bundle-modules/bundle-modules.utils.js.map +1 -1
- package/lib/components/bundle-modules/index.js.map +1 -1
- package/lib/components/insight-icon/insight-icon.module.css +0 -1
- package/lib/components/lighthouse-table/lighthouse-table.js +2 -2
- package/lib/components/lighthouse-table/lighthouse-table.js.map +1 -1
- package/lib/components/metrics-table-export/metrics-table-export.js.map +1 -1
- package/lib/components/metrics-table-header/metrics-table-header.module.css +0 -1
- package/lib/components/metrics-treemap/metrics-treemap.module.css +2 -2
- package/lib/components/run-info/run-info.module.css +10 -4
- package/lib/config.json +1 -1
- package/lib/css/default.css +7 -2
- package/lib/css/variables.css +13 -5
- package/lib/hooks/rows-sort.js.map +1 -1
- package/lib/ui/button/button.module.css +0 -1
- package/lib/ui/dialog/dialog.module.css +4 -1
- package/lib/ui/file-name/file-name.js +1 -1
- package/lib/ui/file-name/file-name.js.map +1 -1
- package/lib/ui/filters/filters.utils.js.map +1 -1
- package/lib/ui/filters/index.js.map +1 -1
- package/lib/ui/table/table.module.css +1 -2
- package/lib/ui/textarea/textarea.module.css +1 -1
- package/lib/ui/toolbar/toolbar.module.css +4 -2
- package/lib-esm/chart-colors.json +1 -1
- package/lib-esm/components/asset-meta-tag/asset-meta-tag.module.css +10 -3
- package/lib-esm/components/browsertime-table/browsertime-table.js +2 -2
- package/lib-esm/components/browsertime-table/browsertime-table.js.map +1 -1
- package/lib-esm/components/bundle-assets/bundle-assets.utils.js.map +1 -1
- package/lib-esm/components/bundle-modules/bundle-modules.utils.js.map +1 -1
- package/lib-esm/components/bundle-modules/index.js.map +1 -1
- package/lib-esm/components/insight-icon/insight-icon.module.css +0 -1
- package/lib-esm/components/lighthouse-table/lighthouse-table.js +2 -2
- package/lib-esm/components/lighthouse-table/lighthouse-table.js.map +1 -1
- package/lib-esm/components/metrics-table-export/metrics-table-export.js.map +1 -1
- package/lib-esm/components/metrics-table-header/metrics-table-header.module.css +0 -1
- package/lib-esm/components/metrics-treemap/metrics-treemap.module.css +2 -2
- package/lib-esm/components/run-info/run-info.module.css +10 -4
- package/lib-esm/config.json +1 -1
- package/lib-esm/css/default.css +7 -2
- package/lib-esm/css/variables.css +13 -5
- package/lib-esm/hooks/rows-sort.js.map +1 -1
- package/lib-esm/ui/button/button.module.css +0 -1
- package/lib-esm/ui/dialog/dialog.module.css +4 -1
- package/lib-esm/ui/file-name/file-name.js +1 -1
- package/lib-esm/ui/file-name/file-name.js.map +1 -1
- package/lib-esm/ui/filters/filters.utils.js.map +1 -1
- package/lib-esm/ui/filters/index.js.map +1 -1
- package/lib-esm/ui/table/table.module.css +1 -2
- package/lib-esm/ui/textarea/textarea.module.css +1 -1
- package/lib-esm/ui/toolbar/toolbar.module.css +4 -2
- package/package.json +4 -4
- package/src/app/app-gladys.stories.tsx +2 -2
- package/src/app/app-home-assistant.stories.tsx +2 -2
- package/src/app/app-outline.stories.tsx +2 -2
- package/src/app/app-trans-masc-futures.stories.tsx +2 -2
- package/src/app/app.stories.tsx +2 -2
- package/src/chart-colors.json +1 -1
- package/src/components/asset-info/asset-info.stories.tsx +1 -1
- package/src/components/asset-meta-tag/asset-meta-tag.module.css +10 -3
- package/src/components/browsertime-table/browsertime-table.jsx +2 -11
- package/src/components/bundle-assets/bundle-assets.utils.ts +8 -8
- package/src/components/bundle-modules/bundle-modules.utils.ts +4 -8
- package/src/components/bundle-modules/index.tsx +18 -19
- package/src/components/entry-info/entry-info.stories.tsx +1 -1
- package/src/components/insight-icon/insight-icon.module.css +0 -1
- package/src/components/lighthouse-table/lighthouse-table.jsx +2 -11
- package/src/components/metrics-table-export/metrics-table-export.tsx +1 -1
- package/src/components/metrics-table-header/metrics-table-header.module.css +0 -1
- package/src/components/metrics-table-options/metrics-table-options.stories.tsx +1 -1
- package/src/components/metrics-treemap/metrics-treemap.module.css +2 -2
- package/src/components/metrics-treemap/metrics-treemap.stories.tsx +1 -1
- package/src/components/module-info/module-info.stories.tsx +1 -1
- package/src/components/run-info/run-info.module.css +10 -4
- package/src/config.json +1 -1
- package/src/css/default.css +7 -2
- package/src/css/variables.css +13 -5
- package/src/hooks/rows-sort.ts +5 -5
- package/src/types.d.ts +1 -1
- package/src/ui/button/button.module.css +0 -1
- package/src/ui/dialog/dialog.module.css +4 -1
- package/src/ui/file-name/file-name.jsx +2 -4
- package/src/ui/filters/filters.utils.ts +0 -1
- package/src/ui/filters/index.tsx +4 -5
- package/src/ui/table/table.module.css +1 -2
- package/src/ui/textarea/textarea.module.css +1 -1
- package/src/ui/toolbar/toolbar.module.css +4 -2
- package/src/utils/components.tsx +1 -1
- package/types/ui/file-name/file-name.d.ts +1 -1
package/src/css/default.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import url(
|
|
1
|
+
@import url('~modern-css-reset/dist/reset.css');
|
|
2
2
|
|
|
3
3
|
/** modern-css-reset updates */
|
|
4
4
|
pre,
|
|
@@ -19,7 +19,12 @@ body {
|
|
|
19
19
|
line-height: var(--line-height);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
h1,
|
|
22
|
+
h1,
|
|
23
|
+
h2,
|
|
24
|
+
h3,
|
|
25
|
+
h4,
|
|
26
|
+
h5,
|
|
27
|
+
h6 {
|
|
23
28
|
color: var(--color-heading);
|
|
24
29
|
font-weight: 500;
|
|
25
30
|
line-height: var(--line-height-heading);
|
package/src/css/variables.css
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--font-family:
|
|
3
|
-
|
|
2
|
+
--font-family:
|
|
3
|
+
system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu,
|
|
4
|
+
Cantarell, 'Helvetica Neue', sans-serif;
|
|
5
|
+
--font-family-fixed:
|
|
6
|
+
SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
|
|
4
7
|
|
|
5
8
|
/* Spaces */
|
|
6
9
|
--space-xxxsmall: 4px;
|
|
@@ -128,9 +131,9 @@
|
|
|
128
131
|
--color-light: #fff;
|
|
129
132
|
|
|
130
133
|
/* Functional color variables */
|
|
131
|
-
--color-branding-light: #
|
|
134
|
+
--color-branding-light: #2b76d4;
|
|
132
135
|
--color-branding: #1a477f;
|
|
133
|
-
--color-branding-dark: #
|
|
136
|
+
--color-branding-dark: #09182a;
|
|
134
137
|
|
|
135
138
|
--color-text-ultra-light: var(--color-gray-ultra-light);
|
|
136
139
|
--color-text-light: var(--color-gray-light);
|
|
@@ -202,7 +205,12 @@
|
|
|
202
205
|
--radius-medium: 7px;
|
|
203
206
|
--radius-large: 9px;
|
|
204
207
|
|
|
205
|
-
--skeleton-inline-background: linear-gradient(
|
|
208
|
+
--skeleton-inline-background: linear-gradient(
|
|
209
|
+
transparent 10%,
|
|
210
|
+
currentColor 10.1%,
|
|
211
|
+
currentColor 89.9%,
|
|
212
|
+
transparent 90%
|
|
213
|
+
);
|
|
206
214
|
--skeleton-block-background: currentColor;
|
|
207
215
|
--skeleton-opacity: 0.06;
|
|
208
216
|
|
package/src/hooks/rows-sort.ts
CHANGED
|
@@ -72,11 +72,11 @@ export const useRowsSort = <TRow>({
|
|
|
72
72
|
const orderedRows = useMemo(
|
|
73
73
|
() =>
|
|
74
74
|
orderBy(
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
rows,
|
|
76
|
+
getSortFn(sort.field, getCustomSort),
|
|
77
|
+
// if direction is empty (reset), sort asc
|
|
78
|
+
sort.direction !== '' ? sort.direction : (SORT.ASC as any),
|
|
79
|
+
),
|
|
80
80
|
[rows, sort],
|
|
81
81
|
);
|
|
82
82
|
|
package/src/types.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ type FilterGroupFieldData = {
|
|
|
21
21
|
children: Array<ChildFilterFieldData>;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
type FilterFieldsData = Record<string, FilterFieldData | FilterGroupFieldData>;
|
|
24
|
+
export type FilterFieldsData = Record<string, FilterFieldData | FilterGroupFieldData>;
|
|
25
25
|
|
|
26
26
|
export type ReportMetricAssetRowMetaStatus = 'added' | 'removed';
|
|
27
27
|
|
|
@@ -58,7 +58,10 @@
|
|
|
58
58
|
|
|
59
59
|
.content {
|
|
60
60
|
width: 100%;
|
|
61
|
-
max-height: calc(
|
|
61
|
+
max-height: calc(
|
|
62
|
+
100vh - 2 * var(--space-medium) - 2 * var(--dialog-padding) - var(--dialog-header-height) -
|
|
63
|
+
var(--dialog-vspace)
|
|
64
|
+
);
|
|
62
65
|
padding-bottom: 0.3em; /* extra space to compensate for the title line-height and allow to show focus state correctly on buttons */
|
|
63
66
|
overflow: auto;
|
|
64
67
|
}
|
|
@@ -5,9 +5,7 @@ import cx from 'classnames';
|
|
|
5
5
|
import css from './file-name.module.css';
|
|
6
6
|
|
|
7
7
|
export const FileName = ({ className, as: Component, name }) => (
|
|
8
|
-
<Component className={cx(css.root, className)}>
|
|
9
|
-
{name}
|
|
10
|
-
</Component>
|
|
8
|
+
<Component className={cx(css.root, className)}>{name}</Component>
|
|
11
9
|
);
|
|
12
10
|
|
|
13
11
|
FileName.defaultProps = {
|
|
@@ -24,5 +22,5 @@ FileName.propTypes = {
|
|
|
24
22
|
as: PropTypes.elementType,
|
|
25
23
|
|
|
26
24
|
/** File name source */
|
|
27
|
-
name: PropTypes.string
|
|
25
|
+
name: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
28
26
|
};
|
package/src/ui/filters/index.tsx
CHANGED
|
@@ -6,11 +6,10 @@ import { FilterFieldsData } from '../../types';
|
|
|
6
6
|
import { getInitialValues } from './filters.utils';
|
|
7
7
|
import { Filters as BaseComponent } from './filters';
|
|
8
8
|
|
|
9
|
-
interface FiltersProps
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
> {
|
|
9
|
+
interface FiltersProps extends Omit<
|
|
10
|
+
React.ComponentProps<typeof BaseComponent>,
|
|
11
|
+
'onChange' | 'filters' | 'values' | 'toggleFilter' | 'toggleFilters'
|
|
12
|
+
> {
|
|
14
13
|
onChange?: (newValues: Record<string, boolean>) => void;
|
|
15
14
|
filters: FilterFieldsData;
|
|
16
15
|
}
|
package/src/utils/components.tsx
CHANGED
|
@@ -14,6 +14,6 @@ export const getRenderChildWithClassName = (className: string) => (child: any) =
|
|
|
14
14
|
|
|
15
15
|
return React.cloneElement(child, {
|
|
16
16
|
...props,
|
|
17
|
-
className: cx(className, props.className),
|
|
17
|
+
className: cx(className, props.className),
|
|
18
18
|
});
|
|
19
19
|
};
|
|
@@ -14,7 +14,7 @@ export namespace FileName {
|
|
|
14
14
|
export { className_1 as className };
|
|
15
15
|
let as_1: PropTypes.Requireable<PropTypes.ReactComponentLike>;
|
|
16
16
|
export { as_1 as as };
|
|
17
|
-
let name_1:
|
|
17
|
+
let name_1: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
18
18
|
export { name_1 as name };
|
|
19
19
|
}
|
|
20
20
|
}
|