@atlaskit/select 21.3.7 → 21.3.9
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/CountrySelect.js +9 -13
- package/dist/cjs/PopupSelect/PopupSelect.js +1 -0
- package/dist/cjs/Select.js +1 -1
- package/dist/es2019/CountrySelect.js +9 -13
- package/dist/es2019/PopupSelect/PopupSelect.js +1 -0
- package/dist/es2019/Select.js +1 -1
- package/dist/esm/CountrySelect.js +9 -13
- package/dist/esm/PopupSelect/PopupSelect.js +1 -0
- package/dist/esm/Select.js +1 -1
- package/dist/types/PopupSelect/components.d.ts +1 -1
- package/dist/types-ts4.5/PopupSelect/components.d.ts +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/select
|
|
2
2
|
|
|
3
|
+
## 21.3.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 21.3.8
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`e02c11e7be73c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e02c11e7be73c) -
|
|
14
|
+
types made more explicit
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 21.3.7
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -73,19 +73,15 @@ var formatOptionLabel = function formatOptionLabel(opt, _ref4) {
|
|
|
73
73
|
var CountrySelect = function CountrySelect(props) {
|
|
74
74
|
var options = props.options;
|
|
75
75
|
var countryOptions = options || _countries.groupedCountries;
|
|
76
|
-
return (
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
options: countryOptions
|
|
86
|
-
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
87
|
-
}, props))
|
|
88
|
-
);
|
|
76
|
+
return /*#__PURE__*/React.createElement(_Select.default, (0, _extends2.default)({
|
|
77
|
+
isClearable: false,
|
|
78
|
+
formatOptionLabel: formatOptionLabel,
|
|
79
|
+
getOptionLabel: getOptionLabel,
|
|
80
|
+
getOptionValue: getOptionValue,
|
|
81
|
+
isMulti: false,
|
|
82
|
+
options: countryOptions
|
|
83
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
84
|
+
}, props));
|
|
89
85
|
};
|
|
90
86
|
|
|
91
87
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -386,6 +386,7 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
386
386
|
} else if (typeof placeholder === 'string') {
|
|
387
387
|
return placeholder;
|
|
388
388
|
}
|
|
389
|
+
return undefined;
|
|
389
390
|
};
|
|
390
391
|
var popper = /*#__PURE__*/_react.default.createElement(_reactPopper.Popper, (0, _extends2.default)({}, mergedPopperProps, {
|
|
391
392
|
onFirstUpdate: function onFirstUpdate(state) {
|
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 = "21.3.8";
|
|
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)({
|
|
@@ -59,19 +59,15 @@ const CountrySelect = props => {
|
|
|
59
59
|
options
|
|
60
60
|
} = props;
|
|
61
61
|
const countryOptions = options || groupedCountries;
|
|
62
|
-
return (
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
options: countryOptions
|
|
72
|
-
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
73
|
-
}, props))
|
|
74
|
-
);
|
|
62
|
+
return /*#__PURE__*/React.createElement(Select, _extends({
|
|
63
|
+
isClearable: false,
|
|
64
|
+
formatOptionLabel: formatOptionLabel,
|
|
65
|
+
getOptionLabel: getOptionLabel,
|
|
66
|
+
getOptionValue: getOptionValue,
|
|
67
|
+
isMulti: false,
|
|
68
|
+
options: countryOptions
|
|
69
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
70
|
+
}, props));
|
|
75
71
|
};
|
|
76
72
|
|
|
77
73
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -365,6 +365,7 @@ export default class PopupSelect extends PureComponent {
|
|
|
365
365
|
} else if (typeof placeholder === 'string') {
|
|
366
366
|
return placeholder;
|
|
367
367
|
}
|
|
368
|
+
return undefined;
|
|
368
369
|
};
|
|
369
370
|
const popper = /*#__PURE__*/React.createElement(Popper, _extends({}, mergedPopperProps, {
|
|
370
371
|
onFirstUpdate: state => {
|
package/dist/es2019/Select.js
CHANGED
|
@@ -3,7 +3,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
3
3
|
import AsyncSelect from '@atlaskit/react-select/async';
|
|
4
4
|
import createSelect from './createSelect';
|
|
5
5
|
const packageName = "@atlaskit/select";
|
|
6
|
-
const packageVersion = "
|
|
6
|
+
const packageVersion = "21.3.8";
|
|
7
7
|
export const SelectWithoutAnalytics = createSelect(AsyncSelect);
|
|
8
8
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
9
9
|
const Select = withAnalyticsContext({
|
|
@@ -65,19 +65,15 @@ var formatOptionLabel = function formatOptionLabel(opt, _ref4) {
|
|
|
65
65
|
var CountrySelect = function CountrySelect(props) {
|
|
66
66
|
var options = props.options;
|
|
67
67
|
var countryOptions = options || groupedCountries;
|
|
68
|
-
return (
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
options: countryOptions
|
|
78
|
-
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
79
|
-
}, props))
|
|
80
|
-
);
|
|
68
|
+
return /*#__PURE__*/React.createElement(Select, _extends({
|
|
69
|
+
isClearable: false,
|
|
70
|
+
formatOptionLabel: formatOptionLabel,
|
|
71
|
+
getOptionLabel: getOptionLabel,
|
|
72
|
+
getOptionValue: getOptionValue,
|
|
73
|
+
isMulti: false,
|
|
74
|
+
options: countryOptions
|
|
75
|
+
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
76
|
+
}, props));
|
|
81
77
|
};
|
|
82
78
|
|
|
83
79
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -378,6 +378,7 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
|
|
|
378
378
|
} else if (typeof placeholder === 'string') {
|
|
379
379
|
return placeholder;
|
|
380
380
|
}
|
|
381
|
+
return undefined;
|
|
381
382
|
};
|
|
382
383
|
var popper = /*#__PURE__*/React.createElement(Popper, _extends({}, mergedPopperProps, {
|
|
383
384
|
onFirstUpdate: function onFirstUpdate(state) {
|
package/dist/esm/Select.js
CHANGED
|
@@ -3,7 +3,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
3
3
|
import AsyncSelect from '@atlaskit/react-select/async';
|
|
4
4
|
import createSelect from './createSelect';
|
|
5
5
|
var packageName = "@atlaskit/select";
|
|
6
|
-
var packageVersion = "
|
|
6
|
+
var packageVersion = "21.3.8";
|
|
7
7
|
export var SelectWithoutAnalytics = createSelect(AsyncSelect);
|
|
8
8
|
var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
9
9
|
var Select = withAnalyticsContext({
|
|
@@ -19,7 +19,7 @@ export declare const MenuDialog: React.ForwardRefExoticComponent<React.PropsWith
|
|
|
19
19
|
* __Dummy control__
|
|
20
20
|
* Overrides the default DummyControl component in Select.
|
|
21
21
|
*/
|
|
22
|
-
export declare const DummyControl:
|
|
22
|
+
export declare const DummyControl: (props: ControlProps<OptionType, boolean>) => JSX.Element;
|
|
23
23
|
export declare const defaultComponents: {
|
|
24
24
|
Control: FC<ControlProps<OptionType, boolean>>;
|
|
25
25
|
DropdownIndicator: () => JSX.Element;
|
|
@@ -19,7 +19,7 @@ export declare const MenuDialog: React.ForwardRefExoticComponent<React.PropsWith
|
|
|
19
19
|
* __Dummy control__
|
|
20
20
|
* Overrides the default DummyControl component in Select.
|
|
21
21
|
*/
|
|
22
|
-
export declare const DummyControl:
|
|
22
|
+
export declare const DummyControl: (props: ControlProps<OptionType, boolean>) => JSX.Element;
|
|
23
23
|
export declare const defaultComponents: {
|
|
24
24
|
Control: FC<ControlProps<OptionType, boolean>>;
|
|
25
25
|
DropdownIndicator: () => JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/select",
|
|
3
|
-
"version": "21.3.
|
|
3
|
+
"version": "21.3.9",
|
|
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/"
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
36
|
-
"@atlaskit/ds-lib": "^5.
|
|
36
|
+
"@atlaskit/ds-lib": "^5.2.0",
|
|
37
37
|
"@atlaskit/icon": "^28.5.0",
|
|
38
38
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
39
|
-
"@atlaskit/primitives": "^16.
|
|
39
|
+
"@atlaskit/primitives": "^16.1.0",
|
|
40
40
|
"@atlaskit/react-select": "^3.8.0",
|
|
41
41
|
"@atlaskit/spinner": "^19.0.0",
|
|
42
42
|
"@atlaskit/theme": "^21.0.0",
|
|
43
|
-
"@atlaskit/tokens": "^
|
|
43
|
+
"@atlaskit/tokens": "^8.0.0",
|
|
44
44
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
46
46
|
"@compiled/react": "^0.18.6",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@af/accessibility-testing": "workspace:^",
|
|
59
59
|
"@af/integration-testing": "workspace:^",
|
|
60
60
|
"@af/visual-regression": "workspace:^",
|
|
61
|
-
"@atlaskit/button": "^23.
|
|
61
|
+
"@atlaskit/button": "^23.6.0",
|
|
62
62
|
"@atlaskit/checkbox": "^17.1.0",
|
|
63
63
|
"@atlaskit/docs": "^11.2.0",
|
|
64
64
|
"@atlaskit/drawer": "^11.0.0",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"@atlaskit/logo": "^19.9.0",
|
|
68
68
|
"@atlaskit/modal-dialog": "^14.6.0",
|
|
69
69
|
"@atlaskit/radio": "^8.3.0",
|
|
70
|
-
"@atlaskit/section-message": "^8.
|
|
71
|
-
"@atlassian/ssr-tests": "
|
|
70
|
+
"@atlaskit/section-message": "^8.9.0",
|
|
71
|
+
"@atlassian/ssr-tests": "workspace:^",
|
|
72
72
|
"@testing-library/react": "^13.4.0",
|
|
73
73
|
"@testing-library/user-event": "^14.4.3",
|
|
74
74
|
"ast-types": "^0.13.3",
|