@atlaskit/select 16.5.10 → 16.5.12
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 +12 -0
- package/dist/cjs/CheckboxSelect.js +2 -2
- package/dist/cjs/PopupSelect/PopupSelect.js +2 -2
- package/dist/cjs/PopupSelect/components.js +23 -23
- package/dist/cjs/RadioSelect.js +2 -2
- package/dist/cjs/Select.js +1 -1
- package/dist/cjs/components/indicators.js +2 -2
- package/dist/cjs/components/input-options.js +43 -32
- package/dist/cjs/createSelect.js +2 -2
- package/dist/cjs/styles.js +7 -4
- package/dist/es2019/PopupSelect/components.js +24 -23
- package/dist/es2019/Select.js +1 -1
- package/dist/es2019/components/input-options.js +44 -33
- package/dist/es2019/styles.js +4 -2
- package/dist/esm/CheckboxSelect.js +2 -2
- package/dist/esm/PopupSelect/PopupSelect.js +2 -2
- package/dist/esm/PopupSelect/components.js +24 -23
- package/dist/esm/RadioSelect.js +2 -2
- package/dist/esm/Select.js +1 -1
- package/dist/esm/components/indicators.js +2 -2
- package/dist/esm/components/input-options.js +44 -33
- package/dist/esm/createSelect.js +2 -2
- package/dist/esm/styles.js +7 -4
- package/dist/types/AsyncCreatableSelect.d.ts +1 -1
- package/dist/types/AsyncSelect.d.ts +1 -1
- package/dist/types/CreatableSelect.d.ts +1 -1
- package/dist/types/Select.d.ts +2 -2
- package/dist/types/createSelect.d.ts +1 -1
- package/dist/types-ts4.5/AsyncCreatableSelect.d.ts +1 -1
- package/dist/types-ts4.5/AsyncSelect.d.ts +1 -1
- package/dist/types-ts4.5/CreatableSelect.d.ts +1 -1
- package/dist/types-ts4.5/Select.d.ts +2 -2
- package/dist/types-ts4.5/createSelect.d.ts +1 -1
- package/package.json +4 -3
- package/report.api.md +5 -5
- package/tmp/api-report-tmp.d.ts +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/select
|
|
2
2
|
|
|
3
|
+
## 16.5.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`872a49e0bd8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/872a49e0bd8) - Fixed color contrast for grouped text label in the Select component
|
|
8
|
+
|
|
9
|
+
## 16.5.11
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`479e6a92e33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/479e6a92e33) - Move css styles out to top-level scope for more consistency.
|
|
14
|
+
|
|
3
15
|
## 16.5.10
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -15,8 +15,8 @@ var _inputOptions = require("./components/input-options");
|
|
|
15
15
|
var _excluded = ["components"];
|
|
16
16
|
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); }
|
|
17
17
|
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; }
|
|
18
|
-
function ownKeys(
|
|
19
|
-
function _objectSpread(
|
|
18
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
20
|
var CheckboxSelect = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
21
21
|
var components = _ref.components,
|
|
22
22
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
@@ -32,8 +32,8 @@ var _memoizeOne = _interopRequireDefault(require("memoize-one"));
|
|
|
32
32
|
var _excluded = ["footer", "maxMenuWidth", "minMenuWidth", "target"];
|
|
33
33
|
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); }
|
|
34
34
|
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; }
|
|
35
|
-
function ownKeys(
|
|
36
|
-
function _objectSpread(
|
|
35
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
36
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
37
37
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
38
38
|
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; } }
|
|
39
39
|
/** Are we rendering on the client or server? */
|
|
@@ -19,7 +19,12 @@ var _excluded = ["innerRef", "innerProps"],
|
|
|
19
19
|
// ==============================
|
|
20
20
|
// Styled Components
|
|
21
21
|
// ==============================
|
|
22
|
-
|
|
22
|
+
var menuDialogStyles = (0, _react.css)({
|
|
23
|
+
backgroundColor: "var(--ds-surface-overlay, white)",
|
|
24
|
+
borderRadius: "var(--ds-border-radius-100, 4px)",
|
|
25
|
+
boxShadow: "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(_colors.N40A, ", 0 4px 11px ").concat(_colors.N40A), ")"),
|
|
26
|
+
zIndex: _constants.layers.modal()
|
|
27
|
+
});
|
|
23
28
|
var MenuDialog = function MenuDialog(_ref) {
|
|
24
29
|
var maxWidth = _ref.maxWidth,
|
|
25
30
|
minWidth = _ref.minWidth,
|
|
@@ -27,16 +32,14 @@ var MenuDialog = function MenuDialog(_ref) {
|
|
|
27
32
|
id = _ref.id,
|
|
28
33
|
style = _ref.style;
|
|
29
34
|
return (0, _react.jsx)("div", {
|
|
30
|
-
|
|
35
|
+
css: [menuDialogStyles,
|
|
36
|
+
// There is not a limited amount of values for the widths, so they need
|
|
37
|
+
// to remain dynamic.
|
|
31
38
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
32
|
-
|
|
33
|
-
backgroundColor: "var(--ds-surface-overlay, white)",
|
|
34
|
-
borderRadius: 4,
|
|
35
|
-
boxShadow: "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(_colors.N40A, ", 0 4px 11px ").concat(_colors.N40A), ")"),
|
|
39
|
+
{
|
|
36
40
|
maxWidth: maxWidth,
|
|
37
|
-
minWidth: minWidth
|
|
38
|
-
|
|
39
|
-
},
|
|
41
|
+
minWidth: minWidth
|
|
42
|
+
}],
|
|
40
43
|
style: style,
|
|
41
44
|
id: id
|
|
42
45
|
}, children);
|
|
@@ -46,31 +49,28 @@ var MenuDialog = function MenuDialog(_ref) {
|
|
|
46
49
|
// Custom Components
|
|
47
50
|
// ==============================
|
|
48
51
|
exports.MenuDialog = MenuDialog;
|
|
52
|
+
var dropdownStyles = (0, _react.css)({
|
|
53
|
+
marginRight: "var(--ds-space-025, 2px)",
|
|
54
|
+
textAlign: 'center',
|
|
55
|
+
width: 32
|
|
56
|
+
});
|
|
49
57
|
var DropdownIndicator = function DropdownIndicator() {
|
|
50
58
|
return (0, _react.jsx)("div", {
|
|
51
|
-
|
|
52
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
53
|
-
css: {
|
|
54
|
-
marginRight: "var(--ds-space-025, 2px)",
|
|
55
|
-
textAlign: 'center',
|
|
56
|
-
width: 32
|
|
57
|
-
}
|
|
59
|
+
css: dropdownStyles
|
|
58
60
|
}, (0, _react.jsx)(_search.default, {
|
|
59
61
|
label: "open"
|
|
60
62
|
}));
|
|
61
63
|
};
|
|
64
|
+
var controlStyles = (0, _react.css)({
|
|
65
|
+
padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-050, 4px)")
|
|
66
|
+
});
|
|
62
67
|
var Control = function Control(_ref2) {
|
|
63
68
|
var innerRef = _ref2.innerRef,
|
|
64
69
|
innerProps = _ref2.innerProps,
|
|
65
70
|
props = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
66
71
|
return (0, _react.jsx)("div", {
|
|
67
|
-
ref: innerRef
|
|
68
|
-
|
|
69
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
70
|
-
,
|
|
71
|
-
css: {
|
|
72
|
-
padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-050, 4px)")
|
|
73
|
-
}
|
|
72
|
+
ref: innerRef,
|
|
73
|
+
css: controlStyles
|
|
74
74
|
}, (0, _react.jsx)(_reactSelect.components.Control, (0, _extends2.default)({}, props, {
|
|
75
75
|
innerProps: innerProps
|
|
76
76
|
})));
|
package/dist/cjs/RadioSelect.js
CHANGED
|
@@ -15,8 +15,8 @@ var _inputOptions = require("./components/input-options");
|
|
|
15
15
|
var _excluded = ["components"];
|
|
16
16
|
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); }
|
|
17
17
|
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; }
|
|
18
|
-
function ownKeys(
|
|
19
|
-
function _objectSpread(
|
|
18
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
20
|
var RadioSelect = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
21
21
|
var components = _ref.components,
|
|
22
22
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
package/dist/cjs/Select.js
CHANGED
|
@@ -9,7 +9,7 @@ var _reactSelect = _interopRequireDefault(require("react-select"));
|
|
|
9
9
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
10
10
|
var _createSelect = _interopRequireDefault(require("./createSelect"));
|
|
11
11
|
var packageName = "@atlaskit/select";
|
|
12
|
-
var packageVersion = "16.5.
|
|
12
|
+
var packageVersion = "16.5.12";
|
|
13
13
|
var SelectWithoutAnalytics = (0, _createSelect.default)(_reactSelect.default);
|
|
14
14
|
exports.SelectWithoutAnalytics = SelectWithoutAnalytics;
|
|
15
15
|
var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
|
|
@@ -12,8 +12,8 @@ var _reactSelect = require("react-select");
|
|
|
12
12
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
13
13
|
var _selectClear = _interopRequireDefault(require("@atlaskit/icon/glyph/select-clear"));
|
|
14
14
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
|
|
15
|
-
function ownKeys(
|
|
16
|
-
function _objectSpread(
|
|
15
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */
|
|
17
17
|
var iconContainerStyles = (0, _react.css)({
|
|
18
18
|
all: 'unset',
|
|
19
19
|
outline: 'revert',
|
|
@@ -27,8 +27,8 @@ var _excluded = ["isActive", "isDisabled", "isFocused", "isSelected"],
|
|
|
27
27
|
_excluded4 = ["getStyles", "Icon", "children", "innerProps", "innerRef"];
|
|
28
28
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
29
29
|
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; } }
|
|
30
|
-
function ownKeys(
|
|
31
|
-
function _objectSpread(
|
|
30
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
31
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @jsx jsx */
|
|
32
32
|
var getPrimitiveStyles = function getPrimitiveStyles(props) {
|
|
33
33
|
var cx = props.cx,
|
|
34
34
|
className = props.className,
|
|
@@ -36,7 +36,7 @@ var getPrimitiveStyles = function getPrimitiveStyles(props) {
|
|
|
36
36
|
isDisabled = props.isDisabled,
|
|
37
37
|
isFocused = props.isFocused,
|
|
38
38
|
isSelected = props.isSelected;
|
|
39
|
-
var
|
|
39
|
+
var baseStyles = {
|
|
40
40
|
alignItems: 'center',
|
|
41
41
|
backgroundColor: isFocused ? "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N20, ")") : 'transparent',
|
|
42
42
|
color: isDisabled ? "var(--ds-text-disabled, inherit)" : 'inherit',
|
|
@@ -44,7 +44,9 @@ var getPrimitiveStyles = function getPrimitiveStyles(props) {
|
|
|
44
44
|
paddingBottom: "var(--ds-space-050, 4px)",
|
|
45
45
|
paddingLeft: "var(--ds-space-200, 16px)",
|
|
46
46
|
paddingTop: "var(--ds-space-050, 4px)",
|
|
47
|
-
|
|
47
|
+
// This 'none' needs to be present to ensure that style is not applied when
|
|
48
|
+
// the option is selected but not focused.
|
|
49
|
+
boxShadow: isFocused ? "inset 2px 0px 0px ".concat("var(--ds-border-focused, ".concat(_colors.B400, ")")) : 'none',
|
|
48
50
|
':active': {
|
|
49
51
|
backgroundColor: "var(--ds-background-neutral-subtle-pressed, ".concat(_colors.N30, ")")
|
|
50
52
|
},
|
|
@@ -52,7 +54,7 @@ var getPrimitiveStyles = function getPrimitiveStyles(props) {
|
|
|
52
54
|
borderLeft: isFocused ? '2px solid transparent' : ''
|
|
53
55
|
}
|
|
54
56
|
};
|
|
55
|
-
var augmentedStyles = _objectSpread(_objectSpread({}, getStyles('option', props)),
|
|
57
|
+
var augmentedStyles = (0, _react.css)(_objectSpread(_objectSpread({}, getStyles('option', props)), baseStyles));
|
|
56
58
|
var bemClasses = {
|
|
57
59
|
option: true,
|
|
58
60
|
'option--is-disabled': isDisabled,
|
|
@@ -173,6 +175,26 @@ var getBorderColor = function getBorderColor(_ref3) {
|
|
|
173
175
|
}
|
|
174
176
|
return "var(--ds-border-input, ".concat(_colors.N100, ")");
|
|
175
177
|
};
|
|
178
|
+
var baseIconStyles = (0, _react.css)({
|
|
179
|
+
alignItems: 'center',
|
|
180
|
+
display: 'flex ',
|
|
181
|
+
flexShrink: 0,
|
|
182
|
+
paddingRight: "var(--ds-space-050, 4px)",
|
|
183
|
+
// Here we are adding a border to the Checkbox and Radio SVG icons
|
|
184
|
+
// This is an a11y fix for Select only for now but it may be rolled
|
|
185
|
+
// into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
|
|
186
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
187
|
+
'& svg rect, & svg circle:first-of-type': {
|
|
188
|
+
strokeWidth: "var(--ds-border-width-outline, 2px)",
|
|
189
|
+
strokeLinejoin: 'round'
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
var baseOptionStyles = (0, _react.css)({
|
|
193
|
+
textOverflow: 'ellipsis',
|
|
194
|
+
overflowX: 'hidden',
|
|
195
|
+
flexGrow: 1,
|
|
196
|
+
whiteSpace: 'nowrap'
|
|
197
|
+
});
|
|
176
198
|
var ControlOption = /*#__PURE__*/function (_Component) {
|
|
177
199
|
(0, _inherits2.default)(ControlOption, _Component);
|
|
178
200
|
var _super = _createSuper(ControlOption);
|
|
@@ -227,47 +249,36 @@ var ControlOption = /*#__PURE__*/function (_Component) {
|
|
|
227
249
|
styles = _getPrimitiveStyles2[0],
|
|
228
250
|
classes = _getPrimitiveStyles2[1];
|
|
229
251
|
return (
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
* @see https://product-fabric.atlassian.net/browse/DSP-6063
|
|
233
|
-
*/
|
|
234
|
-
// @ts-ignore
|
|
235
|
-
// TODO: Make these use proper dynamic styling (DSP-12490)
|
|
252
|
+
// These need to remain this way because `react-select` passes props with
|
|
253
|
+
// styles inside, and that must be done dynamically.
|
|
236
254
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
237
255
|
(0, _react.jsx)("div", (0, _extends2.default)({
|
|
238
256
|
css: styles,
|
|
239
257
|
className: classes,
|
|
240
258
|
ref: innerRef
|
|
241
259
|
}, props), (0, _react.jsx)("div", {
|
|
242
|
-
|
|
260
|
+
css: [baseIconStyles,
|
|
261
|
+
// Here we are adding a border to the Checkbox and Radio SVG icons
|
|
262
|
+
// This is an a11y fix for Select only for now but it may be rolled
|
|
263
|
+
// into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
|
|
243
264
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
//
|
|
250
|
-
//
|
|
251
|
-
// into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
|
|
265
|
+
{
|
|
266
|
+
// This can eventually be changed to static styles that are
|
|
267
|
+
// applied conditionally (e.g. `isActive && activeBorderStyles`),
|
|
268
|
+
// but considering there are multiple instances of `react-select`
|
|
269
|
+
// requiring styles to be generated dynamically, it seemed like a
|
|
270
|
+
// low priority.
|
|
271
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
252
272
|
'& svg rect, & svg circle:first-of-type': {
|
|
253
|
-
stroke: getBorderColor(_objectSpread(_objectSpread({}, this.props), this.state))
|
|
254
|
-
strokeWidth: '2px',
|
|
255
|
-
strokeLinejoin: 'round'
|
|
273
|
+
stroke: getBorderColor(_objectSpread(_objectSpread({}, this.props), this.state))
|
|
256
274
|
}
|
|
257
|
-
}
|
|
275
|
+
}]
|
|
258
276
|
}, !!Icon ? (0, _react.jsx)(Icon, {
|
|
259
277
|
label: "",
|
|
260
278
|
primaryColor: getPrimaryColor(_objectSpread(_objectSpread({}, this.props), this.state)),
|
|
261
279
|
secondaryColor: getSecondaryColor(_objectSpread(_objectSpread({}, this.props), this.state))
|
|
262
280
|
}) : null), (0, _react.jsx)("div", {
|
|
263
|
-
|
|
264
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
265
|
-
css: {
|
|
266
|
-
textOverflow: 'ellipsis',
|
|
267
|
-
overflowX: 'hidden',
|
|
268
|
-
flexGrow: 1,
|
|
269
|
-
whiteSpace: 'nowrap'
|
|
270
|
-
}
|
|
281
|
+
css: baseOptionStyles
|
|
271
282
|
}, children))
|
|
272
283
|
);
|
|
273
284
|
}
|
package/dist/cjs/createSelect.js
CHANGED
|
@@ -25,8 +25,8 @@ var _groupedOptionsAnnouncement = require("./utils/grouped-options-announcement"
|
|
|
25
25
|
var _excluded = ["styles", "validationState", "isInvalid", "spacing", "isMulti", "appearance", "ariaLiveMessages"];
|
|
26
26
|
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); }
|
|
27
27
|
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; }
|
|
28
|
-
function ownKeys(
|
|
29
|
-
function _objectSpread(
|
|
28
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
31
31
|
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; } }
|
|
32
32
|
function createSelect(WrappedComponent) {
|
package/dist/cjs/styles.js
CHANGED
|
@@ -9,8 +9,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _constants = require("@atlaskit/theme/constants");
|
|
10
10
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
12
|
-
function ownKeys(
|
|
13
|
-
function _objectSpread(
|
|
12
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
14
14
|
var BORDER_WIDTH = 2;
|
|
15
15
|
var ICON_PADDING = 2;
|
|
16
16
|
var paddingExcludingBorder = (0, _constants.gridSize)() - BORDER_WIDTH;
|
|
@@ -95,7 +95,6 @@ function baseStyles(validationState) {
|
|
|
95
95
|
':hover': {
|
|
96
96
|
'::-webkit-scrollbar-thumb': {
|
|
97
97
|
// scrollbars occur only if the user passes in a custom component with overflow: scroll
|
|
98
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
99
98
|
backgroundColor: 'rgba(0,0,0,0.2)'
|
|
100
99
|
},
|
|
101
100
|
cursor: 'pointer',
|
|
@@ -103,7 +102,6 @@ function baseStyles(validationState) {
|
|
|
103
102
|
borderColor: borderColorHover
|
|
104
103
|
},
|
|
105
104
|
'::-webkit-scrollbar-thumb:hover': {
|
|
106
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
107
105
|
backgroundColor: 'rgba(0,0,0,0.4)'
|
|
108
106
|
}
|
|
109
107
|
});
|
|
@@ -275,6 +273,11 @@ function baseStyles(validationState) {
|
|
|
275
273
|
fill: "var(--ds-text-danger, #000)"
|
|
276
274
|
}
|
|
277
275
|
});
|
|
276
|
+
},
|
|
277
|
+
groupHeading: function groupHeading(css) {
|
|
278
|
+
return _objectSpread(_objectSpread({}, css), {}, {
|
|
279
|
+
color: "var(--ds-text-subtle, ".concat(_colors.N200, ")")
|
|
280
|
+
});
|
|
278
281
|
}
|
|
279
282
|
};
|
|
280
283
|
}
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
|
|
4
4
|
import { components } from 'react-select';
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
7
7
|
import SearchIcon from '@atlaskit/icon/glyph/editor/search';
|
|
8
8
|
import { layers } from '@atlaskit/theme/constants';
|
|
@@ -11,6 +11,12 @@ import { N40A } from '@atlaskit/theme/colors';
|
|
|
11
11
|
// ==============================
|
|
12
12
|
// Styled Components
|
|
13
13
|
// ==============================
|
|
14
|
+
const menuDialogStyles = css({
|
|
15
|
+
backgroundColor: "var(--ds-surface-overlay, white)",
|
|
16
|
+
borderRadius: "var(--ds-border-radius-100, 4px)",
|
|
17
|
+
boxShadow: `var(--ds-shadow-overlay, ${`0 0 0 1px ${N40A}, 0 4px 11px ${N40A}`})`,
|
|
18
|
+
zIndex: layers.modal()
|
|
19
|
+
});
|
|
14
20
|
export const MenuDialog = ({
|
|
15
21
|
maxWidth,
|
|
16
22
|
minWidth,
|
|
@@ -18,16 +24,14 @@ export const MenuDialog = ({
|
|
|
18
24
|
id,
|
|
19
25
|
style
|
|
20
26
|
}) => jsx("div", {
|
|
21
|
-
|
|
27
|
+
css: [menuDialogStyles,
|
|
28
|
+
// There is not a limited amount of values for the widths, so they need
|
|
29
|
+
// to remain dynamic.
|
|
22
30
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
23
|
-
|
|
24
|
-
backgroundColor: "var(--ds-surface-overlay, white)",
|
|
25
|
-
borderRadius: 4,
|
|
26
|
-
boxShadow: `var(--ds-shadow-overlay, ${`0 0 0 1px ${N40A}, 0 4px 11px ${N40A}`})`,
|
|
31
|
+
{
|
|
27
32
|
maxWidth,
|
|
28
|
-
minWidth
|
|
29
|
-
|
|
30
|
-
},
|
|
33
|
+
minWidth
|
|
34
|
+
}],
|
|
31
35
|
style: style,
|
|
32
36
|
id: id
|
|
33
37
|
}, children);
|
|
@@ -36,29 +40,26 @@ export const MenuDialog = ({
|
|
|
36
40
|
// Custom Components
|
|
37
41
|
// ==============================
|
|
38
42
|
|
|
43
|
+
const dropdownStyles = css({
|
|
44
|
+
marginRight: "var(--ds-space-025, 2px)",
|
|
45
|
+
textAlign: 'center',
|
|
46
|
+
width: 32
|
|
47
|
+
});
|
|
39
48
|
const DropdownIndicator = () => jsx("div", {
|
|
40
|
-
|
|
41
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
42
|
-
css: {
|
|
43
|
-
marginRight: "var(--ds-space-025, 2px)",
|
|
44
|
-
textAlign: 'center',
|
|
45
|
-
width: 32
|
|
46
|
-
}
|
|
49
|
+
css: dropdownStyles
|
|
47
50
|
}, jsx(SearchIcon, {
|
|
48
51
|
label: "open"
|
|
49
52
|
}));
|
|
53
|
+
const controlStyles = css({
|
|
54
|
+
padding: `${"var(--ds-space-100, 8px)"} ${"var(--ds-space-100, 8px)"} ${"var(--ds-space-050, 4px)"}`
|
|
55
|
+
});
|
|
50
56
|
const Control = ({
|
|
51
57
|
innerRef,
|
|
52
58
|
innerProps,
|
|
53
59
|
...props
|
|
54
60
|
}) => jsx("div", {
|
|
55
|
-
ref: innerRef
|
|
56
|
-
|
|
57
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
58
|
-
,
|
|
59
|
-
css: {
|
|
60
|
-
padding: `${"var(--ds-space-100, 8px)"} ${"var(--ds-space-100, 8px)"} ${"var(--ds-space-050, 4px)"}`
|
|
61
|
-
}
|
|
61
|
+
ref: innerRef,
|
|
62
|
+
css: controlStyles
|
|
62
63
|
}, jsx(components.Control, _extends({}, props, {
|
|
63
64
|
innerProps: innerProps
|
|
64
65
|
})));
|
package/dist/es2019/Select.js
CHANGED
|
@@ -2,7 +2,7 @@ import Select from 'react-select';
|
|
|
2
2
|
import { withAnalyticsEvents, withAnalyticsContext, createAndFireEvent } from '@atlaskit/analytics-next';
|
|
3
3
|
import createSelect from './createSelect';
|
|
4
4
|
const packageName = "@atlaskit/select";
|
|
5
|
-
const packageVersion = "16.5.
|
|
5
|
+
const packageVersion = "16.5.12";
|
|
6
6
|
export const SelectWithoutAnalytics = createSelect(Select);
|
|
7
7
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
8
8
|
export default withAnalyticsContext({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
-
import { jsx } from '@emotion/react';
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import { Component } from 'react';
|
|
6
6
|
import RadioIcon from '@atlaskit/icon/glyph/radio';
|
|
7
7
|
import CheckboxIcon from '@atlaskit/icon/glyph/checkbox';
|
|
@@ -16,7 +16,7 @@ const getPrimitiveStyles = props => {
|
|
|
16
16
|
isFocused,
|
|
17
17
|
isSelected
|
|
18
18
|
} = props;
|
|
19
|
-
const
|
|
19
|
+
const baseStyles = {
|
|
20
20
|
alignItems: 'center',
|
|
21
21
|
backgroundColor: isFocused ? `var(--ds-background-neutral-subtle-hovered, ${N20})` : 'transparent',
|
|
22
22
|
color: isDisabled ? "var(--ds-text-disabled, inherit)" : 'inherit',
|
|
@@ -24,7 +24,9 @@ const getPrimitiveStyles = props => {
|
|
|
24
24
|
paddingBottom: "var(--ds-space-050, 4px)",
|
|
25
25
|
paddingLeft: "var(--ds-space-200, 16px)",
|
|
26
26
|
paddingTop: "var(--ds-space-050, 4px)",
|
|
27
|
-
|
|
27
|
+
// This 'none' needs to be present to ensure that style is not applied when
|
|
28
|
+
// the option is selected but not focused.
|
|
29
|
+
boxShadow: isFocused ? `inset 2px 0px 0px ${`var(--ds-border-focused, ${B400})`}` : 'none',
|
|
28
30
|
':active': {
|
|
29
31
|
backgroundColor: `var(--ds-background-neutral-subtle-pressed, ${N30})`
|
|
30
32
|
},
|
|
@@ -32,10 +34,10 @@ const getPrimitiveStyles = props => {
|
|
|
32
34
|
borderLeft: isFocused ? '2px solid transparent' : ''
|
|
33
35
|
}
|
|
34
36
|
};
|
|
35
|
-
const augmentedStyles = {
|
|
37
|
+
const augmentedStyles = css({
|
|
36
38
|
...getStyles('option', props),
|
|
37
|
-
...
|
|
38
|
-
};
|
|
39
|
+
...baseStyles
|
|
40
|
+
});
|
|
39
41
|
const bemClasses = {
|
|
40
42
|
option: true,
|
|
41
43
|
'option--is-disabled': isDisabled,
|
|
@@ -159,6 +161,26 @@ const getBorderColor = ({
|
|
|
159
161
|
}
|
|
160
162
|
return `var(--ds-border-input, ${N100})`;
|
|
161
163
|
};
|
|
164
|
+
const baseIconStyles = css({
|
|
165
|
+
alignItems: 'center',
|
|
166
|
+
display: 'flex ',
|
|
167
|
+
flexShrink: 0,
|
|
168
|
+
paddingRight: "var(--ds-space-050, 4px)",
|
|
169
|
+
// Here we are adding a border to the Checkbox and Radio SVG icons
|
|
170
|
+
// This is an a11y fix for Select only for now but it may be rolled
|
|
171
|
+
// into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
|
|
172
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
173
|
+
'& svg rect, & svg circle:first-of-type': {
|
|
174
|
+
strokeWidth: "var(--ds-border-width-outline, 2px)",
|
|
175
|
+
strokeLinejoin: 'round'
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
const baseOptionStyles = css({
|
|
179
|
+
textOverflow: 'ellipsis',
|
|
180
|
+
overflowX: 'hidden',
|
|
181
|
+
flexGrow: 1,
|
|
182
|
+
whiteSpace: 'nowrap'
|
|
183
|
+
});
|
|
162
184
|
class ControlOption extends Component {
|
|
163
185
|
constructor(...args) {
|
|
164
186
|
super(...args);
|
|
@@ -197,37 +219,33 @@ class ControlOption extends Component {
|
|
|
197
219
|
...rest
|
|
198
220
|
});
|
|
199
221
|
return (
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
* @see https://product-fabric.atlassian.net/browse/DSP-6063
|
|
203
|
-
*/
|
|
204
|
-
// @ts-ignore
|
|
205
|
-
// TODO: Make these use proper dynamic styling (DSP-12490)
|
|
222
|
+
// These need to remain this way because `react-select` passes props with
|
|
223
|
+
// styles inside, and that must be done dynamically.
|
|
206
224
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
207
225
|
jsx("div", _extends({
|
|
208
226
|
css: styles,
|
|
209
227
|
className: classes,
|
|
210
228
|
ref: innerRef
|
|
211
229
|
}, props), jsx("div", {
|
|
212
|
-
|
|
230
|
+
css: [baseIconStyles,
|
|
231
|
+
// Here we are adding a border to the Checkbox and Radio SVG icons
|
|
232
|
+
// This is an a11y fix for Select only for now but it may be rolled
|
|
233
|
+
// into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
|
|
213
234
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
//
|
|
220
|
-
//
|
|
221
|
-
// into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
|
|
235
|
+
{
|
|
236
|
+
// This can eventually be changed to static styles that are
|
|
237
|
+
// applied conditionally (e.g. `isActive && activeBorderStyles`),
|
|
238
|
+
// but considering there are multiple instances of `react-select`
|
|
239
|
+
// requiring styles to be generated dynamically, it seemed like a
|
|
240
|
+
// low priority.
|
|
241
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
222
242
|
'& svg rect, & svg circle:first-of-type': {
|
|
223
243
|
stroke: getBorderColor({
|
|
224
244
|
...this.props,
|
|
225
245
|
...this.state
|
|
226
|
-
})
|
|
227
|
-
strokeWidth: '2px',
|
|
228
|
-
strokeLinejoin: 'round'
|
|
246
|
+
})
|
|
229
247
|
}
|
|
230
|
-
}
|
|
248
|
+
}]
|
|
231
249
|
}, !!Icon ? jsx(Icon, {
|
|
232
250
|
label: "",
|
|
233
251
|
primaryColor: getPrimaryColor({
|
|
@@ -239,14 +257,7 @@ class ControlOption extends Component {
|
|
|
239
257
|
...this.state
|
|
240
258
|
})
|
|
241
259
|
}) : null), jsx("div", {
|
|
242
|
-
|
|
243
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
244
|
-
css: {
|
|
245
|
-
textOverflow: 'ellipsis',
|
|
246
|
-
overflowX: 'hidden',
|
|
247
|
-
flexGrow: 1,
|
|
248
|
-
whiteSpace: 'nowrap'
|
|
249
|
-
}
|
|
260
|
+
css: baseOptionStyles
|
|
250
261
|
}, children))
|
|
251
262
|
);
|
|
252
263
|
}
|
package/dist/es2019/styles.js
CHANGED
|
@@ -86,7 +86,6 @@ export default function baseStyles(validationState, isCompact = false, appearanc
|
|
|
86
86
|
':hover': {
|
|
87
87
|
'::-webkit-scrollbar-thumb': {
|
|
88
88
|
// scrollbars occur only if the user passes in a custom component with overflow: scroll
|
|
89
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
90
89
|
backgroundColor: 'rgba(0,0,0,0.2)'
|
|
91
90
|
},
|
|
92
91
|
cursor: 'pointer',
|
|
@@ -94,7 +93,6 @@ export default function baseStyles(validationState, isCompact = false, appearanc
|
|
|
94
93
|
borderColor: borderColorHover
|
|
95
94
|
},
|
|
96
95
|
'::-webkit-scrollbar-thumb:hover': {
|
|
97
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
98
96
|
backgroundColor: 'rgba(0,0,0,0.4)'
|
|
99
97
|
}
|
|
100
98
|
};
|
|
@@ -266,6 +264,10 @@ export default function baseStyles(validationState, isCompact = false, appearanc
|
|
|
266
264
|
backgroundColor: `var(--ds-background-danger-pressed, ${R75})`,
|
|
267
265
|
fill: "var(--ds-text-danger, #000)"
|
|
268
266
|
}
|
|
267
|
+
}),
|
|
268
|
+
groupHeading: css => ({
|
|
269
|
+
...css,
|
|
270
|
+
color: `var(--ds-text-subtle, ${N200})`
|
|
269
271
|
})
|
|
270
272
|
};
|
|
271
273
|
}
|