@atlaskit/select 19.0.0 → 20.0.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.
Files changed (34) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cjs/CountrySelect.compiled.css +5 -0
  3. package/dist/cjs/CountrySelect.js +17 -24
  4. package/dist/cjs/PopupSelect/PopupSelect.js +5 -3
  5. package/dist/cjs/PopupSelect/components.compiled.css +11 -0
  6. package/dist/cjs/PopupSelect/components.js +37 -48
  7. package/dist/cjs/Select.js +1 -1
  8. package/dist/cjs/components/input-options.compiled.css +28 -0
  9. package/dist/cjs/components/input-options.js +64 -155
  10. package/dist/es2019/CountrySelect.compiled.css +5 -0
  11. package/dist/es2019/CountrySelect.js +14 -26
  12. package/dist/es2019/PopupSelect/PopupSelect.js +6 -3
  13. package/dist/es2019/PopupSelect/components.compiled.css +11 -0
  14. package/dist/es2019/PopupSelect/components.js +32 -50
  15. package/dist/es2019/Select.js +1 -1
  16. package/dist/es2019/components/input-options.compiled.css +28 -0
  17. package/dist/es2019/components/input-options.js +55 -161
  18. package/dist/esm/CountrySelect.compiled.css +5 -0
  19. package/dist/esm/CountrySelect.js +14 -26
  20. package/dist/esm/PopupSelect/PopupSelect.js +5 -3
  21. package/dist/esm/PopupSelect/components.compiled.css +11 -0
  22. package/dist/esm/PopupSelect/components.js +33 -48
  23. package/dist/esm/Select.js +1 -1
  24. package/dist/esm/components/input-options.compiled.css +28 -0
  25. package/dist/esm/components/input-options.js +61 -157
  26. package/dist/types/CountrySelect.d.ts +2 -6
  27. package/dist/types/PopupSelect/PopupSelect.d.ts +4 -8
  28. package/dist/types/PopupSelect/components.d.ts +4 -8
  29. package/dist/types/components/input-options.d.ts +1 -2
  30. package/dist/types-ts4.5/CountrySelect.d.ts +2 -6
  31. package/dist/types-ts4.5/PopupSelect/PopupSelect.d.ts +4 -8
  32. package/dist/types-ts4.5/PopupSelect/components.d.ts +4 -8
  33. package/dist/types-ts4.5/components/input-options.d.ts +1 -2
  34. package/package.json +8 -9
