@atlaskit/select 21.3.2 → 21.3.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 +8 -0
- package/dist/cjs/Select.js +1 -1
- package/dist/cjs/components/input-options.js +3 -1
- package/dist/es2019/Select.js +1 -1
- package/dist/es2019/components/input-options.js +3 -1
- package/dist/esm/Select.js +1 -1
- package/dist/esm/components/input-options.js +3 -1
- package/dist/types/PopupSelect/PopupSelect.d.ts +3 -20
- package/dist/types-ts4.5/PopupSelect/PopupSelect.d.ts +3 -20
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/select
|
|
2
2
|
|
|
3
|
+
## 21.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`437668dfbdec9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/437668dfbdec9) -
|
|
8
|
+
Add explicit types to a number of DST components
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 21.3.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
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 = "0.0.0-development";
|
|
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)({
|
|
@@ -98,7 +98,9 @@ var ControlOption = function ControlOption(props) {
|
|
|
98
98
|
className: (0, _runtime.ax)([optionStyles.default, isFocused && optionStyles.focused, isDisabled && optionStyles.disabled, classNames]),
|
|
99
99
|
ref: innerRef,
|
|
100
100
|
onMouseDown: onMouseDown,
|
|
101
|
-
onMouseUp: onMouseUp
|
|
101
|
+
onMouseUp: onMouseUp
|
|
102
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
103
|
+
,
|
|
102
104
|
onMouseLeave: onMouseUp
|
|
103
105
|
}, innerProps), /*#__PURE__*/React.createElement("div", {
|
|
104
106
|
className: (0, _runtime.ax)(["_1e0c1txw _4cvr1h6o _1o9zidpf _y4ti1b66 _16cu892t _1xci892t _59qxe4h9 _8y3xe4h9", isSelected || isActive || isDisabled ? iconStyles.inherit : iconStyles.default])
|
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 = "0.0.0-development";
|
|
7
7
|
export const SelectWithoutAnalytics = createSelect(AsyncSelect);
|
|
8
8
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
9
9
|
const Select = withAnalyticsContext({
|
|
@@ -83,7 +83,9 @@ const ControlOption = props => {
|
|
|
83
83
|
className: ax([optionStyles.default, isFocused && optionStyles.focused, isDisabled && optionStyles.disabled, classNames]),
|
|
84
84
|
ref: innerRef,
|
|
85
85
|
onMouseDown: onMouseDown,
|
|
86
|
-
onMouseUp: onMouseUp
|
|
86
|
+
onMouseUp: onMouseUp
|
|
87
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
88
|
+
,
|
|
87
89
|
onMouseLeave: onMouseUp
|
|
88
90
|
}, innerProps), /*#__PURE__*/React.createElement("div", {
|
|
89
91
|
className: ax(["_1e0c1txw _4cvr1h6o _1o9zidpf _y4ti1b66 _16cu892t _1xci892t _59qxe4h9 _8y3xe4h9", isSelected || isActive || isDisabled ? iconStyles.inherit : iconStyles.default])
|
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 = "0.0.0-development";
|
|
7
7
|
export var SelectWithoutAnalytics = createSelect(AsyncSelect);
|
|
8
8
|
var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
9
9
|
var Select = withAnalyticsContext({
|
|
@@ -89,7 +89,9 @@ var ControlOption = function ControlOption(props) {
|
|
|
89
89
|
className: ax([optionStyles.default, isFocused && optionStyles.focused, isDisabled && optionStyles.disabled, classNames]),
|
|
90
90
|
ref: innerRef,
|
|
91
91
|
onMouseDown: onMouseDown,
|
|
92
|
-
onMouseUp: onMouseUp
|
|
92
|
+
onMouseUp: onMouseUp
|
|
93
|
+
// eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
|
|
94
|
+
,
|
|
93
95
|
onMouseLeave: onMouseUp
|
|
94
96
|
}, innerProps), /*#__PURE__*/React.createElement("div", {
|
|
95
97
|
className: ax(["_1e0c1txw _4cvr1h6o _1o9zidpf _y4ti1b66 _16cu892t _1xci892t _59qxe4h9 _8y3xe4h9", isSelected || isActive || isDisabled ? iconStyles.inherit : iconStyles.default])
|
|
@@ -2,6 +2,7 @@ import React, { type KeyboardEventHandler, PureComponent, type ReactNode } from
|
|
|
2
2
|
import { type UnbindFn } from 'bind-event-listener';
|
|
3
3
|
import { type PopperProps } from 'react-popper';
|
|
4
4
|
import { type ActionMeta, type AtlaskitSelectRefType, type OptionType, type ReactSelectProps, type StylesConfig, type ValidationState, type ValueType } from '../types';
|
|
5
|
+
import { defaultComponents } from './components';
|
|
5
6
|
type defaultModifiers = 'offset' | 'preventOverflow' | 'flip';
|
|
6
7
|
type PopperPropsNoChildren<Modifiers> = Omit<PopperProps<Modifiers>, 'children'>;
|
|
7
8
|
interface PopupSelectTriggerProps {
|
|
@@ -113,28 +114,10 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
|
|
|
113
114
|
state: {
|
|
114
115
|
focusLockEnabled: boolean;
|
|
115
116
|
isOpen: boolean;
|
|
116
|
-
mergedComponents:
|
|
117
|
-
Control: React.FC<import("../types").ControlProps<OptionType, boolean>>;
|
|
118
|
-
DropdownIndicator: () => JSX.Element;
|
|
119
|
-
Menu: ({ children, innerProps }: import("../types").MenuProps<OptionType, boolean>) => JSX.Element;
|
|
120
|
-
ClearIndicator: (props: import("@atlaskit/react-select").ClearIndicatorProps) => JSX.Element;
|
|
121
|
-
MultiValueRemove: (props: import("@atlaskit/react-select").MultiValueRemoveProps) => JSX.Element;
|
|
122
|
-
};
|
|
117
|
+
mergedComponents: typeof defaultComponents;
|
|
123
118
|
mergedPopperProps: PopperPropsNoChildren<defaultModifiers | string>;
|
|
124
119
|
};
|
|
125
|
-
static defaultProps:
|
|
126
|
-
closeMenuOnSelect: boolean;
|
|
127
|
-
shouldCloseMenuOnTab: boolean;
|
|
128
|
-
components: {};
|
|
129
|
-
maxMenuHeight: number;
|
|
130
|
-
maxMenuWidth: number;
|
|
131
|
-
minMenuWidth: number;
|
|
132
|
-
popperProps: {};
|
|
133
|
-
isSearchable: boolean;
|
|
134
|
-
searchThreshold: number;
|
|
135
|
-
styles: {};
|
|
136
|
-
options: never[];
|
|
137
|
-
};
|
|
120
|
+
static defaultProps: PopupSelectProps;
|
|
138
121
|
static getDerivedStateFromProps(props: PopupSelectProps<OptionType>, state: State): Partial<State<string>> | null;
|
|
139
122
|
componentDidMount(): void;
|
|
140
123
|
componentWillUnmount(): void;
|
|
@@ -2,6 +2,7 @@ import React, { type KeyboardEventHandler, PureComponent, type ReactNode } from
|
|
|
2
2
|
import { type UnbindFn } from 'bind-event-listener';
|
|
3
3
|
import { type PopperProps } from 'react-popper';
|
|
4
4
|
import { type ActionMeta, type AtlaskitSelectRefType, type OptionType, type ReactSelectProps, type StylesConfig, type ValidationState, type ValueType } from '../types';
|
|
5
|
+
import { defaultComponents } from './components';
|
|
5
6
|
type defaultModifiers = 'offset' | 'preventOverflow' | 'flip';
|
|
6
7
|
type PopperPropsNoChildren<Modifiers> = Omit<PopperProps<Modifiers>, 'children'>;
|
|
7
8
|
interface PopupSelectTriggerProps {
|
|
@@ -113,28 +114,10 @@ export default class PopupSelect<Option = OptionType, IsMulti extends boolean =
|
|
|
113
114
|
state: {
|
|
114
115
|
focusLockEnabled: boolean;
|
|
115
116
|
isOpen: boolean;
|
|
116
|
-
mergedComponents:
|
|
117
|
-
Control: React.FC<import("../types").ControlProps<OptionType, boolean>>;
|
|
118
|
-
DropdownIndicator: () => JSX.Element;
|
|
119
|
-
Menu: ({ children, innerProps }: import("../types").MenuProps<OptionType, boolean>) => JSX.Element;
|
|
120
|
-
ClearIndicator: (props: import("@atlaskit/react-select").ClearIndicatorProps) => JSX.Element;
|
|
121
|
-
MultiValueRemove: (props: import("@atlaskit/react-select").MultiValueRemoveProps) => JSX.Element;
|
|
122
|
-
};
|
|
117
|
+
mergedComponents: typeof defaultComponents;
|
|
123
118
|
mergedPopperProps: PopperPropsNoChildren<defaultModifiers | string>;
|
|
124
119
|
};
|
|
125
|
-
static defaultProps:
|
|
126
|
-
closeMenuOnSelect: boolean;
|
|
127
|
-
shouldCloseMenuOnTab: boolean;
|
|
128
|
-
components: {};
|
|
129
|
-
maxMenuHeight: number;
|
|
130
|
-
maxMenuWidth: number;
|
|
131
|
-
minMenuWidth: number;
|
|
132
|
-
popperProps: {};
|
|
133
|
-
isSearchable: boolean;
|
|
134
|
-
searchThreshold: number;
|
|
135
|
-
styles: {};
|
|
136
|
-
options: never[];
|
|
137
|
-
};
|
|
120
|
+
static defaultProps: PopupSelectProps;
|
|
138
121
|
static getDerivedStateFromProps(props: PopupSelectProps<OptionType>, state: State): Partial<State<string>> | null;
|
|
139
122
|
componentDidMount(): void;
|
|
140
123
|
componentWillUnmount(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/select",
|
|
3
|
-
"version": "21.3.
|
|
3
|
+
"version": "21.3.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/"
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@atlaskit/drawer": "^11.0.0",
|
|
65
65
|
"@atlaskit/form": "^14.2.0",
|
|
66
66
|
"@atlaskit/link": "^3.2.0",
|
|
67
|
-
"@atlaskit/logo": "^19.
|
|
67
|
+
"@atlaskit/logo": "^19.8.0",
|
|
68
68
|
"@atlaskit/modal-dialog": "^14.4.0",
|
|
69
69
|
"@atlaskit/radio": "^8.3.0",
|
|
70
70
|
"@atlaskit/section-message": "^8.7.0",
|