@atlaskit/select 21.2.10 → 21.3.1
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 +20 -0
- package/dist/cjs/Select.js +1 -1
- package/dist/cjs/components/input-options.compiled.css +1 -1
- package/dist/cjs/components/input-options.js +1 -1
- package/dist/es2019/Select.js +1 -1
- package/dist/es2019/components/input-options.compiled.css +1 -1
- package/dist/es2019/components/input-options.js +1 -1
- package/dist/esm/Select.js +1 -1
- package/dist/esm/components/input-options.compiled.css +1 -1
- package/dist/esm/components/input-options.js +1 -1
- package/dist/types/PopupSelect/PopupSelect.d.ts +4 -0
- package/dist/types-ts4.5/PopupSelect/PopupSelect.d.ts +4 -0
- package/offerings.json +38 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/select
|
|
2
2
|
|
|
3
|
+
## 21.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`248faa32d4835`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/248faa32d4835) -
|
|
8
|
+
Internal changes to how borders are applied.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 21.3.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`153fad932190f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/153fad932190f) -
|
|
16
|
+
[ux] Added a new prop shouldKeepInputOnSelect to the select component to prevent clearing the
|
|
17
|
+
input when isMulti is true
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 21.2.10
|
|
4
24
|
|
|
5
25
|
### 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 = "21.3.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)({
|
|
@@ -25,4 +25,4 @@
|
|
|
25
25
|
._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
|
|
26
26
|
._y4tiutpp{padding-inline-end:var(--ds-space-150,9pt)}
|
|
27
27
|
._1di61dty:active{background-color:var(--ds-background-neutral-subtle-pressed,#091e4224)}
|
|
28
|
-
@media screen and (-ms-high-contrast:active){.
|
|
28
|
+
@media screen and (-ms-high-contrast:active){._112e5u6v{border-inline-start:var(--ds-border-width-selected,2px) solid transparent}}
|
|
@@ -20,7 +20,7 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
|
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); }
|
|
21
21
|
var optionStyles = {
|
|
22
22
|
default: "_1e0c1txw _4cvr1h6o _1bsb1osq _uiztglyw _18ql1j7p _vchhusvi _85i51b66 _1q511b66 _bozgpxbi _y4tiutpp _bfhk1j28 _16qs1kw7 _syaz1kw7 _1di61dty",
|
|
23
|
-
focused: "_bfhk166n _16qsn8hf
|
|
23
|
+
focused: "_bfhk166n _16qsn8hf _112e5u6v",
|
|
24
24
|
disabled: "_syaz15gi"
|
|
25
25
|
};
|
|
26
26
|
|
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.0";
|
|
7
7
|
export const SelectWithoutAnalytics = createSelect(AsyncSelect);
|
|
8
8
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
9
9
|
const Select = withAnalyticsContext({
|
|
@@ -25,4 +25,4 @@
|
|
|
25
25
|
._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
|
|
26
26
|
._y4tiutpp{padding-inline-end:var(--ds-space-150,9pt)}
|
|
27
27
|
._1di61dty:active{background-color:var(--ds-background-neutral-subtle-pressed,#091e4224)}
|
|
28
|
-
@media screen and (-ms-high-contrast:active){.
|
|
28
|
+
@media screen and (-ms-high-contrast:active){._112e5u6v{border-inline-start:var(--ds-border-width-selected,2px) solid transparent}}
|
|
@@ -10,7 +10,7 @@ import PrimitiveSVGIcon from '@atlaskit/icon/svg';
|
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
11
|
const optionStyles = {
|
|
12
12
|
default: "_1e0c1txw _4cvr1h6o _1bsb1osq _uiztglyw _18ql1j7p _vchhusvi _85i51b66 _1q511b66 _bozgpxbi _y4tiutpp _bfhk1j28 _16qs1kw7 _syaz1kw7 _1di61dty",
|
|
13
|
-
focused: "_bfhk166n _16qsn8hf
|
|
13
|
+
focused: "_bfhk166n _16qsn8hf _112e5u6v",
|
|
14
14
|
disabled: "_syaz15gi"
|
|
15
15
|
};
|
|
16
16
|
|
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.0";
|
|
7
7
|
export var SelectWithoutAnalytics = createSelect(AsyncSelect);
|
|
8
8
|
var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
9
9
|
var Select = withAnalyticsContext({
|
|
@@ -25,4 +25,4 @@
|
|
|
25
25
|
._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
|
|
26
26
|
._y4tiutpp{padding-inline-end:var(--ds-space-150,9pt)}
|
|
27
27
|
._1di61dty:active{background-color:var(--ds-background-neutral-subtle-pressed,#091e4224)}
|
|
28
|
-
@media screen and (-ms-high-contrast:active){.
|
|
28
|
+
@media screen and (-ms-high-contrast:active){._112e5u6v{border-inline-start:var(--ds-border-width-selected,2px) solid transparent}}
|
|
@@ -11,7 +11,7 @@ import PrimitiveSVGIcon from '@atlaskit/icon/svg';
|
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
12
|
var optionStyles = {
|
|
13
13
|
default: "_1e0c1txw _4cvr1h6o _1bsb1osq _uiztglyw _18ql1j7p _vchhusvi _85i51b66 _1q511b66 _bozgpxbi _y4tiutpp _bfhk1j28 _16qs1kw7 _syaz1kw7 _1di61dty",
|
|
14
|
-
focused: "_bfhk166n _16qsn8hf
|
|
14
|
+
focused: "_bfhk166n _16qsn8hf _112e5u6v",
|
|
15
15
|
disabled: "_syaz15gi"
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -90,6 +90,10 @@ export interface PopupSelectProps<Option = OptionType, IsMulti extends boolean =
|
|
|
90
90
|
* The `testId` prop appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests. It will be set on the menu element when defined: `{testId}--menu`
|
|
91
91
|
*/
|
|
92
92
|
testId?: string;
|
|
93
|
+
/**
|
|
94
|
+
* If `true`, the input value will be kept when an option is selected. The default is `false`.
|
|
95
|
+
*/
|
|
96
|
+
shouldKeepInputOnSelect?: boolean;
|
|
93
97
|
}
|
|
94
98
|
interface State<Modifiers = string> {
|
|
95
99
|
focusLockEnabled: boolean;
|
|
@@ -90,6 +90,10 @@ export interface PopupSelectProps<Option = OptionType, IsMulti extends boolean =
|
|
|
90
90
|
* The `testId` prop appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests. It will be set on the menu element when defined: `{testId}--menu`
|
|
91
91
|
*/
|
|
92
92
|
testId?: string;
|
|
93
|
+
/**
|
|
94
|
+
* If `true`, the input value will be kept when an option is selected. The default is `false`.
|
|
95
|
+
*/
|
|
96
|
+
shouldKeepInputOnSelect?: boolean;
|
|
93
97
|
}
|
|
94
98
|
interface State<Modifiers = string> {
|
|
95
99
|
focusLockEnabled: boolean;
|
package/offerings.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "Select",
|
|
4
|
+
"package": "@atlaskit/select",
|
|
5
|
+
"import": {
|
|
6
|
+
"name": "Select",
|
|
7
|
+
"package": "@atlaskit/select",
|
|
8
|
+
"type": "default"
|
|
9
|
+
},
|
|
10
|
+
"keywords": ["select", "dropdown", "form", "input", "options", "choice", "picker"],
|
|
11
|
+
"categories": ["form"],
|
|
12
|
+
"shortDescription": "A flexible select component for single and multi-selection.",
|
|
13
|
+
"status": "general-availability",
|
|
14
|
+
"accessibilityGuidelines": [
|
|
15
|
+
"Provide clear labels for all selects",
|
|
16
|
+
"Use appropriate placeholder text",
|
|
17
|
+
"Ensure keyboard navigation with arrow keys",
|
|
18
|
+
"Provide clear option descriptions",
|
|
19
|
+
"Support screen reader announcements"
|
|
20
|
+
],
|
|
21
|
+
"usageGuidelines": [
|
|
22
|
+
"Use for choosing from a list of options",
|
|
23
|
+
"Use multi-select for multiple choice scenarios",
|
|
24
|
+
"Enable search for long option lists",
|
|
25
|
+
"Provide clear placeholder text",
|
|
26
|
+
"Consider loading states for async data"
|
|
27
|
+
],
|
|
28
|
+
"contentGuidelines": [
|
|
29
|
+
"Write clear, descriptive option labels",
|
|
30
|
+
"Use consistent terminology across options",
|
|
31
|
+
"Keep option text concise but meaningful",
|
|
32
|
+
"Group related options logically"
|
|
33
|
+
],
|
|
34
|
+
"examples": [
|
|
35
|
+
"./examples/constellation/select-appearance-default.tsx"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/select",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.3.1",
|
|
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,10 +34,10 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
36
36
|
"@atlaskit/ds-lib": "^5.0.0",
|
|
37
|
-
"@atlaskit/icon": "^28.
|
|
37
|
+
"@atlaskit/icon": "^28.2.0",
|
|
38
38
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
39
39
|
"@atlaskit/primitives": "^14.14.0",
|
|
40
|
-
"@atlaskit/react-select": "^3.
|
|
40
|
+
"@atlaskit/react-select": "^3.6.0",
|
|
41
41
|
"@atlaskit/spinner": "^19.0.0",
|
|
42
42
|
"@atlaskit/theme": "^21.0.0",
|
|
43
43
|
"@atlaskit/tokens": "^6.3.0",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"@af/visual-regression": "workspace:^",
|
|
61
61
|
"@atlaskit/button": "^23.4.0",
|
|
62
62
|
"@atlaskit/checkbox": "^17.1.0",
|
|
63
|
-
"@atlaskit/docs": "^11.
|
|
63
|
+
"@atlaskit/docs": "^11.1.0",
|
|
64
64
|
"@atlaskit/drawer": "^11.0.0",
|
|
65
|
-
"@atlaskit/form": "^12.
|
|
65
|
+
"@atlaskit/form": "^12.7.0",
|
|
66
66
|
"@atlaskit/link": "^3.2.0",
|
|
67
67
|
"@atlaskit/logo": "^19.7.0",
|
|
68
68
|
"@atlaskit/modal-dialog": "^14.3.0",
|