@atlaskit/react-select 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/react-select
2
2
 
3
+ ## 1.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 1.6.0
4
10
 
5
11
  ### Minor Changes
@@ -22,6 +22,7 @@ var dummyInputStyles = (0, _react.css)({
22
22
  border: 0,
23
23
  caretColor: 'transparent',
24
24
  color: 'transparent',
25
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
25
26
  fontSize: 'inherit',
26
27
  gridArea: '1 / 1 / 2 / 3',
27
28
  insetInlineStart: -100,
@@ -68,6 +68,7 @@ var multiValueLabelCSS = exports.multiValueLabelCSS = function multiValueLabelCS
68
68
  textOverflow: cropWithEllipsis || cropWithEllipsis === undefined ? 'ellipsis' : undefined,
69
69
  whiteSpace: 'nowrap',
70
70
  borderRadius: "var(--ds-border-radius-050, 2px)",
71
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
71
72
  fontSize: '85%',
72
73
  font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
73
74
  padding: "var(--ds-space-025, 2px)",
@@ -44,6 +44,7 @@ var optionCSS = exports.optionCSS = function optionCSS(_ref) {
44
44
  return {
45
45
  label: 'option',
46
46
  display: 'block',
47
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
47
48
  fontSize: 'inherit',
48
49
  width: '100%',
49
50
  userSelect: 'none',
@@ -1709,10 +1709,14 @@ var Select = exports.default = /*#__PURE__*/function (_Component) {
1709
1709
  }, {
1710
1710
  key: "renderMultiselectMessage",
1711
1711
  value: function renderMultiselectMessage() {
1712
- return /*#__PURE__*/_react.default.createElement("span", {
1713
- id: this.getElementId('multi-message'),
1714
- hidden: true
1715
- }, ", multiple selections available,");
1712
+ return (
1713
+ /*#__PURE__*/
1714
+ // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
1715
+ _react.default.createElement("span", {
1716
+ id: this.getElementId('multi-message'),
1717
+ hidden: true
1718
+ }, ", multiple selections available,")
1719
+ );
1716
1720
  }
1717
1721
  }, {
1718
1722
  key: "render",
@@ -14,6 +14,7 @@ const dummyInputStyles = css({
14
14
  border: 0,
15
15
  caretColor: 'transparent',
16
16
  color: 'transparent',
17
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
17
18
  fontSize: 'inherit',
18
19
  gridArea: '1 / 1 / 2 / 3',
19
20
  insetInlineStart: -100,
@@ -60,6 +60,7 @@ export const multiValueLabelCSS = ({
60
60
  textOverflow: cropWithEllipsis || cropWithEllipsis === undefined ? 'ellipsis' : undefined,
61
61
  whiteSpace: 'nowrap',
62
62
  borderRadius: "var(--ds-border-radius-050, 2px)",
63
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
63
64
  fontSize: '85%',
64
65
  font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
65
66
  padding: "var(--ds-space-025, 2px)",
@@ -38,6 +38,7 @@ export const optionCSS = ({
38
38
  return {
39
39
  label: 'option',
40
40
  display: 'block',
41
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
41
42
  fontSize: 'inherit',
42
43
  width: '100%',
43
44
  userSelect: 'none',
@@ -1732,10 +1732,14 @@ export default class Select extends Component {
1732
1732
  }));
1733
1733
  }
1734
1734
  renderMultiselectMessage() {
1735
- return /*#__PURE__*/React.createElement("span", {
1736
- id: this.getElementId('multi-message'),
1737
- hidden: true
1738
- }, ", multiple selections available,");
1735
+ return (
1736
+ /*#__PURE__*/
1737
+ // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
1738
+ React.createElement("span", {
1739
+ id: this.getElementId('multi-message'),
1740
+ hidden: true
1741
+ }, ", multiple selections available,")
1742
+ );
1739
1743
  }
1740
1744
  render() {
1741
1745
  const {
@@ -16,6 +16,7 @@ var dummyInputStyles = css({
16
16
  border: 0,
17
17
  caretColor: 'transparent',
18
18
  color: 'transparent',
19
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
19
20
  fontSize: 'inherit',
20
21
  gridArea: '1 / 1 / 2 / 3',
21
22
  insetInlineStart: -100,
@@ -61,6 +61,7 @@ export var multiValueLabelCSS = function multiValueLabelCSS(_ref2) {
61
61
  textOverflow: cropWithEllipsis || cropWithEllipsis === undefined ? 'ellipsis' : undefined,
62
62
  whiteSpace: 'nowrap',
63
63
  borderRadius: "var(--ds-border-radius-050, 2px)",
64
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
64
65
  fontSize: '85%',
65
66
  font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
66
67
  padding: "var(--ds-space-025, 2px)",
@@ -37,6 +37,7 @@ export var optionCSS = function optionCSS(_ref) {
37
37
  return {
38
38
  label: 'option',
39
39
  display: 'block',
40
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
40
41
  fontSize: 'inherit',
41
42
  width: '100%',
42
43
  userSelect: 'none',
@@ -1700,10 +1700,14 @@ var Select = /*#__PURE__*/function (_Component) {
1700
1700
  }, {
1701
1701
  key: "renderMultiselectMessage",
1702
1702
  value: function renderMultiselectMessage() {
1703
- return /*#__PURE__*/React.createElement("span", {
1704
- id: this.getElementId('multi-message'),
1705
- hidden: true
1706
- }, ", multiple selections available,");
1703
+ return (
1704
+ /*#__PURE__*/
1705
+ // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
1706
+ React.createElement("span", {
1707
+ id: this.getElementId('multi-message'),
1708
+ hidden: true
1709
+ }, ", multiple selections available,")
1710
+ );
1707
1711
  }
1708
1712
  }, {
1709
1713
  key: "render",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/react-select",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "A forked version of react-select to only be used in atlaskit/select",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,11 +30,11 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@atlaskit/ds-lib": "^3.3.0",
33
- "@atlaskit/icon": "^23.0.1",
33
+ "@atlaskit/icon": "^23.3.0",
34
34
  "@atlaskit/platform-feature-flags": "^0.3.0",
35
35
  "@atlaskit/primitives": "^13.3.0",
36
36
  "@atlaskit/spinner": "^16.3.0",
37
- "@atlaskit/tokens": "^2.4.0",
37
+ "@atlaskit/tokens": "^3.0.0",
38
38
  "@babel/runtime": "^7.0.0",
39
39
  "@emotion/react": "^11.7.1",
40
40
  "@floating-ui/dom": "^1.0.1",