@bundle-stats/ui 3.2.7-beta.3 → 3.2.7-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [3.2.7-beta.3](https://github.com/relative-ci/bundle-stats/compare/v3.2.7-beta.2...v3.2.7-beta.3) (2022-03-09)
6
+ ## [3.2.7-beta.5](https://github.com/relative-ci/bundle-stats/compare/v3.2.7-beta.4...v3.2.7-beta.5) (2022-03-09)
7
7
 
8
8
  **Note:** Version bump only for package @bundle-stats/ui
9
9
 
@@ -11,19 +11,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- ## [3.2.7-beta.2](https://github.com/relative-ci/bundle-stats/compare/v3.2.7-beta.1...v3.2.7-beta.2) (2022-03-08)
15
-
16
- **Note:** Version bump only for package @bundle-stats/ui
17
-
18
-
19
-
20
-
21
-
22
- ## [3.2.7-beta.1](https://github.com/relative-ci/bundle-stats/compare/v3.2.6...v3.2.7-beta.1) (2022-03-08)
14
+ ## [3.2.7-beta.4](https://github.com/relative-ci/bundle-stats/compare/v3.2.6...v3.2.7-beta.4) (2022-03-09)
23
15
 
24
16
 
25
17
  ### Bug Fixes
26
18
 
19
+ * **ui:** App - consistent vertical spacing ([4f29d3d](https://github.com/relative-ci/bundle-stats/commit/4f29d3d47edc7f89858f0948d0cdc1e22ce5b157))
27
20
  * **ui:** HoverCard - prevent default on close ([9fae6a4](https://github.com/relative-ci/bundle-stats/commit/9fae6a4825d1a016e3b626168f73ca0a90213d10))
28
21
  * **ui:** MetricsTable - consistent toolbar spacing ([fcaf38d](https://github.com/relative-ci/bundle-stats/commit/fcaf38df698329bc00bc267e72289fec8064cc61))
29
22
 
package/lib/app/app.js CHANGED
@@ -236,7 +236,7 @@ var AppComponent = function AppComponent(_ref2) {
236
236
  path: _constants.URLS.OVERVIEW,
237
237
  render: function render() {
238
238
  return /*#__PURE__*/_react["default"].createElement(_stack.Stack, {
239
- space: "large"
239
+ space: "medium"
240
240
  }, duplicatePackagesInsights && /*#__PURE__*/_react["default"].createElement(_container.Container, null, /*#__PURE__*/_react["default"].createElement(_duplicatePackagesWarning.DuplicatePackagesWarning, {
241
241
  duplicatePackagesCount: duplicatePackagesCount,
242
242
  showDelta: jobs.length > 1
@@ -13,7 +13,7 @@
13
13
  }
14
14
 
15
15
  .summaryContainer {
16
- padding-top: var(--space-large);
16
+ padding-top: var(--space-medium);
17
17
  padding-bottom: var(--space-small);
18
18
  }
19
19
 
@@ -35,8 +35,8 @@
35
35
  }
36
36
 
37
37
  .tabsContent {
38
- padding-top: var(--space-large);
39
- padding-bottom: var(--space-large);
38
+ padding-top: var(--space-medium);
39
+ padding-bottom: var(--space-medium);
40
40
  min-height: 480px;
41
41
  }
42
42
 
@@ -15,8 +15,6 @@ var _classnames = _interopRequireDefault(require("classnames"));
15
15
 
16
16
  var _hovercard = require("ariakit/hovercard");
17
17
 
18
- var _icon = require("../icon");
19
-
20
18
  var _hoverCardModule = _interopRequireDefault(require("./hover-card.module.css"));
21
19
 
22
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
@@ -75,14 +73,7 @@ var HoverCard = function HoverCard(props) {
75
73
  size: 24
76
74
  }), typeof children === 'function' ? children({
77
75
  close: state.hide
78
- }) : children, /*#__PURE__*/_react["default"].createElement(_icon.Icon, {
79
- glyph: "close",
80
- size: "small",
81
- as: "button",
82
- type: "button",
83
- className: _hoverCardModule["default"].closeBtn,
84
- onClick: handleOnClose
85
- })));
76
+ }) : children));
86
77
  };
87
78
 
88
79
  exports.HoverCard = HoverCard;
@@ -15,12 +15,11 @@ buton.anchor {
15
15
 
16
16
  a.anchor:hover,
17
17
  button.anchor:hover {
18
- color: var(--color-primary);
19
18
  text-decoration: underline;
20
19
  }
21
20
 
22
21
  .hoverCard {
23
- padding: var(--space-xsmall) var(--space-large) var(--space-xsmall) var(--space-small);
22
+ padding: var(--space-xsmall) var(--space-small);
24
23
  border-radius: var(--radius-medium);
25
24
  max-width: 320px;
26
25
  outline: none;
@@ -29,24 +28,3 @@ button.anchor:hover {
29
28
  background: var(--color-light);
30
29
  font-size: var(--size-small);
31
30
  }
32
-
33
- .closeBtn {
34
- position: absolute;
35
- right: var(--space-xxxsmall);
36
- top: var(--space-xxxsmall);
37
- width: var(--space-large);
38
- height: var(--space-large);
39
- padding: var(--space-xxsmall);
40
- background: none;
41
- border: none;
42
- cursor: pointer;
43
- color: var(--color-text-ultra-light);
44
- transition: var(--transition-out);
45
- }
46
-
47
- .closeBtn:hover,
48
- .closeBtn:active,
49
- .closeBtn:focus {
50
- color: var(--color-text-light);
51
- transition: var(--transition-in);
52
- }
@@ -176,7 +176,7 @@ const AppComponent = _ref2 => {
176
176
  exact: true,
177
177
  path: URLS.OVERVIEW,
178
178
  render: () => /*#__PURE__*/React.createElement(Stack, {
179
- space: "large"
179
+ space: "medium"
180
180
  }, duplicatePackagesInsights && /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(DuplicatePackagesWarning, {
181
181
  duplicatePackagesCount: duplicatePackagesCount,
182
182
  showDelta: jobs.length > 1
@@ -13,7 +13,7 @@
13
13
  }
14
14
 
15
15
  .summaryContainer {
16
- padding-top: var(--space-large);
16
+ padding-top: var(--space-medium);
17
17
  padding-bottom: var(--space-small);
18
18
  }
19
19
 
@@ -35,8 +35,8 @@
35
35
  }
36
36
 
37
37
  .tabsContent {
38
- padding-top: var(--space-large);
39
- padding-bottom: var(--space-large);
38
+ padding-top: var(--space-medium);
39
+ padding-bottom: var(--space-medium);
40
40
  min-height: 480px;
41
41
  }
42
42
 
@@ -4,7 +4,6 @@ import React, { useCallback } from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import cx from 'classnames';
6
6
  import { Hovercard, HovercardAnchor, HovercardArrow, useHovercard, useHovercardState } from 'ariakit/hovercard';
7
- import { Icon } from '../icon';
8
7
  import css from './hover-card.module.css';
9
8
 
10
9
  const resolveComponent = (as, href) => {
@@ -57,14 +56,7 @@ export const HoverCard = props => {
57
56
  size: 24
58
57
  }), typeof children === 'function' ? children({
59
58
  close: state.hide
60
- }) : children, /*#__PURE__*/React.createElement(Icon, {
61
- glyph: "close",
62
- size: "small",
63
- as: "button",
64
- type: "button",
65
- className: css.closeBtn,
66
- onClick: handleOnClose
67
- })));
59
+ }) : children));
68
60
  };
