@atlaskit/react-select 3.16.0 → 3.16.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.
Files changed (57) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/async.js +1 -6
  3. package/dist/cjs/compiled/components/indicators-container.compiled.css +5 -0
  4. package/dist/cjs/compiled/components/indicators-container.js +40 -0
  5. package/dist/cjs/compiled/components/select-container.compiled.css +6 -0
  6. package/dist/cjs/compiled/components/select-container.js +52 -0
  7. package/dist/cjs/compiled/components/value-container.compiled.css +20 -0
  8. package/dist/cjs/compiled/components/{containers.js → value-container.js} +7 -69
  9. package/dist/cjs/creatable.js +1 -6
  10. package/dist/cjs/entry-points/async.js +4 -4
  11. package/dist/cjs/entry-points/creatable.js +4 -4
  12. package/dist/cjs/theme.js +1 -7
  13. package/dist/es2019/async.js +0 -1
  14. package/dist/es2019/compiled/components/indicators-container.compiled.css +5 -0
  15. package/dist/es2019/compiled/components/indicators-container.js +35 -0
  16. package/dist/es2019/compiled/components/select-container.compiled.css +6 -0
  17. package/dist/es2019/compiled/components/select-container.js +47 -0
  18. package/dist/es2019/compiled/components/value-container.compiled.css +20 -0
  19. package/dist/es2019/compiled/components/{containers.js → value-container.js} +2 -70
  20. package/dist/es2019/creatable.js +1 -1
  21. package/dist/es2019/entry-points/async.js +1 -1
  22. package/dist/es2019/entry-points/creatable.js +1 -1
  23. package/dist/es2019/theme.js +0 -7
  24. package/dist/esm/async.js +0 -1
  25. package/dist/esm/compiled/components/indicators-container.compiled.css +5 -0
  26. package/dist/esm/compiled/components/indicators-container.js +32 -0
  27. package/dist/esm/compiled/components/select-container.compiled.css +6 -0
  28. package/dist/esm/compiled/components/select-container.js +44 -0
  29. package/dist/esm/compiled/components/value-container.compiled.css +20 -0
  30. package/dist/esm/compiled/components/value-container.js +50 -0
  31. package/dist/esm/creatable.js +1 -1
  32. package/dist/esm/entry-points/async.js +1 -1
  33. package/dist/esm/entry-points/creatable.js +1 -1
  34. package/dist/esm/theme.js +0 -7
  35. package/dist/types/async.d.ts +1 -2
  36. package/dist/types/compiled/components/indicators-container.d.ts +18 -0
  37. package/dist/types/compiled/components/select-container.d.ts +22 -0
  38. package/dist/types/compiled/components/value-container.d.ts +22 -0
  39. package/dist/types/creatable.d.ts +1 -2
  40. package/dist/types/entry-points/async.d.ts +1 -1
  41. package/dist/types/entry-points/creatable.d.ts +1 -1
  42. package/dist/types/theme.d.ts +0 -2
  43. package/dist/types-ts4.5/async.d.ts +1 -2
  44. package/dist/types-ts4.5/compiled/components/indicators-container.d.ts +18 -0
  45. package/dist/types-ts4.5/compiled/components/select-container.d.ts +22 -0
  46. package/dist/types-ts4.5/compiled/components/value-container.d.ts +22 -0
  47. package/dist/types-ts4.5/creatable.d.ts +1 -2
  48. package/dist/types-ts4.5/entry-points/async.d.ts +1 -1
  49. package/dist/types-ts4.5/entry-points/creatable.d.ts +1 -1
  50. package/dist/types-ts4.5/theme.d.ts +0 -2
  51. package/package.json +3 -3
  52. package/dist/cjs/compiled/components/containers.compiled.css +0 -28
  53. package/dist/es2019/compiled/components/containers.compiled.css +0 -28
  54. package/dist/esm/compiled/components/containers.compiled.css +0 -28
  55. package/dist/esm/compiled/components/containers.js +0 -112
  56. package/dist/types/compiled/components/containers.d.ts +0 -50
  57. package/dist/types-ts4.5/compiled/components/containers.d.ts +0 -50
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/react-select
2
2
 
