@atlaskit/select 16.5.12 → 16.5.14
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 +15 -3
- package/dist/cjs/Select.js +1 -1
- package/dist/cjs/components/input-aria-describedby.js +18 -0
- package/dist/cjs/components/input-options.js +2 -1
- package/dist/cjs/createSelect.js +4 -1
- package/dist/es2019/Select.js +1 -1
- package/dist/es2019/components/input-aria-describedby.js +10 -0
- package/dist/es2019/components/input-options.js +2 -1
- package/dist/es2019/createSelect.js +4 -1
- package/dist/esm/Select.js +1 -1
- package/dist/esm/components/input-aria-describedby.js +10 -0
- package/dist/esm/components/input-options.js +2 -1
- package/dist/esm/createSelect.js +4 -1
- package/dist/types/AsyncCreatableSelect.d.ts +3 -1
- package/dist/types/AsyncSelect.d.ts +3 -1
- package/dist/types/CreatableSelect.d.ts +3 -1
- package/dist/types/Select.d.ts +6 -2
- package/dist/types/components/input-aria-describedby.d.ts +3 -0
- package/dist/types/createSelect.d.ts +3 -1
- package/dist/types/extract-react-types/react-select-props.d.ts +2 -0
- package/dist/types-ts4.5/AsyncCreatableSelect.d.ts +3 -1
- package/dist/types-ts4.5/AsyncSelect.d.ts +3 -1
- package/dist/types-ts4.5/CreatableSelect.d.ts +3 -1
- package/dist/types-ts4.5/Select.d.ts +6 -2
- package/dist/types-ts4.5/components/input-aria-describedby.d.ts +3 -0
- package/dist/types-ts4.5/createSelect.d.ts +3 -1
- package/dist/types-ts4.5/extract-react-types/react-select-props.d.ts +2 -0
- package/package.json +2 -2
- package/report.api.md +25 -5
- package/tmp/api-report-tmp.d.ts +15 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/select
|
|
2
2
|
|
|
3
|
+
## 16.5.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`aee1bdd977d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/aee1bdd977d) - Update select checkbox and radio icon to have 1px border under FF
|
|
8
|
+
|
|
9
|
+
## 16.5.13
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`a22d71ff733`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a22d71ff733) - [ux] Select component now respects explicitly passed value set to aria-describedby attribute.
|
|
14
|
+
|
|
3
15
|
## 16.5.12
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1525,21 +1537,21 @@
|
|
|
1525
1537
|
|
|
1526
1538
|
## 6.1.4
|
|
1527
1539
|
|
|
1528
|
-
- [patch][6ab8e95
|
|
1540
|
+
- [patch][6ab8e95](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6ab8e95"
|
|
1529
1541
|
d):
|
|
1530
1542
|
|
|
1531
1543
|
- Removed wrapping div from around selects as it is no longer needed when using the latest inline-dialog component.
|
|
1532
1544
|
|
|
1533
1545
|
## 6.1.3
|
|
1534
1546
|
|
|
1535
|
-
- [patch][dab963b
|
|
1547
|
+
- [patch][dab963b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/dab963b"
|
|
1536
1548
|
d):
|
|
1537
1549
|
|
|
1538
1550
|
- Make sure portal binds to DOM only
|
|
1539
1551
|
|
|
1540
1552
|
## 6.1.2
|
|
1541
1553
|
|
|
1542
|
-
- [patch][0782e03
|
|
1554
|
+
- [patch][0782e03](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0782e03"
|
|
1543
1555
|
d):
|
|
1544
1556
|
|
|
1545
1557
|
- bumped react-select to 2.1.1 minor bug fixes including mirroring the logic for the backspace key to delete, and stripping theme props from Input and GroupHeading dom elements. See https://github.com/JedWatson/react-select/releases/tag/v2.1.1 for details
|
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.14";
|
|
13
13
|
var SelectWithoutAnalytics = (0, _createSelect.default)(_reactSelect.default);
|
|
14
14
|
exports.SelectWithoutAnalytics = SelectWithoutAnalytics;
|
|
15
15
|
var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.Input = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _reactSelect = require("react-select");
|
|
11
|
+
var Input = function Input(props) {
|
|
12
|
+
var passed_describedby = props.selectProps['aria-describedby'];
|
|
13
|
+
var describedby = props['aria-describedby'] + (passed_describedby ? ' ' + passed_describedby : '');
|
|
14
|
+
return /*#__PURE__*/_react.default.createElement(_reactSelect.components.Input, (0, _extends2.default)({}, props, {
|
|
15
|
+
"aria-describedby": describedby
|
|
16
|
+
}));
|
|
17
|
+
};
|
|
18
|
+
exports.Input = Input;
|
|
@@ -17,6 +17,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
17
17
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
18
18
|
var _react = require("@emotion/react");
|
|
19
19
|
var _react2 = require("react");
|
|
20
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
21
|
var _radio = _interopRequireDefault(require("@atlaskit/icon/glyph/radio"));
|
|
21
22
|
var _checkbox = _interopRequireDefault(require("@atlaskit/icon/glyph/checkbox"));
|
|
22
23
|
var _components = require("@atlaskit/theme/components");
|
|
@@ -185,7 +186,7 @@ var baseIconStyles = (0, _react.css)({
|
|
|
185
186
|
// into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
|
|
186
187
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
187
188
|
'& svg rect, & svg circle:first-of-type': {
|
|
188
|
-
strokeWidth: "var(--ds-border-width-outline, 2px)",
|
|
189
|
+
strokeWidth: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.border-checkbox_nyoiu') ? "var(--ds-border-width, 1px)" : "var(--ds-border-width-outline, 2px)",
|
|
189
190
|
strokeLinejoin: 'round'
|
|
190
191
|
}
|
|
191
192
|
});
|
package/dist/cjs/createSelect.js
CHANGED
|
@@ -19,6 +19,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
19
19
|
var _reactSelect = require("react-select");
|
|
20
20
|
var _memoizeOne = _interopRequireDefault(require("memoize-one"));
|
|
21
21
|
var _reactFastCompare = _interopRequireDefault(require("react-fast-compare"));
|
|
22
|
+
var _inputAriaDescribedby = require("./components/input-aria-describedby");
|
|
22
23
|
var defaultComponents = _interopRequireWildcard(require("./components"));
|
|
23
24
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
24
25
|
var _groupedOptionsAnnouncement = require("./utils/grouped-options-announcement");
|
|
@@ -107,7 +108,9 @@ function createSelect(WrappedComponent) {
|
|
|
107
108
|
spacing: 'default',
|
|
108
109
|
onClickPreventDefault: true,
|
|
109
110
|
tabSelectsValue: false,
|
|
110
|
-
components: {
|
|
111
|
+
components: {
|
|
112
|
+
Input: _inputAriaDescribedby.Input
|
|
113
|
+
},
|
|
111
114
|
styles: {}
|
|
112
115
|
}), _class;
|
|
113
116
|
}
|
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.14";
|
|
6
6
|
export const SelectWithoutAnalytics = createSelect(Select);
|
|
7
7
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
8
8
|
export default withAnalyticsContext({
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { components } from 'react-select';
|
|
4
|
+
export const Input = props => {
|
|
5
|
+
const passed_describedby = props.selectProps['aria-describedby'];
|
|
6
|
+
const describedby = props['aria-describedby'] + (passed_describedby ? ' ' + passed_describedby : '');
|
|
7
|
+
return /*#__PURE__*/React.createElement(components.Input, _extends({}, props, {
|
|
8
|
+
"aria-describedby": describedby
|
|
9
|
+
}));
|
|
10
|
+
};
|
|
@@ -3,6 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import { Component } from 'react';
|
|
6
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import RadioIcon from '@atlaskit/icon/glyph/radio';
|
|
7
8
|
import CheckboxIcon from '@atlaskit/icon/glyph/checkbox';
|
|
8
9
|
import { themed } from '@atlaskit/theme/components';
|
|
@@ -171,7 +172,7 @@ const baseIconStyles = css({
|
|
|
171
172
|
// into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
|
|
172
173
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
173
174
|
'& svg rect, & svg circle:first-of-type': {
|
|
174
|
-
strokeWidth: "var(--ds-border-width-outline, 2px)",
|
|
175
|
+
strokeWidth: getBooleanFF('platform.design-system-team.border-checkbox_nyoiu') ? "var(--ds-border-width, 1px)" : "var(--ds-border-width-outline, 2px)",
|
|
175
176
|
strokeLinejoin: 'round'
|
|
176
177
|
}
|
|
177
178
|
});
|
|
@@ -4,6 +4,7 @@ import React, { Component } from 'react';
|
|
|
4
4
|
import { mergeStyles } from 'react-select';
|
|
5
5
|
import memoizeOne from 'memoize-one';
|
|
6
6
|
import isEqual from 'react-fast-compare';
|
|
7
|
+
import { Input } from './components/input-aria-describedby';
|
|
7
8
|
import * as defaultComponents from './components';
|
|
8
9
|
import baseStyles from './styles';
|
|
9
10
|
import { onFocus, isOptionsGrouped } from './utils/grouped-options-announcement';
|
|
@@ -77,7 +78,9 @@ export default function createSelect(WrappedComponent) {
|
|
|
77
78
|
spacing: 'default',
|
|
78
79
|
onClickPreventDefault: true,
|
|
79
80
|
tabSelectsValue: false,
|
|
80
|
-
components: {
|
|
81
|
+
components: {
|
|
82
|
+
Input
|
|
83
|
+
},
|
|
81
84
|
styles: {}
|
|
82
85
|
}), _class;
|
|
83
86
|
}
|
package/dist/esm/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
|
var packageName = "@atlaskit/select";
|
|
5
|
-
var packageVersion = "16.5.
|
|
5
|
+
var packageVersion = "16.5.14";
|
|
6
6
|
export var SelectWithoutAnalytics = createSelect(Select);
|
|
7
7
|
var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
8
8
|
export default withAnalyticsContext({
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { components } from 'react-select';
|
|
4
|
+
export var Input = function Input(props) {
|
|
5
|
+
var passed_describedby = props.selectProps['aria-describedby'];
|
|
6
|
+
var describedby = props['aria-describedby'] + (passed_describedby ? ' ' + passed_describedby : '');
|
|
7
|
+
return /*#__PURE__*/React.createElement(components.Input, _extends({}, props, {
|
|
8
|
+
"aria-describedby": describedby
|
|
9
|
+
}));
|
|
10
|
+
};
|
|
@@ -19,6 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
/** @jsx jsx */
|
|
20
20
|
import { css, jsx } from '@emotion/react';
|
|
21
21
|
import { Component } from 'react';
|
|
22
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
22
23
|
import RadioIcon from '@atlaskit/icon/glyph/radio';
|
|
23
24
|
import CheckboxIcon from '@atlaskit/icon/glyph/checkbox';
|
|
24
25
|
import { themed } from '@atlaskit/theme/components';
|
|
@@ -179,7 +180,7 @@ var baseIconStyles = css({
|
|
|
179
180
|
// into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
|
|
180
181
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
181
182
|
'& svg rect, & svg circle:first-of-type': {
|
|
182
|
-
strokeWidth: "var(--ds-border-width-outline, 2px)",
|
|
183
|
+
strokeWidth: getBooleanFF('platform.design-system-team.border-checkbox_nyoiu') ? "var(--ds-border-width, 1px)" : "var(--ds-border-width-outline, 2px)",
|
|
183
184
|
strokeLinejoin: 'round'
|
|
184
185
|
}
|
|
185
186
|
});
|
package/dist/esm/createSelect.js
CHANGED
|
@@ -16,6 +16,7 @@ import React, { Component } from 'react';
|
|
|
16
16
|
import { mergeStyles } from 'react-select';
|
|
17
17
|
import memoizeOne from 'memoize-one';
|
|
18
18
|
import isEqual from 'react-fast-compare';
|
|
19
|
+
import { Input } from './components/input-aria-describedby';
|
|
19
20
|
import * as defaultComponents from './components';
|
|
20
21
|
import baseStyles from './styles';
|
|
21
22
|
import { onFocus, isOptionsGrouped } from './utils/grouped-options-announcement';
|
|
@@ -97,7 +98,9 @@ export default function createSelect(WrappedComponent) {
|
|
|
97
98
|
spacing: 'default',
|
|
98
99
|
onClickPreventDefault: true,
|
|
99
100
|
tabSelectsValue: false,
|
|
100
|
-
components: {
|
|
101
|
+
components: {
|
|
102
|
+
Input: Input
|
|
103
|
+
},
|
|
101
104
|
styles: {}
|
|
102
105
|
}), _class;
|
|
103
106
|
}
|
|
@@ -36,7 +36,9 @@ declare const _default: {
|
|
|
36
36
|
spacing: string;
|
|
37
37
|
onClickPreventDefault: boolean;
|
|
38
38
|
tabSelectsValue: boolean;
|
|
39
|
-
components: {
|
|
39
|
+
components: {
|
|
40
|
+
Input: (props: import("react-select").InputProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => JSX.Element;
|
|
41
|
+
};
|
|
40
42
|
styles: {};
|
|
41
43
|
};
|
|
42
44
|
contextType?: import("react").Context<any> | undefined;
|
|
@@ -36,7 +36,9 @@ declare const _default: {
|
|
|
36
36
|
spacing: string;
|
|
37
37
|
onClickPreventDefault: boolean;
|
|
38
38
|
tabSelectsValue: boolean;
|
|
39
|
-
components: {
|
|
39
|
+
components: {
|
|
40
|
+
Input: (props: import("react-select").InputProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => JSX.Element;
|
|
41
|
+
};
|
|
40
42
|
styles: {};
|
|
41
43
|
};
|
|
42
44
|
contextType?: import("react").Context<any> | undefined;
|
|
@@ -36,7 +36,9 @@ declare const _default: {
|
|
|
36
36
|
spacing: string;
|
|
37
37
|
onClickPreventDefault: boolean;
|
|
38
38
|
tabSelectsValue: boolean;
|
|
39
|
-
components: {
|
|
39
|
+
components: {
|
|
40
|
+
Input: (props: import("react-select").InputProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => JSX.Element;
|
|
41
|
+
};
|
|
40
42
|
styles: {};
|
|
41
43
|
};
|
|
42
44
|
contextType?: import("react").Context<any> | undefined;
|
package/dist/types/Select.d.ts
CHANGED
|
@@ -36,7 +36,9 @@ export declare const SelectWithoutAnalytics: {
|
|
|
36
36
|
spacing: string;
|
|
37
37
|
onClickPreventDefault: boolean;
|
|
38
38
|
tabSelectsValue: boolean;
|
|
39
|
-
components: {
|
|
39
|
+
components: {
|
|
40
|
+
Input: (props: import("react-select").InputProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => JSX.Element;
|
|
41
|
+
};
|
|
40
42
|
styles: {};
|
|
41
43
|
};
|
|
42
44
|
contextType?: import("react").Context<any> | undefined;
|
|
@@ -78,7 +80,9 @@ declare const _default: {
|
|
|
78
80
|
spacing: string;
|
|
79
81
|
onClickPreventDefault: boolean;
|
|
80
82
|
tabSelectsValue: boolean;
|
|
81
|
-
components: {
|
|
83
|
+
components: {
|
|
84
|
+
Input: (props: import("react-select").InputProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => JSX.Element;
|
|
85
|
+
};
|
|
82
86
|
styles: {};
|
|
83
87
|
};
|
|
84
88
|
contextType?: import("react").Context<any> | undefined;
|
|
@@ -38,7 +38,9 @@ export default function createSelect(WrappedComponent: ComponentType<any>): {
|
|
|
38
38
|
spacing: string;
|
|
39
39
|
onClickPreventDefault: boolean;
|
|
40
40
|
tabSelectsValue: boolean;
|
|
41
|
-
components: {
|
|
41
|
+
components: {
|
|
42
|
+
Input: (props: import("react-select").InputProps<unknown, boolean, GroupType<unknown>>) => JSX.Element;
|
|
43
|
+
};
|
|
42
44
|
styles: {};
|
|
43
45
|
};
|
|
44
46
|
contextType?: React.Context<any> | undefined;
|
|
@@ -11,6 +11,8 @@ interface NativeReactSelectProps<Option = unknown, IsMulti extends boolean = fal
|
|
|
11
11
|
'aria-label'?: string;
|
|
12
12
|
/** HTML ID of an element that should be used as the label (for assistive tech) */
|
|
13
13
|
'aria-labelledby'?: string;
|
|
14
|
+
/** Identifies the element (or elements) that describes the object. By default this is associated with the placeholder. The value in this prop is additional to the label, not replacing the default. Use this to give additional information, hints, or examples about how to complete a field (for assistive tech). */
|
|
15
|
+
'aria-describedby'?: string;
|
|
14
16
|
/** Used to set the priority with which screen reader should treat updates to live regions. The possible settings are?: off, polite (default) or assertive */
|
|
15
17
|
'aria-live'?: 'off' | 'polite' | 'assertive';
|
|
16
18
|
/** Customize the messages used by the aria-live component. See react-select v5.4.0 documentation for full details */
|
|
@@ -36,7 +36,9 @@ declare const _default: {
|
|
|
36
36
|
spacing: string;
|
|
37
37
|
onClickPreventDefault: boolean;
|
|
38
38
|
tabSelectsValue: boolean;
|
|
39
|
-
components: {
|
|
39
|
+
components: {
|
|
40
|
+
Input: (props: import("react-select").InputProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => JSX.Element;
|
|
41
|
+
};
|
|
40
42
|
styles: {};
|
|
41
43
|
};
|
|
42
44
|
contextType?: import("react").Context<any> | undefined;
|
|
@@ -36,7 +36,9 @@ declare const _default: {
|
|
|
36
36
|
spacing: string;
|
|
37
37
|
onClickPreventDefault: boolean;
|
|
38
38
|
tabSelectsValue: boolean;
|
|
39
|
-
components: {
|
|
39
|
+
components: {
|
|
40
|
+
Input: (props: import("react-select").InputProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => JSX.Element;
|
|
41
|
+
};
|
|
40
42
|
styles: {};
|
|
41
43
|
};
|
|
42
44
|
contextType?: import("react").Context<any> | undefined;
|
|
@@ -36,7 +36,9 @@ declare const _default: {
|
|
|
36
36
|
spacing: string;
|
|
37
37
|
onClickPreventDefault: boolean;
|
|
38
38
|
tabSelectsValue: boolean;
|
|
39
|
-
components: {
|
|
39
|
+
components: {
|
|
40
|
+
Input: (props: import("react-select").InputProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => JSX.Element;
|
|
41
|
+
};
|
|
40
42
|
styles: {};
|
|
41
43
|
};
|
|
42
44
|
contextType?: import("react").Context<any> | undefined;
|
|
@@ -36,7 +36,9 @@ export declare const SelectWithoutAnalytics: {
|
|
|
36
36
|
spacing: string;
|
|
37
37
|
onClickPreventDefault: boolean;
|
|
38
38
|
tabSelectsValue: boolean;
|
|
39
|
-
components: {
|
|
39
|
+
components: {
|
|
40
|
+
Input: (props: import("react-select").InputProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => JSX.Element;
|
|
41
|
+
};
|
|
40
42
|
styles: {};
|
|
41
43
|
};
|
|
42
44
|
contextType?: import("react").Context<any> | undefined;
|
|
@@ -78,7 +80,9 @@ declare const _default: {
|
|
|
78
80
|
spacing: string;
|
|
79
81
|
onClickPreventDefault: boolean;
|
|
80
82
|
tabSelectsValue: boolean;
|
|
81
|
-
components: {
|
|
83
|
+
components: {
|
|
84
|
+
Input: (props: import("react-select").InputProps<unknown, boolean, import("react-select").GroupBase<unknown>>) => JSX.Element;
|
|
85
|
+
};
|
|
82
86
|
styles: {};
|
|
83
87
|
};
|
|
84
88
|
contextType?: import("react").Context<any> | undefined;
|
|
@@ -38,7 +38,9 @@ export default function createSelect(WrappedComponent: ComponentType<any>): {
|
|
|
38
38
|
spacing: string;
|
|
39
39
|
onClickPreventDefault: boolean;
|
|
40
40
|
tabSelectsValue: boolean;
|
|
41
|
-
components: {
|
|
41
|
+
components: {
|
|
42
|
+
Input: (props: import("react-select").InputProps<unknown, boolean, GroupType<unknown>>) => JSX.Element;
|
|
43
|
+
};
|
|
42
44
|
styles: {};
|
|
43
45
|
};
|
|
44
46
|
contextType?: React.Context<any> | undefined;
|
|
@@ -11,6 +11,8 @@ interface NativeReactSelectProps<Option = unknown, IsMulti extends boolean = fal
|
|
|
11
11
|
'aria-label'?: string;
|
|
12
12
|
/** HTML ID of an element that should be used as the label (for assistive tech) */
|
|
13
13
|
'aria-labelledby'?: string;
|
|
14
|
+
/** Identifies the element (or elements) that describes the object. By default this is associated with the placeholder. The value in this prop is additional to the label, not replacing the default. Use this to give additional information, hints, or examples about how to complete a field (for assistive tech). */
|
|
15
|
+
'aria-describedby'?: string;
|
|
14
16
|
/** Used to set the priority with which screen reader should treat updates to live regions. The possible settings are?: off, polite (default) or assertive */
|
|
15
17
|
'aria-live'?: 'off' | 'polite' | 'assertive';
|
|
16
18
|
/** Customize the messages used by the aria-live component. See react-select v5.4.0 documentation for full details */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/select",
|
|
3
|
-
"version": "16.5.
|
|
3
|
+
"version": "16.5.14",
|
|
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/"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
44
44
|
"@atlaskit/spinner": "^15.5.0",
|
|
45
45
|
"@atlaskit/theme": "^12.6.0",
|
|
46
|
-
"@atlaskit/tokens": "^1.
|
|
46
|
+
"@atlaskit/tokens": "^1.22.0",
|
|
47
47
|
"@atlaskit/visually-hidden": "^1.2.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"@emotion/react": "^11.7.1",
|
package/report.api.md
CHANGED
|
@@ -188,7 +188,11 @@ export const AsyncCreatableSelect: {
|
|
|
188
188
|
spacing: string;
|
|
189
189
|
onClickPreventDefault: boolean;
|
|
190
190
|
tabSelectsValue: boolean;
|
|
191
|
-
components: {
|
|
191
|
+
components: {
|
|
192
|
+
Input: (
|
|
193
|
+
props: InputProps<unknown, boolean, GroupType<unknown>>,
|
|
194
|
+
) => JSX.Element;
|
|
195
|
+
};
|
|
192
196
|
styles: {};
|
|
193
197
|
};
|
|
194
198
|
contextType?: Context<any> | undefined;
|
|
@@ -303,7 +307,11 @@ export const AsyncSelect: {
|
|
|
303
307
|
spacing: string;
|
|
304
308
|
onClickPreventDefault: boolean;
|
|
305
309
|
tabSelectsValue: boolean;
|
|
306
|
-
components: {
|
|
310
|
+
components: {
|
|
311
|
+
Input: (
|
|
312
|
+
props: InputProps<unknown, boolean, GroupType<unknown>>,
|
|
313
|
+
) => JSX.Element;
|
|
314
|
+
};
|
|
307
315
|
styles: {};
|
|
308
316
|
};
|
|
309
317
|
contextType?: Context<any> | undefined;
|
|
@@ -461,7 +469,11 @@ export const CreatableSelect: {
|
|
|
461
469
|
spacing: string;
|
|
462
470
|
onClickPreventDefault: boolean;
|
|
463
471
|
tabSelectsValue: boolean;
|
|
464
|
-
components: {
|
|
472
|
+
components: {
|
|
473
|
+
Input: (
|
|
474
|
+
props: InputProps<unknown, boolean, GroupType<unknown>>,
|
|
475
|
+
) => JSX.Element;
|
|
476
|
+
};
|
|
465
477
|
styles: {};
|
|
466
478
|
};
|
|
467
479
|
contextType?: Context<any> | undefined;
|
|
@@ -593,7 +605,11 @@ const _default: {
|
|
|
593
605
|
spacing: string;
|
|
594
606
|
onClickPreventDefault: boolean;
|
|
595
607
|
tabSelectsValue: boolean;
|
|
596
|
-
components: {
|
|
608
|
+
components: {
|
|
609
|
+
Input: (
|
|
610
|
+
props: InputProps<unknown, boolean, GroupType<unknown>>,
|
|
611
|
+
) => JSX.Element;
|
|
612
|
+
};
|
|
597
613
|
styles: {};
|
|
598
614
|
};
|
|
599
615
|
contextType?: Context<any> | undefined;
|
|
@@ -1299,7 +1315,11 @@ export const SelectWithoutAnalytics: {
|
|
|
1299
1315
|
spacing: string;
|
|
1300
1316
|
onClickPreventDefault: boolean;
|
|
1301
1317
|
tabSelectsValue: boolean;
|
|
1302
|
-
components: {
|
|
1318
|
+
components: {
|
|
1319
|
+
Input: (
|
|
1320
|
+
props: InputProps<unknown, boolean, GroupType<unknown>>,
|
|
1321
|
+
) => JSX.Element;
|
|
1322
|
+
};
|
|
1303
1323
|
styles: {};
|
|
1304
1324
|
};
|
|
1305
1325
|
contextType?: Context<any> | undefined;
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -106,7 +106,9 @@ export const AsyncCreatableSelect: {
|
|
|
106
106
|
spacing: string;
|
|
107
107
|
onClickPreventDefault: boolean;
|
|
108
108
|
tabSelectsValue: boolean;
|
|
109
|
-
components: {
|
|
109
|
+
components: {
|
|
110
|
+
Input: (props: InputProps<unknown, boolean, GroupType<unknown>>) => JSX.Element;
|
|
111
|
+
};
|
|
110
112
|
styles: {};
|
|
111
113
|
};
|
|
112
114
|
contextType?: Context<any> | undefined;
|
|
@@ -150,7 +152,9 @@ export const AsyncSelect: {
|
|
|
150
152
|
spacing: string;
|
|
151
153
|
onClickPreventDefault: boolean;
|
|
152
154
|
tabSelectsValue: boolean;
|
|
153
|
-
components: {
|
|
155
|
+
components: {
|
|
156
|
+
Input: (props: InputProps<unknown, boolean, GroupType<unknown>>) => JSX.Element;
|
|
157
|
+
};
|
|
154
158
|
styles: {};
|
|
155
159
|
};
|
|
156
160
|
contextType?: Context<any> | undefined;
|
|
@@ -231,7 +235,9 @@ export const CreatableSelect: {
|
|
|
231
235
|
spacing: string;
|
|
232
236
|
onClickPreventDefault: boolean;
|
|
233
237
|
tabSelectsValue: boolean;
|
|
234
|
-
components: {
|
|
238
|
+
components: {
|
|
239
|
+
Input: (props: InputProps<unknown, boolean, GroupType<unknown>>) => JSX.Element;
|
|
240
|
+
};
|
|
235
241
|
styles: {};
|
|
236
242
|
};
|
|
237
243
|
contextType?: Context<any> | undefined;
|
|
@@ -291,7 +297,9 @@ const _default: {
|
|
|
291
297
|
spacing: string;
|
|
292
298
|
onClickPreventDefault: boolean;
|
|
293
299
|
tabSelectsValue: boolean;
|
|
294
|
-
components: {
|
|
300
|
+
components: {
|
|
301
|
+
Input: (props: InputProps<unknown, boolean, GroupType<unknown>>) => JSX.Element;
|
|
302
|
+
};
|
|
295
303
|
styles: {};
|
|
296
304
|
};
|
|
297
305
|
contextType?: Context<any> | undefined;
|
|
@@ -645,7 +653,9 @@ export const SelectWithoutAnalytics: {
|
|
|
645
653
|
spacing: string;
|
|
646
654
|
onClickPreventDefault: boolean;
|
|
647
655
|
tabSelectsValue: boolean;
|
|
648
|
-
components: {
|
|
656
|
+
components: {
|
|
657
|
+
Input: (props: InputProps<unknown, boolean, GroupType<unknown>>) => JSX.Element;
|
|
658
|
+
};
|
|
649
659
|
styles: {};
|
|
650
660
|
};
|
|
651
661
|
contextType?: Context<any> | undefined;
|