@atlaskit/color-picker 5.2.4 → 5.2.6
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/afm-cc/tsconfig.json +1 -1
- package/dist/cjs/components/ColorPaletteMenu.js +2 -2
- package/dist/cjs/components/ColorPicker.js +1 -1
- package/dist/cjs/utils.js +2 -6
- package/dist/es2019/components/ColorPaletteMenu.js +2 -2
- package/dist/es2019/components/ColorPicker.js +1 -1
- package/dist/es2019/utils.js +2 -5
- package/dist/esm/components/ColorPaletteMenu.js +2 -2
- package/dist/esm/components/ColorPicker.js +1 -1
- package/dist/esm/utils.js +2 -5
- package/package.json +5 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/color-picker
|
|
2
2
|
|
|
3
|
+
## 5.2.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`20a5aa8c4e7a0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/20a5aa8c4e7a0) -
|
|
8
|
+
Removed gridSize import. No visual changes.
|
|
9
|
+
|
|
10
|
+
## 5.2.5
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 5.2.4
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -61,7 +61,7 @@ var ColorPaletteMenuWithoutAnalytics = exports.ColorPaletteMenuWithoutAnalytics
|
|
|
61
61
|
attributes: {
|
|
62
62
|
componentName: 'color-picker',
|
|
63
63
|
packageName: "@atlaskit/color-picker",
|
|
64
|
-
packageVersion: "5.2.
|
|
64
|
+
packageVersion: "5.2.5"
|
|
65
65
|
}
|
|
66
66
|
})(createAnalyticsEvent);
|
|
67
67
|
}
|
|
@@ -146,7 +146,7 @@ var ColorPaletteMenuWithoutAnalytics = exports.ColorPaletteMenuWithoutAnalytics
|
|
|
146
146
|
var _default = exports.default = (0, _analyticsNext.withAnalyticsContext)({
|
|
147
147
|
componentName: 'color-picker',
|
|
148
148
|
packageName: "@atlaskit/color-picker",
|
|
149
|
-
packageVersion: "5.2.
|
|
149
|
+
packageVersion: "5.2.5"
|
|
150
150
|
})((0, _analyticsNext.withAnalyticsEvents)()(ColorPaletteMenuWithoutAnalytics));
|
|
151
151
|
var colorCardWrapperStyles = null;
|
|
152
152
|
var colorPaletteContainerStyles = null;
|
|
@@ -39,7 +39,7 @@ var defaultPopperProps = {
|
|
|
39
39
|
placement: 'bottom-start'
|
|
40
40
|
};
|
|
41
41
|
var packageName = "@atlaskit/color-picker";
|
|
42
|
-
var packageVersion = "5.2.
|
|
42
|
+
var packageVersion = "5.2.5";
|
|
43
43
|
var ColorPickerWithoutAnalyticsBase = /*#__PURE__*/function (_React$Component) {
|
|
44
44
|
function ColorPickerWithoutAnalyticsBase() {
|
|
45
45
|
var _this;
|
package/dist/cjs/utils.js
CHANGED
|
@@ -5,16 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.getWidth = exports.getOptions = void 0;
|
|
8
|
-
var _theme = require("@atlaskit/theme");
|
|
9
8
|
var _constants = require("./constants");
|
|
10
9
|
var _memoizeOne = _interopRequireDefault(require("memoize-one"));
|
|
11
10
|
var _types = require("./types");
|
|
12
|
-
// AFP-2532 TODO: Fix automatic suppressions below
|
|
13
|
-
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
14
|
-
|
|
15
11
|
var getWidth = exports.getWidth = function getWidth(cols, mode) {
|
|
16
|
-
var width = cols * (_constants.COLOR_CARD_SIZE +
|
|
17
|
-
return mode === _types.Mode.Standard ? width +
|
|
12
|
+
var width = cols * (_constants.COLOR_CARD_SIZE + 4);
|
|
13
|
+
return mode === _types.Mode.Standard ? width + 8 : width;
|
|
18
14
|
};
|
|
19
15
|
var getOptions = exports.getOptions = (0, _memoizeOne.default)(function (palette, selectedColor, showDefaultSwatchColor) {
|
|
20
16
|
var focusedItemIndex = 0;
|
|
@@ -42,7 +42,7 @@ export const ColorPaletteMenuWithoutAnalytics = ({
|
|
|
42
42
|
attributes: {
|
|
43
43
|
componentName: 'color-picker',
|
|
44
44
|
packageName: "@atlaskit/color-picker",
|
|
45
|
-
packageVersion: "5.2.
|
|
45
|
+
packageVersion: "5.2.5"
|
|
46
46
|
}
|
|
47
47
|
})(createAnalyticsEvent);
|
|
48
48
|
}
|
|
@@ -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: "5.2.
|
|
123
|
+
packageVersion: "5.2.5"
|
|
124
124
|
})(withAnalyticsEvents()(ColorPaletteMenuWithoutAnalytics));
|
|
125
125
|
const colorCardWrapperStyles = null;
|
|
126
126
|
const colorPaletteContainerStyles = null;
|
|
@@ -23,7 +23,7 @@ const defaultPopperProps = {
|
|
|
23
23
|
placement: 'bottom-start'
|
|
24
24
|
};
|
|
25
25
|
const packageName = "@atlaskit/color-picker";
|
|
26
|
-
const packageVersion = "5.2.
|
|
26
|
+
const packageVersion = "5.2.5";
|
|
27
27
|
class ColorPickerWithoutAnalyticsBase extends React.Component {
|
|
28
28
|
constructor(...args) {
|
|
29
29
|
super(...args);
|
package/dist/es2019/utils.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
// AFP-2532 TODO: Fix automatic suppressions below
|
|
2
|
-
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
3
|
-
import { gridSize } from '@atlaskit/theme';
|
|
4
1
|
import { COLOR_CARD_SIZE } from './constants';
|
|
5
2
|
import memoizeOne from 'memoize-one';
|
|
6
3
|
import { Mode } from './types';
|
|
7
4
|
export const getWidth = (cols, mode) => {
|
|
8
|
-
const width = cols * (COLOR_CARD_SIZE +
|
|
9
|
-
return mode === Mode.Standard ? width +
|
|
5
|
+
const width = cols * (COLOR_CARD_SIZE + 4);
|
|
6
|
+
return mode === Mode.Standard ? width + 8 : width;
|
|
10
7
|
};
|
|
11
8
|
export const getOptions = memoizeOne((palette, selectedColor, showDefaultSwatchColor) => {
|
|
12
9
|
let focusedItemIndex = 0;
|
|
@@ -52,7 +52,7 @@ export var ColorPaletteMenuWithoutAnalytics = function ColorPaletteMenuWithoutAn
|
|
|
52
52
|
attributes: {
|
|
53
53
|
componentName: 'color-picker',
|
|
54
54
|
packageName: "@atlaskit/color-picker",
|
|
55
|
-
packageVersion: "5.2.
|
|
55
|
+
packageVersion: "5.2.5"
|
|
56
56
|
}
|
|
57
57
|
})(createAnalyticsEvent);
|
|
58
58
|
}
|
|
@@ -137,7 +137,7 @@ export var ColorPaletteMenuWithoutAnalytics = function ColorPaletteMenuWithoutAn
|
|
|
137
137
|
export default withAnalyticsContext({
|
|
138
138
|
componentName: 'color-picker',
|
|
139
139
|
packageName: "@atlaskit/color-picker",
|
|
140
|
-
packageVersion: "5.2.
|
|
140
|
+
packageVersion: "5.2.5"
|
|
141
141
|
})(withAnalyticsEvents()(ColorPaletteMenuWithoutAnalytics));
|
|
142
142
|
var colorCardWrapperStyles = null;
|
|
143
143
|
var colorPaletteContainerStyles = null;
|
|
@@ -30,7 +30,7 @@ var defaultPopperProps = {
|
|
|
30
30
|
placement: 'bottom-start'
|
|
31
31
|
};
|
|
32
32
|
var packageName = "@atlaskit/color-picker";
|
|
33
|
-
var packageVersion = "5.2.
|
|
33
|
+
var packageVersion = "5.2.5";
|
|
34
34
|
var ColorPickerWithoutAnalyticsBase = /*#__PURE__*/function (_React$Component) {
|
|
35
35
|
function ColorPickerWithoutAnalyticsBase() {
|
|
36
36
|
var _this;
|
package/dist/esm/utils.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
// AFP-2532 TODO: Fix automatic suppressions below
|
|
2
|
-
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
3
|
-
import { gridSize } from '@atlaskit/theme';
|
|
4
1
|
import { COLOR_CARD_SIZE } from './constants';
|
|
5
2
|
import memoizeOne from 'memoize-one';
|
|
6
3
|
import { Mode } from './types';
|
|
7
4
|
export var getWidth = function getWidth(cols, mode) {
|
|
8
|
-
var width = cols * (COLOR_CARD_SIZE +
|
|
9
|
-
return mode === Mode.Standard ? width +
|
|
5
|
+
var width = cols * (COLOR_CARD_SIZE + 4);
|
|
6
|
+
return mode === Mode.Standard ? width + 8 : width;
|
|
10
7
|
};
|
|
11
8
|
export var getOptions = memoizeOne(function (palette, selectedColor, showDefaultSwatchColor) {
|
|
12
9
|
var focusedItemIndex = 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/color-picker",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.6",
|
|
4
4
|
"description": "Jira Color Picker Component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
32
32
|
"@atlaskit/css": "^0.12.0",
|
|
33
|
-
"@atlaskit/icon": "^28.
|
|
33
|
+
"@atlaskit/icon": "^28.1.0",
|
|
34
34
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
35
35
|
"@atlaskit/select": "^21.2.0",
|
|
36
|
-
"@atlaskit/theme": "^
|
|
37
|
-
"@atlaskit/tokens": "^6.
|
|
36
|
+
"@atlaskit/theme": "^20.0.0",
|
|
37
|
+
"@atlaskit/tokens": "^6.1.0",
|
|
38
38
|
"@atlaskit/tooltip": "^20.4.0",
|
|
39
39
|
"@babel/runtime": "^7.0.0",
|
|
40
40
|
"@compiled/react": "^0.18.3",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@af/integration-testing": "workspace:^",
|
|
50
50
|
"@af/visual-regression": "workspace:^",
|
|
51
|
-
"@atlaskit/primitives": "^14.
|
|
51
|
+
"@atlaskit/primitives": "^14.12.0",
|
|
52
52
|
"@testing-library/react": "^13.4.0",
|
|
53
53
|
"@testing-library/user-event": "^14.4.3",
|
|
54
54
|
"ast-types": "^0.13.3",
|
|
@@ -61,10 +61,6 @@
|
|
|
61
61
|
"picker",
|
|
62
62
|
"palette"
|
|
63
63
|
],
|
|
64
|
-
"af:exports": {
|
|
65
|
-
"./ColorPaletteMenu": "./src/components/ColorPaletteMenu.tsx",
|
|
66
|
-
".": "./src/index.ts"
|
|
67
|
-
},
|
|
68
64
|
"techstack": {
|
|
69
65
|
"@repo/internal": {
|
|
70
66
|
"design-tokens": [
|