@atlaskit/focused-task-close-account 2.0.5 → 2.1.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 +16 -0
- package/dist/cjs/components/DeactivateUserOverviewScreen/DeactivateUserOverviewScreen.js +2 -31
- package/dist/cjs/components/DeactivateUserOverviewScreen/index.js +0 -4
- package/dist/cjs/components/DeactivateUserOverviewScreen/styled.js +0 -16
- package/dist/cjs/components/DeleteUserContentPreviewScreen/DeleteUserContentPreviewScreen.js +0 -29
- package/dist/cjs/components/DeleteUserContentPreviewScreen/index.js +0 -4
- package/dist/cjs/components/DeleteUserContentPreviewScreen/styled.js +0 -19
- package/dist/cjs/components/DeleteUserOverviewScreen/DeleteUserOverviewScreen.js +6 -41
- package/dist/cjs/components/DeleteUserOverviewScreen/index.js +0 -4
- package/dist/cjs/components/DeleteUserOverviewScreen/styled.js +0 -21
- package/dist/cjs/components/DropdownList/DropdownList.js +0 -31
- package/dist/cjs/components/DropdownList/index.js +0 -4
- package/dist/cjs/components/DropdownList/styled.js +0 -11
- package/dist/cjs/components/FocusedTaskCloseAccount/FocusedTaskCloseAccount.js +5 -38
- package/dist/cjs/components/FocusedTaskCloseAccount/index.js +0 -4
- package/dist/cjs/components/FocusedTaskCloseAccount/styled.js +1 -11
- package/dist/cjs/components/Footer/Footer.js +7 -27
- package/dist/cjs/components/Footer/index.js +0 -2
- package/dist/cjs/components/Footer/styled.js +0 -7
- package/dist/cjs/components/MessagesIntlProvider.js +2 -19
- package/dist/cjs/components/StatefulInlineDialog/StatefulInlineDialog.js +3 -23
- package/dist/cjs/components/StatefulInlineDialog/index.js +0 -2
- package/dist/cjs/components/UserInfo/UserInfo.js +0 -19
- package/dist/cjs/components/UserInfo/index.js +0 -4
- package/dist/cjs/components/UserInfo/styles.js +0 -19
- package/dist/cjs/i18n/cs.js +1 -1
- package/dist/cjs/i18n/da.js +1 -1
- package/dist/cjs/i18n/de.js +1 -1
- package/dist/cjs/i18n/en.js +1 -1
- package/dist/cjs/i18n/en_GB.js +1 -1
- package/dist/cjs/i18n/en_ZZ.js +0 -1
- package/dist/cjs/i18n/es.js +1 -1
- package/dist/cjs/i18n/et.js +0 -1
- package/dist/cjs/i18n/fi.js +1 -1
- package/dist/cjs/i18n/fr.js +1 -1
- package/dist/cjs/i18n/hu.js +1 -1
- package/dist/cjs/i18n/index.js +0 -30
- package/dist/cjs/i18n/is.js +0 -1
- package/dist/cjs/i18n/it.js +1 -1
- package/dist/cjs/i18n/ja.js +1 -1
- package/dist/cjs/i18n/ko.js +1 -1
- package/dist/cjs/i18n/languages.js +0 -1
- package/dist/cjs/i18n/nb.js +1 -1
- package/dist/cjs/i18n/nl.js +1 -1
- package/dist/cjs/i18n/pl.js +1 -1
- package/dist/cjs/i18n/pt_BR.js +1 -1
- package/dist/cjs/i18n/pt_PT.js +0 -1
- package/dist/cjs/i18n/ro.js +0 -1
- package/dist/cjs/i18n/ru.js +1 -1
- package/dist/cjs/i18n/sk.js +0 -1
- package/dist/cjs/i18n/sv.js +1 -1
- package/dist/cjs/i18n/th.js +1 -1
- package/dist/cjs/i18n/tr.js +1 -1
- package/dist/cjs/i18n/uk.js +1 -1
- package/dist/cjs/i18n/vi.js +1 -1
- package/dist/cjs/i18n/zh.js +1 -1
- package/dist/cjs/i18n/zh_TW.js +1 -1
- package/dist/cjs/index.js +0 -5
- package/dist/cjs/messages.js +0 -2
- package/dist/cjs/util/gridSizeTimes.js +0 -3
- package/dist/cjs/util/i18n-util.js +1 -7
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/DeactivateUserOverviewScreen/DeactivateUserOverviewScreen.js +0 -8
- package/dist/es2019/components/DeleteUserContentPreviewScreen/DeleteUserContentPreviewScreen.js +0 -7
- package/dist/es2019/components/DeleteUserContentPreviewScreen/styled.js +0 -2
- package/dist/es2019/components/DeleteUserOverviewScreen/DeleteUserOverviewScreen.js +0 -11
- package/dist/es2019/components/DropdownList/DropdownList.js +0 -6
- package/dist/es2019/components/FocusedTaskCloseAccount/FocusedTaskCloseAccount.js +0 -6
- package/dist/es2019/components/FocusedTaskCloseAccount/styled.js +1 -1
- package/dist/es2019/components/Footer/Footer.js +0 -1
- package/dist/es2019/components/MessagesIntlProvider.js +0 -3
- package/dist/es2019/components/StatefulInlineDialog/StatefulInlineDialog.js +0 -7
- package/dist/es2019/components/UserInfo/UserInfo.js +0 -1
- package/dist/es2019/components/UserInfo/styles.js +0 -2
- package/dist/es2019/i18n/cs.js +1 -0
- package/dist/es2019/i18n/da.js +1 -0
- package/dist/es2019/i18n/de.js +1 -0
- package/dist/es2019/i18n/en.js +1 -0
- package/dist/es2019/i18n/en_GB.js +1 -0
- package/dist/es2019/i18n/es.js +1 -0
- package/dist/es2019/i18n/fi.js +1 -0
- package/dist/es2019/i18n/fr.js +1 -0
- package/dist/es2019/i18n/hu.js +1 -0
- package/dist/es2019/i18n/it.js +1 -0
- package/dist/es2019/i18n/ja.js +1 -0
- package/dist/es2019/i18n/ko.js +1 -0
- package/dist/es2019/i18n/nb.js +1 -0
- package/dist/es2019/i18n/nl.js +1 -0
- package/dist/es2019/i18n/pl.js +1 -0
- package/dist/es2019/i18n/pt_BR.js +1 -0
- package/dist/es2019/i18n/ru.js +1 -0
- package/dist/es2019/i18n/sv.js +1 -0
- package/dist/es2019/i18n/th.js +1 -0
- package/dist/es2019/i18n/tr.js +1 -0
- package/dist/es2019/i18n/uk.js +1 -0
- package/dist/es2019/i18n/vi.js +1 -0
- package/dist/es2019/i18n/zh.js +1 -0
- package/dist/es2019/i18n/zh_TW.js +1 -0
- package/dist/es2019/util/gridSizeTimes.js +0 -2
- package/dist/es2019/util/i18n-util.js +1 -4
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/DeactivateUserOverviewScreen/DeactivateUserOverviewScreen.js +2 -19
- package/dist/esm/components/DeactivateUserOverviewScreen/styled.js +0 -2
- package/dist/esm/components/DeleteUserContentPreviewScreen/DeleteUserContentPreviewScreen.js +0 -16
- package/dist/esm/components/DeleteUserContentPreviewScreen/styled.js +0 -4
- package/dist/esm/components/DeleteUserOverviewScreen/DeleteUserOverviewScreen.js +6 -26
- package/dist/esm/components/DeleteUserOverviewScreen/styled.js +0 -2
- package/dist/esm/components/DropdownList/DropdownList.js +0 -15
- package/dist/esm/components/DropdownList/styled.js +0 -2
- package/dist/esm/components/FocusedTaskCloseAccount/FocusedTaskCloseAccount.js +5 -22
- package/dist/esm/components/FocusedTaskCloseAccount/styled.js +1 -3
- package/dist/esm/components/Footer/Footer.js +7 -17
- package/dist/esm/components/Footer/styled.js +0 -2
- package/dist/esm/components/MessagesIntlProvider.js +2 -12
- package/dist/esm/components/StatefulInlineDialog/StatefulInlineDialog.js +3 -19
- package/dist/esm/components/UserInfo/UserInfo.js +0 -8
- package/dist/esm/components/UserInfo/styles.js +0 -4
- package/dist/esm/i18n/cs.js +1 -0
- package/dist/esm/i18n/da.js +1 -0
- package/dist/esm/i18n/de.js +1 -0
- package/dist/esm/i18n/en.js +1 -0
- package/dist/esm/i18n/en_GB.js +1 -0
- package/dist/esm/i18n/es.js +1 -0
- package/dist/esm/i18n/fi.js +1 -0
- package/dist/esm/i18n/fr.js +1 -0
- package/dist/esm/i18n/hu.js +1 -0
- package/dist/esm/i18n/it.js +1 -0
- package/dist/esm/i18n/ja.js +1 -0
- package/dist/esm/i18n/ko.js +1 -0
- package/dist/esm/i18n/nb.js +1 -0
- package/dist/esm/i18n/nl.js +1 -0
- package/dist/esm/i18n/pl.js +1 -0
- package/dist/esm/i18n/pt_BR.js +1 -0
- package/dist/esm/i18n/ru.js +1 -0
- package/dist/esm/i18n/sv.js +1 -0
- package/dist/esm/i18n/th.js +1 -0
- package/dist/esm/i18n/tr.js +1 -0
- package/dist/esm/i18n/uk.js +1 -0
- package/dist/esm/i18n/vi.js +1 -0
- package/dist/esm/i18n/zh.js +1 -0
- package/dist/esm/i18n/zh_TW.js +1 -0
- package/dist/esm/util/gridSizeTimes.js +0 -2
- package/dist/esm/util/i18n-util.js +1 -4
- package/dist/esm/version.json +1 -1
- package/package.json +13 -11
|
@@ -6,11 +6,8 @@ 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
|
-
|
|
10
9
|
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
|
-
|
|
12
10
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
|
-
|
|
14
11
|
import React from 'react';
|
|
15
12
|
import { FormattedMessage } from 'react-intl-next';
|
|
16
13
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
@@ -22,60 +19,47 @@ import { commonMessages } from '../../messages';
|
|
|
22
19
|
import MessagesIntlProvider from '../MessagesIntlProvider';
|
|
23
20
|
export var FocusedTaskCloseAccount = /*#__PURE__*/function (_React$Component) {
|
|
24
21
|
_inherits(FocusedTaskCloseAccount, _React$Component);
|
|
25
|
-
|
|
26
22
|
var _super = _createSuper(FocusedTaskCloseAccount);
|
|
27
|
-
|
|
28
23
|
function FocusedTaskCloseAccount() {
|
|
29
24
|
var _this;
|
|
30
|
-
|
|
31
25
|
_classCallCheck(this, FocusedTaskCloseAccount);
|
|
32
|
-
|
|
33
26
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
34
27
|
args[_key] = arguments[_key];
|
|
35
28
|
}
|
|
36
|
-
|
|
37
29
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
38
|
-
|
|
39
30
|
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
40
31
|
currentScreenIdx: 0
|
|
41
32
|
});
|
|
42
|
-
|
|
43
33
|
_defineProperty(_assertThisInitialized(_this), "nextScreen", function () {
|
|
44
34
|
var screens = _this.props.screens;
|
|
45
35
|
var currentScreenIdx = _this.state.currentScreenIdx;
|
|
46
36
|
var nextScreenIdx = currentScreenIdx < screens.length - 1 ? currentScreenIdx + 1 : screens.length - 1;
|
|
47
|
-
|
|
48
37
|
_this.setState({
|
|
49
38
|
currentScreenIdx: nextScreenIdx
|
|
50
39
|
});
|
|
51
40
|
});
|
|
52
|
-
|
|
53
41
|
_defineProperty(_assertThisInitialized(_this), "previousScreen", function () {
|
|
54
42
|
var currentScreenIdx = _this.state.currentScreenIdx;
|
|
55
43
|
var previousScreenIdx = currentScreenIdx - 1 >= 0 ? currentScreenIdx - 1 : 0;
|
|
56
|
-
|
|
57
44
|
_this.setState({
|
|
58
45
|
currentScreenIdx: previousScreenIdx
|
|
59
46
|
});
|
|
60
47
|
});
|
|
61
|
-
|
|
62
48
|
_defineProperty(_assertThisInitialized(_this), "renderCurrentScreen", function () {
|
|
63
49
|
var currentScreen = _this.props.screens[_this.state.currentScreenIdx];
|
|
64
50
|
return currentScreen;
|
|
65
51
|
});
|
|
66
|
-
|
|
67
52
|
return _this;
|
|
68
53
|
}
|
|
69
|
-
|
|
70
54
|
_createClass(FocusedTaskCloseAccount, [{
|
|
71
55
|
key: "render",
|
|
72
56
|
value: function render() {
|
|
73
57
|
var _this$props = this.props,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
58
|
+
isOpen = _this$props.isOpen,
|
|
59
|
+
onClose = _this$props.onClose,
|
|
60
|
+
screens = _this$props.screens,
|
|
61
|
+
submitButton = _this$props.submitButton,
|
|
62
|
+
learnMoreLink = _this$props.learnMoreLink;
|
|
79
63
|
var currentScreenIdx = this.state.currentScreenIdx;
|
|
80
64
|
return /*#__PURE__*/React.createElement(MessagesIntlProvider, null, /*#__PURE__*/React.createElement(Drawer, {
|
|
81
65
|
icon: function icon(props) {
|
|
@@ -104,7 +88,6 @@ export var FocusedTaskCloseAccount = /*#__PURE__*/function (_React$Component) {
|
|
|
104
88
|
}))));
|
|
105
89
|
}
|
|
106
90
|
}]);
|
|
107
|
-
|
|
108
91
|
return FocusedTaskCloseAccount;
|
|
109
92
|
}(React.Component);
|
|
110
93
|
export default FocusedTaskCloseAccount;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
2
|
var _templateObject, _templateObject2, _templateObject3;
|
|
4
|
-
|
|
5
3
|
import styled from '@emotion/styled';
|
|
6
4
|
export var DrawerInner = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n flex-direction: column;\n align-items: center;\n"])));
|
|
7
5
|
export var ContentFooter = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: flex-end;\n"])));
|
|
8
|
-
/** Delete me once real content is present in the drawer */
|
|
9
6
|
|
|
7
|
+
/** Delete me once real content is present in the drawer */
|
|
10
8
|
export var PlaceholderContent = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 352px;\n"])));
|
|
@@ -3,38 +3,30 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
3
3
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
-
|
|
7
6
|
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); }; }
|
|
8
|
-
|
|
9
7
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
10
|
-
|
|
11
8
|
import React from 'react';
|
|
12
9
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
13
10
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
14
11
|
import * as Styled from './styled';
|
|
15
|
-
|
|
16
12
|
var Footer = /*#__PURE__*/function (_React$Component) {
|
|
17
13
|
_inherits(Footer, _React$Component);
|
|
18
|
-
|
|
19
14
|
var _super = _createSuper(Footer);
|
|
20
|
-
|
|
21
15
|
function Footer() {
|
|
22
16
|
_classCallCheck(this, Footer);
|
|
23
|
-
|
|
24
17
|
return _super.apply(this, arguments);
|
|
25
18
|
}
|
|
26
|
-
|
|
27
19
|
_createClass(Footer, [{
|
|
28
20
|
key: "render",
|
|
29
21
|
value: function render() {
|
|
30
22
|
var _this$props = this.props,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
23
|
+
currentScreenIdx = _this$props.currentScreenIdx,
|
|
24
|
+
numScreens = _this$props.numScreens,
|
|
25
|
+
onCancel = _this$props.onCancel,
|
|
26
|
+
onNext = _this$props.onNext,
|
|
27
|
+
onPrevious = _this$props.onPrevious,
|
|
28
|
+
secondaryActions = _this$props.secondaryActions,
|
|
29
|
+
submitButton = _this$props.submitButton;
|
|
38
30
|
return /*#__PURE__*/React.createElement(Styled.FooterOuter, null, /*#__PURE__*/React.createElement("div", null, secondaryActions), /*#__PURE__*/React.createElement(ButtonGroup, null, currentScreenIdx < 1 ? /*#__PURE__*/React.createElement(Button, {
|
|
39
31
|
onClick: onCancel
|
|
40
32
|
}, "Cancel") : /*#__PURE__*/React.createElement(Button, {
|
|
@@ -45,8 +37,6 @@ var Footer = /*#__PURE__*/function (_React$Component) {
|
|
|
45
37
|
}, "Next") : submitButton));
|
|
46
38
|
}
|
|
47
39
|
}]);
|
|
48
|
-
|
|
49
40
|
return Footer;
|
|
50
41
|
}(React.Component);
|
|
51
|
-
|
|
52
42
|
export { Footer as default };
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
2
|
var _templateObject;
|
|
4
|
-
|
|
5
3
|
import styled from '@emotion/styled';
|
|
6
4
|
import gridSizeTimes from '../../util/gridSizeTimes';
|
|
7
5
|
export var FooterOuter = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n max-width: 640px;\n @media screen and (max-width: 640px) {\n justify-content: space-evenly;\n padding-bottom: ", "px;\n align-items: center;\n }\n justify-content: space-between;\n margin-top: ", "px;\n"])), gridSizeTimes(3), gridSizeTimes(4));
|
|
@@ -3,40 +3,30 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
3
3
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
-
|
|
7
6
|
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); }; }
|
|
8
|
-
|
|
9
7
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
10
|
-
|
|
11
8
|
import React from 'react';
|
|
12
9
|
import { IntlProvider, injectIntl } from 'react-intl-next';
|
|
13
10
|
import { getMessagesForLocale } from '../util/i18n-util';
|
|
14
|
-
|
|
15
11
|
var MessagesIntlProvider = /*#__PURE__*/function (_React$Component) {
|
|
16
12
|
_inherits(MessagesIntlProvider, _React$Component);
|
|
17
|
-
|
|
18
13
|
var _super = _createSuper(MessagesIntlProvider);
|
|
19
|
-
|
|
20
14
|
function MessagesIntlProvider() {
|
|
21
15
|
_classCallCheck(this, MessagesIntlProvider);
|
|
22
|
-
|
|
23
16
|
return _super.apply(this, arguments);
|
|
24
17
|
}
|
|
25
|
-
|
|
26
18
|
_createClass(MessagesIntlProvider, [{
|
|
27
19
|
key: "render",
|
|
28
20
|
value: function render() {
|
|
29
21
|
var _this$props = this.props,
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
intl = _this$props.intl,
|
|
23
|
+
children = _this$props.children;
|
|
32
24
|
return /*#__PURE__*/React.createElement(IntlProvider, {
|
|
33
25
|
messages: getMessagesForLocale(intl.locale),
|
|
34
26
|
locale: intl.locale
|
|
35
27
|
}, children);
|
|
36
28
|
}
|
|
37
29
|
}]);
|
|
38
|
-
|
|
39
30
|
return MessagesIntlProvider;
|
|
40
31
|
}(React.Component);
|
|
41
|
-
|
|
42
32
|
export default injectIntl(MessagesIntlProvider);
|
|
@@ -5,63 +5,48 @@ 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
|
-
|
|
9
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); }; }
|
|
10
|
-
|
|
11
9
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
12
|
-
|
|
13
10
|
import React from 'react';
|
|
14
11
|
import InlineDialog from '@atlaskit/inline-dialog';
|
|
15
12
|
export var StatefulInlineDialog = /*#__PURE__*/function (_React$Component) {
|
|
16
13
|
_inherits(StatefulInlineDialog, _React$Component);
|
|
17
|
-
|
|
18
14
|
var _super = _createSuper(StatefulInlineDialog);
|
|
19
|
-
|
|
20
15
|
function StatefulInlineDialog() {
|
|
21
16
|
var _this;
|
|
22
|
-
|
|
23
17
|
_classCallCheck(this, StatefulInlineDialog);
|
|
24
|
-
|
|
25
18
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
26
19
|
args[_key] = arguments[_key];
|
|
27
20
|
}
|
|
28
|
-
|
|
29
21
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
30
|
-
|
|
31
22
|
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
32
23
|
isOpen: false
|
|
33
24
|
});
|
|
34
|
-
|
|
35
25
|
_defineProperty(_assertThisInitialized(_this), "openDialog", function () {
|
|
36
26
|
_this.setState({
|
|
37
27
|
isOpen: true
|
|
38
28
|
});
|
|
39
29
|
});
|
|
40
|
-
|
|
41
30
|
_defineProperty(_assertThisInitialized(_this), "closeDialog", function () {
|
|
42
31
|
_this.setState({
|
|
43
32
|
isOpen: false
|
|
44
33
|
});
|
|
45
34
|
});
|
|
46
|
-
|
|
47
35
|
_defineProperty(_assertThisInitialized(_this), "handleMouseOver", function () {
|
|
48
36
|
_this.openDialog();
|
|
49
37
|
});
|
|
50
|
-
|
|
51
38
|
_defineProperty(_assertThisInitialized(_this), "handleMouseOut", function () {
|
|
52
39
|
_this.closeDialog();
|
|
53
40
|
});
|
|
54
|
-
|
|
55
41
|
return _this;
|
|
56
42
|
}
|
|
57
|
-
|
|
58
43
|
_createClass(StatefulInlineDialog, [{
|
|
59
44
|
key: "render",
|
|
60
45
|
value: function render() {
|
|
61
46
|
var _this$props = this.props,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
47
|
+
children = _this$props.children,
|
|
48
|
+
content = _this$props.content,
|
|
49
|
+
placement = _this$props.placement;
|
|
65
50
|
return /*#__PURE__*/React.createElement(InlineDialog, {
|
|
66
51
|
content: content,
|
|
67
52
|
placement: placement,
|
|
@@ -72,7 +57,6 @@ export var StatefulInlineDialog = /*#__PURE__*/function (_React$Component) {
|
|
|
72
57
|
}, children));
|
|
73
58
|
}
|
|
74
59
|
}]);
|
|
75
|
-
|
|
76
60
|
return StatefulInlineDialog;
|
|
77
61
|
}(React.Component);
|
|
78
62
|
export default StatefulInlineDialog;
|
|
@@ -3,25 +3,18 @@ import _createClass from "@babel/runtime/helpers/createClass";
|
|
|
3
3
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
|
-
|
|
7
6
|
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); }; }
|
|
8
|
-
|
|
9
7
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
10
|
-
|
|
11
8
|
import React from 'react';
|
|
12
9
|
import Avatar from '@atlaskit/avatar';
|
|
13
10
|
import * as Styled from './styles';
|
|
14
11
|
export var UserInfo = /*#__PURE__*/function (_React$Component) {
|
|
15
12
|
_inherits(UserInfo, _React$Component);
|
|
16
|
-
|
|
17
13
|
var _super = _createSuper(UserInfo);
|
|
18
|
-
|
|
19
14
|
function UserInfo() {
|
|
20
15
|
_classCallCheck(this, UserInfo);
|
|
21
|
-
|
|
22
16
|
return _super.apply(this, arguments);
|
|
23
17
|
}
|
|
24
|
-
|
|
25
18
|
_createClass(UserInfo, [{
|
|
26
19
|
key: "render",
|
|
27
20
|
value: function render() {
|
|
@@ -32,7 +25,6 @@ export var UserInfo = /*#__PURE__*/function (_React$Component) {
|
|
|
32
25
|
})), /*#__PURE__*/React.createElement(Styled.UserDetails, null, /*#__PURE__*/React.createElement(Styled.UserName, null, user.fullName), /*#__PURE__*/React.createElement(Styled.UserEmail, null, user.email)));
|
|
33
26
|
}
|
|
34
27
|
}]);
|
|
35
|
-
|
|
36
28
|
return UserInfo;
|
|
37
29
|
}(React.Component);
|
|
38
30
|
export default UserInfo;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
|
|
3
2
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
4
|
-
|
|
5
3
|
import styled from '@emotion/styled';
|
|
6
4
|
import { fontSize } from '@atlaskit/theme/constants';
|
|
7
5
|
import { h500 } from '@atlaskit/theme/typography';
|
|
8
6
|
import { N200 } from '@atlaskit/theme/colors';
|
|
9
7
|
import gridSizeTimes from '../../util/gridSizeTimes';
|
|
10
|
-
|
|
11
8
|
var baseHeading = function baseHeading(size, lineHeight) {
|
|
12
9
|
return "\n font-size: ".concat(size / fontSize(), "em;\n font-style: inherit;\n line-height: ").concat(lineHeight / size, ";\n");
|
|
13
10
|
};
|
|
14
|
-
|
|
15
11
|
export var UserInfoOuter = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n width: 100%;\n margin-bottom: ", "px;\n"])), gridSizeTimes(2));
|
|
16
12
|
export var Avatar = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n margin-left: ", "px;\n margin-right: ", "px;\n"])), gridSizeTimes(2.5), gridSizeTimes(1));
|
|
17
13
|
export var UserDetails = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n margin-left: ", "px;\n"])), gridSizeTimes(0.5));
|
package/dist/esm/i18n/cs.js
CHANGED
package/dist/esm/i18n/da.js
CHANGED
package/dist/esm/i18n/de.js
CHANGED
package/dist/esm/i18n/en.js
CHANGED
package/dist/esm/i18n/en_GB.js
CHANGED
package/dist/esm/i18n/es.js
CHANGED
package/dist/esm/i18n/fi.js
CHANGED
package/dist/esm/i18n/fr.js
CHANGED
package/dist/esm/i18n/hu.js
CHANGED
package/dist/esm/i18n/it.js
CHANGED
package/dist/esm/i18n/ja.js
CHANGED
package/dist/esm/i18n/ko.js
CHANGED
package/dist/esm/i18n/nb.js
CHANGED
package/dist/esm/i18n/nl.js
CHANGED
package/dist/esm/i18n/pl.js
CHANGED
package/dist/esm/i18n/pt_BR.js
CHANGED
package/dist/esm/i18n/ru.js
CHANGED
package/dist/esm/i18n/sv.js
CHANGED
package/dist/esm/i18n/th.js
CHANGED
package/dist/esm/i18n/tr.js
CHANGED
package/dist/esm/i18n/uk.js
CHANGED
package/dist/esm/i18n/vi.js
CHANGED
package/dist/esm/i18n/zh.js
CHANGED
package/dist/esm/i18n/zh_TW.js
CHANGED
|
@@ -28,6 +28,7 @@ var localesMessagesMap = {
|
|
|
28
28
|
sv: sv,
|
|
29
29
|
zh: zh
|
|
30
30
|
};
|
|
31
|
+
|
|
31
32
|
/**
|
|
32
33
|
* Tries to get the most specific messages bundle for a given locale.
|
|
33
34
|
*
|
|
@@ -38,18 +39,14 @@ var localesMessagesMap = {
|
|
|
38
39
|
*
|
|
39
40
|
* @param locale string specifying the locale like 'en_GB', or 'fr'.
|
|
40
41
|
*/
|
|
41
|
-
|
|
42
42
|
export var getMessagesForLocale = function getMessagesForLocale(locale) {
|
|
43
43
|
var messages = localesMessagesMap[locale];
|
|
44
|
-
|
|
45
44
|
if (!messages) {
|
|
46
45
|
var parentLocale = locale.split(/[-_]/)[0];
|
|
47
46
|
messages = localesMessagesMap[parentLocale];
|
|
48
47
|
}
|
|
49
|
-
|
|
50
48
|
if (!messages) {
|
|
51
49
|
messages = en;
|
|
52
50
|
}
|
|
53
|
-
|
|
54
51
|
return messages;
|
|
55
52
|
};
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/focused-task-close-account",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "This package contains all of the UI components needed to assemble the focused tasks for deactivating and deleting users' accounts in accordance with the GDPR \"Right to be forgotten\".",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/avatar": "^21.
|
|
28
|
-
"@atlaskit/button": "^16.
|
|
29
|
-
"@atlaskit/drawer": "^7.
|
|
30
|
-
"@atlaskit/icon": "^21.
|
|
31
|
-
"@atlaskit/inline-dialog": "^13.
|
|
32
|
-
"@atlaskit/section-message": "^6.
|
|
33
|
-
"@atlaskit/theme": "^12.
|
|
34
|
-
"@atlaskit/tokens": "^
|
|
27
|
+
"@atlaskit/avatar": "^21.3.0",
|
|
28
|
+
"@atlaskit/button": "^16.7.0",
|
|
29
|
+
"@atlaskit/drawer": "^7.5.0",
|
|
30
|
+
"@atlaskit/icon": "^21.12.0",
|
|
31
|
+
"@atlaskit/inline-dialog": "^13.6.0",
|
|
32
|
+
"@atlaskit/section-message": "^6.4.0",
|
|
33
|
+
"@atlaskit/theme": "^12.5.0",
|
|
34
|
+
"@atlaskit/tokens": "^1.3.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0",
|
|
36
36
|
"@emotion/styled": "^11.0.0",
|
|
37
37
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"react-transition-group": "^4.4.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@atlaskit/checkbox": "^12.
|
|
45
|
+
"@atlaskit/checkbox": "^12.5.0",
|
|
46
46
|
"@atlaskit/docs": "*",
|
|
47
47
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
48
48
|
"enzyme": "^3.10.0",
|
|
@@ -60,7 +60,9 @@
|
|
|
60
60
|
],
|
|
61
61
|
"techstack": {
|
|
62
62
|
"@repo/internal": {
|
|
63
|
-
"
|
|
63
|
+
"design-tokens": [
|
|
64
|
+
"color"
|
|
65
|
+
]
|
|
64
66
|
}
|
|
65
67
|
},
|
|
66
68
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|