@bundle-stats/ui 4.22.1 → 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.
Files changed (93) hide show
  1. package/lib/chart-colors.json +1 -1
  2. package/lib/components/asset-meta-tag/asset-meta-tag.module.css +10 -3
  3. package/lib/components/browsertime-table/browsertime-table.js +2 -2
  4. package/lib/components/browsertime-table/browsertime-table.js.map +1 -1
  5. package/lib/components/bundle-assets/bundle-assets.utils.js.map +1 -1
  6. package/lib/components/bundle-modules/bundle-modules.utils.js.map +1 -1
  7. package/lib/components/bundle-modules/index.js.map +1 -1
  8. package/lib/components/insight-icon/insight-icon.module.css +0 -1
  9. package/lib/components/lighthouse-table/lighthouse-table.js +2 -2
  10. package/lib/components/lighthouse-table/lighthouse-table.js.map +1 -1
  11. package/lib/components/metrics-table-export/metrics-table-export.js.map +1 -1
  12. package/lib/components/metrics-table-header/metrics-table-header.module.css +0 -1
  13. package/lib/components/metrics-treemap/metrics-treemap.module.css +2 -2
  14. package/lib/components/run-info/run-info.module.css +10 -4
  15. package/lib/config.json +1 -1
  16. package/lib/css/default.css +7 -2
  17. package/lib/css/variables.css +13 -5
  18. package/lib/hooks/rows-sort.js.map +1 -1
  19. package/lib/ui/button/button.module.css +0 -1
  20. package/lib/ui/dialog/dialog.module.css +4 -1
  21. package/lib/ui/file-name/file-name.js +1 -1
  22. package/lib/ui/file-name/file-name.js.map +1 -1
  23. package/lib/ui/filters/filters.utils.js.map +1 -1
  24. package/lib/ui/filters/index.js.map +1 -1
  25. package/lib/ui/table/table.module.css +1 -2
  26. package/lib/ui/textarea/textarea.module.css +1 -1
  27. package/lib/ui/toolbar/toolbar.module.css +4 -2
  28. package/lib-esm/chart-colors.json +1 -1
  29. package/lib-esm/components/asset-meta-tag/asset-meta-tag.module.css +10 -3
  30. package/lib-esm/components/browsertime-table/browsertime-table.js +2 -2
  31. package/lib-esm/components/browsertime-table/browsertime-table.js.map +1 -1
  32. package/lib-esm/components/bundle-assets/bundle-assets.utils.js.map +1 -1
  33. package/lib-esm/components/bundle-modules/bundle-modules.utils.js.map +1 -1
  34. package/lib-esm/components/bundle-modules/index.js.map +1 -1
  35. package/lib-esm/components/insight-icon/insight-icon.module.css +0 -1
  36. package/lib-esm/components/lighthouse-table/lighthouse-table.js +2 -2
  37. package/lib-esm/components/lighthouse-table/lighthouse-table.js.map +1 -1
  38. package/lib-esm/components/metrics-table-export/metrics-table-export.js.map +1 -1
  39. package/lib-esm/components/metrics-table-header/metrics-table-header.module.css +0 -1
  40. package/lib-esm/components/metrics-treemap/metrics-treemap.module.css +2 -2
  41. package/lib-esm/components/run-info/run-info.module.css +10 -4
  42. package/lib-esm/config.json +1 -1
  43. package/lib-esm/css/default.css +7 -2
  44. package/lib-esm/css/variables.css +13 -5
  45. package/lib-esm/hooks/rows-sort.js.map +1 -1
  46. package/lib-esm/ui/button/button.module.css +0 -1
  47. package/lib-esm/ui/dialog/dialog.module.css +4 -1
  48. package/lib-esm/ui/file-name/file-name.js +1 -1
  49. package/lib-esm/ui/file-name/file-name.js.map +1 -1
  50. package/lib-esm/ui/filters/filters.utils.js.map +1 -1
  51. package/lib-esm/ui/filters/index.js.map +1 -1
  52. package/lib-esm/ui/table/table.module.css +1 -2
  53. package/lib-esm/ui/textarea/textarea.module.css +1 -1
  54. package/lib-esm/ui/toolbar/toolbar.module.css +4 -2
  55. package/package.json +6 -7
  56. package/src/app/app-gladys.stories.tsx +2 -2
  57. package/src/app/app-home-assistant.stories.tsx +2 -2
  58. package/src/app/app-outline.stories.tsx +2 -2
  59. package/src/app/app-trans-masc-futures.stories.tsx +2 -2
  60. package/src/app/app.stories.tsx +2 -2
  61. package/src/chart-colors.json +1 -1
  62. package/src/components/asset-info/asset-info.stories.tsx +1 -1
  63. package/src/components/asset-meta-tag/asset-meta-tag.module.css +10 -3
  64. package/src/components/browsertime-table/browsertime-table.jsx +2 -11
  65. package/src/components/bundle-assets/bundle-assets.utils.ts +8 -8
  66. package/src/components/bundle-modules/bundle-modules.utils.ts +4 -8
  67. package/src/components/bundle-modules/index.tsx +18 -19
  68. package/src/components/entry-info/entry-info.stories.tsx +1 -1
  69. package/src/components/insight-icon/insight-icon.module.css +0 -1
  70. package/src/components/lighthouse-table/lighthouse-table.jsx +2 -11
  71. package/src/components/metrics-table-export/metrics-table-export.tsx +1 -1
  72. package/src/components/metrics-table-header/metrics-table-header.module.css +0 -1
  73. package/src/components/metrics-table-options/metrics-table-options.stories.tsx +1 -1
  74. package/src/components/metrics-treemap/metrics-treemap.module.css +2 -2
  75. package/src/components/metrics-treemap/metrics-treemap.stories.tsx +1 -1
  76. package/src/components/module-info/module-info.stories.tsx +1 -1
  77. package/src/components/run-info/run-info.module.css +10 -4
  78. package/src/config.json +1 -1
  79. package/src/css/default.css +7 -2
  80. package/src/css/variables.css +13 -5
  81. package/src/hooks/rows-sort.ts +5 -5
  82. package/src/types.d.ts +1 -1
  83. package/src/ui/button/button.module.css +0 -1
  84. package/src/ui/dialog/dialog.module.css +4 -1
  85. package/src/ui/file-name/file-name.jsx +2 -4
  86. package/src/ui/filters/filters.utils.ts +0 -1
  87. package/src/ui/filters/index.tsx +4 -5
  88. package/src/ui/table/table.module.css +1 -2
  89. package/src/ui/textarea/textarea.module.css +1 -1
  90. package/src/ui/toolbar/toolbar.module.css +4 -2
  91. package/src/utils/components.tsx +1 -1
  92. package/types/ui/file-name/file-name.d.ts +1 -1
  93. package/types.d.ts +4 -0
