@atlaskit/color-picker 3.0.8 → 3.0.10

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,17 @@
1
1
  # @atlaskit/color-picker
2
2
 
3
+ ## 3.0.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4ce590325b4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ce590325b4) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
8
+
9
+ ## 3.0.9
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 3.0.8
4
16
 
5
17
  ### Patch Changes
@@ -37,7 +37,7 @@ var defaultPopperProps = {
37
37
  placement: 'bottom-start'
38
38
  };
39
39
  var packageName = "@atlaskit/color-picker";
40
- var packageVersion = "3.0.8";
40
+ var packageVersion = "3.0.10";
41
41
  var ColorPickerWithoutAnalytics = /*#__PURE__*/function (_React$Component) {
42
42
  (0, _inherits2.default)(ColorPickerWithoutAnalytics, _React$Component);
43
43
  var _super = _createSuper(ColorPickerWithoutAnalytics);
@@ -11,15 +11,15 @@ var _theme = require("@atlaskit/theme");
11
11
  var _utils = require("../utils");
12
12
  var _types = require("../types");
13
13
  var _templateObject, _templateObject2, _templateObject3;
14
- var ColorCardWrapper = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin: ", "px;\n"])), (0, _theme.gridSize)() / 4);
14
+ var ColorCardWrapper = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin: ", ";\n"])), "var(--ds-space-025, 2px)");
15
15
  exports.ColorCardWrapper = ColorCardWrapper;
16
16
  var ColorPaletteContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-wrap: wrap;\n padding: ", ";\n"])), function (props) {
17
- return props.mode === _types.Mode.Compact ? "0" : "".concat((0, _theme.gridSize)() / 2, "px");
17
+ return props.mode === _types.Mode.Compact ? "0" : "var(--ds-space-050, 4px)";
18
18
  });
19
19
  exports.ColorPaletteContainer = ColorPaletteContainer;
20
20
  var ColorPaletteMenu = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n margin: 0;\n background-color: ", ";\n width: ", "px;\n ", "\n"])), "var(--ds-surface-overlay, ".concat(_theme.colors.N0, ")"), function (props) {
21
21
  return (0, _utils.getWidth)(props.cols);
22
22
  }, function (props) {
23
- return props.mode && props.mode === _types.Mode.Standard && "\n box-radius: ".concat(_theme.borderRadius, "px;\n box-shadow: ", "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(_theme.colors.N40, ", 0 0 8px ").concat(_theme.colors.N40), ")"), ";\n width: ").concat((0, _utils.getWidth)(props.cols) + (0, _theme.gridSize)(), "px;\n ");
23
+ return props.mode && props.mode === _types.Mode.Standard && "\n box-radius: ".concat("var(--ds-radius-100, 3px)", ";\n box-shadow: ", "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(_theme.colors.N40, ", 0 0 8px ").concat(_theme.colors.N40), ")"), ";\n width: ", (0, _utils.getWidth)(props.cols) + (0, _theme.gridSize)(), "px;\n ");
24
24
  });
25
25
  exports.ColorPaletteMenu = ColorPaletteMenu;
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/color-picker",
3
- "version": "3.0.8"
3
+ "version": "3.0.10"
4
4
  }
@@ -19,7 +19,7 @@ const defaultPopperProps = {
19
19
  placement: 'bottom-start'
20
20
  };
21
21
  const packageName = "@atlaskit/color-picker";
