@bundle-stats/ui 4.13.0-beta.5 → 4.13.0-beta.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/components/bundle-assets/bundle-assets.js +7 -2
- package/lib/components/bundle-assets/bundle-assets.js.map +1 -1
- package/lib/components/bundle-assets-totals/bundle-assets-totals.js +13 -6
- package/lib/components/bundle-assets-totals/bundle-assets-totals.js.map +1 -1
- package/lib/components/bundle-modules/bundle-modules.js +6 -1
- package/lib/components/bundle-modules/bundle-modules.js.map +1 -1
- package/lib/components/bundle-packages/bundle-packages.js +6 -1
- package/lib/components/bundle-packages/bundle-packages.js.map +1 -1
- package/lib/components/index.js +1 -3
- package/lib/components/index.js.map +1 -1
- package/lib/components/metrics-table/metrics-table.i18n.js +1 -6
- package/lib/components/metrics-table/metrics-table.i18n.js.map +1 -1
- package/lib/components/metrics-table/metrics-table.js +4 -37
- package/lib/components/metrics-table/metrics-table.js.map +1 -1
- package/lib/components/metrics-table/metrics-table.module.css +1 -44
- package/lib/components/{total-size-type-title → metrics-table-header}/index.js +1 -1
- package/lib/components/metrics-table-header/index.js.map +1 -0
- package/lib/components/metrics-table-header/metrics-table-header.i18n.js +9 -0
- package/lib/components/metrics-table-header/metrics-table-header.i18n.js.map +1 -0
- package/lib/components/metrics-table-header/metrics-table-header.js +79 -0
- package/lib/components/metrics-table-header/metrics-table-header.js.map +1 -0
- package/lib/components/metrics-table-header/metrics-table-header.module.css +44 -0
- package/lib/components/metrics-table-title/metrics-table-title.js +1 -1
- package/lib/components/metrics-table-title/metrics-table-title.js.map +1 -1
- package/lib/components/metrics-table-title/metrics-table-title.module.css +3 -4
- package/lib/components/metrics-treemap/metrics-treemap.js +4 -6
- package/lib/components/metrics-treemap/metrics-treemap.js.map +1 -1
- package/lib/components/metrics-treemap/metrics-treemap.module.css +51 -32
- package/lib/components/sort-button/sort-button.module.css +1 -0
- package/lib-esm/components/bundle-assets/bundle-assets.js +7 -2
- package/lib-esm/components/bundle-assets/bundle-assets.js.map +1 -1
- package/lib-esm/components/bundle-assets-totals/bundle-assets-totals.js +14 -7
- package/lib-esm/components/bundle-assets-totals/bundle-assets-totals.js.map +1 -1
- package/lib-esm/components/bundle-modules/bundle-modules.js +6 -1
- package/lib-esm/components/bundle-modules/bundle-modules.js.map +1 -1
- package/lib-esm/components/bundle-packages/bundle-packages.js +6 -1
- package/lib-esm/components/bundle-packages/bundle-packages.js.map +1 -1
- package/lib-esm/components/index.js +0 -1
- package/lib-esm/components/index.js.map +1 -1
- package/lib-esm/components/metrics-table/metrics-table.i18n.js +0 -5
- package/lib-esm/components/metrics-table/metrics-table.i18n.js.map +1 -1
- package/lib-esm/components/metrics-table/metrics-table.js +4 -37
- package/lib-esm/components/metrics-table/metrics-table.js.map +1 -1
- package/lib-esm/components/metrics-table/metrics-table.module.css +1 -44
- package/lib-esm/components/metrics-table-header/index.js +2 -0
- package/lib-esm/components/metrics-table-header/index.js.map +1 -0
- package/lib-esm/components/metrics-table-header/metrics-table-header.i18n.js +6 -0
- package/lib-esm/components/metrics-table-header/metrics-table-header.i18n.js.map +1 -0
- package/lib-esm/components/metrics-table-header/metrics-table-header.js +49 -0
- package/lib-esm/components/metrics-table-header/metrics-table-header.js.map +1 -0
- package/lib-esm/components/metrics-table-header/metrics-table-header.module.css +44 -0
- package/lib-esm/components/metrics-table-title/metrics-table-title.js +1 -1
- package/lib-esm/components/metrics-table-title/metrics-table-title.js.map +1 -1
- package/lib-esm/components/metrics-table-title/metrics-table-title.module.css +3 -4
- package/lib-esm/components/metrics-treemap/metrics-treemap.js +4 -6
- package/lib-esm/components/metrics-treemap/metrics-treemap.js.map +1 -1
- package/lib-esm/components/metrics-treemap/metrics-treemap.module.css +51 -32
- package/lib-esm/components/sort-button/sort-button.module.css +1 -0
- package/package.json +5 -5
- package/src/components/bundle-assets/bundle-assets.jsx +18 -2
- package/src/components/bundle-assets-totals/bundle-assets-totals.jsx +29 -10
- package/src/components/bundle-modules/bundle-modules.tsx +13 -1
- package/src/components/bundle-packages/bundle-packages.jsx +13 -1
- package/src/components/index.js +0 -1
- package/src/components/metrics-table/metrics-table.i18n.ts +0 -7
- package/src/components/metrics-table/metrics-table.module.css +1 -44
- package/src/components/metrics-table/metrics-table.tsx +17 -153
- package/src/components/metrics-table-header/index.ts +1 -0
- package/src/components/metrics-table-header/metrics-table-header.i18n.ts +6 -0
- package/src/components/metrics-table-header/metrics-table-header.module.css +44 -0
- package/src/components/metrics-table-header/metrics-table-header.tsx +172 -0
- package/src/components/metrics-table-title/metrics-table-title.jsx +1 -1
- package/src/components/metrics-table-title/metrics-table-title.module.css +3 -4
- package/src/components/metrics-treemap/metrics-treemap.module.css +51 -32
- package/src/components/metrics-treemap/metrics-treemap.tsx +16 -19
- package/src/components/sort-button/sort-button.module.css +1 -0
- package/types/components/index.d.ts +0 -1
- package/types/components/metrics-table/metrics-table.d.ts +4 -10
- package/types/components/metrics-table/metrics-table.i18n.d.ts +0 -5
- package/types/components/metrics-table-header/index.d.ts +1 -0
- package/types/components/metrics-table-header/metrics-table-header.d.ts +15 -0
- package/types/components/metrics-table-header/metrics-table-header.i18n.d.ts +5 -0
- package/lib/components/total-size-type-title/index.js.map +0 -1
- package/lib/components/total-size-type-title/total-size-type-title.js +0 -32
- package/lib/components/total-size-type-title/total-size-type-title.js.map +0 -1
- package/lib/components/total-size-type-title/total-size-type-title.module.css +0 -14
- package/lib-esm/components/total-size-type-title/index.js +0 -2
- package/lib-esm/components/total-size-type-title/index.js.map +0 -1
- package/lib-esm/components/total-size-type-title/total-size-type-title.js +0 -25
- package/lib-esm/components/total-size-type-title/total-size-type-title.js.map +0 -1
- package/lib-esm/components/total-size-type-title/total-size-type-title.module.css +0 -14
- package/src/components/total-size-type-title/index.js +0 -1
- package/src/components/total-size-type-title/total-size-type-title.jsx +0 -41
- package/src/components/total-size-type-title/total-size-type-title.module.css +0 -14
- package/types/components/total-size-type-title/index.d.ts +0 -1
- package/types/components/total-size-type-title/total-size-type-title.d.ts +0 -14
|
@@ -21,20 +21,9 @@
|
|
|
21
21
|
transition-property: opacity;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.leafBackdrop {
|
|
25
|
-
fill: var(--color-background);
|
|
26
|
-
transition: var(--ui-transition-out);
|
|
27
|
-
transition-property: opacity;
|
|
28
|
-
opacity: 0.6;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.leaf:hover .leafBackdrop {
|
|
32
|
-
transition: var(--ui-transition-in);
|
|
33
|
-
opacity: 0.4;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
24
|
/** Leaf wrapper button */
|
|
37
25
|
.leafAction {
|
|
26
|
+
position: relative;
|
|
38
27
|
appearance: none;
|
|
39
28
|
border: 0;
|
|
40
29
|
border-radius: 0;
|
|
@@ -50,7 +39,30 @@
|
|
|
50
39
|
text-align: left;
|
|
51
40
|
}
|
|
52
41
|
|
|
42
|
+
.leafAction::before {
|
|
43
|
+
content: "";
|
|
44
|
+
display: block;
|
|
45
|
+
position: absolute;
|
|
46
|
+
z-index: 1;
|
|
47
|
+
left: 0;
|
|
48
|
+
top: 0;
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: 100%;
|
|
51
|
+
background-color: currentColor;
|
|
52
|
+
color: var(--color-background);
|
|
53
|
+
transition: var(--ui-transition-out);
|
|
54
|
+
transition-property: opacity;
|
|
55
|
+
opacity: 0.6;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.leaf:hover .leafAction::before {
|
|
59
|
+
transition: var(--ui-transition-in);
|
|
60
|
+
opacity: 0.4;
|
|
61
|
+
}
|
|
62
|
+
|
|
53
63
|
.leafContent {
|
|
64
|
+
position: relative;
|
|
65
|
+
z-index: 1;
|
|
54
66
|
width: 100%;
|
|
55
67
|
height: 100%;
|
|
56
68
|
display: flex;
|
|
@@ -62,7 +74,7 @@
|
|
|
62
74
|
}
|
|
63
75
|
|
|
64
76
|
/** Align label to other elements on the first column leafs */
|
|
65
|
-
.
|
|
77
|
+
.leaf[x="1"] .leafContent {
|
|
66
78
|
padding-left: var(--space-small);
|
|
67
79
|
}
|
|
68
80
|
|
|
@@ -101,41 +113,41 @@
|
|
|
101
113
|
}
|
|
102
114
|
|
|
103
115
|
/** Tile diff variation */
|
|
104
|
-
.leaf-NO_CHANGE .
|
|
105
|
-
|
|
106
|
-
opacity: 0.4;
|
|
116
|
+
.leaf-NO_CHANGE .leafAction {
|
|
117
|
+
color: var(--color-text-light);
|
|
107
118
|
}
|
|
108
119
|
|
|
109
|
-
.leaf-NO_CHANGE
|
|
110
|
-
|
|
120
|
+
.leaf-NO_CHANGE .leafAction::before {
|
|
121
|
+
color: var(--color-gray-50);
|
|
122
|
+
opacity: 0.4;
|
|
111
123
|
}
|
|
112
124
|
|
|
113
|
-
.leaf-NO_CHANGE .leafAction {
|
|
114
|
-
|
|
125
|
+
.leaf-NO_CHANGE:hover .leafAction::before {
|
|
126
|
+
opacity: 0.2;
|
|
115
127
|
}
|
|
116
128
|
|
|
117
|
-
.leaf-HIGH_NEGATIVE .
|
|
118
|
-
|
|
129
|
+
.leaf-HIGH_NEGATIVE .leafAction::before {
|
|
130
|
+
color: var(--color-red-100);
|
|
119
131
|
}
|
|
120
132
|
|
|
121
|
-
.leaf-NEGATIVE .
|
|
122
|
-
|
|
133
|
+
.leaf-NEGATIVE .leafAction::before {
|
|
134
|
+
color: var(--color-red-50);
|
|
123
135
|
}
|
|
124
136
|
|
|
125
|
-
.leaf-LOW_NEGATIVE .
|
|
126
|
-
|
|
137
|
+
.leaf-LOW_NEGATIVE .leafAction::before {
|
|
138
|
+
color: var(--color-red-25);
|
|
127
139
|
}
|
|
128
140
|
|
|
129
|
-
.leaf-LOW_POSITIVE .
|
|
130
|
-
|
|
141
|
+
.leaf-LOW_POSITIVE .leafAction::before {
|
|
142
|
+
color: var(--color-green-25);
|
|
131
143
|
}
|
|
132
144
|
|
|
133
|
-
.leaf-POSITIVE .
|
|
134
|
-
|
|
145
|
+
.leaf-POSITIVE .leafAction::before {
|
|
146
|
+
color: var(--color-green-50);
|
|
135
147
|
}
|
|
136
148
|
|
|
137
|
-
.leaf-HIGH_POSITIVE .
|
|
138
|
-
|
|
149
|
+
.leaf-HIGH_POSITIVE .leafAction::before {
|
|
150
|
+
color: var(--color-green-100);
|
|
139
151
|
}
|
|
140
152
|
|
|
141
153
|
/** empty message */
|
|
@@ -172,8 +184,15 @@
|
|
|
172
184
|
will-change: filter;
|
|
173
185
|
background: var(--color-light);
|
|
174
186
|
font-size: var(--size-small);
|
|
187
|
+
pointer-events: none;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* prevent tooltip portal wrapper from capturing events */
|
|
191
|
+
div[role="presentation"]:has(.tooltip) {
|
|
192
|
+
pointer-events: none;
|
|
175
193
|
}
|
|
176
194
|
|
|
195
|
+
|
|
177
196
|
.leafTooltipArrow svg {
|
|
178
197
|
display: block;
|
|
179
198
|
fill: var(--color-background) !important;
|
|
@@ -124,10 +124,10 @@ const LeafContentWithTooltip = (props: LeafContentProps & { parentRef: RefObject
|
|
|
124
124
|
return newRect;
|
|
125
125
|
}, [pointer.docX, pointer.docY]);
|
|
126
126
|
|
|
127
|
-
const tooltipState = useTooltipState({ gutter:
|
|
127
|
+
const tooltipState = useTooltipState({ gutter: 12, getAnchorRect, timeout: 120 });
|
|
128
128
|
|
|
129
129
|
// Update tooltip position when poiner values are changing
|
|
130
|
-
useDebounce(tooltipState.render,
|
|
130
|
+
useDebounce(tooltipState.render, 5, [pointer.docX, pointer.docY]);
|
|
131
131
|
|
|
132
132
|
return (
|
|
133
133
|
<>
|
|
@@ -188,23 +188,20 @@ const Leaf = (props: LeafProps) => {
|
|
|
188
188
|
);
|
|
189
189
|
|
|
190
190
|
return (
|
|
191
|
-
<
|
|
192
|
-
<
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
</LeafAction>
|
|
206
|
-
</foreignObject>
|
|
207
|
-
</g>
|
|
191
|
+
<foreignObject height={height} width={width} x={x} y={y} className={leafClassName}>
|
|
192
|
+
<LeafAction onClick={handleOnClick} ref={leafContentRef} className={css.leafAction}>
|
|
193
|
+
{hover ? (
|
|
194
|
+
<LeafContentWithTooltip
|
|
195
|
+
sizeDisplay={sizeDisplay}
|
|
196
|
+
item={item}
|
|
197
|
+
runInfo={runInfo}
|
|
198
|
+
parentRef={leafContentRef}
|
|
199
|
+
/>
|
|
200
|
+
) : (
|
|
201
|
+
<LeafContent sizeDisplay={sizeDisplay} item={item} runInfo={runInfo} />
|
|
202
|
+
)}
|
|
203
|
+
</LeafAction>
|
|
204
|
+
</foreignObject>
|
|
208
205
|
);
|
|
209
206
|
};
|
|
210
207
|
|
|
@@ -16,6 +16,5 @@ export { MetricsTableOptions } from "./metrics-table-options";
|
|
|
16
16
|
export { MetricsTableTitle } from "./metrics-table-title";
|
|
17
17
|
export { ModuleInfo } from "./module-info";
|
|
18
18
|
export { Summary } from "./summary";
|
|
19
|
-
export { TotalSizeTypeTitle } from "./total-size-type-title";
|
|
20
19
|
export { MetricRunInfo, MetricRunInfoProps } from "./metric-run-info";
|
|
21
20
|
export { RunInfo, RunInfoProps } from "./run-info";
|
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { ReportMetricRow } from '@bundle-stats/utils';
|
|
3
3
|
import { Table } from '../../ui/table';
|
|
4
|
-
interface Item {
|
|
5
|
-
key: string;
|
|
6
|
-
label?: string;
|
|
7
|
-
changed: boolean;
|
|
8
|
-
biggerIsBetter: boolean;
|
|
9
|
-
runs: Array<MetricRunInfo | null>;
|
|
10
|
-
}
|
|
11
4
|
interface MetricsTableProps extends Omit<React.ComponentProps<typeof Table>, 'title'> {
|
|
12
5
|
runs: Array<{
|
|
6
|
+
label: string;
|
|
13
7
|
internalBuildNumber: number;
|
|
14
8
|
}>;
|
|
15
|
-
items: Array<
|
|
9
|
+
items: Array<ReportMetricRow>;
|
|
16
10
|
title?: React.ReactNode;
|
|
17
11
|
showHeaderSum?: boolean;
|
|
18
12
|
sort?: any;
|
|
19
13
|
updateSort?: (val: any) => void;
|
|
20
|
-
renderRowHeader?: (item:
|
|
14
|
+
renderRowHeader?: (item: ReportMetricRow) => React.ReactNode;
|
|
21
15
|
emptyMessage?: React.ReactNode;
|
|
22
16
|
showAllItems: boolean;
|
|
23
17
|
setShowAllItems: (value: boolean) => void;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
export declare const BASELINE_TITLE = "Baseline";
|
|
2
|
-
export declare const CURRENT_TITLE = "Current";
|
|
3
|
-
export declare const SORT_VALUE = "value";
|
|
4
|
-
export declare const SORT_CHANGE = "change";
|
|
5
|
-
export declare const SORT_PERCENTUAL_CHANGE = "percentual change";
|
|
6
1
|
export declare const EMPTY_MESSAGE = "No items found.";
|
|
7
2
|
export declare const SHOW_ALL = "Show all";
|
|
8
3
|
export declare const SHOW_LESS = "Show less";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './metrics-table-header';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ReportMetricRow } from '@bundle-stats/utils';
|
|
3
|
+
interface MetricsTableHeaderProps {
|
|
4
|
+
metricTitle?: React.ReactNode;
|
|
5
|
+
showSum?: boolean;
|
|
6
|
+
jobs: Array<{
|
|
7
|
+
label: string;
|
|
8
|
+
internalBuildNumber: number;
|
|
9
|
+
}>;
|
|
10
|
+
rows: Array<ReportMetricRow>;
|
|
11
|
+
sort?: any;
|
|
12
|
+
updateSort?: (val: any) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const MetricsTableHeader: (props: MetricsTableHeaderProps & React.ComponentProps<'thead'>) => React.JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/total-size-type-title/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.TotalSizeTypeTitle = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const prop_types_1 = __importDefault(require("prop-types"));
|
|
9
|
-
const classnames_1 = __importDefault(require("classnames"));
|
|
10
|
-
const config_json_1 = __importDefault(require("../../config.json"));
|
|
11
|
-
const i18n_1 = __importDefault(require("../../i18n"));
|
|
12
|
-
const flex_stack_1 = require("../../layout/flex-stack");
|
|
13
|
-
const stack_1 = require("../../layout/stack");
|
|
14
|
-
const button_1 = require("../../ui/button");
|
|
15
|
-
const icon_1 = require("../../ui/icon");
|
|
16
|
-
const hover_card_1 = require("../../ui/hover-card");
|
|
17
|
-
const total_size_type_title_module_css_1 = __importDefault(require("./total-size-type-title.module.css"));
|
|
18
|
-
const TotalSizeTypeTitle = ({ className }) => (react_1.default.createElement(flex_stack_1.FlexStack, { space: "xxxsmall", alignItems: "center", className: (0, classnames_1.default)(total_size_type_title_module_css_1.default.root, className) },
|
|
19
|
-
react_1.default.createElement("span", { className: total_size_type_title_module_css_1.default.text }, i18n_1.default.ASSET_TOTALS),
|
|
20
|
-
react_1.default.createElement(hover_card_1.HoverCard, { label: react_1.default.createElement(icon_1.Icon, { glyph: icon_1.Icon.ICONS.HELP }), anchorClassName: total_size_type_title_module_css_1.default.anchor },
|
|
21
|
-
react_1.default.createElement(stack_1.Stack, { space: "xxxsmall" },
|
|
22
|
-
react_1.default.createElement("p", null, i18n_1.default.ASSET_TOTALS_INFO),
|
|
23
|
-
react_1.default.createElement("p", null,
|
|
24
|
-
react_1.default.createElement(button_1.Button, { kind: "primary", type: "button", onClick: () => window.open(config_json_1.default.documentation.assets), className: total_size_type_title_module_css_1.default.readMoreLink }, i18n_1.default.READ_MORE))))));
|
|
25
|
-
exports.TotalSizeTypeTitle = TotalSizeTypeTitle;
|
|
26
|
-
exports.TotalSizeTypeTitle.propTypes = {
|
|
27
|
-
className: prop_types_1.default.string,
|
|
28
|
-
};
|
|
29
|
-
exports.TotalSizeTypeTitle.defaultProps = {
|
|
30
|
-
className: '',
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=total-size-type-title.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"total-size-type-title.js","sourceRoot":"","sources":["../../../src/components/total-size-type-title/total-size-type-title.jsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,4DAAmC;AACnC,4DAA4B;AAE5B,oEAAuC;AACvC,sDAA8B;AAC9B,wDAAoD;AACpD,8CAA2C;AAC3C,4CAAyC;AACzC,wCAAqC;AACrC,oDAAgD;AAChD,0GAAqD;AAE9C,MAAM,kBAAkB,GAAG,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CACnD,8BAAC,sBAAS,IAAC,KAAK,EAAC,UAAU,EAAC,UAAU,EAAC,QAAQ,EAAC,SAAS,EAAE,IAAA,oBAAE,EAAC,0CAAG,CAAC,IAAI,EAAE,SAAS,CAAC;IAChF,wCAAM,SAAS,EAAE,0CAAG,CAAC,IAAI,IAAG,cAAI,CAAC,YAAY,CAAQ;IACrD,8BAAC,sBAAS,IAAC,KAAK,EAAE,8BAAC,WAAI,IAAC,KAAK,EAAE,WAAI,CAAC,KAAK,CAAC,IAAI,GAAI,EAAE,eAAe,EAAE,0CAAG,CAAC,MAAM;QAC7E,8BAAC,aAAK,IAAC,KAAK,EAAC,UAAU;YACrB,yCAAI,cAAI,CAAC,iBAAiB,CAAK;YAC/B;gBACE,8BAAC,eAAM,IACL,IAAI,EAAC,SAAS,EACd,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,qBAAM,CAAC,aAAa,CAAC,MAAM,CAAC,EACvD,SAAS,EAAE,0CAAG,CAAC,YAAY,IAE1B,cAAI,CAAC,SAAS,CACR,CACP,CACE,CACE,CACF,CACb,CAAC;AAnBW,QAAA,kBAAkB,sBAmB7B;AAEF,0BAAkB,CAAC,SAAS,GAAG;IAC7B,SAAS,EAAE,oBAAS,CAAC,MAAM;CAC5B,CAAC;AAEF,0BAAkB,CAAC,YAAY,GAAG;IAChC,SAAS,EAAE,EAAE;CACd,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/total-size-type-title/index.js"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import cx from 'classnames';
|
|
4
|
-
import config from '../../config.json';
|
|
5
|
-
import I18N from '../../i18n';
|
|
6
|
-
import { FlexStack } from '../../layout/flex-stack';
|
|
7
|
-
import { Stack } from '../../layout/stack';
|
|
8
|
-
import { Button } from '../../ui/button';
|
|
9
|
-
import { Icon } from '../../ui/icon';
|
|
10
|
-
import { HoverCard } from '../../ui/hover-card';
|
|
11
|
-
import css from './total-size-type-title.module.css';
|
|
12
|
-
export const TotalSizeTypeTitle = ({ className }) => (React.createElement(FlexStack, { space: "xxxsmall", alignItems: "center", className: cx(css.root, className) },
|
|
13
|
-
React.createElement("span", { className: css.text }, I18N.ASSET_TOTALS),
|
|
14
|
-
React.createElement(HoverCard, { label: React.createElement(Icon, { glyph: Icon.ICONS.HELP }), anchorClassName: css.anchor },
|
|
15
|
-
React.createElement(Stack, { space: "xxxsmall" },
|
|
16
|
-
React.createElement("p", null, I18N.ASSET_TOTALS_INFO),
|
|
17
|
-
React.createElement("p", null,
|
|
18
|
-
React.createElement(Button, { kind: "primary", type: "button", onClick: () => window.open(config.documentation.assets), className: css.readMoreLink }, I18N.READ_MORE))))));
|
|
19
|
-
TotalSizeTypeTitle.propTypes = {
|
|
20
|
-
className: PropTypes.string,
|
|
21
|
-
};
|
|
22
|
-
TotalSizeTypeTitle.defaultProps = {
|
|
23
|
-
className: '',
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=total-size-type-title.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"total-size-type-title.js","sourceRoot":"","sources":["../../../src/components/total-size-type-title/total-size-type-title.jsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,IAAI,MAAM,YAAY,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,GAAG,MAAM,oCAAoC,CAAC;AAErD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CACnD,oBAAC,SAAS,IAAC,KAAK,EAAC,UAAU,EAAC,UAAU,EAAC,QAAQ,EAAC,SAAS,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,SAAS,CAAC;IAChF,8BAAM,SAAS,EAAE,GAAG,CAAC,IAAI,IAAG,IAAI,CAAC,YAAY,CAAQ;IACrD,oBAAC,SAAS,IAAC,KAAK,EAAE,oBAAC,IAAI,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,GAAI,EAAE,eAAe,EAAE,GAAG,CAAC,MAAM;QAC7E,oBAAC,KAAK,IAAC,KAAK,EAAC,UAAU;YACrB,+BAAI,IAAI,CAAC,iBAAiB,CAAK;YAC/B;gBACE,oBAAC,MAAM,IACL,IAAI,EAAC,SAAS,EACd,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,EACvD,SAAS,EAAE,GAAG,CAAC,YAAY,IAE1B,IAAI,CAAC,SAAS,CACR,CACP,CACE,CACE,CACF,CACb,CAAC;AAEF,kBAAkB,CAAC,SAAS,GAAG;IAC7B,SAAS,EAAE,SAAS,CAAC,MAAM;CAC5B,CAAC;AAEF,kBAAkB,CAAC,YAAY,GAAG;IAChC,SAAS,EAAE,EAAE;CACd,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './total-size-type-title';
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import cx from 'classnames';
|
|
4
|
-
|
|
5
|
-
import config from '../../config.json';
|
|
6
|
-
import I18N from '../../i18n';
|
|
7
|
-
import { FlexStack } from '../../layout/flex-stack';
|
|
8
|
-
import { Stack } from '../../layout/stack';
|
|
9
|
-
import { Button } from '../../ui/button';
|
|
10
|
-
import { Icon } from '../../ui/icon';
|
|
11
|
-
import { HoverCard } from '../../ui/hover-card';
|
|
12
|
-
import css from './total-size-type-title.module.css';
|
|
13
|
-
|
|
14
|
-
export const TotalSizeTypeTitle = ({ className }) => (
|
|
15
|
-
<FlexStack space="xxxsmall" alignItems="center" className={cx(css.root, className)}>
|
|
16
|
-
<span className={css.text}>{I18N.ASSET_TOTALS}</span>
|
|
17
|
-
<HoverCard label={<Icon glyph={Icon.ICONS.HELP} />} anchorClassName={css.anchor}>
|
|
18
|
-
<Stack space="xxxsmall">
|
|
19
|
-
<p>{I18N.ASSET_TOTALS_INFO}</p>
|
|
20
|
-
<p>
|
|
21
|
-
<Button
|
|
22
|
-
kind="primary"
|
|
23
|
-
type="button"
|
|
24
|
-
onClick={() => window.open(config.documentation.assets)}
|
|
25
|
-
className={css.readMoreLink}
|
|
26
|
-
>
|
|
27
|
-
{I18N.READ_MORE}
|
|
28
|
-
</Button>
|
|
29
|
-
</p>
|
|
30
|
-
</Stack>
|
|
31
|
-
</HoverCard>
|
|
32
|
-
</FlexStack>
|
|
33
|
-
);
|
|
34
|
-
|
|
35
|
-
TotalSizeTypeTitle.propTypes = {
|
|
36
|
-
className: PropTypes.string,
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
TotalSizeTypeTitle.defaultProps = {
|
|
40
|
-
className: '',
|
|
41
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./total-size-type-title";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export function TotalSizeTypeTitle({ className }: {
|
|
2
|
-
className: any;
|
|
3
|
-
}): React.JSX.Element;
|
|
4
|
-
export namespace TotalSizeTypeTitle {
|
|
5
|
-
namespace propTypes {
|
|
6
|
-
let className: PropTypes.Requireable<string>;
|
|
7
|
-
}
|
|
8
|
-
namespace defaultProps {
|
|
9
|
-
let className_1: string;
|
|
10
|
-
export { className_1 as className };
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
import React from 'react';
|
|
14
|
-
import PropTypes from 'prop-types';
|