3
+ ## 3.16.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 3.16.0
4
10
 
5
11
  ### Minor Changes
package/dist/cjs/async.js CHANGED
@@ -6,12 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
- Object.defineProperty(exports, "useAsync", {
10
- enumerable: true,
11
- get: function get() {
12
- return _useAsync.default;
13
- }
14
- });
15
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
16
10
  var _react = _interopRequireWildcard(require("react"));
17
11
  var _select = _interopRequireDefault(require("./select"));
@@ -29,5 +23,6 @@ var AsyncSelect = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
29
23
  ref: ref
30
24
  }, selectProps));
31
25
  });
26
+
32
27
  // eslint-disable-next-line @repo/internal/react/require-jsdoc
33
28
  var _default = exports.default = AsyncSelect;
@@ -0,0 +1,5 @@
1
+ ._1e0c1txw{display:flex}
2
+ ._1o9zidpf{flex-shrink:0}
3
+ ._1wpz1fhb{align-self:stretch}
4
+ ._4cvr1h6o{align-items:center}
5
+ ._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
@@ -0,0 +1,40 @@
1
+ /* indicators-container.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.IndicatorsContainer = void 0;
10
+ require("./indicators-container.compiled.css");
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _runtime = require("@compiled/react/runtime");
13
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
+ var _react2 = require("@compiled/react");
15
+ var _getStyleProps2 = require("../../get-style-props");
16
+ 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); }
17
+ // ==============================
18
+ // Indicator Container
19
+ // ==============================
20
+
21
+ var indicatorContainerStyles = null;
22
+
23
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
24
+ var IndicatorsContainer = exports.IndicatorsContainer = function IndicatorsContainer(props) {
25
+ var children = props.children,
26
+ innerProps = props.innerProps,
27
+ xcss = props.xcss;
28
+ var _getStyleProps = (0, _getStyleProps2.getStyleProps)(props, 'indicatorsContainer', {
29
+ indicators: true
30
+ }),
31
+ css = _getStyleProps.css,
32
+ className = _getStyleProps.className;
33
+ return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
34
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
35
+ style: css
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
37
+ ,
38
+ className: (0, _runtime.ax)(["_1e0c1txw _4cvr1h6o _1o9zidpf _1wpz1fhb _y4ti1b66", (0, _react2.cx)(className, xcss, '-IndicatorsContainer')])
39
+ }, innerProps), children);
40
+ };
@@ -0,0 +1,6 @@
1
+ ._11c81d4k{font:var(--ds-font-body-large,normal 400 1pc/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
+ ._1eim1xrj{direction:rtl}
3
+ ._80om13gf{cursor:not-allowed}
4
+ ._kqswh2mm{position:relative}
5
+ ._lcxv1rj4{pointer-events:all}
6
+ @media (min-width:30rem){._1tn2fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}}
@@ -0,0 +1,52 @@
1
+ /* select-container.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.SelectContainer = void 0;
10
+ require("./select-container.compiled.css");
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _runtime = require("@compiled/react/runtime");
13
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
+ var _react2 = require("@compiled/react");
15
+ var _getStyleProps2 = require("../../get-style-props");
16
+ 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); }
17
+ // ==============================
18
+ // Root Container
19
+ // ==============================
20
+
21
+ // iOS Safari automatically zooms into form inputs on focus when the font size is less than 16px.
22
+ // To prevent this zoom behaviour on mobile devices, the select container uses font.body.large (16px) by default,
23
+ // then switches to the smaller font.body on screens wider than 30rem (desktop).
24
+ // @see: https://medium.com/@rares.popescu/2-ways-to-avoid-the-automatic-zoom-in-on-input-fields-8a71479e542e
25
+
26
+ var containerStyles = {
27
+ default: "_11c81d4k _kqswh2mm _lcxv1rj4 _1tn2fhey",
28
+ rtl: "_1eim1xrj",
29
+ disabled: "_80om13gf"
30
+ };
31
+
32
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
33
+ var SelectContainer = exports.SelectContainer = function SelectContainer(props) {
34
+ var children = props.children,
35
+ innerProps = props.innerProps,
36
+ isDisabled = props.isDisabled,
37
+ isRtl = props.isRtl,
38
+ xcss = props.xcss;
39
+ var _getStyleProps = (0, _getStyleProps2.getStyleProps)(props, 'container', {
40
+ '--is-disabled': isDisabled,
41
+ '--is-rtl': isRtl
42
+ }),
43
+ className = _getStyleProps.className,
44
+ css = _getStyleProps.css;
45
+ return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
46
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
47
+ className: (0, _runtime.ax)([containerStyles.default, isRtl && containerStyles.rtl, isDisabled && containerStyles.disabled, (0, _react2.cx)(className, xcss, '-container')])
48
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
49
+ ,
50
+ style: css
51
+ }, innerProps), children);
52
+ };
@@ -0,0 +1,20 @@
1
+
2
+ ._zulp1b66{gap:var(--ds-space-050,4px)}._16jlkb7n{flex-grow:1}
3
+ ._18m915vq{overflow-y:hidden}
4
+ ._1e0c11p5{display:grid}
5
+ ._1e0c1txw{display:flex}
6
+ ._1n261g80{flex-wrap:wrap}
7
+ ._1o9zkb7n{flex-shrink:1}
8
+ ._1q511b66{padding-block-start:var(--ds-space-050,4px)}
9
+ ._1q51v77o{padding-block-start:var(--ds-space-025,2px)}
10
+ ._1q51ze3t{padding-block-start:var(--ds-space-0,0)}
11
+ ._1reo15vq{overflow-x:hidden}
12
+ ._4cvr1h6o{align-items:center}
13
+ ._85i51b66{padding-block-end:var(--ds-space-050,4px)}
14
+ ._85i5v77o{padding-block-end:var(--ds-space-025,2px)}
15
+ ._85i5ze3t{padding-block-end:var(--ds-space-0,0)}
16
+ ._8am5i4x0{-webkit-overflow-scrolling:touch}
17
+ ._bozg12x7{padding-inline-start:var(--ds-space-075,6px)}
18
+ ._i0dlf1ug{flex-basis:0%}
19
+ ._kqswh2mm{position:relative}
20
+ ._y4ti12x7{padding-inline-end:var(--ds-space-075,6px)}
@@ -1,4 +1,4 @@
1
- /* containers.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* value-container.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -6,52 +6,15 @@ var _typeof = require("@babel/runtime/helpers/typeof");
6
6
  Object.defineProperty(exports, "__esModule", {
7
7
  value: true
8
8
  });
9
- exports.ValueContainer = exports.SelectContainer = exports.IndicatorsContainer = void 0;
10
- require("./containers.compiled.css");
9
+ exports.ValueContainer = void 0;
10
+ require("./value-container.compiled.css");
11
11
  var React = _interopRequireWildcard(require("react"));
12
12
  var _runtime = require("@compiled/react/runtime");
13
13
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
14
  var _react2 = require("@compiled/react");
15
15
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
- var _getStyleProps4 = require("../../get-style-props");
16
+ var _getStyleProps2 = require("../../get-style-props");
17
17
  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); }
18
- // ==============================
19
- // Root Container
20
- // ==============================
21
-
22
- // iOS Safari automatically zooms into form inputs on focus when the font size is less than 16px.
23
- // To prevent this zoom behaviour on mobile devices, the select container uses font.body.large (16px) by default,
24
- // then switches to the smaller font.body on screens wider than 30rem (desktop).
25
- // @see: https://medium.com/@rares.popescu/2-ways-to-avoid-the-automatic-zoom-in-on-input-fields-8a71479e542e
26
-
27
- var containerStyles = {
28
- default: "_11c81d4k _kqswh2mm _lcxv1rj4 _1tn2fhey",
29
- rtl: "_1eim1xrj",
30
- disabled: "_80om13gf"
31
- };
32
-
33
- // eslint-disable-next-line @repo/internal/react/require-jsdoc
34
- var SelectContainer = exports.SelectContainer = function SelectContainer(props) {
35
- var children = props.children,
36
- innerProps = props.innerProps,
37
- isDisabled = props.isDisabled,
38
- isRtl = props.isRtl,
39
- xcss = props.xcss;
40
- var _getStyleProps = (0, _getStyleProps4.getStyleProps)(props, 'container', {
41
- '--is-disabled': isDisabled,
42
- '--is-rtl': isRtl
43
- }),
44
- className = _getStyleProps.className,
45
- css = _getStyleProps.css;
46
- return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
47
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
48
- className: (0, _runtime.ax)([containerStyles.default, isRtl && containerStyles.rtl, isDisabled && containerStyles.disabled, (0, _react2.cx)(className, xcss, '-container')])
49
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
50
- ,
51
- style: css
52
- }, innerProps), children);
53
- };
54
-
55
18
  // ==============================
56
19
  // Value Container
57
20
  // ==============================
@@ -75,13 +38,13 @@ var ValueContainer = exports.ValueContainer = function ValueContainer(props) {
75
38
  isCompact = props.isCompact,
76
39
  xcss = props.xcss,
77
40
  controlShouldRenderValue = props.selectProps.controlShouldRenderValue;
78
- var _getStyleProps2 = (0, _getStyleProps4.getStyleProps)(props, 'valueContainer', {
41
+ var _getStyleProps = (0, _getStyleProps2.getStyleProps)(props, 'valueContainer', {
79
42
  'value-container': true,
80
43
  'value-container--is-multi': isMulti,
81
44
  'value-container--has-value': hasValue
82
45
  }),
83
- css = _getStyleProps2.css,
84
- className = _getStyleProps2.className;
46
+ css = _getStyleProps.css,
47
+ className = _getStyleProps.className;
85
48
  var ffTagUplifts = (0, _platformFeatureFlags.fg)('platform-dst-lozenge-tag-badge-visual-uplifts');
86
49
  var tagUpliftMultiVertical = ffTagUplifts && isMulti;
87
50
  var tagUpliftChipRow = ffTagUplifts && isMulti && hasValue && controlShouldRenderValue;
@@ -92,29 +55,4 @@ var ValueContainer = exports.ValueContainer = function ValueContainer(props) {
92
55
  ,
93
56
  style: css
94
57
  }, innerProps), children);
95
- };
96
-
97
- // ==============================
98
- // Indicator Container
99
- // ==============================
100
-
101
- var indicatorContainerStyles = null;
102
-
103
- // eslint-disable-next-line @repo/internal/react/require-jsdoc
104
- var IndicatorsContainer = exports.IndicatorsContainer = function IndicatorsContainer(props) {
105
- var children = props.children,
106
- innerProps = props.innerProps,
107
- xcss = props.xcss;
108
- var _getStyleProps3 = (0, _getStyleProps4.getStyleProps)(props, 'indicatorsContainer', {
109
- indicators: true
110
- }),
111
- css = _getStyleProps3.css,
112
- className = _getStyleProps3.className;
113
- return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
114
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
115
- style: css
116
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
117
- ,
118
- className: (0, _runtime.ax)(["_1e0c1txw _4cvr1h6o _1o9zidpf _1wpz1fhb _y4ti1b66", (0, _react2.cx)(className, xcss, '-IndicatorsContainer')])
119
- }, innerProps), children);
120
58
  };
@@ -6,12 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
- Object.defineProperty(exports, "useCreatable", {
10
- enumerable: true,
11
- get: function get() {
12
- return _useCreatable.default;
13
- }
14
- });
15
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
16
10
  var _react = _interopRequireWildcard(require("react"));
17
11
  var _select = _interopRequireDefault(require("./select"));
@@ -25,5 +19,6 @@ var CreatableSelect = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
25
19
  ref: ref
26
20
  }, selectProps));
27
21
  });
22
+
28
23
  // eslint-disable-next-line @repo/internal/react/require-jsdoc
29
24
  var _default = exports.default = CreatableSelect;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var _typeof = require("@babel/runtime/helpers/typeof");
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -13,8 +13,8 @@ Object.defineProperty(exports, "default", {
13
13
  Object.defineProperty(exports, "useAsync", {
14
14
  enumerable: true,
15
15
  get: function get() {
16
- return _async.useAsync;
16
+ return _useAsync.default;
17
17
  }
18
18
  });
19
- var _async = _interopRequireWildcard(require("../async"));
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); }
19
+ var _useAsync = _interopRequireDefault(require("../use-async"));
20
+ var _async = _interopRequireDefault(require("../async"));
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- var _typeof = require("@babel/runtime/helpers/typeof");
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
@@ -13,8 +13,8 @@ Object.defineProperty(exports, "default", {
13
13
  Object.defineProperty(exports, "useCreatable", {
14
14
  enumerable: true,
15
15
  get: function get() {
16
- return _creatable.useCreatable;
16
+ return _useCreatable.default;
17
17
  }
18
18
  });
19
- var _creatable = _interopRequireWildcard(require("../creatable"));
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); }
19
+ var _useCreatable = _interopRequireDefault(require("../use-creatable"));
20
+ var _creatable = _interopRequireDefault(require("../creatable"));
package/dist/cjs/theme.js CHANGED
@@ -9,9 +9,8 @@ Object.defineProperty(exports, "colors", {
9
9
  return _colors.colors;
10
10
  }
11
11
  });
12
- exports.spacing = exports.defaultTheme = void 0;
12
+ exports.spacing = void 0;
13
13
  var _colors = require("./colors");
14
- var borderRadius = 4;
15
14
  // Used to calculate consistent margin/padding on elements
16
15
  var baseUnit = 4;
17
16
  // The minimum height of the control
@@ -22,9 +21,4 @@ var spacing = exports.spacing = {
22
21
  baseUnit: baseUnit,
23
22
  controlHeight: controlHeight,
24
23
  menuGutter: menuGutter
25
- };
26
- var defaultTheme = exports.defaultTheme = {
27
- borderRadius: borderRadius,
28
- colors: _colors.colors,
29
- spacing: spacing
30
24
  };
@@ -14,7 +14,6 @@ const AsyncSelect = /*#__PURE__*/forwardRef((props, ref) => {
14
14
  ref: ref
15
15
  }, selectProps));
