@atlaskit/color-picker 3.2.15 → 3.2.17
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 +17 -0
- package/dist/cjs/components/ColorCard.js +11 -7
- package/dist/cjs/components/ColorPaletteMenu.js +11 -4
- package/dist/cjs/components/ColorPicker.js +2 -2
- package/dist/cjs/components/Trigger.js +4 -0
- package/dist/cjs/components/components.js +3 -0
- package/dist/cjs/messages.js +5 -0
- package/dist/es2019/components/ColorCard.js +11 -7
- package/dist/es2019/components/ColorPaletteMenu.js +10 -4
- package/dist/es2019/components/ColorPicker.js +2 -1
- package/dist/es2019/components/Trigger.js +3 -0
- package/dist/es2019/components/components.js +2 -0
- package/dist/es2019/messages.js +5 -0
- package/dist/esm/components/ColorCard.js +10 -7
- package/dist/esm/components/ColorPaletteMenu.js +10 -4
- package/dist/esm/components/ColorPicker.js +2 -1
- package/dist/esm/components/Trigger.js +3 -0
- package/dist/esm/components/components.js +2 -0
- package/dist/esm/messages.js +5 -0
- package/dist/types/components/ColorPicker.d.ts +1 -1
- package/dist/types/messages.d.ts +5 -0
- package/dist/types-ts4.5/components/ColorPicker.d.ts +1 -1
- package/dist/types-ts4.5/messages.d.ts +5 -0
- package/docs/0-intro.tsx +1 -0
- package/package.json +83 -83
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/color-picker
|
|
2
2
|
|
|
3
|
+
## 3.2.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#111482](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111482)
|
|
8
|
+
[`6ec58a4845b8d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6ec58a4845b8d) -
|
|
9
|
+
added default implementation at FF false case
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 3.2.16
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#107395](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/107395)
|
|
17
|
+
[`9a4ffd1c2458e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9a4ffd1c2458e) -
|
|
18
|
+
added different label for radio item
|
|
19
|
+
|
|
3
20
|
## 3.2.15
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -6,18 +6,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
10
|
var _done = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/done"));
|
|
12
11
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
13
12
|
var _constants = require("../constants");
|
|
14
13
|
var _react2 = require("@emotion/react");
|
|
14
|
+
var _reactIntlNext = require("react-intl-next");
|
|
15
15
|
var _colors = require("@atlaskit/theme/colors");
|
|
16
16
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
|
+
var _messages = _interopRequireDefault(require("../messages"));
|
|
17
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); }
|
|
18
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; }
|
|
19
20
|
/** @jsx jsx */
|
|
20
21
|
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
|
+
|
|
21
24
|
var ColorCard = function ColorCard(props) {
|
|
22
25
|
var value = props.value,
|
|
23
26
|
label = props.label,
|
|
@@ -29,6 +32,8 @@ var ColorCard = function ColorCard(props) {
|
|
|
29
32
|
onClick = props.onClick,
|
|
30
33
|
onKeyDown = props.onKeyDown;
|
|
31
34
|
var ref = (0, _react.useRef)(null);
|
|
35
|
+
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
36
|
+
formatMessage = _useIntl.formatMessage;
|
|
32
37
|
var handleMouseDown = (0, _react.useCallback)(function (event) {
|
|
33
38
|
event.preventDefault();
|
|
34
39
|
}, []);
|
|
@@ -63,19 +68,17 @@ var ColorCard = function ColorCard(props) {
|
|
|
63
68
|
}, []);
|
|
64
69
|
return (0, _react2.jsx)(_tooltip.default, {
|
|
65
70
|
content: label
|
|
66
|
-
}, (0, _react2.jsx)("div",
|
|
71
|
+
}, (0, _react2.jsx)("div", {
|
|
67
72
|
css: [sharedColorContainerStyles, (isTabbing === undefined || isTabbing) && colorCardOptionTabbingStyles, focused && !isTabbing && colorCardOptionFocusedStyles],
|
|
68
73
|
onClick: handleClick,
|
|
69
74
|
onMouseDown: handleMouseDown,
|
|
70
75
|
onKeyDown: handleKeyDown,
|
|
71
76
|
role: "radio",
|
|
72
|
-
"aria-checked": selected
|
|
73
|
-
|
|
74
|
-
'aria-label': label
|
|
75
|
-
}, {
|
|
77
|
+
"aria-checked": selected,
|
|
78
|
+
"aria-label": (0, _platformFeatureFlags.getBooleanFF)('platform.jca11y-2997-remove-duplicate-screen-reader-announcements_fz13s') ? formatMessage(_messages.default.colorCardRadioItemLabel) : label,
|
|
76
79
|
tabIndex: 0,
|
|
77
80
|
ref: ref
|
|
78
|
-
}
|
|
81
|
+
}, (0, _react2.jsx)("div", {
|
|
79
82
|
css: colorCardWrapperStyles
|
|
80
83
|
}, (0, _react2.jsx)("div", {
|
|
81
84
|
css: colorCardContentStyles,
|
|
@@ -91,6 +94,7 @@ var ColorCard = function ColorCard(props) {
|
|
|
91
94
|
};
|
|
92
95
|
var _default = exports.default = ColorCard;
|
|
93
96
|
var colorCardOptionTabbingStyles = (0, _react2.css)({
|
|
97
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
94
98
|
':hover, :focus': {
|
|
95
99
|
borderColor: "var(--ds-border-focused, ".concat(_colors.B75, ")")
|
|
96
100
|
}
|
|
@@ -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.
|
|
39
|
+
packageVersion: "3.2.17"
|
|
38
40
|
}
|
|
39
41
|
})(createAnalyticsEvent);
|
|
40
42
|
}
|
|
@@ -49,13 +51,18 @@ var ColorPaletteMenuWithoutAnalytics = exports.ColorPaletteMenuWithoutAnalytics
|
|
|
49
51
|
var fullLabel = "".concat(label, ", ").concat(selectedValue.label, " selected");
|
|
50
52
|
return (0, _react.jsx)("div", {
|
|
51
53
|
"aria-label": fullLabel,
|
|
52
|
-
role: "radiogroup"
|
|
54
|
+
role: "radiogroup"
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
56
|
+
,
|
|
53
57
|
css: [colorPaletteMenuStyles, mode === _types.Mode.Standard && colorPaletteMenuStandardStyles],
|
|
54
58
|
style: {
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
55
60
|
width: "".concat((0, _utils.getWidth)(cols, mode), "px")
|
|
56
61
|
}
|
|
57
62
|
}, (0, _react.jsx)("div", {
|
|
58
|
-
css: [colorPaletteContainerStyles,
|
|
63
|
+
css: [colorPaletteContainerStyles,
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
65
|
+
mode === _types.Mode.Compact && colorPaletteContainerCompactStyles]
|
|
59
66
|
}, options.map(function (_ref2) {
|
|
60
67
|
var label = _ref2.label,
|
|
61
68
|
value = _ref2.value;
|
|
@@ -76,7 +83,7 @@ var ColorPaletteMenuWithoutAnalytics = exports.ColorPaletteMenuWithoutAnalytics
|
|
|
76
83
|
var _default = exports.default = (0, _analyticsNext.withAnalyticsContext)({
|
|
77
84
|
componentName: 'color-picker',
|
|
78
85
|
packageName: "@atlaskit/color-picker",
|
|
79
|
-
packageVersion: "3.2.
|
|
86
|
+
packageVersion: "3.2.17"
|
|
80
87
|
})((0, _analyticsNext.withAnalyticsEvents)()(ColorPaletteMenuWithoutAnalytics));
|
|
81
88
|
var colorCardWrapperStyles = (0, _react.css)({
|
|
82
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.
|
|
42
|
+
var packageVersion = "3.2.17";
|
|
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,
|
|
@@ -73,9 +75,11 @@ var defaultColorContainerSize = (0, _react2.css)({
|
|
|
73
75
|
height: "var(--ds-space-400, 32px)"
|
|
74
76
|
});
|
|
75
77
|
var colorCardButtonStyles = (0, _react2.css)({
|
|
78
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
76
79
|
':hover': {
|
|
77
80
|
borderColor: "var(--ds-background-neutral-subtle, ".concat(_colors.N0, ")")
|
|
78
81
|
},
|
|
82
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
79
83
|
':not(:focus):hover, :focus': {
|
|
80
84
|
borderColor: "var(--ds-border-focused, ".concat(_colors.B100, ")"),
|
|
81
85
|
outline: 'none'
|
|
@@ -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,
|
|
@@ -19,6 +21,7 @@ var MenuList = exports.MenuList = function MenuList(props) {
|
|
|
19
21
|
css: colorPaletteContainerStyles,
|
|
20
22
|
role: "radiogroup",
|
|
21
23
|
style: {
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
22
25
|
maxWidth: cols ? (0, _utils.getWidth)(cols) : undefined
|
|
23
26
|
},
|
|
24
27
|
ref: innerRef
|
package/dist/cjs/messages.js
CHANGED
|
@@ -10,5 +10,10 @@ 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'
|
|
13
18
|
}
|
|
14
19
|
});
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
/** @jsx jsx */
|
|
3
2
|
import React, { useCallback, useEffect, useRef } from 'react';
|
|
4
3
|
import EditorDoneIcon from '@atlaskit/icon/glyph/editor/done';
|
|
5
4
|
import Tooltip from '@atlaskit/tooltip';
|
|
6
5
|
import { KEY_ENTER, KEY_SPACE } from '../constants';
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
|
+
import { useIntl } from 'react-intl-next';
|
|
8
9
|
import { N0, DN600A, B75 } from '@atlaskit/theme/colors';
|
|
9
10
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
11
|
+
import messages from '../messages';
|
|
10
12
|
const ColorCard = props => {
|
|
11
13
|
const {
|
|
12
14
|
value,
|
|
@@ -19,6 +21,9 @@ const ColorCard = props => {
|
|
|
19
21
|
onKeyDown
|
|
20
22
|
} = props;
|
|
21
23
|
const ref = useRef(null);
|
|
24
|
+
const {
|
|
25
|
+
formatMessage
|
|
26
|
+
} = useIntl();
|
|
22
27
|
const handleMouseDown = useCallback(event => {
|
|
23
28
|
event.preventDefault();
|
|
24
29
|
}, []);
|
|
@@ -55,19 +60,17 @@ const ColorCard = props => {
|
|
|
55
60
|
}, []);
|
|
56
61
|
return jsx(Tooltip, {
|
|
57
62
|
content: label
|
|
58
|
-
}, jsx("div",
|
|
63
|
+
}, jsx("div", {
|
|
59
64
|
css: [sharedColorContainerStyles, (isTabbing === undefined || isTabbing) && colorCardOptionTabbingStyles, focused && !isTabbing && colorCardOptionFocusedStyles],
|
|
60
65
|
onClick: handleClick,
|
|
61
66
|
onMouseDown: handleMouseDown,
|
|
62
67
|
onKeyDown: handleKeyDown,
|
|
63
68
|
role: "radio",
|
|
64
|
-
"aria-checked": selected
|
|
65
|
-
|
|
66
|
-
'aria-label': label
|
|
67
|
-
}, {
|
|
69
|
+
"aria-checked": selected,
|
|
70
|
+
"aria-label": getBooleanFF('platform.jca11y-2997-remove-duplicate-screen-reader-announcements_fz13s') ? formatMessage(messages.colorCardRadioItemLabel) : label,
|
|
68
71
|
tabIndex: 0,
|
|
69
72
|
ref: ref
|
|
70
|
-
}
|
|
73
|
+
}, jsx("div", {
|
|
71
74
|
css: colorCardWrapperStyles
|
|
72
75
|
}, jsx("div", {
|
|
73
76
|
css: colorCardContentStyles,
|
|
@@ -83,6 +86,7 @@ const ColorCard = props => {
|
|
|
83
86
|
};
|
|
84
87
|
export default ColorCard;
|
|
85
88
|
const colorCardOptionTabbingStyles = css({
|
|
89
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
86
90
|
':hover, :focus': {
|
|
87
91
|
borderColor: `var(--ds-border-focused, ${B75})`
|
|
88
92
|
}
|
|
@@ -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.
|
|
28
|
+
packageVersion: "3.2.17"
|
|
28
29
|
}
|
|
29
30
|
})(createAnalyticsEvent);
|
|
30
31
|
}
|
|
@@ -40,13 +41,18 @@ export const ColorPaletteMenuWithoutAnalytics = ({
|
|
|
40
41
|
const fullLabel = `${label}, ${selectedValue.label} selected`;
|
|
41
42
|
return jsx("div", {
|
|
42
43
|
"aria-label": fullLabel,
|
|
43
|
-
role: "radiogroup"
|
|
44
|
+
role: "radiogroup"
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
46
|
+
,
|
|
44
47
|
css: [colorPaletteMenuStyles, mode === Mode.Standard && colorPaletteMenuStandardStyles],
|
|
45
48
|
style: {
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
46
50
|
width: `${getWidth(cols, mode)}px`
|
|
47
51
|
}
|
|
48
52
|
}, jsx("div", {
|
|
49
|
-
css: [colorPaletteContainerStyles,
|
|
53
|
+
css: [colorPaletteContainerStyles,
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
55
|
+
mode === Mode.Compact && colorPaletteContainerCompactStyles]
|
|
50
56
|
}, options.map(({
|
|
51
57
|
label,
|
|
52
58
|
value
|
|
@@ -66,7 +72,7 @@ export const ColorPaletteMenuWithoutAnalytics = ({
|
|
|
66
72
|
export default withAnalyticsContext({
|
|
67
73
|
componentName: 'color-picker',
|
|
68
74
|
packageName: "@atlaskit/color-picker",
|
|
69
|
-
packageVersion: "3.2.
|
|
75
|
+
packageVersion: "3.2.17"
|
|
70
76
|
})(withAnalyticsEvents()(ColorPaletteMenuWithoutAnalytics));
|
|
71
77
|
const colorCardWrapperStyles = css({
|
|
72
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.
|
|
26
|
+
const packageVersion = "3.2.17";
|
|
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 = ({
|
|
@@ -65,9 +66,11 @@ const defaultColorContainerSize = css({
|
|
|
65
66
|
height: "var(--ds-space-400, 32px)"
|
|
66
67
|
});
|
|
67
68
|
const colorCardButtonStyles = css({
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
68
70
|
':hover': {
|
|
69
71
|
borderColor: `var(--ds-background-neutral-subtle, ${N0})`
|
|
70
72
|
},
|
|
73
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
71
74
|
':not(:focus):hover, :focus': {
|
|
72
75
|
borderColor: `var(--ds-border-focused, ${B100})`,
|
|
73
76
|
outline: 'none'
|
|
@@ -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 {
|
|
@@ -16,6 +17,7 @@ export const MenuList = props => {
|
|
|
16
17
|
css: colorPaletteContainerStyles,
|
|
17
18
|
role: "radiogroup",
|
|
18
19
|
style: {
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
19
21
|
maxWidth: cols ? getWidth(cols) : undefined
|
|
20
22
|
},
|
|
21
23
|
ref: innerRef
|
package/dist/es2019/messages.js
CHANGED
|
@@ -4,5 +4,10 @@ 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'
|
|
7
12
|
}
|
|
8
13
|
});
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
2
1
|
/** @jsx jsx */
|
|
3
2
|
import React, { useCallback, useEffect, useRef } from 'react';
|
|
4
3
|
import EditorDoneIcon from '@atlaskit/icon/glyph/editor/done';
|
|
5
4
|
import Tooltip from '@atlaskit/tooltip';
|
|
6
5
|
import { KEY_ENTER, KEY_SPACE } from '../constants';
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
|
+
import { useIntl } from 'react-intl-next';
|
|
8
9
|
import { N0, DN600A, B75 } from '@atlaskit/theme/colors';
|
|
9
10
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
11
|
+
import messages from '../messages';
|
|
10
12
|
var ColorCard = function ColorCard(props) {
|
|
11
13
|
var value = props.value,
|
|
12
14
|
label = props.label,
|
|
@@ -18,6 +20,8 @@ var ColorCard = function ColorCard(props) {
|
|
|
18
20
|
onClick = props.onClick,
|
|
19
21
|
onKeyDown = props.onKeyDown;
|
|
20
22
|
var ref = useRef(null);
|
|
23
|
+
var _useIntl = useIntl(),
|
|
24
|
+
formatMessage = _useIntl.formatMessage;
|
|
21
25
|
var handleMouseDown = useCallback(function (event) {
|
|
22
26
|
event.preventDefault();
|
|
23
27
|
}, []);
|
|
@@ -52,19 +56,17 @@ var ColorCard = function ColorCard(props) {
|
|
|
52
56
|
}, []);
|
|
53
57
|
return jsx(Tooltip, {
|
|
54
58
|
content: label
|
|
55
|
-
}, jsx("div",
|
|
59
|
+
}, jsx("div", {
|
|
56
60
|
css: [sharedColorContainerStyles, (isTabbing === undefined || isTabbing) && colorCardOptionTabbingStyles, focused && !isTabbing && colorCardOptionFocusedStyles],
|
|
57
61
|
onClick: handleClick,
|
|
58
62
|
onMouseDown: handleMouseDown,
|
|
59
63
|
onKeyDown: handleKeyDown,
|
|
60
64
|
role: "radio",
|
|
61
|
-
"aria-checked": selected
|
|
62
|
-
|
|
63
|
-
'aria-label': label
|
|
64
|
-
}, {
|
|
65
|
+
"aria-checked": selected,
|
|
66
|
+
"aria-label": getBooleanFF('platform.jca11y-2997-remove-duplicate-screen-reader-announcements_fz13s') ? formatMessage(messages.colorCardRadioItemLabel) : label,
|
|
65
67
|
tabIndex: 0,
|
|
66
68
|
ref: ref
|
|
67
|
-
}
|
|
69
|
+
}, jsx("div", {
|
|
68
70
|
css: colorCardWrapperStyles
|
|
69
71
|
}, jsx("div", {
|
|
70
72
|
css: colorCardContentStyles,
|
|
@@ -80,6 +82,7 @@ var ColorCard = function ColorCard(props) {
|
|
|
80
82
|
};
|
|
81
83
|
export default ColorCard;
|
|
82
84
|
var colorCardOptionTabbingStyles = css({
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
83
86
|
':hover, :focus': {
|
|
84
87
|
borderColor: "var(--ds-border-focused, ".concat(B75, ")")
|
|
85
88
|
}
|
|
@@ -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.
|
|
30
|
+
packageVersion: "3.2.17"
|
|
30
31
|
}
|
|
31
32
|
})(createAnalyticsEvent);
|
|
32
33
|
}
|
|
@@ -41,13 +42,18 @@ export var ColorPaletteMenuWithoutAnalytics = function ColorPaletteMenuWithoutAn
|
|
|
41
42
|
var fullLabel = "".concat(label, ", ").concat(selectedValue.label, " selected");
|
|
42
43
|
return jsx("div", {
|
|
43
44
|
"aria-label": fullLabel,
|
|
44
|
-
role: "radiogroup"
|
|
45
|
+
role: "radiogroup"
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
47
|
+
,
|
|
45
48
|
css: [colorPaletteMenuStyles, mode === Mode.Standard && colorPaletteMenuStandardStyles],
|
|
46
49
|
style: {
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
47
51
|
width: "".concat(getWidth(cols, mode), "px")
|
|
48
52
|
}
|
|
49
53
|
}, jsx("div", {
|
|
50
|
-
css: [colorPaletteContainerStyles,
|
|
54
|
+
css: [colorPaletteContainerStyles,
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
56
|
+
mode === Mode.Compact && colorPaletteContainerCompactStyles]
|
|
51
57
|
}, options.map(function (_ref2) {
|
|
52
58
|
var label = _ref2.label,
|
|
53
59
|
value = _ref2.value;
|
|
@@ -68,7 +74,7 @@ export var ColorPaletteMenuWithoutAnalytics = function ColorPaletteMenuWithoutAn
|
|
|
68
74
|
export default withAnalyticsContext({
|
|
69
75
|
componentName: 'color-picker',
|
|
70
76
|
packageName: "@atlaskit/color-picker",
|
|
71
|
-
packageVersion: "3.2.
|
|
77
|
+
packageVersion: "3.2.17"
|
|
72
78
|
})(withAnalyticsEvents()(ColorPaletteMenuWithoutAnalytics));
|
|
73
79
|
var colorCardWrapperStyles = css({
|
|
74
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.
|
|
34
|
+
var packageVersion = "3.2.17";
|
|
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) {
|
|
@@ -65,9 +66,11 @@ var defaultColorContainerSize = css({
|
|
|
65
66
|
height: "var(--ds-space-400, 32px)"
|
|
66
67
|
});
|
|
67
68
|
var colorCardButtonStyles = css({
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
68
70
|
':hover': {
|
|
69
71
|
borderColor: "var(--ds-background-neutral-subtle, ".concat(N0, ")")
|
|
70
72
|
},
|
|
73
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
71
74
|
':not(:focus):hover, :focus': {
|
|
72
75
|
borderColor: "var(--ds-border-focused, ".concat(B100, ")"),
|
|
73
76
|
outline: 'none'
|
|
@@ -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,
|
|
@@ -12,6 +13,7 @@ export var MenuList = function MenuList(props) {
|
|
|
12
13
|
css: colorPaletteContainerStyles,
|
|
13
14
|
role: "radiogroup",
|
|
14
15
|
style: {
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
15
17
|
maxWidth: cols ? getWidth(cols) : undefined
|
|
16
18
|
},
|
|
17
19
|
ref: innerRef
|
package/dist/esm/messages.js
CHANGED
|
@@ -4,5 +4,10 @@ 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'
|
|
7
12
|
}
|
|
8
13
|
});
|
|
@@ -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;
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -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;
|
package/docs/0-intro.tsx
CHANGED
package/package.json
CHANGED
|
@@ -1,84 +1,84 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
2
|
+
"name": "@atlaskit/color-picker",
|
|
3
|
+
"version": "3.2.17",
|
|
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.10.0",
|
|
40
|
+
"@atlaskit/tokens": "^1.51.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
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"react": "^16.8.0"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@af/visual-regression": "*",
|
|
52
|
+
"@atlaskit/primitives": "^7.4.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
|
+
}
|