22
- const packageVersion = "3.0.8";
22
+ const packageVersion = "3.0.10";
23
23
  export class ColorPickerWithoutAnalytics extends React.Component {
24
24
  constructor(...args) {
25
25
  super(...args);
@@ -1,17 +1,17 @@
1
1
  import styled from 'styled-components';
2
2
  // AFP-2532 TODO: Fix automatic suppressions below
3
3
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
4
- import { gridSize, borderRadius, colors } from '@atlaskit/theme';
4
+ import { gridSize, colors } from '@atlaskit/theme';
5
5
  import { getWidth } from '../utils';
6
6
  import { Mode } from '../types';
7
7
  export const ColorCardWrapper = styled.div`
8
8
  display: flex;
9
- margin: ${gridSize() / 4}px;
9
+ margin: ${"var(--ds-space-025, 2px)"};
10
10
  `;
11
11
  export const ColorPaletteContainer = styled.div`
12
12
  display: flex;
13
13
  flex-wrap: wrap;
14
- padding: ${props => props.mode === Mode.Compact ? `0` : `${gridSize() / 2}px`};
14
+ padding: ${props => props.mode === Mode.Compact ? `0` : `${"var(--ds-space-050, 4px)"}`};
15
15
  `;
16
16
  export const ColorPaletteMenu = styled.div`
17
17
  position: relative;
@@ -19,7 +19,7 @@ export const ColorPaletteMenu = styled.div`
19
19
  background-color: ${`var(--ds-surface-overlay, ${colors.N0})`};
20
20
  width: ${props => getWidth(props.cols)}px;
21
21
  ${props => props.mode && props.mode === Mode.Standard && `
22
- box-radius: ${borderRadius}px;
22
+ box-radius: ${"var(--ds-radius-100, 3px)"};
23
23
  box-shadow: ${`var(--ds-shadow-overlay, ${`0 0 0 1px ${colors.N40}, 0 0 8px ${colors.N40}`})`};
24
24
  width: ${getWidth(props.cols) + gridSize()}px;
25
25
  `}
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/color-picker",
3
- "version": "3.0.8"
3
+ "version": "3.0.10"
4
4
  }
@@ -27,7 +27,7 @@ var defaultPopperProps = {
27
27
  placement: 'bottom-start'
28
28
  };
29
29
  var packageName = "@atlaskit/color-picker";
30
- var packageVersion = "3.0.8";
30
+ var packageVersion = "3.0.10";
31
31
  export var ColorPickerWithoutAnalytics = /*#__PURE__*/function (_React$Component) {
32
32
  _inherits(ColorPickerWithoutAnalytics, _React$Component);
33
33
  var _super = _createSuper(ColorPickerWithoutAnalytics);
@@ -3,15 +3,15 @@ var _templateObject, _templateObject2, _templateObject3;
3
3
  import styled from 'styled-components';
4
4
  // AFP-2532 TODO: Fix automatic suppressions below
5
5
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
6
- import { gridSize, borderRadius, colors } from '@atlaskit/theme';
6
+ import { gridSize, colors } from '@atlaskit/theme';
7
7
  import { getWidth } from '../utils';
8
8
  import { Mode } from '../types';
9
- export var ColorCardWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n margin: ", "px;\n"])), gridSize() / 4);
9
+ export var ColorCardWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n margin: ", ";\n"])), "var(--ds-space-025, 2px)");
10
10
  export var ColorPaletteContainer = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n padding: ", ";\n"])), function (props) {
11
- return props.mode === Mode.Compact ? "0" : "".concat(gridSize() / 2, "px");
11
+ return props.mode === Mode.Compact ? "0" : "var(--ds-space-050, 4px)";
12
12
  });
13
13
  export var ColorPaletteMenu = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n margin: 0;\n background-color: ", ";\n width: ", "px;\n ", "\n"])), "var(--ds-surface-overlay, ".concat(colors.N0, ")"), function (props) {
14
14
  return getWidth(props.cols);
15
15
  }, function (props) {
16
- return props.mode && props.mode === Mode.Standard && "\n box-radius: ".concat(borderRadius, "px;\n box-shadow: ", "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(colors.N40, ", 0 0 8px ").concat(colors.N40), ")"), ";\n width: ").concat(getWidth(props.cols) + gridSize(), "px;\n ");
16
+ return props.mode && props.mode === Mode.Standard && "\n box-radius: ".concat("var(--ds-radius-100, 3px)", ";\n box-shadow: ", "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(colors.N40, ", 0 0 8px ").concat(colors.N40), ")"), ";\n width: ", getWidth(props.cols) + gridSize(), "px;\n ");
17
17
  });
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/color-picker",
3
- "version": "3.0.8"
3
+ "version": "3.0.10"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/color-picker",
3
- "version": "3.0.8",
3
+ "version": "3.0.10",
4
4
  "description": "Jira Color Picker Component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -21,11 +21,11 @@
21
21
  }
22
22
  },
23
23
  "dependencies": {
24
- "@atlaskit/analytics-next": "^8.2.0",
24
+ "@atlaskit/analytics-next": "^9.0.0",
25
25
  "@atlaskit/icon": "^21.11.0",
26
26
  "@atlaskit/select": "^16.1.0",
27
- "@atlaskit/theme": "^12.2.0",
28
- "@atlaskit/tokens": "^1.0.0",
27
+ "@atlaskit/theme": "^12.3.0",
28
+ "@atlaskit/tokens": "^1.2.0",
29
29
  "@babel/runtime": "^7.0.0",
30
30
  "memoize-one": "^6.0.0",
31
31
  "styled-components": "^3.2.6"
@@ -56,7 +56,9 @@
56
56
  },
57
57
  "techstack": {
58
58
  "@repo/internal": {
59
- "theming": "tokens"
59
+ "design-tokens": [
60
+ "color"
61
+ ]
60
62
  }
61
63
  },
62
64
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"