@atlaskit/color-picker 3.0.3 → 3.0.4

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/color-picker
2
2
 
3
+ ## 3.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`cb8f8e76d25`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb8f8e76d25) - Update types for react-select and @atlaskit/select upgrade
8
+ Update commerce-ui entrypoints that caused a pipeline issue.
9
+ - Updated dependencies
10
+
3
11
  ## 3.0.3
4
12
 
5
13
  ### Patch Changes
@@ -60,7 +60,7 @@ var defaultPopperProps = {
60
60
  placement: 'bottom-start'
61
61
  };
62
62
  var packageName = "@atlaskit/color-picker";
63
- var packageVersion = "3.0.3";
63
+ var packageVersion = "3.0.4";
64
64
 
65
65
  var ColorPickerWithoutAnalytics = /*#__PURE__*/function (_React$Component) {
66
66
  (0, _inherits2.default)(ColorPickerWithoutAnalytics, _React$Component);
@@ -46,19 +46,24 @@ var Option = function Option(props) {
46
46
  onOptionKeyDown = _props$selectProps.onOptionKeyDown,
47
47
  isTabbing = _props$selectProps.isTabbing,
48
48
  isFocused = props.isFocused,
49
- isSelected = props.isSelected;
50
- return /*#__PURE__*/_react.default.createElement(_ColorPalette.ColorCardWrapper, props.innerProps, /*#__PURE__*/_react.default.createElement(_ColorCard.default, {
51
- label: label,
52
- value: value,
53
- checkMarkColor: checkMarkColor,
54
- isOption: true,
55
- focused: isFocused,
56
- selected: isSelected,
57
- onKeyDown: function onKeyDown(value) {
58
- return onOptionKeyDown(value);
59
- },
60
- isTabbing: isTabbing
61
- }));
49
+ isSelected = props.isSelected,
50
+ innerProps = props.innerProps;
51
+ return (
52
+ /*#__PURE__*/
53
+ // @ts-expect-error - known issue: https://github.com/mui/material-ui/issues/13921. TS treats styled components to be different from HTMLDivElement
54
+ _react.default.createElement(_ColorPalette.ColorCardWrapper, innerProps, /*#__PURE__*/_react.default.createElement(_ColorCard.default, {
55
+ label: label,
56
+ value: value,
57
+ checkMarkColor: checkMarkColor,
58
+ isOption: true,
59
+ focused: isFocused,
60
+ selected: isSelected,
61
+ onKeyDown: function onKeyDown(value) {
62
+ return onOptionKeyDown(value);
63
+ },
64
+ isTabbing: isTabbing
65
+ }))
66
+ );
62
67
  };
63
68
 
64
69
  exports.Option = Option;
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/color-picker",
3
- "version": "3.0.3"
3
+ "version": "3.0.4"
4
4
  }
@@ -19,7 +19,7 @@ const defaultPopperProps = {
19
19
  placement: 'bottom-start'
20
20
  };
21
21
  const packageName = "@atlaskit/color-picker";
22
- const packageVersion = "3.0.3";
22
+ const packageVersion = "3.0.4";
23
23
  export class ColorPickerWithoutAnalytics extends React.Component {
24
24
  constructor(...args) {
25
25
  super(...args);
@@ -32,18 +32,23 @@ export const Option = props => {
32
32
  isTabbing
33
33
  },
34
34
  isFocused,
35
- isSelected
35
+ isSelected,
36
+ innerProps
36
37
  } = props;
37
- return /*#__PURE__*/React.createElement(ColorCardWrapper, props.innerProps, /*#__PURE__*/React.createElement(ColorCard, {
38
- label: label,
39
- value: value,
40
- checkMarkColor: checkMarkColor,
41
- isOption: true,
42
- focused: isFocused,
43
- selected: isSelected,
44
- onKeyDown: value => onOptionKeyDown(value),
45
- isTabbing: isTabbing
46
- }));
38
+ return (
39
+ /*#__PURE__*/
40
+ // @ts-expect-error - known issue: https://github.com/mui/material-ui/issues/13921. TS treats styled components to be different from HTMLDivElement
41
+ React.createElement(ColorCardWrapper, innerProps, /*#__PURE__*/React.createElement(ColorCard, {
42
+ label: label,
43
+ value: value,
44
+ checkMarkColor: checkMarkColor,
45
+ isOption: true,
46
+ focused: isFocused,
47
+ selected: isSelected,
48
+ onKeyDown: value => onOptionKeyDown(value),
49
+ isTabbing: isTabbing
50
+ }))
51
+ );
47
52
  };