16
16
  });
17
- export { useAsync };
18
17
 
19
18
  // eslint-disable-next-line @repo/internal/react/require-jsdoc
20
19
  export default AsyncSelect;
@@ -0,0 +1,5 @@
1
+ ._1e0c1txw{display:flex}
2
+ ._1o9zidpf{flex-shrink:0}
3
+ ._1wpz1fhb{align-self:stretch}
4
+ ._4cvr1h6o{align-items:center}
5
+ ._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
@@ -0,0 +1,35 @@
1
+ /* indicators-container.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ import _extends from "@babel/runtime/helpers/extends";
3
+ import "./indicators-container.compiled.css";
4
+ import * as React from 'react';
5
+ import { ax, ix } from "@compiled/react/runtime";
6
+ import { cx } from '@compiled/react';
7
+ import { getStyleProps } from '../../get-style-props';
8
+
9
+ // ==============================
10
+ // Indicator Container
11
+ // ==============================
12
+
13
+ const indicatorContainerStyles = null;
14
+
15
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
16
+ export const IndicatorsContainer = props => {
17
+ const {
18
+ children,
19
+ innerProps,
20
+ xcss
21
+ } = props;
22
+ const {
23
+ css,
24
+ className
25
+ } = getStyleProps(props, 'indicatorsContainer', {
26
+ indicators: true
27
+ });
28
+ return /*#__PURE__*/React.createElement("div", _extends({
29
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
30
+ style: css
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
32
+ ,
33
+ className: ax(["_1e0c1txw _4cvr1h6o _1o9zidpf _1wpz1fhb _y4ti1b66", cx(className, xcss, '-IndicatorsContainer')])
34
+ }, innerProps), children);
35
+ };
@@ -0,0 +1,6 @@
1
+ ._11c81d4k{font:var(--ds-font-body-large,normal 400 1pc/24px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
+ ._1eim1xrj{direction:rtl}
3
+ ._80om13gf{cursor:not-allowed}
4
+ ._kqswh2mm{position:relative}
5
+ ._lcxv1rj4{pointer-events:all}
6
+ @media (min-width:30rem){._1tn2fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}}
@@ -0,0 +1,47 @@
1
+ /* select-container.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ import _extends from "@babel/runtime/helpers/extends";
3
+ import "./select-container.compiled.css";
4
+ import * as React from 'react';
5
+ import { ax, ix } from "@compiled/react/runtime";
6
+ import { cx } from '@compiled/react';
7
+ import { getStyleProps } from '../../get-style-props';
8
+
9
+ // ==============================
10
+ // Root Container
11
+ // ==============================
12
+
13
+ // iOS Safari automatically zooms into form inputs on focus when the font size is less than 16px.
14
+ // To prevent this zoom behaviour on mobile devices, the select container uses font.body.large (16px) by default,
15
+ // then switches to the smaller font.body on screens wider than 30rem (desktop).
16
+ // @see: https://medium.com/@rares.popescu/2-ways-to-avoid-the-automatic-zoom-in-on-input-fields-8a71479e542e
17
+
18
+ const containerStyles = {
19
+ default: "_11c81d4k _kqswh2mm _lcxv1rj4 _1tn2fhey",
20
+ rtl: "_1eim1xrj",
21
+ disabled: "_80om13gf"
22
+ };
23
+
24
+ // eslint-disable-next-line @repo/internal/react/require-jsdoc
25
+ export const SelectContainer = props => {
26
+ const {
27
+ children,
28
+ innerProps,
29
+ isDisabled,
30
+ isRtl,
31
+ xcss
32
+ } = props;
33
+ const {
34
+ className,
35
+ css
36
+ } = getStyleProps(props, 'container', {
37
+ '--is-disabled': isDisabled,
38
+ '--is-rtl': isRtl
39
+ });
40
+ return /*#__PURE__*/React.createElement("div", _extends({
41
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
42
+ className: ax([containerStyles.default, isRtl && containerStyles.rtl, isDisabled && containerStyles.disabled, cx(className, xcss, '-container')])
43
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
44
+ ,
45
+ style: css
46
+ }, innerProps), children);
47
+ };
@@ -0,0 +1,20 @@
1
+
2
+ ._zulp1b66{gap:var(--ds-space-050,4px)}._16jlkb7n{flex-grow:1}
3
+ ._18m915vq{overflow-y:hidden}
4
+ ._1e0c11p5{display:grid}
5
+ ._1e0c1txw{display:flex}
6
+ ._1n261g80{flex-wrap:wrap}
7
+ ._1o9zkb7n{flex-shrink:1}
8
+ ._1q511b66{padding-block-start:var(--ds-space-050,4px)}
9
+ ._1q51v77o{padding-block-start:var(--ds-space-025,2px)}
10
+ ._1q51ze3t{padding-block-start:var(--ds-space-0,0)}
11
+ ._1reo15vq{overflow-x:hidden}
12
+ ._4cvr1h6o{align-items:center}
13
+ ._85i51b66{padding-block-end:var(--ds-space-050,4px)}
14
+ ._85i5v77o{padding-block-end:var(--ds-space-025,2px)}
15
+ ._85i5ze3t{padding-block-end:var(--ds-space-0,0)}
16
+ ._8am5i4x0{-webkit-overflow-scrolling:touch}
17
+ ._bozg12x7{padding-inline-start:var(--ds-space-075,6px)}
18
+ ._i0dlf1ug{flex-basis:0%}
19
+ ._kqswh2mm{position:relative}
20
+ ._y4ti12x7{padding-inline-end:var(--ds-space-075,6px)}
@@ -1,52 +1,12 @@
1
- /* containers.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* value-container.tsx generated by @compiled/babel-plugin v0.39.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
- import "./containers.compiled.css";
3
+ import "./value-container.compiled.css";
4
4
  import * as React from 'react';
5
5
  import { ax, ix } from "@compiled/react/runtime";
6
6
  import { cx } from '@compiled/react';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
8
  import { getStyleProps } from '../../get-style-props';
9
9
 
10
- // ==============================
11
- // Root Container
12
- // ==============================
13
-
14
- // iOS Safari automatically zooms into form inputs on focus when the font size is less than 16px.
15
- // To prevent this zoom behaviour on mobile devices, the select container uses font.body.large (16px) by default,
16
- // then switches to the smaller font.body on screens wider than 30rem (desktop).
17
- // @see: https://medium.com/@rares.popescu/2-ways-to-avoid-the-automatic-zoom-in-on-input-fields-8a71479e542e
18
-
19
- const containerStyles = {
20
- default: "_11c81d4k _kqswh2mm _lcxv1rj4 _1tn2fhey",
21
- rtl: "_1eim1xrj",
22
- disabled: "_80om13gf"
23
- };
24
-
25
- // eslint-disable-next-line @repo/internal/react/require-jsdoc
26
- export const SelectContainer = props => {
27
- const {
28
- children,
29
- innerProps,
30
- isDisabled,
31
- isRtl,
32
- xcss
33
- } = props;
34
- const {
35
- className,
36
- css
37
- } = getStyleProps(props, 'container', {
38
- '--is-disabled': isDisabled,
39
- '--is-rtl': isRtl
40
- });
41
- return /*#__PURE__*/React.createElement("div", _extends({
42
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
43
- className: ax([containerStyles.default, isRtl && containerStyles.rtl, isDisabled && containerStyles.disabled, cx(className, xcss, '-container')])
44
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
45
- ,
46
- style: css
47
- }, innerProps), children);
48
- };
49
-
50
10
  // ==============================
