@atlaskit/share 0.29.0 → 0.29.1

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,12 @@
1
1
  # @atlaskit/share
2
2
 
3
+ ## 0.29.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`cf853e39278`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cf853e39278) - Internal changes to remove `@atlaskit/theme/math` usage.
8
+ - Updated dependencies
9
+
3
10
  ## 0.29.0
4
11
 
5
12
  ### Minor Changes
@@ -35,8 +35,6 @@ var _colors = require("@atlaskit/theme/colors");
35
35
 
36
36
  var _constants = require("@atlaskit/theme/constants");
37
37
 
38
- var _math = require("@atlaskit/theme/math");
39
-
40
38
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
41
39
 
42
40
  var _react = _interopRequireDefault(require("react"));
@@ -69,7 +67,7 @@ var FormWrapper = _styledComponents.default.div(_templateObject3 || (_templateOb
69
67
 
70
68
  exports.FormWrapper = FormWrapper;
71
69
 
72
- var FormFooter = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n margin-bottom: ", "px;\n display: flex;\n justify-content: flex-start;\n"])), (0, _math.multiply)(_constants.gridSize, 1));
70
+ var FormFooter = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n margin-bottom: ", "px;\n display: flex;\n justify-content: flex-start;\n"])), _constants.gridSize);
73
71
 
74
72
  exports.FormFooter = FormFooter;
75
73
 
@@ -17,8 +17,6 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
17
17
 
18
18
  var _constants = require("@atlaskit/theme/constants");
19
19
 
20
- var _math = require("@atlaskit/theme/math");
21
-
22
20
  var _typography = require("@atlaskit/theme/typography");
23
21
 
24
22
  var _i18n = require("../i18n");
@@ -27,7 +25,7 @@ var _templateObject, _templateObject2;
27
25
 
28
26
  var HeaderWrapper = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n"])));
29
27
 
30
- var FormHeaderTitle = _styledComponents.default.h1(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n line-height: ", "px;\n margin-right: ", "px;\n margin-top: ", "px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n > span {\n font-size: initial;\n }\n"])), _typography.h500, (0, _math.multiply)(_constants.gridSize, 4), (0, _math.multiply)(_constants.gridSize, 4), (0, _math.multiply)(_constants.gridSize, 4));
28
+ var FormHeaderTitle = _styledComponents.default.h1(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n line-height: ", "px;\n margin-right: ", "px;\n margin-top: ", "px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n > span {\n font-size: initial;\n }\n"])), _typography.h500, (0, _constants.gridSize)() * 4, (0, _constants.gridSize)() * 4, (0, _constants.gridSize)() * 4);
31
29
 
32
30
  exports.FormHeaderTitle = FormHeaderTitle;
33
31
 
@@ -17,9 +17,7 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
17
17
 
18
18
  var _react = _interopRequireDefault(require("react"));
19
19
 
20
- var _theme = require("@atlaskit/theme");
21
-
22
- var _math = require("@atlaskit/theme/math");
20
+ var _constants = require("@atlaskit/theme/constants");
23
21
 
24
22
  var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
25
23
 
@@ -41,7 +39,7 @@ var MAX_PICKER_HEIGHT = 102;
41
39
 
42
40
  exports.MAX_PICKER_HEIGHT = MAX_PICKER_HEIGHT;
43
41
 
44
- var InlineDialogContentWrapper = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n padding: ", "px ", "px;\n"])), (0, _math.multiply)(_theme.gridSize, 2), (0, _math.multiply)(_theme.gridSize, 3));
42
+ var InlineDialogContentWrapper = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n padding: ", "px ", "px;\n"])), (0, _constants.gridSize)() * 2, (0, _constants.gridSize)() * 3);
45
43
 
46
44
  exports.InlineDialogContentWrapper = InlineDialogContentWrapper;
47
45
 
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "0.29.0"
3
+ "version": "0.29.1"
4
4
  }
@@ -5,7 +5,6 @@ import Form from '@atlaskit/form';
5
5
  import ErrorIcon from '@atlaskit/icon/glyph/error';
6
6
  import { R400 } from '@atlaskit/theme/colors';
7
7
  import { gridSize } from '@atlaskit/theme/constants';
8
- import { multiply } from '@atlaskit/theme/math';
9
8
  import Tooltip from '@atlaskit/tooltip';
10
9
  import React from 'react';
11
10
  import { FormattedMessage, injectIntl } from 'react-intl';
@@ -35,7 +34,7 @@ export const FormWrapper = styled.div`
35
34
  }
36
35
  `;
37
36
  export const FormFooter = styled.div`
38
- margin-bottom: ${multiply(gridSize, 1)}px;
37
+ margin-bottom: ${gridSize}px;
39
38
  display: flex;
40
39
  justify-content: flex-start;
41
40
  `;
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import { FormattedMessage } from 'react-intl';
3
3
  import styled from 'styled-components';
4
4
  import { gridSize } from '@atlaskit/theme/constants';
5
- import { multiply } from '@atlaskit/theme/math';
6
5
  import { h500 } from '@atlaskit/theme/typography';
7
6
  import { messages } from '../i18n';
8
7
  const HeaderWrapper = styled.div`
@@ -11,9 +10,9 @@ const HeaderWrapper = styled.div`
11
10
  `;
12
11
  export const FormHeaderTitle = styled.h1`
13
12
  ${h500};
14
- line-height: ${multiply(gridSize, 4)}px;
15
- margin-right: ${multiply(gridSize, 4)}px;
16
- margin-top: ${multiply(gridSize, 4)}px;
13
+ line-height: ${gridSize() * 4}px;
14
+ margin-right: ${gridSize() * 4}px;
15
+ margin-top: ${gridSize() * 4}px;
17
16
  overflow: hidden;
18
17
  text-overflow: ellipsis;
19
18
  white-space: nowrap;
@@ -2,8 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react'; // AFP-2532 TODO: Fix automatic suppressions below
3
3
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
4
4
 
5
- import { gridSize } from '@atlaskit/theme';
6
- import { multiply } from '@atlaskit/theme/math';
5
+ import { gridSize } from '@atlaskit/theme/constants';
7
6
  import Button from '@atlaskit/button/custom-theme-button';
8
7
  import styled from 'styled-components';
9
8
  export const MAX_PICKER_HEIGHT = 102;
@@ -15,7 +14,7 @@ export const MAX_PICKER_HEIGHT = 102;
15
14
  */
16
15
 
17
16
  export const InlineDialogContentWrapper = styled.div`
18
- padding: ${multiply(gridSize, 2)}px ${multiply(gridSize, 3)}px;
17
+ padding: ${gridSize() * 2}px ${gridSize() * 3}px;
19
18
  `;
20
19
  const StyledButton = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(Button, _extends({
21
20
  ref: ref
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "0.29.0"
3
+ "version": "0.29.1"
4
4
  }
@@ -19,7 +19,6 @@ import Form from '@atlaskit/form';
19
19
  import ErrorIcon from '@atlaskit/icon/glyph/error';
20
20
  import { R400 } from '@atlaskit/theme/colors';
21
21
  import { gridSize } from '@atlaskit/theme/constants';
22
- import { multiply } from '@atlaskit/theme/math';
23
22
  import Tooltip from '@atlaskit/tooltip';
24
23
  import React from 'react';
25
24
  import { FormattedMessage, injectIntl } from 'react-intl';
@@ -32,7 +31,7 @@ import { UserPickerField } from './UserPickerField';
32
31
  var SubmitButtonWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n margin-left: auto;\n"])));
33
32
  var CenterAlignedIconWrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-self: center;\n padding: 0 10px;\n\n > div {\n line-height: 1;\n }\n"])));
34
33
  export var FormWrapper = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n /* jira has a class override font settings on h1 in gh-custom-field-pickers.css */\n #ghx-modes-tools #ghx-share & h1:first-child {\n margin-top: 0;\n }\n"])));
35
- export var FormFooter = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-bottom: ", "px;\n display: flex;\n justify-content: flex-start;\n"])), multiply(gridSize, 1));
34
+ export var FormFooter = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-bottom: ", "px;\n display: flex;\n justify-content: flex-start;\n"])), gridSize);
36
35
  var FormField = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-bottom: 12px;\n"])));
37
36
 
38
37
  var InternalForm = /*#__PURE__*/function (_React$PureComponent) {
@@ -6,11 +6,10 @@ import React from 'react';
6
6
  import { FormattedMessage } from 'react-intl';
7
7
  import styled from 'styled-components';
8
8
  import { gridSize } from '@atlaskit/theme/constants';
9
- import { multiply } from '@atlaskit/theme/math';
10
9
  import { h500 } from '@atlaskit/theme/typography';
11
10
  import { messages } from '../i18n';
12
11
  var HeaderWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n"])));
13
- export var FormHeaderTitle = styled.h1(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", ";\n line-height: ", "px;\n margin-right: ", "px;\n margin-top: ", "px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n > span {\n font-size: initial;\n }\n"])), h500, multiply(gridSize, 4), multiply(gridSize, 4), multiply(gridSize, 4));
12
+ export var FormHeaderTitle = styled.h1(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", ";\n line-height: ", "px;\n margin-right: ", "px;\n margin-top: ", "px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n > span {\n font-size: initial;\n }\n"])), h500, gridSize() * 4, gridSize() * 4, gridSize() * 4);
14
13
  export var ShareHeader = function ShareHeader(_ref) {
15
14
  var title = _ref.title,
16
15
  contentPermissions = _ref.contentPermissions;
@@ -12,8 +12,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
12
12
  import React from 'react'; // AFP-2532 TODO: Fix automatic suppressions below
13
13
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
14
14
 
15
- import { gridSize } from '@atlaskit/theme';
16
- import { multiply } from '@atlaskit/theme/math';
15
+ import { gridSize } from '@atlaskit/theme/constants';
17
16
  import Button from '@atlaskit/button/custom-theme-button';
18
17
  import styled from 'styled-components';
19
18
  export var MAX_PICKER_HEIGHT = 102;
@@ -24,7 +23,7 @@ export var MAX_PICKER_HEIGHT = 102;
24
23
  * packages/design-system/inline-dialog/src/InlineDialog/styled.ts:20:3
25
24
  */
26
25
 
27
- export var InlineDialogContentWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: ", "px ", "px;\n"])), multiply(gridSize, 2), multiply(gridSize, 3));
26
+ export var InlineDialogContentWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: ", "px ", "px;\n"])), gridSize() * 2, gridSize() * 3);
28
27
  var StyledButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
29
28
  return /*#__PURE__*/React.createElement(Button, _extends({
30
29
  ref: ref
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "0.29.0"
3
+ "version": "0.29.1"
4
4
  }
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { InjectedIntlProps } from 'react-intl';
4
4
  import { Comment, ConfigResponse, DialogContentState, FormChildrenArgs, ProductName } from '../types';
5
5
  export declare const FormWrapper: import("styled-components").StyledComponentClass<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
6
- export declare const FormFooter: import("styled-components").StyledComponentClass<any, any, any>;
6
+ export declare const FormFooter: import("styled-components").StyledComponentClass<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
7
7
  declare type ShareError = {
8
8
  message: string;
9
9
  };
@@ -7,6 +7,6 @@ export declare const MAX_PICKER_HEIGHT = 102;
7
7
  *
8
8
  * packages/design-system/inline-dialog/src/InlineDialog/styled.ts:20:3
9
9
  */
10
- export declare const InlineDialogContentWrapper: import("styled-components").StyledComponentClass<any, any, any>;
10
+ export declare const InlineDialogContentWrapper: import("styled-components").StyledComponentClass<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
11
11
  declare const StyledButton: React.StatelessComponent<CustomThemeButtonProps>;
12
12
  export default StyledButton;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/share",
3
- "version": "0.29.0",
3
+ "version": "0.29.1",
4
4
  "description": "Fabric Share Element",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,12 +31,12 @@
31
31
  "@atlaskit/button": "^16.0.0",
32
32
  "@atlaskit/dropdown-menu": "^10.0.6",
33
33
  "@atlaskit/field-text-area": "^8.0.0",
34
- "@atlaskit/form": "^8.1.0",
35
- "@atlaskit/icon": "^21.7.0",
34
+ "@atlaskit/form": "^8.4.0",
35
+ "@atlaskit/icon": "^21.9.0",
36
36
  "@atlaskit/popup": "^1.1.0",
37
37
  "@atlaskit/portal": "^4.0.0",
38
- "@atlaskit/theme": "^11.4.0",
39
- "@atlaskit/tooltip": "^17.3.0",
38
+ "@atlaskit/theme": "^12.0.0",
39
+ "@atlaskit/tooltip": "^17.5.0",
40
40
  "@atlaskit/user-picker": "^7.16.0",
41
41
  "@atlaskit/util-service-support": "^6.0.0",
42
42
  "@babel/runtime": "^7.0.0",
@@ -55,7 +55,7 @@
55
55
  "@atlaskit/flag": "^14.4.0",
56
56
  "@atlaskit/section-message": "^6.0.0",
57
57
  "@atlaskit/select": "^15.0.0",
58
- "@atlaskit/toggle": "^12.2.0",
58
+ "@atlaskit/toggle": "^12.3.0",
59
59
  "@atlaskit/util-data-test": "^16.0.0",
60
60
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
61
61
  "enzyme": "^3.10.0",