@atlaskit/select 20.3.1 → 20.4.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 +12 -0
- package/dist/cjs/PopupSelect/PopupSelect.js +2 -6
- package/dist/cjs/Select.js +1 -1
- package/dist/cjs/components/input-options.js +4 -7
- package/dist/cjs/createSelect.js +0 -1
- package/dist/es2019/PopupSelect/PopupSelect.js +2 -6
- package/dist/es2019/Select.js +1 -1
- package/dist/es2019/components/input-options.js +4 -7
- package/dist/es2019/createSelect.js +0 -1
- package/dist/esm/PopupSelect/PopupSelect.js +2 -6
- package/dist/esm/Select.js +1 -1
- package/dist/esm/components/input-options.js +4 -7
- package/dist/esm/createSelect.js +0 -1
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/select
|
|
2
2
|
|
|
3
|
+
## 20.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#142856](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/142856)
|
|
8
|
+
[`578fbeefd6128`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/578fbeefd6128) -
|
|
9
|
+
Remove feature flag to allow new controls
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 20.3.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -429,9 +429,7 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
429
429
|
label: providedAriaLabel
|
|
430
430
|
// TODO: Popup Select does not work well with active-descendant
|
|
431
431
|
,
|
|
432
|
-
"aria-live": (0, _deviceCheck.isAppleDevice)() &&
|
|
433
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
434
|
-
(0, _platformFeatureFlags.fg)('design_system_select-a11y-improvement') ? 'assertive' // only needed on Apple products
|
|
432
|
+
"aria-live": (0, _deviceCheck.isAppleDevice)() && (0, _platformFeatureFlags.fg)('design_system_select-a11y-improvement') ? 'assertive' // only needed on Apple products
|
|
435
433
|
: undefined,
|
|
436
434
|
backspaceRemovesValue: false,
|
|
437
435
|
controlShouldRenderValue: false,
|
|
@@ -441,9 +439,7 @@ var PopupSelect = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
441
439
|
placeholder: placeholder,
|
|
442
440
|
ref: _this.getSelectRef
|
|
443
441
|
}, props, {
|
|
444
|
-
isSearchable: showSearchControl
|
|
445
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
446
|
-
,
|
|
442
|
+
isSearchable: showSearchControl,
|
|
447
443
|
styles: (0, _reactSelect.mergeStyles)(_this.defaultStyles, props.styles || {}),
|
|
448
444
|
maxMenuHeight: _this.getMaxHeight(),
|
|
449
445
|
components: selectComponents,
|
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 = "20.
|
|
14
|
+
var packageVersion = "20.4.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)({
|
|
@@ -66,8 +66,6 @@ var iconStyles = {
|
|
|
66
66
|
};
|
|
67
67
|
var baseIconStyles = null;
|
|
68
68
|
var baseOptionStyles = null;
|
|
69
|
-
|
|
70
|
-
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
71
69
|
var ControlOption = function ControlOption(props) {
|
|
72
70
|
var _useState = (0, _react.useState)(false),
|
|
73
71
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -170,8 +168,8 @@ var NewRadioIcon = function NewRadioIcon(props) {
|
|
|
170
168
|
var CheckboxOption = exports.CheckboxOption = function CheckboxOption(props) {
|
|
171
169
|
return /*#__PURE__*/React.createElement(ControlOption, (0, _extends2.default)({
|
|
172
170
|
Icon:
|
|
173
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
174
|
-
(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons')
|
|
171
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
172
|
+
(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? NewCheckboxIcon :
|
|
175
173
|
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
|
|
176
174
|
_checkbox.default
|
|
177
175
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
@@ -185,11 +183,10 @@ var RadioOption = exports.RadioOption = function RadioOption(props) {
|
|
|
185
183
|
return (
|
|
186
184
|
/*#__PURE__*/
|
|
187
185
|
// TODO https://product-fabric.atlassian.net/browse/DSP-20769
|
|
188
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons, @repo/internal/react/no-unsafe-spread-props
|
|
189
186
|
React.createElement(ControlOption, (0, _extends2.default)({
|
|
190
187
|
Icon:
|
|
191
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
192
|
-
(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons')
|
|
188
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
189
|
+
(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? NewRadioIcon :
|
|
193
190
|
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
|
|
194
191
|
_radio.default
|
|
195
192
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
package/dist/cjs/createSelect.js
CHANGED
|
@@ -56,7 +56,6 @@ function createSelect(WrappedComponent) {
|
|
|
56
56
|
ref: internalSelectRef,
|
|
57
57
|
"aria-live": (0, _platformFeatureFlags.fg)('design_system_select-a11y-improvement') ? undefined : 'assertive',
|
|
58
58
|
ariaLiveMessages:
|
|
59
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
60
59
|
//TO DO: Still need live region for PopupSelect because of the menu being open by default
|
|
61
60
|
(0, _groupedOptionsAnnouncement.isOptionsGrouped)(props.options) ? _objectSpread({
|
|
62
61
|
onFocus: function onFocus(data) {
|
|
@@ -412,9 +412,7 @@ export default class PopupSelect extends PureComponent {
|
|
|
412
412
|
label: providedAriaLabel
|
|
413
413
|
// TODO: Popup Select does not work well with active-descendant
|
|
414
414
|
,
|
|
415
|
-
"aria-live": isAppleDevice() &&
|
|
416
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
417
|
-
fg('design_system_select-a11y-improvement') ? 'assertive' // only needed on Apple products
|
|
415
|
+
"aria-live": isAppleDevice() && fg('design_system_select-a11y-improvement') ? 'assertive' // only needed on Apple products
|
|
418
416
|
: undefined,
|
|
419
417
|
backspaceRemovesValue: false,
|
|
420
418
|
controlShouldRenderValue: false,
|
|
@@ -424,9 +422,7 @@ export default class PopupSelect extends PureComponent {
|
|
|
424
422
|
placeholder: placeholder,
|
|
425
423
|
ref: this.getSelectRef
|
|
426
424
|
}, props, {
|
|
427
|
-
isSearchable: showSearchControl
|
|
428
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
429
|
-
,
|
|
425
|
+
isSearchable: showSearchControl,
|
|
430
426
|
styles: mergeStyles(this.defaultStyles, props.styles || {}),
|
|
431
427
|
maxMenuHeight: this.getMaxHeight(),
|
|
432
428
|
components: selectComponents,
|
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 = "20.
|
|
6
|
+
const packageVersion = "20.4.0";
|
|
7
7
|
export const SelectWithoutAnalytics = createSelect(AsyncSelect);
|
|
8
8
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
9
9
|
const Select = withAnalyticsContext({
|
|
@@ -57,8 +57,6 @@ const iconStyles = {
|
|
|
57
57
|
};
|
|
58
58
|
const baseIconStyles = null;
|
|
59
59
|
const baseOptionStyles = null;
|
|
60
|
-
|
|
61
|
-
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
62
60
|
const ControlOption = props => {
|
|
63
61
|
const [isActive, setIsActive] = useState(false);
|
|
64
62
|
const onMouseDown = useCallback(() => setIsActive(true), []);
|
|
@@ -147,8 +145,8 @@ React.createElement(PrimitiveSVGIcon, props, /*#__PURE__*/React.createElement("g
|
|
|
147
145
|
*/
|
|
148
146
|
export const CheckboxOption = props => /*#__PURE__*/React.createElement(ControlOption, _extends({
|
|
149
147
|
Icon:
|
|
150
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
151
|
-
fg('platform-visual-refresh-icons')
|
|
148
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
149
|
+
fg('platform-visual-refresh-icons') ? NewCheckboxIcon :
|
|
152
150
|
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
|
|
153
151
|
CheckboxIcon
|
|
154
152
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
@@ -160,11 +158,10 @@ export const CheckboxOption = props => /*#__PURE__*/React.createElement(ControlO
|
|
|
160
158
|
export const RadioOption = props =>
|
|
161
159
|
/*#__PURE__*/
|
|
162
160
|
// TODO https://product-fabric.atlassian.net/browse/DSP-20769
|
|
163
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons, @repo/internal/react/no-unsafe-spread-props
|
|
164
161
|
React.createElement(ControlOption, _extends({
|
|
165
162
|
Icon:
|
|
166
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
167
|
-
fg('platform-visual-refresh-icons')
|
|
163
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
164
|
+
fg('platform-visual-refresh-icons') ? NewRadioIcon :
|
|
168
165
|
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
|
|
169
166
|
RadioIcon
|
|
170
167
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
@@ -39,7 +39,6 @@ export default function createSelect(WrappedComponent) {
|
|
|
39
39
|
ref: internalSelectRef,
|
|
40
40
|
"aria-live": fg('design_system_select-a11y-improvement') ? undefined : 'assertive',
|
|
41
41
|
ariaLiveMessages:
|
|
42
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
43
42
|
//TO DO: Still need live region for PopupSelect because of the menu being open by default
|
|
44
43
|
isOptionsGrouped(props.options) ? {
|
|
45
44
|
onFocus: data => onFocus(data, props.options),
|
|
@@ -421,9 +421,7 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
|
|
|
421
421
|
label: providedAriaLabel
|
|
422
422
|
// TODO: Popup Select does not work well with active-descendant
|
|
423
423
|
,
|
|
424
|
-
"aria-live": isAppleDevice() &&
|
|
425
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
426
|
-
fg('design_system_select-a11y-improvement') ? 'assertive' // only needed on Apple products
|
|
424
|
+
"aria-live": isAppleDevice() && fg('design_system_select-a11y-improvement') ? 'assertive' // only needed on Apple products
|
|
427
425
|
: undefined,
|
|
428
426
|
backspaceRemovesValue: false,
|
|
429
427
|
controlShouldRenderValue: false,
|
|
@@ -433,9 +431,7 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
|
|
|
433
431
|
placeholder: placeholder,
|
|
434
432
|
ref: _this.getSelectRef
|
|
435
433
|
}, props, {
|
|
436
|
-
isSearchable: showSearchControl
|
|
437
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
438
|
-
,
|
|
434
|
+
isSearchable: showSearchControl,
|
|
439
435
|
styles: mergeStyles(_this.defaultStyles, props.styles || {}),
|
|
440
436
|
maxMenuHeight: _this.getMaxHeight(),
|
|
441
437
|
components: selectComponents,
|
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 = "20.
|
|
6
|
+
var packageVersion = "20.4.0";
|
|
7
7
|
export var SelectWithoutAnalytics = createSelect(AsyncSelect);
|
|
8
8
|
var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
9
9
|
var Select = withAnalyticsContext({
|
|
@@ -56,8 +56,6 @@ var iconStyles = {
|
|
|
56
56
|
};
|
|
57
57
|
var baseIconStyles = null;
|
|
58
58
|
var baseOptionStyles = null;
|
|
59
|
-
|
|
60
|
-
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
61
59
|
var ControlOption = function ControlOption(props) {
|
|
62
60
|
var _useState = useState(false),
|
|
63
61
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -160,8 +158,8 @@ var NewRadioIcon = function NewRadioIcon(props) {
|
|
|
160
158
|
export var CheckboxOption = function CheckboxOption(props) {
|
|
161
159
|
return /*#__PURE__*/React.createElement(ControlOption, _extends({
|
|
162
160
|
Icon:
|
|
163
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
164
|
-
fg('platform-visual-refresh-icons')
|
|
161
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
162
|
+
fg('platform-visual-refresh-icons') ? NewCheckboxIcon :
|
|
165
163
|
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
|
|
166
164
|
CheckboxIcon
|
|
167
165
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
@@ -175,11 +173,10 @@ export var RadioOption = function RadioOption(props) {
|
|
|
175
173
|
return (
|
|
176
174
|
/*#__PURE__*/
|
|
177
175
|
// TODO https://product-fabric.atlassian.net/browse/DSP-20769
|
|
178
|
-
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons, @repo/internal/react/no-unsafe-spread-props
|
|
179
176
|
React.createElement(ControlOption, _extends({
|
|
180
177
|
Icon:
|
|
181
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
182
|
-
fg('platform-visual-refresh-icons')
|
|
178
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
179
|
+
fg('platform-visual-refresh-icons') ? NewRadioIcon :
|
|
183
180
|
// eslint-disable-next-line @atlaskit/design-system/no-legacy-icons
|
|
184
181
|
RadioIcon
|
|
185
182
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
package/dist/esm/createSelect.js
CHANGED
|
@@ -46,7 +46,6 @@ export default function createSelect(WrappedComponent) {
|
|
|
46
46
|
ref: internalSelectRef,
|
|
47
47
|
"aria-live": fg('design_system_select-a11y-improvement') ? undefined : 'assertive',
|
|
48
48
|
ariaLiveMessages:
|
|
49
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
50
49
|
//TO DO: Still need live region for PopupSelect because of the menu being open by default
|
|
51
50
|
isOptionsGrouped(props.options) ? _objectSpread({
|
|
52
51
|
onFocus: function onFocus(data) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/select",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.4.0",
|
|
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/"
|
|
@@ -68,14 +68,14 @@
|
|
|
68
68
|
"@af/integration-testing": "^0.5.0",
|
|
69
69
|
"@af/visual-regression": "^1.3.0",
|
|
70
70
|
"@atlaskit/button": "^23.0.0",
|
|
71
|
-
"@atlaskit/checkbox": "^17.
|
|
71
|
+
"@atlaskit/checkbox": "^17.1.0",
|
|
72
72
|
"@atlaskit/docs": "^10.0.0",
|
|
73
73
|
"@atlaskit/drawer": "^10.1.0",
|
|
74
74
|
"@atlaskit/form": "^12.0.0",
|
|
75
75
|
"@atlaskit/link": "^3.1.0",
|
|
76
76
|
"@atlaskit/logo": "^16.0.0",
|
|
77
77
|
"@atlaskit/modal-dialog": "^14.1.0",
|
|
78
|
-
"@atlaskit/radio": "^8.
|
|
78
|
+
"@atlaskit/radio": "^8.1.0",
|
|
79
79
|
"@atlaskit/section-message": "^8.2.0",
|
|
80
80
|
"@atlassian/ssr-tests": "^0.2.0",
|
|
81
81
|
"@testing-library/react": "^13.4.0",
|
|
@@ -115,9 +115,6 @@
|
|
|
115
115
|
"platform-visual-refresh-icons": {
|
|
116
116
|
"type": "boolean"
|
|
117
117
|
},
|
|
118
|
-
"platform-icon-control-migration": {
|
|
119
|
-
"type": "boolean"
|
|
120
|
-
},
|
|
121
118
|
"platform_design_system_team_safari_input_fix": {
|
|
122
119
|
"type": "boolean"
|
|
123
120
|
},
|