51
11
  // Value Container
52
12
  // ==============================
@@ -92,32 +52,4 @@ export const ValueContainer = props => {
92
52
  ,
93
53
  style: css
94
54
  }, innerProps), children);
95
- };
96
-
97
- // ==============================
98
- // Indicator Container
99
- // ==============================
100
-
101
- const indicatorContainerStyles = null;
102
-
103
- // eslint-disable-next-line @repo/internal/react/require-jsdoc
104
- export const IndicatorsContainer = props => {
105
- const {
106
- children,
107
- innerProps,
108
- xcss
109
- } = props;
110
- const {
111
- css,
112
- className
113
- } = getStyleProps(props, 'indicatorsContainer', {
114
- indicators: true
115
- });
116
- return /*#__PURE__*/React.createElement("div", _extends({
117
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
118
- style: css
119
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
120
- ,
121
- className: ax(["_1e0c1txw _4cvr1h6o _1o9zidpf _1wpz1fhb _y4ti1b66", cx(className, xcss, '-IndicatorsContainer')])
122
- }, innerProps), children);
123
55
  };
@@ -10,6 +10,6 @@ const CreatableSelect = /*#__PURE__*/forwardRef((props, ref) => {
10
10
  ref: ref
11
11
  }, selectProps));
12
12
  });
