@atlaskit/react-select 2.7.5 → 3.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.
- package/CHANGELOG.md +34 -0
- package/dist/cjs/components/containers.js +6 -7
- package/dist/cjs/components/control.js +2 -4
- package/dist/cjs/components/group.js +4 -6
- package/dist/cjs/components/indicators.js +6 -8
- package/dist/cjs/components/input.js +2 -4
- package/dist/cjs/components/internal/a11y-text.js +1 -3
- package/dist/cjs/components/internal/dummy-input.js +1 -3
- package/dist/cjs/components/internal/required-input.js +1 -3
- package/dist/cjs/components/live-region.js +1 -3
- package/dist/cjs/components/menu.js +9 -11
- package/dist/cjs/components/multi-value.js +7 -12
- package/dist/cjs/components/option.js +2 -4
- package/dist/cjs/components/placeholder.js +2 -4
- package/dist/cjs/components/single-value.js +2 -4
- package/dist/cjs/emotion/components/containers.js +7 -3
- package/dist/cjs/emotion/components/menu.js +5 -2
- package/dist/cjs/select.js +1 -1
- package/dist/es2019/components/containers.js +6 -7
- package/dist/es2019/components/control.js +2 -4
- package/dist/es2019/components/group.js +4 -6
- package/dist/es2019/components/indicators.js +6 -8
- package/dist/es2019/components/input.js +2 -4
- package/dist/es2019/components/internal/a11y-text.js +1 -3
- package/dist/es2019/components/internal/dummy-input.js +1 -3
- package/dist/es2019/components/internal/required-input.js +1 -3
- package/dist/es2019/components/live-region.js +1 -3
- package/dist/es2019/components/menu.js +9 -11
- package/dist/es2019/components/multi-value.js +7 -12
- package/dist/es2019/components/option.js +2 -4
- package/dist/es2019/components/placeholder.js +2 -4
- package/dist/es2019/components/single-value.js +2 -4
- package/dist/es2019/emotion/components/containers.js +7 -3
- package/dist/es2019/emotion/components/menu.js +5 -2
- package/dist/es2019/select.js +1 -1
- package/dist/esm/components/containers.js +6 -7
- package/dist/esm/components/control.js +2 -4
- package/dist/esm/components/group.js +4 -6
- package/dist/esm/components/indicators.js +6 -8
- package/dist/esm/components/input.js +2 -4
- package/dist/esm/components/internal/a11y-text.js +1 -3
- package/dist/esm/components/internal/dummy-input.js +1 -3
- package/dist/esm/components/internal/required-input.js +1 -3
- package/dist/esm/components/live-region.js +1 -3
- package/dist/esm/components/menu.js +9 -11
- package/dist/esm/components/multi-value.js +7 -12
- package/dist/esm/components/option.js +2 -4
- package/dist/esm/components/placeholder.js +2 -4
- package/dist/esm/components/single-value.js +2 -4
- package/dist/esm/emotion/components/containers.js +7 -3
- package/dist/esm/emotion/components/menu.js +5 -2
- package/dist/esm/select.js +1 -1
- package/dist/types/select.d.ts +2 -4
- package/dist/types-ts4.5/select.d.ts +2 -4
- package/package.json +2 -2
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/no-unsafe-spread-props */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { ClearIndicator as CompiledClearIndicator, clearIndicatorCSS as compiledClearIndicatorCSS, DropdownIndicator as CompiledDropdownIndicator, dropdownIndicatorCSS as compiledDropdownIndicatorCSS, LoadingIndicator as CompiledLoadingIndicator, loadingIndicatorCSS as compiledLoadingIndicatorCSS } from '../compiled/components/indicators';
|
|
5
|
-
import { ClearIndicator as EmotionClearIndicator, clearIndicatorCSS as emotionClearIndicatorCSS, DropdownIndicator as EmotionDropdownIndicator, dropdownIndicatorCSS as emotionDropdownIndicatorCSS, LoadingIndicator as EmotionLoadingIndicator, loadingIndicatorCSS as emotionLoadingIndicatorCSS } from '../emotion/components/indicators';
|
|
6
4
|
|
|
7
5
|
// ==============================
|
|
8
6
|
// Dropdown & Clear Buttons
|
|
9
7
|
// ==============================
|
|
10
8
|
|
|
11
|
-
export const dropdownIndicatorCSS = props =>
|
|
9
|
+
export const dropdownIndicatorCSS = props => compiledDropdownIndicatorCSS();
|
|
12
10
|
|
|
13
11
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
14
|
-
export const DropdownIndicator = props =>
|
|
15
|
-
export const clearIndicatorCSS = props =>
|
|
12
|
+
export const DropdownIndicator = props => /*#__PURE__*/React.createElement(CompiledDropdownIndicator, props);
|
|
13
|
+
export const clearIndicatorCSS = props => compiledClearIndicatorCSS();
|
|
16
14
|
|
|
17
15
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
18
|
-
export const ClearIndicator = props =>
|
|
16
|
+
export const ClearIndicator = props => /*#__PURE__*/React.createElement(CompiledClearIndicator, props);
|
|
19
17
|
|
|
20
18
|
// ==============================
|
|
21
19
|
// Loading
|
|
22
20
|
// ==============================
|
|
23
21
|
|
|
24
|
-
export const loadingIndicatorCSS = props =>
|
|
22
|
+
export const loadingIndicatorCSS = props => compiledLoadingIndicatorCSS();
|
|
25
23
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
26
|
-
export const LoadingIndicator = props =>
|
|
24
|
+
export const LoadingIndicator = props => /*#__PURE__*/React.createElement(CompiledLoadingIndicator, props);
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/no-unsafe-spread-props */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import Compiled, { inputCSS as compiledInputCSS } from '../compiled/components/input';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const Input = props => fg('compiled-react-select') ? /*#__PURE__*/React.createElement(Compiled, props) : /*#__PURE__*/React.createElement(Emotion, props);
|
|
4
|
+
export const inputCSS = props => compiledInputCSS();
|
|
5
|
+
const Input = props => /*#__PURE__*/React.createElement(Compiled, props);
|
|
8
6
|
|
|
9
7
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
10
8
|
export default Input;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/no-unsafe-spread-props */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import Compiled from '../../compiled/components/internal/a11y-text';
|
|
5
|
-
|
|
6
|
-
const A11yText = props => fg('compiled-react-select') ? /*#__PURE__*/React.createElement(Compiled, props) : /*#__PURE__*/React.createElement(Emotion, props);
|
|
4
|
+
const A11yText = props => /*#__PURE__*/React.createElement(Compiled, props);
|
|
7
5
|
export default A11yText;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/no-unsafe-spread-props */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import Compiled from '../../compiled/components/internal/dummy-input';
|
|
5
|
-
import Emotion from '../../emotion/components/internal/dummy-input';
|
|
6
4
|
export default function DummyInput(props) {
|
|
7
|
-
return
|
|
5
|
+
return /*#__PURE__*/React.createElement(Compiled, props);
|
|
8
6
|
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/no-unsafe-spread-props */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import Compiled from '../../compiled/components/internal/required-input';
|
|
5
|
-
|
|
6
|
-
const RequiredInput = props => fg('compiled-react-select') ? /*#__PURE__*/React.createElement(Compiled, props) : /*#__PURE__*/React.createElement(Emotion, props);
|
|
4
|
+
const RequiredInput = props => /*#__PURE__*/React.createElement(Compiled, props);
|
|
7
5
|
|
|
8
6
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
9
7
|
export default RequiredInput;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/no-unsafe-spread-props */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import Compiled from '../compiled/components/live-region';
|
|
5
|
-
import Emotion from '../emotion/components/live-region';
|
|
6
4
|
|
|
7
5
|
// ==============================
|
|
8
6
|
// Root Container
|
|
9
7
|
// ==============================
|
|
10
8
|
|
|
11
|
-
const LiveRegion = props =>
|
|
9
|
+
const LiveRegion = props => /*#__PURE__*/React.createElement(Compiled, props);
|
|
12
10
|
|
|
13
11
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
14
12
|
export default LiveRegion;
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/no-unsafe-spread-props */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import Compiled, { LoadingMessage as CompiledLoadingMessage, menuCSS as compiledMenuCSS, MenuList as CompiledMenuList, menuListCSS as compiledMenuListCSS, MenuPlacer as CompiledMenuPlacer, MenuPortal as CompiledMenuPortal, menuPortalCSS as compiledMenuPortalCSS, NoOptionsMessage as CompiledNoOptionsMessage } from '../compiled/components/menu';
|
|
5
|
-
import Emotion, { LoadingMessage as EmotionLoadingMessage, menuCSS as emotionMenuCSS, MenuList as EmotionMenuList, menuListCSS as emotionMenuListCSS, MenuPlacer as EmotionMenuPlacer, MenuPortal as EmotionMenuPortal, menuPortalCSS as emotionMenuPortalCSS, NoOptionsMessage as EmotionNoOptionsMessage } from '../emotion/components/menu';
|
|
6
4
|
|
|
7
5
|
// Menu Component
|
|
8
6
|
// ------------------------------
|
|
9
7
|
|
|
10
|
-
export const menuCSS = props =>
|
|
8
|
+
export const menuCSS = props => compiledMenuCSS();
|
|
11
9
|
|
|
12
10
|
// NOTE: internal only
|
|
13
11
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
14
|
-
export const MenuPlacer = props =>
|
|
15
|
-
const Menu = props =>
|
|
12
|
+
export const MenuPlacer = props => /*#__PURE__*/React.createElement(CompiledMenuPlacer, props);
|
|
13
|
+
const Menu = props => /*#__PURE__*/React.createElement(Compiled, props);
|
|
16
14
|
|
|
17
15
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
18
16
|
export default Menu;
|
|
@@ -21,10 +19,10 @@ export default Menu;
|
|
|
21
19
|
// Menu List
|
|
22
20
|
// ==============================
|
|
23
21
|
|
|
24
|
-
export const menuListCSS = props =>
|
|
22
|
+
export const menuListCSS = props => compiledMenuListCSS();
|
|
25
23
|
|
|
26
24
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
27
|
-
export const MenuList = props =>
|
|
25
|
+
export const MenuList = props => /*#__PURE__*/React.createElement(CompiledMenuList, props);
|
|
28
26
|
|
|
29
27
|
// ==============================
|
|
30
28
|
// Menu Notices
|
|
@@ -37,16 +35,16 @@ const noticeCSS = ({}) => ({
|
|
|
37
35
|
export const noOptionsMessageCSS = noticeCSS;
|
|
38
36
|
export const loadingMessageCSS = noticeCSS;
|
|
39
37
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
40
|
-
export const NoOptionsMessage = props =>
|
|
38
|
+
export const NoOptionsMessage = props => /*#__PURE__*/React.createElement(CompiledNoOptionsMessage, props);
|
|
41
39
|
|
|
42
40
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
43
|
-
export const LoadingMessage = props =>
|
|
41
|
+
export const LoadingMessage = props => /*#__PURE__*/React.createElement(CompiledLoadingMessage, props);
|
|
44
42
|
|
|
45
43
|
// ==============================
|
|
46
44
|
// Menu Portal
|
|
47
45
|
// ==============================
|
|
48
46
|
|
|
49
|
-
export const menuPortalCSS = props =>
|
|
47
|
+
export const menuPortalCSS = props => compiledMenuPortalCSS();
|
|
50
48
|
|
|
51
49
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
52
|
-
export const MenuPortal = props =>
|
|
50
|
+
export const MenuPortal = props => /*#__PURE__*/React.createElement(CompiledMenuPortal, props);
|
|
@@ -1,23 +1,18 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/no-unsafe-spread-props */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import Compiled, { MultiValueContainer as CompiledMultiValueContainer, multiValueCSS as CompiledMultiValueCSS, MultiValueLabel as CompiledMultiValueLabel, multiValueLabelCSS as CompiledMultiValueLabelCSS, MultiValueRemove as CompiledMultiValueRemove, multiValueRemoveCSS as CompiledMultiValueRemoveCSS } from '../compiled/components/multi-value';
|
|
5
|
-
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
8
|
-
export const multiValueRemoveCSS = props => fg('compiled-react-select') ? CompiledMultiValueRemoveCSS() : EmotionMultiValueRemoveCSS(props);
|
|
4
|
+
export const multiValueCSS = props => CompiledMultiValueCSS();
|
|
5
|
+
export const multiValueLabelCSS = props => CompiledMultiValueLabelCSS();
|
|
6
|
+
export const multiValueRemoveCSS = props => CompiledMultiValueRemoveCSS();
|
|
9
7
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
10
|
-
export const MultiValueContainer = props =>
|
|
8
|
+
export const MultiValueContainer = props => /*#__PURE__*/React.createElement(CompiledMultiValueContainer, props);
|
|
11
9
|
|
|
12
10
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
13
|
-
export const MultiValueLabel = props =>
|
|
11
|
+
export const MultiValueLabel = props => /*#__PURE__*/React.createElement(CompiledMultiValueLabel, props);
|
|
14
12
|
export function MultiValueRemove(props) {
|
|
15
|
-
return (
|
|
16
|
-
// The Remove button is intentionally excluded from the tab order, please avoid assigning a non-negative tabIndex to it. Context: https://hello.atlassian.net/wiki/spaces/A11YKB/pages/3031993460/Clear+Options+on+an+Input+Field
|
|
17
|
-
fg('compiled-react-select') ? /*#__PURE__*/React.createElement(CompiledMultiValueRemove, props) : /*#__PURE__*/React.createElement(EmotionMultiValueRemove, props)
|
|
18
|
-
);
|
|
13
|
+
return /*#__PURE__*/React.createElement(CompiledMultiValueRemove, props);
|
|
19
14
|
}
|
|
20
|
-
const MultiValue = props =>
|
|
15
|
+
const MultiValue = props => /*#__PURE__*/React.createElement(Compiled, props);
|
|
21
16
|
|
|
22
17
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
23
18
|
export default MultiValue;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/no-unsafe-spread-props */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import CompiledOption, { optionCSS as compiledOptionCSS } from '../compiled/components/option';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const Option = props => fg('compiled-react-select') ? /*#__PURE__*/React.createElement(CompiledOption, props) : /*#__PURE__*/React.createElement(EmotionOption, props);
|
|
4
|
+
export const optionCSS = props => compiledOptionCSS();
|
|
5
|
+
const Option = props => /*#__PURE__*/React.createElement(CompiledOption, props);
|
|
8
6
|
|
|
9
7
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
10
8
|
export default Option;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/no-unsafe-spread-props */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import Compiled, { placeholderCSS as compiledPlaceholderCSS } from '../compiled/components/placeholder';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const Placeholder = props => fg('compiled-react-select') ? /*#__PURE__*/React.createElement(Compiled, props) : /*#__PURE__*/React.createElement(Emotion, props);
|
|
4
|
+
export const placeholderCSS = props => compiledPlaceholderCSS();
|
|
5
|
+
const Placeholder = props => /*#__PURE__*/React.createElement(Compiled, props);
|
|
8
6
|
|
|
9
7
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
10
8
|
export default Placeholder;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/no-unsafe-spread-props */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import Compiled, { css as compiledCSS } from '../compiled/components/single-value';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const SingleValue = props => fg('compiled-react-select') ? /*#__PURE__*/React.createElement(Compiled, props) : /*#__PURE__*/React.createElement(Emotion, props);
|
|
4
|
+
export const css = props => compiledCSS();
|
|
5
|
+
const SingleValue = props => /*#__PURE__*/React.createElement(Compiled, props);
|
|
8
6
|
|
|
9
7
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
10
8
|
export default SingleValue;
|
|
@@ -37,10 +37,14 @@ export const SelectContainer = props => {
|
|
|
37
37
|
isDisabled,
|
|
38
38
|
isRtl
|
|
39
39
|
} = props;
|
|
40
|
-
|
|
40
|
+
const styles = getStyleProps(props, 'container', {
|
|
41
41
|
'--is-disabled': isDisabled,
|
|
42
42
|
'--is-rtl': isRtl
|
|
43
|
-
})
|
|
43
|
+
});
|
|
44
|
+
return jsx("div", _extends({}, styles, {
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
46
|
+
className: styles.className || '-container'
|
|
47
|
+
}, innerProps), children);
|
|
44
48
|
};
|
|
45
49
|
|
|
46
50
|
// ==============================
|
|
@@ -82,7 +86,7 @@ export const ValueContainer = props => {
|
|
|
82
86
|
css: styles.css
|
|
83
87
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
84
88
|
,
|
|
85
|
-
className: styles.className || '
|
|
89
|
+
className: styles.className || '-ValueContainer'
|
|
86
90
|
}, innerProps), children);
|
|
87
91
|
};
|
|
88
92
|
|
|
@@ -263,9 +263,12 @@ const Menu = props => {
|
|
|
263
263
|
innerRef,
|
|
264
264
|
innerProps
|
|
265
265
|
} = props;
|
|
266
|
-
|
|
266
|
+
const styles = getStyleProps(props, 'menu', {
|
|
267
267
|
menu: true
|
|
268
|
-
})
|
|
268
|
+
});
|
|
269
|
+
return jsx("div", _extends({}, styles, {
|
|
270
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
271
|
+
className: styles.className || '-menu',
|
|
269
272
|
ref: innerRef
|
|
270
273
|
}, innerProps), children);
|
|
271
274
|
};
|
package/dist/es2019/select.js
CHANGED
|
@@ -378,7 +378,7 @@ export default class Select extends Component {
|
|
|
378
378
|
if (!custom) {
|
|
379
379
|
return base;
|
|
380
380
|
}
|
|
381
|
-
const customStyles =
|
|
381
|
+
const customStyles = filterUnsupportedSelectors(custom(base, props));
|
|
382
382
|
return customStyles;
|
|
383
383
|
});
|
|
384
384
|
_defineProperty(this, "getClassNames", (key, props) => {
|
|
@@ -2,19 +2,18 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
4
|
import { containerCSS as compiledCSS, IndicatorsContainer as CompiledIndicatorsContainer, indicatorsContainerCSS as compiledIndicatorsContainerCSS, SelectContainer as CompiledSelectContainer, ValueContainer as CompiledValueContainer, valueContainerCSS as compiledValueContainerCSS } from '../compiled/components/containers';
|
|
5
|
-
import { containerCSS as emotionCSS, IndicatorsContainer as EmotionIndicatorsContainer, indicatorsContainerCSS as emotionIndicatorsContainerCSS, SelectContainer as EmotionSelectContainer, ValueContainer as EmotionValueContainer, valueContainerCSS as emotionValueContainerCSS } from '../emotion/components/containers';
|
|
6
5
|
|
|
7
6
|
// ==============================
|
|
8
7
|
// Root Container
|
|
9
8
|
// ==============================
|
|
10
9
|
|
|
11
10
|
export var containerCSS = function containerCSS(props) {
|
|
12
|
-
return
|
|
11
|
+
return compiledCSS();
|
|
13
12
|
};
|
|
14
13
|
|
|
15
14
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
16
15
|
export var SelectContainer = function SelectContainer(props) {
|
|
17
|
-
return fg('compiled-react-select') ? /*#__PURE__*/React.createElement(CompiledSelectContainer, props) : /*#__PURE__*/React.createElement(
|
|
16
|
+
return fg('compiled-react-select') ? /*#__PURE__*/React.createElement(CompiledSelectContainer, props) : /*#__PURE__*/React.createElement(CompiledSelectContainer, props);
|
|
18
17
|
};
|
|
19
18
|
|
|
20
19
|
// ==============================
|
|
@@ -22,12 +21,12 @@ export var SelectContainer = function SelectContainer(props) {
|
|
|
22
21
|
// ==============================
|
|
23
22
|
|
|
24
23
|
export var valueContainerCSS = function valueContainerCSS(props) {
|
|
25
|
-
return
|
|
24
|
+
return compiledValueContainerCSS();
|
|
26
25
|
};
|
|
27
26
|
|
|
28
27
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
29
28
|
export var ValueContainer = function ValueContainer(props) {
|
|
30
|
-
return
|
|
29
|
+
return /*#__PURE__*/React.createElement(CompiledValueContainer, props);
|
|
31
30
|
};
|
|
32
31
|
|
|
33
32
|
// ==============================
|
|
@@ -35,10 +34,10 @@ export var ValueContainer = function ValueContainer(props) {
|
|
|
35
34
|
// ==============================
|
|
36
35
|
|
|
37
36
|
export var indicatorsContainerCSS = function indicatorsContainerCSS() {
|
|
38
|
-
return
|
|
37
|
+
return compiledIndicatorsContainerCSS();
|
|
39
38
|
};
|
|
40
39
|
|
|
41
40
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
42
41
|
export var IndicatorsContainer = function IndicatorsContainer(props) {
|
|
43
|
-
return
|
|
42
|
+
return /*#__PURE__*/React.createElement(CompiledIndicatorsContainer, props);
|
|
44
43
|
};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/no-unsafe-spread-props */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import Compiled, { css as compiledCSS } from '../compiled/components/control';
|
|
5
|
-
import Emotion, { css as emotionCSS } from '../emotion/components/control';
|
|
6
4
|
export var css = function css(props) {
|
|
7
|
-
return
|
|
5
|
+
return compiledCSS();
|
|
8
6
|
};
|
|
9
7
|
var Control = function Control(props) {
|
|
10
|
-
return
|
|
8
|
+
return /*#__PURE__*/React.createElement(Compiled, props);
|
|
11
9
|
};
|
|
12
10
|
|
|
13
11
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/no-unsafe-spread-props */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import Compiled, { groupCSS as compiledGroupCSS, GroupHeading as CompiledGroupHeading, groupHeadingCSS as compiledGroupHeadingCSS } from '../compiled/components/group';
|
|
5
|
-
import Emotion, { groupCSS as emotionGroupCSS, GroupHeading as EmotionGroupHeading, groupHeadingCSS as emotionGroupHeadingCSS } from '../emotion/components/group';
|
|
6
4
|
export var groupCSS = function groupCSS(props) {
|
|
7
|
-
return
|
|
5
|
+
return compiledGroupCSS();
|
|
8
6
|
};
|
|
9
7
|
var Group = function Group(props) {
|
|
10
|
-
return
|
|
8
|
+
return /*#__PURE__*/React.createElement(Compiled, props);
|
|
11
9
|
};
|
|
12
10
|
export var groupHeadingCSS = function groupHeadingCSS(props) {
|
|
13
|
-
return
|
|
11
|
+
return compiledGroupHeadingCSS();
|
|
14
12
|
};
|
|
15
13
|
|
|
16
14
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
17
15
|
export var GroupHeading = function GroupHeading(props) {
|
|
18
|
-
return
|
|
16
|
+
return /*#__PURE__*/React.createElement(CompiledGroupHeading, props);
|
|
19
17
|
};
|
|
20
18
|
|
|
21
19
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/no-unsafe-spread-props */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { ClearIndicator as CompiledClearIndicator, clearIndicatorCSS as compiledClearIndicatorCSS, DropdownIndicator as CompiledDropdownIndicator, dropdownIndicatorCSS as compiledDropdownIndicatorCSS, LoadingIndicator as CompiledLoadingIndicator, loadingIndicatorCSS as compiledLoadingIndicatorCSS } from '../compiled/components/indicators';
|
|
5
|
-
import { ClearIndicator as EmotionClearIndicator, clearIndicatorCSS as emotionClearIndicatorCSS, DropdownIndicator as EmotionDropdownIndicator, dropdownIndicatorCSS as emotionDropdownIndicatorCSS, LoadingIndicator as EmotionLoadingIndicator, loadingIndicatorCSS as emotionLoadingIndicatorCSS } from '../emotion/components/indicators';
|
|
6
4
|
|
|
7
5
|
// ==============================
|
|
8
6
|
// Dropdown & Clear Buttons
|
|
9
7
|
// ==============================
|
|
10
8
|
|
|
11
9
|
export var dropdownIndicatorCSS = function dropdownIndicatorCSS(props) {
|
|
12
|
-
return
|
|
10
|
+
return compiledDropdownIndicatorCSS();
|
|
13
11
|
};
|
|
14
12
|
|
|
15
13
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
16
14
|
export var DropdownIndicator = function DropdownIndicator(props) {
|
|
17
|
-
return
|
|
15
|
+
return /*#__PURE__*/React.createElement(CompiledDropdownIndicator, props);
|
|
18
16
|
};
|
|
19
17
|
export var clearIndicatorCSS = function clearIndicatorCSS(props) {
|
|
20
|
-
return
|
|
18
|
+
return compiledClearIndicatorCSS();
|
|
21
19
|
};
|
|
22
20
|
|
|
23
21
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
24
22
|
export var ClearIndicator = function ClearIndicator(props) {
|
|
25
|
-
return
|
|
23
|
+
return /*#__PURE__*/React.createElement(CompiledClearIndicator, props);
|
|
26
24
|
};
|
|
27
25
|
|
|
28
26
|
// ==============================
|
|
@@ -30,9 +28,9 @@ export var ClearIndicator = function ClearIndicator(props) {
|
|
|
30
28
|
// ==============================
|
|
31
29
|
|
|
32
30
|
export var loadingIndicatorCSS = function loadingIndicatorCSS(props) {
|
|
33
|
-
return
|
|
31
|
+
return compiledLoadingIndicatorCSS();
|
|
34
32
|
};
|
|
35
33
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
36
34
|
export var LoadingIndicator = function LoadingIndicator(props) {
|
|
37
|
-
return
|
|
35
|
+
return /*#__PURE__*/React.createElement(CompiledLoadingIndicator, props);
|
|
38
36
|
};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/no-unsafe-spread-props */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import Compiled, { inputCSS as compiledInputCSS } from '../compiled/components/input';
|
|
5
|
-
import Emotion, { inputCSS as emotionInputCSS } from '../emotion/components/input';
|
|
6
4
|
export var inputCSS = function inputCSS(props) {
|
|
7
|
-
return
|
|
5
|
+
return compiledInputCSS();
|
|
8
6
|
};
|
|
9
7
|
var Input = function Input(props) {
|
|
10
|
-
return
|
|
8
|
+
return /*#__PURE__*/React.createElement(Compiled, props);
|
|
11
9
|
};
|
|
12
10
|
|
|
13
11
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/no-unsafe-spread-props */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import Compiled from '../../compiled/components/internal/a11y-text';
|
|
5
|
-
import Emotion from '../../emotion/components/internal/a11y-text';
|
|
6
4
|
var A11yText = function A11yText(props) {
|
|
7
|
-
return
|
|
5
|
+
return /*#__PURE__*/React.createElement(Compiled, props);
|
|
8
6
|
};
|
|
9
7
|
export default A11yText;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/no-unsafe-spread-props */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import Compiled from '../../compiled/components/internal/dummy-input';
|
|
5
|
-
import Emotion from '../../emotion/components/internal/dummy-input';
|
|
6
4
|
export default function DummyInput(props) {
|
|
7
|
-
return
|
|
5
|
+
return /*#__PURE__*/React.createElement(Compiled, props);
|
|
8
6
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/no-unsafe-spread-props */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import Compiled from '../../compiled/components/internal/required-input';
|
|
5
|
-
import Emotion from '../../emotion/components/internal/required-input';
|
|
6
4
|
var RequiredInput = function RequiredInput(props) {
|
|
7
|
-
return
|
|
5
|
+
return /*#__PURE__*/React.createElement(Compiled, props);
|
|
8
6
|
};
|
|
9
7
|
|
|
10
8
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/no-unsafe-spread-props */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import Compiled from '../compiled/components/live-region';
|
|
5
|
-
import Emotion from '../emotion/components/live-region';
|
|
6
4
|
|
|
7
5
|
// ==============================
|
|
8
6
|
// Root Container
|
|
9
7
|
// ==============================
|
|
10
8
|
|
|
11
9
|
var LiveRegion = function LiveRegion(props) {
|
|
12
|
-
return
|
|
10
|
+
return /*#__PURE__*/React.createElement(Compiled, props);
|
|
13
11
|
};
|
|
14
12
|
|
|
15
13
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructuringEmpty";
|
|
2
2
|
/* eslint-disable @repo/internal/react/no-unsafe-spread-props */
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
import Compiled, { LoadingMessage as CompiledLoadingMessage, menuCSS as compiledMenuCSS, MenuList as CompiledMenuList, menuListCSS as compiledMenuListCSS, MenuPlacer as CompiledMenuPlacer, MenuPortal as CompiledMenuPortal, menuPortalCSS as compiledMenuPortalCSS, NoOptionsMessage as CompiledNoOptionsMessage } from '../compiled/components/menu';
|
|
6
|
-
import Emotion, { LoadingMessage as EmotionLoadingMessage, menuCSS as emotionMenuCSS, MenuList as EmotionMenuList, menuListCSS as emotionMenuListCSS, MenuPlacer as EmotionMenuPlacer, MenuPortal as EmotionMenuPortal, menuPortalCSS as emotionMenuPortalCSS, NoOptionsMessage as EmotionNoOptionsMessage } from '../emotion/components/menu';
|
|
7
5
|
|
|
8
6
|
// Menu Component
|
|
9
7
|
// ------------------------------
|
|
10
8
|
|
|
11
9
|
export var menuCSS = function menuCSS(props) {
|
|
12
|
-
return
|
|
10
|
+
return compiledMenuCSS();
|
|
13
11
|
};
|
|
14
12
|
|
|
15
13
|
// NOTE: internal only
|
|
16
14
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
17
15
|
export var MenuPlacer = function MenuPlacer(props) {
|
|
18
|
-
return
|
|
16
|
+
return /*#__PURE__*/React.createElement(CompiledMenuPlacer, props);
|
|
19
17
|
};
|
|
20
18
|
var Menu = function Menu(props) {
|
|
21
|
-
return
|
|
19
|
+
return /*#__PURE__*/React.createElement(Compiled, props);
|
|
22
20
|
};
|
|
23
21
|
|
|
24
22
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -29,12 +27,12 @@ export default Menu;
|
|
|
29
27
|
// ==============================
|
|
30
28
|
|
|
31
29
|
export var menuListCSS = function menuListCSS(props) {
|
|
32
|
-
return
|
|
30
|
+
return compiledMenuListCSS();
|
|
33
31
|
};
|
|
34
32
|
|
|
35
33
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
36
34
|
export var MenuList = function MenuList(props) {
|
|
37
|
-
return
|
|
35
|
+
return /*#__PURE__*/React.createElement(CompiledMenuList, props);
|
|
38
36
|
};
|
|
39
37
|
|
|
40
38
|
// ==============================
|
|
@@ -52,12 +50,12 @@ export var noOptionsMessageCSS = noticeCSS;
|
|
|
52
50
|
export var loadingMessageCSS = noticeCSS;
|
|
53
51
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
54
52
|
export var NoOptionsMessage = function NoOptionsMessage(props) {
|
|
55
|
-
return
|
|
53
|
+
return /*#__PURE__*/React.createElement(CompiledNoOptionsMessage, props);
|
|
56
54
|
};
|
|
57
55
|
|
|
58
56
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
59
57
|
export var LoadingMessage = function LoadingMessage(props) {
|
|
60
|
-
return
|
|
58
|
+
return /*#__PURE__*/React.createElement(CompiledLoadingMessage, props);
|
|
61
59
|
};
|
|
62
60
|
|
|
63
61
|
// ==============================
|
|
@@ -65,10 +63,10 @@ export var LoadingMessage = function LoadingMessage(props) {
|
|
|
65
63
|
// ==============================
|
|
66
64
|
|
|
67
65
|
export var menuPortalCSS = function menuPortalCSS(props) {
|
|
68
|
-
return
|
|
66
|
+
return compiledMenuPortalCSS();
|
|
69
67
|
};
|
|
70
68
|
|
|
71
69
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
72
70
|
export var MenuPortal = function MenuPortal(props) {
|
|
73
|
-
return
|
|
71
|
+
return /*#__PURE__*/React.createElement(CompiledMenuPortal, props);
|
|
74
72
|
};
|
|
@@ -1,34 +1,29 @@
|
|
|
1
1
|
/* eslint-disable @repo/internal/react/no-unsafe-spread-props */
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import Compiled, { MultiValueContainer as CompiledMultiValueContainer, multiValueCSS as CompiledMultiValueCSS, MultiValueLabel as CompiledMultiValueLabel, multiValueLabelCSS as CompiledMultiValueLabelCSS, MultiValueRemove as CompiledMultiValueRemove, multiValueRemoveCSS as CompiledMultiValueRemoveCSS } from '../compiled/components/multi-value';
|
|
5
|
-
import Emotion, { MultiValueContainer as EmotionMultiValueContainer, multiValueCSS as EmotionMultiValueCSS, MultiValueLabel as EmotionMultiValueLabel, multiValueLabelCSS as EmotionMultiValueLabelCSS, MultiValueRemove as EmotionMultiValueRemove, multiValueRemoveCSS as EmotionMultiValueRemoveCSS } from '../emotion/components/multi-value';
|
|
6
4
|
export var multiValueCSS = function multiValueCSS(props) {
|
|
7
|
-
return
|
|
5
|
+
return CompiledMultiValueCSS();
|
|
8
6
|
};
|
|
9
7
|
export var multiValueLabelCSS = function multiValueLabelCSS(props) {
|
|
10
|
-
return
|
|
8
|
+
return CompiledMultiValueLabelCSS();
|
|
11
9
|
};
|
|
12
10
|
export var multiValueRemoveCSS = function multiValueRemoveCSS(props) {
|
|
13
|
-
return
|
|
11
|
+
return CompiledMultiValueRemoveCSS();
|
|
14
12
|
};
|
|
15
13
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
16
14
|
export var MultiValueContainer = function MultiValueContainer(props) {
|
|
17
|
-
return
|
|
15
|
+
return /*#__PURE__*/React.createElement(CompiledMultiValueContainer, props);
|
|
18
16
|
};
|
|
19
17
|
|
|
20
18
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
21
19
|
export var MultiValueLabel = function MultiValueLabel(props) {
|
|
22
|
-
return
|
|
20
|
+
return /*#__PURE__*/React.createElement(CompiledMultiValueLabel, props);
|
|
23
21
|
};
|
|
24
22
|
export function MultiValueRemove(props) {
|
|
25
|
-
return (
|
|
26
|
-
// The Remove button is intentionally excluded from the tab order, please avoid assigning a non-negative tabIndex to it. Context: https://hello.atlassian.net/wiki/spaces/A11YKB/pages/3031993460/Clear+Options+on+an+Input+Field
|
|
27
|
-
fg('compiled-react-select') ? /*#__PURE__*/React.createElement(CompiledMultiValueRemove, props) : /*#__PURE__*/React.createElement(EmotionMultiValueRemove, props)
|
|
28
|
-
);
|
|
23
|
+
return /*#__PURE__*/React.createElement(CompiledMultiValueRemove, props);
|
|
29
24
|
}
|
|
30
25
|
var MultiValue = function MultiValue(props) {
|
|
31
|
-
return
|
|
26
|
+
return /*#__PURE__*/React.createElement(Compiled, props);
|
|
32
27
|
};
|
|
33
28
|
|
|
34
29
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|