@bundle-stats/ui 4.13.0-beta.6 → 4.13.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/lib/components/bundle-assets/bundle-assets.js +7 -2
  2. package/lib/components/bundle-assets/bundle-assets.js.map +1 -1
  3. package/lib/components/bundle-assets-totals/bundle-assets-totals.js +13 -6
  4. package/lib/components/bundle-assets-totals/bundle-assets-totals.js.map +1 -1
  5. package/lib/components/bundle-modules/bundle-modules.js +6 -1
  6. package/lib/components/bundle-modules/bundle-modules.js.map +1 -1
  7. package/lib/components/bundle-packages/bundle-packages.js +6 -1
  8. package/lib/components/bundle-packages/bundle-packages.js.map +1 -1
  9. package/lib/components/index.js +1 -3
  10. package/lib/components/index.js.map +1 -1
  11. package/lib/components/metrics-table/metrics-table.i18n.js +1 -6
  12. package/lib/components/metrics-table/metrics-table.i18n.js.map +1 -1
  13. package/lib/components/metrics-table/metrics-table.js +4 -37
  14. package/lib/components/metrics-table/metrics-table.js.map +1 -1
  15. package/lib/components/metrics-table/metrics-table.module.css +1 -44
  16. package/lib/components/{total-size-type-title → metrics-table-header}/index.js +1 -1
  17. package/lib/components/metrics-table-header/index.js.map +1 -0
  18. package/lib/components/metrics-table-header/metrics-table-header.i18n.js +9 -0
  19. package/lib/components/metrics-table-header/metrics-table-header.i18n.js.map +1 -0
  20. package/lib/components/metrics-table-header/metrics-table-header.js +79 -0
  21. package/lib/components/metrics-table-header/metrics-table-header.js.map +1 -0
  22. package/lib/components/metrics-table-header/metrics-table-header.module.css +44 -0
  23. package/lib/components/metrics-table-title/metrics-table-title.js +1 -1
  24. package/lib/components/metrics-table-title/metrics-table-title.js.map +1 -1
  25. package/lib/components/metrics-table-title/metrics-table-title.module.css +3 -4
  26. package/lib/components/metrics-treemap/metrics-treemap.js +4 -6
  27. package/lib/components/metrics-treemap/metrics-treemap.js.map +1 -1
  28. package/lib/components/metrics-treemap/metrics-treemap.module.css +13 -15
  29. package/lib/components/sort-button/sort-button.module.css +1 -0
  30. package/lib-esm/components/bundle-assets/bundle-assets.js +7 -2
  31. package/lib-esm/components/bundle-assets/bundle-assets.js.map +1 -1
  32. package/lib-esm/components/bundle-assets-totals/bundle-assets-totals.js +14 -7
  33. package/lib-esm/components/bundle-assets-totals/bundle-assets-totals.js.map +1 -1
  34. package/lib-esm/components/bundle-modules/bundle-modules.js +6 -1
  35. package/lib-esm/components/bundle-modules/bundle-modules.js.map +1 -1
  36. package/lib-esm/components/bundle-packages/bundle-packages.js +6 -1
  37. package/lib-esm/components/bundle-packages/bundle-packages.js.map +1 -1
  38. package/lib-esm/components/index.js +0 -1
  39. package/lib-esm/components/index.js.map +1 -1
  40. package/lib-esm/components/metrics-table/metrics-table.i18n.js +0 -5
  41. package/lib-esm/components/metrics-table/metrics-table.i18n.js.map +1 -1
  42. package/lib-esm/components/metrics-table/metrics-table.js +4 -37
  43. package/lib-esm/components/metrics-table/metrics-table.js.map +1 -1
  44. package/lib-esm/components/metrics-table/metrics-table.module.css +1 -44
  45. package/lib-esm/components/metrics-table-header/index.js +2 -0
  46. package/lib-esm/components/metrics-table-header/index.js.map +1 -0
  47. package/lib-esm/components/metrics-table-header/metrics-table-header.i18n.js +6 -0
  48. package/lib-esm/components/metrics-table-header/metrics-table-header.i18n.js.map +1 -0
  49. package/lib-esm/components/metrics-table-header/metrics-table-header.js +49 -0
  50. package/lib-esm/components/metrics-table-header/metrics-table-header.js.map +1 -0
  51. package/lib-esm/components/metrics-table-header/metrics-table-header.module.css +44 -0
  52. package/lib-esm/components/metrics-table-title/metrics-table-title.js +1 -1
  53. package/lib-esm/components/metrics-table-title/metrics-table-title.js.map +1 -1
  54. package/lib-esm/components/metrics-table-title/metrics-table-title.module.css +3 -4
  55. package/lib-esm/components/metrics-treemap/metrics-treemap.js +4 -6
  56. package/lib-esm/components/metrics-treemap/metrics-treemap.js.map +1 -1
  57. package/lib-esm/components/metrics-treemap/metrics-treemap.module.css +13 -15
  58. package/lib-esm/components/sort-button/sort-button.module.css +1 -0
  59. package/package.json +5 -5
  60. package/src/components/bundle-assets/bundle-assets.jsx +18 -2
  61. package/src/components/bundle-assets-totals/bundle-assets-totals.jsx +29 -10
  62. package/src/components/bundle-modules/bundle-modules.tsx +13 -1
  63. package/src/components/bundle-packages/bundle-packages.jsx +13 -1
  64. package/src/components/index.js +0 -1
  65. package/src/components/metrics-table/metrics-table.i18n.ts +0 -7
  66. package/src/components/metrics-table/metrics-table.module.css +1 -44
  67. package/src/components/metrics-table/metrics-table.tsx +17 -153
  68. package/src/components/metrics-table-header/index.ts +1 -0
  69. package/src/components/metrics-table-header/metrics-table-header.i18n.ts +6 -0
  70. package/src/components/metrics-table-header/metrics-table-header.module.css +44 -0
  71. package/src/components/metrics-table-header/metrics-table-header.tsx +172 -0
  72. package/src/components/metrics-table-title/metrics-table-title.jsx +1 -1
  73. package/src/components/metrics-table-title/metrics-table-title.module.css +3 -4
  74. package/src/components/metrics-treemap/metrics-treemap.module.css +13 -15
  75. package/src/components/metrics-treemap/metrics-treemap.tsx +27 -28
  76. package/src/components/sort-button/sort-button.module.css +1 -0
  77. package/types/components/index.d.ts +0 -1
  78. package/types/components/metrics-table/metrics-table.d.ts +4 -10
  79. package/types/components/metrics-table/metrics-table.i18n.d.ts +0 -5
  80. package/types/components/metrics-table-header/index.d.ts +1 -0
  81. package/types/components/metrics-table-header/metrics-table-header.d.ts +15 -0
  82. package/types/components/metrics-table-header/metrics-table-header.i18n.d.ts +5 -0
  83. package/lib/components/total-size-type-title/index.js.map +0 -1
  84. package/lib/components/total-size-type-title/total-size-type-title.js +0 -32
  85. package/lib/components/total-size-type-title/total-size-type-title.js.map +0 -1
  86. package/lib/components/total-size-type-title/total-size-type-title.module.css +0 -14
  87. package/lib-esm/components/total-size-type-title/index.js +0 -2
  88. package/lib-esm/components/total-size-type-title/index.js.map +0 -1
  89. package/lib-esm/components/total-size-type-title/total-size-type-title.js +0 -25
  90. package/lib-esm/components/total-size-type-title/total-size-type-title.js.map +0 -1
  91. package/lib-esm/components/total-size-type-title/total-size-type-title.module.css +0 -14
  92. package/src/components/total-size-type-title/index.js +0 -1
  93. package/src/components/total-size-type-title/total-size-type-title.jsx +0 -41
  94. package/src/components/total-size-type-title/total-size-type-title.module.css +0 -14
  95. package/types/components/total-size-type-title/index.d.ts +0 -1
  96. package/types/components/total-size-type-title/total-size-type-title.d.ts +0 -14