@@ -1,62 +1,17 @@
1
+ /* input-options.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _extends from "@babel/runtime/helpers/extends";
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
- import { useCallback, useState } from 'react';
8
- import { css, jsx } from '@emotion/react';
9
- import { isAppleDevice } from '@atlaskit/ds-lib/device-check';
3
+ import "./input-options.compiled.css";
4
+ import * as React from 'react';
5
+ import { ax, ix } from "@compiled/react/runtime";
6
+ import { useCallback, useMemo, useState } from 'react';
10
7
  import CheckboxIcon from '@atlaskit/icon/glyph/checkbox';
11
8
  import RadioIcon from '@atlaskit/icon/glyph/radio';
12
9
  import PrimitiveSVGIcon from '@atlaskit/icon/svg';
13
10
  import { fg } from '@atlaskit/platform-feature-flags';
14
- import VisuallyHidden from '@atlaskit/visually-hidden';
15
- const getPrimitiveStyles = props => {
16
- const {
17
- cx,
18
- className,
19
- getStyles,
20
- isDisabled,
21
- isFocused,
22
- isSelected
23
- } = props;
24
- const baseStyles = {
25
- alignItems: 'center',
26
- backgroundColor: isFocused ? "var(--ds-background-neutral-subtle-hovered, #091E420F)" : 'transparent',
27
- color: isDisabled ? "var(--ds-text-disabled, inherit)" : 'inherit',
28
- display: 'flex ',
29
- paddingBottom: "var(--ds-space-050, 4px)",
30
- paddingLeft: "var(--ds-space-200, 16px)",
31
- paddingTop: "var(--ds-space-050, 4px)",
32
- // This 'none' needs to be present to ensure that style is not applied when
33
- // the option is selected but not focused.
34
- boxShadow: isFocused ? `inset 2px 0px 0px ${"var(--ds-border-focused, #388BFF)"}` : 'none',
35
- ':active': {
36
- backgroundColor: "var(--ds-background-neutral-subtle-pressed, #091E4224)"
37
- },
38
- '@media screen and (-ms-high-contrast: active)': {
39
- borderLeft: isFocused ? '2px solid transparent' : ''
40
- }
41
- };
42
- const augmentedStyles = css({
43
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
44
- ...getStyles('option', props),
45
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
46
- ...baseStyles
47
- });
48
- const bemClasses = {
49
- option: true,
50
- 'option--is-disabled': isDisabled,
51
- 'option--is-focused': isFocused,
52
- 'option--is-selected': isSelected
53
- };
54
-
55
- // maintain react-select API
56
- return {
57
- styles: augmentedStyles,
58
- classes: cx(bemClasses, className)
59
- };
11
+ const optionStyles = {
12
+ default: "_1e0c1txw _4cvr1h6o _1bsb1osq _uiztglyw _18ql1j7p _vchhusvi _85i51b66 _1q511b66 _bozgpxbi _y4tiutpp _bfhk1j28 _16qs1kw7 _syaz1kw7 _1di61dty",
13
+ focused: "_bfhk166n _16qsn8hf _112e1vrj",
14
+ disabled: "_syaz15gi"
60
15
  };
61
16
 
62
17
  // state of the parent option
@@ -86,48 +41,22 @@ const getPrimaryColor = ({
86
41
 
87
42
  // the secondary color represents the radio dot or checkmark
88
43
  const getSecondaryColor = ({
89
- isActive,
90
44
  isDisabled,
91
45
  isSelected
92
46
  }) => {
93
47
  if (isDisabled && isSelected) {
94
48
  return "var(--ds-text-disabled, #091E424F)";
95
- } else if (isActive && isSelected && !isDisabled) {
96
- return "var(--ds-surface, #FFFFFF)";
97
49
  } else if (!isSelected) {
98
50
  return 'transparent';
99
51
  }
100
52
  return "var(--ds-surface, #FFFFFF)";
101
53
  };
102
-
103
- // the border color surrounds the checkbox/radio
104
- const getBorderColor = ({
105
- isActive,
106
- isDisabled,
107
- isSelected
108
- }) => {
109
- if (isSelected || isActive || isDisabled) {
110
- return 'currentColor';
111
- }
112
- return "var(--ds-border-input, #8590A2)";
54
+ const iconStyles = {
55
+ inherit: "_1u9j1r31 _1gqp1r31",
56
+ default: "_1u9j1elr _1gqp1elr"
113
57
  };
114
- const baseIconStyles = css({
115
- display: 'flex ',
116
- alignItems: 'center',
117
- flexShrink: 0,
118
- paddingInlineEnd: "var(--ds-space-050, 4px)",
119
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-unsafe-selectors
120
- '& svg rect, & svg circle:first-of-type': {
121
- strokeLinejoin: 'round',
122
- strokeWidth: "var(--ds-border-width, 1px)"
123
- }
124
- });
125
- const baseOptionStyles = css({
126
- flexGrow: 1,
127
- overflowX: 'hidden',
128
- textOverflow: 'ellipsis',
129
- whiteSpace: 'nowrap'
130
- });
58
+ const baseIconStyles = null;
59
+ const baseOptionStyles = null;
131
60
 
132
61
  // eslint-disable-next-line @repo/internal/react/no-class-components
133
62
  const ControlOption = props => {
@@ -135,112 +64,78 @@ const ControlOption = props => {
135
64
  const onMouseDown = useCallback(() => setIsActive(true), []);
136
65
  const onMouseUp = useCallback(() => setIsActive(false), []);
137
66
  const {
138
- getStyles,
139
67
  Icon,
140
68
  children,
141
69
  innerProps,
142
70
  innerRef,
143
- ...rest
144
- } = props;
145
- const {
71
+ cx,
72
+ className,
146
73
  isDisabled,
147
74
  isSelected,
148
75
  isFocused
149
76
  } = props;
150
-
151
- // prop assignment
152
- const newProps = {
153
- ...innerProps,
77
+ const classNames = useMemo(() => cx({
78
+ option: true,
79
+ 'option--is-disabled': isDisabled,
80
+ 'option--is-focused': isFocused,
81
+ 'option--is-selected': isSelected
82
+ }, className), [cx, isDisabled, isFocused, isSelected, className]);
83
+ return /*#__PURE__*/React.createElement("div", _extends({
84
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
85
+ className: ax([optionStyles.default, isFocused && optionStyles.focused, isDisabled && optionStyles.disabled, classNames]),
86
+ ref: innerRef,
154
87
  onMouseDown: onMouseDown,
155
88
  onMouseUp: onMouseUp,
156
89
  onMouseLeave: onMouseUp
157
- };
158
- const {
159
- styles,
160
- classes
161
- } = getPrimitiveStyles({
162
- getStyles,
163
- ...rest
164
- });
165
- const isVoiceOver = isAppleDevice() &&
166
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
167
- fg('design_system_select-a11y-improvement');
168
- return (
169
- // These need to remain this way because `react-select` passes props with
170
- // styles inside, and that must be done dynamically.
171
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
172
- jsx("div", _extends({
173
- css: styles,
174
- className: classes,
175
- ref: innerRef
176
- }, newProps), jsx("div", {
177
- css: [baseIconStyles,
178
- // Here we are adding a border to the Checkbox and Radio SVG icons
179
- // This is an a11y fix for Select only for now but it may be rolled
180
- // into the `@atlaskit/icon` package's Checkbox and Radio SVGs later
181
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
182
- {
183
- // This can eventually be changed to static styles that are
184
- // applied conditionally (e.g. `isActive && activeBorderStyles`),
185
- // but considering there are multiple instances of `react-select`
186
- // requiring styles to be generated dynamically, it seemed like a
187
- // low priority.
188
- // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
189
- '& svg rect, & svg circle:first-of-type': {
190
- stroke: getBorderColor({
191
- isActive,
192
- isDisabled,
193
- isSelected
194
- })
195
- }
196
- }]
197
- }, !!Icon ? jsx(Icon, {
198
- label: "",
199
- primaryColor: getPrimaryColor({
200
- isDisabled,
201
- isSelected,
202
- isFocused,
203
- isActive
204
- }),
205
- secondaryColor: getSecondaryColor({
206
- isDisabled,
207
- isSelected,
208
- isActive
209
- }),
210
- isFacadeDisabled: true
211
- }) : null), jsx("div", {
212
- css: baseOptionStyles
213
- }, children, isVoiceOver && (isSelected || isDisabled) && jsx(VisuallyHidden, null, `${isSelected ? ',selected' : ''}${isDisabled ? ',dimmed' : ''}`)))
214
- );
90
+ }, innerProps), /*#__PURE__*/React.createElement("div", {
91
+ className: ax(["_1e0c1txw _4cvr1h6o _1o9zidpf _y4ti1b66 _16cu892t _1xci892t _59qxe4h9 _8y3xe4h9", isSelected || isActive || isDisabled ? iconStyles.inherit : iconStyles.default])
92
+ }, !!Icon ? /*#__PURE__*/React.createElement(Icon, {
93
+ label: "",
94
+ primaryColor: getPrimaryColor({
95
+ isDisabled,
96
+ isSelected,
97
+ isFocused,
98
+ isActive
99
+ }),
100
+ secondaryColor: getSecondaryColor({
101
+ isDisabled,
102
+ isSelected
103
+ }),
104
+ isFacadeDisabled: true
105
+ }) : null), /*#__PURE__*/React.createElement("div", {
106
+ className: ax(["_16jlkb7n _1reo15vq _1bto1l2s _o5721q9c"])
107
+ }, children));
215
108
  };