13
- export { useCreatable };
13
+
14
14
  // eslint-disable-next-line @repo/internal/react/require-jsdoc
15
15
  export default CreatableSelect;
@@ -1,2 +1,2 @@
1
- export { useAsync } from '../async';
1
+ export { default as useAsync } from '../use-async';
2
2
  export { default } from '../async';
@@ -1,2 +1,2 @@
1
- export { useCreatable } from '../creatable';
1
+ export { default as useCreatable } from '../use-creatable';
2
2
  export { default } from '../creatable';
@@ -1,5 +1,3 @@
1
- import { colors } from './colors';
2
- const borderRadius = 4;
3
1
  // Used to calculate consistent margin/padding on elements
4
2
  const baseUnit = 4;
5
3
  // The minimum height of the control
@@ -11,9 +9,4 @@ export const spacing = {
11
9
  controlHeight,
12
10
  menuGutter
13
11
  };
14
- export const defaultTheme = {
15
- borderRadius,
16
- colors,
17
- spacing
18
- };
19
12
  export { colors } from './colors';
package/dist/esm/async.js CHANGED
@@ -14,7 +14,6 @@ var AsyncSelect = /*#__PURE__*/forwardRef(function (props, ref) {
14
14
  ref: ref
15
15
  }, selectProps));
16
16
  });
17
- export { useAsync };
18
17
 
19
18
  // eslint-disable-next-line @repo/internal/react/require-jsdoc
20
19
  export default AsyncSelect;
@@ -0,0 +1,5 @@
1
+ ._1e0c1txw{display:flex}
2
+ ._1o9zidpf{flex-shrink:0}
3
+ ._1wpz1fhb{align-self:stretch}
4
+ ._4cvr1h6o{align-items:center}
5
+ ._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}