@atlaskit/select 21.7.1 → 21.7.3
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 +14 -0
- package/dist/cjs/{AsyncCreatableSelect.js → async-creatable-select.js} +1 -1
- package/dist/cjs/{AsyncSelect.js → async-select.js} +1 -1
- package/dist/cjs/{CheckboxSelect.js → checkbox-select.js} +3 -2
- package/dist/cjs/{CountrySelect.js → country-select.js} +4 -5
- package/dist/cjs/{CreatableSelect.js → creatable-select.js} +3 -1
- package/dist/cjs/{createSelect.js → create-select.js} +1 -1
- package/dist/cjs/entry-points/async-creatable-select.js +2 -2
- package/dist/cjs/entry-points/async-select.js +2 -2
- package/dist/cjs/entry-points/creatable-select.js +2 -2
- package/dist/cjs/entry-points/select.js +3 -3
- package/dist/cjs/index.js +8 -8
- package/dist/cjs/{PopupSelect → popup-select}/components.js +5 -3
- package/dist/cjs/{PopupSelect → popup-select}/index.js +2 -2
- package/dist/cjs/{PopupSelect/PopupSelect.js → popup-select/popup-select.js} +3 -3
- package/dist/cjs/{RadioSelect.js → radio-select.js} +2 -2
- package/dist/cjs/{Select.js → select.js} +2 -2
- package/dist/es2019/{AsyncCreatableSelect.js → async-creatable-select.js} +1 -1
- package/dist/es2019/{AsyncSelect.js → async-select.js} +1 -1
- package/dist/es2019/{CheckboxSelect.js → checkbox-select.js} +2 -1
- package/dist/es2019/{CountrySelect.js → country-select.js} +3 -5
- package/dist/es2019/{CreatableSelect.js → creatable-select.js} +2 -1
- package/dist/es2019/{createSelect.js → create-select.js} +0 -1
- package/dist/es2019/entry-points/async-creatable-select.js +1 -1
- package/dist/es2019/entry-points/async-select.js +1 -1
- package/dist/es2019/entry-points/creatable-select.js +1 -1
- package/dist/es2019/entry-points/select.js +1 -1
- package/dist/es2019/index.js +4 -4
- package/dist/es2019/{PopupSelect → popup-select}/components.js +3 -2
- package/dist/es2019/popup-select/index.js +1 -0
- package/dist/es2019/{PopupSelect/PopupSelect.js → popup-select/popup-select.js} +1 -2
- package/dist/es2019/{RadioSelect.js → radio-select.js} +1 -1
- package/dist/es2019/{Select.js → select.js} +2 -2
- package/dist/esm/{AsyncCreatableSelect.js → async-creatable-select.js} +1 -1
- package/dist/esm/{AsyncSelect.js → async-select.js} +1 -1
- package/dist/esm/{CheckboxSelect.js → checkbox-select.js} +2 -1
- package/dist/esm/{CountrySelect.js → country-select.js} +3 -5
- package/dist/esm/{CreatableSelect.js → creatable-select.js} +2 -1
- package/dist/esm/{createSelect.js → create-select.js} +0 -1
- package/dist/esm/entry-points/async-creatable-select.js +1 -1
- package/dist/esm/entry-points/async-select.js +1 -1
- package/dist/esm/entry-points/creatable-select.js +1 -1
- package/dist/esm/entry-points/select.js +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{PopupSelect → popup-select}/components.js +5 -3
- package/dist/esm/popup-select/index.js +1 -0
- package/dist/esm/{PopupSelect/PopupSelect.js → popup-select/popup-select.js} +1 -2
- package/dist/esm/{RadioSelect.js → radio-select.js} +1 -1
- package/dist/esm/{Select.js → select.js} +2 -2
- package/dist/types/entry-points/async-creatable-select.d.ts +1 -1
- package/dist/types/entry-points/async-select.d.ts +1 -1
- package/dist/types/entry-points/creatable-select.d.ts +1 -1
- package/dist/types/entry-points/select.d.ts +1 -1
- package/dist/types/index.d.ts +5 -5
- package/dist/types/popup-select/index.d.ts +2 -0
- package/dist/types/{RadioSelect.d.ts → radio-select.d.ts} +1 -1
- package/dist/{types-ts4.5/Select.d.ts → types/select.d.ts} +1 -1
- package/dist/types-ts4.5/entry-points/async-creatable-select.d.ts +1 -1
- package/dist/types-ts4.5/entry-points/async-select.d.ts +1 -1
- package/dist/types-ts4.5/entry-points/creatable-select.d.ts +1 -1
- package/dist/types-ts4.5/entry-points/select.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +5 -5
- package/dist/types-ts4.5/popup-select/index.d.ts +2 -0
- package/dist/types-ts4.5/{RadioSelect.d.ts → radio-select.d.ts} +1 -1
- package/dist/{types/Select.d.ts → types-ts4.5/select.d.ts} +1 -1
- package/package.json +6 -4
- package/dist/es2019/PopupSelect/index.js +0 -1
- package/dist/esm/PopupSelect/index.js +0 -1
- package/dist/types/PopupSelect/index.d.ts +0 -2
- package/dist/types-ts4.5/PopupSelect/index.d.ts +0 -2
- package/codemods/utils/{helpers.ts → helpers.tsx} +1 -1
- /package/dist/cjs/{CountrySelect.compiled.css → country-select.compiled.css} +0 -0
- /package/dist/cjs/{PopupSelect → popup-select}/components.compiled.css +0 -0
- /package/dist/cjs/{PopupSelect → popup-select}/notify-open-layer-observer.js +0 -0
- /package/dist/es2019/{CountrySelect.compiled.css → country-select.compiled.css} +0 -0
- /package/dist/es2019/{PopupSelect → popup-select}/components.compiled.css +0 -0
- /package/dist/es2019/{PopupSelect → popup-select}/notify-open-layer-observer.js +0 -0
- /package/dist/esm/{CountrySelect.compiled.css → country-select.compiled.css} +0 -0
- /package/dist/esm/{PopupSelect → popup-select}/components.compiled.css +0 -0
- /package/dist/esm/{PopupSelect → popup-select}/notify-open-layer-observer.js +0 -0
- /package/dist/types/{AsyncCreatableSelect.d.ts → async-creatable-select.d.ts} +0 -0
- /package/dist/types/{AsyncSelect.d.ts → async-select.d.ts} +0 -0
- /package/dist/types/{CheckboxSelect.d.ts → checkbox-select.d.ts} +0 -0
- /package/dist/types/{CountrySelect.d.ts → country-select.d.ts} +0 -0
- /package/dist/types/{CreatableSelect.d.ts → creatable-select.d.ts} +0 -0
- /package/dist/types/{createSelect.d.ts → create-select.d.ts} +0 -0
- /package/dist/types/{PopupSelect → popup-select}/components.d.ts +0 -0
- /package/dist/types/{PopupSelect → popup-select}/notify-open-layer-observer.d.ts +0 -0
- /package/dist/types/{PopupSelect/PopupSelect.d.ts → popup-select/popup-select.d.ts} +0 -0
- /package/dist/types-ts4.5/{AsyncCreatableSelect.d.ts → async-creatable-select.d.ts} +0 -0
- /package/dist/types-ts4.5/{AsyncSelect.d.ts → async-select.d.ts} +0 -0
- /package/dist/types-ts4.5/{CheckboxSelect.d.ts → checkbox-select.d.ts} +0 -0
- /package/dist/types-ts4.5/{CountrySelect.d.ts → country-select.d.ts} +0 -0
- /package/dist/types-ts4.5/{CreatableSelect.d.ts → creatable-select.d.ts} +0 -0
- /package/dist/types-ts4.5/{createSelect.d.ts → create-select.d.ts} +0 -0
- /package/dist/types-ts4.5/{PopupSelect → popup-select}/components.d.ts +0 -0
- /package/dist/types-ts4.5/{PopupSelect → popup-select}/notify-open-layer-observer.d.ts +0 -0
- /package/dist/types-ts4.5/{PopupSelect/PopupSelect.d.ts → popup-select/popup-select.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/select
|
|
2
2
|
|
|
3
|
+
## 21.7.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e966e6a5ef441`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e966e6a5ef441) -
|
|
8
|
+
Internal refactoring and declaring undeclared dependencies.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 21.7.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 21.7.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _asyncCreatable = _interopRequireDefault(require("@atlaskit/react-select/async-creatable"));
|
|
9
|
-
var _createSelect = _interopRequireDefault(require("./
|
|
9
|
+
var _createSelect = _interopRequireDefault(require("./create-select"));
|
|
10
10
|
var AsyncCreatableSelect = (0, _createSelect.default)(_asyncCreatable.default);
|
|
11
11
|
|
|
12
12
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _async = _interopRequireDefault(require("@atlaskit/react-select/async"));
|
|
9
|
-
var _createSelect = _interopRequireDefault(require("./
|
|
9
|
+
var _createSelect = _interopRequireDefault(require("./create-select"));
|
|
10
10
|
var AsyncSelect = (0, _createSelect.default)(_async.default);
|
|
11
11
|
|
|
12
12
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -11,7 +11,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
11
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _inputOptions = require("./components/input-options");
|
|
14
|
-
var
|
|
14
|
+
var _select = _interopRequireDefault(require("./select"));
|
|
15
15
|
var _excluded = ["components"];
|
|
16
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
17
|
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; }
|
|
@@ -24,10 +24,11 @@ var CheckboxSelectInternal = function CheckboxSelectInternal(_ref) {
|
|
|
24
24
|
Option: _inputOptions.CheckboxOption
|
|
25
25
|
});
|
|
26
26
|
}, [components]);
|
|
27
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
27
|
+
return /*#__PURE__*/_react.default.createElement(_select.default, (0, _extends2.default)({
|
|
28
28
|
closeMenuOnSelect: false,
|
|
29
29
|
hideSelectedOptions: false,
|
|
30
30
|
isMulti: true
|
|
31
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
31
32
|
}, props, {
|
|
32
33
|
components: mergedComponents
|
|
33
34
|
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* country-select.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -7,14 +7,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
9
|
exports.default = void 0;
|
|
10
|
-
require("./
|
|
10
|
+
require("./country-select.compiled.css");
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
14
14
|
var _countries = require("./data/countries");
|
|
15
|
-
var
|
|
15
|
+
var _select = _interopRequireDefault(require("./select"));
|
|
16
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
|
-
/* eslint-disable @repo/internal/fs/filename-pattern-match */
|
|
18
17
|
// custom option renderer
|
|
19
18
|
var labelStyles = null;
|
|
20
19
|
var flagStyles = null;
|
|
@@ -73,7 +72,7 @@ var formatOptionLabel = function formatOptionLabel(opt, _ref4) {
|
|
|
73
72
|
var CountrySelect = function CountrySelect(props) {
|
|
74
73
|
var options = props.options;
|
|
75
74
|
var countryOptions = options || _countries.groupedCountries;
|
|
76
|
-
return /*#__PURE__*/React.createElement(
|
|
75
|
+
return /*#__PURE__*/React.createElement(_select.default, (0, _extends2.default)({
|
|
77
76
|
isClearable: false,
|
|
78
77
|
formatOptionLabel: formatOptionLabel,
|
|
79
78
|
getOptionLabel: getOptionLabel,
|
|
@@ -6,7 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _creatable = _interopRequireDefault(require("@atlaskit/react-select/creatable"));
|
|
9
|
-
var _createSelect = _interopRequireDefault(require("./
|
|
9
|
+
var _createSelect = _interopRequireDefault(require("./create-select"));
|
|
10
|
+
/* eslint-disable @repo/internal/fs/filename-pattern-match */
|
|
11
|
+
|
|
10
12
|
var CreatableSelect = (0, _createSelect.default)(_creatable.default);
|
|
11
13
|
|
|
12
14
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -9,7 +9,7 @@ exports.default = createSelect;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _excluded = ["ariaLiveMessages", "isInvalid", "onClickPreventDefault", "tabSelectsValue", "validationState"];
|
|
12
|
+
var _excluded = ["ariaLiveMessages", "isInvalid", "onClickPreventDefault", "tabSelectsValue", "validationState"];
|
|
13
13
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
14
14
|
function createSelect(WrappedComponent) {
|
|
15
15
|
var AtlaskitSelect = /*#__PURE__*/(0, _react.forwardRef)(function AtlaskitSelect(props, forwardedRef) {
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
Object.defineProperty(exports, "default", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function get() {
|
|
10
|
-
return
|
|
10
|
+
return _asyncCreatableSelect.default;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
var
|
|
13
|
+
var _asyncCreatableSelect = _interopRequireDefault(require("../async-creatable-select"));
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
Object.defineProperty(exports, "default", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function get() {
|
|
10
|
-
return
|
|
10
|
+
return _asyncSelect.default;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
var
|
|
13
|
+
var _asyncSelect = _interopRequireDefault(require("../async-select"));
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
Object.defineProperty(exports, "default", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function get() {
|
|
10
|
-
return
|
|
10
|
+
return _creatableSelect.default;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
var
|
|
13
|
+
var _creatableSelect = _interopRequireDefault(require("../creatable-select"));
|
|
@@ -7,14 +7,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
Object.defineProperty(exports, "SelectWithoutAnalytics", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function get() {
|
|
10
|
-
return
|
|
10
|
+
return _select.SelectWithoutAnalytics;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "default", {
|
|
14
14
|
enumerable: true,
|
|
15
15
|
get: function get() {
|
|
16
|
-
return
|
|
16
|
+
return _select.default;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
var
|
|
19
|
+
var _select = _interopRequireWildcard(require("../select"));
|
|
20
20
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
package/dist/cjs/index.js
CHANGED
|
@@ -26,13 +26,13 @@ Object.defineProperty(exports, "CheckboxOption", {
|
|
|
26
26
|
Object.defineProperty(exports, "CheckboxSelect", {
|
|
27
27
|
enumerable: true,
|
|
28
28
|
get: function get() {
|
|
29
|
-
return
|
|
29
|
+
return _checkboxSelect.default;
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "CountrySelect", {
|
|
33
33
|
enumerable: true,
|
|
34
34
|
get: function get() {
|
|
35
|
-
return
|
|
35
|
+
return _countrySelect.default;
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "CreatableSelect", {
|
|
@@ -44,7 +44,7 @@ Object.defineProperty(exports, "CreatableSelect", {
|
|
|
44
44
|
Object.defineProperty(exports, "PopupSelect", {
|
|
45
45
|
enumerable: true,
|
|
46
46
|
get: function get() {
|
|
47
|
-
return
|
|
47
|
+
return _popupSelect.default;
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "RadioOption", {
|
|
@@ -56,7 +56,7 @@ Object.defineProperty(exports, "RadioOption", {
|
|
|
56
56
|
Object.defineProperty(exports, "RadioSelect", {
|
|
57
57
|
enumerable: true,
|
|
58
58
|
get: function get() {
|
|
59
|
-
return
|
|
59
|
+
return _radioSelect.default;
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "SelectWithoutAnalytics", {
|
|
@@ -116,8 +116,8 @@ var _asyncSelect = _interopRequireDefault(require("./entry-points/async-select")
|
|
|
116
116
|
var _creatableSelect = _interopRequireDefault(require("./entry-points/creatable-select"));
|
|
117
117
|
var _asyncCreatableSelect = _interopRequireDefault(require("./entry-points/async-creatable-select"));
|
|
118
118
|
var _groupedOptionsAnnouncement = require("./utils/grouped-options-announcement");
|
|
119
|
-
var
|
|
120
|
-
var
|
|
121
|
-
var
|
|
122
|
-
var
|
|
119
|
+
var _checkboxSelect = _interopRequireDefault(require("./checkbox-select"));
|
|
120
|
+
var _countrySelect = _interopRequireDefault(require("./country-select"));
|
|
121
|
+
var _radioSelect = _interopRequireDefault(require("./radio-select"));
|
|
122
|
+
var _popupSelect = _interopRequireDefault(require("./popup-select"));
|
|
123
123
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -91,10 +91,12 @@ var Menu = function Menu(_ref3) {
|
|
|
91
91
|
innerProps = _ref3.innerProps;
|
|
92
92
|
return /*#__PURE__*/React.createElement("div", innerProps, children);
|
|
93
93
|
};
|
|
94
|
-
|
|
95
|
-
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
96
94
|
var ClearIndicator = function ClearIndicator(props) {
|
|
97
|
-
return
|
|
95
|
+
return (
|
|
96
|
+
/*#__PURE__*/
|
|
97
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
98
|
+
React.createElement(_reactSelect.components.ClearIndicator, props)
|
|
99
|
+
);
|
|
98
100
|
};
|
|
99
101
|
var MultiValueRemove = function MultiValueRemove(props) {
|
|
100
102
|
return (
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
Object.defineProperty(exports, "default", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function get() {
|
|
10
|
-
return
|
|
10
|
+
return _popupSelect.default;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
var
|
|
13
|
+
var _popupSelect = _interopRequireDefault(require("./popup-select"));
|
|
@@ -24,7 +24,7 @@ var _useId = require("@atlaskit/ds-lib/use-id");
|
|
|
24
24
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
25
25
|
var _reactSelect = require("@atlaskit/react-select");
|
|
26
26
|
var _colors = require("@atlaskit/theme/colors");
|
|
27
|
-
var
|
|
27
|
+
var _select = _interopRequireDefault(require("../select"));
|
|
28
28
|
var _components = require("./components");
|
|
29
29
|
var _notifyOpenLayerObserver = require("./notify-open-layer-observer");
|
|
30
30
|
var _excluded = ["footer", "label", "maxMenuWidth", "minMenuWidth", "placeholder", "target", "testId", "onMenuOpen", "onMenuClose"];
|
|
@@ -32,7 +32,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
32
32
|
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; }
|
|
33
33
|
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; }
|
|
34
34
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
35
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
35
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
36
36
|
/**
|
|
37
37
|
* Are we rendering on the client or server?
|
|
38
38
|
*/
|
|
@@ -377,7 +377,7 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
377
377
|
}, /*#__PURE__*/_react.default.createElement(_reactFocusLock.default, {
|
|
378
378
|
disabled: !focusLockEnabled,
|
|
379
379
|
returnFocus: true
|
|
380
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
380
|
+
}, /*#__PURE__*/_react.default.createElement(_select.default, (0, _extends2.default)({
|
|
381
381
|
label: getLabel(),
|
|
382
382
|
backspaceRemovesValue: false,
|
|
383
383
|
controlShouldRenderValue: false,
|
|
@@ -10,8 +10,8 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
-
var _Select = _interopRequireDefault(require("./Select"));
|
|
14
13
|
var _inputOptions = require("./components/input-options");
|
|
14
|
+
var _select = _interopRequireDefault(require("./select"));
|
|
15
15
|
var _excluded = ["components"];
|
|
16
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
17
|
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; }
|
|
@@ -24,7 +24,7 @@ var RadioSelect = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
24
24
|
Option: _inputOptions.RadioOption
|
|
25
25
|
});
|
|
26
26
|
}, [components]);
|
|
27
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
27
|
+
return /*#__PURE__*/_react.default.createElement(_select.default, (0, _extends2.default)({}, props, {
|
|
28
28
|
isMulti: false,
|
|
29
29
|
components: mergedComponents
|
|
30
30
|
}));
|
|
@@ -7,11 +7,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = exports.SelectWithoutAnalytics = void 0;
|
|
8
8
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
9
9
|
var _async = _interopRequireDefault(require("@atlaskit/react-select/async"));
|
|
10
|
-
var _createSelect = _interopRequireDefault(require("./
|
|
10
|
+
var _createSelect = _interopRequireDefault(require("./create-select"));
|
|
11
11
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
12
12
|
|
|
13
13
|
var packageName = "@atlaskit/select";
|
|
14
|
-
var packageVersion = "
|
|
14
|
+
var packageVersion = "21.7.2";
|
|
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)({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import AsyncCreatableReactSelect from '@atlaskit/react-select/async-creatable';
|
|
2
|
-
import createSelect from './
|
|
2
|
+
import createSelect from './create-select';
|
|
3
3
|
const AsyncCreatableSelect = createSelect(AsyncCreatableReactSelect);
|
|
4
4
|
|
|
5
5
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import AsyncReactSelect from '@atlaskit/react-select/async';
|
|
2
|
-
import createSelect from './
|
|
2
|
+
import createSelect from './create-select';
|
|
3
3
|
const AsyncSelect = createSelect(AsyncReactSelect);
|
|
4
4
|
|
|
5
5
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
3
|
import { CheckboxOption } from './components/input-options';
|
|
4
|
-
import Select from './
|
|
4
|
+
import Select from './select';
|
|
5
5
|
const CheckboxSelectInternal = ({
|
|
6
6
|
components,
|
|
7
7
|
...props
|
|
@@ -14,6 +14,7 @@ const CheckboxSelectInternal = ({
|
|
|
14
14
|
closeMenuOnSelect: false,
|
|
15
15
|
hideSelectedOptions: false,
|
|
16
16
|
isMulti: true
|
|
17
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
17
18
|
}, props, {
|
|
18
19
|
components: mergedComponents
|
|
19
20
|
}));
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* country-select.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
-
import "./
|
|
3
|
+
import "./country-select.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
-
/* eslint-disable @repo/internal/fs/filename-pattern-match */
|
|
7
|
-
|
|
8
6
|
import { groupedCountries } from './data/countries';
|
|
9
|
-
import Select from './
|
|
7
|
+
import Select from './select';
|
|
10
8
|
// custom option renderer
|
|
11
9
|
const labelStyles = null;
|
|
12
10
|
const flagStyles = null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/* eslint-disable @repo/internal/fs/filename-pattern-match */
|
|
1
2
|
import CreatableReactSelect from '@atlaskit/react-select/creatable';
|
|
2
|
-
import createSelect from './
|
|
3
|
+
import createSelect from './create-select';
|
|
3
4
|
const CreatableSelect = createSelect(CreatableReactSelect);
|
|
4
5
|
|
|
5
6
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
3
2
|
import React, { forwardRef, useImperativeHandle, useRef } from 'react';
|
|
4
3
|
export default function createSelect(WrappedComponent) {
|
|
5
4
|
const AtlaskitSelect = /*#__PURE__*/forwardRef(function AtlaskitSelect(props, forwardedRef) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '../
|
|
1
|
+
export { default } from '../async-creatable-select';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '../
|
|
1
|
+
export { default } from '../async-select';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '../
|
|
1
|
+
export { default } from '../creatable-select';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, SelectWithoutAnalytics } from '../
|
|
1
|
+
export { default, SelectWithoutAnalytics } from '../select';
|
package/dist/es2019/index.js
CHANGED
|
@@ -7,10 +7,10 @@ export { default as AsyncSelect } from './entry-points/async-select';
|
|
|
7
7
|
export { default as CreatableSelect } from './entry-points/creatable-select';
|
|
8
8
|
export { default as AsyncCreatableSelect } from './entry-points/async-creatable-select';
|
|
9
9
|
export { isOptionsGrouped } from './utils/grouped-options-announcement';
|
|
10
|
-
export { default as CheckboxSelect } from './
|
|
11
|
-
export { default as CountrySelect } from './
|
|
12
|
-
export { default as RadioSelect } from './
|
|
13
|
-
export { default as PopupSelect } from './
|
|
10
|
+
export { default as CheckboxSelect } from './checkbox-select';
|
|
11
|
+
export { default as CountrySelect } from './country-select';
|
|
12
|
+
export { default as RadioSelect } from './radio-select';
|
|
13
|
+
export { default as PopupSelect } from './popup-select';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Types not exported on the public API, didn't find usages in sourcegraph
|
|
@@ -72,9 +72,10 @@ const Menu = ({
|
|
|
72
72
|
children,
|
|
73
73
|
innerProps
|
|
74
74
|
}) => /*#__PURE__*/React.createElement("div", innerProps, children);
|
|
75
|
-
|
|
75
|
+
const ClearIndicator = props =>
|
|
76
|
+
/*#__PURE__*/
|
|
76
77
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
77
|
-
|
|
78
|
+
React.createElement(components.ClearIndicator, props);
|
|
78
79
|
const MultiValueRemove = props =>
|
|
79
80
|
/*#__PURE__*/
|
|
80
81
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './popup-select';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
4
3
|
import React, { PureComponent } from 'react';
|
|
5
4
|
import { bind } from 'bind-event-listener';
|
|
6
5
|
import { createPortal } from 'react-dom';
|
|
@@ -11,7 +10,7 @@ import { IdProvider } from '@atlaskit/ds-lib/use-id';
|
|
|
11
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import { mergeStyles } from '@atlaskit/react-select';
|
|
13
12
|
import { N80 } from '@atlaskit/theme/colors';
|
|
14
|
-
import Select from '../
|
|
13
|
+
import Select from '../select';
|
|
15
14
|
import { defaultComponents, DummyControl, MenuDialog } from './components';
|
|
16
15
|
import { NotifyOpenLayerObserver } from './notify-open-layer-observer';
|
|
17
16
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
|
-
import Select from './Select';
|
|
4
3
|
import { RadioOption } from './components/input-options';
|
|
4
|
+
import Select from './select';
|
|
5
5
|
const RadioSelect = /*#__PURE__*/React.memo(({
|
|
6
6
|
components,
|
|
7
7
|
...props
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
2
2
|
import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
3
3
|
import AsyncSelect from '@atlaskit/react-select/async';
|
|
4
|
-
import createSelect from './
|
|
4
|
+
import createSelect from './create-select';
|
|
5
5
|
const packageName = "@atlaskit/select";
|
|
6
|
-
const packageVersion = "
|
|
6
|
+
const packageVersion = "21.7.2";
|
|
7
7
|
export const SelectWithoutAnalytics = createSelect(AsyncSelect);
|
|
8
8
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
9
9
|
const Select = withAnalyticsContext({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import AsyncCreatableReactSelect from '@atlaskit/react-select/async-creatable';
|
|
2
|
-
import createSelect from './
|
|
2
|
+
import createSelect from './create-select';
|
|
3
3
|
var AsyncCreatableSelect = createSelect(AsyncCreatableReactSelect);
|
|
4
4
|
|
|
5
5
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import AsyncReactSelect from '@atlaskit/react-select/async';
|
|
2
|
-
import createSelect from './
|
|
2
|
+
import createSelect from './create-select';
|
|
3
3
|
var AsyncSelect = createSelect(AsyncReactSelect);
|
|
4
4
|
|
|
5
5
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
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) { _defineProperty(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; }
|
|
7
7
|
import React, { useMemo } from 'react';
|
|
8
8
|
import { CheckboxOption } from './components/input-options';
|
|
9
|
-
import Select from './
|
|
9
|
+
import Select from './select';
|
|
10
10
|
var CheckboxSelectInternal = function CheckboxSelectInternal(_ref) {
|
|
11
11
|
var components = _ref.components,
|
|
12
12
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -19,6 +19,7 @@ var CheckboxSelectInternal = function CheckboxSelectInternal(_ref) {
|
|
|
19
19
|
closeMenuOnSelect: false,
|
|
20
20
|
hideSelectedOptions: false,
|
|
21
21
|
isMulti: true
|
|
22
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
22
23
|
}, props, {
|
|
23
24
|
components: mergedComponents
|
|
24
25
|
}));
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* country-select.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
-
import "./
|
|
3
|
+
import "./country-select.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
-
/* eslint-disable @repo/internal/fs/filename-pattern-match */
|
|
7
|
-
|
|
8
6
|
import { groupedCountries } from './data/countries';
|
|
9
|
-
import Select from './
|
|
7
|
+
import Select from './select';
|
|
10
8
|
// custom option renderer
|
|
11
9
|
var labelStyles = null;
|
|
12
10
|
var flagStyles = null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/* eslint-disable @repo/internal/fs/filename-pattern-match */
|
|
1
2
|
import CreatableReactSelect from '@atlaskit/react-select/creatable';
|
|
2
|
-
import createSelect from './
|
|
3
|
+
import createSelect from './create-select';
|
|
3
4
|
var CreatableSelect = createSelect(CreatableReactSelect);
|
|
4
5
|
|
|
5
6
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["ariaLiveMessages", "isInvalid", "onClickPreventDefault", "tabSelectsValue", "validationState"];
|
|
4
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
5
4
|
import React, { forwardRef, useImperativeHandle, useRef } from 'react';
|
|
6
5
|
export default function createSelect(WrappedComponent) {
|
|
7
6
|
var AtlaskitSelect = /*#__PURE__*/forwardRef(function AtlaskitSelect(props, forwardedRef) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '../
|
|
1
|
+
export { default } from '../async-creatable-select';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '../
|
|
1
|
+
export { default } from '../async-select';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '../
|
|
1
|
+
export { default } from '../creatable-select';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, SelectWithoutAnalytics } from '../
|
|
1
|
+
export { default, SelectWithoutAnalytics } from '../select';
|
package/dist/esm/index.js
CHANGED
|
@@ -7,10 +7,10 @@ export { default as AsyncSelect } from './entry-points/async-select';
|
|
|
7
7
|
export { default as CreatableSelect } from './entry-points/creatable-select';
|
|
8
8
|
export { default as AsyncCreatableSelect } from './entry-points/async-creatable-select';
|
|
9
9
|
export { isOptionsGrouped } from './utils/grouped-options-announcement';
|
|
10
|
-
export { default as CheckboxSelect } from './
|
|
11
|
-
export { default as CountrySelect } from './
|
|
12
|
-
export { default as RadioSelect } from './
|
|
13
|
-
export { default as PopupSelect } from './
|
|
10
|
+
export { default as CheckboxSelect } from './checkbox-select';
|
|
11
|
+
export { default as CountrySelect } from './country-select';
|
|
12
|
+
export { default as RadioSelect } from './radio-select';
|
|
13
|
+
export { default as PopupSelect } from './popup-select';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Types not exported on the public API, didn't find usages in sourcegraph
|
|
@@ -83,10 +83,12 @@ var Menu = function Menu(_ref3) {
|
|
|
83
83
|
innerProps = _ref3.innerProps;
|
|
84
84
|
return /*#__PURE__*/React.createElement("div", innerProps, children);
|
|
85
85
|
};
|
|
86
|
-
|
|
87
|
-
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
88
86
|
var ClearIndicator = function ClearIndicator(props) {
|
|
89
|
-
return
|
|
87
|
+
return (
|
|
88
|
+
/*#__PURE__*/
|
|
89
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
90
|
+
React.createElement(components.ClearIndicator, props)
|
|
91
|
+
);
|
|
90
92
|
};
|
|
91
93
|
var MultiValueRemove = function MultiValueRemove(props) {
|
|
92
94
|
return (
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './popup-select';
|
|
@@ -11,7 +11,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
11
11
|
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) { _defineProperty(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; }
|
|
12
12
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
13
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
15
14
|
import React, { PureComponent } from 'react';
|
|
16
15
|
import { bind } from 'bind-event-listener';
|
|
17
16
|
import { createPortal } from 'react-dom';
|
|
@@ -22,7 +21,7 @@ import { IdProvider } from '@atlaskit/ds-lib/use-id';
|
|
|
22
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
23
22
|
import { mergeStyles } from '@atlaskit/react-select';
|
|
24
23
|
import { N80 } from '@atlaskit/theme/colors';
|
|
25
|
-
import Select from '../
|
|
24
|
+
import Select from '../select';
|
|
26
25
|
import { defaultComponents, DummyControl, MenuDialog } from './components';
|
|
27
26
|
import { NotifyOpenLayerObserver } from './notify-open-layer-observer';
|
|
28
27
|
/**
|
|
@@ -5,8 +5,8 @@ var _excluded = ["components"];
|
|
|
5
5
|
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; }
|
|
6
6
|
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) { _defineProperty(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; }
|
|
7
7
|
import React, { useMemo } from 'react';
|
|
8
|
-
import Select from './Select';
|
|
9
8
|
import { RadioOption } from './components/input-options';
|
|
9
|
+
import Select from './select';
|
|
10
10
|
var RadioSelect = /*#__PURE__*/React.memo(function (_ref) {
|
|
11
11
|
var components = _ref.components,
|
|
12
12
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/require-jsdoc */
|
|
2
2
|
import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
3
3
|
import AsyncSelect from '@atlaskit/react-select/async';
|
|
4
|
-
import createSelect from './
|
|
4
|
+
import createSelect from './create-select';
|
|
5
5
|
var packageName = "@atlaskit/select";
|
|
6
|
-
var packageVersion = "
|
|
6
|
+
var packageVersion = "21.7.2";
|
|
7
7
|
export var SelectWithoutAnalytics = createSelect(AsyncSelect);
|
|
8
8
|
var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
9
9
|
var Select = withAnalyticsContext({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '../
|
|
1
|
+
export { default } from '../async-creatable-select';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '../
|
|
1
|
+
export { default } from '../async-select';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '../
|
|
1
|
+
export { default } from '../creatable-select';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, SelectWithoutAnalytics } from '../
|
|
1
|
+
export { default, SelectWithoutAnalytics } from '../select';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -7,11 +7,11 @@ export { default as AsyncSelect } from './entry-points/async-select';
|
|
|
7
7
|
export { default as CreatableSelect } from './entry-points/creatable-select';
|
|
8
8
|
export { default as AsyncCreatableSelect } from './entry-points/async-creatable-select';
|
|
9
9
|
export { isOptionsGrouped } from './utils/grouped-options-announcement';
|
|
10
|
-
export { default as CheckboxSelect } from './
|
|
11
|
-
export { default as CountrySelect } from './
|
|
12
|
-
export { default as RadioSelect } from './
|
|
13
|
-
export { default as PopupSelect } from './
|
|
14
|
-
export type { PopupSelectProps, ModifierList } from './
|
|
10
|
+
export { default as CheckboxSelect } from './checkbox-select';
|
|
11
|
+
export { default as CountrySelect } from './country-select';
|
|
12
|
+
export { default as RadioSelect } from './radio-select';
|
|
13
|
+
export { default as PopupSelect } from './popup-select';
|
|
14
|
+
export type { PopupSelectProps, ModifierList } from './popup-select';
|
|
15
15
|
export type { SelectInstance, ActionMeta, ControlProps, FormatOptionLabelMeta, InputActionMeta, InputProps, MenuProps, MenuListComponentProps, OptionProps, OptionsType, OptionType, SelectComponentsConfig, SelectProps, StylesConfig, ValueContainerProps, ValueType, GroupedOptionsType, GroupType, ClearIndicatorProps, DropdownIndicatorProps, IndicatorsContainerProps, LoadingIndicatorProps, MultiValueGenericProps, MultiValueProps, MultiValueRemoveProps, ReactSelectProps, SingleValueProps, NoticeProps, ValidationState, GroupProps, AsyncSelectProps, PlaceholderProps, AriaOnFocusProps, } from './types';
|
|
16
16
|
/**
|
|
17
17
|
* Types not exported on the public API, didn't find usages in sourcegraph
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type OptionType, type SelectProps } from './types';
|
|
3
3
|
declare const RadioSelect: React.MemoExoticComponent<({ components, ...props }: SelectProps<OptionType>) => React.JSX.Element>;
|
|
4
4
|
export default RadioSelect;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import createSelect from './
|
|
1
|
+
import createSelect from './create-select';
|
|
2
2
|
export declare const SelectWithoutAnalytics: <Option extends unknown = import("./types").OptionType, IsMulti extends boolean = false>(props: (import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>) & {
|
|
3
3
|
ref?: import("react").Ref<import("./types").AtlaskitSelectRefType>;
|
|
4
4
|
}) => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '../
|
|
1
|
+
export { default } from '../async-creatable-select';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '../
|
|
1
|
+
export { default } from '../async-select';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '../
|
|
1
|
+
export { default } from '../creatable-select';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, SelectWithoutAnalytics } from '../
|
|
1
|
+
export { default, SelectWithoutAnalytics } from '../select';
|
|
@@ -7,11 +7,11 @@ export { default as AsyncSelect } from './entry-points/async-select';
|
|
|
7
7
|
export { default as CreatableSelect } from './entry-points/creatable-select';
|
|
8
8
|
export { default as AsyncCreatableSelect } from './entry-points/async-creatable-select';
|
|
9
9
|
export { isOptionsGrouped } from './utils/grouped-options-announcement';
|
|
10
|
-
export { default as CheckboxSelect } from './
|
|
11
|
-
export { default as CountrySelect } from './
|
|
12
|
-
export { default as RadioSelect } from './
|
|
13
|
-
export { default as PopupSelect } from './
|
|
14
|
-
export type { PopupSelectProps, ModifierList } from './
|
|
10
|
+
export { default as CheckboxSelect } from './checkbox-select';
|
|
11
|
+
export { default as CountrySelect } from './country-select';
|
|
12
|
+
export { default as RadioSelect } from './radio-select';
|
|
13
|
+
export { default as PopupSelect } from './popup-select';
|
|
14
|
+
export type { PopupSelectProps, ModifierList } from './popup-select';
|
|
15
15
|
export type { SelectInstance, ActionMeta, ControlProps, FormatOptionLabelMeta, InputActionMeta, InputProps, MenuProps, MenuListComponentProps, OptionProps, OptionsType, OptionType, SelectComponentsConfig, SelectProps, StylesConfig, ValueContainerProps, ValueType, GroupedOptionsType, GroupType, ClearIndicatorProps, DropdownIndicatorProps, IndicatorsContainerProps, LoadingIndicatorProps, MultiValueGenericProps, MultiValueProps, MultiValueRemoveProps, ReactSelectProps, SingleValueProps, NoticeProps, ValidationState, GroupProps, AsyncSelectProps, PlaceholderProps, AriaOnFocusProps, } from './types';
|
|
16
16
|
/**
|
|
17
17
|
* Types not exported on the public API, didn't find usages in sourcegraph
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type OptionType, type SelectProps } from './types';
|
|
3
3
|
declare const RadioSelect: React.MemoExoticComponent<({ components, ...props }: SelectProps<OptionType>) => React.JSX.Element>;
|
|
4
4
|
export default RadioSelect;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import createSelect from './
|
|
1
|
+
import createSelect from './create-select';
|
|
2
2
|
export declare const SelectWithoutAnalytics: <Option extends unknown = import("./types").OptionType, IsMulti extends boolean = false>(props: (import("./types").SelectProps<Option, IsMulti> | import("./types").AsyncSelectProps<Option, IsMulti> | import("./types").CreatableSelectProps<Option, IsMulti>) & {
|
|
3
3
|
ref?: import("react").Ref<import("./types").AtlaskitSelectRefType>;
|
|
4
4
|
}) => JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/select",
|
|
3
|
-
"version": "21.7.
|
|
3
|
+
"version": "21.7.3",
|
|
4
4
|
"description": "Select allows users to make a single selection or multiple selections from a list of options.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -34,12 +34,13 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
36
36
|
"@atlaskit/ds-lib": "^5.3.0",
|
|
37
|
-
"@atlaskit/icon": "^
|
|
37
|
+
"@atlaskit/icon": "^30.0.0",
|
|
38
|
+
"@atlaskit/layering": "^3.6.0",
|
|
38
39
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
39
|
-
"@atlaskit/primitives": "^
|
|
40
|
+
"@atlaskit/primitives": "^18.0.0",
|
|
40
41
|
"@atlaskit/react-select": "^3.13.0",
|
|
41
42
|
"@atlaskit/theme": "^21.0.0",
|
|
42
|
-
"@atlaskit/tokens": "^
|
|
43
|
+
"@atlaskit/tokens": "^11.0.0",
|
|
43
44
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
44
45
|
"@babel/runtime": "^7.0.0",
|
|
45
46
|
"@compiled/react": "^0.18.6",
|
|
@@ -67,6 +68,7 @@
|
|
|
67
68
|
"@atlaskit/modal-dialog": "^14.10.0",
|
|
68
69
|
"@atlaskit/radio": "^8.4.0",
|
|
69
70
|
"@atlaskit/section-message": "^8.12.0",
|
|
71
|
+
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
70
72
|
"@atlassian/ssr-tests": "workspace:^",
|
|
71
73
|
"@testing-library/react": "^16.3.0",
|
|
72
74
|
"@testing-library/user-event": "^14.4.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './PopupSelect';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './PopupSelect';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|