@atlaskit/react-select 2.4.0 → 2.4.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,13 @@
1
1
  # @atlaskit/react-select
2
2
 
3
+ ## 2.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#141760](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/141760)
8
+ [`2df2e25329cb8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2df2e25329cb8) -
9
+ [ux] Resolved issue where group `Heading` component would render even when no labels were provided
10
+
3
11
  ## 2.4.0
4
12
 
5
13
  ### Minor Changes
@@ -45,7 +45,7 @@ var Group = function Group(props) {
45
45
  }, innerProps, {
46
46
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
47
47
  className: (0, _runtime.ax)([styles.root, (0, _react2.cx)(className, xcss, innerProps === null || innerProps === void 0 ? void 0 : innerProps.className)])
48
- }), /*#__PURE__*/React.createElement(Heading, (0, _extends2.default)({}, headingProps, {
48
+ }), label && /*#__PURE__*/React.createElement(Heading, (0, _extends2.default)({}, headingProps, {
49
49
  selectProps: selectProps,
50
50
  getStyles: getStyles,
51
51
  getClassNames: getClassNames,
@@ -35,7 +35,7 @@ var Group = function Group(props) {
35
35
  selectProps = props.selectProps;
36
36
  return (0, _react.jsx)("div", (0, _extends2.default)({}, (0, _utils.getStyleProps)(props, 'group', {
37
37
  group: true
38
- }), innerProps), (0, _react.jsx)(Heading, (0, _extends2.default)({}, headingProps, {
38
+ }), innerProps), label && (0, _react.jsx)(Heading, (0, _extends2.default)({}, headingProps, {
39
39
  selectProps: selectProps,
40
40
  getStyles: getStyles,
41
41
  getClassNames: getClassNames,
@@ -34,7 +34,7 @@ const Group = props => {
34
34
  }, innerProps, {
35
35
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
36
36
  className: ax([styles.root, cx(className, xcss, innerProps === null || innerProps === void 0 ? void 0 : innerProps.className)])
37
- }), /*#__PURE__*/React.createElement(Heading, _extends({}, headingProps, {
37
+ }), label && /*#__PURE__*/React.createElement(Heading, _extends({}, headingProps, {
38
38
  selectProps: selectProps,
39
39
  getStyles: getStyles,
40
40
  getClassNames: getClassNames,
@@ -25,7 +25,7 @@ const Group = props => {
25
25
  } = props;
26
26
  return jsx("div", _extends({}, getStyleProps(props, 'group', {
27
27
  group: true
28
- }), innerProps), jsx(Heading, _extends({}, headingProps, {
28
+ }), innerProps), label && jsx(Heading, _extends({}, headingProps, {
29
29
  selectProps: selectProps,
30
30
  getStyles: getStyles,
31
31
  getClassNames: getClassNames,
@@ -35,7 +35,7 @@ var Group = function Group(props) {
35
35
  }, innerProps, {
36
36
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/ui-styling-standard/local-cx-xcss, @compiled/local-cx-xcss
37
37
  className: ax([styles.root, cx(className, xcss, innerProps === null || innerProps === void 0 ? void 0 : innerProps.className)])
38
- }), /*#__PURE__*/React.createElement(Heading, _extends({}, headingProps, {
38
+ }), label && /*#__PURE__*/React.createElement(Heading, _extends({}, headingProps, {
39
39
  selectProps: selectProps,
40
40
  getStyles: getStyles,
41
41
  getClassNames: getClassNames,
@@ -29,7 +29,7 @@ var Group = function Group(props) {
29
29
  selectProps = props.selectProps;
30
30
  return jsx("div", _extends({}, getStyleProps(props, 'group', {
31
31
  group: true
32
- }), innerProps), jsx(Heading, _extends({}, headingProps, {
32
+ }), innerProps), label && jsx(Heading, _extends({}, headingProps, {
33
33
  selectProps: selectProps,
34
34
  getStyles: getStyles,
35
35
  getClassNames: getClassNames,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/react-select",
3
- "version": "2.4.0",
3
+ "version": "2.4.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",
@@ -35,7 +35,7 @@
35
35
  "@atlaskit/platform-feature-flags": "^1.1.0",
36
36
  "@atlaskit/primitives": "^14.4.0",
37
37
  "@atlaskit/spinner": "^18.0.0",
38
- "@atlaskit/tokens": "^4.7.0",
38
+ "@atlaskit/tokens": "^4.8.0",
39
39
  "@babel/runtime": "^7.0.0",
40
40
  "@compiled/react": "^0.18.3",
41
41
  "@emotion/react": "^11.7.1",