@bundle-stats/ui 3.2.1-beta.8 → 3.2.2
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/CHANGELOG.md +20 -1
- package/lib/app/app.stories.js +8 -1
- package/lib/assets/icons/arrow-right-circle.svg +1 -0
- package/lib/assets/icons/close.svg +1 -1
- package/lib/assets/icons.svg +42 -1
- package/lib/components/browsertime-table/browsertime-table.stories.js +1 -0
- package/lib/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.js +17 -18
- package/lib/components/bundle-assets-totals-table/bundle-assets-totals-table.stories.js +39 -43
- package/lib/components/job-meta/job-meta.js +1 -1
- package/lib/components/summary/summary.js +13 -22
- package/lib/components/summary/summary.module.css +31 -14
- package/lib/components/summary-item/summary-item.js +9 -9
- package/lib/components/summary-item/summary-item.module.css +3 -9
- package/lib/components/summary-item/summary-item.stories.js +35 -18
- package/lib/css/variables.css +15 -11
- package/lib/hooks/search-params.js +1 -1
- package/lib/layout/box/box.js +2 -2
- package/lib/layout/stack/stack.js +13 -3
- package/lib/ui/icon/icon.js +1 -0
- package/lib/ui/icon/icon.stories.js +40 -22
- package/lib/ui/popover/popover.js +2 -2
- package/lib/ui/popover/popover.module.css +2 -1
- package/lib/ui/tooltip/tooltip.module.css +1 -0
- package/lib-esm/app/app.stories.js +8 -1
- package/lib-esm/assets/icons/arrow-right-circle.svg +1 -0
- package/lib-esm/assets/icons/close.svg +1 -1
- package/lib-esm/assets/icons.svg +42 -1
- package/lib-esm/components/browsertime-table/browsertime-table.stories.js +2 -1
- package/lib-esm/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.js +14 -14
- package/lib-esm/components/bundle-assets-totals-table/bundle-assets-totals-table.stories.js +28 -21
- package/lib-esm/components/job-meta/job-meta.js +1 -1
- package/lib-esm/components/summary/summary.js +12 -17
- package/lib-esm/components/summary/summary.module.css +31 -14
- package/lib-esm/components/summary-item/summary-item.js +9 -9
- package/lib-esm/components/summary-item/summary-item.module.css +3 -9
- package/lib-esm/components/summary-item/summary-item.stories.js +14 -16
- package/lib-esm/css/variables.css +15 -11
- package/lib-esm/hooks/search-params.js +1 -1
- package/lib-esm/layout/box/box.js +2 -2
- package/lib-esm/layout/stack/stack.js +6 -3
- package/lib-esm/ui/icon/icon.js +1 -0
- package/lib-esm/ui/icon/icon.stories.js +22 -11
- package/lib-esm/ui/popover/popover.js +2 -2
- package/lib-esm/ui/popover/popover.module.css +2 -1
- package/lib-esm/ui/tooltip/tooltip.module.css +1 -0
- package/package.json +15 -15
- package/src/assets/icons/arrow-right-circle.svg +1 -0
- package/src/assets/icons/close.svg +1 -1
- package/src/assets/icons.svg +42 -1
- package/src/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.jsx +15 -15
- package/src/components/job-meta/job-meta.jsx +1 -3
- package/src/components/summary/summary.jsx +19 -22
- package/src/components/summary/summary.module.css +31 -14
- package/src/components/summary-item/summary-item.jsx +13 -22
- package/src/components/summary-item/summary-item.module.css +3 -9
- package/src/css/variables.css +15 -11
- package/src/hooks/search-params.js +1 -1
- package/src/layout/box/box.jsx +1 -1
- package/src/layout/stack/stack.jsx +2 -2
- package/src/ui/icon/icon.jsx +1 -0
- package/src/ui/popover/popover.jsx +3 -3
- package/src/ui/popover/popover.module.css +2 -1
- package/src/ui/tooltip/tooltip.module.css +1 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
.title {
|
|
2
|
-
margin: 0;
|
|
3
2
|
color: var(--color-text-ultra-light);
|
|
4
3
|
font-weight: bold;
|
|
5
4
|
font-size: var(--size-xsmall);
|
|
@@ -31,20 +30,20 @@
|
|
|
31
30
|
display: block;
|
|
32
31
|
color: var(--color-heading);
|
|
33
32
|
font-size: var(--size-large);
|
|
34
|
-
line-height:
|
|
33
|
+
line-height: var(--space-medium);
|
|
35
34
|
white-space: nowrap;
|
|
36
35
|
font-weight: bold;
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
.delta {
|
|
40
|
-
margin: var(--space-xxxsmall) 0 0;
|
|
41
39
|
font-size: var(--size-small);
|
|
40
|
+
line-height: var(--space-medium);
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
.baselineMetric {
|
|
45
44
|
color: var(--color-text-light);
|
|
46
45
|
font-size: var(--size-small);
|
|
47
|
-
line-height:
|
|
46
|
+
line-height: var(--space-small);
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
/* Loading state */
|
|
@@ -60,9 +59,4 @@
|
|
|
60
59
|
.large .currentMetric {
|
|
61
60
|
font-size: var(--size-xxxlarge);
|
|
62
61
|
line-height: var(--space-medium);
|
|
63
|
-
min-height: var(--space-medium);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.large .baselineMetric {
|
|
67
|
-
font-size: var(--size-medium);
|
|
68
62
|
}
|
package/src/css/variables.css
CHANGED
|
@@ -27,20 +27,20 @@
|
|
|
27
27
|
|
|
28
28
|
/*
|
|
29
29
|
* Color scheme:
|
|
30
|
-
* http://mcg.mbitson.com/#!?mcgpalette0=%23dd555e&mcgpalette1=%2363bf5e&mcgpalette2=%23f7e37d&mcgpalette3=%
|
|
30
|
+
* http://mcg.mbitson.com/#!?mcgpalette0=%23dd555e&mcgpalette1=%2363bf5e&mcgpalette2=%23f7e37d&mcgpalette3=%23636568&mcgpalette4=%233385d6&themename=mcgtheme
|
|
31
31
|
* https://coolors.co/3385d6-dd555e-63bf5e-f7e37d-192339
|
|
32
32
|
*/
|
|
33
33
|
--color-gray-25: #fafafa;
|
|
34
|
-
--color-gray-50: #
|
|
35
|
-
--color-gray-100: #
|
|
36
|
-
--color-gray-200: #
|
|
37
|
-
--color-gray-300: #
|
|
38
|
-
--color-gray-400: #
|
|
39
|
-
--color-gray-500: #
|
|
40
|
-
--color-gray-600: #
|
|
41
|
-
--color-gray-700: #
|
|
42
|
-
--color-gray-800: #
|
|
43
|
-
--color-gray-900: #
|
|
34
|
+
--color-gray-50: #eceded;
|
|
35
|
+
--color-gray-100: #d0d1d2;
|
|
36
|
+
--color-gray-200: #b1b2b4;
|
|
37
|
+
--color-gray-300: #929395;
|
|
38
|
+
--color-gray-400: #7a7c7f;
|
|
39
|
+
--color-gray-500: #636568;
|
|
40
|
+
--color-gray-600: #5b5d60;
|
|
41
|
+
--color-gray-700: #515355;
|
|
42
|
+
--color-gray-800: #47494b;
|
|
43
|
+
--color-gray-900: #35373a;
|
|
44
44
|
|
|
45
45
|
--color-gray-ultra-light: var(--color-gray-200);
|
|
46
46
|
--color-gray-light: var(--color-gray-300);
|
|
@@ -181,6 +181,10 @@
|
|
|
181
181
|
--layer-high: 1000;
|
|
182
182
|
--layer-xhigh: 10000;
|
|
183
183
|
|
|
184
|
+
--radius-small: var(--space-xxxsmall);
|
|
185
|
+
--radius-medium: var(--space-xxsmall);
|
|
186
|
+
--radius-large: var(--space-small);
|
|
187
|
+
|
|
184
188
|
/** Layout */
|
|
185
189
|
--max-width: 80rem;
|
|
186
190
|
}
|
package/src/layout/box/box.jsx
CHANGED
|
@@ -7,11 +7,11 @@ import { getRenderChildWithClassName } from '../../utils';
|
|
|
7
7
|
import css from './stack.module.css';
|
|
8
8
|
|
|
9
9
|
export const Stack = (props) => {
|
|
10
|
-
const { as: Component, className, space, children } = props;
|
|
10
|
+
const { as: Component, className, space, children, ...restProps } = props;
|
|
11
11
|
const rootClassName = cx(className, css.root, css[`space--${space}`]);
|
|
12
12
|
|
|
13
13
|
return (
|
|
14
|
-
<Component className={rootClassName}>
|
|
14
|
+
<Component {...restProps} className={rootClassName}>
|
|
15
15
|
{React.Children.map(children, getRenderChildWithClassName(css.item))}
|
|
16
16
|
</Component>
|
|
17
17
|
);
|
package/src/ui/icon/icon.jsx
CHANGED
|
@@ -14,7 +14,7 @@ import css from './popover.module.css';
|
|
|
14
14
|
export const Popover = ({ className, icon, label, ariaLabel, children }) => {
|
|
15
15
|
const popover = usePopoverState({
|
|
16
16
|
baseId: process.env.NODE_ENV === 'test' && 'id-test',
|
|
17
|
-
gutter:
|
|
17
|
+
gutter: 12,
|
|
18
18
|
modal: true,
|
|
19
19
|
placement: 'top',
|
|
20
20
|
});
|
|
@@ -32,7 +32,7 @@ export const Popover = ({ className, icon, label, ariaLabel, children }) => {
|
|
|
32
32
|
event.preventDefault();
|
|
33
33
|
popover.toggle();
|
|
34
34
|
},
|
|
35
|
-
[popover]
|
|
35
|
+
[popover],
|
|
36
36
|
);
|
|
37
37
|
|
|
38
38
|
return (
|
|
@@ -47,7 +47,7 @@ export const Popover = ({ className, icon, label, ariaLabel, children }) => {
|
|
|
47
47
|
{label && <span className={css.label}>{label}</span>}
|
|
48
48
|
</UIPopoverDisclosure>
|
|
49
49
|
<UIPopover className={css.popover} {...popover} tabIndex={0}>
|
|
50
|
-
<UIPopoverArrow className={css.arrow} {...popover} size={
|
|
50
|
+
<UIPopoverArrow className={css.arrow} {...popover} size={16} />
|
|
51
51
|
|
|
52
52
|
{typeof children === 'function' ? children({ popoverToggle: popover.toggle }) : children}
|
|
53
53
|
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.popover {
|
|
26
|
-
padding: var(--space-
|
|
26
|
+
padding: var(--space-small) var(--space-large) var(--space-small) var(--space-small);
|
|
27
|
+
border-radius: var(--radius-small);
|
|
27
28
|
max-width: 360px;
|
|
28
29
|
outline: none;
|
|
29
30
|
filter: drop-shadow(0 0 var(--space-xxxsmall) var(--color-shadow));
|