@bundle-stats/ui 4.0.0-alpha.3 → 4.0.0-rc.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/components/bundle-modules/bundle-modules.js +1 -2
- package/lib/components/bundle-packages/bundle-packages.js +2 -1
- package/lib/components/summary/summary.js +6 -3
- package/lib/components/summary/summary.module.css +6 -2
- package/lib/components/summary-item/summary-item.module.css +1 -1
- package/lib/css/variables.css +11 -11
- package/lib/i18n.js +4 -4
- package/lib/ui/hover-card/hover-card.module.css +1 -1
- package/lib-esm/components/bundle-modules/bundle-modules.js +1 -2
- package/lib-esm/components/bundle-packages/bundle-packages.js +2 -1
- package/lib-esm/components/summary/summary.js +6 -3
- package/lib-esm/components/summary/summary.module.css +6 -2
- package/lib-esm/components/summary-item/summary-item.module.css +1 -1
- package/lib-esm/css/variables.css +11 -11
- package/lib-esm/i18n.js +4 -4
- package/lib-esm/ui/hover-card/hover-card.module.css +1 -1
- package/package.json +20 -20
- package/src/components/bundle-modules/bundle-modules.jsx +0 -1
- package/src/components/bundle-packages/bundle-packages.jsx +2 -2
- package/src/components/summary/summary.jsx +16 -11
- package/src/components/summary/summary.module.css +6 -2
- package/src/components/summary-item/summary-item.module.css +1 -1
- package/src/css/variables.css +11 -11
- package/src/i18n.js +6 -4
- package/src/ui/hover-card/hover-card.module.css +1 -1
|
@@ -185,8 +185,7 @@ var BundleModules = function BundleModules(_ref2) {
|
|
|
185
185
|
disabled: jobs.length <= 1
|
|
186
186
|
}), _defineProperty(_objectSpread2, _utils.MODULE_FILTERS.DUPLICATED, {
|
|
187
187
|
label: 'Duplicate',
|
|
188
|
-
defaultValue: filters[_utils.MODULE_FILTERS.DUPLICATED]
|
|
189
|
-
disabled: jobs.length <= 1
|
|
188
|
+
defaultValue: filters[_utils.MODULE_FILTERS.DUPLICATED]
|
|
190
189
|
}), _defineProperty(_objectSpread2, _utils.MODULE_SOURCE_TYPE, (_MODULE_SOURCE_TYPE = {
|
|
191
190
|
label: 'Source'
|
|
192
191
|
}, _defineProperty(_MODULE_SOURCE_TYPE, _utils.MODULE_FILTERS.FIRST_PARTY, {
|
|
@@ -77,7 +77,8 @@ var PackagePopoverContent = function PackagePopoverContent(_ref) {
|
|
|
77
77
|
path = _ref.path,
|
|
78
78
|
duplicate = _ref.duplicate,
|
|
79
79
|
CustomComponentLink = _ref.CustomComponentLink;
|
|
80
|
-
var
|
|
80
|
+
var fallbackPackagePath = "node_modules/".concat(fullName.split(_utils.PACKAGES_SEPARATOR).join('/node_modules/'));
|
|
81
|
+
var normalizedPackagePath = "".concat(path || fallbackPackagePath, "/");
|
|
81
82
|
|
|
82
83
|
var _name$split = name.split(_utils.PACKAGE_ID_SEPARATOR),
|
|
83
84
|
_name$split2 = _slicedToArray(_name$split, 2),
|
|
@@ -54,9 +54,9 @@ var Summary = function Summary(_ref) {
|
|
|
54
54
|
showSummaryItemDelta = _ref.showSummaryItemDelta,
|
|
55
55
|
SummaryItemCustomLink = _ref.summaryItemLink;
|
|
56
56
|
return /*#__PURE__*/_react["default"].createElement(_box.Box, {
|
|
57
|
-
outline: true,
|
|
58
57
|
className: (0, _classnames["default"])(_summaryModule["default"].root, className)
|
|
59
58
|
}, /*#__PURE__*/_react["default"].createElement(_flexStack.FlexStack, {
|
|
59
|
+
space: "small",
|
|
60
60
|
className: _summaryModule["default"].items
|
|
61
61
|
}, Array.from(_utils.METRIC_COMPONENT_LINKS).filter(function (_ref2) {
|
|
62
62
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -68,11 +68,14 @@ var Summary = function Summary(_ref) {
|
|
|
68
68
|
metricId = _ref5[0],
|
|
69
69
|
metricOptions = _ref5[1];
|
|
70
70
|
|
|
71
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
71
|
+
return /*#__PURE__*/_react["default"].createElement(_box.Box, _extends({
|
|
72
72
|
key: metricId,
|
|
73
|
-
|
|
73
|
+
outline: true,
|
|
74
|
+
padding: "small",
|
|
74
75
|
as: SummaryItemCustomLink
|
|
75
76
|
}, metricOptions.link, {
|
|
77
|
+
className: _summaryModule["default"].item
|
|
78
|
+
}), /*#__PURE__*/_react["default"].createElement(_summaryItem.SummaryItem, {
|
|
76
79
|
size: size,
|
|
77
80
|
id: metricId,
|
|
78
81
|
data: (0, _get2["default"])(data, metricId),
|
package/lib/css/variables.css
CHANGED
|
@@ -28,19 +28,19 @@
|
|
|
28
28
|
/*
|
|
29
29
|
* Color scheme:
|
|
30
30
|
* https://coolors.co/3385d6-dd555e-63bf5e-f7e37d-192339
|
|
31
|
-
* http://mcg.mbitson.com/#!?mcgpalette0=%23dd555e&mcgpalette1=%2363bf5e&mcgpalette2=%23f7e37d&mcgpalette3=%
|
|
31
|
+
* http://mcg.mbitson.com/#!?mcgpalette0=%23dd555e&mcgpalette1=%2363bf5e&mcgpalette2=%23f7e37d&mcgpalette3=%23535558&mcgpalette4=%233385d6&themename=mcgtheme
|
|
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: #eaebeb;
|
|
35
|
+
--color-gray-100: #cbcccd;
|
|
36
|
+
--color-gray-200: #a9aaac;
|
|
37
|
+
--color-gray-300: #87888a;
|
|
38
|
+
--color-gray-400: #6d6f71;
|
|
39
|
+
--color-gray-500: #535558;
|
|
40
|
+
--color-gray-600: #4c4e50;
|
|
41
|
+
--color-gray-700: #424447;
|
|
42
|
+
--color-gray-800: #393b3d;
|
|
43
|
+
--color-gray-900: #292a2d;
|
|
44
44
|
|
|
45
45
|
--color-gray-ultra-light: var(--color-gray-200);
|
|
46
46
|
--color-gray-light: var(--color-gray-300);
|
package/lib/i18n.js
CHANGED
|
@@ -14,10 +14,10 @@ var _default = {
|
|
|
14
14
|
CURRENT: 'current',
|
|
15
15
|
BASELINE: 'baseline',
|
|
16
16
|
READ_MORE: 'Read more',
|
|
17
|
-
ASSETS_INFO: 'Asset size
|
|
18
|
-
ASSET_TOTALS_INFO: '
|
|
19
|
-
MODULES_INFO: 'Module size
|
|
20
|
-
PACKAGES_INFO:
|
|
17
|
+
ASSETS_INFO: 'Asset size - the size of the file produced by webpack',
|
|
18
|
+
ASSET_TOTALS_INFO: 'The total size of the assets produced by webpack by type',
|
|
19
|
+
MODULES_INFO: 'Module size - module file size before any transformation(ex: babel, typescript) or before any production optimization(ex: terser minification)',
|
|
20
|
+
PACKAGES_INFO: "Package size - the total package's module size before any transformation(ex: babel, typescript) or before any production optimization(ex: terser minification)",
|
|
21
21
|
RESET_FILTERS: 'Reset filters',
|
|
22
22
|
VIEW_ALL: 'View all entries'
|
|
23
23
|
};
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
padding: var(--space-xsmall) var(--space-small);
|
|
21
21
|
border-radius: var(--radius-medium);
|
|
22
22
|
width: calc(100vw - 2 * var(--space-small));
|
|
23
|
-
max-width:
|
|
23
|
+
max-width: 340px;
|
|
24
24
|
outline: none;
|
|
25
25
|
filter: drop-shadow(0 0 var(--space-xxsmall) var(--color-shadow));
|
|
26
26
|
will-change: filter;
|
|
@@ -122,8 +122,7 @@ export const BundleModules = _ref2 => {
|
|
|
122
122
|
},
|
|
123
123
|
[MODULE_FILTERS.DUPLICATED]: {
|
|
124
124
|
label: 'Duplicate',
|
|
125
|
-
defaultValue: filters[MODULE_FILTERS.DUPLICATED]
|
|
126
|
-
disabled: jobs.length <= 1
|
|
125
|
+
defaultValue: filters[MODULE_FILTERS.DUPLICATED]
|
|
127
126
|
},
|
|
128
127
|
[MODULE_SOURCE_TYPE]: {
|
|
129
128
|
label: 'Source',
|
|
@@ -30,7 +30,8 @@ const PackagePopoverContent = _ref => {
|
|
|
30
30
|
duplicate,
|
|
31
31
|
CustomComponentLink
|
|
32
32
|
} = _ref;
|
|
33
|
-
const
|
|
33
|
+
const fallbackPackagePath = `node_modules/${fullName.split(PACKAGES_SEPARATOR).join('/node_modules/')}`;
|
|
34
|
+
const normalizedPackagePath = `${path || fallbackPackagePath}/`;
|
|
34
35
|
const [normalizedName, packageId] = name.split(PACKAGE_ID_SEPARATOR);
|
|
35
36
|
return /*#__PURE__*/React.createElement(Stack, {
|
|
36
37
|
space: "xsmall",
|
|
@@ -24,20 +24,23 @@ export const Summary = _ref => {
|
|
|
24
24
|
summaryItemLink: SummaryItemCustomLink
|
|
25
25
|
} = _ref;
|
|
26
26
|
return /*#__PURE__*/React.createElement(Box, {
|
|
27
|
-
outline: true,
|
|
28
27
|
className: cx(css.root, className)
|
|
29
28
|
}, /*#__PURE__*/React.createElement(FlexStack, {
|
|
29
|
+
space: "small",
|
|
30
30
|
className: css.items
|
|
31
31
|
}, Array.from(METRIC_COMPONENT_LINKS).filter(_ref2 => {
|
|
32
32
|
let [metricId] = _ref2;
|
|
33
33
|
return keys.includes(metricId);
|
|
34
34
|
}).map(_ref3 => {
|
|
35
35
|
let [metricId, metricOptions] = _ref3;
|
|
36
|
-
return /*#__PURE__*/React.createElement(
|
|
36
|
+
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
37
37
|
key: metricId,
|
|
38
|
-
|
|
38
|
+
outline: true,
|
|
39
|
+
padding: "small",
|
|
39
40
|
as: SummaryItemCustomLink
|
|
40
41
|
}, metricOptions.link, {
|
|
42
|
+
className: css.item
|
|
43
|
+
}), /*#__PURE__*/React.createElement(SummaryItem, {
|
|
41
44
|
size: size,
|
|
42
45
|
id: metricId,
|
|
43
46
|
data: _get(data, metricId),
|
|
@@ -28,19 +28,19 @@
|
|
|
28
28
|
/*
|
|
29
29
|
* Color scheme:
|
|
30
30
|
* https://coolors.co/3385d6-dd555e-63bf5e-f7e37d-192339
|
|
31
|
-
* http://mcg.mbitson.com/#!?mcgpalette0=%23dd555e&mcgpalette1=%2363bf5e&mcgpalette2=%23f7e37d&mcgpalette3=%
|
|
31
|
+
* http://mcg.mbitson.com/#!?mcgpalette0=%23dd555e&mcgpalette1=%2363bf5e&mcgpalette2=%23f7e37d&mcgpalette3=%23535558&mcgpalette4=%233385d6&themename=mcgtheme
|
|
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: #eaebeb;
|
|
35
|
+
--color-gray-100: #cbcccd;
|
|
36
|
+
--color-gray-200: #a9aaac;
|
|
37
|
+
--color-gray-300: #87888a;
|
|
38
|
+
--color-gray-400: #6d6f71;
|
|
39
|
+
--color-gray-500: #535558;
|
|
40
|
+
--color-gray-600: #4c4e50;
|
|
41
|
+
--color-gray-700: #424447;
|
|
42
|
+
--color-gray-800: #393b3d;
|
|
43
|
+
--color-gray-900: #292a2d;
|
|
44
44
|
|
|
45
45
|
--color-gray-ultra-light: var(--color-gray-200);
|
|
46
46
|
--color-gray-light: var(--color-gray-300);
|
package/lib-esm/i18n.js
CHANGED
|
@@ -8,10 +8,10 @@ export default {
|
|
|
8
8
|
CURRENT: 'current',
|
|
9
9
|
BASELINE: 'baseline',
|
|
10
10
|
READ_MORE: 'Read more',
|
|
11
|
-
ASSETS_INFO: 'Asset size
|
|
12
|
-
ASSET_TOTALS_INFO: '
|
|
13
|
-
MODULES_INFO: 'Module size
|
|
14
|
-
PACKAGES_INFO:
|
|
11
|
+
ASSETS_INFO: 'Asset size - the size of the file produced by webpack',
|
|
12
|
+
ASSET_TOTALS_INFO: 'The total size of the assets produced by webpack by type',
|
|
13
|
+
MODULES_INFO: 'Module size - module file size before any transformation(ex: babel, typescript) or before any production optimization(ex: terser minification)',
|
|
14
|
+
PACKAGES_INFO: "Package size - the total package's module size before any transformation(ex: babel, typescript) or before any production optimization(ex: terser minification)",
|
|
15
15
|
RESET_FILTERS: 'Reset filters',
|
|
16
16
|
VIEW_ALL: 'View all entries'
|
|
17
17
|
};
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
padding: var(--space-xsmall) var(--space-small);
|
|
21
21
|
border-radius: var(--radius-medium);
|
|
22
22
|
width: calc(100vw - 2 * var(--space-small));
|
|
23
|
-
max-width:
|
|
23
|
+
max-width: 340px;
|
|
24
24
|
outline: none;
|
|
25
25
|
filter: drop-shadow(0 0 var(--space-xxsmall) var(--color-shadow));
|
|
26
26
|
will-change: filter;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bundle-stats/ui",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-rc.1",
|
|
4
4
|
"description": "UI components for BundleStats projects.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-esm/index.js",
|
|
@@ -36,28 +36,28 @@
|
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://github.com/relative-ci/bundle-stats/blob/master/packages/ui#readme",
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@babel/cli": "7.
|
|
40
|
-
"@babel/core": "7.18.
|
|
41
|
-
"@babel/plugin-proposal-class-properties": "7.
|
|
42
|
-
"@babel/preset-env": "7.18.
|
|
43
|
-
"@babel/preset-react": "7.
|
|
39
|
+
"@babel/cli": "7.18.6",
|
|
40
|
+
"@babel/core": "7.18.6",
|
|
41
|
+
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
42
|
+
"@babel/preset-env": "7.18.6",
|
|
43
|
+
"@babel/preset-react": "7.18.6",
|
|
44
44
|
"@simplyianm/babel-plugin-inline-react-svg": "1.2.0",
|
|
45
|
-
"@storybook/addon-essentials": "6.5.
|
|
45
|
+
"@storybook/addon-essentials": "6.5.9",
|
|
46
46
|
"@storybook/addon-knobs": "6.4.0",
|
|
47
47
|
"@storybook/addon-postcss": "2.0.0",
|
|
48
|
-
"@storybook/addon-storyshots": "6.5.
|
|
49
|
-
"@storybook/addons": "6.5.
|
|
50
|
-
"@storybook/builder-webpack5": "6.5.
|
|
51
|
-
"@storybook/manager-webpack5": "6.5.
|
|
52
|
-
"@storybook/react": "6.5.
|
|
48
|
+
"@storybook/addon-storyshots": "6.5.9",
|
|
49
|
+
"@storybook/addons": "6.5.9",
|
|
50
|
+
"@storybook/builder-webpack5": "6.5.9",
|
|
51
|
+
"@storybook/manager-webpack5": "6.5.9",
|
|
52
|
+
"@storybook/react": "6.5.9",
|
|
53
53
|
"babel-core": "7.0.0-bridge.0",
|
|
54
|
-
"babel-jest": "28.1.
|
|
54
|
+
"babel-jest": "28.1.2",
|
|
55
55
|
"babel-plugin-lodash": "3.3.4",
|
|
56
56
|
"babel-plugin-require-context-hook": "1.0.0",
|
|
57
|
-
"chromatic": "6.
|
|
57
|
+
"chromatic": "6.7.0",
|
|
58
58
|
"classnames": "2.3.1",
|
|
59
59
|
"colormap": "2.3.2",
|
|
60
|
-
"core-js": "3.
|
|
60
|
+
"core-js": "3.23.3",
|
|
61
61
|
"cross-env": "7.0.3",
|
|
62
62
|
"enzyme": "3.11.0",
|
|
63
63
|
"enzyme-adapter-react-16": "1.15.6",
|
|
@@ -80,17 +80,17 @@
|
|
|
80
80
|
"core-js": "^3.0.0",
|
|
81
81
|
"lodash": "^4.0.0",
|
|
82
82
|
"prop-types": "^15.0.0",
|
|
83
|
-
"react": "^16.0.0",
|
|
84
|
-
"react-dom": "^16.0.0",
|
|
83
|
+
"react": "^16.0.0 || ^17.0.0",
|
|
84
|
+
"react-dom": "^16.0.0 || ^17.0.0",
|
|
85
85
|
"react-router-dom": "^5.0.0"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@bundle-stats/utils": "^4.0.0-
|
|
89
|
-
"ariakit": "2.0.0-next.
|
|
88
|
+
"@bundle-stats/utils": "^4.0.0-rc.1",
|
|
89
|
+
"ariakit": "2.0.0-next.31",
|
|
90
90
|
"date-fns": "^2.28.0",
|
|
91
91
|
"modern-css-reset": "^1.4.0",
|
|
92
92
|
"query-string": "^7.1.0",
|
|
93
93
|
"use-query-params": "^1.2.3"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "8f28ce5d4c570ac11670f5f0f34a3c9c3ea6a162"
|
|
96
96
|
}
|
|
@@ -28,8 +28,8 @@ import { MetricsTableTitle } from '../metrics-table-title';
|
|
|
28
28
|
import css from './bundle-packages.module.css';
|
|
29
29
|
|
|
30
30
|
const PackagePopoverContent = ({ name, fullName, path, duplicate, CustomComponentLink }) => {
|
|
31
|
-
const
|
|
32
|
-
|
|
31
|
+
const fallbackPackagePath = `node_modules/${fullName.split(PACKAGES_SEPARATOR).join('/node_modules/')}`;
|
|
32
|
+
const normalizedPackagePath = `${path || fallbackPackagePath}/`;
|
|
33
33
|
const [normalizedName, packageId] = name.split(PACKAGE_ID_SEPARATOR);
|
|
34
34
|
|
|
35
35
|
return (
|
|
@@ -20,23 +20,28 @@ export const Summary = ({
|
|
|
20
20
|
showSummaryItemDelta,
|
|
21
21
|
summaryItemLink: SummaryItemCustomLink,
|
|
22
22
|
}) => (
|
|
23
|
-
<Box
|
|
24
|
-
<FlexStack className={css.items}>
|
|
23
|
+
<Box className={cx(css.root, className)}>
|
|
24
|
+
<FlexStack space="small" className={css.items}>
|
|
25
25
|
{Array.from(METRIC_COMPONENT_LINKS)
|
|
26
26
|
.filter(([metricId]) => keys.includes(metricId))
|
|
27
27
|
.map(([metricId, metricOptions]) => (
|
|
28
|
-
<
|
|
28
|
+
<Box
|
|
29
29
|
key={metricId}
|
|
30
|
-
|
|
30
|
+
outline
|
|
31
|
+
padding="small"
|
|
31
32
|
as={SummaryItemCustomLink}
|
|
32
33
|
{...metricOptions.link}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
className={css.item}
|
|
35
|
+
>
|
|
36
|
+
<SummaryItem
|
|
37
|
+
size={size}
|
|
38
|
+
id={metricId}
|
|
39
|
+
data={get(data, metricId)}
|
|
40
|
+
loading={loading}
|
|
41
|
+
showMetricDescription
|
|
42
|
+
showDelta={showSummaryItemDelta && metricOptions.showDelta !== false}
|
|
43
|
+
/>
|
|
44
|
+
</Box>
|
|
40
45
|
))}
|
|
41
46
|
</FlexStack>
|
|
42
47
|
</Box>
|
package/src/css/variables.css
CHANGED
|
@@ -28,19 +28,19 @@
|
|
|
28
28
|
/*
|
|
29
29
|
* Color scheme:
|
|
30
30
|
* https://coolors.co/3385d6-dd555e-63bf5e-f7e37d-192339
|
|
31
|
-
* http://mcg.mbitson.com/#!?mcgpalette0=%23dd555e&mcgpalette1=%2363bf5e&mcgpalette2=%23f7e37d&mcgpalette3=%
|
|
31
|
+
* http://mcg.mbitson.com/#!?mcgpalette0=%23dd555e&mcgpalette1=%2363bf5e&mcgpalette2=%23f7e37d&mcgpalette3=%23535558&mcgpalette4=%233385d6&themename=mcgtheme
|
|
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: #eaebeb;
|
|
35
|
+
--color-gray-100: #cbcccd;
|
|
36
|
+
--color-gray-200: #a9aaac;
|
|
37
|
+
--color-gray-300: #87888a;
|
|
38
|
+
--color-gray-400: #6d6f71;
|
|
39
|
+
--color-gray-500: #535558;
|
|
40
|
+
--color-gray-600: #4c4e50;
|
|
41
|
+
--color-gray-700: #424447;
|
|
42
|
+
--color-gray-800: #393b3d;
|
|
43
|
+
--color-gray-900: #292a2d;
|
|
44
44
|
|
|
45
45
|
--color-gray-ultra-light: var(--color-gray-200);
|
|
46
46
|
--color-gray-light: var(--color-gray-300);
|
package/src/i18n.js
CHANGED
|
@@ -12,10 +12,12 @@ export default {
|
|
|
12
12
|
|
|
13
13
|
READ_MORE: 'Read more',
|
|
14
14
|
|
|
15
|
-
ASSETS_INFO: 'Asset size
|
|
16
|
-
ASSET_TOTALS_INFO: '
|
|
17
|
-
MODULES_INFO:
|
|
18
|
-
|
|
15
|
+
ASSETS_INFO: 'Asset size - the size of the file produced by webpack',
|
|
16
|
+
ASSET_TOTALS_INFO: 'The total size of the assets produced by webpack by type',
|
|
17
|
+
MODULES_INFO:
|
|
18
|
+
'Module size - module file size before any transformation(ex: babel, typescript) or before any production optimization(ex: terser minification)',
|
|
19
|
+
PACKAGES_INFO:
|
|
20
|
+
"Package size - the total package's module size before any transformation(ex: babel, typescript) or before any production optimization(ex: terser minification)",
|
|
19
21
|
|
|
20
22
|
RESET_FILTERS: 'Reset filters',
|
|
21
23
|
VIEW_ALL: 'View all entries',
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
padding: var(--space-xsmall) var(--space-small);
|
|
21
21
|
border-radius: var(--radius-medium);
|
|
22
22
|
width: calc(100vw - 2 * var(--space-small));
|
|
23
|
-
max-width:
|
|
23
|
+
max-width: 340px;
|
|
24
24
|
outline: none;
|
|
25
25
|
filter: drop-shadow(0 0 var(--space-xxsmall) var(--color-shadow));
|
|
26
26
|
will-change: filter;
|