48
53
  export const DropdownIndicator = () => null;
49
54
  export const Placeholder = () => null;
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/color-picker",
3
- "version": "3.0.3"
3
+ "version": "3.0.4"
4
4
  }
@@ -30,7 +30,7 @@ var defaultPopperProps = {
30
30
  placement: 'bottom-start'
31
31
  };
32
32
  var packageName = "@atlaskit/color-picker";
33
- var packageVersion = "3.0.3";
33
+ var packageVersion = "3.0.4";
34
34
  export var ColorPickerWithoutAnalytics = /*#__PURE__*/function (_React$Component) {
35
35
  _inherits(ColorPickerWithoutAnalytics, _React$Component);
36
36
 
@@ -28,19 +28,24 @@ export var Option = function Option(props) {
28
28
  onOptionKeyDown = _props$selectProps.onOptionKeyDown,
29
29
  isTabbing = _props$selectProps.isTabbing,
30
30
  isFocused = props.isFocused,
31
- isSelected = props.isSelected;
32
- return /*#__PURE__*/React.createElement(ColorCardWrapper, props.innerProps, /*#__PURE__*/React.createElement(ColorCard, {
33
- label: label,
34
- value: value,
35
- checkMarkColor: checkMarkColor,
36
- isOption: true,
37
- focused: isFocused,
38
- selected: isSelected,
39
- onKeyDown: function onKeyDown(value) {
40
- return onOptionKeyDown(value);
41
- },
42
- isTabbing: isTabbing
43
- }));
31
+ isSelected = props.isSelected,
32
+ innerProps = props.innerProps;
33
+ return (
34
+ /*#__PURE__*/
35
+ // @ts-expect-error - known issue: https://github.com/mui/material-ui/issues/13921. TS treats styled components to be different from HTMLDivElement
36
+ React.createElement(ColorCardWrapper, innerProps, /*#__PURE__*/React.createElement(ColorCard, {
37
+ label: label,
38
+ value: value,
39
+ checkMarkColor: checkMarkColor,
40
+ isOption: true,
41
+ focused: isFocused,
42
+ selected: isSelected,
43
+ onKeyDown: function onKeyDown(value) {
44
+ return onOptionKeyDown(value);
45
+ },
46
+ isTabbing: isTabbing
47
+ }))
48
+ );
44
49
  };
45
50
  export var DropdownIndicator = function DropdownIndicator() {
46
51
  return null;
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/color-picker",
3
- "version": "3.0.3"
3
+ "version": "3.0.4"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/color-picker",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "description": "Jira Color Picker Component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -23,7 +23,7 @@
23
23
  "dependencies": {
24
24
  "@atlaskit/analytics-next": "^8.2.0",
25
25
  "@atlaskit/icon": "^21.11.0",
26
- "@atlaskit/select": "^15.7.0",
26
+ "@atlaskit/select": "^16.0.0",
27
27
  "@atlaskit/theme": "^12.2.0",
28
28
  "@atlaskit/tokens": "^0.11.0",
29
29
  "@babel/runtime": "^7.0.0",
package/report.api.md CHANGED
@@ -8,6 +8,7 @@
8
8
  ### Table of contents
9
9
 
10
10
  - [Main Entry Types](#main-entry-types)
11
+ - [Peer Dependencies](#peer-dependencies)
11
12
 
12
13
  ### Main Entry Types
13
14
 
@@ -174,3 +175,15 @@ export const Standard: Mode;
174
175
  ```
175
176
 
176
177
  <!--SECTION END: Main Entry Types-->
178
+
179
+ ### Peer Dependencies
180
+
181
+ <!--SECTION START: Peer Dependencies-->
182
+
183
+ ```json
184
+ {
185
+ "react": "^16.8.0"
186
+ }
187
+ ```
188
+
189
+ <!--SECTION END: Peer Dependencies-->