@bundle-stats/ui 3.4.0-alpha.5 → 4.0.0-alpha.7
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 +6 -21
- package/lib/app/app.stories.js +1 -22
- package/lib/assets/icons.svg +0 -8
- package/lib/components/asset-info/asset-info.js +1 -1
- package/lib/components/bundle-assets/bundle-assets.js +1 -1
- package/lib/components/bundle-assets/index.js +1 -1
- package/lib/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.js +1 -1
- package/lib/components/bundle-assets-totals-table/bundle-assets-totals-table.js +8 -44
- package/lib/components/bundle-assets-totals-table/bundle-assets-totals-table.module.css +2 -2
- package/lib/components/bundle-assets-totals-table/bundle-assets-totals-table.stories.js +1 -20
- package/lib/components/bundle-modules/bundle-modules.js +1 -1
- package/lib/components/bundle-modules/index.js +1 -1
- package/lib/components/bundle-packages/bundle-packages.js +1 -1
- package/lib/components/bundle-packages/index.js +1 -1
- package/lib/components/component-link.js +1 -1
- package/lib/components/index.js +0 -8
- package/lib/components/job-meta/job-meta.js +1 -1
- package/lib/components/job-name/job-name.js +1 -1
- package/lib/components/metrics-table/metrics-table.js +1 -1
- package/lib/components/metrics-table-options/metrics-table-options.js +1 -1
- package/lib/components/module-info/module-info.js +1 -1
- package/lib/components/summary/summary.js +13 -24
- package/lib/components/summary/summary.module.css +1 -45
- package/lib/components/summary/summary.stories.js +1 -30
- package/lib/components/summary-item/summary-item.js +14 -37
- package/lib/components/summary-item/summary-item.module.css +25 -13
- package/lib/components/summary-item/summary-item.stories.js +53 -51
- package/lib/constants.js +4 -4
- package/lib/layout/box/box.js +1 -1
- package/lib/layout/flex-stack/flex-stack.js +1 -1
- package/lib/layout/footer/footer.js +1 -1
- package/lib/layout/separator.js +1 -1
- package/lib/layout/stack/stack.js +1 -1
- package/lib/query-state.js +1 -1
- package/lib/ui/alert/alert.js +3 -13
- package/lib/ui/container/container.js +1 -1
- package/lib/ui/filters/filters.container.js +3 -3
- package/lib/ui/filters/filters.js +1 -1
- package/lib/ui/horizontal-bar-chart/horizontal-bar-chart.js +2 -2
- package/lib/ui/hover-card/hover-card.js +8 -2
- package/lib/ui/hover-card/hover-card.stories.js +1 -1
- package/lib/ui/icon/icon.js +1 -3
- package/lib/ui/input/input.js +1 -1
- package/lib/ui/loader/loader.js +1 -1
- package/lib/ui/logo/logo.js +1 -1
- package/lib/ui/panels/panels.js +1 -1
- package/lib/ui/skeleton/skeleton.js +1 -1
- package/lib/ui/sort-dropdown/sort-dropdown.js +1 -1
- package/lib/ui/tag/tag.js +1 -1
- package/lib/ui/tooltip/tooltip.js +1 -1
- package/lib-esm/app/app.js +6 -20
- package/lib-esm/app/app.stories.js +1 -22
- package/lib-esm/assets/icons.svg +0 -8
- package/lib-esm/components/asset-info/asset-info.js +1 -1
- package/lib-esm/components/bundle-assets/bundle-assets.js +1 -1
- package/lib-esm/components/bundle-assets/bundle-assets.utils.js +1 -0
- package/lib-esm/components/bundle-assets/index.js +1 -1
- package/lib-esm/components/bundle-assets-totals-chart-bars/bundle-assets-totals-chart-bars.js +1 -1
- package/lib-esm/components/bundle-assets-totals-table/bundle-assets-totals-table.js +8 -25
- package/lib-esm/components/bundle-assets-totals-table/bundle-assets-totals-table.module.css +2 -2
- package/lib-esm/components/bundle-assets-totals-table/bundle-assets-totals-table.stories.js +0 -18
- package/lib-esm/components/bundle-modules/bundle-modules.js +1 -1
- package/lib-esm/components/bundle-modules/index.js +1 -1
- package/lib-esm/components/bundle-packages/bundle-packages.js +1 -1
- package/lib-esm/components/bundle-packages/bundle-packages.utils.js +1 -0
- package/lib-esm/components/bundle-packages/index.js +1 -1
- package/lib-esm/components/component-link.js +1 -1
- package/lib-esm/components/index.js +0 -1
- package/lib-esm/components/job-meta/job-meta.js +1 -1
- package/lib-esm/components/job-name/job-name.js +1 -1
- package/lib-esm/components/metrics-table/metrics-table.js +1 -1
- package/lib-esm/components/metrics-table-options/metrics-table-options.js +1 -1
- package/lib-esm/components/module-info/module-info.js +1 -1
- package/lib-esm/components/summary/summary.js +14 -22
- package/lib-esm/components/summary/summary.module.css +1 -45
- package/lib-esm/components/summary/summary.stories.js +1 -28
- package/lib-esm/components/summary-item/summary-item.js +11 -33
- package/lib-esm/components/summary-item/summary-item.module.css +25 -13
- package/lib-esm/components/summary-item/summary-item.stories.js +38 -50
- package/lib-esm/constants.js +4 -4
- package/lib-esm/layout/box/box.js +1 -1
- package/lib-esm/layout/flex-stack/flex-stack.js +1 -1
- package/lib-esm/layout/footer/footer.js +1 -1
- package/lib-esm/layout/separator.js +1 -1
- package/lib-esm/layout/stack/stack.js +1 -1
- package/lib-esm/query-state.js +1 -1
- package/lib-esm/ui/alert/alert.js +3 -6
- package/lib-esm/ui/container/container.js +1 -1
- package/lib-esm/ui/filters/filters.container.js +1 -1
- package/lib-esm/ui/filters/filters.js +2 -1
- package/lib-esm/ui/hover-card/hover-card.js +8 -2
- package/lib-esm/ui/hover-card/hover-card.stories.js +1 -1
- package/lib-esm/ui/icon/icon.js +1 -3
- package/lib-esm/ui/input/input.js +1 -1
- package/lib-esm/ui/loader/loader.js +1 -1
- package/lib-esm/ui/logo/logo.js +1 -1
- package/lib-esm/ui/panels/panels.js +1 -1
- package/lib-esm/ui/skeleton/skeleton.js +1 -1
- package/lib-esm/ui/sort-dropdown/sort-dropdown.js +1 -1
- package/lib-esm/ui/tag/tag.js +1 -1
- package/lib-esm/ui/tooltip/tooltip.js +1 -1
- package/package.json +26 -26
- package/src/app/app.jsx +5 -12
- package/src/assets/icons.svg +0 -8
- package/src/components/bundle-assets-totals-table/bundle-assets-totals-table.jsx +13 -27
- package/src/components/bundle-assets-totals-table/bundle-assets-totals-table.module.css +2 -2
- package/src/components/index.js +0 -1
- package/src/components/summary/summary.jsx +19 -24
- package/src/components/summary/summary.module.css +1 -45
- package/src/components/summary-item/summary-item.jsx +10 -23
- package/src/components/summary-item/summary-item.module.css +25 -13
- package/src/constants.js +11 -7
- package/src/ui/alert/alert.jsx +2 -7
- package/src/ui/hover-card/hover-card.jsx +5 -0
- package/src/ui/icon/icon.jsx +0 -2
- package/lib/assets/icons/alert-circle.svg +0 -1
- package/lib/assets/icons/check-circle.svg +0 -1
- package/lib/components/budget-info/budget-info.js +0 -80
- package/lib/components/budget-info/budget-info.module.css +0 -40
- package/lib/components/budget-info/budget-info.stories.js +0 -44
- package/lib/components/budget-info/index.js +0 -18
- package/lib/components/budget-insights/budget-insights.js +0 -200
- package/lib/components/budget-insights/budget-insights.module.css +0 -53
- package/lib/components/budget-insights/budget-insights.stories.js +0 -104
- package/lib/components/budget-insights/index.js +0 -18
- package/lib-esm/assets/icons/alert-circle.svg +0 -1
- package/lib-esm/assets/icons/check-circle.svg +0 -1
- package/lib-esm/components/budget-info/budget-info.js +0 -58
- package/lib-esm/components/budget-info/budget-info.module.css +0 -40
- package/lib-esm/components/budget-info/budget-info.stories.js +0 -30
- package/lib-esm/components/budget-info/index.js +0 -1
- package/lib-esm/components/budget-insights/budget-insights.js +0 -148
- package/lib-esm/components/budget-insights/budget-insights.module.css +0 -53
- package/lib-esm/components/budget-insights/budget-insights.stories.js +0 -84
- package/lib-esm/components/budget-insights/index.js +0 -1
- package/src/assets/icons/alert-circle.svg +0 -1
- package/src/assets/icons/check-circle.svg +0 -1
- package/src/components/budget-info/budget-info.jsx +0 -65
- package/src/components/budget-info/budget-info.module.css +0 -40
- package/src/components/budget-info/index.js +0 -1
- package/src/components/budget-insights/budget-insights.jsx +0 -157
- package/src/components/budget-insights/budget-insights.module.css +0 -53
- package/src/components/budget-insights/index.js +0 -1
|
@@ -20,7 +20,7 @@ var _excluded = ["keyProps"];
|
|
|
20
20
|
|
|
21
21
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
22
22
|
|
|
23
|
-
function _extends() { _extends = Object.assign
|
|
23
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
24
24
|
|
|
25
25
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
26
26
|
|
|
@@ -41,35 +41,6 @@ stories.add('default', function () {
|
|
|
41
41
|
data: MULTIPLE_JOBS[0].summary
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
|
-
stories.add('budgets', function () {
|
|
45
|
-
return /*#__PURE__*/_react["default"].createElement(_.Summary, {
|
|
46
|
-
data: MULTIPLE_JOBS[0].summary,
|
|
47
|
-
budgets: {
|
|
48
|
-
webpack: {
|
|
49
|
-
totalSizeByTypeALL: {
|
|
50
|
-
currentValue: MULTIPLE_JOBS[0].summary.webpack.totalSizeByTypeALL.current,
|
|
51
|
-
budgetValue: 1024 * 1024,
|
|
52
|
-
failed: false
|
|
53
|
-
},
|
|
54
|
-
totalInitialSizeJS: {
|
|
55
|
-
currentValue: MULTIPLE_JOBS[0].summary.webpack.totalInitialSizeJS.current,
|
|
56
|
-
budgetValue: 512 * 1024,
|
|
57
|
-
failed: true
|
|
58
|
-
},
|
|
59
|
-
totalInitialSizeCSS: {
|
|
60
|
-
currentValue: MULTIPLE_JOBS[0].summary.webpack.totalInitialSizeCSS.current,
|
|
61
|
-
budgetValue: 50 * 1024,
|
|
62
|
-
failed: false
|
|
63
|
-
},
|
|
64
|
-
chunkCount: {
|
|
65
|
-
currentValue: MULTIPLE_JOBS[0].summary.webpack.chunkCount.current,
|
|
66
|
-
budgetValue: 50,
|
|
67
|
-
failed: false
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
44
|
stories.add('custom keys', function () {
|
|
74
45
|
return /*#__PURE__*/_react["default"].createElement(_.Summary, {
|
|
75
46
|
keys: _constants.METRICS_WEBPACK_ASSETS,
|
|
@@ -15,27 +15,21 @@ var _utils = require("@bundle-stats/utils");
|
|
|
15
15
|
|
|
16
16
|
var _hoverCard = require("../../ui/hover-card");
|
|
17
17
|
|
|
18
|
-
var _icon = require("../../ui/icon");
|
|
19
|
-
|
|
20
18
|
var _skeleton = require("../../ui/skeleton");
|
|
21
19
|
|
|
22
20
|
var _stack = require("../../layout/stack");
|
|
23
21
|
|
|
24
|
-
var _flexStack = require("../../layout/flex-stack");
|
|
25
|
-
|
|
26
22
|
var _metric = require("../metric");
|
|
27
23
|
|
|
28
24
|
var _delta = require("../delta");
|
|
29
25
|
|
|
30
|
-
var _budgetInfo = require("../budget-info");
|
|
31
|
-
|
|
32
26
|
var _summaryItemModule = _interopRequireDefault(require("./summary-item.module.css"));
|
|
33
27
|
|
|
34
|
-
var _excluded = ["className", "as", "size", "id", "data", "loading", "showDelta", "showMetricDescription"
|
|
28
|
+
var _excluded = ["className", "as", "size", "id", "data", "loading", "showDelta", "showMetricDescription"];
|
|
35
29
|
|
|
36
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
37
31
|
|
|
38
|
-
function _extends() { _extends = Object.assign
|
|
32
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
39
33
|
|
|
40
34
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
41
35
|
|
|
@@ -46,8 +40,11 @@ var MetricInfo = function MetricInfo(_ref) {
|
|
|
46
40
|
url = _ref.url;
|
|
47
41
|
return /*#__PURE__*/_react["default"].createElement(_stack.Stack, {
|
|
48
42
|
space: "xxxsmall"
|
|
49
|
-
}, /*#__PURE__*/_react["default"].createElement("p", null, description), url && /*#__PURE__*/_react["default"].createElement("p", null, /*#__PURE__*/_react["default"].createElement("
|
|
50
|
-
|
|
43
|
+
}, /*#__PURE__*/_react["default"].createElement("p", null, description), url && /*#__PURE__*/_react["default"].createElement("p", null, /*#__PURE__*/_react["default"].createElement("button", {
|
|
44
|
+
type: "button",
|
|
45
|
+
onClick: function onClick() {
|
|
46
|
+
return window.open(url);
|
|
47
|
+
},
|
|
51
48
|
className: _summaryItemModule["default"].readMoreLink
|
|
52
49
|
}, "Read more")));
|
|
53
50
|
};
|
|
@@ -69,7 +66,6 @@ var SummaryItem = function SummaryItem(_ref2) {
|
|
|
69
66
|
loading = _ref2.loading,
|
|
70
67
|
showDelta = _ref2.showDelta,
|
|
71
68
|
showMetricDescription = _ref2.showMetricDescription,
|
|
72
|
-
budget = _ref2.budget,
|
|
73
69
|
props = _objectWithoutProperties(_ref2, _excluded);
|
|
74
70
|
|
|
75
71
|
var _ref3 = data || {
|
|
@@ -84,25 +80,14 @@ var SummaryItem = function SummaryItem(_ref2) {
|
|
|
84
80
|
var showMetricDescriptionTooltip = showMetricDescription && (metric === null || metric === void 0 ? void 0 : metric.description);
|
|
85
81
|
var rootClassName = (0, _classnames["default"])(_summaryItemModule["default"].root, className, _summaryItemModule["default"][size], showDelta && _summaryItemModule["default"].showDelta);
|
|
86
82
|
return /*#__PURE__*/_react["default"].createElement(_stack.Stack, _extends({
|
|
87
|
-
space: "
|
|
83
|
+
space: "xxsmall",
|
|
88
84
|
as: Component,
|
|
89
85
|
className: rootClassName
|
|
90
|
-
}, props), /*#__PURE__*/_react["default"].createElement(
|
|
91
|
-
as: "h3",
|
|
92
|
-
space: "xxxsmall",
|
|
86
|
+
}, props), /*#__PURE__*/_react["default"].createElement("h3", {
|
|
93
87
|
className: _summaryItemModule["default"].title
|
|
94
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
95
|
-
|
|
96
|
-
}, metric.label),
|
|
97
|
-
className: _summaryItemModule["default"].icon,
|
|
98
|
-
label: /*#__PURE__*/_react["default"].createElement(_icon.Icon, {
|
|
99
|
-
glyph: "help"
|
|
100
|
-
})
|
|
101
|
-
}, /*#__PURE__*/_react["default"].createElement(MetricInfo, metric)), budget && /*#__PURE__*/_react["default"].createElement(_budgetInfo.BudgetInfo, {
|
|
102
|
-
className: _summaryItemModule["default"].budgetInfo,
|
|
103
|
-
metricId: id,
|
|
104
|
-
budgetInsight: budget
|
|
105
|
-
})), !loading ? /*#__PURE__*/_react["default"].createElement(_stack.Stack, null, /*#__PURE__*/_react["default"].createElement(_metric.Metric, {
|
|
88
|
+
}, showMetricDescriptionTooltip ? /*#__PURE__*/_react["default"].createElement(_hoverCard.HoverCard, {
|
|
89
|
+
label: metric.label
|
|
90
|
+
}, /*#__PURE__*/_react["default"].createElement(MetricInfo, metric)) : metric.label), !loading ? /*#__PURE__*/_react["default"].createElement(_stack.Stack, null, /*#__PURE__*/_react["default"].createElement(_metric.Metric, {
|
|
106
91
|
className: _summaryItemModule["default"].currentMetric,
|
|
107
92
|
value: current,
|
|
108
93
|
formatter: metric.formatter,
|
|
@@ -131,8 +116,7 @@ SummaryItem.defaultProps = {
|
|
|
131
116
|
size: 'medium',
|
|
132
117
|
loading: false,
|
|
133
118
|
showMetricDescription: false,
|
|
134
|
-
showDelta: true
|
|
135
|
-
budget: undefined
|
|
119
|
+
showDelta: true
|
|
136
120
|
};
|
|
137
121
|
SummaryItem.propTypes = {
|
|
138
122
|
/** Adopted child class name */
|
|
@@ -158,12 +142,5 @@ SummaryItem.propTypes = {
|
|
|
158
142
|
showMetricDescription: _propTypes["default"].bool,
|
|
159
143
|
|
|
160
144
|
/** Show delta */
|
|
161
|
-
showDelta: _propTypes["default"].bool
|
|
162
|
-
|
|
163
|
-
/** Budget insight data */
|
|
164
|
-
budget: _propTypes["default"].shape({
|
|
165
|
-
currentBalue: _propTypes["default"].number,
|
|
166
|
-
budgetValue: _propTypes["default"].number,
|
|
167
|
-
failed: _propTypes["default"].bool
|
|
168
|
-
})
|
|
145
|
+
showDelta: _propTypes["default"].bool
|
|
169
146
|
};
|
|
@@ -1,24 +1,12 @@
|
|
|
1
|
-
.root {
|
|
2
|
-
position: relative;
|
|
3
|
-
padding-right: var(--space-xlarge);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
1
|
.title {
|
|
7
|
-
align-items: center;
|
|
8
2
|
color: var(--color-text-ultra-light);
|
|
9
3
|
font-weight: bold;
|
|
10
4
|
font-size: var(--size-xsmall);
|
|
11
|
-
line-height:
|
|
5
|
+
line-height: 1;
|
|
12
6
|
text-transform: uppercase;
|
|
13
7
|
white-space: nowrap;
|
|
14
8
|
}
|
|
15
9
|
|
|
16
|
-
.budgetInfo {
|
|
17
|
-
position: absolute;
|
|
18
|
-
right: 0;
|
|
19
|
-
top: 0;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
10
|
.currentMetric {
|
|
23
11
|
display: block;
|
|
24
12
|
color: var(--color-heading);
|
|
@@ -39,6 +27,30 @@
|
|
|
39
27
|
line-height: var(--space-small);
|
|
40
28
|
}
|
|
41
29
|
|
|
30
|
+
.readMoreLink {
|
|
31
|
+
appearance: none;
|
|
32
|
+
background: none;
|
|
33
|
+
margin: 0;
|
|
34
|
+
border: 0;
|
|
35
|
+
padding: 0;
|
|
36
|
+
color: var(--color-primary);
|
|
37
|
+
text-decoration: underline;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.readMoreLink:hover,
|
|
42
|
+
.readMoreLink:active,
|
|
43
|
+
.readMoreLink:focus {
|
|
44
|
+
color: var(--color-primary-dark);
|
|
45
|
+
text-decoration: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Hover state */
|
|
49
|
+
.root:hover .title {
|
|
50
|
+
color: var(--color-text-light);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
42
54
|
/* Loading state */
|
|
43
55
|
.loading.currentMetric {
|
|
44
56
|
width: 8em;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = exports.Standard = exports.SizeLarge = exports.ShowMetricDescription = exports.ShowDeltaFalse = exports.Loading =
|
|
6
|
+
exports["default"] = exports.Standard = exports.SizeLarge = exports.ShowMetricDescription = exports.ShowDeltaFalse = exports.Loading = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -13,68 +13,70 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
13
13
|
|
|
14
14
|
var _default = {
|
|
15
15
|
title: 'Components/SummaryItem',
|
|
16
|
-
component: _summaryItem.SummaryItem
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}, /*#__PURE__*/_react["default"].createElement(Story, null));
|
|
23
|
-
}],
|
|
24
|
-
args: {
|
|
16
|
+
component: _summaryItem.SummaryItem
|
|
17
|
+
};
|
|
18
|
+
exports["default"] = _default;
|
|
19
|
+
|
|
20
|
+
var Standard = function Standard() {
|
|
21
|
+
return /*#__PURE__*/_react["default"].createElement(_summaryItem.SummaryItem, {
|
|
25
22
|
loading: false,
|
|
26
|
-
id:
|
|
23
|
+
id: "webpack.totalSizeByTypeALL",
|
|
27
24
|
data: {
|
|
28
25
|
current: 120 * 1000,
|
|
29
26
|
baseline: 100 * 1000
|
|
30
27
|
}
|
|
31
|
-
}
|
|
28
|
+
});
|
|
32
29
|
};
|
|
33
|
-
exports["default"] = _default;
|
|
34
30
|
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
exports.Standard = Standard;
|
|
32
|
+
|
|
33
|
+
var SizeLarge = function SizeLarge() {
|
|
34
|
+
return /*#__PURE__*/_react["default"].createElement(_summaryItem.SummaryItem, {
|
|
35
|
+
size: "large",
|
|
36
|
+
loading: false,
|
|
37
|
+
id: "webpack.totalSizeByTypeALL",
|
|
38
|
+
data: {
|
|
39
|
+
current: 120 * 1000,
|
|
40
|
+
baseline: 100 * 1000
|
|
41
|
+
}
|
|
42
|
+
});
|
|
37
43
|
};
|
|
38
44
|
|
|
39
|
-
var Standard = Template.bind();
|
|
40
|
-
exports.Standard = Standard;
|
|
41
|
-
var SizeLarge = Template.bind();
|
|
42
45
|
exports.SizeLarge = SizeLarge;
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
|
|
47
|
+
var ShowMetricDescription = function ShowMetricDescription() {
|
|
48
|
+
return /*#__PURE__*/_react["default"].createElement(_summaryItem.SummaryItem, {
|
|
49
|
+
loading: false,
|
|
50
|
+
id: "webpack.totalSizeByTypeALL",
|
|
51
|
+
data: {
|
|
52
|
+
current: 120 * 1000,
|
|
53
|
+
baseline: 100 * 1000
|
|
54
|
+
},
|
|
55
|
+
showMetricDescription: true
|
|
56
|
+
});
|
|
45
57
|
};
|
|
46
|
-
|
|
58
|
+
|
|
47
59
|
exports.ShowMetricDescription = ShowMetricDescription;
|
|
48
|
-
|
|
49
|
-
|
|
60
|
+
|
|
61
|
+
var ShowDeltaFalse = function ShowDeltaFalse() {
|
|
62
|
+
return /*#__PURE__*/_react["default"].createElement(_summaryItem.SummaryItem, {
|
|
63
|
+
loading: false,
|
|
64
|
+
id: "webpack.totalSizeByTypeALL",
|
|
65
|
+
data: {
|
|
66
|
+
current: 120 * 1000,
|
|
67
|
+
baseline: 0
|
|
68
|
+
},
|
|
69
|
+
showDelta: false
|
|
70
|
+
});
|
|
50
71
|
};
|
|
51
|
-
|
|
72
|
+
|
|
52
73
|
exports.ShowDeltaFalse = ShowDeltaFalse;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
showMetricDescription: true,
|
|
60
|
-
budget: {
|
|
61
|
-
currentValue: 120 * 1000,
|
|
62
|
-
budgetValue: 100 * 1000,
|
|
63
|
-
failed: true
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
var BudgetSuccess = Template.bind();
|
|
67
|
-
exports.BudgetSuccess = BudgetSuccess;
|
|
68
|
-
BudgetSuccess.args = {
|
|
69
|
-
showMetricDescription: true,
|
|
70
|
-
budget: {
|
|
71
|
-
currentValue: 120 * 1000,
|
|
72
|
-
budgetValue: 120 * 1024,
|
|
73
|
-
failed: false
|
|
74
|
-
}
|
|
74
|
+
|
|
75
|
+
var Loading = function Loading() {
|
|
76
|
+
return /*#__PURE__*/_react["default"].createElement(_summaryItem.SummaryItem, {
|
|
77
|
+
loading: true,
|
|
78
|
+
id: "webpack.totalSizeByTypeALL"
|
|
79
|
+
});
|
|
75
80
|
};
|
|
76
|
-
|
|
77
|
-
exports.Loading = Loading;
|
|
78
|
-
Loading.args = {
|
|
79
|
-
loading: true
|
|
80
|
-
};
|
|
81
|
+
|
|
82
|
+
exports.Loading = Loading;
|
package/lib/constants.js
CHANGED
|
@@ -52,11 +52,11 @@ var ASSETS_SIZES_FILE_TYPE_MAP = _utils.FILE_TYPES.reduce(function (agg, fileTyp
|
|
|
52
52
|
}, {});
|
|
53
53
|
|
|
54
54
|
exports.ASSETS_SIZES_FILE_TYPE_MAP = ASSETS_SIZES_FILE_TYPE_MAP;
|
|
55
|
-
var METRICS_WEBPACK_GENERAL = ['totalSizeByTypeALL', 'totalInitialSizeJS', 'totalInitialSizeCSS', 'cacheInvalidation'];
|
|
55
|
+
var METRICS_WEBPACK_GENERAL = ['webpack.totalSizeByTypeALL', 'webpack.totalInitialSizeJS', 'webpack.totalInitialSizeCSS', 'webpack.cacheInvalidation'];
|
|
56
56
|
exports.METRICS_WEBPACK_GENERAL = METRICS_WEBPACK_GENERAL;
|
|
57
|
-
var METRICS_WEBPACK_ASSETS = ['assetCount', 'chunkCount'];
|
|
57
|
+
var METRICS_WEBPACK_ASSETS = ['webpack.assetCount', 'webpack.chunkCount'];
|
|
58
58
|
exports.METRICS_WEBPACK_ASSETS = METRICS_WEBPACK_ASSETS;
|
|
59
|
-
var METRICS_WEBPACK_MODULES = ['moduleCount', 'duplicateModulesCount', 'duplicateCode'];
|
|
59
|
+
var METRICS_WEBPACK_MODULES = ['webpack.moduleCount', 'webpack.duplicateModulesCount', 'webpack.duplicateCode'];
|
|
60
60
|
exports.METRICS_WEBPACK_MODULES = METRICS_WEBPACK_MODULES;
|
|
61
|
-
var METRICS_WEBPACK_PACKAGES = ['packageCount', 'duplicatePackagesCount'];
|
|
61
|
+
var METRICS_WEBPACK_PACKAGES = ['webpack.packageCount', 'webpack.duplicatePackagesCount'];
|
|
62
62
|
exports.METRICS_WEBPACK_PACKAGES = METRICS_WEBPACK_PACKAGES;
|
package/lib/layout/box/box.js
CHANGED
|
@@ -19,7 +19,7 @@ var _excluded = ["className", "as", "padding", "horizontalPadding", "verticalPad
|
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
21
|
|
|
22
|
-
function _extends() { _extends = Object.assign
|
|
22
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
23
|
|
|
24
24
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
25
25
|
|
|
@@ -21,7 +21,7 @@ var _excluded = ["as", "className", "space", "children"];
|
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
23
|
|
|
24
|
-
function _extends() { _extends = Object.assign
|
|
24
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
25
|
|
|
26
26
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
27
27
|
|
|
@@ -23,7 +23,7 @@ var _footerModule = _interopRequireDefault(require("./footer.module.css"));
|
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
25
|
|
|
26
|
-
function _extends() { _extends = Object.assign
|
|
26
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
27
|
|
|
28
28
|
/* eslint-disable jsx-a11y/anchor-has-content */
|
|
29
29
|
var ExternalLink = function ExternalLink(props) {
|
package/lib/layout/separator.js
CHANGED
|
@@ -17,7 +17,7 @@ var _excluded = ["className"];
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
19
|
|
|
20
|
-
function _extends() { _extends = Object.assign
|
|
20
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
21
|
|
|
22
22
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
23
23
|
|
|
@@ -21,7 +21,7 @@ var _excluded = ["as", "className", "space", "children"];
|
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
23
|
|
|
24
|
-
function _extends() { _extends = Object.assign
|
|
24
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
25
|
|
|
26
26
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
27
27
|
|
package/lib/query-state.js
CHANGED
|
@@ -37,7 +37,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
37
37
|
|
|
38
38
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
39
|
|
|
40
|
-
function _extends() { _extends = Object.assign
|
|
40
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
41
41
|
|
|
42
42
|
var QueryStateProvider = function QueryStateProvider(props) {
|
|
43
43
|
var history = (0, _reactRouterDom.useHistory)();
|
package/lib/ui/alert/alert.js
CHANGED
|
@@ -15,27 +15,17 @@ var _box = require("../../layout/box");
|
|
|
15
15
|
|
|
16
16
|
var _alertModule = _interopRequireDefault(require("./alert.module.css"));
|
|
17
17
|
|
|
18
|
-
var _excluded = ["className", "kind", "children"];
|
|
19
|
-
|
|
20
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
19
|
|
|
22
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
|
-
|
|
24
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
25
|
-
|
|
26
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
27
|
-
|
|
28
20
|
var Alert = function Alert(props) {
|
|
29
21
|
var className = props.className,
|
|
30
22
|
kind = props.kind,
|
|
31
|
-
children = props.children
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return /*#__PURE__*/_react["default"].createElement(_box.Box, _extends({
|
|
23
|
+
children = props.children;
|
|
24
|
+
return /*#__PURE__*/_react["default"].createElement(_box.Box, {
|
|
35
25
|
padding: ['xsmall', 'small'],
|
|
36
26
|
outline: true,
|
|
37
27
|
className: (0, _classnames["default"])(_alertModule["default"].root, className, _alertModule["default"][kind])
|
|
38
|
-
},
|
|
28
|
+
}, children);
|
|
39
29
|
};
|
|
40
30
|
|
|
41
31
|
exports.Alert = Alert;
|
|
@@ -17,7 +17,7 @@ var _excluded = ["className", "as"];
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
19
|
|
|
20
|
-
function _extends() { _extends = Object.assign
|
|
20
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
21
|
|
|
22
22
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
23
23
|
|
|
@@ -15,7 +15,7 @@ var _excluded = ["values"];
|
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
17
|
|
|
18
|
-
function _extends() { _extends = Object.assign
|
|
18
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
19
19
|
|
|
20
20
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
21
21
|
|
|
@@ -29,7 +29,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
29
29
|
|
|
30
30
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
31
|
|
|
32
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
32
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
33
|
|
|
34
34
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
35
35
|
|
|
@@ -39,7 +39,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
39
39
|
|
|
40
40
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
41
41
|
|
|
42
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
42
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
43
|
|
|
44
44
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
45
45
|
|
|
@@ -44,7 +44,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
44
44
|
|
|
45
45
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
46
46
|
|
|
47
|
-
function _extends() { _extends = Object.assign
|
|
47
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
48
48
|
|
|
49
49
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
50
50
|
|
|
@@ -47,7 +47,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
47
47
|
|
|
48
48
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
49
49
|
|
|
50
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
50
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
51
51
|
|
|
52
52
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
53
53
|
|
|
@@ -57,7 +57,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
57
57
|
|
|
58
58
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
59
59
|
|
|
60
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
60
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
61
61
|
|
|
62
62
|
var HorizontalBarChartItem = /*#__PURE__*/function (_React$Component) {
|
|
63
63
|
_inherits(HorizontalBarChartItem, _React$Component);
|
|
@@ -23,7 +23,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
23
23
|
|
|
24
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
25
|
|
|
26
|
-
function _extends() { _extends = Object.assign
|
|
26
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
27
|
|
|
28
28
|
var resolveComponent = function resolveComponent(as, href) {
|
|
29
29
|
if (as) {
|
|
@@ -53,6 +53,11 @@ var HoverCard = function HoverCard(props) {
|
|
|
53
53
|
}); // Fallback to span if no href
|
|
54
54
|
|
|
55
55
|
var Component = resolveComponent(as, href);
|
|
56
|
+
|
|
57
|
+
var handleOnClick = function handleOnClick(event) {
|
|
58
|
+
event.preventDefault();
|
|
59
|
+
};
|
|
60
|
+
|
|
56
61
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
57
62
|
className: (0, _classnames["default"])(_hoverCardModule["default"].root, className)
|
|
58
63
|
}, /*#__PURE__*/_react["default"].createElement(_hovercard.HovercardAnchor, {
|
|
@@ -65,7 +70,8 @@ var HoverCard = function HoverCard(props) {
|
|
|
65
70
|
className: (0, _classnames["default"])(_hoverCardModule["default"].hoverCard, hoverCardClassName),
|
|
66
71
|
style: {
|
|
67
72
|
zIndex: 10000
|
|
68
|
-
}
|
|
73
|
+
},
|
|
74
|
+
onClick: handleOnClick
|
|
69
75
|
}), /*#__PURE__*/_react["default"].createElement(_hovercard.HovercardArrow, {
|
|
70
76
|
size: 24
|
|
71
77
|
}), typeof children === 'function' ? children({
|
|
@@ -11,7 +11,7 @@ var _ = require(".");
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
13
|
|
|
14
|
-
function _extends() { _extends = Object.assign
|
|
14
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
15
|
|
|
16
16
|
var _default = {
|
|
17
17
|
title: 'UI/HoverCard',
|
package/lib/ui/icon/icon.js
CHANGED
|
@@ -17,20 +17,18 @@ var _excluded = ["className", "glyph", "as", "size"];
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
19
|
|
|
20
|
-
function _extends() { _extends = Object.assign
|
|
20
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
21
|
|
|
22
22
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
23
23
|
|
|
24
24
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
25
25
|
|
|
26
26
|
var ICONS = {
|
|
27
|
-
ALERT_CIRCLE: 'alert-circle',
|
|
28
27
|
ARROW: 'arrow',
|
|
29
28
|
ARROW_RIGHT_CIRLCE: 'arrow-right-circle',
|
|
30
29
|
CANCEL: 'cancel',
|
|
31
30
|
CLOSE: 'close',
|
|
32
31
|
CLOCK: 'clock',
|
|
33
|
-
CHECK_CIRCLE: 'check-circle',
|
|
34
32
|
COMMIT: 'commit',
|
|
35
33
|
FILTER: 'filter',
|
|
36
34
|
HELP: 'help',
|
package/lib/ui/input/input.js
CHANGED
|
@@ -17,7 +17,7 @@ var _excluded = ["className", "size"];
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
19
|
|
|
20
|
-
function _extends() { _extends = Object.assign
|
|
20
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
21
|
|
|
22
22
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
23
23
|
|
package/lib/ui/loader/loader.js
CHANGED
|
@@ -17,7 +17,7 @@ var _excluded = ["className", "size"];
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
19
|
|
|
20
|
-
function _extends() { _extends = Object.assign
|
|
20
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
21
|
|
|
22
22
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
23
23
|
|
package/lib/ui/logo/logo.js
CHANGED
|
@@ -21,7 +21,7 @@ var _ICONS;
|
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
23
|
|
|
24
|
-
function _extends() { _extends = Object.assign
|
|
24
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
25
|
|
|
26
26
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
27
27
|
|