@atlaskit/select 17.14.0 → 17.15.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 +7 -0
- package/dist/cjs/Select.js +1 -1
- package/dist/cjs/components/no-options.js +7 -1
- package/dist/es2019/Select.js +1 -1
- package/dist/es2019/components/no-options.js +7 -1
- package/dist/esm/Select.js +1 -1
- package/dist/esm/components/no-options.js +7 -1
- package/dist/types/components/no-options.d.ts +4 -1
- package/dist/types-ts4.5/components/no-options.d.ts +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/select
|
|
2
2
|
|
|
3
|
+
## 17.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`0d3bdaf1e3d68`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0d3bdaf1e3d68) -
|
|
8
|
+
[ux] Set the color.text.subtle token for 'No options' text to meet a 4.5:1 color contrast.
|
|
9
|
+
|
|
3
10
|
## 17.14.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
package/dist/cjs/Select.js
CHANGED
|
@@ -9,7 +9,7 @@ var _reactSelect = _interopRequireDefault(require("react-select"));
|
|
|
9
9
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
10
10
|
var _createSelect = _interopRequireDefault(require("./createSelect"));
|
|
11
11
|
var packageName = "@atlaskit/select";
|
|
12
|
-
var packageVersion = "17.
|
|
12
|
+
var packageVersion = "17.15.0";
|
|
13
13
|
var SelectWithoutAnalytics = exports.SelectWithoutAnalytics = (0, _createSelect.default)(_reactSelect.default);
|
|
14
14
|
var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
|
|
15
15
|
var Select = (0, _analyticsNext.withAnalyticsContext)({
|
|
@@ -7,9 +7,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.NoOptionsMessage = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _reactSelect = require("react-select");
|
|
10
|
+
var _primitives = require("@atlaskit/primitives");
|
|
11
|
+
/**
|
|
12
|
+
* __No options message__
|
|
13
|
+
*/
|
|
10
14
|
var NoOptionsMessage = exports.NoOptionsMessage = function NoOptionsMessage(props) {
|
|
11
15
|
return /*#__PURE__*/_react.default.createElement(_reactSelect.components.NoOptionsMessage, props, /*#__PURE__*/_react.default.createElement("span", {
|
|
12
16
|
id: "no-options",
|
|
13
17
|
role: "alert"
|
|
14
|
-
},
|
|
18
|
+
}, /*#__PURE__*/_react.default.createElement(_primitives.Text, {
|
|
19
|
+
color: "color.text.subtle"
|
|
20
|
+
}, props.children || "No options")));
|
|
15
21
|
};
|
package/dist/es2019/Select.js
CHANGED
|
@@ -2,7 +2,7 @@ import ReactSelect from 'react-select';
|
|
|
2
2
|
import { withAnalyticsEvents, withAnalyticsContext, createAndFireEvent } from '@atlaskit/analytics-next';
|
|
3
3
|
import createSelect from './createSelect';
|
|
4
4
|
const packageName = "@atlaskit/select";
|
|
5
|
-
const packageVersion = "17.
|
|
5
|
+
const packageVersion = "17.15.0";
|
|
6
6
|
export const SelectWithoutAnalytics = createSelect(ReactSelect);
|
|
7
7
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
8
8
|
const Select = withAnalyticsContext({
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { components } from 'react-select';
|
|
3
|
+
import { Text } from '@atlaskit/primitives';
|
|
4
|
+
/**
|
|
5
|
+
* __No options message__
|
|
6
|
+
*/
|
|
3
7
|
export const NoOptionsMessage = props => {
|
|
4
8
|
return /*#__PURE__*/React.createElement(components.NoOptionsMessage, props, /*#__PURE__*/React.createElement("span", {
|
|
5
9
|
id: "no-options",
|
|
6
10
|
role: "alert"
|
|
7
|
-
},
|
|
11
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
12
|
+
color: "color.text.subtle"
|
|
13
|
+
}, props.children || `No options`)));
|
|
8
14
|
};
|
package/dist/esm/Select.js
CHANGED
|
@@ -2,7 +2,7 @@ import ReactSelect from 'react-select';
|
|
|
2
2
|
import { withAnalyticsEvents, withAnalyticsContext, createAndFireEvent } from '@atlaskit/analytics-next';
|
|
3
3
|
import createSelect from './createSelect';
|
|
4
4
|
var packageName = "@atlaskit/select";
|
|
5
|
-
var packageVersion = "17.
|
|
5
|
+
var packageVersion = "17.15.0";
|
|
6
6
|
export var SelectWithoutAnalytics = createSelect(ReactSelect);
|
|
7
7
|
var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
8
8
|
var Select = withAnalyticsContext({
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { components } from 'react-select';
|
|
3
|
+
import { Text } from '@atlaskit/primitives';
|
|
4
|
+
/**
|
|
5
|
+
* __No options message__
|
|
6
|
+
*/
|
|
3
7
|
export var NoOptionsMessage = function NoOptionsMessage(props) {
|
|
4
8
|
return /*#__PURE__*/React.createElement(components.NoOptionsMessage, props, /*#__PURE__*/React.createElement("span", {
|
|
5
9
|
id: "no-options",
|
|
6
10
|
role: "alert"
|
|
7
|
-
},
|
|
11
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
12
|
+
color: "color.text.subtle"
|
|
13
|
+
}, props.children || "No options")));
|
|
8
14
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type
|
|
2
|
+
import { type NoticeProps, type OptionType } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* __No options message__
|
|
5
|
+
*/
|
|
3
6
|
export declare const NoOptionsMessage: (props: NoticeProps<OptionType>) => JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type
|
|
2
|
+
import { type NoticeProps, type OptionType } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* __No options message__
|
|
5
|
+
*/
|
|
3
6
|
export declare const NoOptionsMessage: (props: NoticeProps<OptionType>) => JSX.Element;
|
package/package.json
CHANGED