@atlaskit/teams-public 0.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 +9 -0
- package/LICENSE.md +11 -0
- package/README.md +9 -0
- package/dist/cjs/common/types.js +1 -0
- package/dist/cjs/common/utils/get-container-properties.js +82 -0
- package/dist/cjs/index.js +12 -0
- package/dist/cjs/ui/team-containers/add-container-card/index.compiled.css +14 -0
- package/dist/cjs/ui/team-containers/add-container-card/index.js +51 -0
- package/dist/cjs/ui/team-containers/constants.js +7 -0
- package/dist/cjs/ui/team-containers/index.js +12 -0
- package/dist/cjs/ui/team-containers/linked-container-card/index.compiled.css +13 -0
- package/dist/cjs/ui/team-containers/linked-container-card/index.js +65 -0
- package/dist/cjs/ui/team-containers/main.js +31 -0
- package/dist/cjs/ui/team-containers/types.js +1 -0
- package/dist/es2019/common/types.js +0 -0
- package/dist/es2019/common/utils/get-container-properties.js +75 -0
- package/dist/es2019/index.js +1 -0
- package/dist/es2019/ui/team-containers/add-container-card/index.compiled.css +14 -0
- package/dist/es2019/ui/team-containers/add-container-card/index.js +44 -0
- package/dist/es2019/ui/team-containers/constants.js +1 -0
- package/dist/es2019/ui/team-containers/index.js +1 -0
- package/dist/es2019/ui/team-containers/linked-container-card/index.compiled.css +13 -0
- package/dist/es2019/ui/team-containers/linked-container-card/index.js +58 -0
- package/dist/es2019/ui/team-containers/main.js +24 -0
- package/dist/es2019/ui/team-containers/types.js +0 -0
- package/dist/esm/common/types.js +0 -0
- package/dist/esm/common/utils/get-container-properties.js +75 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/ui/team-containers/add-container-card/index.compiled.css +14 -0
- package/dist/esm/ui/team-containers/add-container-card/index.js +41 -0
- package/dist/esm/ui/team-containers/constants.js +1 -0
- package/dist/esm/ui/team-containers/index.js +1 -0
- package/dist/esm/ui/team-containers/linked-container-card/index.compiled.css +13 -0
- package/dist/esm/ui/team-containers/linked-container-card/index.js +55 -0
- package/dist/esm/ui/team-containers/main.js +24 -0
- package/dist/esm/ui/team-containers/types.js +0 -0
- package/dist/types/common/types.d.ts +1 -0
- package/dist/types/common/utils/get-container-properties.d.ts +41 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/ui/team-containers/add-container-card/index.d.ts +7 -0
- package/dist/types/ui/team-containers/constants.d.ts +1 -0
- package/dist/types/ui/team-containers/index.d.ts +1 -0
- package/dist/types/ui/team-containers/linked-container-card/index.d.ts +13 -0
- package/dist/types/ui/team-containers/main.d.ts +4 -0
- package/dist/types/ui/team-containers/types.d.ts +6 -0
- package/dist/types-ts4.5/common/types.d.ts +1 -0
- package/dist/types-ts4.5/common/utils/get-container-properties.d.ts +41 -0
- package/dist/types-ts4.5/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/team-containers/add-container-card/index.d.ts +7 -0
- package/dist/types-ts4.5/ui/team-containers/constants.d.ts +1 -0
- package/dist/types-ts4.5/ui/team-containers/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/team-containers/linked-container-card/index.d.ts +13 -0
- package/dist/types-ts4.5/ui/team-containers/main.d.ts +4 -0
- package/dist/types-ts4.5/ui/team-containers/types.d.ts +6 -0
- package/package.json +104 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# @atlaskit/teams-public
|
|
2
|
+
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#110209](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110209)
|
|
8
|
+
[`39522a61b849a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/39522a61b849a) -
|
|
9
|
+
Publish first version of teams-public package
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Copyright 2023 Atlassian Pty Ltd
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
|
|
4
|
+
compliance with the License. You may obtain a copy of the License at
|
|
5
|
+
|
|
6
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
|
|
8
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is
|
|
9
|
+
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
10
|
+
implied. See the License for the specific language governing permissions and limitations under the
|
|
11
|
+
License.
|
package/README.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# TeamContainers
|
|
2
|
+
|
|
3
|
+
A component to show linked containers to the team
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
`import TeamContainers from '@atlaskit/team-containers';`
|
|
8
|
+
|
|
9
|
+
Detailed docs and example usage can be found [here](https://atlaskit.atlassian.com/packages/people-and-teams/team-containers).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.messages = exports.getContainerProperties = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _reactIntlNext = require("react-intl-next");
|
|
10
|
+
var _logo = require("@atlaskit/logo");
|
|
11
|
+
var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
12
|
+
addConfluenceContainerTitle: {
|
|
13
|
+
id: 'ptc-directory.team-profile-page.team-containers.add-confluence-space-title.non-final',
|
|
14
|
+
defaultMessage: 'Add Confluence space',
|
|
15
|
+
description: 'Title of the card to add a Confluence space to a team'
|
|
16
|
+
},
|
|
17
|
+
confluenceContainerDescription: {
|
|
18
|
+
id: 'ptc-directory.team-profile-page.team-containers.add-confluence-space-description.non-final',
|
|
19
|
+
defaultMessage: 'Confluence space',
|
|
20
|
+
description: 'Description of the card to add a Confluence space to a team'
|
|
21
|
+
},
|
|
22
|
+
addJiraProjectTitle: {
|
|
23
|
+
id: 'ptc-directory.team-profile-page.team-containers.add-jira-project-title.non-final',
|
|
24
|
+
defaultMessage: 'Add Jira project',
|
|
25
|
+
description: 'Title of the card to add a Jira project to a team'
|
|
26
|
+
},
|
|
27
|
+
jiraProjectDescription: {
|
|
28
|
+
id: 'ptc-directory.team-profile-page.team-containers.add-jira-project-description.non-final',
|
|
29
|
+
defaultMessage: 'Jira project',
|
|
30
|
+
description: 'Description of the card to add a Jira project to a team'
|
|
31
|
+
},
|
|
32
|
+
addLoomSpaceTitle: {
|
|
33
|
+
id: 'ptc-directory.team-profile-page.team-containers.add-loom-space-title.non-final',
|
|
34
|
+
defaultMessage: 'Add Loom space',
|
|
35
|
+
description: 'Title of the card to add a Loom space to a team'
|
|
36
|
+
},
|
|
37
|
+
loomSpaceDescription: {
|
|
38
|
+
id: 'ptc-directory.team-profile-page.team-containers.add-loom-space-description.non-final',
|
|
39
|
+
defaultMessage: 'Loom space',
|
|
40
|
+
description: 'Description of the card to add a Loom space to a team'
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
var getContainerProperties = exports.getContainerProperties = function getContainerProperties(containerType) {
|
|
44
|
+
switch (containerType) {
|
|
45
|
+
case 'confluence':
|
|
46
|
+
return {
|
|
47
|
+
description: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, messages.confluenceContainerDescription),
|
|
48
|
+
icon: /*#__PURE__*/_react.default.createElement(_logo.ConfluenceIcon, {
|
|
49
|
+
appearance: "brand",
|
|
50
|
+
label: "",
|
|
51
|
+
size: "xsmall"
|
|
52
|
+
}),
|
|
53
|
+
title: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, messages.addConfluenceContainerTitle)
|
|
54
|
+
};
|
|
55
|
+
case 'jira':
|
|
56
|
+
return {
|
|
57
|
+
description: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, messages.jiraProjectDescription),
|
|
58
|
+
icon: /*#__PURE__*/_react.default.createElement(_logo.JiraIcon, {
|
|
59
|
+
appearance: "brand",
|
|
60
|
+
label: "",
|
|
61
|
+
size: "xsmall"
|
|
62
|
+
}),
|
|
63
|
+
title: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, messages.addJiraProjectTitle)
|
|
64
|
+
};
|
|
65
|
+
case 'loom':
|
|
66
|
+
return {
|
|
67
|
+
description: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, messages.loomSpaceDescription),
|
|
68
|
+
icon: /*#__PURE__*/_react.default.createElement(_logo.LoomIcon, {
|
|
69
|
+
appearance: "brand",
|
|
70
|
+
label: "",
|
|
71
|
+
size: "xsmall"
|
|
72
|
+
}),
|
|
73
|
+
title: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, messages.addLoomSpaceTitle)
|
|
74
|
+
};
|
|
75
|
+
default:
|
|
76
|
+
return {
|
|
77
|
+
description: null,
|
|
78
|
+
icon: null,
|
|
79
|
+
title: null
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "TeamContainers", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _teamContainers.TeamContainers;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _teamContainers = require("./ui/team-containers");
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
|
|
3
|
+
._1dqo1mtg{border-style:dash}
|
|
4
|
+
._1h6dz9xs{border-color:var(--ds-border-accent-gray,#758195)}._12jimuej{outline-color:var(--ds-border,#091e4224)}
|
|
5
|
+
._12y3e4h9{outline-width:var(--ds-border-width,1px)}
|
|
6
|
+
._19bvutpp{padding-left:var(--ds-space-150,9pt)}
|
|
7
|
+
._bfhk1j9a{background-color:var(--ds-background-input,#fff)}
|
|
8
|
+
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
9
|
+
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
10
|
+
._syaz131l{color:var(--ds-text-subtlest,#626f86)}
|
|
11
|
+
._u5f3utpp{padding-right:var(--ds-space-150,9pt)}
|
|
12
|
+
._4cvxz9xs:hover{border-color:var(--ds-border-accent-gray,#758195)}
|
|
13
|
+
._irr31d5g:hover{background-color:var(--ds-background-input-hovered,#f7f8f9)}
|
|
14
|
+
._ksodnqa1:hover{outline-style:solid}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.AddContainerCard = void 0;
|
|
10
|
+
require("./index.compiled.css");
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
13
|
+
var _new = require("@atlaskit/button/new");
|
|
14
|
+
var _add = _interopRequireDefault(require("@atlaskit/icon/utility/add"));
|
|
15
|
+
var _menu = require("@atlaskit/menu");
|
|
16
|
+
var _primitives = require("@atlaskit/primitives");
|
|
17
|
+
var _getContainerProperties = require("../../../common/utils/get-container-properties");
|
|
18
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
+
var styles = {
|
|
21
|
+
container: "_2rkoiti9 _bfhk1j9a _ca0qutpp _u5f3utpp _n3tdutpp _19bvutpp _irr31d5g",
|
|
22
|
+
iconWrapper: "_2rkoiti9 _1dqo1mtg _1h6dz9xs _12y3e4h9 _12jimuej _syaz131l _4cvxz9xs _ksodnqa1"
|
|
23
|
+
};
|
|
24
|
+
var CustomItemInner = function CustomItemInner(_ref) {
|
|
25
|
+
var children = _ref.children;
|
|
26
|
+
return /*#__PURE__*/React.createElement(_primitives.Box, {
|
|
27
|
+
xcss: styles.container
|
|
28
|
+
}, children);
|
|
29
|
+
};
|
|
30
|
+
var AddContainerCard = exports.AddContainerCard = function AddContainerCard(_ref2) {
|
|
31
|
+
var containerType = _ref2.containerType;
|
|
32
|
+
var _getContainerProperti = (0, _getContainerProperties.getContainerProperties)(containerType),
|
|
33
|
+
description = _getContainerProperti.description,
|
|
34
|
+
icon = _getContainerProperti.icon,
|
|
35
|
+
title = _getContainerProperti.title;
|
|
36
|
+
return /*#__PURE__*/React.createElement(_menu.CustomItem, {
|
|
37
|
+
iconBefore: /*#__PURE__*/React.createElement(_primitives.Box, {
|
|
38
|
+
xcss: styles.iconWrapper
|
|
39
|
+
}, /*#__PURE__*/React.createElement(_new.IconButton, {
|
|
40
|
+
label: "Add a container",
|
|
41
|
+
appearance: "subtle",
|
|
42
|
+
icon: _add.default,
|
|
43
|
+
spacing: "compact",
|
|
44
|
+
testId: "add-icon"
|
|
45
|
+
})),
|
|
46
|
+
component: CustomItemInner,
|
|
47
|
+
description: /*#__PURE__*/React.createElement(_primitives.Inline, {
|
|
48
|
+
space: "space.050"
|
|
49
|
+
}, icon, description)
|
|
50
|
+
}, title);
|
|
51
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "TeamContainers", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _main.TeamContainers;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _main = require("./main");
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
|
|
3
|
+
._1h6dz9xs{border-color:var(--ds-border-accent-gray,#758195)}._12jimuej{outline-color:var(--ds-border,#091e4224)}
|
|
4
|
+
._12y3e4h9{outline-width:var(--ds-border-width,1px)}
|
|
5
|
+
._19bvutpp{padding-left:var(--ds-space-150,9pt)}
|
|
6
|
+
._1bsb1tcg{width:24px}
|
|
7
|
+
._1qu2nqa1{outline-style:solid}
|
|
8
|
+
._4t3i1tcg{height:24px}
|
|
9
|
+
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
10
|
+
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
11
|
+
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
12
|
+
._u5f3utpp{padding-right:var(--ds-space-150,9pt)}
|
|
13
|
+
._irr31d5g:hover{background-color:var(--ds-background-input-hovered,#f7f8f9)}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
Object.defineProperty(exports, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
exports.LinkedContainerCard = void 0;
|
|
10
|
+
require("./index.compiled.css");
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
13
|
+
var _reactRouterDom = require("react-router-dom");
|
|
14
|
+
var _new = require("@atlaskit/button/new");
|
|
15
|
+
var _cross = _interopRequireDefault(require("@atlaskit/icon/utility/cross"));
|
|
16
|
+
var _image = _interopRequireDefault(require("@atlaskit/image"));
|
|
17
|
+
var _menu = require("@atlaskit/menu");
|
|
18
|
+
var _primitives = require("@atlaskit/primitives");
|
|
19
|
+
var _getContainerProperties = require("../../../common/utils/get-container-properties");
|
|
20
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
|
+
var styles = {
|
|
23
|
+
container: "_2rkoiti9 _1h6dz9xs _12y3e4h9 _12jimuej _1qu2nqa1 _ca0qutpp _u5f3utpp _n3tdutpp _19bvutpp _syaz1fxt _irr31d5g",
|
|
24
|
+
iconWrapper: "_1bsb1tcg _4t3i1tcg"
|
|
25
|
+
};
|
|
26
|
+
var CustomItemInner = function CustomItemInner(_ref) {
|
|
27
|
+
var children = _ref.children,
|
|
28
|
+
href = _ref.href;
|
|
29
|
+
return /*#__PURE__*/React.createElement(_reactRouterDom.Link, {
|
|
30
|
+
to: href
|
|
31
|
+
}, /*#__PURE__*/React.createElement(_primitives.Box, {
|
|
32
|
+
xcss: styles.container
|
|
33
|
+
}, children));
|
|
34
|
+
};
|
|
35
|
+
var LinkedContainerCard = exports.LinkedContainerCard = function LinkedContainerCard(_ref2) {
|
|
36
|
+
var containerType = _ref2.containerType,
|
|
37
|
+
title = _ref2.title,
|
|
38
|
+
containerIcon = _ref2.containerIcon;
|
|
39
|
+
var _getContainerProperti = (0, _getContainerProperties.getContainerProperties)(containerType),
|
|
40
|
+
description = _getContainerProperti.description,
|
|
41
|
+
icon = _getContainerProperti.icon;
|
|
42
|
+
return /*#__PURE__*/React.createElement(_menu.CustomItem, {
|
|
43
|
+
iconBefore: /*#__PURE__*/React.createElement(_primitives.Box, {
|
|
44
|
+
xcss: styles.iconWrapper
|
|
45
|
+
}, /*#__PURE__*/React.createElement(_image.default, {
|
|
46
|
+
src: containerIcon,
|
|
47
|
+
alt: "",
|
|
48
|
+
testId: "linked-container-icon"
|
|
49
|
+
})),
|
|
50
|
+
description: /*#__PURE__*/React.createElement(_primitives.Inline, {
|
|
51
|
+
space: "space.050"
|
|
52
|
+
}, icon, description),
|
|
53
|
+
iconAfter: /*#__PURE__*/React.createElement(_primitives.Box, null, /*#__PURE__*/React.createElement(_new.IconButton, {
|
|
54
|
+
label: "disconnect the container ".concat(title),
|
|
55
|
+
appearance: "subtle",
|
|
56
|
+
icon: _cross.default,
|
|
57
|
+
spacing: "compact",
|
|
58
|
+
onClick: function onClick(e) {
|
|
59
|
+
e.preventDefault();
|
|
60
|
+
}
|
|
61
|
+
})),
|
|
62
|
+
href: "/",
|
|
63
|
+
component: CustomItemInner
|
|
64
|
+
}, title);
|
|
65
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.TeamContainers = exports.ICON_COLOR = exports.ICON_BACKGROUND = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _primitives = require("@atlaskit/primitives");
|
|
10
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
11
|
+
var _addContainerCard = require("./add-container-card");
|
|
12
|
+
var _linkedContainerCard = require("./linked-container-card");
|
|
13
|
+
var ICON_BACKGROUND = exports.ICON_BACKGROUND = "var(--ds-icon-inverse, ".concat(_colors.N0, ")");
|
|
14
|
+
var ICON_COLOR = exports.ICON_COLOR = "var(--ds-icon-subtle, ".concat(_colors.N90, ")");
|
|
15
|
+
var TeamContainers = exports.TeamContainers = function TeamContainers() {
|
|
16
|
+
return /*#__PURE__*/_react.default.createElement(_primitives.Grid, {
|
|
17
|
+
templateColumns: "1fr 1fr",
|
|
18
|
+
gap: "space.100",
|
|
19
|
+
autoFlow: "row"
|
|
20
|
+
}, /*#__PURE__*/_react.default.createElement(_linkedContainerCard.LinkedContainerCard, {
|
|
21
|
+
containerType: "jira",
|
|
22
|
+
title: "A Project",
|
|
23
|
+
containerIcon: "https://avatar-management--avatars.us-west-2.staging.public.atl-paas.net/712020:2981defd-17f1-440e-a377-8c7657b72a6f/4b5b0d55-614b-4e75-858f-9da3d0c7e3f8/128"
|
|
24
|
+
}), /*#__PURE__*/_react.default.createElement(_addContainerCard.AddContainerCard, {
|
|
25
|
+
containerType: "jira"
|
|
26
|
+
}), /*#__PURE__*/_react.default.createElement(_addContainerCard.AddContainerCard, {
|
|
27
|
+
containerType: "confluence"
|
|
28
|
+
}), /*#__PURE__*/_react.default.createElement(_addContainerCard.AddContainerCard, {
|
|
29
|
+
containerType: "loom"
|
|
30
|
+
}));
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
File without changes
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { defineMessages, FormattedMessage } from 'react-intl-next';
|
|
3
|
+
import { ConfluenceIcon, JiraIcon, LoomIcon } from '@atlaskit/logo';
|
|
4
|
+
export const messages = defineMessages({
|
|
5
|
+
addConfluenceContainerTitle: {
|
|
6
|
+
id: 'ptc-directory.team-profile-page.team-containers.add-confluence-space-title.non-final',
|
|
7
|
+
defaultMessage: 'Add Confluence space',
|
|
8
|
+
description: 'Title of the card to add a Confluence space to a team'
|
|
9
|
+
},
|
|
10
|
+
confluenceContainerDescription: {
|
|
11
|
+
id: 'ptc-directory.team-profile-page.team-containers.add-confluence-space-description.non-final',
|
|
12
|
+
defaultMessage: 'Confluence space',
|
|
13
|
+
description: 'Description of the card to add a Confluence space to a team'
|
|
14
|
+
},
|
|
15
|
+
addJiraProjectTitle: {
|
|
16
|
+
id: 'ptc-directory.team-profile-page.team-containers.add-jira-project-title.non-final',
|
|
17
|
+
defaultMessage: 'Add Jira project',
|
|
18
|
+
description: 'Title of the card to add a Jira project to a team'
|
|
19
|
+
},
|
|
20
|
+
jiraProjectDescription: {
|
|
21
|
+
id: 'ptc-directory.team-profile-page.team-containers.add-jira-project-description.non-final',
|
|
22
|
+
defaultMessage: 'Jira project',
|
|
23
|
+
description: 'Description of the card to add a Jira project to a team'
|
|
24
|
+
},
|
|
25
|
+
addLoomSpaceTitle: {
|
|
26
|
+
id: 'ptc-directory.team-profile-page.team-containers.add-loom-space-title.non-final',
|
|
27
|
+
defaultMessage: 'Add Loom space',
|
|
28
|
+
description: 'Title of the card to add a Loom space to a team'
|
|
29
|
+
},
|
|
30
|
+
loomSpaceDescription: {
|
|
31
|
+
id: 'ptc-directory.team-profile-page.team-containers.add-loom-space-description.non-final',
|
|
32
|
+
defaultMessage: 'Loom space',
|
|
33
|
+
description: 'Description of the card to add a Loom space to a team'
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export const getContainerProperties = containerType => {
|
|
37
|
+
switch (containerType) {
|
|
38
|
+
case 'confluence':
|
|
39
|
+
return {
|
|
40
|
+
description: /*#__PURE__*/React.createElement(FormattedMessage, messages.confluenceContainerDescription),
|
|
41
|
+
icon: /*#__PURE__*/React.createElement(ConfluenceIcon, {
|
|
42
|
+
appearance: "brand",
|
|
43
|
+
label: "",
|
|
44
|
+
size: "xsmall"
|
|
45
|
+
}),
|
|
46
|
+
title: /*#__PURE__*/React.createElement(FormattedMessage, messages.addConfluenceContainerTitle)
|
|
47
|
+
};
|
|
48
|
+
case 'jira':
|
|
49
|
+
return {
|
|
50
|
+
description: /*#__PURE__*/React.createElement(FormattedMessage, messages.jiraProjectDescription),
|
|
51
|
+
icon: /*#__PURE__*/React.createElement(JiraIcon, {
|
|
52
|
+
appearance: "brand",
|
|
53
|
+
label: "",
|
|
54
|
+
size: "xsmall"
|
|
55
|
+
}),
|
|
56
|
+
title: /*#__PURE__*/React.createElement(FormattedMessage, messages.addJiraProjectTitle)
|
|
57
|
+
};
|
|
58
|
+
case 'loom':
|
|
59
|
+
return {
|
|
60
|
+
description: /*#__PURE__*/React.createElement(FormattedMessage, messages.loomSpaceDescription),
|
|
61
|
+
icon: /*#__PURE__*/React.createElement(LoomIcon, {
|
|
62
|
+
appearance: "brand",
|
|
63
|
+
label: "",
|
|
64
|
+
size: "xsmall"
|
|
65
|
+
}),
|
|
66
|
+
title: /*#__PURE__*/React.createElement(FormattedMessage, messages.addLoomSpaceTitle)
|
|
67
|
+
};
|
|
68
|
+
default:
|
|
69
|
+
return {
|
|
70
|
+
description: null,
|
|
71
|
+
icon: null,
|
|
72
|
+
title: null
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TeamContainers } from './ui/team-containers';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
|
|
3
|
+
._1dqo1mtg{border-style:dash}
|
|
4
|
+
._1h6dz9xs{border-color:var(--ds-border-accent-gray,#758195)}._12jimuej{outline-color:var(--ds-border,#091e4224)}
|
|
5
|
+
._12y3e4h9{outline-width:var(--ds-border-width,1px)}
|
|
6
|
+
._19bvutpp{padding-left:var(--ds-space-150,9pt)}
|
|
7
|
+
._bfhk1j9a{background-color:var(--ds-background-input,#fff)}
|
|
8
|
+
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
9
|
+
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
10
|
+
._syaz131l{color:var(--ds-text-subtlest,#626f86)}
|
|
11
|
+
._u5f3utpp{padding-right:var(--ds-space-150,9pt)}
|
|
12
|
+
._4cvxz9xs:hover{border-color:var(--ds-border-accent-gray,#758195)}
|
|
13
|
+
._irr31d5g:hover{background-color:var(--ds-background-input-hovered,#f7f8f9)}
|
|
14
|
+
._ksodnqa1:hover{outline-style:solid}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
|
+
import "./index.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { IconButton } from '@atlaskit/button/new';
|
|
6
|
+
import AddIcon from '@atlaskit/icon/utility/add';
|
|
7
|
+
import { CustomItem } from '@atlaskit/menu';
|
|
8
|
+
import { Box, Inline } from '@atlaskit/primitives';
|
|
9
|
+
import { getContainerProperties } from '../../../common/utils/get-container-properties';
|
|
10
|
+
const styles = {
|
|
11
|
+
container: "_2rkoiti9 _bfhk1j9a _ca0qutpp _u5f3utpp _n3tdutpp _19bvutpp _irr31d5g",
|
|
12
|
+
iconWrapper: "_2rkoiti9 _1dqo1mtg _1h6dz9xs _12y3e4h9 _12jimuej _syaz131l _4cvxz9xs _ksodnqa1"
|
|
13
|
+
};
|
|
14
|
+
const CustomItemInner = ({
|
|
15
|
+
children
|
|
16
|
+
}) => {
|
|
17
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
18
|
+
xcss: styles.container
|
|
19
|
+
}, children);
|
|
20
|
+
};
|
|
21
|
+
export const AddContainerCard = ({
|
|
22
|
+
containerType
|
|
23
|
+
}) => {
|
|
24
|
+
const {
|
|
25
|
+
description,
|
|
26
|
+
icon,
|
|
27
|
+
title
|
|
28
|
+
} = getContainerProperties(containerType);
|
|
29
|
+
return /*#__PURE__*/React.createElement(CustomItem, {
|
|
30
|
+
iconBefore: /*#__PURE__*/React.createElement(Box, {
|
|
31
|
+
xcss: styles.iconWrapper
|
|
32
|
+
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
33
|
+
label: "Add a container",
|
|
34
|
+
appearance: "subtle",
|
|
35
|
+
icon: AddIcon,
|
|
36
|
+
spacing: "compact",
|
|
37
|
+
testId: "add-icon"
|
|
38
|
+
})),
|
|
39
|
+
component: CustomItemInner,
|
|
40
|
+
description: /*#__PURE__*/React.createElement(Inline, {
|
|
41
|
+
space: "space.050"
|
|
42
|
+
}, icon, description)
|
|
43
|
+
}, title);
|
|
44
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const PROGRESS_BAR_TEST_ID = 'myProgressBar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TeamContainers } from './main';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
|
|
3
|
+
._1h6dz9xs{border-color:var(--ds-border-accent-gray,#758195)}._12jimuej{outline-color:var(--ds-border,#091e4224)}
|
|
4
|
+
._12y3e4h9{outline-width:var(--ds-border-width,1px)}
|
|
5
|
+
._19bvutpp{padding-left:var(--ds-space-150,9pt)}
|
|
6
|
+
._1bsb1tcg{width:24px}
|
|
7
|
+
._1qu2nqa1{outline-style:solid}
|
|
8
|
+
._4t3i1tcg{height:24px}
|
|
9
|
+
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
10
|
+
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
11
|
+
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
12
|
+
._u5f3utpp{padding-right:var(--ds-space-150,9pt)}
|
|
13
|
+
._irr31d5g:hover{background-color:var(--ds-background-input-hovered,#f7f8f9)}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
|
+
import "./index.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { Link } from 'react-router-dom';
|
|
6
|
+
import { IconButton } from '@atlaskit/button/new';
|
|
7
|
+
import CrossIcon from '@atlaskit/icon/utility/cross';
|
|
8
|
+
import Image from '@atlaskit/image';
|
|
9
|
+
import { CustomItem } from '@atlaskit/menu';
|
|
10
|
+
import { Box, Inline } from '@atlaskit/primitives';
|
|
11
|
+
import { getContainerProperties } from '../../../common/utils/get-container-properties';
|
|
12
|
+
const styles = {
|
|
13
|
+
container: "_2rkoiti9 _1h6dz9xs _12y3e4h9 _12jimuej _1qu2nqa1 _ca0qutpp _u5f3utpp _n3tdutpp _19bvutpp _syaz1fxt _irr31d5g",
|
|
14
|
+
iconWrapper: "_1bsb1tcg _4t3i1tcg"
|
|
15
|
+
};
|
|
16
|
+
const CustomItemInner = ({
|
|
17
|
+
children,
|
|
18
|
+
href
|
|
19
|
+
}) => {
|
|
20
|
+
return /*#__PURE__*/React.createElement(Link, {
|
|
21
|
+
to: href
|
|
22
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
23
|
+
xcss: styles.container
|
|
24
|
+
}, children));
|
|
25
|
+
};
|
|
26
|
+
export const LinkedContainerCard = ({
|
|
27
|
+
containerType,
|
|
28
|
+
title,
|
|
29
|
+
containerIcon
|
|
30
|
+
}) => {
|
|
31
|
+
const {
|
|
32
|
+
description,
|
|
33
|
+
icon
|
|
34
|
+
} = getContainerProperties(containerType);
|
|
35
|
+
return /*#__PURE__*/React.createElement(CustomItem, {
|
|
36
|
+
iconBefore: /*#__PURE__*/React.createElement(Box, {
|
|
37
|
+
xcss: styles.iconWrapper
|
|
38
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
39
|
+
src: containerIcon,
|
|
40
|
+
alt: "",
|
|
41
|
+
testId: "linked-container-icon"
|
|
42
|
+
})),
|
|
43
|
+
description: /*#__PURE__*/React.createElement(Inline, {
|
|
44
|
+
space: "space.050"
|
|
45
|
+
}, icon, description),
|
|
46
|
+
iconAfter: /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(IconButton, {
|
|
47
|
+
label: `disconnect the container ${title}`,
|
|
48
|
+
appearance: "subtle",
|
|
49
|
+
icon: CrossIcon,
|
|
50
|
+
spacing: "compact",
|
|
51
|
+
onClick: e => {
|
|
52
|
+
e.preventDefault();
|
|
53
|
+
}
|
|
54
|
+
})),
|
|
55
|
+
href: "/",
|
|
56
|
+
component: CustomItemInner
|
|
57
|
+
}, title);
|
|
58
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Grid } from '@atlaskit/primitives';
|
|
3
|
+
import { N0, N90 } from '@atlaskit/theme/colors';
|
|
4
|
+
import { AddContainerCard } from './add-container-card';
|
|
5
|
+
import { LinkedContainerCard } from './linked-container-card';
|
|
6
|
+
export const ICON_BACKGROUND = `var(--ds-icon-inverse, ${N0})`;
|
|
7
|
+
export const ICON_COLOR = `var(--ds-icon-subtle, ${N90})`;
|
|
8
|
+
export const TeamContainers = () => {
|
|
9
|
+
return /*#__PURE__*/React.createElement(Grid, {
|
|
10
|
+
templateColumns: "1fr 1fr",
|
|
11
|
+
gap: "space.100",
|
|
12
|
+
autoFlow: "row"
|
|
13
|
+
}, /*#__PURE__*/React.createElement(LinkedContainerCard, {
|
|
14
|
+
containerType: "jira",
|
|
15
|
+
title: "A Project",
|
|
16
|
+
containerIcon: "https://avatar-management--avatars.us-west-2.staging.public.atl-paas.net/712020:2981defd-17f1-440e-a377-8c7657b72a6f/4b5b0d55-614b-4e75-858f-9da3d0c7e3f8/128"
|
|
17
|
+
}), /*#__PURE__*/React.createElement(AddContainerCard, {
|
|
18
|
+
containerType: "jira"
|
|
19
|
+
}), /*#__PURE__*/React.createElement(AddContainerCard, {
|
|
20
|
+
containerType: "confluence"
|
|
21
|
+
}), /*#__PURE__*/React.createElement(AddContainerCard, {
|
|
22
|
+
containerType: "loom"
|
|
23
|
+
}));
|
|
24
|
+
};
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { defineMessages, FormattedMessage } from 'react-intl-next';
|
|
3
|
+
import { ConfluenceIcon, JiraIcon, LoomIcon } from '@atlaskit/logo';
|
|
4
|
+
export var messages = defineMessages({
|
|
5
|
+
addConfluenceContainerTitle: {
|
|
6
|
+
id: 'ptc-directory.team-profile-page.team-containers.add-confluence-space-title.non-final',
|
|
7
|
+
defaultMessage: 'Add Confluence space',
|
|
8
|
+
description: 'Title of the card to add a Confluence space to a team'
|
|
9
|
+
},
|
|
10
|
+
confluenceContainerDescription: {
|
|
11
|
+
id: 'ptc-directory.team-profile-page.team-containers.add-confluence-space-description.non-final',
|
|
12
|
+
defaultMessage: 'Confluence space',
|
|
13
|
+
description: 'Description of the card to add a Confluence space to a team'
|
|
14
|
+
},
|
|
15
|
+
addJiraProjectTitle: {
|
|
16
|
+
id: 'ptc-directory.team-profile-page.team-containers.add-jira-project-title.non-final',
|
|
17
|
+
defaultMessage: 'Add Jira project',
|
|
18
|
+
description: 'Title of the card to add a Jira project to a team'
|
|
19
|
+
},
|
|
20
|
+
jiraProjectDescription: {
|
|
21
|
+
id: 'ptc-directory.team-profile-page.team-containers.add-jira-project-description.non-final',
|
|
22
|
+
defaultMessage: 'Jira project',
|
|
23
|
+
description: 'Description of the card to add a Jira project to a team'
|
|
24
|
+
},
|
|
25
|
+
addLoomSpaceTitle: {
|
|
26
|
+
id: 'ptc-directory.team-profile-page.team-containers.add-loom-space-title.non-final',
|
|
27
|
+
defaultMessage: 'Add Loom space',
|
|
28
|
+
description: 'Title of the card to add a Loom space to a team'
|
|
29
|
+
},
|
|
30
|
+
loomSpaceDescription: {
|
|
31
|
+
id: 'ptc-directory.team-profile-page.team-containers.add-loom-space-description.non-final',
|
|
32
|
+
defaultMessage: 'Loom space',
|
|
33
|
+
description: 'Description of the card to add a Loom space to a team'
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export var getContainerProperties = function getContainerProperties(containerType) {
|
|
37
|
+
switch (containerType) {
|
|
38
|
+
case 'confluence':
|
|
39
|
+
return {
|
|
40
|
+
description: /*#__PURE__*/React.createElement(FormattedMessage, messages.confluenceContainerDescription),
|
|
41
|
+
icon: /*#__PURE__*/React.createElement(ConfluenceIcon, {
|
|
42
|
+
appearance: "brand",
|
|
43
|
+
label: "",
|
|
44
|
+
size: "xsmall"
|
|
45
|
+
}),
|
|
46
|
+
title: /*#__PURE__*/React.createElement(FormattedMessage, messages.addConfluenceContainerTitle)
|
|
47
|
+
};
|
|
48
|
+
case 'jira':
|
|
49
|
+
return {
|
|
50
|
+
description: /*#__PURE__*/React.createElement(FormattedMessage, messages.jiraProjectDescription),
|
|
51
|
+
icon: /*#__PURE__*/React.createElement(JiraIcon, {
|
|
52
|
+
appearance: "brand",
|
|
53
|
+
label: "",
|
|
54
|
+
size: "xsmall"
|
|
55
|
+
}),
|
|
56
|
+
title: /*#__PURE__*/React.createElement(FormattedMessage, messages.addJiraProjectTitle)
|
|
57
|
+
};
|
|
58
|
+
case 'loom':
|
|
59
|
+
return {
|
|
60
|
+
description: /*#__PURE__*/React.createElement(FormattedMessage, messages.loomSpaceDescription),
|
|
61
|
+
icon: /*#__PURE__*/React.createElement(LoomIcon, {
|
|
62
|
+
appearance: "brand",
|
|
63
|
+
label: "",
|
|
64
|
+
size: "xsmall"
|
|
65
|
+
}),
|
|
66
|
+
title: /*#__PURE__*/React.createElement(FormattedMessage, messages.addLoomSpaceTitle)
|
|
67
|
+
};
|
|
68
|
+
default:
|
|
69
|
+
return {
|
|
70
|
+
description: null,
|
|
71
|
+
icon: null,
|
|
72
|
+
title: null
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TeamContainers } from './ui/team-containers';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
|
|
3
|
+
._1dqo1mtg{border-style:dash}
|
|
4
|
+
._1h6dz9xs{border-color:var(--ds-border-accent-gray,#758195)}._12jimuej{outline-color:var(--ds-border,#091e4224)}
|
|
5
|
+
._12y3e4h9{outline-width:var(--ds-border-width,1px)}
|
|
6
|
+
._19bvutpp{padding-left:var(--ds-space-150,9pt)}
|
|
7
|
+
._bfhk1j9a{background-color:var(--ds-background-input,#fff)}
|
|
8
|
+
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
9
|
+
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
10
|
+
._syaz131l{color:var(--ds-text-subtlest,#626f86)}
|
|
11
|
+
._u5f3utpp{padding-right:var(--ds-space-150,9pt)}
|
|
12
|
+
._4cvxz9xs:hover{border-color:var(--ds-border-accent-gray,#758195)}
|
|
13
|
+
._irr31d5g:hover{background-color:var(--ds-background-input-hovered,#f7f8f9)}
|
|
14
|
+
._ksodnqa1:hover{outline-style:solid}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
|
+
import "./index.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { IconButton } from '@atlaskit/button/new';
|
|
6
|
+
import AddIcon from '@atlaskit/icon/utility/add';
|
|
7
|
+
import { CustomItem } from '@atlaskit/menu';
|
|
8
|
+
import { Box, Inline } from '@atlaskit/primitives';
|
|
9
|
+
import { getContainerProperties } from '../../../common/utils/get-container-properties';
|
|
10
|
+
var styles = {
|
|
11
|
+
container: "_2rkoiti9 _bfhk1j9a _ca0qutpp _u5f3utpp _n3tdutpp _19bvutpp _irr31d5g",
|
|
12
|
+
iconWrapper: "_2rkoiti9 _1dqo1mtg _1h6dz9xs _12y3e4h9 _12jimuej _syaz131l _4cvxz9xs _ksodnqa1"
|
|
13
|
+
};
|
|
14
|
+
var CustomItemInner = function CustomItemInner(_ref) {
|
|
15
|
+
var children = _ref.children;
|
|
16
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
17
|
+
xcss: styles.container
|
|
18
|
+
}, children);
|
|
19
|
+
};
|
|
20
|
+
export var AddContainerCard = function AddContainerCard(_ref2) {
|
|
21
|
+
var containerType = _ref2.containerType;
|
|
22
|
+
var _getContainerProperti = getContainerProperties(containerType),
|
|
23
|
+
description = _getContainerProperti.description,
|
|
24
|
+
icon = _getContainerProperti.icon,
|
|
25
|
+
title = _getContainerProperti.title;
|
|
26
|
+
return /*#__PURE__*/React.createElement(CustomItem, {
|
|
27
|
+
iconBefore: /*#__PURE__*/React.createElement(Box, {
|
|
28
|
+
xcss: styles.iconWrapper
|
|
29
|
+
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
30
|
+
label: "Add a container",
|
|
31
|
+
appearance: "subtle",
|
|
32
|
+
icon: AddIcon,
|
|
33
|
+
spacing: "compact",
|
|
34
|
+
testId: "add-icon"
|
|
35
|
+
})),
|
|
36
|
+
component: CustomItemInner,
|
|
37
|
+
description: /*#__PURE__*/React.createElement(Inline, {
|
|
38
|
+
space: "space.050"
|
|
39
|
+
}, icon, description)
|
|
40
|
+
}, title);
|
|
41
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var PROGRESS_BAR_TEST_ID = 'myProgressBar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TeamContainers } from './main';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
._2rkoiti9{border-radius:var(--ds-border-radius-100,4px)}
|
|
3
|
+
._1h6dz9xs{border-color:var(--ds-border-accent-gray,#758195)}._12jimuej{outline-color:var(--ds-border,#091e4224)}
|
|
4
|
+
._12y3e4h9{outline-width:var(--ds-border-width,1px)}
|
|
5
|
+
._19bvutpp{padding-left:var(--ds-space-150,9pt)}
|
|
6
|
+
._1bsb1tcg{width:24px}
|
|
7
|
+
._1qu2nqa1{outline-style:solid}
|
|
8
|
+
._4t3i1tcg{height:24px}
|
|
9
|
+
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
10
|
+
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
11
|
+
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
12
|
+
._u5f3utpp{padding-right:var(--ds-space-150,9pt)}
|
|
13
|
+
._irr31d5g:hover{background-color:var(--ds-background-input-hovered,#f7f8f9)}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
|
+
import "./index.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { Link } from 'react-router-dom';
|
|
6
|
+
import { IconButton } from '@atlaskit/button/new';
|
|
7
|
+
import CrossIcon from '@atlaskit/icon/utility/cross';
|
|
8
|
+
import Image from '@atlaskit/image';
|
|
9
|
+
import { CustomItem } from '@atlaskit/menu';
|
|
10
|
+
import { Box, Inline } from '@atlaskit/primitives';
|
|
11
|
+
import { getContainerProperties } from '../../../common/utils/get-container-properties';
|
|
12
|
+
var styles = {
|
|
13
|
+
container: "_2rkoiti9 _1h6dz9xs _12y3e4h9 _12jimuej _1qu2nqa1 _ca0qutpp _u5f3utpp _n3tdutpp _19bvutpp _syaz1fxt _irr31d5g",
|
|
14
|
+
iconWrapper: "_1bsb1tcg _4t3i1tcg"
|
|
15
|
+
};
|
|
16
|
+
var CustomItemInner = function CustomItemInner(_ref) {
|
|
17
|
+
var children = _ref.children,
|
|
18
|
+
href = _ref.href;
|
|
19
|
+
return /*#__PURE__*/React.createElement(Link, {
|
|
20
|
+
to: href
|
|
21
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
22
|
+
xcss: styles.container
|
|
23
|
+
}, children));
|
|
24
|
+
};
|
|
25
|
+
export var LinkedContainerCard = function LinkedContainerCard(_ref2) {
|
|
26
|
+
var containerType = _ref2.containerType,
|
|
27
|
+
title = _ref2.title,
|
|
28
|
+
containerIcon = _ref2.containerIcon;
|
|
29
|
+
var _getContainerProperti = getContainerProperties(containerType),
|
|
30
|
+
description = _getContainerProperti.description,
|
|
31
|
+
icon = _getContainerProperti.icon;
|
|
32
|
+
return /*#__PURE__*/React.createElement(CustomItem, {
|
|
33
|
+
iconBefore: /*#__PURE__*/React.createElement(Box, {
|
|
34
|
+
xcss: styles.iconWrapper
|
|
35
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
36
|
+
src: containerIcon,
|
|
37
|
+
alt: "",
|
|
38
|
+
testId: "linked-container-icon"
|
|
39
|
+
})),
|
|
40
|
+
description: /*#__PURE__*/React.createElement(Inline, {
|
|
41
|
+
space: "space.050"
|
|
42
|
+
}, icon, description),
|
|
43
|
+
iconAfter: /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(IconButton, {
|
|
44
|
+
label: "disconnect the container ".concat(title),
|
|
45
|
+
appearance: "subtle",
|
|
46
|
+
icon: CrossIcon,
|
|
47
|
+
spacing: "compact",
|
|
48
|
+
onClick: function onClick(e) {
|
|
49
|
+
e.preventDefault();
|
|
50
|
+
}
|
|
51
|
+
})),
|
|
52
|
+
href: "/",
|
|
53
|
+
component: CustomItemInner
|
|
54
|
+
}, title);
|
|
55
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Grid } from '@atlaskit/primitives';
|
|
3
|
+
import { N0, N90 } from '@atlaskit/theme/colors';
|
|
4
|
+
import { AddContainerCard } from './add-container-card';
|
|
5
|
+
import { LinkedContainerCard } from './linked-container-card';
|
|
6
|
+
export var ICON_BACKGROUND = "var(--ds-icon-inverse, ".concat(N0, ")");
|
|
7
|
+
export var ICON_COLOR = "var(--ds-icon-subtle, ".concat(N90, ")");
|
|
8
|
+
export var TeamContainers = function TeamContainers() {
|
|
9
|
+
return /*#__PURE__*/React.createElement(Grid, {
|
|
10
|
+
templateColumns: "1fr 1fr",
|
|
11
|
+
gap: "space.100",
|
|
12
|
+
autoFlow: "row"
|
|
13
|
+
}, /*#__PURE__*/React.createElement(LinkedContainerCard, {
|
|
14
|
+
containerType: "jira",
|
|
15
|
+
title: "A Project",
|
|
16
|
+
containerIcon: "https://avatar-management--avatars.us-west-2.staging.public.atl-paas.net/712020:2981defd-17f1-440e-a377-8c7657b72a6f/4b5b0d55-614b-4e75-858f-9da3d0c7e3f8/128"
|
|
17
|
+
}), /*#__PURE__*/React.createElement(AddContainerCard, {
|
|
18
|
+
containerType: "jira"
|
|
19
|
+
}), /*#__PURE__*/React.createElement(AddContainerCard, {
|
|
20
|
+
containerType: "confluence"
|
|
21
|
+
}), /*#__PURE__*/React.createElement(AddContainerCard, {
|
|
22
|
+
containerType: "loom"
|
|
23
|
+
}));
|
|
24
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ContainerTypes = 'confluence' | 'jira' | 'loom';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { ContainerTypes } from '../types';
|
|
3
|
+
interface ContainerProperties {
|
|
4
|
+
description: ReactNode;
|
|
5
|
+
icon: ReactNode;
|
|
6
|
+
title?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const messages: {
|
|
9
|
+
addConfluenceContainerTitle: {
|
|
10
|
+
id: string;
|
|
11
|
+
defaultMessage: string;
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
14
|
+
confluenceContainerDescription: {
|
|
15
|
+
id: string;
|
|
16
|
+
defaultMessage: string;
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
19
|
+
addJiraProjectTitle: {
|
|
20
|
+
id: string;
|
|
21
|
+
defaultMessage: string;
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
24
|
+
jiraProjectDescription: {
|
|
25
|
+
id: string;
|
|
26
|
+
defaultMessage: string;
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
addLoomSpaceTitle: {
|
|
30
|
+
id: string;
|
|
31
|
+
defaultMessage: string;
|
|
32
|
+
description: string;
|
|
33
|
+
};
|
|
34
|
+
loomSpaceDescription: {
|
|
35
|
+
id: string;
|
|
36
|
+
defaultMessage: string;
|
|
37
|
+
description: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const getContainerProperties: (containerType: ContainerTypes) => ContainerProperties;
|
|
41
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TeamContainers } from './ui/team-containers';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ContainerTypes } from '../../../common/types';
|
|
3
|
+
interface AddContainerCardProps {
|
|
4
|
+
containerType: ContainerTypes;
|
|
5
|
+
}
|
|
6
|
+
export declare const AddContainerCard: ({ containerType }: AddContainerCardProps) => JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PROGRESS_BAR_TEST_ID = "myProgressBar";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TeamContainers } from './main';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
/// <reference types="react" />
|
|
6
|
+
import { ContainerTypes } from '../../../common/types';
|
|
7
|
+
interface LinkedContainerCardProps {
|
|
8
|
+
containerType: ContainerTypes;
|
|
9
|
+
title: string;
|
|
10
|
+
containerIcon: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const LinkedContainerCard: ({ containerType, title, containerIcon, }: LinkedContainerCardProps) => JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ContainerTypes = 'confluence' | 'jira' | 'loom';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { ContainerTypes } from '../types';
|
|
3
|
+
interface ContainerProperties {
|
|
4
|
+
description: ReactNode;
|
|
5
|
+
icon: ReactNode;
|
|
6
|
+
title?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const messages: {
|
|
9
|
+
addConfluenceContainerTitle: {
|
|
10
|
+
id: string;
|
|
11
|
+
defaultMessage: string;
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
14
|
+
confluenceContainerDescription: {
|
|
15
|
+
id: string;
|
|
16
|
+
defaultMessage: string;
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
19
|
+
addJiraProjectTitle: {
|
|
20
|
+
id: string;
|
|
21
|
+
defaultMessage: string;
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
24
|
+
jiraProjectDescription: {
|
|
25
|
+
id: string;
|
|
26
|
+
defaultMessage: string;
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
addLoomSpaceTitle: {
|
|
30
|
+
id: string;
|
|
31
|
+
defaultMessage: string;
|
|
32
|
+
description: string;
|
|
33
|
+
};
|
|
34
|
+
loomSpaceDescription: {
|
|
35
|
+
id: string;
|
|
36
|
+
defaultMessage: string;
|
|
37
|
+
description: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const getContainerProperties: (containerType: ContainerTypes) => ContainerProperties;
|
|
41
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TeamContainers } from './ui/team-containers';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ContainerTypes } from '../../../common/types';
|
|
3
|
+
interface AddContainerCardProps {
|
|
4
|
+
containerType: ContainerTypes;
|
|
5
|
+
}
|
|
6
|
+
export declare const AddContainerCard: ({ containerType }: AddContainerCardProps) => JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PROGRESS_BAR_TEST_ID = "myProgressBar";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TeamContainers } from './main';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
5
|
+
*/
|
|
6
|
+
import { ContainerTypes } from '../../../common/types';
|
|
7
|
+
interface LinkedContainerCardProps {
|
|
8
|
+
containerType: ContainerTypes;
|
|
9
|
+
title: string;
|
|
10
|
+
containerIcon: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const LinkedContainerCard: ({ containerType, title, containerIcon, }: LinkedContainerCardProps) => JSX.Element;
|
|
13
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"atlassian": {
|
|
3
|
+
"team": "People and Teams Collective",
|
|
4
|
+
"runReact18": true,
|
|
5
|
+
"website": {
|
|
6
|
+
"name": "TeamContainers",
|
|
7
|
+
"category": "Layout and structure"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"repository": "https://stash.atlassian.com/projects/ATLASSIAN/repos/atlassian-frontend-monorepo",
|
|
11
|
+
"main": "dist/cjs/index.js",
|
|
12
|
+
"module": "dist/esm/index.js",
|
|
13
|
+
"module:es2019": "dist/es2019/index.js",
|
|
14
|
+
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.5 <5.4": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.5/*",
|
|
19
|
+
"dist/types-ts4.5/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"*.compiled.css"
|
|
25
|
+
],
|
|
26
|
+
"atlaskit:src": "src/index.ts",
|
|
27
|
+
"af:exports": {
|
|
28
|
+
".": "./src/index.ts"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@atlaskit/button": "^20.4.0",
|
|
32
|
+
"@atlaskit/css": "^0.8.0",
|
|
33
|
+
"@atlaskit/icon": "^23.5.0",
|
|
34
|
+
"@atlaskit/image": "^1.4.0",
|
|
35
|
+
"@atlaskit/logo": "^15.2.0",
|
|
36
|
+
"@atlaskit/menu": "^2.14.0",
|
|
37
|
+
"@atlaskit/primitives": "^13.4.0",
|
|
38
|
+
"@atlaskit/theme": "^14.0.1",
|
|
39
|
+
"@atlaskit/tokens": "^3.3.0",
|
|
40
|
+
"@babel/runtime": "^7.0.0",
|
|
41
|
+
"@compiled/react": "^0.18.1",
|
|
42
|
+
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
43
|
+
"react-router-dom": "^6.28.0"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"react": "^18.2.0"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@af/integration-testing": "*",
|
|
50
|
+
"@af/visual-regression": "*",
|
|
51
|
+
"@atlaskit/ssr": "*",
|
|
52
|
+
"@atlaskit/visual-regression": "*",
|
|
53
|
+
"@testing-library/react": "^13.4.0",
|
|
54
|
+
"@testing-library/user-event": "^14.4.3",
|
|
55
|
+
"react-dom": "^18.2.0",
|
|
56
|
+
"typescript": "~5.4.2"
|
|
57
|
+
},
|
|
58
|
+
"techstack": {
|
|
59
|
+
"@atlassian/frontend": {
|
|
60
|
+
"code-structure": [
|
|
61
|
+
"tangerine-next"
|
|
62
|
+
],
|
|
63
|
+
"import-structure": [
|
|
64
|
+
"atlassian-conventions"
|
|
65
|
+
],
|
|
66
|
+
"circular-dependencies": [
|
|
67
|
+
"file-and-folder-level"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"@repo/internal": {
|
|
71
|
+
"dom-events": "use-bind-event-listener",
|
|
72
|
+
"analytics": [
|
|
73
|
+
"analytics-next"
|
|
74
|
+
],
|
|
75
|
+
"design-tokens": [
|
|
76
|
+
"color"
|
|
77
|
+
],
|
|
78
|
+
"theming": [
|
|
79
|
+
"react-context"
|
|
80
|
+
],
|
|
81
|
+
"ui-components": [
|
|
82
|
+
"lite-mode"
|
|
83
|
+
],
|
|
84
|
+
"deprecation": [
|
|
85
|
+
"no-deprecated-imports"
|
|
86
|
+
],
|
|
87
|
+
"styling": [
|
|
88
|
+
"static",
|
|
89
|
+
"compiled"
|
|
90
|
+
],
|
|
91
|
+
"imports": [
|
|
92
|
+
"import-no-extraneous-disable-for-examples-and-docs"
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"name": "@atlaskit/teams-public",
|
|
97
|
+
"version": "0.1.0",
|
|
98
|
+
"description": "Public components related to teams",
|
|
99
|
+
"author": "Atlassian Pty Ltd",
|
|
100
|
+
"license": "Apache-2.0",
|
|
101
|
+
"publishConfig": {
|
|
102
|
+
"registry": "https://registry.npmjs.org/"
|
|
103
|
+
}
|
|
104
|
+
}
|