@atlaskit/select 21.3.0 → 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 CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 21.3.0
4
12
 
5
13
  ### Minor Changes
@@ -1,4 +1,4 @@
1
- /* CountrySelect.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* CountrySelect.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* components.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* components.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -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 = "0.0.0-development";
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)({
@@ -1,4 +1,4 @@
1
- ._16cu892t svg circle:first-of-type{stroke-linejoin:round}
1
+ ._16cu892t svg circle:first-of-type, ._1xci892t svg rect{stroke-linejoin:round}
2
2
  ._16jlkb7n{flex-grow:1}
3
3
  ._16qs1kw7{box-shadow:inherit}
4
4
  ._16qsn8hf{box-shadow:inset 2px 0 0 var(--ds-border-focused,#388bff)}
@@ -6,18 +6,14 @@
6
6
  ._1bsb1osq{width:100%}
7
7
  ._1bto1l2s{text-overflow:ellipsis}
8
8
  ._1e0c1txw{display:flex}
9
- ._1gqp1elr svg rect{stroke:var(--ds-border-input,#8590a2)}
10
- ._1gqp1r31 svg rect{stroke:currentColor}
11
9
  ._1o9zidpf{flex-shrink:0}
12
10
  ._1q511b66{padding-block-start:var(--ds-space-050,4px)}
13
11
  ._1reo15vq{overflow-x:hidden}
14
- ._1u9j1elr svg circle:first-of-type{stroke:var(--ds-border-input,#8590a2)}
15
- ._1u9j1r31 svg circle:first-of-type{stroke:currentColor}
16
- ._1xci892t svg rect{stroke-linejoin:round}
12
+ ._1u9j1elr svg circle:first-of-type, ._1gqp1elr svg rect{stroke:var(--ds-border-input,#8590a2)}
13
+ ._1u9j1r31 svg circle:first-of-type, ._1gqp1r31 svg rect{stroke:currentColor}
17
14
  ._4cvr1h6o{align-items:center}
18
- ._59qxe4h9 svg circle:first-of-type{stroke-width:var(--ds-border-width,1px)}
15
+ ._59qxe4h9 svg circle:first-of-type, ._8y3xe4h9 svg rect{stroke-width:var(--ds-border-width,1px)}
19
16
  ._85i51b66{padding-block-end:var(--ds-space-050,4px)}
20
- ._8y3xe4h9 svg rect{stroke-width:var(--ds-border-width,1px)}
21
17
  ._bfhk166n{background-color:var(--ds-background-neutral-subtle-hovered,#091e420f)}
22
18
  ._bfhk1j28{background-color:transparent}
23
19
  ._bozgpxbi{padding-inline-start:var(--ds-space-200,1pc)}
@@ -29,4 +25,4 @@
29
25
  ._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
30
26
  ._y4tiutpp{padding-inline-end:var(--ds-space-150,9pt)}
31
27
  ._1di61dty:active{background-color:var(--ds-background-neutral-subtle-pressed,#091e4224)}
32
- @media screen and (-ms-high-contrast:active){._112e1vrj{border-inline-start:2px solid transparent}}
28
+ @media screen and (-ms-high-contrast:active){._112e5u6v{border-inline-start:var(--ds-border-width-selected,2px) solid transparent}}
@@ -1,4 +1,4 @@
1
- /* input-options.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* input-options.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -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 _112e1vrj",
23
+ focused: "_bfhk166n _16qsn8hf _112e5u6v",
24
24
  disabled: "_syaz15gi"
25
25
  };
26
26
 
@@ -1,4 +1,4 @@
1
- /* CountrySelect.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* CountrySelect.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./CountrySelect.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* components.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* components.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./components.compiled.css";
4
4
  import * as React from 'react';
@@ -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 = "0.0.0-development";
6
+ const packageVersion = "21.3.0";
7
7
  export const SelectWithoutAnalytics = createSelect(AsyncSelect);
8
8
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
9
9
  const Select = withAnalyticsContext({
@@ -1,4 +1,4 @@
1
- ._16cu892t svg circle:first-of-type{stroke-linejoin:round}
1
+ ._16cu892t svg circle:first-of-type, ._1xci892t svg rect{stroke-linejoin:round}
2
2
  ._16jlkb7n{flex-grow:1}
3
3
  ._16qs1kw7{box-shadow:inherit}
4
4
  ._16qsn8hf{box-shadow:inset 2px 0 0 var(--ds-border-focused,#388bff)}
@@ -6,18 +6,14 @@
6
6
  ._1bsb1osq{width:100%}
7
7
  ._1bto1l2s{text-overflow:ellipsis}
8
8
  ._1e0c1txw{display:flex}
9
- ._1gqp1elr svg rect{stroke:var(--ds-border-input,#8590a2)}
10
- ._1gqp1r31 svg rect{stroke:currentColor}
11
9
  ._1o9zidpf{flex-shrink:0}
12
10
  ._1q511b66{padding-block-start:var(--ds-space-050,4px)}
13
11
  ._1reo15vq{overflow-x:hidden}
14
- ._1u9j1elr svg circle:first-of-type{stroke:var(--ds-border-input,#8590a2)}
15
- ._1u9j1r31 svg circle:first-of-type{stroke:currentColor}
16
- ._1xci892t svg rect{stroke-linejoin:round}
12
+ ._1u9j1elr svg circle:first-of-type, ._1gqp1elr svg rect{stroke:var(--ds-border-input,#8590a2)}
13
+ ._1u9j1r31 svg circle:first-of-type, ._1gqp1r31 svg rect{stroke:currentColor}
17
14
  ._4cvr1h6o{align-items:center}
18
- ._59qxe4h9 svg circle:first-of-type{stroke-width:var(--ds-border-width,1px)}
15
+ ._59qxe4h9 svg circle:first-of-type, ._8y3xe4h9 svg rect{stroke-width:var(--ds-border-width,1px)}
19
16
  ._85i51b66{padding-block-end:var(--ds-space-050,4px)}
20
- ._8y3xe4h9 svg rect{stroke-width:var(--ds-border-width,1px)}
21
17
  ._bfhk166n{background-color:var(--ds-background-neutral-subtle-hovered,#091e420f)}
22
18
  ._bfhk1j28{background-color:transparent}
23
19
  ._bozgpxbi{padding-inline-start:var(--ds-space-200,1pc)}
@@ -29,4 +25,4 @@
29
25
  ._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
30
26
  ._y4tiutpp{padding-inline-end:var(--ds-space-150,9pt)}
31
27
  ._1di61dty:active{background-color:var(--ds-background-neutral-subtle-pressed,#091e4224)}
32
- @media screen and (-ms-high-contrast:active){._112e1vrj{border-inline-start:2px solid transparent}}
28
+ @media screen and (-ms-high-contrast:active){._112e5u6v{border-inline-start:var(--ds-border-width-selected,2px) solid transparent}}
@@ -1,4 +1,4 @@
1
- /* input-options.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* input-options.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./input-options.compiled.css";
4
4
  import * as React from 'react';
@@ -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 _112e1vrj",
13
+ focused: "_bfhk166n _16qsn8hf _112e5u6v",
14
14
  disabled: "_syaz15gi"
15
15
  };
16
16
 
@@ -1,4 +1,4 @@
1
- /* CountrySelect.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* CountrySelect.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./CountrySelect.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* components.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* components.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
@@ -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 = "0.0.0-development";
6
+ var packageVersion = "21.3.0";
7
7
  export var SelectWithoutAnalytics = createSelect(AsyncSelect);
8
8
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
9
9
  var Select = withAnalyticsContext({
@@ -1,4 +1,4 @@
1
- ._16cu892t svg circle:first-of-type{stroke-linejoin:round}
1
+ ._16cu892t svg circle:first-of-type, ._1xci892t svg rect{stroke-linejoin:round}
2
2
  ._16jlkb7n{flex-grow:1}
3
3
  ._16qs1kw7{box-shadow:inherit}
4
4
  ._16qsn8hf{box-shadow:inset 2px 0 0 var(--ds-border-focused,#388bff)}
@@ -6,18 +6,14 @@
6
6
  ._1bsb1osq{width:100%}
7
7
  ._1bto1l2s{text-overflow:ellipsis}
8
8
  ._1e0c1txw{display:flex}
9
- ._1gqp1elr svg rect{stroke:var(--ds-border-input,#8590a2)}
10
- ._1gqp1r31 svg rect{stroke:currentColor}
11
9
  ._1o9zidpf{flex-shrink:0}
12
10
  ._1q511b66{padding-block-start:var(--ds-space-050,4px)}
13
11
  ._1reo15vq{overflow-x:hidden}
14
- ._1u9j1elr svg circle:first-of-type{stroke:var(--ds-border-input,#8590a2)}
15
- ._1u9j1r31 svg circle:first-of-type{stroke:currentColor}
16
- ._1xci892t svg rect{stroke-linejoin:round}
12
+ ._1u9j1elr svg circle:first-of-type, ._1gqp1elr svg rect{stroke:var(--ds-border-input,#8590a2)}
13
+ ._1u9j1r31 svg circle:first-of-type, ._1gqp1r31 svg rect{stroke:currentColor}
17
14
  ._4cvr1h6o{align-items:center}
18
- ._59qxe4h9 svg circle:first-of-type{stroke-width:var(--ds-border-width,1px)}
15
+ ._59qxe4h9 svg circle:first-of-type, ._8y3xe4h9 svg rect{stroke-width:var(--ds-border-width,1px)}
19
16
  ._85i51b66{padding-block-end:var(--ds-space-050,4px)}
20
- ._8y3xe4h9 svg rect{stroke-width:var(--ds-border-width,1px)}
21
17
  ._bfhk166n{background-color:var(--ds-background-neutral-subtle-hovered,#091e420f)}
22
18
  ._bfhk1j28{background-color:transparent}
23
19
  ._bozgpxbi{padding-inline-start:var(--ds-space-200,1pc)}
@@ -29,4 +25,4 @@
29
25
  ._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
30
26
  ._y4tiutpp{padding-inline-end:var(--ds-space-150,9pt)}
31
27
  ._1di61dty:active{background-color:var(--ds-background-neutral-subtle-pressed,#091e4224)}
32
- @media screen and (-ms-high-contrast:active){._112e1vrj{border-inline-start:2px solid transparent}}
28
+ @media screen and (-ms-high-contrast:active){._112e5u6v{border-inline-start:var(--ds-border-width-selected,2px) solid transparent}}
@@ -1,4 +1,4 @@
1
- /* input-options.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* input-options.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  import "./input-options.compiled.css";
@@ -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 _112e1vrj",
14
+ focused: "_bfhk166n _16qsn8hf _112e5u6v",
15
15
  disabled: "_syaz15gi"
16
16
  };
17
17
 
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.0",
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/"
@@ -62,7 +62,7 @@
62
62
  "@atlaskit/checkbox": "^17.1.0",
63
63
  "@atlaskit/docs": "^11.1.0",
64
64
  "@atlaskit/drawer": "^11.0.0",
65
- "@atlaskit/form": "^12.6.0",
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",