@atlaskit/color-picker 3.2.16 → 3.2.18

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,23 @@
1
1
  # @atlaskit/color-picker
2
2
 
3
+ ## 3.2.18
4
+
5
+ ### Patch Changes
6
+
7
+ - [#112744](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112744)
8
+ [`1fc633df8a651`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1fc633df8a651) -
9
+ excluded aria-decribedby from tooltipProps for color option in ColorCard component
10
+ - Updated dependencies
11
+
12
+ ## 3.2.17
13
+
14
+ ### Patch Changes
15
+
16
+ - [#111482](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111482)
17
+ [`6ec58a4845b8d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6ec58a4845b8d) -
18
+ added default implementation at FF false case
19
+ - Updated dependencies
20
+
3
21
  ## 3.2.16
4
22
 
5
23
  ### Patch Changes
@@ -12,14 +12,15 @@ var _done = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/done"));
12
12
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
13
13
  var _constants = require("../constants");
14
14
  var _react2 = require("@emotion/react");
15
- var _reactIntlNext = require("react-intl-next");
16
15
  var _colors = require("@atlaskit/theme/colors");
17
16
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
- var _messages = _interopRequireDefault(require("../messages"));
17
+ var _useCallbackRef = require("use-callback-ref");
19
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
20
19
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
21
20
  /** @jsx jsx */
22
21
 
22
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
23
+
23
24
  var ColorCard = function ColorCard(props) {
24
25
  var value = props.value,
25
26
  label = props.label,
@@ -31,8 +32,6 @@ var ColorCard = function ColorCard(props) {
31
32
  onClick = props.onClick,
32
33
  onKeyDown = props.onKeyDown;
33
34
  var ref = (0, _react.useRef)(null);
34
- var _useIntl = (0, _reactIntlNext.useIntl)(),
35
- formatMessage = _useIntl.formatMessage;
36
35
  var handleMouseDown = (0, _react.useCallback)(function (event) {
37
36
  event.preventDefault();
38
37
  }, []);
@@ -67,19 +66,42 @@ var ColorCard = function ColorCard(props) {
67
66
  }, []);
68
67
  return (0, _react2.jsx)(_tooltip.default, {
69
68
  content: label
70
- }, (0, _react2.jsx)("div", (0, _extends2.default)({
69
+ }, (0, _platformFeatureFlags.getBooleanFF)('platform.jca11y-2997-remove-duplicate-screen-reader-announcements_fz13s') ? function (tooltipProps) {
70
+ delete tooltipProps['aria-describedby'];
71
+ return (0, _react2.jsx)("div", (0, _extends2.default)({}, tooltipProps, {
72
+ css: [sharedColorContainerStyles, (isTabbing === undefined || isTabbing) && colorCardOptionTabbingStyles, focused && !isTabbing && colorCardOptionFocusedStyles],
73
+ onClick: handleClick,
74
+ onMouseDown: handleMouseDown,
75
+ onKeyDown: handleKeyDown,
76
+ role: "radio",
77
+ "aria-checked": selected,
78
+ "aria-label": label,
79
+ tabIndex: 0,
80
+ ref: (0, _useCallbackRef.mergeRefs)([ref, tooltipProps.ref])
81
+ }), (0, _react2.jsx)("div", {
82
+ css: colorCardWrapperStyles
83
+ }, (0, _react2.jsx)("div", {
84
+ css: colorCardContentStyles,
85
+ style: {
86
+ background: value || 'transparent'
87
+ }
88
+ }, selected && (0, _react2.jsx)("div", {
89
+ css: colorCardContentCheckMarkStyles
90
+ }, (0, _react2.jsx)(_done.default, {
91
+ primaryColor: checkMarkColor,
92
+ label: ""
93
+ })))));
94
+ } : (0, _react2.jsx)("div", {
71
95
  css: [sharedColorContainerStyles, (isTabbing === undefined || isTabbing) && colorCardOptionTabbingStyles, focused && !isTabbing && colorCardOptionFocusedStyles],
72
96
  onClick: handleClick,
73
97
  onMouseDown: handleMouseDown,
74
98
  onKeyDown: handleKeyDown,
75
99
  role: "radio",
76
- "aria-checked": selected
77
- }, (0, _platformFeatureFlags.getBooleanFF)('platform.jca11y-2997-remove-duplicate-screen-reader-announcements_fz13s') && {
78
- 'aria-label': formatMessage(_messages.default.colorCardRadioItemLabel)
79
- }, {
100
+ "aria-checked": selected,
101
+ "aria-label": label,
80
102
  tabIndex: 0,
81
103
  ref: ref
82
- }), (0, _react2.jsx)("div", {
104
+ }, (0, _react2.jsx)("div", {
83
105
  css: colorCardWrapperStyles
84
106
  }, (0, _react2.jsx)("div", {
85
107
  css: colorCardContentStyles,
@@ -13,6 +13,8 @@ var _react = require("@emotion/react");
13
13
  var _colors = require("@atlaskit/theme/colors");
14
14
  /** @jsx jsx */
15
15
 
16
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
17
+
16
18
  var ColorPaletteMenuWithoutAnalytics = exports.ColorPaletteMenuWithoutAnalytics = function ColorPaletteMenuWithoutAnalytics(_ref) {
17
19
  var createAnalyticsEvent = _ref.createAnalyticsEvent,
18
20
  onChange = _ref.onChange,
@@ -34,7 +36,7 @@ var ColorPaletteMenuWithoutAnalytics = exports.ColorPaletteMenuWithoutAnalytics
34
36
  attributes: {
35
37
  componentName: 'color-picker',
36
38
  packageName: "@atlaskit/color-picker",
37
- packageVersion: "3.2.16"
39
+ packageVersion: "3.2.18"
38
40
  }
39
41
  })(createAnalyticsEvent);
40
42
  }
@@ -81,7 +83,7 @@ var ColorPaletteMenuWithoutAnalytics = exports.ColorPaletteMenuWithoutAnalytics
81
83
  var _default = exports.default = (0, _analyticsNext.withAnalyticsContext)({
82
84
  componentName: 'color-picker',
83
85
  packageName: "@atlaskit/color-picker",
84
- packageVersion: "3.2.16"
86
+ packageVersion: "3.2.18"
85
87
  })((0, _analyticsNext.withAnalyticsEvents)()(ColorPaletteMenuWithoutAnalytics));
86
88
  var colorCardWrapperStyles = (0, _react.css)({
87
89
  display: 'flex',
@@ -27,7 +27,7 @@ var _messages = _interopRequireDefault(require("../messages"));
27
27
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
28
28
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
29
29
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
30
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
30
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
31
31
  var defaultPopperProps = {
32
32
  strategy: 'fixed',
33
33
  modifiers: [{
@@ -39,7 +39,7 @@ var defaultPopperProps = {
39
39
  placement: 'bottom-start'
40
40
  };
41
41
  var packageName = "@atlaskit/color-picker";
42
- var packageVersion = "3.2.16";
42
+ var packageVersion = "3.2.18";
43
43
  var ColorPickerWithoutAnalyticsBase = /*#__PURE__*/function (_React$Component) {
44
44
  (0, _inherits2.default)(ColorPickerWithoutAnalyticsBase, _React$Component);
45
45
  var _super = _createSuper(ColorPickerWithoutAnalyticsBase);
@@ -11,6 +11,8 @@ var _react2 = require("@emotion/react");
11
11
  var _colors = require("@atlaskit/theme/colors");
12
12
  /** @jsx jsx */
13
13
 
14
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
+
14
16
  var ColorCard = function ColorCard(_ref) {
15
17
  var value = _ref.value,
16
18
  label = _ref.label,
@@ -11,6 +11,8 @@ var _utils = require("../utils");
11
11
  var _react = require("@emotion/react");
12
12
  /** @jsx jsx */
13
13
 
14
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
+
14
16
  var MenuList = exports.MenuList = function MenuList(props) {
15
17
  var cols = props.selectProps.cols,
16
18
  innerRef = props.innerRef,
@@ -10,10 +10,5 @@ var _default = exports.default = (0, _reactIntlNext.defineMessages)({
10
10
  id: 'jira.color-picker.src.color-picker-aria-label',
11
11
  defaultMessage: '{color} selected, {message}',
12
12
  description: 'This text is used as aria-label text in color picker component'
13
- },
14
- colorCardRadioItemLabel: {
15
- id: 'jira.color-picker.src.color-card-radio-item-label',
16
- defaultMessage: 'color option',
17
- description: 'This text is used as aria-label text in color card component for radio item'
18
13
  }
19
14
  });
@@ -4,11 +4,11 @@ import React, { useCallback, useEffect, useRef } from 'react';
4
4
  import EditorDoneIcon from '@atlaskit/icon/glyph/editor/done';
5
5
  import Tooltip from '@atlaskit/tooltip';
6
6
  import { KEY_ENTER, KEY_SPACE } from '../constants';
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
8
  import { css, jsx } from '@emotion/react';
8
- import { useIntl } from 'react-intl-next';
9
9
  import { N0, DN600A, B75 } from '@atlaskit/theme/colors';
10
10
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
11
- import messages from '../messages';
11
+ import { mergeRefs } from 'use-callback-ref';
12
12
  const ColorCard = props => {
13
13
  const {
14
14
  value,
@@ -21,9 +21,6 @@ const ColorCard = props => {
21
21
  onKeyDown
22
22
  } = props;
23
23
  const ref = useRef(null);
24
- const {
25
- formatMessage
26
- } = useIntl();
27
24
  const handleMouseDown = useCallback(event => {
28
25
  event.preventDefault();
29
26
  }, []);
@@ -60,19 +57,42 @@ const ColorCard = props => {
60
57
  }, []);
61
58
  return jsx(Tooltip, {
62
59
  content: label
63
- }, jsx("div", _extends({
60
+ }, getBooleanFF('platform.jca11y-2997-remove-duplicate-screen-reader-announcements_fz13s') ? tooltipProps => {
61
+ delete tooltipProps['aria-describedby'];
62
+ return jsx("div", _extends({}, tooltipProps, {
63
+ css: [sharedColorContainerStyles, (isTabbing === undefined || isTabbing) && colorCardOptionTabbingStyles, focused && !isTabbing && colorCardOptionFocusedStyles],
64
+ onClick: handleClick,
65
+ onMouseDown: handleMouseDown,
66
+ onKeyDown: handleKeyDown,
67
+ role: "radio",
68
+ "aria-checked": selected,
69
+ "aria-label": label,
70
+ tabIndex: 0,
71
+ ref: mergeRefs([ref, tooltipProps.ref])
72
+ }), jsx("div", {
73
+ css: colorCardWrapperStyles
74
+ }, jsx("div", {
75
+ css: colorCardContentStyles,
76
+ style: {
77
+ background: value || 'transparent'
78
+ }
79
+ }, selected && jsx("div", {
80
+ css: colorCardContentCheckMarkStyles
81
+ }, jsx(EditorDoneIcon, {
82
+ primaryColor: checkMarkColor,
83
+ label: ""
84
+ })))));
85
+ } : jsx("div", {
64
86
  css: [sharedColorContainerStyles, (isTabbing === undefined || isTabbing) && colorCardOptionTabbingStyles, focused && !isTabbing && colorCardOptionFocusedStyles],
65
87
  onClick: handleClick,
66
88
  onMouseDown: handleMouseDown,
67
89
  onKeyDown: handleKeyDown,
68
90
  role: "radio",
69
- "aria-checked": selected
70
- }, getBooleanFF('platform.jca11y-2997-remove-duplicate-screen-reader-announcements_fz13s') && {
71
- 'aria-label': formatMessage(messages.colorCardRadioItemLabel)
72
- }, {
91
+ "aria-checked": selected,
92
+ "aria-label": label,
73
93
  tabIndex: 0,
74
94
  ref: ref
75
- }), jsx("div", {
95
+ }, jsx("div", {
76
96
  css: colorCardWrapperStyles
77
97
  }, jsx("div", {
78
98
  css: colorCardContentStyles,
@@ -3,6 +3,7 @@ import { Mode } from '../types';
3
3
  import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
4
4
  import ColorCard from './ColorCard';
5
5
  import { getOptions, getWidth } from '../utils';
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
7
  import { css, jsx } from '@emotion/react';
7
8
  import { N0, N40 } from '@atlaskit/theme/colors';
8
9
  export const ColorPaletteMenuWithoutAnalytics = ({
@@ -24,7 +25,7 @@ export const ColorPaletteMenuWithoutAnalytics = ({
24
25
  attributes: {
25
26
  componentName: 'color-picker',
26
27
  packageName: "@atlaskit/color-picker",
27
- packageVersion: "3.2.16"
28
+ packageVersion: "3.2.18"
28
29
  }
29
30
  })(createAnalyticsEvent);
30
31
  }
@@ -71,7 +72,7 @@ export const ColorPaletteMenuWithoutAnalytics = ({
71
72
  export default withAnalyticsContext({
72
73
  componentName: 'color-picker',
73
74
  packageName: "@atlaskit/color-picker",
74
- packageVersion: "3.2.16"
75
+ packageVersion: "3.2.18"
75
76
  })(withAnalyticsEvents()(ColorPaletteMenuWithoutAnalytics));
76
77
  const colorCardWrapperStyles = css({
77
78
  display: 'flex',
@@ -8,6 +8,7 @@ import * as components from './components';
8
8
  import { KEY_ARROW_DOWN, KEY_ARROW_UP, KEY_TAB } from '../constants';
9
9
  import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
10
10
  import { getOptions } from '../utils';
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
12
  import { css, jsx } from '@emotion/react';
12
13
  import { injectIntl } from 'react-intl-next';
13
14
  import messages from '../messages';
@@ -22,7 +23,7 @@ const defaultPopperProps = {
22
23
  placement: 'bottom-start'
23
24
  };
24
25
  const packageName = "@atlaskit/color-picker";
25
- const packageVersion = "3.2.16";
26
+ const packageVersion = "3.2.18";
26
27
  class ColorPickerWithoutAnalyticsBase extends React.Component {
27
28
  constructor(...args) {
28
29
  super(...args);
@@ -1,6 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import { useCallback } from 'react';
3
3
  import Tooltip from '@atlaskit/tooltip';
4
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
5
  import { css, jsx } from '@emotion/react';
5
6
  import { B100, DN600A, N0 } from '@atlaskit/theme/colors';
6
7
  const ColorCard = ({
@@ -3,6 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
 
4
4
  import ColorCard from './ColorCard';
5
5
  import { getWidth } from '../utils';
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
7
  import { css, jsx } from '@emotion/react';
7
8
  export const MenuList = props => {
8
9
  const {
@@ -4,10 +4,5 @@ export default defineMessages({
4
4
  id: 'jira.color-picker.src.color-picker-aria-label',
5
5
  defaultMessage: '{color} selected, {message}',
6
6
  description: 'This text is used as aria-label text in color picker component'
7
- },
8
- colorCardRadioItemLabel: {
9
- id: 'jira.color-picker.src.color-card-radio-item-label',
10
- defaultMessage: 'color option',
11
- description: 'This text is used as aria-label text in color card component for radio item'
12
7
  }
13
8
  });
@@ -4,11 +4,11 @@ import React, { useCallback, useEffect, useRef } from 'react';
4
4
  import EditorDoneIcon from '@atlaskit/icon/glyph/editor/done';
5
5
  import Tooltip from '@atlaskit/tooltip';
6
6
  import { KEY_ENTER, KEY_SPACE } from '../constants';
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
8
  import { css, jsx } from '@emotion/react';
8
- import { useIntl } from 'react-intl-next';
9
9
  import { N0, DN600A, B75 } from '@atlaskit/theme/colors';
10
10
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
11
- import messages from '../messages';
11
+ import { mergeRefs } from 'use-callback-ref';
12
12
  var ColorCard = function ColorCard(props) {
13
13
  var value = props.value,
14
14
  label = props.label,
@@ -20,8 +20,6 @@ var ColorCard = function ColorCard(props) {
20
20
  onClick = props.onClick,
21
21
  onKeyDown = props.onKeyDown;
22
22
  var ref = useRef(null);
23
- var _useIntl = useIntl(),
24
- formatMessage = _useIntl.formatMessage;
25
23
  var handleMouseDown = useCallback(function (event) {
26
24
  event.preventDefault();
27
25
  }, []);
@@ -56,19 +54,42 @@ var ColorCard = function ColorCard(props) {
56
54
  }, []);
57
55
  return jsx(Tooltip, {
58
56
  content: label
59
- }, jsx("div", _extends({
57
+ }, getBooleanFF('platform.jca11y-2997-remove-duplicate-screen-reader-announcements_fz13s') ? function (tooltipProps) {
58
+ delete tooltipProps['aria-describedby'];
59
+ return jsx("div", _extends({}, tooltipProps, {
60
+ css: [sharedColorContainerStyles, (isTabbing === undefined || isTabbing) && colorCardOptionTabbingStyles, focused && !isTabbing && colorCardOptionFocusedStyles],
61
+ onClick: handleClick,
62
+ onMouseDown: handleMouseDown,
63
+ onKeyDown: handleKeyDown,
64
+ role: "radio",
65
+ "aria-checked": selected,
66
+ "aria-label": label,
67
+ tabIndex: 0,
68
+ ref: mergeRefs([ref, tooltipProps.ref])
69
+ }), jsx("div", {
70
+ css: colorCardWrapperStyles
71
+ }, jsx("div", {
72
+ css: colorCardContentStyles,
73
+ style: {
74
+ background: value || 'transparent'
75
+ }
76
+ }, selected && jsx("div", {
77
+ css: colorCardContentCheckMarkStyles
78
+ }, jsx(EditorDoneIcon, {
79
+ primaryColor: checkMarkColor,
80
+ label: ""
81
+ })))));
82
+ } : jsx("div", {
60
83
  css: [sharedColorContainerStyles, (isTabbing === undefined || isTabbing) && colorCardOptionTabbingStyles, focused && !isTabbing && colorCardOptionFocusedStyles],
61
84
  onClick: handleClick,
62
85
  onMouseDown: handleMouseDown,
63
86
  onKeyDown: handleKeyDown,
64
87
  role: "radio",
65
- "aria-checked": selected
66
- }, getBooleanFF('platform.jca11y-2997-remove-duplicate-screen-reader-announcements_fz13s') && {
67
- 'aria-label': formatMessage(messages.colorCardRadioItemLabel)
68
- }, {
88
+ "aria-checked": selected,
89
+ "aria-label": label,
69
90
  tabIndex: 0,
70
91
  ref: ref
71
- }), jsx("div", {
92
+ }, jsx("div", {
72
93
  css: colorCardWrapperStyles
73
94
  }, jsx("div", {
74
95
  css: colorCardContentStyles,
@@ -3,6 +3,7 @@ import { Mode } from '../types';
3
3
  import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
4
4
  import ColorCard from './ColorCard';
5
5
  import { getOptions, getWidth } from '../utils';
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
7
  import { css, jsx } from '@emotion/react';
7
8
  import { N0, N40 } from '@atlaskit/theme/colors';
8
9
  export var ColorPaletteMenuWithoutAnalytics = function ColorPaletteMenuWithoutAnalytics(_ref) {
@@ -26,7 +27,7 @@ export var ColorPaletteMenuWithoutAnalytics = function ColorPaletteMenuWithoutAn
26
27
  attributes: {
27
28
  componentName: 'color-picker',
28
29
  packageName: "@atlaskit/color-picker",
29
- packageVersion: "3.2.16"
30
+ packageVersion: "3.2.18"
30
31
  }
31
32
  })(createAnalyticsEvent);
32
33
  }
@@ -73,7 +74,7 @@ export var ColorPaletteMenuWithoutAnalytics = function ColorPaletteMenuWithoutAn
73
74
  export default withAnalyticsContext({
74
75
  componentName: 'color-picker',
75
76
  packageName: "@atlaskit/color-picker",
76
- packageVersion: "3.2.16"
77
+ packageVersion: "3.2.18"
77
78
  })(withAnalyticsEvents()(ColorPaletteMenuWithoutAnalytics));
78
79
  var colorCardWrapperStyles = css({
79
80
  display: 'flex',
@@ -16,6 +16,7 @@ import * as components from './components';
16
16
  import { KEY_ARROW_DOWN, KEY_ARROW_UP, KEY_TAB } from '../constants';
17
17
  import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
18
18
  import { getOptions } from '../utils';
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
20
  import { css, jsx } from '@emotion/react';
20
21
  import { injectIntl } from 'react-intl-next';
21
22
  import messages from '../messages';
@@ -30,7 +31,7 @@ var defaultPopperProps = {
30
31
  placement: 'bottom-start'
31
32
  };
32
33
  var packageName = "@atlaskit/color-picker";
33
- var packageVersion = "3.2.16";
34
+ var packageVersion = "3.2.18";
34
35
  var ColorPickerWithoutAnalyticsBase = /*#__PURE__*/function (_React$Component) {
35
36
  _inherits(ColorPickerWithoutAnalyticsBase, _React$Component);
36
37
  var _super = _createSuper(ColorPickerWithoutAnalyticsBase);
@@ -1,6 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import { useCallback } from 'react';
3
3
  import Tooltip from '@atlaskit/tooltip';
4
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
5
  import { css, jsx } from '@emotion/react';
5
6
  import { B100, DN600A, N0 } from '@atlaskit/theme/colors';
6
7
  var ColorCard = function ColorCard(_ref) {
@@ -3,6 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
 
4
4
  import ColorCard from './ColorCard';
5
5
  import { getWidth } from '../utils';
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
7
  import { css, jsx } from '@emotion/react';
7
8
  export var MenuList = function MenuList(props) {
8
9
  var cols = props.selectProps.cols,
@@ -4,10 +4,5 @@ export default defineMessages({
4
4
  id: 'jira.color-picker.src.color-picker-aria-label',
5
5
  defaultMessage: '{color} selected, {message}',
6
6
  description: 'This text is used as aria-label text in color picker component'
7
- },
8
- colorCardRadioItemLabel: {
9
- id: 'jira.color-picker.src.color-card-radio-item-label',
10
- defaultMessage: 'color option',
11
- description: 'This text is used as aria-label text in color card component for radio item'
12
7
  }
13
8
  });
@@ -28,7 +28,7 @@ export interface Props {
28
28
  isDisabledSelectedSwatch?: boolean;
29
29
  }
30
30
  export declare const ColorPickerWithoutAnalytics: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
31
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
31
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>; /** selected color */
32
32
  };
33
33
  declare const _default: React.ForwardRefExoticComponent<Pick<Omit<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "label" | "analyticsContext" | "key" | "onChange" | "checkMarkColor" | "cols" | "popperProps" | "palette" | "selectedColor" | "selectedColourSwatchSize" | "showDefaultSwatchColor" | "isDisabledSelectedSwatch" | "forwardedRef"> & React.RefAttributes<any>>;
34
34
  export default _default;
@@ -4,10 +4,5 @@ declare const _default: {
4
4
  defaultMessage: string;
5
5
  description: string;
6
6
  };
7
- colorCardRadioItemLabel: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
7
  };
13
8
  export default _default;
@@ -28,7 +28,7 @@ export interface Props {
28
28
  isDisabledSelectedSwatch?: boolean;
29
29
  }
30
30
  export declare const ColorPickerWithoutAnalytics: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
31
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
31
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>; /** selected color */
32
32
  };
33
33
  declare const _default: React.ForwardRefExoticComponent<Pick<Omit<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "label" | "analyticsContext" | "key" | "onChange" | "checkMarkColor" | "cols" | "popperProps" | "palette" | "selectedColor" | "selectedColourSwatchSize" | "showDefaultSwatchColor" | "isDisabledSelectedSwatch" | "forwardedRef"> & React.RefAttributes<any>>;
34
34
  export default _default;
@@ -4,10 +4,5 @@ declare const _default: {
4
4
  defaultMessage: string;
5
5
  description: string;
6
6
  };
7
- colorCardRadioItemLabel: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
7
  };
13
8
  export default _default;
package/package.json CHANGED
@@ -1,84 +1,85 @@
1
1
  {
2
- "name": "@atlaskit/color-picker",
3
- "version": "3.2.16",
4
- "description": "Jira Color Picker Component",
5
- "publishConfig": {
6
- "registry": "https://registry.npmjs.org/"
7
- },
8
- "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
- "author": "Atlassian Pty Ltd",
10
- "license": "Apache-2.0",
11
- "main": "dist/cjs/index.js",
12
- "module": "dist/esm/index.js",
13
- "module:es2019": "dist/es2019/index.js",
14
- "types": "dist/types/index.d.ts",
15
- "typesVersions": {
16
- ">=4.5 <4.9": {
17
- "*": [
18
- "dist/types-ts4.5/*",
19
- "dist/types-ts4.5/index.d.ts"
20
- ]
21
- }
22
- },
23
- "atlaskit:src": "src/index.ts",
24
- "atlassian": {
25
- "team": "AAIS: Chronos",
26
- "releaseModel": "continuous",
27
- "productPushConsumption": [
28
- "jira"
29
- ],
30
- "website": {
31
- "name": "Color Picker"
32
- }
33
- },
34
- "dependencies": {
35
- "@atlaskit/analytics-next": "^9.3.0",
36
- "@atlaskit/icon": "^22.3.0",
37
- "@atlaskit/platform-feature-flags": "^0.2.5",
38
- "@atlaskit/select": "^17.10.0",
39
- "@atlaskit/theme": "^12.9.0",
40
- "@atlaskit/tokens": "^1.50.0",
41
- "@atlaskit/tooltip": "^18.4.0",
42
- "@babel/runtime": "^7.0.0",
43
- "@emotion/react": "^11.7.1",
44
- "memoize-one": "^6.0.0",
45
- "react-intl-next": "npm:react-intl@^5.18.1"
46
- },
47
- "peerDependencies": {
48
- "react": "^16.8.0"
49
- },
50
- "devDependencies": {
51
- "@af/visual-regression": "*",
52
- "@atlaskit/primitives": "^7.0.0",
53
- "@atlaskit/visual-regression": "*",
54
- "@testing-library/react": "^12.1.5",
55
- "@testing-library/user-event": "^14.4.3",
56
- "ast-types": "^0.13.3",
57
- "jscodeshift": "^0.13.0",
58
- "react": "^16.8.0",
59
- "typescript": "~5.4.2"
60
- },
61
- "keywords": [
62
- "ui",
63
- "color",
64
- "picker",
65
- "palette"
66
- ],
67
- "af:exports": {
68
- "./ColorPaletteMenu": "./src/components/ColorPaletteMenu.tsx",
69
- ".": "./src/index.ts"
70
- },
71
- "techstack": {
72
- "@repo/internal": {
73
- "design-tokens": [
74
- "color",
75
- "spacing"
76
- ]
77
- }
78
- },
79
- "platform-feature-flags": {
80
- "platform.jca11y-2997-remove-duplicate-screen-reader-announcements_fz13s": {
81
- "type": "boolean"
82
- }
83
- }
84
- }
2
+ "name": "@atlaskit/color-picker",
3
+ "version": "3.2.18",
4
+ "description": "Jira Color Picker Component",
5
+ "publishConfig": {
6
+ "registry": "https://registry.npmjs.org/"
7
+ },
8
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
9
+ "author": "Atlassian Pty Ltd",
10
+ "license": "Apache-2.0",
11
+ "main": "dist/cjs/index.js",
12
+ "module": "dist/esm/index.js",
13
+ "module:es2019": "dist/es2019/index.js",
14
+ "types": "dist/types/index.d.ts",
15
+ "typesVersions": {
16
+ ">=4.5 <4.9": {
17
+ "*": [
18
+ "dist/types-ts4.5/*",
19
+ "dist/types-ts4.5/index.d.ts"
20
+ ]
21
+ }
22
+ },
23
+ "atlaskit:src": "src/index.ts",
24
+ "atlassian": {
25
+ "team": "AAIS: Chronos",
26
+ "releaseModel": "continuous",
27
+ "productPushConsumption": [
28
+ "jira"
29
+ ],
30
+ "website": {
31
+ "name": "Color Picker"
32
+ }
33
+ },
34
+ "dependencies": {
35
+ "@atlaskit/analytics-next": "^9.3.0",
36
+ "@atlaskit/icon": "^22.4.0",
37
+ "@atlaskit/platform-feature-flags": "^0.2.5",
38
+ "@atlaskit/select": "^17.11.0",
39
+ "@atlaskit/theme": "^12.11.0",
40
+ "@atlaskit/tokens": "^1.52.0",
41
+ "@atlaskit/tooltip": "^18.5.0",
42
+ "@babel/runtime": "^7.0.0",
43
+ "@emotion/react": "^11.7.1",
44
+ "memoize-one": "^6.0.0",
45
+ "react-intl-next": "npm:react-intl@^5.18.1",
46
+ "use-callback-ref": "^1.2.3"
47
+ },
48
+ "peerDependencies": {
49
+ "react": "^16.8.0"
50
+ },
51
+ "devDependencies": {
52
+ "@af/visual-regression": "*",
53
+ "@atlaskit/primitives": "^8.0.0",
54
+ "@atlaskit/visual-regression": "*",
55
+ "@testing-library/react": "^12.1.5",
56
+ "@testing-library/user-event": "^14.4.3",
57
+ "ast-types": "^0.13.3",
58
+ "jscodeshift": "^0.13.0",
59
+ "react": "^16.8.0",
60
+ "typescript": "~5.4.2"
61
+ },
62
+ "keywords": [
63
+ "ui",
64
+ "color",
65
+ "picker",
66
+ "palette"
67
+ ],
68
+ "af:exports": {
69
+ "./ColorPaletteMenu": "./src/components/ColorPaletteMenu.tsx",
70
+ ".": "./src/index.ts"
71
+ },
72
+ "techstack": {
73
+ "@repo/internal": {
74
+ "design-tokens": [
75
+ "color",
76
+ "spacing"
77
+ ]
78
+ }
79
+ },
80
+ "platform-feature-flags": {
81
+ "platform.jca11y-2997-remove-duplicate-screen-reader-announcements_fz13s": {
82
+ "type": "boolean"
83
+ }
84
+ }
85
+ }