package/src/config.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "appName": "RelativeCI",
3
3
  "siteUrl": "https://relative-ci.com",
4
4
  "gitHubUrl": "https://github.com/relative-ci/bundle-stats",
5
- "documentation" : {
5
+ "documentation": {
6
6
  "assets": "https://relative-ci.com/documentation/metrics-and-data#assets",
7
7
  "modules": "https://relative-ci.com/documentation/metrics-and-data#modules",
8
8
  "packages": "https://relative-ci.com/documentation/metrics-and-data#packages"
@@ -1,4 +1,4 @@
1
- @import url("~modern-css-reset/dist/reset.css");
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, h2, h3, h4, h5, h6 {
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);
@@ -1,6 +1,9 @@
1
1
  :root {
2
- --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
3
- --font-family-fixed: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
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: #2B76D4;
134
+ --color-branding-light: #2b76d4;
132
135
  --color-branding: #1a477f;
133
- --color-branding-dark: #09182A;
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(transparent 10%, currentColor 10.1%, currentColor 89.9%, transparent 90%);
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
 
@@ -72,11 +72,11 @@ export const useRowsSort = <TRow>({
72
72
  const orderedRows = useMemo(
73
73
  () =>
74
74
  orderBy(
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
- ),
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
 
@@ -290,7 +290,6 @@ a.root {
290
290
  border-color: var(--color-outline-success-dark);
291
291
  }
292
292
 
293
-
294
293
  /**
295
294
  * Padding variation
296
295
  */
@@ -58,7 +58,10 @@
58
58
 
59
59
  .content {
60
60
  width: 100%;
61
- max-height: calc(100vh - 2 * var(--space-medium) - 2 * var(--dialog-padding) - var(--dialog-header-height) - var(--dialog-vspace));
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 | PropTypes.node,
25
+ name: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
28
26
  };
@@ -22,7 +22,6 @@ export const getGroupFiltersLabelSuffix = (filters: FilterGroupFieldData['childr
22
22
  return LABELS.ALL;
23
23
  }
24
24
 
25
- // eslint-disable-next-line no-unused-vars
26
25
  const checkedFilterLabels = checkedFilters.map(({ label }) => label);
27
26
 
28
27
  let suffix = '';
@@ -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
- extends Omit<
11
- React.ComponentProps<typeof BaseComponent>,
12
- 'onChange' | 'filters' | 'values' | 'toggleFilter' | 'toggleFilters'
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
  }
@@ -41,8 +41,7 @@
41
41
 
42
42
  .root tbody td a:hover,
43
43
  .root tbody td a:focus,
44
- .root tbody td a:active
45
- {
44
+ .root tbody td a:active {
46
45
  color: var(--color-primary);
47
46
  text-decoration: underline;
48
47
  }
@@ -31,7 +31,7 @@
31
31
  transition: var(--transition-out);
32
32
  }
33
33
 
34
- .root[readonly=""] {
34
+ .root[readonly=''] {
35
35
  color: var(--color-text-light);
36
36
  }
37
37
 
@@ -1,6 +1,8 @@
1
- .root { }
1
+ .root {
2
+ }
2
3
 
3
- .content {}
4
+ .content {
5
+ }
4
6
 
5
7
  .actions {
6
8
  margin-top: var(--space-xsmall);
@@ -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), // eslint-disable-line react/prop-types
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: number;
17
+ let name_1: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
18
18
  export { name_1 as name };
19
19
  }
20
20
  }
package/types.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ declare module '*.module.css' {
2
+ const classes: { readonly [key: string]: string };
3
+ export default classes;
4
+ }