@bundle-stats/ui 4.0.5 → 4.0.6-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/bundle-modules/bundle-modules.module.css +1 -0
- package/lib/query-state.js +9 -7
- package/lib/ui/dropdown/dropdown.js +5 -2
- package/lib/ui/dropdown/dropdown.module.css +4 -2
- package/lib/ui/tooltip/tooltip.module.css +1 -0
- package/lib/ui/tooltip/tooltip.stories.js +34 -17
- package/lib-esm/components/bundle-assets/bundle-assets.utils.js +0 -1
- package/lib-esm/components/bundle-modules/bundle-modules.module.css +1 -0
- package/lib-esm/components/bundle-packages/bundle-packages.utils.js +0 -1
- package/lib-esm/components/summary/summary.js +0 -1
- package/lib-esm/query-state.js +9 -10
- package/lib-esm/ui/dropdown/dropdown.js +5 -2
- package/lib-esm/ui/dropdown/dropdown.module.css +4 -2
- package/lib-esm/ui/filters/filters.js +0 -2
- package/lib-esm/ui/tooltip/tooltip.module.css +1 -0
- package/lib-esm/ui/tooltip/tooltip.stories.js +22 -11
- package/package.json +15 -15
- package/src/components/bundle-modules/bundle-modules.module.css +1 -0
- package/src/query-state.jsx +12 -9
- package/src/ui/dropdown/dropdown.jsx +2 -2
- package/src/ui/dropdown/dropdown.module.css +4 -2
- package/src/ui/tooltip/tooltip.module.css +1 -0
package/lib/query-state.js
CHANGED
|
@@ -13,10 +13,12 @@ var _isEqual2 = _interopRequireDefault(require("lodash/isEqual"));
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
|
|
16
|
-
var _reactRouterDom = require("react-router-dom");
|
|
17
|
-
|
|
18
16
|
var _useQueryParams4 = require("use-query-params");
|
|
19
17
|
|
|
18
|
+
var _reactRouter = require("use-query-params/adapters/react-router-5");
|
|
19
|
+
|
|
20
|
+
var _queryString = require("query-string");
|
|
21
|
+
|
|
20
22
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
23
|
|
|
22
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; }
|
|
@@ -40,12 +42,12 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
40
42
|
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
43
|
|
|
42
44
|
var QueryStateProvider = function QueryStateProvider(props) {
|
|
43
|
-
var history = (0, _reactRouterDom.useHistory)();
|
|
44
|
-
var location = (0, _reactRouterDom.useLocation)();
|
|
45
45
|
return /*#__PURE__*/_react["default"].createElement(_useQueryParams4.QueryParamProvider, _extends({
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
adapter: _reactRouter.ReactRouter5Adapter,
|
|
47
|
+
options: {
|
|
48
|
+
searchStringToObject: _queryString.parse,
|
|
49
|
+
objectToSearchString: _queryString.stringify
|
|
50
|
+
}
|
|
49
51
|
}, props));
|
|
50
52
|
};
|
|
51
53
|
|
|
@@ -37,11 +37,14 @@ var Dropdown = function Dropdown(props) {
|
|
|
37
37
|
className: (0, _classnames["default"])(_dropdownModule["default"].button, buttonClassName),
|
|
38
38
|
tabIndex: null
|
|
39
39
|
}, /*#__PURE__*/_react["default"].createElement(_flexStack.FlexStack, {
|
|
40
|
-
space: "xxxsmall"
|
|
40
|
+
space: "xxxsmall",
|
|
41
|
+
className: _dropdownModule["default"].label
|
|
41
42
|
}, glyph && /*#__PURE__*/_react["default"].createElement(_icon.Icon, {
|
|
42
43
|
className: _dropdownModule["default"].labelIcon,
|
|
43
44
|
glyph: glyph
|
|
44
|
-
}), label
|
|
45
|
+
}), label && /*#__PURE__*/_react["default"].createElement("span", {
|
|
46
|
+
className: _dropdownModule["default"].labelText
|
|
47
|
+
}, label))), /*#__PURE__*/_react["default"].createElement(_menu.Menu, {
|
|
45
48
|
state: menuState,
|
|
46
49
|
"aria-label": ariaLabel || label,
|
|
47
50
|
className: _dropdownModule["default"].dropdown
|
|
@@ -10,8 +10,6 @@
|
|
|
10
10
|
border: 1px solid var(--color-outline);
|
|
11
11
|
border-radius: var(--radius-small);
|
|
12
12
|
padding: calc(var(--space-xxsmall) - 1px);
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
13
|
|
|
16
14
|
background: none;
|
|
17
15
|
font-size: var(--size-small);
|
|
@@ -31,6 +29,10 @@
|
|
|
31
29
|
color: var(--color-text);
|
|
32
30
|
}
|
|
33
31
|
|
|
32
|
+
.label {
|
|
33
|
+
align-items: center;
|
|
34
|
+
}
|
|
35
|
+
|
|
34
36
|
.dropdown {
|
|
35
37
|
position: absolute;
|
|
36
38
|
left: 0;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
padding: var(--space-xxxsmall) var(--space-xxsmall);
|
|
15
15
|
border-radius: var(--radius-medium);
|
|
16
16
|
background: var(--color-light);
|
|
17
|
+
max-width: 24em;
|
|
17
18
|
color: var(--color-text);
|
|
18
19
|
filter: drop-shadow(0 0 var(--space-xxxsmall) var(--color-shadow));
|
|
19
20
|
will-change: filter;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = exports.LongTooltip = exports.Default = exports.DarkModeFalse = void 0;
|
|
4
7
|
|
|
5
|
-
var
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
6
9
|
|
|
7
10
|
var _stories = require("../../stories");
|
|
8
11
|
|
|
@@ -10,18 +13,32 @@ var _ = require(".");
|
|
|
10
13
|
|
|
11
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
15
|
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
var _default = {
|
|
17
|
+
title: 'UI/Tooltip',
|
|
18
|
+
component: _.Tooltip,
|
|
19
|
+
decorators: [(0, _stories.getWrapperDecorator)({
|
|
20
|
+
padding: '100px',
|
|
21
|
+
textAlign: 'center'
|
|
22
|
+
})],
|
|
23
|
+
args: {
|
|
24
|
+
title: 'View job #123'
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports["default"] = _default;
|
|
28
|
+
|
|
29
|
+
var Template = function Template(props) {
|
|
30
|
+
return /*#__PURE__*/_react["default"].createElement(_.Tooltip, props, "Job #123");
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
var Default = Template.bind();
|
|
34
|
+
exports.Default = Default;
|
|
35
|
+
var LongTooltip = Template.bind();
|
|
36
|
+
exports.LongTooltip = LongTooltip;
|
|
37
|
+
LongTooltip.args = {
|
|
38
|
+
title: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam molestie neque id lectus mollis, et imperdiet libero porta.'
|
|
39
|
+
};
|
|
40
|
+
var DarkModeFalse = Template.bind();
|
|
41
|
+
exports.DarkModeFalse = DarkModeFalse;
|
|
42
|
+
DarkModeFalse.args = {
|
|
43
|
+
darkMode: false
|
|
44
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _get from "lodash/get";
|
|
2
|
-
import "core-js/modules/es.array.includes.js";
|
|
3
2
|
import { ASSET_ENTRY_TYPE, ASSET_FILE_TYPE, ASSET_FILTERS, getFileType } from '@bundle-stats/utils';
|
|
4
3
|
import { SORT_BY_NAME, SORT_BY_DELTA, SORT_BY_SIZE } from './bundle-assets.constants';
|
|
5
4
|
export const addRowAssetFlags = row => {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _uniq from "lodash/uniq";
|
|
2
2
|
import _flatten from "lodash/flatten";
|
|
3
3
|
import _get from "lodash/get";
|
|
4
|
-
import "core-js/modules/es.array.includes.js";
|
|
5
4
|
import { PACKAGE_FILTERS } from '@bundle-stats/utils';
|
|
6
5
|
import { SORT_BY_NAME, SORT_BY_DELTA, SORT_BY_SIZE } from './bundle-packages.constants'; // Get a list of duplicate packages across jobs
|
|
7
6
|
|
|
@@ -2,7 +2,6 @@ import _get from "lodash/get";
|
|
|
2
2
|
|
|
3
3
|
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); }
|
|
4
4
|
|
|
5
|
-
import "core-js/modules/es.array.includes.js";
|
|
6
5
|
import React from 'react';
|
|
7
6
|
import PropTypes from 'prop-types';
|
|
8
7
|
import cx from 'classnames';
|
package/lib-esm/query-state.js
CHANGED
|
@@ -4,17 +4,16 @@ import _isEqual from "lodash/isEqual";
|
|
|
4
4
|
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); }
|
|
5
5
|
|
|
6
6
|
import React, { useCallback } from 'react';
|
|
7
|
-
import { Route, useHistory, useLocation } from 'react-router-dom';
|
|
8
7
|
import { JsonParam, QueryParamProvider, useQueryParams } from 'use-query-params';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
};
|
|
8
|
+
import { ReactRouter5Adapter } from 'use-query-params/adapters/react-router-5';
|
|
9
|
+
import { parse, stringify } from 'query-string';
|
|
10
|
+
export const QueryStateProvider = props => /*#__PURE__*/React.createElement(QueryParamProvider, _extends({
|
|
11
|
+
adapter: ReactRouter5Adapter,
|
|
12
|
+
options: {
|
|
13
|
+
searchStringToObject: parse,
|
|
14
|
+
objectToSearchString: stringify
|
|
15
|
+
}
|
|
16
|
+
}, props));
|
|
18
17
|
export const useComponentQueryState = componentName => {
|
|
19
18
|
const [search, setSearch] = useQueryParams({
|
|
20
19
|
[componentName]: JsonParam
|
|
@@ -23,11 +23,14 @@ export const Dropdown = props => {
|
|
|
23
23
|
className: cx(css.button, buttonClassName),
|
|
24
24
|
tabIndex: null
|
|
25
25
|
}, /*#__PURE__*/React.createElement(FlexStack, {
|
|
26
|
-
space: "xxxsmall"
|
|
26
|
+
space: "xxxsmall",
|
|
27
|
+
className: css.label
|
|
27
28
|
}, glyph && /*#__PURE__*/React.createElement(Icon, {
|
|
28
29
|
className: css.labelIcon,
|
|
29
30
|
glyph: glyph
|
|
30
|
-
}), label
|
|
31
|
+
}), label && /*#__PURE__*/React.createElement("span", {
|
|
32
|
+
className: css.labelText
|
|
33
|
+
}, label))), /*#__PURE__*/React.createElement(Menu, {
|
|
31
34
|
state: menuState,
|
|
32
35
|
"aria-label": ariaLabel || label,
|
|
33
36
|
className: css.dropdown
|
|
@@ -10,8 +10,6 @@
|
|
|
10
10
|
border: 1px solid var(--color-outline);
|
|
11
11
|
border-radius: var(--radius-small);
|
|
12
12
|
padding: calc(var(--space-xxsmall) - 1px);
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
13
|
|
|
16
14
|
background: none;
|
|
17
15
|
font-size: var(--size-small);
|
|
@@ -31,6 +29,10 @@
|
|
|
31
29
|
color: var(--color-text);
|
|
32
30
|
}
|
|
33
31
|
|
|
32
|
+
.label {
|
|
33
|
+
align-items: center;
|
|
34
|
+
}
|
|
35
|
+
|
|
34
36
|
.dropdown {
|
|
35
37
|
position: absolute;
|
|
36
38
|
left: 0;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import "core-js/modules/es.array.includes.js";
|
|
2
|
-
|
|
3
1
|
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); }
|
|
4
2
|
|
|
5
3
|
import React, { useCallback } from 'react';
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
padding: var(--space-xxxsmall) var(--space-xxsmall);
|
|
15
15
|
border-radius: var(--radius-medium);
|
|
16
16
|
background: var(--color-light);
|
|
17
|
+
max-width: 24em;
|
|
17
18
|
color: var(--color-text);
|
|
18
19
|
filter: drop-shadow(0 0 var(--space-xxxsmall) var(--color-shadow));
|
|
19
20
|
will-change: filter;
|
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { storiesOf } from '@storybook/react';
|
|
3
2
|
import { getWrapperDecorator } from '../../stories';
|
|
4
3
|
import { Tooltip } from '.';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
export default {
|
|
5
|
+
title: 'UI/Tooltip',
|
|
6
|
+
component: Tooltip,
|
|
7
|
+
decorators: [getWrapperDecorator({
|
|
8
|
+
padding: '100px',
|
|
9
|
+
textAlign: 'center'
|
|
10
|
+
})],
|
|
11
|
+
args: {
|
|
12
|
+
title: 'View job #123'
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const Template = props => /*#__PURE__*/React.createElement(Tooltip, props, "Job #123");
|
|
17
|
+
|
|
18
|
+
export const Default = Template.bind();
|
|
19
|
+
export const LongTooltip = Template.bind();
|
|
20
|
+
LongTooltip.args = {
|
|
21
|
+
title: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam molestie neque id lectus mollis, et imperdiet libero porta.'
|
|
22
|
+
};
|
|
23
|
+
export const DarkModeFalse = Template.bind();
|
|
24
|
+
DarkModeFalse.args = {
|
|
14
25
|
darkMode: false
|
|
15
|
-
}
|
|
26
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bundle-stats/ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.6-beta.0",
|
|
4
4
|
"description": "UI components for BundleStats projects.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-esm/index.js",
|
|
@@ -36,25 +36,25 @@
|
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://github.com/relative-ci/bundle-stats/blob/master/packages/ui#readme",
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@babel/cli": "7.18.
|
|
40
|
-
"@babel/core": "7.18.
|
|
39
|
+
"@babel/cli": "7.18.10",
|
|
40
|
+
"@babel/core": "7.18.13",
|
|
41
41
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
42
|
-
"@babel/preset-env": "7.18.
|
|
42
|
+
"@babel/preset-env": "7.18.10",
|
|
43
43
|
"@babel/preset-react": "7.18.6",
|
|
44
44
|
"@simplyianm/babel-plugin-inline-react-svg": "1.2.0",
|
|
45
|
-
"@storybook/addon-essentials": "6.5.
|
|
45
|
+
"@storybook/addon-essentials": "6.5.10",
|
|
46
46
|
"@storybook/addon-knobs": "6.4.0",
|
|
47
47
|
"@storybook/addon-postcss": "2.0.0",
|
|
48
|
-
"@storybook/addon-storyshots": "6.5.
|
|
49
|
-
"@storybook/addons": "6.5.
|
|
50
|
-
"@storybook/builder-webpack5": "6.5.
|
|
51
|
-
"@storybook/manager-webpack5": "6.5.
|
|
52
|
-
"@storybook/react": "6.5.
|
|
48
|
+
"@storybook/addon-storyshots": "6.5.10",
|
|
49
|
+
"@storybook/addons": "6.5.10",
|
|
50
|
+
"@storybook/builder-webpack5": "6.5.10",
|
|
51
|
+
"@storybook/manager-webpack5": "6.5.10",
|
|
52
|
+
"@storybook/react": "6.5.10",
|
|
53
53
|
"babel-core": "7.0.0-bridge.0",
|
|
54
54
|
"babel-jest": "28.1.3",
|
|
55
55
|
"babel-plugin-lodash": "3.3.4",
|
|
56
56
|
"babel-plugin-require-context-hook": "1.0.0",
|
|
57
|
-
"chromatic": "6.7.
|
|
57
|
+
"chromatic": "6.7.4",
|
|
58
58
|
"classnames": "2.3.1",
|
|
59
59
|
"colormap": "2.3.2",
|
|
60
60
|
"core-js": "3.24.1",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"jest": "27.5.1",
|
|
68
68
|
"jest-date-mock": "1.0.8",
|
|
69
69
|
"lodash": "4.17.21",
|
|
70
|
-
"postcss": "8.4.
|
|
70
|
+
"postcss": "8.4.16",
|
|
71
71
|
"prop-types": "15.8.1",
|
|
72
72
|
"react": "16.14.0",
|
|
73
73
|
"react-dom": "16.14.0",
|
|
@@ -85,12 +85,12 @@
|
|
|
85
85
|
"react-router-dom": "^5.0.0"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@bundle-stats/utils": "^4.0.
|
|
88
|
+
"@bundle-stats/utils": "^4.0.6-beta.0",
|
|
89
89
|
"ariakit": "^2.0.0-next.33",
|
|
90
90
|
"date-fns": "^2.28.0",
|
|
91
91
|
"modern-css-reset": "^1.4.0",
|
|
92
92
|
"query-string": "^7.1.0",
|
|
93
|
-
"use-query-params": "^
|
|
93
|
+
"use-query-params": "^2.0.0"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "54a399cb5bbffde01089f286fdc7c8b1aa635f94"
|
|
96
96
|
}
|
package/src/query-state.jsx
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
|
-
import { Route, useHistory, useLocation } from 'react-router-dom';
|
|
3
2
|
import { JsonParam, QueryParamProvider, useQueryParams } from 'use-query-params';
|
|
3
|
+
import { ReactRouter5Adapter } from 'use-query-params/adapters/react-router-5'
|
|
4
|
+
import { parse, stringify } from 'query-string'
|
|
4
5
|
import { isEqual, merge } from 'lodash';
|
|
5
6
|
|
|
6
|
-
export const QueryStateProvider = (props) =>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
7
|
+
export const QueryStateProvider = (props) => (
|
|
8
|
+
<QueryParamProvider
|
|
9
|
+
adapter={ReactRouter5Adapter}
|
|
10
|
+
options={{
|
|
11
|
+
searchStringToObject: parse,
|
|
12
|
+
objectToSearchString: stringify,
|
|
13
|
+
}}
|
|
14
|
+
{...props}
|
|
15
|
+
/>
|
|
16
|
+
);
|
|
14
17
|
|
|
15
18
|
export const useComponentQueryState = (componentName) => {
|
|
16
19
|
const [search, setSearch] = useQueryParams({
|
|
@@ -15,9 +15,9 @@ export const Dropdown = (props) => {
|
|
|
15
15
|
return (
|
|
16
16
|
<div className={rootClassName}>
|
|
17
17
|
<MenuButton state={menuState} className={cx(css.button, buttonClassName)} tabIndex={null}>
|
|
18
|
-
<FlexStack space="xxxsmall">
|
|
18
|
+
<FlexStack space="xxxsmall" className={css.label}>
|
|
19
19
|
{glyph && <Icon className={css.labelIcon} glyph={glyph} />}
|
|
20
|
-
{label}
|
|
20
|
+
{label && <span className={css.labelText}>{label}</span>}
|
|
21
21
|
</FlexStack>
|
|
22
22
|
</MenuButton>
|
|
23
23
|
<Menu state={menuState} aria-label={ariaLabel || label} className={css.dropdown}>
|
|
@@ -10,8 +10,6 @@
|
|
|
10
10
|
border: 1px solid var(--color-outline);
|
|
11
11
|
border-radius: var(--radius-small);
|
|
12
12
|
padding: calc(var(--space-xxsmall) - 1px);
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
13
|
|
|
16
14
|
background: none;
|
|
17
15
|
font-size: var(--size-small);
|
|
@@ -31,6 +29,10 @@
|
|
|
31
29
|
color: var(--color-text);
|
|
32
30
|
}
|
|
33
31
|
|
|
32
|
+
.label {
|
|
33
|
+
align-items: center;
|
|
34
|
+
}
|
|
35
|
+
|
|
34
36
|
.dropdown {
|
|
35
37
|
position: absolute;
|
|
36
38
|
left: 0;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
padding: var(--space-xxxsmall) var(--space-xxsmall);
|
|
15
15
|
border-radius: var(--radius-medium);
|
|
16
16
|
background: var(--color-light);
|
|
17
|
+
max-width: 24em;
|
|
17
18
|
color: var(--color-text);
|
|
18
19
|
filter: drop-shadow(0 0 var(--space-xxxsmall) var(--color-shadow));
|
|
19
20
|
will-change: filter;
|