@@ -22,15 +22,13 @@
22
22
  }
23
23
 
24
24
  /** Leaf wrapper button */
25
- .leafAction {
26
- position: relative;
25
+ .leaf {
26
+ position: absolute;
27
27
  appearance: none;
28
28
  border: 0;
29
29
  border-radius: 0;
30
30
  padding: 0;
31
31
  background: none;
32
- width: 100%;
33
- height: 100%;
34
32
  display: flex;
35
33
  align-items: center;
36
34
  font-family: var(--font-family-fixed);
@@ -39,7 +37,7 @@
39
37
  text-align: left;
40
38
  }
41
39
 
42
- .leafAction::before {
40
+ .leaf::before {
43
41
  content: "";
44
42
  display: block;
45
43
  position: absolute;
@@ -55,7 +53,7 @@
55
53
  opacity: 0.6;
56
54
  }
57
55
 
58
- .leaf:hover .leafAction::before {
56
+ .leaf:hover::before {
59
57
  transition: var(--ui-transition-in);
60
58
  opacity: 0.4;
61
59
  }
@@ -113,40 +111,40 @@
113
111
  }
114
112
 
115
113
  /** Tile diff variation */
116
- .leaf-NO_CHANGE .leafAction {
114
+ .leaf-NO_CHANGE {
117
115
  color: var(--color-text-light);
118
116
  }
119
117
 
120
- .leaf-NO_CHANGE .leafAction::before {
118
+ .leaf-NO_CHANGE::before {
121
119
  color: var(--color-gray-50);
122
120
  opacity: 0.4;
123
121
  }
124
122
 
125
- .leaf-NO_CHANGE:hover .leafAction::before {
123
+ .leaf-NO_CHANGE:hover::before {
126
124
  opacity: 0.2;
127
125
  }
128
126
 
129
- .leaf-HIGH_NEGATIVE .leafAction::before {
127
+ .leaf-HIGH_NEGATIVE::before {
130
128
  color: var(--color-red-100);
131
129
  }
132
130
 
133
- .leaf-NEGATIVE .leafAction::before {
131
+ .leaf-NEGATIVE::before {
134
132
  color: var(--color-red-50);
135
133
  }
136
134
 
137
- .leaf-LOW_NEGATIVE .leafAction::before {
135
+ .leaf-LOW_NEGATIVE::before {
138
136
  color: var(--color-red-25);
139
137
  }
140
138
 
141
- .leaf-LOW_POSITIVE .leafAction::before {
139
+ .leaf-LOW_POSITIVE::before {
142
140
  color: var(--color-green-25);
143
141
  }
144
142
 
145
- .leaf-POSITIVE .leafAction::before {
143
+ .leaf-POSITIVE::before {
146
144
  color: var(--color-green-50);
147
145
  }
148
146
 
149
- .leaf-HIGH_POSITIVE .leafAction::before {
147
+ .leaf-HIGH_POSITIVE::before {
150
148
  color: var(--color-green-100);
151
149
  }
152
150
 
@@ -142,11 +142,6 @@ const LeafContentWithTooltip = (props: LeafContentProps & { parentRef: RefObject
142
142
  );
143
143
  };
144
144
 
145
- const LeafAction = forwardRef((props: React.ComponentProps<'button'>, ref) => (
146
- // @ts-expect-error
147
- <button type="button" xmlns="http://www.w3.org/1999/xhtml" ref={ref} {...props} />
148
- ));
149
-
150
145
  interface TreeNode {
151
146
  id: string;
152
147
  value: number;
@@ -161,8 +156,8 @@ interface RootTree {
161
156
  }
162
157
 
163
158
  interface LeafProps {
164
- x: number;
165
- y: number;
159
+ left: number;
160
+ top: number;
166
161
  width: number;
167
162
  height: number;
168
163
  data: TreeNode;
@@ -170,7 +165,7 @@ interface LeafProps {
170
165
  }
171
166
 
172
167
  const Leaf = (props: LeafProps) => {
173
- const { x, y, width, height, data, onClick } = props;
168
+ const { left, top, width, height, data, onClick } = props;
174
169
 
175
170
  const { item } = data;
176
171
  const runInfo = item.runs?.[0] as MetricRunInfo;
@@ -178,7 +173,7 @@ const Leaf = (props: LeafProps) => {
178
173
  const sizeDisplay = useMemo(() => resolveLeafSizeDisplay(width, height), [width, height]);
179
174
  const handleOnClick = useCallback(() => onClick?.(item.key), [item.key, onClick]);
180
175
 
181
- const leafContentRef = useRef<HTMLElement>(null);
176
+ const leafContentRef = useRef<HTMLButtonElement>(null);
182
177
  const hover = useHoverDirty(leafContentRef);
183
178
 
184
179
  const leafClassName = cx(
@@ -188,20 +183,24 @@ const Leaf = (props: LeafProps) => {
188
183
  );
189
184
 
190
185
  return (
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>
186
+ <button
187
+ type="button"
188
+ onClick={handleOnClick}
189
+ ref={leafContentRef}
190
+ style={{ left, top, width, height }}
191
+ className={leafClassName}
192
+ >
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
+ </button>
205
204
  );
206
205
  };
207
206
 
@@ -275,7 +274,7 @@ export const MetricsTreemap = (props: MetricsTreemapProps & React.ComponentProps
275
274
  return (
276
275
  <div className={cx(css.root, className)} {...restProps} ref={containerRef}>
277
276
  {cells.length > 0 ? (
278
- <svg viewBox={`0 0 ${width} ${height}`} className={css.canvas}>
277
+ <div className={css.canvas}>
279
278
  {cells.map((leaf) => {
280
279
  if (!leaf.parent) {
281
280
  return null;
@@ -283,17 +282,17 @@ export const MetricsTreemap = (props: MetricsTreemapProps & React.ComponentProps
283
282
 
284
283
  return (
285
284
  <Leaf
286
- x={leaf.x0}
287
- y={leaf.y0}
285
+ data={leaf.data as TreeNode}
286
+ left={leaf.x0}
287
+ top={leaf.y0}
288
288
  width={leaf.x1 - leaf.x0}
289
289
  height={leaf.y1 - leaf.y0}
290
- data={leaf.data as TreeNode}
291
290
  onClick={onItemClick}
292
291
  key={leaf.id}
293
292
  />
294
293
  );
295
294
  })}
296
- </svg>
295
+ </div>
297
296
  ) : (
298
297
  <div className={css.emptyMessage}>
299
298
  <div className={css.emptyMessageWrapper}>{emptyMessage}</div>
@@ -3,6 +3,7 @@
3
3
  display: inline-block;
4
4
  border-radius: var(--radius-small);
5
5
  position: relative;
6
+ color: var(--color-text-ultra-light);
6
7
  }
7
8
 
8
9
  .toggle {
@@ -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 { type MetricRunInfo } from '@bundle-stats/utils';
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<Item>;
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: Item) => React.ReactNode;
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 {};
@@ -0,0 +1,5 @@
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";
@@ -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,14 +0,0 @@
1
- .root {
2
- color: var(--color-text-light);
3
- }
4
-
5
- .text {
6
- font-weight: bold;
7
- font-size: var(--size-medium);
8
- line-height: var(--space-medium);
9
- text-transform: uppercase;
10
- }
11
-
12
- .anchor {
13
- display: block;
14
- }
@@ -1,2 +0,0 @@
1
- export * from './total-size-type-title';
2
- //# sourceMappingURL=index.js.map
@@ -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,14 +0,0 @@
1
- .root {
2
- color: var(--color-text-light);
3
- }
4
-
5
- .text {
6
- font-weight: bold;
7
- font-size: var(--size-medium);
8
- line-height: var(--space-medium);
9
- text-transform: uppercase;
10
- }
11
-
12
- .anchor {
13
- display: block;
14
- }
@@ -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,14 +0,0 @@
1
- .root {
2
- color: var(--color-text-light);
3
- }
4
-
5
- .text {
6
- font-weight: bold;
7
- font-size: var(--size-medium);
8
- line-height: var(--space-medium);
9
- text-transform: uppercase;
10
- }
11
-
12
- .anchor {
13
- display: block;
14
- }
@@ -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';