@atlaskit/color-picker 3.2.27 → 3.3.0
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 +13 -0
- package/dist/cjs/components/ColorCard.js +1 -1
- package/dist/cjs/components/ColorPaletteMenu.js +2 -2
- package/dist/cjs/components/ColorPicker.js +3 -3
- package/dist/cjs/components/Trigger.js +2 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es2019/components/ColorPaletteMenu.js +2 -2
- package/dist/es2019/components/ColorPicker.js +1 -1
- package/dist/es2019/components/Trigger.js +2 -1
- package/dist/esm/components/ColorPaletteMenu.js +2 -2
- package/dist/esm/components/ColorPicker.js +2 -2
- package/dist/esm/components/Trigger.js +2 -1
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/color-picker
|
|
2
2
|
|
|
3
|
+
## 3.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#134622](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/134622)
|
|
8
|
+
[`66b5d35764e86`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/66b5d35764e86) -
|
|
9
|
+
Added feature flag for hiding trigger focus styles on expand
|
|
10
|
+
(https://product-fabric.atlassian.net/browse/DSP-20821)
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 3.2.27
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -16,7 +16,7 @@ var _react2 = require("@emotion/react");
|
|
|
16
16
|
var _colors = require("@atlaskit/theme/colors");
|
|
17
17
|
var _useCallbackRef = require("use-callback-ref");
|
|
18
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); }
|
|
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 &&
|
|
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 && {}.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; }
|
|
20
20
|
/**
|
|
21
21
|
* @jsxRuntime classic
|
|
22
22
|
* @jsx jsx
|
|
@@ -59,7 +59,7 @@ var ColorPaletteMenuWithoutAnalytics = exports.ColorPaletteMenuWithoutAnalytics
|
|
|
59
59
|
attributes: {
|
|
60
60
|
componentName: 'color-picker',
|
|
61
61
|
packageName: "@atlaskit/color-picker",
|
|
62
|
-
packageVersion: "3.
|
|
62
|
+
packageVersion: "3.3.0"
|
|
63
63
|
}
|
|
64
64
|
})(createAnalyticsEvent);
|
|
65
65
|
}
|
|
@@ -143,7 +143,7 @@ var ColorPaletteMenuWithoutAnalytics = exports.ColorPaletteMenuWithoutAnalytics
|
|
|
143
143
|
var _default = exports.default = (0, _analyticsNext.withAnalyticsContext)({
|
|
144
144
|
componentName: 'color-picker',
|
|
145
145
|
packageName: "@atlaskit/color-picker",
|
|
146
|
-
packageVersion: "3.
|
|
146
|
+
packageVersion: "3.3.0"
|
|
147
147
|
})((0, _analyticsNext.withAnalyticsEvents)()(ColorPaletteMenuWithoutAnalytics));
|
|
148
148
|
var colorCardWrapperStyles = (0, _react2.css)({
|
|
149
149
|
display: 'flex',
|
|
@@ -25,8 +25,8 @@ var _react2 = require("@emotion/react");
|
|
|
25
25
|
var _reactIntlNext = require("react-intl-next");
|
|
26
26
|
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
|
-
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 &&
|
|
29
|
-
function _createSuper(
|
|
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 && {}.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
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
|
|
30
30
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
31
31
|
* @jsxRuntime classic
|
|
32
32
|
* @jsx jsx
|
|
@@ -42,7 +42,7 @@ var defaultPopperProps = {
|
|
|
42
42
|
placement: 'bottom-start'
|
|
43
43
|
};
|
|
44
44
|
var packageName = "@atlaskit/color-picker";
|
|
45
|
-
var packageVersion = "3.
|
|
45
|
+
var packageVersion = "3.3.0";
|
|
46
46
|
var ColorPickerWithoutAnalyticsBase = /*#__PURE__*/function (_React$Component) {
|
|
47
47
|
(0, _inherits2.default)(ColorPickerWithoutAnalyticsBase, _React$Component);
|
|
48
48
|
var _super = _createSuper(ColorPickerWithoutAnalyticsBase);
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
10
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
10
11
|
var _react2 = require("@emotion/react");
|
|
11
12
|
var _colors = require("@atlaskit/theme/colors");
|
|
12
13
|
/**
|
|
@@ -38,7 +39,7 @@ var ColorCard = function ColorCard(_ref) {
|
|
|
38
39
|
return (0, _react2.jsx)(_tooltip.default, {
|
|
39
40
|
content: label
|
|
40
41
|
}, (0, _react2.jsx)("button", {
|
|
41
|
-
css: [sharedColorContainerStyles, swatchSize === 'small' ? smallColorContainerSize : defaultColorContainerSize, colorCardButtonStyles, expanded && colorCardButtonFocusedStyles],
|
|
42
|
+
css: [sharedColorContainerStyles, swatchSize === 'small' ? smallColorContainerSize : defaultColorContainerSize, colorCardButtonStyles, expanded && !(0, _platformFeatureFlags.fg)('platform-design-system-dsp-20821-color-pickr-focus') && colorCardButtonFocusedStyles],
|
|
42
43
|
disabled: isDisabled,
|
|
43
44
|
onClick: handleClick,
|
|
44
45
|
onMouseDown: handleMouseDown,
|
package/dist/cjs/index.js
CHANGED
|
@@ -27,7 +27,7 @@ var _ColorPicker = _interopRequireWildcard(require("./components/ColorPicker"));
|
|
|
27
27
|
var _types = require("./types");
|
|
28
28
|
var _ColorPaletteMenu = _interopRequireWildcard(require("./components/ColorPaletteMenu"));
|
|
29
29
|
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); }
|
|
30
|
-
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 &&
|
|
30
|
+
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 && {}.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; }
|
|
31
31
|
var Compact = exports.Compact = _types.Mode.Compact,
|
|
32
32
|
Standard = exports.Standard = _types.Mode.Standard;
|
|
33
33
|
var _default = exports.default = _ColorPicker.default;
|
|
@@ -43,7 +43,7 @@ export const ColorPaletteMenuWithoutAnalytics = ({
|
|
|
43
43
|
attributes: {
|
|
44
44
|
componentName: 'color-picker',
|
|
45
45
|
packageName: "@atlaskit/color-picker",
|
|
46
|
-
packageVersion: "3.
|
|
46
|
+
packageVersion: "3.3.0"
|
|
47
47
|
}
|
|
48
48
|
})(createAnalyticsEvent);
|
|
49
49
|
}
|
|
@@ -120,7 +120,7 @@ export const ColorPaletteMenuWithoutAnalytics = ({
|
|
|
120
120
|
export default withAnalyticsContext({
|
|
121
121
|
componentName: 'color-picker',
|
|
122
122
|
packageName: "@atlaskit/color-picker",
|
|
123
|
-
packageVersion: "3.
|
|
123
|
+
packageVersion: "3.3.0"
|
|
124
124
|
})(withAnalyticsEvents()(ColorPaletteMenuWithoutAnalytics));
|
|
125
125
|
const colorCardWrapperStyles = css({
|
|
126
126
|
display: 'flex',
|
|
@@ -26,7 +26,7 @@ const defaultPopperProps = {
|
|
|
26
26
|
placement: 'bottom-start'
|
|
27
27
|
};
|
|
28
28
|
const packageName = "@atlaskit/color-picker";
|
|
29
|
-
const packageVersion = "3.
|
|
29
|
+
const packageVersion = "3.3.0";
|
|
30
30
|
class ColorPickerWithoutAnalyticsBase extends React.Component {
|
|
31
31
|
constructor(...args) {
|
|
32
32
|
super(...args);
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { useCallback } from 'react';
|
|
6
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
9
|
import { css, jsx } from '@emotion/react';
|
|
9
10
|
import { B100, DN600A, N0 } from '@atlaskit/theme/colors';
|
|
@@ -29,7 +30,7 @@ const ColorCard = ({
|
|
|
29
30
|
return jsx(Tooltip, {
|
|
30
31
|
content: label
|
|
31
32
|
}, jsx("button", {
|
|
32
|
-
css: [sharedColorContainerStyles, swatchSize === 'small' ? smallColorContainerSize : defaultColorContainerSize, colorCardButtonStyles, expanded && colorCardButtonFocusedStyles],
|
|
33
|
+
css: [sharedColorContainerStyles, swatchSize === 'small' ? smallColorContainerSize : defaultColorContainerSize, colorCardButtonStyles, expanded && !fg('platform-design-system-dsp-20821-color-pickr-focus') && colorCardButtonFocusedStyles],
|
|
33
34
|
disabled: isDisabled,
|
|
34
35
|
onClick: handleClick,
|
|
35
36
|
onMouseDown: handleMouseDown,
|
|
@@ -50,7 +50,7 @@ export var ColorPaletteMenuWithoutAnalytics = function ColorPaletteMenuWithoutAn
|
|
|
50
50
|
attributes: {
|
|
51
51
|
componentName: 'color-picker',
|
|
52
52
|
packageName: "@atlaskit/color-picker",
|
|
53
|
-
packageVersion: "3.
|
|
53
|
+
packageVersion: "3.3.0"
|
|
54
54
|
}
|
|
55
55
|
})(createAnalyticsEvent);
|
|
56
56
|
}
|
|
@@ -134,7 +134,7 @@ export var ColorPaletteMenuWithoutAnalytics = function ColorPaletteMenuWithoutAn
|
|
|
134
134
|
export default withAnalyticsContext({
|
|
135
135
|
componentName: 'color-picker',
|
|
136
136
|
packageName: "@atlaskit/color-picker",
|
|
137
|
-
packageVersion: "3.
|
|
137
|
+
packageVersion: "3.3.0"
|
|
138
138
|
})(withAnalyticsEvents()(ColorPaletteMenuWithoutAnalytics));
|
|
139
139
|
var colorCardWrapperStyles = css({
|
|
140
140
|
display: 'flex',
|
|
@@ -6,7 +6,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
|
-
function _createSuper(
|
|
9
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
/**
|
|
12
12
|
* @jsxRuntime classic
|
|
@@ -34,7 +34,7 @@ var defaultPopperProps = {
|
|
|
34
34
|
placement: 'bottom-start'
|
|
35
35
|
};
|
|
36
36
|
var packageName = "@atlaskit/color-picker";
|
|
37
|
-
var packageVersion = "3.
|
|
37
|
+
var packageVersion = "3.3.0";
|
|
38
38
|
var ColorPickerWithoutAnalyticsBase = /*#__PURE__*/function (_React$Component) {
|
|
39
39
|
_inherits(ColorPickerWithoutAnalyticsBase, _React$Component);
|
|
40
40
|
var _super = _createSuper(ColorPickerWithoutAnalyticsBase);
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { useCallback } from 'react';
|
|
6
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
9
|
import { css, jsx } from '@emotion/react';
|
|
9
10
|
import { B100, DN600A, N0 } from '@atlaskit/theme/colors';
|
|
@@ -29,7 +30,7 @@ var ColorCard = function ColorCard(_ref) {
|
|
|
29
30
|
return jsx(Tooltip, {
|
|
30
31
|
content: label
|
|
31
32
|
}, jsx("button", {
|
|
32
|
-
css: [sharedColorContainerStyles, swatchSize === 'small' ? smallColorContainerSize : defaultColorContainerSize, colorCardButtonStyles, expanded && colorCardButtonFocusedStyles],
|
|
33
|
+
css: [sharedColorContainerStyles, swatchSize === 'small' ? smallColorContainerSize : defaultColorContainerSize, colorCardButtonStyles, expanded && !fg('platform-design-system-dsp-20821-color-pickr-focus') && colorCardButtonFocusedStyles],
|
|
33
34
|
disabled: isDisabled,
|
|
34
35
|
onClick: handleClick,
|
|
35
36
|
onMouseDown: handleMouseDown,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/color-picker",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "Jira Color Picker Component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
33
|
-
"@atlaskit/icon": "^22.
|
|
33
|
+
"@atlaskit/icon": "^22.18.0",
|
|
34
34
|
"@atlaskit/platform-feature-flags": "0.3.0",
|
|
35
|
-
"@atlaskit/select": "^17.
|
|
35
|
+
"@atlaskit/select": "^17.18.0",
|
|
36
36
|
"@atlaskit/theme": "^13.0.0",
|
|
37
37
|
"@atlaskit/tokens": "^1.59.0",
|
|
38
38
|
"@atlaskit/tooltip": "^18.7.0",
|
|
@@ -77,6 +77,9 @@
|
|
|
77
77
|
"platform-feature-flags": {
|
|
78
78
|
"platform_color_palette_menu_timeline_bar_a11y": {
|
|
79
79
|
"type": "boolean"
|
|
80
|
+
},
|
|
81
|
+
"platform-design-system-dsp-20821-color-pickr-focus": {
|
|
82
|
+
"type": "boolean"
|
|
80
83
|
}
|
|
81
84
|
}
|
|
82
85
|
}
|