@atlaskit/select 18.10.6 → 20.0.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/CHANGELOG.md +40 -0
- package/dist/cjs/CountrySelect.compiled.css +5 -0
- package/dist/cjs/CountrySelect.js +17 -24
- package/dist/cjs/PopupSelect/PopupSelect.js +5 -3
- package/dist/cjs/PopupSelect/components.compiled.css +11 -0
- package/dist/cjs/PopupSelect/components.js +37 -48
- package/dist/cjs/Select.js +1 -1
- package/dist/cjs/components/input-options.compiled.css +28 -0
- package/dist/cjs/components/input-options.js +64 -155
- package/dist/es2019/CountrySelect.compiled.css +5 -0
- package/dist/es2019/CountrySelect.js +14 -26
- package/dist/es2019/PopupSelect/PopupSelect.js +6 -3
- package/dist/es2019/PopupSelect/components.compiled.css +11 -0
- package/dist/es2019/PopupSelect/components.js +32 -50
- package/dist/es2019/Select.js +1 -1
- package/dist/es2019/components/input-options.compiled.css +28 -0
- package/dist/es2019/components/input-options.js +55 -161
- package/dist/esm/CountrySelect.compiled.css +5 -0
- package/dist/esm/CountrySelect.js +14 -26
- package/dist/esm/PopupSelect/PopupSelect.js +5 -3
- package/dist/esm/PopupSelect/components.compiled.css +11 -0
- package/dist/esm/PopupSelect/components.js +33 -48
- package/dist/esm/Select.js +1 -1
- package/dist/esm/components/input-options.compiled.css +28 -0
- package/dist/esm/components/input-options.js +61 -157
- package/dist/types/CountrySelect.d.ts +2 -6
- package/dist/types/PopupSelect/PopupSelect.d.ts +4 -8
- package/dist/types/PopupSelect/components.d.ts +4 -8
- package/dist/types/components/input-options.d.ts +1 -2
- package/dist/types-ts4.5/CountrySelect.d.ts +2 -6
- package/dist/types-ts4.5/PopupSelect/PopupSelect.d.ts +4 -8
- package/dist/types-ts4.5/PopupSelect/components.d.ts +4 -8
- package/dist/types-ts4.5/components/input-options.d.ts +1 -2
- package/package.json +18 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# @atlaskit/select
|
|
2
2
|
|
|
3
|
+
## 20.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#110498](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/110498)
|
|
8
|
+
[`53ad7ff63b09a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/53ad7ff63b09a) -
|
|
9
|
+
Migrated from `@emotion/react` to `@compiled/react` in order to improve performance, align with
|
|
10
|
+
the rest of the Atlaskit techstack, and support React 18 Streaming SSR. Please note, in order to
|
|
11
|
+
use this version of `@atlaskit/select`, you will need to ensure that your bundler is configured to
|
|
12
|
+
handle `.css` imports correctly.
|
|
13
|
+
|
|
14
|
+
Most bundlers come with built-in support for `.css` imports, so you may not need to do anything.
|
|
15
|
+
If you are using a different bundler, please refer to the documentation for that bundler to
|
|
16
|
+
understand how to handle `.css` imports. For more information on the migration, please refer to
|
|
17
|
+
[RFC-73 Migrating our components to Compiled CSS-in-JS](https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/85953).
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [#119843](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/119843)
|
|
22
|
+
[`7bd0d851d1c39`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7bd0d851d1c39) -
|
|
23
|
+
[ux] Clean up ARIA props that are no longer needed
|
|
24
|
+
|
|
25
|
+
## 19.0.0
|
|
26
|
+
|
|
27
|
+
### Major Changes
|
|
28
|
+
|
|
29
|
+
- [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
|
|
30
|
+
[`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
|
|
31
|
+
This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
|
|
32
|
+
status of only supporting React 18 going forward. No explicit breaking change to React support has
|
|
33
|
+
been made in this release, but this is to signify going forward, breaking changes for React 16 or
|
|
34
|
+
React 17 may come via non-major semver releases.
|
|
35
|
+
|
|
36
|
+
Please refer this community post for more details:
|
|
37
|
+
https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- Updated dependencies
|
|
42
|
+
|
|
3
43
|
## 18.10.6
|
|
4
44
|
|
|
5
45
|
### Patch Changes
|
|
@@ -1,43 +1,36 @@
|
|
|
1
|
+
/* CountrySelect.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
6
|
Object.defineProperty(exports, "__esModule", {
|
|
5
7
|
value: true
|
|
6
8
|
});
|
|
7
9
|
exports.default = void 0;
|
|
10
|
+
require("./CountrySelect.compiled.css");
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
8
13
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
-
var _react = require("@emotion/react");
|
|
11
15
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
16
|
var _countries = require("./data/countries");
|
|
13
17
|
var _Select = _interopRequireDefault(require("./Select"));
|
|
14
18
|
var _countryGroupsAnnouncement = require("./utils/country-groups-announcement");
|
|
19
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
20
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
21
|
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; } /* eslint-disable @repo/internal/fs/filename-pattern-match */
|
|
17
|
-
* @jsxRuntime classic
|
|
18
|
-
* @jsx jsx
|
|
19
|
-
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
|
+
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 @repo/internal/fs/filename-pattern-match */
|
|
20
23
|
// custom option renderer
|
|
21
|
-
var labelStyles =
|
|
22
|
-
|
|
23
|
-
alignItems: 'center',
|
|
24
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
25
|
-
lineHeight: 1.2
|
|
26
|
-
});
|
|
27
|
-
var flagStyles = (0, _react.css)({
|
|
28
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
29
|
-
fontSize: '1.125rem',
|
|
30
|
-
// emoji size
|
|
31
|
-
marginInlineEnd: "var(--ds-space-100, 8px)"
|
|
32
|
-
});
|
|
24
|
+
var labelStyles = null;
|
|
25
|
+
var flagStyles = null;
|
|
33
26
|
var Opt = function Opt(_ref) {
|
|
34
27
|
var children = _ref.children,
|
|
35
28
|
icon = _ref.icon;
|
|
36
|
-
return
|
|
37
|
-
|
|
38
|
-
},
|
|
29
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
30
|
+
className: (0, _runtime.ax)(["_1e0c1txw _4cvr1h6o _vwz4cjiy"])
|
|
31
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
39
32
|
"aria-hidden": "true",
|
|
40
|
-
|
|
33
|
+
className: (0, _runtime.ax)(["_1wyb1cby _12l2u2gc"])
|
|
41
34
|
}, icon), children);
|
|
42
35
|
};
|
|
43
36
|
|
|
@@ -56,7 +49,7 @@ var getOptionValue = function getOptionValue(opt) {
|
|
|
56
49
|
|
|
57
50
|
// the text node of the control
|
|
58
51
|
var controlLabel = function controlLabel(opt) {
|
|
59
|
-
return
|
|
52
|
+
return /*#__PURE__*/React.createElement(Opt, {
|
|
60
53
|
icon: opt.icon
|
|
61
54
|
}, opt.abbr.toUpperCase());
|
|
62
55
|
};
|
|
@@ -66,7 +59,7 @@ var optionLabel = function optionLabel(_ref3) {
|
|
|
66
59
|
code = _ref3.code,
|
|
67
60
|
icon = _ref3.icon,
|
|
68
61
|
name = _ref3.name;
|
|
69
|
-
return
|
|
62
|
+
return /*#__PURE__*/React.createElement(Opt, {
|
|
70
63
|
icon: icon
|
|
71
64
|
}, getOptionLabel({
|
|
72
65
|
abbr: abbr,
|
|
@@ -86,7 +79,7 @@ var CountrySelect = function CountrySelect(props) {
|
|
|
86
79
|
var ariaLiveMessages = props.ariaLiveMessages,
|
|
87
80
|
options = props.options;
|
|
88
81
|
var countryOptions = options || _countries.groupedCountries;
|
|
89
|
-
return
|
|
82
|
+
return /*#__PURE__*/React.createElement(_Select.default, (0, _extends2.default)({
|
|
90
83
|
isClearable: false,
|
|
91
84
|
formatOptionLabel: formatOptionLabel,
|
|
92
85
|
getOptionLabel: getOptionLabel,
|
|
@@ -405,12 +405,14 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
405
405
|
ref = _ref2.ref,
|
|
406
406
|
style = _ref2.style;
|
|
407
407
|
return /*#__PURE__*/_react.default.createElement(_components.MenuDialog
|
|
408
|
+
// There is not a limited amount of values for the widths, so they need to remain dynamic.
|
|
408
409
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
409
410
|
, {
|
|
410
|
-
style: style,
|
|
411
|
+
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
412
|
+
maxWidth: maxMenuWidth,
|
|
413
|
+
minWidth: minMenuWidth
|
|
414
|
+
}),
|
|
411
415
|
"data-placement": placement,
|
|
412
|
-
minWidth: minMenuWidth,
|
|
413
|
-
maxWidth: maxMenuWidth,
|
|
414
416
|
id: id,
|
|
415
417
|
testId: testId,
|
|
416
418
|
ref: _this.resolveMenuRef(ref)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}._12l2v77o{margin-inline-end:var(--ds-space-025,2px)}
|
|
3
|
+
._16qsu838{box-shadow:var(--_z6sjud)}
|
|
4
|
+
._1bsbzwfg{width:2pc}
|
|
5
|
+
._1pby16oo{z-index:510}
|
|
6
|
+
._1q51u2gc{padding-block-start:var(--ds-space-100,8px)}
|
|
7
|
+
._85i51b66{padding-block-end:var(--ds-space-050,4px)}
|
|
8
|
+
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
9
|
+
._bozgu2gc{padding-inline-start:var(--ds-space-100,8px)}
|
|
10
|
+
._y3gn1h6o{text-align:center}
|
|
11
|
+
._y4tiu2gc{padding-inline-end:var(--ds-space-100,8px)}
|
|
@@ -1,63 +1,52 @@
|
|
|
1
|
+
/* components.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
6
|
Object.defineProperty(exports, "__esModule", {
|
|
5
7
|
value: true
|
|
6
8
|
});
|
|
7
9
|
exports.defaultComponents = exports.MenuDialog = exports.DummyControl = void 0;
|
|
10
|
+
require("./components.compiled.css");
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
+
var React = _react;
|
|
13
|
+
var _runtime = require("@compiled/react/runtime");
|
|
8
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
15
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
-
var
|
|
11
|
-
var _react2 = require("@emotion/react");
|
|
16
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
17
|
var _searchEditorSearch = _interopRequireDefault(require("@atlaskit/icon/core/migration/search--editor-search"));
|
|
13
18
|
var _reactSelect = require("@atlaskit/react-select");
|
|
14
19
|
var _colors = require("@atlaskit/theme/colors");
|
|
15
20
|
var _constants = require("@atlaskit/theme/constants");
|
|
16
21
|
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
|
|
17
22
|
var _excluded = ["innerRef", "innerProps"];
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
24
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
25
|
+
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; }
|
|
26
|
+
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; }
|
|
23
27
|
// ==============================
|
|
24
28
|
// Styled Components
|
|
25
29
|
// ==============================
|
|
26
30
|
|
|
27
|
-
var menuDialogStyles =
|
|
28
|
-
zIndex: _constants.layers.modal(),
|
|
29
|
-
backgroundColor: "var(--ds-surface-overlay, white)",
|
|
30
|
-
borderRadius: "var(--ds-border-radius-100, 4px)",
|
|
31
|
-
boxShadow: "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(_colors.N40A, ", 0 4px 11px ").concat(_colors.N40A), ")")
|
|
32
|
-
});
|
|
31
|
+
var menuDialogStyles = null;
|
|
33
32
|
|
|
34
33
|
/**
|
|
35
34
|
* __Menu dialog__
|
|
36
35
|
* Wrapper for PopupSelect component.
|
|
37
|
-
*
|
|
38
36
|
*/
|
|
39
37
|
var MenuDialog = exports.MenuDialog = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
40
|
-
var
|
|
41
|
-
minWidth = _ref.minWidth,
|
|
42
|
-
children = _ref.children,
|
|
38
|
+
var children = _ref.children,
|
|
43
39
|
id = _ref.id,
|
|
44
40
|
style = _ref.style,
|
|
45
41
|
testId = _ref.testId;
|
|
46
|
-
return
|
|
42
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
47
43
|
ref: ref,
|
|
48
|
-
css: [menuDialogStyles,
|
|
49
|
-
// There is not a limited amount of values for the widths, so they need
|
|
50
|
-
// to remain dynamic.
|
|
51
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
52
|
-
{
|
|
53
|
-
maxWidth: maxWidth,
|
|
54
|
-
minWidth: minWidth
|
|
55
|
-
}]
|
|
56
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
57
|
-
,
|
|
58
|
-
style: style,
|
|
59
44
|
id: id,
|
|
60
|
-
"data-testid": testId && "".concat(testId, "--menu")
|
|
45
|
+
"data-testid": testId && "".concat(testId, "--menu"),
|
|
46
|
+
className: (0, _runtime.ax)(["_2rkoiti9 _1pby16oo _bfhk1bhr _16qsu838"]),
|
|
47
|
+
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
48
|
+
"--_z6sjud": (0, _runtime.ix)("var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(_colors.N40A, ", 0 4px 11px ").concat(_colors.N40A), ")"))
|
|
49
|
+
})
|
|
61
50
|
}, children);
|
|
62
51
|
});
|
|
63
52
|
|
|
@@ -65,30 +54,24 @@ var MenuDialog = exports.MenuDialog = /*#__PURE__*/(0, _react.forwardRef)(functi
|
|
|
65
54
|
// Custom Components
|
|
66
55
|
// ==============================
|
|
67
56
|
|
|
68
|
-
var dropdownStyles =
|
|
69
|
-
width: 32,
|
|
70
|
-
marginInlineEnd: "var(--ds-space-025, 2px)",
|
|
71
|
-
textAlign: 'center'
|
|
72
|
-
});
|
|
57
|
+
var dropdownStyles = null;
|
|
73
58
|
var DropdownIndicator = function DropdownIndicator() {
|
|
74
|
-
return
|
|
75
|
-
|
|
76
|
-
},
|
|
59
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
60
|
+
className: (0, _runtime.ax)(["_1bsbzwfg _12l2v77o _y3gn1h6o"])
|
|
61
|
+
}, /*#__PURE__*/React.createElement(_searchEditorSearch.default, {
|
|
77
62
|
color: "currentColor",
|
|
78
63
|
label: ""
|
|
79
64
|
}));
|
|
80
65
|
};
|
|
81
|
-
var controlStyles =
|
|
82
|
-
padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-050, 4px)")
|
|
83
|
-
});
|
|
66
|
+
var controlStyles = null;
|
|
84
67
|
var Control = function Control(_ref2) {
|
|
85
68
|
var innerRef = _ref2.innerRef,
|
|
86
69
|
innerProps = _ref2.innerProps,
|
|
87
70
|
props = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
88
|
-
return
|
|
71
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
89
72
|
ref: innerRef,
|
|
90
|
-
|
|
91
|
-
},
|
|
73
|
+
className: (0, _runtime.ax)(["_85i51b66 _1q51u2gc _y4tiu2gc _bozgu2gc"])
|
|
74
|
+
}, /*#__PURE__*/React.createElement(_reactSelect.components.Control, (0, _extends2.default)({}, props, {
|
|
92
75
|
innerProps: innerProps
|
|
93
76
|
})));
|
|
94
77
|
};
|
|
@@ -98,20 +81,26 @@ var Control = function Control(_ref2) {
|
|
|
98
81
|
* Overrides the default DummyControl component in Select.
|
|
99
82
|
*/
|
|
100
83
|
var DummyControl = exports.DummyControl = function DummyControl(props) {
|
|
101
|
-
return
|
|
84
|
+
return /*#__PURE__*/React.createElement(_visuallyHidden.default, null, /*#__PURE__*/React.createElement(_reactSelect.components.Control, props));
|
|
102
85
|
};
|
|
103
86
|
|
|
104
87
|
// NOTE `props` intentionally omitted from `Fragment`
|
|
105
88
|
var Menu = function Menu(_ref3) {
|
|
106
89
|
var children = _ref3.children,
|
|
107
90
|
innerProps = _ref3.innerProps;
|
|
108
|
-
return
|
|
91
|
+
return /*#__PURE__*/React.createElement("div", innerProps, children);
|
|
109
92
|
};
|
|
93
|
+
|
|
94
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
110
95
|
var ClearIndicator = function ClearIndicator(props) {
|
|
111
|
-
return
|
|
96
|
+
return /*#__PURE__*/React.createElement(_reactSelect.components.ClearIndicator, props);
|
|
112
97
|
};
|
|
113
98
|
var MultiValueRemove = function MultiValueRemove(props) {
|
|
114
|
-
return (
|
|
99
|
+
return (
|
|
100
|
+
/*#__PURE__*/
|
|
101
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
102
|
+
React.createElement(_reactSelect.components.MultiValueRemove, props)
|
|
103
|
+
);
|
|
115
104
|
};
|
|
116
105
|
var defaultComponents = exports.defaultComponents = {
|
|
117
106
|
Control: Control,
|
package/dist/cjs/Select.js
CHANGED
|
@@ -11,7 +11,7 @@ var _createSelect = _interopRequireDefault(require("./createSelect"));
|
|
|
11
11
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
12
12
|
|
|
13
13
|
var packageName = "@atlaskit/select";
|
|
14
|
-
var packageVersion = "
|
|
14
|
+
var packageVersion = "20.0.0";
|
|
15
15
|
var SelectWithoutAnalytics = exports.SelectWithoutAnalytics = (0, _createSelect.default)(_async.default);
|
|
16
16
|
var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
|
|
17
17
|
var Select = (0, _analyticsNext.withAnalyticsContext)({
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
._16cu892t svg circle:first-of-type, ._1xci892t svg rect{stroke-linejoin:round}
|
|
2
|
+
._16jlkb7n{flex-grow:1}
|
|
3
|
+
._16qs1kw7{box-shadow:inherit}
|
|
4
|
+
._16qsn8hf{box-shadow:inset 2px 0 0 var(--ds-border-focused,#388bff)}
|
|
5
|
+
._18ql1j7p{-webkit-tap-highlight-color:rgba(0,0,0,0)}
|
|
6
|
+
._1bsb1osq{width:100%}
|
|
7
|
+
._1bto1l2s{text-overflow:ellipsis}
|
|
8
|
+
._1e0c1txw{display:flex}
|
|
9
|
+
._1o9zidpf{flex-shrink:0}
|
|
10
|
+
._1q511b66{padding-block-start:var(--ds-space-050,4px)}
|
|
11
|
+
._1reo15vq{overflow-x:hidden}
|
|
12
|
+
._1u9j1elr svg circle:first-of-type, ._1gqp1elr svg rect{stroke:var(--ds-border-input,#8590a2)}
|
|
13
|
+
._1u9j1r31 svg circle:first-of-type, ._1gqp1r31 svg rect{stroke:currentColor}
|
|
14
|
+
._4cvr1h6o{align-items:center}
|
|
15
|
+
._59qxe4h9 svg circle:first-of-type, ._8y3xe4h9 svg rect{stroke-width:var(--ds-border-width,1px)}
|
|
16
|
+
._85i51b66{padding-block-end:var(--ds-space-050,4px)}
|
|
17
|
+
._bfhk166n{background-color:var(--ds-background-neutral-subtle-hovered,#091e420f)}
|
|
18
|
+
._bfhk1j28{background-color:transparent}
|
|
19
|
+
._bozgpxbi{padding-inline-start:var(--ds-space-200,1pc)}
|
|
20
|
+
._o5721q9c{white-space:nowrap}
|
|
21
|
+
._syaz15gi{color:var(--ds-text-disabled,inherit)}
|
|
22
|
+
._syaz1kw7{color:inherit}
|
|
23
|
+
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
24
|
+
._vchhusvi{box-sizing:border-box}
|
|
25
|
+
._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
|
|
26
|
+
._y4tiutpp{padding-inline-end:var(--ds-space-150,9pt)}
|
|
27
|
+
._1di61dty:active{background-color:var(--ds-background-neutral-subtle-pressed,#091e4224)}
|
|
28
|
+
@media screen and (-ms-high-contrast:active){._112e1vrj{border-inline-start:2px solid transparent}}
|