@atlaskit/share 4.18.0 → 4.18.2
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 +1175 -1166
- package/dist/cjs/components/CopyLinkButton.js +20 -10
- package/dist/cjs/components/IntegrationButton.js +11 -8
- package/dist/cjs/components/ShareButton.js +2 -2
- package/dist/cjs/components/ShareDialogWithTrigger.js +3 -1
- package/dist/cjs/components/ShareForm.js +2 -2
- package/dist/cjs/components/SlackIcon.js +24 -8
- package/dist/cjs/components/SplitButton.js +14 -20
- package/dist/cjs/components/analytics/analytics.js +1 -1
- package/dist/cjs/components/colorSlackIcon.js +24 -8
- package/dist/cjs/components/styles.js +7 -22
- package/dist/es2019/components/CopyLinkButton.js +20 -13
- package/dist/es2019/components/IntegrationButton.js +11 -8
- package/dist/es2019/components/ShareButton.js +1 -1
- package/dist/es2019/components/ShareDialogWithTrigger.js +3 -1
- package/dist/es2019/components/ShareForm.js +1 -1
- package/dist/es2019/components/SlackIcon.js +24 -8
- package/dist/es2019/components/SplitButton.js +14 -40
- package/dist/es2019/components/analytics/analytics.js +1 -1
- package/dist/es2019/components/colorSlackIcon.js +24 -8
- package/dist/es2019/components/styles.js +5 -19
- package/dist/esm/components/CopyLinkButton.js +19 -8
- package/dist/esm/components/IntegrationButton.js +11 -8
- package/dist/esm/components/ShareButton.js +1 -1
- package/dist/esm/components/ShareDialogWithTrigger.js +3 -1
- package/dist/esm/components/ShareForm.js +1 -1
- package/dist/esm/components/SlackIcon.js +24 -8
- package/dist/esm/components/SplitButton.js +14 -19
- package/dist/esm/components/analytics/analytics.js +1 -1
- package/dist/esm/components/colorSlackIcon.js +24 -8
- package/dist/esm/components/styles.js +7 -22
- package/dist/types/clients/ShareServiceClient.d.ts +2 -2
- package/dist/types/components/CommentField.d.ts +1 -1
- package/dist/types/components/CopyLinkButton.d.ts +2 -2
- package/dist/types/components/ErrorBoundary.d.ts +1 -1
- package/dist/types/components/IntegrationButton.d.ts +1 -1
- package/dist/types/components/IntegrationForm.d.ts +1 -1
- package/dist/types/components/MessagesIntlProvider.d.ts +1 -1
- package/dist/types/components/ShareButton.d.ts +1 -1
- package/dist/types/components/ShareHeader.d.ts +1 -1
- package/dist/types/components/SplitButton.d.ts +5 -5
- package/dist/types/components/analytics/ufoExperienceHelper.d.ts +1 -1
- package/dist/types/components/utils.d.ts +2 -2
- package/dist/types/types/ShareContentState.d.ts +3 -3
- package/dist/types/types/ShareDialogContainer.d.ts +2 -2
- package/dist/types/util/i18n-util.d.ts +1 -1
- package/dist/types-ts4.5/clients/ShareServiceClient.d.ts +2 -2
- package/dist/types-ts4.5/components/CommentField.d.ts +1 -1
- package/dist/types-ts4.5/components/CopyLinkButton.d.ts +2 -2
- package/dist/types-ts4.5/components/ErrorBoundary.d.ts +1 -1
- package/dist/types-ts4.5/components/IntegrationButton.d.ts +1 -1
- package/dist/types-ts4.5/components/IntegrationForm.d.ts +1 -1
- package/dist/types-ts4.5/components/MessagesIntlProvider.d.ts +1 -1
- package/dist/types-ts4.5/components/ShareButton.d.ts +1 -1
- package/dist/types-ts4.5/components/ShareHeader.d.ts +1 -1
- package/dist/types-ts4.5/components/SplitButton.d.ts +5 -5
- package/dist/types-ts4.5/components/analytics/ufoExperienceHelper.d.ts +1 -1
- package/dist/types-ts4.5/components/utils.d.ts +2 -2
- package/dist/types-ts4.5/types/ShareContentState.d.ts +3 -3
- package/dist/types-ts4.5/types/ShareDialogContainer.d.ts +2 -2
- package/dist/types-ts4.5/util/i18n-util.d.ts +1 -1
- package/package.json +6 -8
|
@@ -3,42 +3,20 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import React, { useCallback } from 'react';
|
|
4
4
|
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
|
-
import
|
|
6
|
+
import { SplitButton as AKSplitButton, IconButton } from '@atlaskit/button/new';
|
|
7
7
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
8
8
|
import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
9
9
|
import { N800 } from '@atlaskit/theme/colors';
|
|
10
10
|
import { messages } from '../i18n';
|
|
11
11
|
import { shareIntegrationButtonEvent } from './analytics/analytics';
|
|
12
12
|
import IntegrationButton from './IntegrationButton';
|
|
13
|
-
const splitButtonWrapperStyles = css`
|
|
14
|
-
display: flex;
|
|
15
|
-
button {
|
|
16
|
-
border-radius: ${"var(--ds-border-radius, 3px)"} ${"var(--ds-space-0, 0px)"}
|
|
17
|
-
${"var(--ds-space-0, 0px)"} ${"var(--ds-border-radius, 3px)"};
|
|
18
|
-
}
|
|
19
|
-
button:hover {
|
|
20
|
-
border-radius: ${"var(--ds-border-radius, 3px)"} ${"var(--ds-space-0, 0px)"}
|
|
21
|
-
${"var(--ds-space-0, 0px)"} ${"var(--ds-border-radius, 3px)"};
|
|
22
|
-
}
|
|
23
|
-
`;
|
|
24
|
-
const dropdownMenuWrapperStyles = css`
|
|
25
|
-
margin-left: ${"var(--ds-space-025, 2px)"};
|
|
26
|
-
button {
|
|
27
|
-
border-radius: ${"var(--ds-space-0, 0px)"} ${"var(--ds-border-radius, 3px)"}
|
|
28
|
-
${"var(--ds-border-radius, 3px)"} ${"var(--ds-space-0, 0px)"};
|
|
29
|
-
}
|
|
30
|
-
button:hover {
|
|
31
|
-
border-radius: ${"var(--ds-space-0, 0px)"} ${"var(--ds-border-radius, 3px)"}
|
|
32
|
-
${"var(--ds-border-radius, 3px)"} ${"var(--ds-space-0, 0px)"};
|
|
33
|
-
}
|
|
34
|
-
`;
|
|
35
13
|
|
|
36
14
|
// span
|
|
37
|
-
const dropDownIntegrationButtonWrapperStyles = css
|
|
38
|
-
button:hover {
|
|
39
|
-
background: transparent
|
|
15
|
+
const dropDownIntegrationButtonWrapperStyles = css({
|
|
16
|
+
['button:hover']: {
|
|
17
|
+
background: 'transparent'
|
|
40
18
|
}
|
|
41
|
-
|
|
19
|
+
});
|
|
42
20
|
const integrationButtonText = integrationName => jsx(FormattedMessage, _extends({}, messages.shareToIntegrationButtonText, {
|
|
43
21
|
values: {
|
|
44
22
|
integrationName
|
|
@@ -67,18 +45,16 @@ const SplitButtonDropdown = props => {
|
|
|
67
45
|
onIntegrationClick(integration);
|
|
68
46
|
createAndFireEvent(shareIntegrationButtonEvent(integration.type));
|
|
69
47
|
}, [createAndFireEvent, onIntegrationClick]);
|
|
70
|
-
return jsx(
|
|
71
|
-
css: dropdownMenuWrapperStyles
|
|
72
|
-
}, jsx(DropdownMenu, {
|
|
48
|
+
return jsx(DropdownMenu, {
|
|
73
49
|
testId: "split-button-dropdown",
|
|
74
50
|
trigger: ({
|
|
75
51
|
triggerRef,
|
|
76
52
|
...providedProps
|
|
77
|
-
}) => jsx(
|
|
53
|
+
}) => jsx(IconButton, _extends({
|
|
54
|
+
label: ""
|
|
55
|
+
}, providedProps, {
|
|
78
56
|
ref: triggerRef,
|
|
79
|
-
|
|
80
|
-
label: ""
|
|
81
|
-
}),
|
|
57
|
+
icon: ChevronDownIcon,
|
|
82
58
|
appearance: triggerButtonAppearance
|
|
83
59
|
})),
|
|
84
60
|
placement: "bottom-end",
|
|
@@ -96,7 +72,7 @@ const SplitButtonDropdown = props => {
|
|
|
96
72
|
shouldFitContainer: true,
|
|
97
73
|
text: integrationButtonText(integration.type),
|
|
98
74
|
IntegrationIcon: integration.Icon
|
|
99
|
-
}))))))
|
|
75
|
+
}))))));
|
|
100
76
|
};
|
|
101
77
|
SplitButtonDropdown.displayName = 'SplitButtonDropdown';
|
|
102
78
|
export default function SplitButton({
|
|
@@ -107,13 +83,11 @@ export default function SplitButton({
|
|
|
107
83
|
shareIntegrations,
|
|
108
84
|
onIntegrationClick,
|
|
109
85
|
triggerButtonAppearance,
|
|
110
|
-
dialogZIndex,
|
|
111
|
-
dialogPlacement,
|
|
112
86
|
createAndFireEvent
|
|
113
87
|
}) {
|
|
114
|
-
return jsx(
|
|
115
|
-
|
|
116
|
-
|
|
88
|
+
return jsx(AKSplitButton, {
|
|
89
|
+
"data-testid": "split-button",
|
|
90
|
+
appearance: triggerButtonAppearance
|
|
117
91
|
}, shareButton, jsx(SplitButtonDropdown, {
|
|
118
92
|
shareIntegrations: shareIntegrations,
|
|
119
93
|
triggerButtonAppearance: triggerButtonAppearance,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isEmail, isExternalUser, isTeam, isUser } from '@atlaskit/smart-user-picker';
|
|
2
2
|
const buildAttributes = (attributes = {}) => ({
|
|
3
3
|
packageName: "@atlaskit/share",
|
|
4
|
-
packageVersion: "4.18.
|
|
4
|
+
packageVersion: "4.18.2",
|
|
5
5
|
...attributes
|
|
6
6
|
});
|
|
7
7
|
const createEvent = (eventType, source, action, actionSubject, actionSubjectId, attributes = {}) => ({
|
|
@@ -14,41 +14,57 @@ const SlackIcon = () => {
|
|
|
14
14
|
id: "prefix__svg_2"
|
|
15
15
|
}, /*#__PURE__*/React.createElement("path", {
|
|
16
16
|
id: "prefix__svg_3",
|
|
17
|
-
d: "M27.4 79.2c0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9h12.9v12.9z"
|
|
17
|
+
d: "M27.4 79.2c0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9h12.9v12.9z"
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
19
|
+
,
|
|
18
20
|
className: "prefix__st0"
|
|
19
21
|
}), /*#__PURE__*/React.createElement("path", {
|
|
20
22
|
id: "prefix__svg_4",
|
|
21
|
-
d: "M33.9 79.2c0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v32.3c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9V79.2z"
|
|
23
|
+
d: "M33.9 79.2c0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v32.3c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9V79.2z"
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
25
|
+
,
|
|
22
26
|
className: "prefix__st0"
|
|
23
27
|
})), /*#__PURE__*/React.createElement("g", {
|
|
24
28
|
id: "prefix__svg_5"
|
|
25
29
|
}, /*#__PURE__*/React.createElement("path", {
|
|
26
30
|
id: "prefix__svg_6",
|
|
27
|
-
d: "M46.8 27.4c-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v12.9H46.8z"
|
|
31
|
+
d: "M46.8 27.4c-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v12.9H46.8z"
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
33
|
+
,
|
|
28
34
|
className: "prefix__st1"
|
|
29
35
|
}), /*#__PURE__*/React.createElement("path", {
|
|
30
36
|
id: "prefix__svg_7",
|
|
31
|
-
d: "M46.8 33.9c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H14.5c-7.1 0-12.9-5.8-12.9-12.9s5.8-12.9 12.9-12.9h32.3z"
|
|
37
|
+
d: "M46.8 33.9c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H14.5c-7.1 0-12.9-5.8-12.9-12.9s5.8-12.9 12.9-12.9h32.3z"
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
39
|
+
,
|
|
32
40
|
className: "prefix__st1"
|
|
33
41
|
})), /*#__PURE__*/React.createElement("g", {
|
|
34
42
|
id: "prefix__svg_8"
|
|
35
43
|
}, /*#__PURE__*/React.createElement("path", {
|
|
36
44
|
id: "prefix__svg_9",
|
|
37
|
-
d: "M98.6 46.8c0-7.1 5.8-12.9 12.9-12.9 7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H98.6V46.8z"
|
|
45
|
+
d: "M98.6 46.8c0-7.1 5.8-12.9 12.9-12.9 7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H98.6V46.8z"
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
47
|
+
,
|
|
38
48
|
className: "prefix__st2"
|
|
39
49
|
}), /*#__PURE__*/React.createElement("path", {
|
|
40
50
|
id: "prefix__svg_10",
|
|
41
|
-
d: "M92.1 46.8c0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9V14.5c0-7.1 5.8-12.9 12.9-12.9 7.1 0 12.9 5.8 12.9 12.9v32.3z"
|
|
51
|
+
d: "M92.1 46.8c0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9V14.5c0-7.1 5.8-12.9 12.9-12.9 7.1 0 12.9 5.8 12.9 12.9v32.3z"
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
53
|
+
,
|
|
42
54
|
className: "prefix__st2"
|
|
43
55
|
})), /*#__PURE__*/React.createElement("g", {
|
|
44
56
|
id: "prefix__svg_11"
|
|
45
57
|
}, /*#__PURE__*/React.createElement("path", {
|
|
46
58
|
id: "prefix__svg_12",
|
|
47
|
-
d: "M79.2 98.6c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9V98.6h12.9z"
|
|
59
|
+
d: "M79.2 98.6c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9V98.6h12.9z"
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
61
|
+
,
|
|
48
62
|
className: "prefix__st3"
|
|
49
63
|
}), /*#__PURE__*/React.createElement("path", {
|
|
50
64
|
id: "prefix__svg_13",
|
|
51
|
-
d: "M79.2 92.1c-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9h32.3c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9H79.2z"
|
|
65
|
+
d: "M79.2 92.1c-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9h32.3c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9H79.2z"
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
67
|
+
,
|
|
52
68
|
className: "prefix__st3"
|
|
53
69
|
})))));
|
|
54
70
|
};
|
|
@@ -2,24 +2,10 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
4
4
|
export const MAX_PICKER_HEIGHT = 102;
|
|
5
|
-
const StyledButton = /*#__PURE__*/React.forwardRef((props, ref) =>
|
|
5
|
+
const StyledButton = /*#__PURE__*/React.forwardRef((props, ref) =>
|
|
6
|
+
/*#__PURE__*/
|
|
7
|
+
// TODO: (from codemod) CustomThemeButton will be deprecated. Please consider migrating to Pressable or Anchor Primitives with custom styles.
|
|
8
|
+
React.createElement(Button, _extends({
|
|
6
9
|
ref: ref
|
|
7
|
-
}, props
|
|
8
|
-
theme: (currentTheme, themeProps) => {
|
|
9
|
-
const {
|
|
10
|
-
buttonStyles,
|
|
11
|
-
...rest
|
|
12
|
-
} = currentTheme(themeProps);
|
|
13
|
-
return {
|
|
14
|
-
buttonStyles: {
|
|
15
|
-
...buttonStyles,
|
|
16
|
-
padding: 0,
|
|
17
|
-
'& > span > span:first-of-type': {
|
|
18
|
-
margin: '0' // This is a workaround for an issue in AtlasKit (https://ecosystem.atlassian.net/browse/AK-3976)
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
...rest
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
})));
|
|
10
|
+
}, props)));
|
|
25
11
|
export default StyledButton;
|
|
@@ -5,8 +5,6 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
9
|
-
var _templateObject, _templateObject2;
|
|
10
8
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
10
|
/** @jsx jsx */
|
|
@@ -15,6 +13,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
15
13
|
import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
|
|
16
14
|
import LinkFilledIcon from '@atlaskit/icon/glyph/link-filled';
|
|
17
15
|
import Popup from '@atlaskit/popup';
|
|
16
|
+
import { Box, xcss } from '@atlaskit/primitives';
|
|
18
17
|
import { G300 } from '@atlaskit/theme/colors';
|
|
19
18
|
import { layers } from '@atlaskit/theme/constants';
|
|
20
19
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -23,13 +22,20 @@ import Button from './styles';
|
|
|
23
22
|
var Z_INDEX = layers.modal();
|
|
24
23
|
var AUTO_DISMISS_SECONDS = 8;
|
|
25
24
|
export var AUTO_DISMISS_MS = AUTO_DISMISS_SECONDS * 1000;
|
|
26
|
-
export var messageContainerStyle = css(
|
|
27
|
-
|
|
25
|
+
export var messageContainerStyle = css({
|
|
26
|
+
display: 'flex',
|
|
27
|
+
alignItems: 'center',
|
|
28
|
+
margin: "var(--ds-space-negative-100, -8px)".concat("\n ", "var(--ds-space-negative-200, -16px)")
|
|
29
|
+
});
|
|
30
|
+
var messageTextStyle = xcss({
|
|
31
|
+
textIndent: 'space.075'
|
|
32
|
+
});
|
|
28
33
|
var isSafari = navigator.userAgent.indexOf('Safari');
|
|
29
34
|
export var HiddenInput = /*#__PURE__*/React.forwardRef(
|
|
30
35
|
// we need a hidden input to reliably copy to clipboard across all browsers.
|
|
31
36
|
function (props, ref) {
|
|
32
37
|
return jsx("input", {
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
33
39
|
style: {
|
|
34
40
|
position: 'absolute',
|
|
35
41
|
left: '-9999px'
|
|
@@ -93,7 +99,10 @@ export var CopyLinkButton = /*#__PURE__*/function (_React$Component) {
|
|
|
93
99
|
iconBefore = _this$props.iconBefore;
|
|
94
100
|
return jsx(Button, {
|
|
95
101
|
"aria-label": copyLinkButtonText,
|
|
96
|
-
isDisabled: isDisabled
|
|
102
|
+
isDisabled: isDisabled
|
|
103
|
+
// TODO: (from codemod)"link" and "subtle-link" appearances are only available in LinkButton, please either provide a href prop then migrate to LinkButton, or remove the appearance from the default button.
|
|
104
|
+
// https://product-fabric.atlassian.net/browse/DSP-18980
|
|
105
|
+
,
|
|
97
106
|
appearance: "subtle-link",
|
|
98
107
|
iconBefore: iconBefore || jsx(LinkFilledIcon, {
|
|
99
108
|
label: "",
|
|
@@ -118,7 +127,9 @@ export var CopyLinkButton = /*#__PURE__*/function (_React$Component) {
|
|
|
118
127
|
var _this$props2 = this.props,
|
|
119
128
|
copyTooltipText = _this$props2.copyTooltipText,
|
|
120
129
|
copiedToClipboardText = _this$props2.copiedToClipboardText;
|
|
121
|
-
return jsx(React.Fragment, null, isSafari &&
|
|
130
|
+
return jsx(React.Fragment, null, isSafari &&
|
|
131
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
132
|
+
jsx("div", {
|
|
122
133
|
className: "assistive",
|
|
123
134
|
"aria-live": "assertive"
|
|
124
135
|
}, shouldShowCopiedMessage && copiedToClipboardText), jsx(HiddenInput, {
|
|
@@ -134,8 +145,8 @@ export var CopyLinkButton = /*#__PURE__*/function (_React$Component) {
|
|
|
134
145
|
}, jsx(React.Fragment, null, jsx(CheckCircleIcon, {
|
|
135
146
|
label: "",
|
|
136
147
|
primaryColor: "var(--ds-icon-success, ".concat(G300, ")")
|
|
137
|
-
}), jsx(
|
|
138
|
-
|
|
148
|
+
}), jsx(Box, {
|
|
149
|
+
xcss: messageTextStyle
|
|
139
150
|
}, copiedToClipboardText))));
|
|
140
151
|
},
|
|
141
152
|
isOpen: shouldShowCopiedMessage,
|
|
@@ -14,14 +14,17 @@ var IntegrationButton = function IntegrationButton(props) {
|
|
|
14
14
|
textColor = props.textColor,
|
|
15
15
|
IntegrationIcon = props.IntegrationIcon,
|
|
16
16
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
17
|
-
return
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
return (
|
|
18
|
+
// TODO: (from codemod) CustomThemeButton will be deprecated. Please consider migrating to Pressable or Anchor Primitives with custom styles.
|
|
19
|
+
jsx(Button, restProps, jsx("span", {
|
|
20
|
+
css: integrationButtonCopyWrapperStyle,
|
|
21
|
+
style: {
|
|
22
|
+
color: textColor || "var(--ds-text, ".concat(N500, ")")
|
|
23
|
+
}
|
|
24
|
+
}, jsx("span", {
|
|
25
|
+
css: integrationIconWrapperStyle
|
|
26
|
+
}, jsx(IntegrationIcon, null)), jsx("span", null, text)))
|
|
27
|
+
);
|
|
25
28
|
};
|
|
26
29
|
IntegrationButton.displayName = 'IntegrationButton';
|
|
27
30
|
export default IntegrationButton;
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["text", "aria-haspopup"];
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import Button from '@atlaskit/button/
|
|
5
|
+
import Button from '@atlaskit/button/standard-button';
|
|
6
6
|
export var ShareButton = /*#__PURE__*/React.forwardRef(
|
|
7
7
|
// Discard aria-haspopup
|
|
8
8
|
function ShareButton(_ref, ref) {
|
|
@@ -551,7 +551,9 @@ export var ShareDialogWithTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
551
551
|
return jsx("div", {
|
|
552
552
|
css: shareButtonWrapperStyles,
|
|
553
553
|
tabIndex: tabIndex,
|
|
554
|
-
onKeyDown: this.handleKeyDown
|
|
554
|
+
onKeyDown: this.handleKeyDown
|
|
555
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
556
|
+
,
|
|
555
557
|
style: style
|
|
556
558
|
}, jsx(Popup, {
|
|
557
559
|
content: function content() {
|
|
@@ -15,7 +15,7 @@ import React from 'react';
|
|
|
15
15
|
import { css, jsx } from '@emotion/react';
|
|
16
16
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
17
17
|
import { AnalyticsContext } from '@atlaskit/analytics-next';
|
|
18
|
-
import Button from '@atlaskit/button/
|
|
18
|
+
import Button from '@atlaskit/button/new';
|
|
19
19
|
import Form, { RequiredAsterisk } from '@atlaskit/form';
|
|
20
20
|
import EmailIcon from '@atlaskit/icon/glyph/email';
|
|
21
21
|
import ErrorIcon from '@atlaskit/icon/glyph/error';
|
|
@@ -14,41 +14,57 @@ var SlackIcon = function SlackIcon() {
|
|
|
14
14
|
id: "prefix__svg_2"
|
|
15
15
|
}, /*#__PURE__*/React.createElement("path", {
|
|
16
16
|
id: "prefix__svg_3",
|
|
17
|
-
d: "M27.4 79.2c0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9h12.9v12.9z"
|
|
17
|
+
d: "M27.4 79.2c0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9h12.9v12.9z"
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
19
|
+
,
|
|
18
20
|
className: "prefix__st0"
|
|
19
21
|
}), /*#__PURE__*/React.createElement("path", {
|
|
20
22
|
id: "prefix__svg_4",
|
|
21
|
-
d: "M33.9 79.2c0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v32.3c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9V79.2z"
|
|
23
|
+
d: "M33.9 79.2c0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v32.3c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9V79.2z"
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
25
|
+
,
|
|
22
26
|
className: "prefix__st0"
|
|
23
27
|
})), /*#__PURE__*/React.createElement("g", {
|
|
24
28
|
id: "prefix__svg_5"
|
|
25
29
|
}, /*#__PURE__*/React.createElement("path", {
|
|
26
30
|
id: "prefix__svg_6",
|
|
27
|
-
d: "M46.8 27.4c-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v12.9H46.8z"
|
|
31
|
+
d: "M46.8 27.4c-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v12.9H46.8z"
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
33
|
+
,
|
|
28
34
|
className: "prefix__st1"
|
|
29
35
|
}), /*#__PURE__*/React.createElement("path", {
|
|
30
36
|
id: "prefix__svg_7",
|
|
31
|
-
d: "M46.8 33.9c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H14.5c-7.1 0-12.9-5.8-12.9-12.9s5.8-12.9 12.9-12.9h32.3z"
|
|
37
|
+
d: "M46.8 33.9c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H14.5c-7.1 0-12.9-5.8-12.9-12.9s5.8-12.9 12.9-12.9h32.3z"
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
39
|
+
,
|
|
32
40
|
className: "prefix__st1"
|
|
33
41
|
})), /*#__PURE__*/React.createElement("g", {
|
|
34
42
|
id: "prefix__svg_8"
|
|
35
43
|
}, /*#__PURE__*/React.createElement("path", {
|
|
36
44
|
id: "prefix__svg_9",
|
|
37
|
-
d: "M98.6 46.8c0-7.1 5.8-12.9 12.9-12.9 7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H98.6V46.8z"
|
|
45
|
+
d: "M98.6 46.8c0-7.1 5.8-12.9 12.9-12.9 7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H98.6V46.8z"
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
47
|
+
,
|
|
38
48
|
className: "prefix__st2"
|
|
39
49
|
}), /*#__PURE__*/React.createElement("path", {
|
|
40
50
|
id: "prefix__svg_10",
|
|
41
|
-
d: "M92.1 46.8c0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9V14.5c0-7.1 5.8-12.9 12.9-12.9 7.1 0 12.9 5.8 12.9 12.9v32.3z"
|
|
51
|
+
d: "M92.1 46.8c0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9V14.5c0-7.1 5.8-12.9 12.9-12.9 7.1 0 12.9 5.8 12.9 12.9v32.3z"
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
53
|
+
,
|
|
42
54
|
className: "prefix__st2"
|
|
43
55
|
})), /*#__PURE__*/React.createElement("g", {
|
|
44
56
|
id: "prefix__svg_11"
|
|
45
57
|
}, /*#__PURE__*/React.createElement("path", {
|
|
46
58
|
id: "prefix__svg_12",
|
|
47
|
-
d: "M79.2 98.6c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9V98.6h12.9z"
|
|
59
|
+
d: "M79.2 98.6c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9V98.6h12.9z"
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
61
|
+
,
|
|
48
62
|
className: "prefix__st3"
|
|
49
63
|
}), /*#__PURE__*/React.createElement("path", {
|
|
50
64
|
id: "prefix__svg_13",
|
|
51
|
-
d: "M79.2 92.1c-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9h32.3c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9H79.2z"
|
|
65
|
+
d: "M79.2 92.1c-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9h32.3c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9H79.2z"
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
67
|
+
,
|
|
52
68
|
className: "prefix__st3"
|
|
53
69
|
})))));
|
|
54
70
|
};
|
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
-
import
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
var _excluded = ["triggerRef"];
|
|
5
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
6
5
|
/** @jsx jsx */
|
|
7
6
|
import React, { useCallback } from 'react';
|
|
8
7
|
import { css, jsx } from '@emotion/react';
|
|
9
8
|
import { FormattedMessage } from 'react-intl-next';
|
|
10
|
-
import
|
|
9
|
+
import { SplitButton as AKSplitButton, IconButton } from '@atlaskit/button/new';
|
|
11
10
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
12
11
|
import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
13
12
|
import { N800 } from '@atlaskit/theme/colors';
|
|
14
13
|
import { messages } from '../i18n';
|
|
15
14
|
import { shareIntegrationButtonEvent } from './analytics/analytics';
|
|
16
15
|
import IntegrationButton from './IntegrationButton';
|
|
17
|
-
var splitButtonWrapperStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n button {\n border-radius: ", " ", "\n ", " ", ";\n }\n button:hover {\n border-radius: ", " ", "\n ", " ", ";\n }\n"])), "var(--ds-border-radius, 3px)", "var(--ds-space-0, 0px)", "var(--ds-space-0, 0px)", "var(--ds-border-radius, 3px)", "var(--ds-border-radius, 3px)", "var(--ds-space-0, 0px)", "var(--ds-space-0, 0px)", "var(--ds-border-radius, 3px)");
|
|
18
|
-
var dropdownMenuWrapperStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-left: ", ";\n button {\n border-radius: ", " ", "\n ", " ", ";\n }\n button:hover {\n border-radius: ", " ", "\n ", " ", ";\n }\n"])), "var(--ds-space-025, 2px)", "var(--ds-space-0, 0px)", "var(--ds-border-radius, 3px)", "var(--ds-border-radius, 3px)", "var(--ds-space-0, 0px)", "var(--ds-space-0, 0px)", "var(--ds-border-radius, 3px)", "var(--ds-border-radius, 3px)", "var(--ds-space-0, 0px)");
|
|
19
16
|
|
|
20
17
|
// span
|
|
21
|
-
var dropDownIntegrationButtonWrapperStyles = css(
|
|
18
|
+
var dropDownIntegrationButtonWrapperStyles = css(_defineProperty({}, 'button:hover', {
|
|
19
|
+
background: 'transparent'
|
|
20
|
+
}));
|
|
22
21
|
var integrationButtonText = function integrationButtonText(integrationName) {
|
|
23
22
|
return jsx(FormattedMessage, _extends({}, messages.shareToIntegrationButtonText, {
|
|
24
23
|
values: {
|
|
@@ -46,18 +45,16 @@ var SplitButtonDropdown = function SplitButtonDropdown(props) {
|
|
|
46
45
|
onIntegrationClick(integration);
|
|
47
46
|
createAndFireEvent(shareIntegrationButtonEvent(integration.type));
|
|
48
47
|
}, [createAndFireEvent, onIntegrationClick]);
|
|
49
|
-
return jsx(
|
|
50
|
-
css: dropdownMenuWrapperStyles
|
|
51
|
-
}, jsx(DropdownMenu, {
|
|
48
|
+
return jsx(DropdownMenu, {
|
|
52
49
|
testId: "split-button-dropdown",
|
|
53
50
|
trigger: function trigger(_ref2) {
|
|
54
51
|
var triggerRef = _ref2.triggerRef,
|
|
55
52
|
providedProps = _objectWithoutProperties(_ref2, _excluded);
|
|
56
|
-
return jsx(
|
|
53
|
+
return jsx(IconButton, _extends({
|
|
54
|
+
label: ""
|
|
55
|
+
}, providedProps, {
|
|
57
56
|
ref: triggerRef,
|
|
58
|
-
|
|
59
|
-
label: ""
|
|
60
|
-
}),
|
|
57
|
+
icon: ChevronDownIcon,
|
|
61
58
|
appearance: triggerButtonAppearance
|
|
62
59
|
}));
|
|
63
60
|
},
|
|
@@ -80,7 +77,7 @@ var SplitButtonDropdown = function SplitButtonDropdown(props) {
|
|
|
80
77
|
text: integrationButtonText(integration.type),
|
|
81
78
|
IntegrationIcon: integration.Icon
|
|
82
79
|
})));
|
|
83
|
-
})))
|
|
80
|
+
})));
|
|
84
81
|
};
|
|
85
82
|
SplitButtonDropdown.displayName = 'SplitButtonDropdown';
|
|
86
83
|
export default function SplitButton(_ref3) {
|
|
@@ -91,12 +88,10 @@ export default function SplitButton(_ref3) {
|
|
|
91
88
|
shareIntegrations = _ref3.shareIntegrations,
|
|
92
89
|
onIntegrationClick = _ref3.onIntegrationClick,
|
|
93
90
|
triggerButtonAppearance = _ref3.triggerButtonAppearance,
|
|
94
|
-
dialogZIndex = _ref3.dialogZIndex,
|
|
95
|
-
dialogPlacement = _ref3.dialogPlacement,
|
|
96
91
|
createAndFireEvent = _ref3.createAndFireEvent;
|
|
97
|
-
return jsx(
|
|
98
|
-
|
|
99
|
-
|
|
92
|
+
return jsx(AKSplitButton, {
|
|
93
|
+
"data-testid": "split-button",
|
|
94
|
+
appearance: triggerButtonAppearance
|
|
100
95
|
}, shareButton, jsx(SplitButtonDropdown, {
|
|
101
96
|
shareIntegrations: shareIntegrations,
|
|
102
97
|
triggerButtonAppearance: triggerButtonAppearance,
|
|
@@ -6,7 +6,7 @@ var buildAttributes = function buildAttributes() {
|
|
|
6
6
|
var attributes = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
7
7
|
return _objectSpread({
|
|
8
8
|
packageName: "@atlaskit/share",
|
|
9
|
-
packageVersion: "4.18.
|
|
9
|
+
packageVersion: "4.18.2"
|
|
10
10
|
}, attributes);
|
|
11
11
|
};
|
|
12
12
|
var createEvent = function createEvent(eventType, source, action, actionSubject, actionSubjectId) {
|
|
@@ -14,41 +14,57 @@ var SlackIcon = function SlackIcon() {
|
|
|
14
14
|
id: "prefix__svg_2"
|
|
15
15
|
}, /*#__PURE__*/React.createElement("path", {
|
|
16
16
|
id: "prefix__svg_3",
|
|
17
|
-
d: "M27.4 79.2c0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9h12.9v12.9z"
|
|
17
|
+
d: "M27.4 79.2c0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9h12.9v12.9z"
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
19
|
+
,
|
|
18
20
|
className: "prefix__st0"
|
|
19
21
|
}), /*#__PURE__*/React.createElement("path", {
|
|
20
22
|
id: "prefix__svg_4",
|
|
21
|
-
d: "M33.9 79.2c0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v32.3c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9V79.2z"
|
|
23
|
+
d: "M33.9 79.2c0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v32.3c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9V79.2z"
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
25
|
+
,
|
|
22
26
|
className: "prefix__st0"
|
|
23
27
|
})), /*#__PURE__*/React.createElement("g", {
|
|
24
28
|
id: "prefix__svg_5"
|
|
25
29
|
}, /*#__PURE__*/React.createElement("path", {
|
|
26
30
|
id: "prefix__svg_6",
|
|
27
|
-
d: "M46.8 27.4c-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v12.9H46.8z"
|
|
31
|
+
d: "M46.8 27.4c-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v12.9H46.8z"
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
33
|
+
,
|
|
28
34
|
className: "prefix__st1"
|
|
29
35
|
}), /*#__PURE__*/React.createElement("path", {
|
|
30
36
|
id: "prefix__svg_7",
|
|
31
|
-
d: "M46.8 33.9c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H14.5c-7.1 0-12.9-5.8-12.9-12.9s5.8-12.9 12.9-12.9h32.3z"
|
|
37
|
+
d: "M46.8 33.9c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H14.5c-7.1 0-12.9-5.8-12.9-12.9s5.8-12.9 12.9-12.9h32.3z"
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
39
|
+
,
|
|
32
40
|
className: "prefix__st1"
|
|
33
41
|
})), /*#__PURE__*/React.createElement("g", {
|
|
34
42
|
id: "prefix__svg_8"
|
|
35
43
|
}, /*#__PURE__*/React.createElement("path", {
|
|
36
44
|
id: "prefix__svg_9",
|
|
37
|
-
d: "M98.6 46.8c0-7.1 5.8-12.9 12.9-12.9 7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H98.6V46.8z"
|
|
45
|
+
d: "M98.6 46.8c0-7.1 5.8-12.9 12.9-12.9 7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H98.6V46.8z"
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
47
|
+
,
|
|
38
48
|
className: "prefix__st2"
|
|
39
49
|
}), /*#__PURE__*/React.createElement("path", {
|
|
40
50
|
id: "prefix__svg_10",
|
|
41
|
-
d: "M92.1 46.8c0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9V14.5c0-7.1 5.8-12.9 12.9-12.9 7.1 0 12.9 5.8 12.9 12.9v32.3z"
|
|
51
|
+
d: "M92.1 46.8c0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9V14.5c0-7.1 5.8-12.9 12.9-12.9 7.1 0 12.9 5.8 12.9 12.9v32.3z"
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
53
|
+
,
|
|
42
54
|
className: "prefix__st2"
|
|
43
55
|
})), /*#__PURE__*/React.createElement("g", {
|
|
44
56
|
id: "prefix__svg_11"
|
|
45
57
|
}, /*#__PURE__*/React.createElement("path", {
|
|
46
58
|
id: "prefix__svg_12",
|
|
47
|
-
d: "M79.2 98.6c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9V98.6h12.9z"
|
|
59
|
+
d: "M79.2 98.6c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9-7.1 0-12.9-5.8-12.9-12.9V98.6h12.9z"
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
61
|
+
,
|
|
48
62
|
className: "prefix__st3"
|
|
49
63
|
}), /*#__PURE__*/React.createElement("path", {
|
|
50
64
|
id: "prefix__svg_13",
|
|
51
|
-
d: "M79.2 92.1c-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9h32.3c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9H79.2z"
|
|
65
|
+
d: "M79.2 92.1c-7.1 0-12.9-5.8-12.9-12.9 0-7.1 5.8-12.9 12.9-12.9h32.3c7.1 0 12.9 5.8 12.9 12.9 0 7.1-5.8 12.9-12.9 12.9H79.2z"
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
67
|
+
,
|
|
52
68
|
className: "prefix__st3"
|
|
53
69
|
})))));
|
|
54
70
|
};
|
|
@@ -1,29 +1,14 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["buttonStyles"];
|
|
5
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
2
|
import React from 'react';
|
|
8
3
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
9
4
|
export var MAX_PICKER_HEIGHT = 102;
|
|
10
5
|
var StyledButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
11
|
-
return
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return _objectSpread({
|
|
19
|
-
buttonStyles: _objectSpread(_objectSpread({}, buttonStyles), {}, {
|
|
20
|
-
padding: 0,
|
|
21
|
-
'& > span > span:first-of-type': {
|
|
22
|
-
margin: '0' // This is a workaround for an issue in AtlasKit (https://ecosystem.atlassian.net/browse/AK-3976)
|
|
23
|
-
}
|
|
24
|
-
})
|
|
25
|
-
}, rest);
|
|
26
|
-
}
|
|
27
|
-
}));
|
|
6
|
+
return (
|
|
7
|
+
/*#__PURE__*/
|
|
8
|
+
// TODO: (from codemod) CustomThemeButton will be deprecated. Please consider migrating to Pressable or Anchor Primitives with custom styles.
|
|
9
|
+
React.createElement(Button, _extends({
|
|
10
|
+
ref: ref
|
|
11
|
+
}, props))
|
|
12
|
+
);
|
|
28
13
|
});
|
|
29
14
|
export default StyledButton;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ServiceConfig } from '@atlaskit/util-service-support';
|
|
2
|
-
import { Comment, Content, MetaData, User } from '../types';
|
|
1
|
+
import { type ServiceConfig } from '@atlaskit/util-service-support';
|
|
2
|
+
import { type Comment, type Content, type MetaData, type User } from '../types';
|
|
3
3
|
export type ShareRequest = (content: Content, recipients: User[], metadata: MetaData, comment?: Comment) => Promise<ShareResponse>;
|
|
4
4
|
export type ShareResponse = {
|
|
5
5
|
shareRequestId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import React, { ReactElement } from 'react';
|
|
2
|
+
import React, { type ReactElement } from 'react';
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import { TriggerProps } from '@atlaskit/popup';
|
|
4
|
+
import { type TriggerProps } from '@atlaskit/popup';
|
|
5
5
|
export declare const AUTO_DISMISS_MS: number;
|
|
6
6
|
export declare const messageContainerStyle: import("@emotion/react").SerializedStyles;
|
|
7
7
|
type InputProps = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
2
|
+
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
3
|
type Props = React.PropsWithChildren<WithAnalyticsEventsProps>;
|
|
4
4
|
declare const _default: React.ForwardRefExoticComponent<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
5
5
|
export default _default;
|