69
61
  HoverCard.propTypes = {
70
62
  /** Adopted child class name */
@@ -15,12 +15,11 @@ buton.anchor {
15
15
 
16
16
  a.anchor:hover,
17
17
  button.anchor:hover {
18
- color: var(--color-primary);
19
18
  text-decoration: underline;
20
19
  }
21
20
 
22
21
  .hoverCard {
23
- padding: var(--space-xsmall) var(--space-large) var(--space-xsmall) var(--space-small);
22
+ padding: var(--space-xsmall) var(--space-small);
24
23
  border-radius: var(--radius-medium);
25
24
  max-width: 320px;
26
25
  outline: none;
@@ -29,24 +28,3 @@ button.anchor:hover {
29
28
  background: var(--color-light);
30
29
  font-size: var(--size-small);
31
30
  }
32
-
33
- .closeBtn {
34
- position: absolute;
35
- right: var(--space-xxxsmall);
36
- top: var(--space-xxxsmall);
37
- width: var(--space-large);
38
- height: var(--space-large);
39
- padding: var(--space-xxsmall);
40
- background: none;
41
- border: none;
42
- cursor: pointer;
43
- color: var(--color-text-ultra-light);
44
- transition: var(--transition-out);
45
- }
46
-
47
- .closeBtn:hover,
48
- .closeBtn:active,
49
- .closeBtn:focus {
50
- color: var(--color-text-light);
51
- transition: var(--transition-in);
52
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bundle-stats/ui",
3
- "version": "3.2.7-beta.3",
3
+ "version": "3.2.7-beta.5",
4
4
  "description": "UI components for BundleStats projects.",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",
@@ -85,12 +85,12 @@
85
85
  "react-router-dom": "5.3.0"
86
86
  },
87
87
  "dependencies": {
88
- "@bundle-stats/utils": "^3.2.7-beta.3",
88
+ "@bundle-stats/utils": "^3.2.7-beta.5",
89
89
  "ariakit": "2.0.0-alpha.19",
90
90
  "date-fns": "2.28.0",
91
91
  "modern-css-reset": "1.4.0",
92
92
  "query-string": "7.1.1",
93
93
  "use-query-params": "1.2.3"
94
94
  },
95
- "gitHead": "23478e08f6882f7c20f373f5bb9bc3beaaea4ea7"
95
+ "gitHead": "06fce09ac6b206ed1bf3a5c7bd187d4b82e2a0d0"
96
96
  }
package/src/app/app.jsx CHANGED
@@ -182,7 +182,7 @@ const AppComponent = ({ version, jobs }) => {
182
182
  exact
183
183
  path={URLS.OVERVIEW}
184
184
  render={() => (
185
- <Stack space="large">
185
+ <Stack space="medium">
186
186
  {duplicatePackagesInsights && (
187
187
  <Container>
188
188
  <DuplicatePackagesWarning
@@ -13,7 +13,7 @@
13
13
  }
14
14
 
15
15
  .summaryContainer {
16
- padding-top: var(--space-large);
16
+ padding-top: var(--space-medium);
17
17
  padding-bottom: var(--space-small);
18
18
  }
19
19
 
@@ -35,8 +35,8 @@
35
35
  }
36
36
 
37
37
  .tabsContent {
38
- padding-top: var(--space-large);
39
- padding-bottom: var(--space-large);
38
+ padding-top: var(--space-medium);
39
+ padding-bottom: var(--space-medium);
40
40
  min-height: 480px;
41
41
  }
42
42
 
@@ -9,7 +9,6 @@ import {
9
9
  useHovercardState,
10
10
  } from 'ariakit/hovercard';
11
11
 
12
- import { Icon } from '../icon';
13
12
  import css from './hover-card.module.css';
14
13
 
15
14
  const resolveComponent = (as, href) => {
@@ -53,14 +52,6 @@ export const HoverCard = (props) => {
53
52
  >
54
53
  <HovercardArrow size={24} />
55
54
  {typeof children === 'function' ? children({ close: state.hide }) : children}
56
- <Icon
57
- glyph="close"
58
- size="small"
59
- as="button"
60
- type="button"
61
- className={css.closeBtn}
62
- onClick={handleOnClose}
63
- />
64
55
  </Hovercard>
65
56
  </div>
66
57
  );
@@ -15,12 +15,11 @@ buton.anchor {
15
15
 
16
16
  a.anchor:hover,
17
17
  button.anchor:hover {
18
- color: var(--color-primary);
19
18
  text-decoration: underline;
20
19
  }
21
20
 
22
21
  .hoverCard {
23
- padding: var(--space-xsmall) var(--space-large) var(--space-xsmall) var(--space-small);
22
+ padding: var(--space-xsmall) var(--space-small);
24
23
  border-radius: var(--radius-medium);
25
24
  max-width: 320px;
26
25
  outline: none;
@@ -29,24 +28,3 @@ button.anchor:hover {
29
28
  background: var(--color-light);
30
29
  font-size: var(--size-small);
31
30
  }
32
-
33
- .closeBtn {
34
- position: absolute;
35
- right: var(--space-xxxsmall);
36
- top: var(--space-xxxsmall);
37
- width: var(--space-large);
38
- height: var(--space-large);
39
- padding: var(--space-xxsmall);
40
- background: none;
41
- border: none;
42
- cursor: pointer;
43
- color: var(--color-text-ultra-light);
44
- transition: var(--transition-out);
45
- }
46
-
47
- .closeBtn:hover,
48
- .closeBtn:active,
49
- .closeBtn:focus {
50
- color: var(--color-text-light);
51
- transition: var(--transition-in);
52
- }