216
109
  const NewCheckboxIcon = props =>
110
+ /*#__PURE__*/
217
111
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
218
- jsx(PrimitiveSVGIcon, props, jsx("g", {
112
+ React.createElement(PrimitiveSVGIcon, props, /*#__PURE__*/React.createElement("g", {
219
113
  fillRule: "evenodd"
220
- }, jsx("rect", {
114
+ }, /*#__PURE__*/React.createElement("rect", {
221
115
  x: "5.5",
222
116
  y: "5.5",
223
117
  width: "13",
224
118
  height: "13",
225
119
  rx: "1.5",
226
120
  fill: "currentColor"
227
- }), jsx("path", {
121
+ }), /*#__PURE__*/React.createElement("path", {
228
122
  fillRule: "evenodd",
229
123
  clipRule: "evenodd",
230
124
  d: "M16.3262 9.48011L15.1738 8.51984L10.75 13.8284L8.82616 11.5198L7.67383 12.4801L10.1738 15.4801C10.3163 15.6511 10.5274 15.75 10.75 15.75C10.9726 15.75 11.1837 15.6511 11.3262 15.4801L16.3262 9.48011Z",
231
125
  fill: "inherit"
232
126
  })));
233
127
  const NewRadioIcon = props =>
128
+ /*#__PURE__*/
234
129
  // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
235
- jsx(PrimitiveSVGIcon, props, jsx("g", {
130
+ React.createElement(PrimitiveSVGIcon, props, /*#__PURE__*/React.createElement("g", {
236
131
  fillRule: "evenodd"
237
- }, jsx("circle", {
132
+ }, /*#__PURE__*/React.createElement("circle", {
238
133
  cx: "12",
239
134
  cy: "12",
240
135
  r: "6.75",
241
136
  fill: "currentColor",
242
137
  strokeWidth: "1.5"
243
- }), jsx("circle", {
138
+ }), /*#__PURE__*/React.createElement("circle", {
244
139
  cx: "12",
245
140
  cy: "12",
246
141
  r: "3",
@@ -250,9 +145,7 @@ jsx(PrimitiveSVGIcon, props, jsx("g", {
250
145
  /**
251
146
  * __Checkbox option__
252
147
  */
253
- export const CheckboxOption = (props
254
- // ): JSX.Element => <ControlOption<OptionT, true> Icon={CheckboxIcon} {...props} />;
255
- ) => jsx(ControlOption, _extends({
148
+ export const CheckboxOption = props => /*#__PURE__*/React.createElement(ControlOption, _extends({
256
149
  Icon:
257
150
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix, @atlaskit/platform/no-preconditioning
258
151
  fg('platform-visual-refresh-icons') && fg('platform-icon-control-migration') ? NewCheckboxIcon :
@@ -265,9 +158,10 @@ export const CheckboxOption = (props
265
158
  * __Radio option__
266
159
  */
267
160
  export const RadioOption = props =>
161
+ /*#__PURE__*/
268
162
  // TODO https://product-fabric.atlassian.net/browse/DSP-20769
269
163
  // eslint-disable-next-line @atlaskit/design-system/no-legacy-icons, @repo/internal/react/no-unsafe-spread-props
270
- jsx(ControlOption, _extends({
164
+ React.createElement(ControlOption, _extends({
271
165
  Icon:
272
166
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix, @atlaskit/platform/no-preconditioning
273
167
  fg('platform-visual-refresh-icons') && fg('platform-icon-control-migration') ? NewRadioIcon :
@@ -0,0 +1,5 @@
1
+ ._12l2u2gc{margin-inline-end:var(--ds-space-100,8px)}
2
+ ._1e0c1txw{display:flex}
3
+ ._1wyb1cby{font-size:1.125rem}
4
+ ._4cvr1h6o{align-items:center}
5
+ ._vwz4cjiy{line-height:1.2}
@@ -1,40 +1,28 @@
1
+ /* CountrySelect.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _extends from "@babel/runtime/helpers/extends";
2
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
+ import "./CountrySelect.compiled.css";
5
+ import * as React from 'react';
6
+ import { ax, ix } from "@compiled/react/runtime";
3
7
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
8
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
9
  /* eslint-disable @repo/internal/fs/filename-pattern-match */
6
- /**
7
- * @jsxRuntime classic
8
- * @jsx jsx
9
- */
10
- import { css, jsx } from '@emotion/react';
11
- import { fg } from '@atlaskit/platform-feature-flags';
12
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
13
10
 
11
+ import { fg } from '@atlaskit/platform-feature-flags';
14
12
  import { groupedCountries } from './data/countries';
15
13
  import Select from './Select';
16
14
  import { isCountryOptionsGrouped, onCountryOptionFocus } from './utils/country-groups-announcement';
17
15
  // custom option renderer
18
- var labelStyles = css({
19
- display: 'flex',
20
- alignItems: 'center',
21
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
22
- lineHeight: 1.2
23
- });
24
- var flagStyles = css({
25
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
26
- fontSize: '1.125rem',
27
- // emoji size
28
- marginInlineEnd: "var(--ds-space-100, 8px)"
29
- });
16
+ var labelStyles = null;
17
+ var flagStyles = null;
30
18
  var Opt = function Opt(_ref) {
31
19
  var children = _ref.children,
32
20
  icon = _ref.icon;
33
- return jsx("div", {
34
- css: labelStyles
35
- }, jsx("span", {
21
+ return /*#__PURE__*/React.createElement("div", {
22
+ className: ax(["_1e0c1txw _4cvr1h6o _vwz4cjiy"])
23
+ }, /*#__PURE__*/React.createElement("span", {
36
24
  "aria-hidden": "true",
37
- css: flagStyles
25
+ className: ax(["_1wyb1cby _12l2u2gc"])
38
26
  }, icon), children);
39
27
  };
40
28
 
@@ -53,7 +41,7 @@ var getOptionValue = function getOptionValue(opt) {
53
41
 
54
42
  // the text node of the control
55
43
  var controlLabel = function controlLabel(opt) {
56
- return jsx(Opt, {
44
+ return /*#__PURE__*/React.createElement(Opt, {
57
45
  icon: opt.icon
58
46
  }, opt.abbr.toUpperCase());
59
47
  };
@@ -63,7 +51,7 @@ var optionLabel = function optionLabel(_ref3) {
63
51
  code = _ref3.code,
64
52
  icon = _ref3.icon,
65
53
  name = _ref3.name;
66
- return jsx(Opt, {
54
+ return /*#__PURE__*/React.createElement(Opt, {
67
55
  icon: icon
68
56
  }, getOptionLabel({
69
57
  abbr: abbr,
@@ -83,7 +71,7 @@ var CountrySelect = function CountrySelect(props) {
83
71
  var ariaLiveMessages = props.ariaLiveMessages,
84
72
  options = props.options;
85
73
  var countryOptions = options || groupedCountries;
86
- return jsx(Select, _extends({
74
+ return /*#__PURE__*/React.createElement(Select, _extends({
87
75
  isClearable: false,
88
76
  formatOptionLabel: formatOptionLabel,
89
77
  getOptionLabel: getOptionLabel,
@@ -396,12 +396,14 @@ var PopupSelect = /*#__PURE__*/function (_PureComponent) {
396
396
  ref = _ref2.ref,
397
397
  style = _ref2.style;
398
398
  return /*#__PURE__*/React.createElement(MenuDialog
399
+ // There is not a limited amount of values for the widths, so they need to remain dynamic.
399
400
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
400
401
  , {
401
- style: style,
402
+ style: _objectSpread(_objectSpread({}, style), {}, {
403
+ maxWidth: maxMenuWidth,
404
+ minWidth: minMenuWidth
405
+ }),
402
406
  "data-placement": placement,
403
- minWidth: minMenuWidth,
404
- maxWidth: maxMenuWidth,
405
407
  id: id,
406
408
  testId: testId,
407
409
  ref: _this.resolveMenuRef(ref)
@@ -0,0 +1,11 @@
1
+
2
+ ._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}._12l2v77o{margin-inline-end:var(--ds-space-025,2px)}
3
+ ._16qsu838{box-shadow:var(--_z6sjud)}
4
+ ._1bsbzwfg{width:2pc}
5
+ ._1pby16oo{z-index:510}
6
+ ._1q51u2gc{padding-block-start:var(--ds-space-100,8px)}
7
+ ._85i51b66{padding-block-end:var(--ds-space-050,4px)}
8
+ ._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
9
+ ._bozgu2gc{padding-inline-start:var(--ds-space-100,8px)}
10
+ ._y3gn1h6o{text-align:center}
11
+ ._y4tiu2gc{padding-inline-end:var(--ds-space-100,8px)}
@@ -1,14 +1,14 @@
1
+ /* components.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _extends from "@babel/runtime/helpers/extends";
2
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
5
  var _excluded = ["innerRef", "innerProps"];
4
- /**
5
- * @jsxRuntime classic
6
- * @jsx jsx
7
- */
6
+ import "./components.compiled.css";
7
+ import * as React from 'react';
8
+ import { ax, ix } from "@compiled/react/runtime";
9
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
10
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
8
11
  import { forwardRef } from 'react';
9
-
10
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
- import { css, jsx } from '@emotion/react';
12
12
  import SearchIcon from '@atlaskit/icon/core/migration/search--editor-search';
13
13
  import { components } from '@atlaskit/react-select';
14
14
  import { N40A } from '@atlaskit/theme/colors';
@@ -19,40 +19,25 @@ import VisuallyHidden from '@atlaskit/visually-hidden';
19
19
  // Styled Components
20
20
  // ==============================
21
21
 
22
- var menuDialogStyles = css({
23
- zIndex: layers.modal(),
24
- backgroundColor: "var(--ds-surface-overlay, white)",
25
- borderRadius: "var(--ds-border-radius-100, 4px)",
26
- boxShadow: "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(N40A, ", 0 4px 11px ").concat(N40A), ")")
27
- });
22
+ var menuDialogStyles = null;
28
23
 
29
24
  /**
30
25
  * __Menu dialog__
31
26
  * Wrapper for PopupSelect component.
32
- *
33
27
  */
34
28
  export var MenuDialog = /*#__PURE__*/forwardRef(function (_ref, ref) {
35
- var maxWidth = _ref.maxWidth,
36
- minWidth = _ref.minWidth,
37
- children = _ref.children,
29
+ var children = _ref.children,
38
30
  id = _ref.id,
39
31
  style = _ref.style,
40
32
  testId = _ref.testId;
41
- return jsx("div", {
33
+ return /*#__PURE__*/React.createElement("div", {
42
34
  ref: ref,
43
- css: [menuDialogStyles,
44
- // There is not a limited amount of values for the widths, so they need
45
- // to remain dynamic.
46
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
47
- {
48
- maxWidth: maxWidth,
49
- minWidth: minWidth
50
- }]
51
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
52
- ,
53
- style: style,
54
35
  id: id,
55
- "data-testid": testId && "".concat(testId, "--menu")
36
+ "data-testid": testId && "".concat(testId, "--menu"),
37
+ className: ax(["_2rkoiti9 _1pby16oo _bfhk1bhr _16qsu838"]),
38
+ style: _objectSpread(_objectSpread({}, style), {}, {
39
+ "--_z6sjud": ix("var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(N40A, ", 0 4px 11px ").concat(N40A), ")"))
40
+ })
56
41
  }, children);
57
42
  });
58
43
 
@@ -60,30 +45,24 @@ export var MenuDialog = /*#__PURE__*/forwardRef(function (_ref, ref) {
60
45
  // Custom Components
61
46
  // ==============================
62
47
 
63
- var dropdownStyles = css({
64
- width: 32,
65
- marginInlineEnd: "var(--ds-space-025, 2px)",
66
- textAlign: 'center'
67
- });
48
+ var dropdownStyles = null;
68
49
  var DropdownIndicator = function DropdownIndicator() {
69
- return jsx("div", {
70
- css: dropdownStyles
71
- }, jsx(SearchIcon, {
50
+ return /*#__PURE__*/React.createElement("div", {
51
+ className: ax(["_1bsbzwfg _12l2v77o _y3gn1h6o"])
52
+ }, /*#__PURE__*/React.createElement(SearchIcon, {
72
53
  color: "currentColor",
73
54
  label: ""
74
55
  }));
75
56
  };
76
- var controlStyles = css({
77
- padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-050, 4px)")
78
- });
57
+ var controlStyles = null;
79
58
  var Control = function Control(_ref2) {
80
59
  var innerRef = _ref2.innerRef,
81
60
  innerProps = _ref2.innerProps,
82
61
  props = _objectWithoutProperties(_ref2, _excluded);
83
- return jsx("div", {
62
+ return /*#__PURE__*/React.createElement("div", {
84
63
  ref: innerRef,
85
- css: controlStyles
86
- }, jsx(components.Control, _extends({}, props, {
64
+ className: ax(["_85i51b66 _1q51u2gc _y4tiu2gc _bozgu2gc"])
65
+ }, /*#__PURE__*/React.createElement(components.Control, _extends({}, props, {
87
66
  innerProps: innerProps
88
67
  })));
89
68
  };
@@ -93,20 +72,26 @@ var Control = function Control(_ref2) {
93
72
  * Overrides the default DummyControl component in Select.
94
73
  */
95
74
  export var DummyControl = function DummyControl(props) {
96
- return jsx(VisuallyHidden, null, jsx(components.Control, props));
75
+ return /*#__PURE__*/React.createElement(VisuallyHidden, null, /*#__PURE__*/React.createElement(components.Control, props));
97
76
  };
98
77
 
99
78
  // NOTE `props` intentionally omitted from `Fragment`
100
79
  var Menu = function Menu(_ref3) {
101
80
  var children = _ref3.children,
102
81
  innerProps = _ref3.innerProps;
103
- return jsx("div", innerProps, children);
82
+ return /*#__PURE__*/React.createElement("div", innerProps, children);
104
83
  };
84
+
85
+ // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
105
86
  var ClearIndicator = function ClearIndicator(props) {
106
- return jsx(components.ClearIndicator, props);
87
+ return /*#__PURE__*/React.createElement(components.ClearIndicator, props);
107
88
  };
108
89
  var MultiValueRemove = function MultiValueRemove(props) {
109
- return jsx(components.MultiValueRemove, props);
90
+ return (
91
+ /*#__PURE__*/
92
+ // eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
93
+ React.createElement(components.MultiValueRemove, props)
94
+ );
110
95
  };
111
96
  export var defaultComponents = {
112
97
  Control: Control,
@@ -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 = "19.0.0";
6
+ var packageVersion = "20.0.0";
7
7
  export var SelectWithoutAnalytics = createSelect(AsyncSelect);
8
8
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
9
9
  var Select = withAnalyticsContext({
@@ -0,0 +1,28 @@
1
+ ._16cu892t svg circle:first-of-type, ._1xci892t svg rect{stroke-linejoin:round}
2
+ ._16jlkb7n{flex-grow:1}
3
+ ._16qs1kw7{box-shadow:inherit}
4
+ ._16qsn8hf{box-shadow:inset 2px 0 0 var(--ds-border-focused,#388bff)}
5
+ ._18ql1j7p{-webkit-tap-highlight-color:rgba(0,0,0,0)}
6
+ ._1bsb1osq{width:100%}
7
+ ._1bto1l2s{text-overflow:ellipsis}
8
+ ._1e0c1txw{display:flex}
9
+ ._1o9zidpf{flex-shrink:0}
10
+ ._1q511b66{padding-block-start:var(--ds-space-050,4px)}
11
+ ._1reo15vq{overflow-x:hidden}
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}
14
+ ._4cvr1h6o{align-items:center}
15
+ ._59qxe4h9 svg circle:first-of-type, ._8y3xe4h9 svg rect{stroke-width:var(--ds-border-width,1px)}
16
+ ._85i51b66{padding-block-end:var(--ds-space-050,4px)}
17
+ ._bfhk166n{background-color:var(--ds-background-neutral-subtle-hovered,#091e420f)}
18
+ ._bfhk1j28{background-color:transparent}
19
+ ._bozgpxbi{padding-inline-start:var(--ds-space-200,1pc)}
20
+ ._o5721q9c{white-space:nowrap}
21
+ ._syaz15gi{color:var(--ds-text-disabled,inherit)}
22
+ ._syaz1kw7{color:inherit}
23
+ ._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
24
+ ._vchhusvi{box-sizing:border-box}
25
+ ._y4ti1b66{padding-inline-end:var(--ds-space-050,4px)}
26
+ ._y4tiutpp{padding-inline-end:var(--ds-space-150,9pt)}
27
+ ._1di61dty:active{background-color:var(--ds-background-neutral-subtle-pressed,#091e4224)}
28
+ @media screen and (-ms-high-contrast:active){._112e1vrj{border-inline-start:2px solid transparent}}