@atlaskit/profilecard 15.7.1 → 15.8.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/dist/cjs/components/Error/ErrorIllustration.js +4 -1
- package/dist/cjs/components/User/ProfileCard.js +3 -1
- package/dist/cjs/i18n/index.js +58 -58
- package/dist/cjs/styled/Card.js +1 -3
- package/dist/cjs/styled/Error.js +3 -1
- package/dist/cjs/styled/TeamCard.js +5 -3
- package/dist/cjs/styled/constants.js +35 -28
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/Error/ErrorIllustration.js +3 -1
- package/dist/es2019/components/User/ProfileCard.js +2 -1
- package/dist/es2019/i18n/index.js +10 -10
- package/dist/es2019/styled/Card.js +2 -3
- package/dist/es2019/styled/Error.js +2 -1
- package/dist/es2019/styled/TeamCard.js +4 -3
- package/dist/es2019/styled/constants.js +31 -26
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/Error/ErrorIllustration.js +3 -1
- package/dist/esm/components/User/ProfileCard.js +2 -1
- package/dist/esm/i18n/index.js +10 -10
- package/dist/esm/styled/Card.js +2 -3
- package/dist/esm/styled/Error.js +2 -1
- package/dist/esm/styled/TeamCard.js +4 -3
- package/dist/esm/styled/constants.js +31 -26
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/i18n/index.d.ts +10 -10
- package/dist/types/styled/constants.d.ts +14 -13
- package/package.json +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 15.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`1b9bc1e4b9a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1b9bc1e4b9a) - [ux] Instrumented profilecard with the new theming package, `@atlaskit/tokens`.
|
|
8
|
+
|
|
9
|
+
New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).
|
|
10
|
+
These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
|
|
11
|
+
|
|
3
12
|
## 15.7.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -9,6 +9,9 @@ exports.ErrorIllustration = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
|
+
var _tokens = require("@atlaskit/tokens");
|
|
13
|
+
|
|
14
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
12
15
|
var ErrorIllustration = function ErrorIllustration() {
|
|
13
16
|
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
14
17
|
width: "42",
|
|
@@ -20,7 +23,7 @@ var ErrorIllustration = function ErrorIllustration() {
|
|
|
20
23
|
clipPath: "url(#clip0)"
|
|
21
24
|
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
22
25
|
d: "M0.649902 0H163.93V212H0.649902V0Z",
|
|
23
|
-
fill:
|
|
26
|
+
fill: (0, _tokens.token)('color.background.overlay', 'white'),
|
|
24
27
|
fillOpacity: "0.01"
|
|
25
28
|
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
26
29
|
d: "M95.4299 74.1603L161.87 189.24C167.71 199.36 160.41 212 148.73 212H15.8499C4.16994 212 -3.13006 199.35 2.70994 189.24L69.1499 74.1603C74.9899 64.0403 89.5899 64.0403 95.4299 74.1603ZM87.8699 157.71L90.7499 113.36C91.0899 108.07 86.8899 103.58 81.5899 103.58C76.2799 103.58 72.0799 108.06 72.4299 113.36L75.3099 157.71C75.5299 161.02 78.2699 163.6 81.5899 163.6C84.8999 163.6 87.6499 161.02 87.8699 157.71ZM72.0299 181.25C72.0299 186.91 76.7899 191.35 82.4199 190.83C87.2699 190.38 91.1499 186.33 91.2499 181.46C91.3599 176.01 86.9399 171.52 81.5199 171.52C76.2899 171.51 72.0299 175.89 72.0299 181.25Z",
|
|
@@ -39,6 +39,8 @@ var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
|
39
39
|
|
|
40
40
|
var _colors = require("@atlaskit/theme/colors");
|
|
41
41
|
|
|
42
|
+
var _tokens = require("@atlaskit/tokens");
|
|
43
|
+
|
|
42
44
|
var _analytics = require("../../internal/analytics");
|
|
43
45
|
|
|
44
46
|
var _relativeDate = _interopRequireDefault(require("../../internal/relative-date"));
|
|
@@ -304,7 +306,7 @@ var Profilecard = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
304
306
|
}, /*#__PURE__*/_react.default.createElement(_Card.ProfileImage, null, /*#__PURE__*/_react.default.createElement(_avatar.default, {
|
|
305
307
|
size: "xlarge",
|
|
306
308
|
src: this.props.status !== 'closed' ? this.props.avatarUrl : undefined,
|
|
307
|
-
borderColor: _colors.N0
|
|
309
|
+
borderColor: (0, _tokens.token)('color.background.overlay', _colors.N0)
|
|
308
310
|
})), /*#__PURE__*/_react.default.createElement(_Card.CardContent, null, this.renderCardDetails(), actions ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Card.ActionsFlexSpacer, null), actions) : null));
|
|
309
311
|
}
|
|
310
312
|
|
package/dist/cjs/i18n/index.js
CHANGED
|
@@ -5,46 +5,34 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
Object.defineProperty(exports, "
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function get() {
|
|
11
|
-
return _en_ZZ.default;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports, "cs", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function get() {
|
|
17
|
-
return _cs.default;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(exports, "da", {
|
|
8
|
+
Object.defineProperty(exports, "zh", {
|
|
21
9
|
enumerable: true,
|
|
22
10
|
get: function get() {
|
|
23
|
-
return
|
|
11
|
+
return _zh.default;
|
|
24
12
|
}
|
|
25
13
|
});
|
|
26
|
-
Object.defineProperty(exports, "
|
|
14
|
+
Object.defineProperty(exports, "zh_TW", {
|
|
27
15
|
enumerable: true,
|
|
28
16
|
get: function get() {
|
|
29
|
-
return
|
|
17
|
+
return _zh_TW.default;
|
|
30
18
|
}
|
|
31
19
|
});
|
|
32
|
-
Object.defineProperty(exports, "
|
|
20
|
+
Object.defineProperty(exports, "cs", {
|
|
33
21
|
enumerable: true,
|
|
34
22
|
get: function get() {
|
|
35
|
-
return
|
|
23
|
+
return _cs.default;
|
|
36
24
|
}
|
|
37
25
|
});
|
|
38
|
-
Object.defineProperty(exports, "
|
|
26
|
+
Object.defineProperty(exports, "da", {
|
|
39
27
|
enumerable: true,
|
|
40
28
|
get: function get() {
|
|
41
|
-
return
|
|
29
|
+
return _da.default;
|
|
42
30
|
}
|
|
43
31
|
});
|
|
44
|
-
Object.defineProperty(exports, "
|
|
32
|
+
Object.defineProperty(exports, "nl", {
|
|
45
33
|
enumerable: true,
|
|
46
34
|
get: function get() {
|
|
47
|
-
return
|
|
35
|
+
return _nl.default;
|
|
48
36
|
}
|
|
49
37
|
});
|
|
50
38
|
Object.defineProperty(exports, "et", {
|
|
@@ -65,16 +53,16 @@ Object.defineProperty(exports, "fr", {
|
|
|
65
53
|
return _fr.default;
|
|
66
54
|
}
|
|
67
55
|
});
|
|
68
|
-
Object.defineProperty(exports, "
|
|
56
|
+
Object.defineProperty(exports, "de", {
|
|
69
57
|
enumerable: true,
|
|
70
58
|
get: function get() {
|
|
71
|
-
return
|
|
59
|
+
return _de.default;
|
|
72
60
|
}
|
|
73
61
|
});
|
|
74
|
-
Object.defineProperty(exports, "
|
|
62
|
+
Object.defineProperty(exports, "hu", {
|
|
75
63
|
enumerable: true,
|
|
76
64
|
get: function get() {
|
|
77
|
-
return
|
|
65
|
+
return _hu.default;
|
|
78
66
|
}
|
|
79
67
|
});
|
|
80
68
|
Object.defineProperty(exports, "it", {
|
|
@@ -101,12 +89,6 @@ Object.defineProperty(exports, "nb", {
|
|
|
101
89
|
return _nb.default;
|
|
102
90
|
}
|
|
103
91
|
});
|
|
104
|
-
Object.defineProperty(exports, "nl", {
|
|
105
|
-
enumerable: true,
|
|
106
|
-
get: function get() {
|
|
107
|
-
return _nl.default;
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
92
|
Object.defineProperty(exports, "pl", {
|
|
111
93
|
enumerable: true,
|
|
112
94
|
get: function get() {
|
|
@@ -125,12 +107,6 @@ Object.defineProperty(exports, "pt_PT", {
|
|
|
125
107
|
return _pt_PT.default;
|
|
126
108
|
}
|
|
127
109
|
});
|
|
128
|
-
Object.defineProperty(exports, "ro", {
|
|
129
|
-
enumerable: true,
|
|
130
|
-
get: function get() {
|
|
131
|
-
return _ro.default;
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
110
|
Object.defineProperty(exports, "ru", {
|
|
135
111
|
enumerable: true,
|
|
136
112
|
get: function get() {
|
|
@@ -143,6 +119,12 @@ Object.defineProperty(exports, "sk", {
|
|
|
143
119
|
return _sk.default;
|
|
144
120
|
}
|
|
145
121
|
});
|
|
122
|
+
Object.defineProperty(exports, "es", {
|
|
123
|
+
enumerable: true,
|
|
124
|
+
get: function get() {
|
|
125
|
+
return _es.default;
|
|
126
|
+
}
|
|
127
|
+
});
|
|
146
128
|
Object.defineProperty(exports, "sv", {
|
|
147
129
|
enumerable: true,
|
|
148
130
|
get: function get() {
|
|
@@ -173,32 +155,46 @@ Object.defineProperty(exports, "vi", {
|
|
|
173
155
|
return _vi.default;
|
|
174
156
|
}
|
|
175
157
|
});
|
|
176
|
-
Object.defineProperty(exports, "
|
|
158
|
+
Object.defineProperty(exports, "en_ZZ", {
|
|
177
159
|
enumerable: true,
|
|
178
160
|
get: function get() {
|
|
179
|
-
return
|
|
161
|
+
return _en_ZZ.default;
|
|
180
162
|
}
|
|
181
163
|
});
|
|
182
|
-
Object.defineProperty(exports, "
|
|
164
|
+
Object.defineProperty(exports, "en", {
|
|
183
165
|
enumerable: true,
|
|
184
166
|
get: function get() {
|
|
185
|
-
return
|
|
167
|
+
return _en.default;
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
Object.defineProperty(exports, "en_GB", {
|
|
171
|
+
enumerable: true,
|
|
172
|
+
get: function get() {
|
|
173
|
+
return _en_GB.default;
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
Object.defineProperty(exports, "is", {
|
|
177
|
+
enumerable: true,
|
|
178
|
+
get: function get() {
|
|
179
|
+
return _is.default;
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
Object.defineProperty(exports, "ro", {
|
|
183
|
+
enumerable: true,
|
|
184
|
+
get: function get() {
|
|
185
|
+
return _ro.default;
|
|
186
186
|
}
|
|
187
187
|
});
|
|
188
188
|
|
|
189
|
-
var
|
|
189
|
+
var _zh = _interopRequireDefault(require("./zh"));
|
|
190
|
+
|
|
191
|
+
var _zh_TW = _interopRequireDefault(require("./zh_TW"));
|
|
190
192
|
|
|
191
193
|
var _cs = _interopRequireDefault(require("./cs"));
|
|
192
194
|
|
|
193
195
|
var _da = _interopRequireDefault(require("./da"));
|
|
194
196
|
|
|
195
|
-
var
|
|
196
|
-
|
|
197
|
-
var _en = _interopRequireDefault(require("./en"));
|
|
198
|
-
|
|
199
|
-
var _en_GB = _interopRequireDefault(require("./en_GB"));
|
|
200
|
-
|
|
201
|
-
var _es = _interopRequireDefault(require("./es"));
|
|
197
|
+
var _nl = _interopRequireDefault(require("./nl"));
|
|
202
198
|
|
|
203
199
|
var _et = _interopRequireDefault(require("./et"));
|
|
204
200
|
|
|
@@ -206,9 +202,9 @@ var _fi = _interopRequireDefault(require("./fi"));
|
|
|
206
202
|
|
|
207
203
|
var _fr = _interopRequireDefault(require("./fr"));
|
|
208
204
|
|
|
209
|
-
var
|
|
205
|
+
var _de = _interopRequireDefault(require("./de"));
|
|
210
206
|
|
|
211
|
-
var
|
|
207
|
+
var _hu = _interopRequireDefault(require("./hu"));
|
|
212
208
|
|
|
213
209
|
var _it = _interopRequireDefault(require("./it"));
|
|
214
210
|
|
|
@@ -218,20 +214,18 @@ var _ko = _interopRequireDefault(require("./ko"));
|
|
|
218
214
|
|
|
219
215
|
var _nb = _interopRequireDefault(require("./nb"));
|
|
220
216
|
|
|
221
|
-
var _nl = _interopRequireDefault(require("./nl"));
|
|
222
|
-
|
|
223
217
|
var _pl = _interopRequireDefault(require("./pl"));
|
|
224
218
|
|
|
225
219
|
var _pt_BR = _interopRequireDefault(require("./pt_BR"));
|
|
226
220
|
|
|
227
221
|
var _pt_PT = _interopRequireDefault(require("./pt_PT"));
|
|
228
222
|
|
|
229
|
-
var _ro = _interopRequireDefault(require("./ro"));
|
|
230
|
-
|
|
231
223
|
var _ru = _interopRequireDefault(require("./ru"));
|
|
232
224
|
|
|
233
225
|
var _sk = _interopRequireDefault(require("./sk"));
|
|
234
226
|
|
|
227
|
+
var _es = _interopRequireDefault(require("./es"));
|
|
228
|
+
|
|
235
229
|
var _sv = _interopRequireDefault(require("./sv"));
|
|
236
230
|
|
|
237
231
|
var _th = _interopRequireDefault(require("./th"));
|
|
@@ -242,6 +236,12 @@ var _uk = _interopRequireDefault(require("./uk"));
|
|
|
242
236
|
|
|
243
237
|
var _vi = _interopRequireDefault(require("./vi"));
|
|
244
238
|
|
|
245
|
-
var
|
|
239
|
+
var _en_ZZ = _interopRequireDefault(require("./en_ZZ"));
|
|
240
|
+
|
|
241
|
+
var _en = _interopRequireDefault(require("./en"));
|
|
242
|
+
|
|
243
|
+
var _en_GB = _interopRequireDefault(require("./en_GB"));
|
|
244
|
+
|
|
245
|
+
var _is = _interopRequireDefault(require("./is"));
|
|
246
246
|
|
|
247
|
-
var
|
|
247
|
+
var _ro = _interopRequireDefault(require("./ro"));
|
package/dist/cjs/styled/Card.js
CHANGED
|
@@ -15,8 +15,6 @@ var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
|
15
15
|
|
|
16
16
|
var _constants = require("@atlaskit/theme/constants");
|
|
17
17
|
|
|
18
|
-
var _elevation = require("@atlaskit/theme/elevation");
|
|
19
|
-
|
|
20
18
|
var _constants2 = require("../styled/constants");
|
|
21
19
|
|
|
22
20
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19;
|
|
@@ -96,7 +94,7 @@ var CardContainer = _styledComponents.default.div(_templateObject15 || (_templat
|
|
|
96
94
|
return '';
|
|
97
95
|
}
|
|
98
96
|
|
|
99
|
-
return (0, _styledComponents.css)(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2.default)(["\n ", "
|
|
97
|
+
return (0, _styledComponents.css)(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2.default)(["\n box-shadow: ", ";\n border-radius: ", "px;\n "])), _constants2.boxShadow, _constants.borderRadius);
|
|
100
98
|
});
|
|
101
99
|
|
|
102
100
|
exports.CardContainer = CardContainer;
|
package/dist/cjs/styled/Error.js
CHANGED
|
@@ -17,6 +17,8 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
17
17
|
|
|
18
18
|
var _typography = require("@atlaskit/theme/typography");
|
|
19
19
|
|
|
20
|
+
var _tokens = require("@atlaskit/tokens");
|
|
21
|
+
|
|
20
22
|
var _constants2 = require("../styled/constants");
|
|
21
23
|
|
|
22
24
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
@@ -37,6 +39,6 @@ var TeamErrorTitle = _styledComponents.default.p(_templateObject4 || (_templateO
|
|
|
37
39
|
|
|
38
40
|
exports.TeamErrorTitle = TeamErrorTitle;
|
|
39
41
|
|
|
40
|
-
var TeamErrorText = _styledComponents.default.p(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n margin-top: ", "px;\n"])), _colors.N200, (0, _constants.gridSize)() * 1);
|
|
42
|
+
var TeamErrorText = _styledComponents.default.p(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n margin-top: ", "px;\n"])), (0, _tokens.token)('color.text.lowEmphasis', _colors.N200), (0, _constants.gridSize)() * 1);
|
|
41
43
|
|
|
42
44
|
exports.TeamErrorText = TeamErrorText;
|
|
@@ -19,6 +19,8 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
19
19
|
|
|
20
20
|
var _typography = require("@atlaskit/theme/typography");
|
|
21
21
|
|
|
22
|
+
var _tokens = require("@atlaskit/tokens");
|
|
23
|
+
|
|
22
24
|
var _constants2 = require("../styled/constants");
|
|
23
25
|
|
|
24
26
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16;
|
|
@@ -34,7 +36,7 @@ exports.CardTriggerWrapper = CardTriggerWrapper;
|
|
|
34
36
|
var CardWrapper = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n border-radius: ", "px;\n width: ", "px;\n position: relative;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n"])), _constants2.bgColor, _constants.borderRadius, (0, _constants.gridSize)() * 40);
|
|
35
37
|
|
|
36
38
|
exports.CardWrapper = CardWrapper;
|
|
37
|
-
var loadingImage = (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n"])), _colors.N20);
|
|
39
|
+
var loadingImage = (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n"])), (0, _tokens.token)('color.background.subtleNeutral.resting', _colors.N20));
|
|
38
40
|
var defaultImage = (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n"])), _constants2.teamHeaderBgColor);
|
|
39
41
|
|
|
40
42
|
var CardHeader = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n ", ";\n background-repeat: no-repeat;\n background-size: cover;\n box-sizing: content-box;\n height: ", "px;\n"])), function (props) {
|
|
@@ -59,7 +61,7 @@ var TeamName = _styledComponents.default.h6(_templateObject8 || (_templateObject
|
|
|
59
61
|
|
|
60
62
|
exports.TeamName = TeamName;
|
|
61
63
|
|
|
62
|
-
var MemberCount = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n margin-top: ", "px;\n"])), _colors.N200, (0, _constants.gridSize)() * 0.5);
|
|
64
|
+
var MemberCount = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n margin-top: ", "px;\n"])), (0, _tokens.token)('color.text.lowEmphasis', _colors.N200), (0, _constants.gridSize)() * 0.5);
|
|
63
65
|
|
|
64
66
|
exports.MemberCount = MemberCount;
|
|
65
67
|
|
|
@@ -75,7 +77,7 @@ var Description = _styledComponents.default.span(_templateObject12 || (_template
|
|
|
75
77
|
|
|
76
78
|
exports.Description = Description;
|
|
77
79
|
|
|
78
|
-
var ActionButtons = _styledComponents.default.div(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n width: calc(100% + 8px);\n display: flex;\n justify-content: space-between;\n margin: ", "px -", "px 0 -", "px;\n background-color:
|
|
80
|
+
var ActionButtons = _styledComponents.default.div(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n width: calc(100% + 8px);\n display: flex;\n justify-content: space-between;\n margin: ", "px -", "px 0 -", "px;\n background-color: ", ";\n"])), (0, _constants.gridSize)() * 3, (0, _constants.gridSize)() * 3, (0, _constants.gridSize)(), (0, _tokens.token)('color.background.overlay', 'hsla(0, 100%, 100%, 0.2)'));
|
|
79
81
|
|
|
80
82
|
exports.ActionButtons = ActionButtons;
|
|
81
83
|
|
|
@@ -5,78 +5,85 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.errorTextColor = exports.errorTitleColor = exports.errorIconColor = exports.labelIconColor = exports.labelTextColor = exports.appLabelTextColor = exports.appLabelBgColor = exports.headerTextColorInactive = exports.headerTextColor = exports.headerBgColorDisabledUser = exports.teamHeaderBgColor = exports.headerBgColor = exports.bgColor = void 0;
|
|
8
|
+
exports.boxShadow = exports.errorTextColor = exports.errorTitleColor = exports.errorIconColor = exports.labelIconColor = exports.labelTextColor = exports.appLabelTextColor = exports.appLabelBgColor = exports.headerTextColorInactive = exports.headerTextColor = exports.headerBgColorDisabledUser = exports.teamHeaderBgColor = exports.headerBgColor = exports.bgColor = void 0;
|
|
9
9
|
|
|
10
10
|
var colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
|
|
11
11
|
|
|
12
12
|
var _components = require("@atlaskit/theme/components");
|
|
13
13
|
|
|
14
|
+
var _tokens = require("@atlaskit/tokens");
|
|
15
|
+
|
|
14
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
17
|
|
|
16
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
19
|
|
|
18
20
|
var bgColor = (0, _components.themed)({
|
|
19
|
-
light: colors.N0,
|
|
20
|
-
dark: colors.DN50
|
|
21
|
+
light: (0, _tokens.token)('color.background.overlay', colors.N0),
|
|
22
|
+
dark: (0, _tokens.token)('color.background.overlay', colors.DN50)
|
|
21
23
|
});
|
|
22
24
|
exports.bgColor = bgColor;
|
|
23
25
|
var headerBgColor = (0, _components.themed)({
|
|
24
|
-
light: colors.B500,
|
|
25
|
-
dark: colors.B100
|
|
26
|
+
light: (0, _tokens.token)('color.background.boldBrand.resting', colors.B500),
|
|
27
|
+
dark: (0, _tokens.token)('color.background.boldBrand.resting', colors.B100)
|
|
26
28
|
});
|
|
27
29
|
exports.headerBgColor = headerBgColor;
|
|
28
30
|
var teamHeaderBgColor = (0, _components.themed)({
|
|
29
|
-
light: colors.N50,
|
|
30
|
-
dark: colors.N50
|
|
31
|
+
light: (0, _tokens.token)('color.background.subtleNeutral.resting', colors.N50),
|
|
32
|
+
dark: (0, _tokens.token)('color.background.subtleNeutral.resting', colors.N50)
|
|
31
33
|
});
|
|
32
34
|
exports.teamHeaderBgColor = teamHeaderBgColor;
|
|
33
35
|
var headerBgColorDisabledUser = (0, _components.themed)({
|
|
34
|
-
light: colors.N30,
|
|
35
|
-
dark: colors.B100
|
|
36
|
+
light: (0, _tokens.token)('color.background.disabled', colors.N30),
|
|
37
|
+
dark: (0, _tokens.token)('color.background.disabled', colors.B100)
|
|
36
38
|
});
|
|
37
39
|
exports.headerBgColorDisabledUser = headerBgColorDisabledUser;
|
|
38
40
|
var headerTextColor = (0, _components.themed)({
|
|
39
|
-
light: colors.N0,
|
|
40
|
-
dark: colors.N0
|
|
41
|
+
light: (0, _tokens.token)('color.text.onBold', colors.N0),
|
|
42
|
+
dark: (0, _tokens.token)('color.text.onBold', colors.N0)
|
|
41
43
|
});
|
|
42
44
|
exports.headerTextColor = headerTextColor;
|
|
43
45
|
var headerTextColorInactive = (0, _components.themed)({
|
|
44
|
-
light: colors.N800,
|
|
45
|
-
dark: colors.N0
|
|
46
|
+
light: (0, _tokens.token)('color.text.highEmphasis', colors.N800),
|
|
47
|
+
dark: (0, _tokens.token)('color.text.highEmphasis', colors.N0)
|
|
46
48
|
});
|
|
47
49
|
exports.headerTextColorInactive = headerTextColorInactive;
|
|
48
50
|
var appLabelBgColor = (0, _components.themed)({
|
|
49
|
-
light: colors.N20,
|
|
50
|
-
dark: colors.N20
|
|
51
|
+
light: (0, _tokens.token)('color.background.subtleNeutral.resting', colors.N20),
|
|
52
|
+
dark: (0, _tokens.token)('color.background.subtleNeutral.resting', colors.N20)
|
|
51
53
|
});
|
|
52
54
|
exports.appLabelBgColor = appLabelBgColor;
|
|
53
55
|
var appLabelTextColor = (0, _components.themed)({
|
|
54
|
-
light: colors.N500,
|
|
55
|
-
dark: colors.N500
|
|
56
|
+
light: (0, _tokens.token)('color.text.highEmphasis', colors.N500),
|
|
57
|
+
dark: (0, _tokens.token)('color.text.highEmphasis', colors.N500)
|
|
56
58
|
});
|
|
57
59
|
exports.appLabelTextColor = appLabelTextColor;
|
|
58
60
|
var labelTextColor = (0, _components.themed)({
|
|
59
|
-
light: colors.N800,
|
|
60
|
-
dark: colors.DN900
|
|
61
|
+
light: (0, _tokens.token)('color.text.highEmphasis', colors.N800),
|
|
62
|
+
dark: (0, _tokens.token)('color.text.highEmphasis', colors.DN900)
|
|
61
63
|
});
|
|
62
64
|
exports.labelTextColor = labelTextColor;
|
|
63
65
|
var labelIconColor = (0, _components.themed)({
|
|
64
|
-
light: colors.N60,
|
|
65
|
-
dark: colors.DN100
|
|
66
|
+
light: (0, _tokens.token)('color.text.lowEmphasis', colors.N60),
|
|
67
|
+
dark: (0, _tokens.token)('color.text.lowEmphasis', colors.DN100)
|
|
66
68
|
});
|
|
67
69
|
exports.labelIconColor = labelIconColor;
|
|
68
70
|
var errorIconColor = (0, _components.themed)({
|
|
69
|
-
light: colors.N90,
|
|
70
|
-
dark: colors.DN90
|
|
71
|
+
light: (0, _tokens.token)('color.text.disabled', colors.N90),
|
|
72
|
+
dark: (0, _tokens.token)('color.text.disabled', colors.DN90)
|
|
71
73
|
});
|
|
72
74
|
exports.errorIconColor = errorIconColor;
|
|
73
75
|
var errorTitleColor = (0, _components.themed)({
|
|
74
|
-
light: colors.N800,
|
|
75
|
-
dark: colors.DN800
|
|
76
|
+
light: (0, _tokens.token)('color.text.highEmphasis', colors.N800),
|
|
77
|
+
dark: (0, _tokens.token)('color.text.highEmphasis', colors.DN800)
|
|
76
78
|
});
|
|
77
79
|
exports.errorTitleColor = errorTitleColor;
|
|
78
80
|
var errorTextColor = (0, _components.themed)({
|
|
79
|
-
light: colors.N90,
|
|
80
|
-
dark: colors.DN90
|
|
81
|
+
light: (0, _tokens.token)('color.text.lowEmphasis', colors.N90),
|
|
82
|
+
dark: (0, _tokens.token)('color.text.lowEmphasis', colors.DN90)
|
|
83
|
+
});
|
|
84
|
+
exports.errorTextColor = errorTextColor;
|
|
85
|
+
var boxShadow = (0, _components.themed)({
|
|
86
|
+
light: (0, _tokens.token)('shadow.overlay', "0 4px 8px -2px ".concat(colors.N50A, ", 0 0 1px ").concat(colors.N60A)),
|
|
87
|
+
dark: (0, _tokens.token)('shadow.overlay', "0 4px 8px -2px ".concat(colors.DN50A, ", 0 0 1px ").concat(colors.DN60A))
|
|
81
88
|
});
|
|
82
|
-
exports.
|
|
89
|
+
exports.boxShadow = boxShadow;
|
|
@@ -31,7 +31,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
31
31
|
actionSubjectId: actionSubjectId,
|
|
32
32
|
attributes: _objectSpread(_objectSpread({
|
|
33
33
|
packageName: "@atlaskit/profilecard",
|
|
34
|
-
packageVersion: "15.
|
|
34
|
+
packageVersion: "15.8.0"
|
|
35
35
|
}, attributes), {}, {
|
|
36
36
|
firedAt: (0, _performance.getPageTime)()
|
|
37
37
|
})
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
1
2
|
import React from 'react';
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
2
4
|
export const ErrorIllustration = () => {
|
|
3
5
|
return /*#__PURE__*/React.createElement("svg", {
|
|
4
6
|
width: "42",
|
|
@@ -10,7 +12,7 @@ export const ErrorIllustration = () => {
|
|
|
10
12
|
clipPath: "url(#clip0)"
|
|
11
13
|
}, /*#__PURE__*/React.createElement("path", {
|
|
12
14
|
d: "M0.649902 0H163.93V212H0.649902V0Z",
|
|
13
|
-
fill:
|
|
15
|
+
fill: token('color.background.overlay', 'white'),
|
|
14
16
|
fillOpacity: "0.01"
|
|
15
17
|
}), /*#__PURE__*/React.createElement("path", {
|
|
16
18
|
d: "M95.4299 74.1603L161.87 189.24C167.71 199.36 160.41 212 148.73 212H15.8499C4.16994 212 -3.13006 199.35 2.70994 189.24L69.1499 74.1603C74.9899 64.0403 89.5899 64.0403 95.4299 74.1603ZM87.8699 157.71L90.7499 113.36C91.0899 108.07 86.8899 103.58 81.5899 103.58C76.2799 103.58 72.0799 108.06 72.4299 113.36L75.3099 157.71C75.5299 161.02 78.2699 163.6 81.5899 163.6C84.8999 163.6 87.6499 161.02 87.8699 157.71ZM72.0299 181.25C72.0299 186.91 76.7899 191.35 82.4199 190.83C87.2699 190.38 91.1499 186.33 91.2499 181.46C91.3599 176.01 86.9399 171.52 81.5199 171.52C76.2899 171.51 72.0299 175.89 72.0299 181.25Z",
|
|
@@ -7,6 +7,7 @@ import Button from '@atlaskit/button/custom-theme-button';
|
|
|
7
7
|
import Lozenge from '@atlaskit/lozenge';
|
|
8
8
|
import Spinner from '@atlaskit/spinner';
|
|
9
9
|
import { N0 } from '@atlaskit/theme/colors';
|
|
10
|
+
import { token } from '@atlaskit/tokens';
|
|
10
11
|
import { AnalyticsName } from '../../internal/analytics';
|
|
11
12
|
import relativeDate from '../../internal/relative-date';
|
|
12
13
|
import messages from '../../messages';
|
|
@@ -234,7 +235,7 @@ export default class Profilecard extends React.PureComponent {
|
|
|
234
235
|
}, /*#__PURE__*/React.createElement(ProfileImage, null, /*#__PURE__*/React.createElement(Avatar, {
|
|
235
236
|
size: "xlarge",
|
|
236
237
|
src: this.props.status !== 'closed' ? this.props.avatarUrl : undefined,
|
|
237
|
-
borderColor: N0
|
|
238
|
+
borderColor: token('color.background.overlay', N0)
|
|
238
239
|
})), /*#__PURE__*/React.createElement(CardContent, null, this.renderCardDetails(), actions ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ActionsFlexSpacer, null), actions) : null));
|
|
239
240
|
}
|
|
240
241
|
|
|
@@ -4,33 +4,33 @@
|
|
|
4
4
|
* This file is automatically generated by i18n-tools.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
export { default as
|
|
7
|
+
export { default as zh } from './zh';
|
|
8
|
+
export { default as zh_TW } from './zh_TW';
|
|
8
9
|
export { default as cs } from './cs';
|
|
9
10
|
export { default as da } from './da';
|
|
10
|
-
export { default as
|
|
11
|
-
export { default as en } from './en';
|
|
12
|
-
export { default as en_GB } from './en_GB';
|
|
13
|
-
export { default as es } from './es';
|
|
11
|
+
export { default as nl } from './nl';
|
|
14
12
|
export { default as et } from './et';
|
|
15
13
|
export { default as fi } from './fi';
|
|
16
14
|
export { default as fr } from './fr';
|
|
15
|
+
export { default as de } from './de';
|
|
17
16
|
export { default as hu } from './hu';
|
|
18
|
-
export { default as is } from './is';
|
|
19
17
|
export { default as it } from './it';
|
|
20
18
|
export { default as ja } from './ja';
|
|
21
19
|
export { default as ko } from './ko';
|
|
22
20
|
export { default as nb } from './nb';
|
|
23
|
-
export { default as nl } from './nl';
|
|
24
21
|
export { default as pl } from './pl';
|
|
25
22
|
export { default as pt_BR } from './pt_BR';
|
|
26
23
|
export { default as pt_PT } from './pt_PT';
|
|
27
|
-
export { default as ro } from './ro';
|
|
28
24
|
export { default as ru } from './ru';
|
|
29
25
|
export { default as sk } from './sk';
|
|
26
|
+
export { default as es } from './es';
|
|
30
27
|
export { default as sv } from './sv';
|
|
31
28
|
export { default as th } from './th';
|
|
32
29
|
export { default as tr } from './tr';
|
|
33
30
|
export { default as uk } from './uk';
|
|
34
31
|
export { default as vi } from './vi';
|
|
35
|
-
export { default as
|
|
36
|
-
export { default as
|
|
32
|
+
export { default as en_ZZ } from './en_ZZ';
|
|
33
|
+
export { default as en } from './en';
|
|
34
|
+
export { default as en_GB } from './en_GB';
|
|
35
|
+
export { default as is } from './is';
|
|
36
|
+
export { default as ro } from './ro';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import { borderRadius, fontSizeSmall, gridSize } from '@atlaskit/theme/constants';
|
|
3
|
-
import {
|
|
4
|
-
import { appLabelBgColor, appLabelTextColor, bgColor, headerBgColor, headerBgColorDisabledUser, headerTextColor, headerTextColorInactive, labelIconColor, labelTextColor } from '../styled/constants';
|
|
3
|
+
import { appLabelBgColor, appLabelTextColor, bgColor, boxShadow, headerBgColor, headerBgColorDisabledUser, headerTextColor, headerTextColorInactive, labelIconColor, labelTextColor } from '../styled/constants';
|
|
5
4
|
|
|
6
5
|
const getFullNameMargin = props => props.noMeta ? `${gridSize() * 4.5}px 0 ${gridSize() * 1.5}px 0` : `${gridSize() * 1.5}px 0 0 0`;
|
|
7
6
|
|
|
@@ -128,7 +127,7 @@ export const CardContainer = styled.div`
|
|
|
128
127
|
}
|
|
129
128
|
|
|
130
129
|
return css`
|
|
131
|
-
${
|
|
130
|
+
box-shadow: ${boxShadow};
|
|
132
131
|
border-radius: ${borderRadius}px;
|
|
133
132
|
`;
|
|
134
133
|
}}
|
|
@@ -2,6 +2,7 @@ import styled from 'styled-components';
|
|
|
2
2
|
import { N200 } from '@atlaskit/theme/colors';
|
|
3
3
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
4
4
|
import { h400 } from '@atlaskit/theme/typography';
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
5
6
|
import { errorIconColor, errorTextColor, errorTitleColor } from '../styled/constants';
|
|
6
7
|
export const ErrorWrapper = styled.div`
|
|
7
8
|
text-align: center;
|
|
@@ -20,6 +21,6 @@ export const TeamErrorTitle = styled.p`
|
|
|
20
21
|
${h400};
|
|
21
22
|
`;
|
|
22
23
|
export const TeamErrorText = styled.p`
|
|
23
|
-
color: ${N200};
|
|
24
|
+
color: ${token('color.text.lowEmphasis', N200)};
|
|
24
25
|
margin-top: ${gridSize() * 1}px;
|
|
25
26
|
`;
|
|
@@ -2,6 +2,7 @@ import styled, { css } from 'styled-components';
|
|
|
2
2
|
import { N20, N200 } from '@atlaskit/theme/colors';
|
|
3
3
|
import { borderRadius, gridSize } from '@atlaskit/theme/constants';
|
|
4
4
|
import { h600 } from '@atlaskit/theme/typography';
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
5
6
|
import { bgColor, teamHeaderBgColor } from '../styled/constants';
|
|
6
7
|
export const CardTriggerWrapper = styled.div`
|
|
7
8
|
display: inherit;
|
|
@@ -15,7 +16,7 @@ export const CardWrapper = styled.div`
|
|
|
15
16
|
-moz-osx-font-smoothing: grayscale;
|
|
16
17
|
`;
|
|
17
18
|
const loadingImage = css`
|
|
18
|
-
background-color: ${N20};
|
|
19
|
+
background-color: ${token('color.background.subtleNeutral.resting', N20)};
|
|
19
20
|
`;
|
|
20
21
|
const defaultImage = css`
|
|
21
22
|
background-color: ${teamHeaderBgColor};
|
|
@@ -57,7 +58,7 @@ export const TeamName = styled.h6`
|
|
|
57
58
|
-webkit-box-orient: vertical;
|
|
58
59
|
`;
|
|
59
60
|
export const MemberCount = styled.div`
|
|
60
|
-
color: ${N200};
|
|
61
|
+
color: ${token('color.text.lowEmphasis', N200)};
|
|
61
62
|
margin-top: ${gridSize() * 0.5}px;
|
|
62
63
|
`;
|
|
63
64
|
export const AvatarSection = styled.div`
|
|
@@ -81,7 +82,7 @@ export const ActionButtons = styled.div`
|
|
|
81
82
|
display: flex;
|
|
82
83
|
justify-content: space-between;
|
|
83
84
|
margin: ${gridSize() * 3}px -${gridSize() * 3}px 0 -${gridSize()}px;
|
|
84
|
-
background-color: hsla(0, 100%, 100%, 0.2);
|
|
85
|
+
background-color: ${token('color.background.overlay', 'hsla(0, 100%, 100%, 0.2)')};
|
|
85
86
|
`;
|
|
86
87
|
export const WrappedButton = styled.div`
|
|
87
88
|
flex-basis: 0;
|
|
@@ -1,54 +1,59 @@
|
|
|
1
1
|
import * as colors from '@atlaskit/theme/colors';
|
|
2
2
|
import { themed } from '@atlaskit/theme/components';
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
3
4
|
export const bgColor = themed({
|
|
4
|
-
light: colors.N0,
|
|
5
|
-
dark: colors.DN50
|
|
5
|
+
light: token('color.background.overlay', colors.N0),
|
|
6
|
+
dark: token('color.background.overlay', colors.DN50)
|
|
6
7
|
});
|
|
7
8
|
export const headerBgColor = themed({
|
|
8
|
-
light: colors.B500,
|
|
9
|
-
dark: colors.B100
|
|
9
|
+
light: token('color.background.boldBrand.resting', colors.B500),
|
|
10
|
+
dark: token('color.background.boldBrand.resting', colors.B100)
|
|
10
11
|
});
|
|
11
12
|
export const teamHeaderBgColor = themed({
|
|
12
|
-
light: colors.N50,
|
|
13
|
-
dark: colors.N50
|
|
13
|
+
light: token('color.background.subtleNeutral.resting', colors.N50),
|
|
14
|
+
dark: token('color.background.subtleNeutral.resting', colors.N50)
|
|
14
15
|
});
|
|
15
16
|
export const headerBgColorDisabledUser = themed({
|
|
16
|
-
light: colors.N30,
|
|
17
|
-
dark: colors.B100
|
|
17
|
+
light: token('color.background.disabled', colors.N30),
|
|
18
|
+
dark: token('color.background.disabled', colors.B100)
|
|
18
19
|
});
|
|
19
20
|
export const headerTextColor = themed({
|
|
20
|
-
light: colors.N0,
|
|
21
|
-
dark: colors.N0
|
|
21
|
+
light: token('color.text.onBold', colors.N0),
|
|
22
|
+
dark: token('color.text.onBold', colors.N0)
|
|
22
23
|
});
|
|
23
24
|
export const headerTextColorInactive = themed({
|
|
24
|
-
light: colors.N800,
|
|
25
|
-
dark: colors.N0
|
|
25
|
+
light: token('color.text.highEmphasis', colors.N800),
|
|
26
|
+
dark: token('color.text.highEmphasis', colors.N0)
|
|
26
27
|
});
|
|
27
28
|
export const appLabelBgColor = themed({
|
|
28
|
-
light: colors.N20,
|
|
29
|
-
dark: colors.N20
|
|
29
|
+
light: token('color.background.subtleNeutral.resting', colors.N20),
|
|
30
|
+
dark: token('color.background.subtleNeutral.resting', colors.N20)
|
|
30
31
|
});
|
|
31
32
|
export const appLabelTextColor = themed({
|
|
32
|
-
light: colors.N500,
|
|
33
|
-
dark: colors.N500
|
|
33
|
+
light: token('color.text.highEmphasis', colors.N500),
|
|
34
|
+
dark: token('color.text.highEmphasis', colors.N500)
|
|
34
35
|
});
|
|
35
36
|
export const labelTextColor = themed({
|
|
36
|
-
light: colors.N800,
|
|
37
|
-
dark: colors.DN900
|
|
37
|
+
light: token('color.text.highEmphasis', colors.N800),
|
|
38
|
+
dark: token('color.text.highEmphasis', colors.DN900)
|
|
38
39
|
});
|
|
39
40
|
export const labelIconColor = themed({
|
|
40
|
-
light: colors.N60,
|
|
41
|
-
dark: colors.DN100
|
|
41
|
+
light: token('color.text.lowEmphasis', colors.N60),
|
|
42
|
+
dark: token('color.text.lowEmphasis', colors.DN100)
|
|
42
43
|
});
|
|
43
44
|
export const errorIconColor = themed({
|
|
44
|
-
light: colors.N90,
|
|
45
|
-
dark: colors.DN90
|
|
45
|
+
light: token('color.text.disabled', colors.N90),
|
|
46
|
+
dark: token('color.text.disabled', colors.DN90)
|
|
46
47
|
});
|
|
47
48
|
export const errorTitleColor = themed({
|
|
48
|
-
light: colors.N800,
|
|
49
|
-
dark: colors.DN800
|
|
49
|
+
light: token('color.text.highEmphasis', colors.N800),
|
|
50
|
+
dark: token('color.text.highEmphasis', colors.DN800)
|
|
50
51
|
});
|
|
51
52
|
export const errorTextColor = themed({
|
|
52
|
-
light: colors.N90,
|
|
53
|
-
dark: colors.DN90
|
|
53
|
+
light: token('color.text.lowEmphasis', colors.N90),
|
|
54
|
+
dark: token('color.text.lowEmphasis', colors.DN90)
|
|
55
|
+
});
|
|
56
|
+
export const boxShadow = themed({
|
|
57
|
+
light: token('shadow.overlay', `0 4px 8px -2px ${colors.N50A}, 0 0 1px ${colors.N60A}`),
|
|
58
|
+
dark: token('shadow.overlay', `0 4px 8px -2px ${colors.DN50A}, 0 0 1px ${colors.DN60A}`)
|
|
54
59
|
});
|
|
@@ -11,7 +11,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
11
11
|
actionSubjectId,
|
|
12
12
|
attributes: {
|
|
13
13
|
packageName: "@atlaskit/profilecard",
|
|
14
|
-
packageVersion: "15.
|
|
14
|
+
packageVersion: "15.8.0",
|
|
15
15
|
...attributes,
|
|
16
16
|
firedAt: getPageTime()
|
|
17
17
|
}
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
1
2
|
import React from 'react';
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
2
4
|
export var ErrorIllustration = function ErrorIllustration() {
|
|
3
5
|
return /*#__PURE__*/React.createElement("svg", {
|
|
4
6
|
width: "42",
|
|
@@ -10,7 +12,7 @@ export var ErrorIllustration = function ErrorIllustration() {
|
|
|
10
12
|
clipPath: "url(#clip0)"
|
|
11
13
|
}, /*#__PURE__*/React.createElement("path", {
|
|
12
14
|
d: "M0.649902 0H163.93V212H0.649902V0Z",
|
|
13
|
-
fill:
|
|
15
|
+
fill: token('color.background.overlay', 'white'),
|
|
14
16
|
fillOpacity: "0.01"
|
|
15
17
|
}), /*#__PURE__*/React.createElement("path", {
|
|
16
18
|
d: "M95.4299 74.1603L161.87 189.24C167.71 199.36 160.41 212 148.73 212H15.8499C4.16994 212 -3.13006 199.35 2.70994 189.24L69.1499 74.1603C74.9899 64.0403 89.5899 64.0403 95.4299 74.1603ZM87.8699 157.71L90.7499 113.36C91.0899 108.07 86.8899 103.58 81.5899 103.58C76.2799 103.58 72.0799 108.06 72.4299 113.36L75.3099 157.71C75.5299 161.02 78.2699 163.6 81.5899 163.6C84.8999 163.6 87.6499 161.02 87.8699 157.71ZM72.0299 181.25C72.0299 186.91 76.7899 191.35 82.4199 190.83C87.2699 190.38 91.1499 186.33 91.2499 181.46C91.3599 176.01 86.9399 171.52 81.5199 171.52C76.2899 171.51 72.0299 175.89 72.0299 181.25Z",
|
|
@@ -19,6 +19,7 @@ import Button from '@atlaskit/button/custom-theme-button';
|
|
|
19
19
|
import Lozenge from '@atlaskit/lozenge';
|
|
20
20
|
import Spinner from '@atlaskit/spinner';
|
|
21
21
|
import { N0 } from '@atlaskit/theme/colors';
|
|
22
|
+
import { token } from '@atlaskit/tokens';
|
|
22
23
|
import { AnalyticsName } from '../../internal/analytics';
|
|
23
24
|
import relativeDate from '../../internal/relative-date';
|
|
24
25
|
import messages from '../../messages';
|
|
@@ -280,7 +281,7 @@ var Profilecard = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
280
281
|
}, /*#__PURE__*/React.createElement(ProfileImage, null, /*#__PURE__*/React.createElement(Avatar, {
|
|
281
282
|
size: "xlarge",
|
|
282
283
|
src: this.props.status !== 'closed' ? this.props.avatarUrl : undefined,
|
|
283
|
-
borderColor: N0
|
|
284
|
+
borderColor: token('color.background.overlay', N0)
|
|
284
285
|
})), /*#__PURE__*/React.createElement(CardContent, null, this.renderCardDetails(), actions ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ActionsFlexSpacer, null), actions) : null));
|
|
285
286
|
}
|
|
286
287
|
|
package/dist/esm/i18n/index.js
CHANGED
|
@@ -4,33 +4,33 @@
|
|
|
4
4
|
* This file is automatically generated by i18n-tools.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
export { default as
|
|
7
|
+
export { default as zh } from './zh';
|
|
8
|
+
export { default as zh_TW } from './zh_TW';
|
|
8
9
|
export { default as cs } from './cs';
|
|
9
10
|
export { default as da } from './da';
|
|
10
|
-
export { default as
|
|
11
|
-
export { default as en } from './en';
|
|
12
|
-
export { default as en_GB } from './en_GB';
|
|
13
|
-
export { default as es } from './es';
|
|
11
|
+
export { default as nl } from './nl';
|
|
14
12
|
export { default as et } from './et';
|
|
15
13
|
export { default as fi } from './fi';
|
|
16
14
|
export { default as fr } from './fr';
|
|
15
|
+
export { default as de } from './de';
|
|
17
16
|
export { default as hu } from './hu';
|
|
18
|
-
export { default as is } from './is';
|
|
19
17
|
export { default as it } from './it';
|
|
20
18
|
export { default as ja } from './ja';
|
|
21
19
|
export { default as ko } from './ko';
|
|
22
20
|
export { default as nb } from './nb';
|
|
23
|
-
export { default as nl } from './nl';
|
|
24
21
|
export { default as pl } from './pl';
|
|
25
22
|
export { default as pt_BR } from './pt_BR';
|
|
26
23
|
export { default as pt_PT } from './pt_PT';
|
|
27
|
-
export { default as ro } from './ro';
|
|
28
24
|
export { default as ru } from './ru';
|
|
29
25
|
export { default as sk } from './sk';
|
|
26
|
+
export { default as es } from './es';
|
|
30
27
|
export { default as sv } from './sv';
|
|
31
28
|
export { default as th } from './th';
|
|
32
29
|
export { default as tr } from './tr';
|
|
33
30
|
export { default as uk } from './uk';
|
|
34
31
|
export { default as vi } from './vi';
|
|
35
|
-
export { default as
|
|
36
|
-
export { default as
|
|
32
|
+
export { default as en_ZZ } from './en_ZZ';
|
|
33
|
+
export { default as en } from './en';
|
|
34
|
+
export { default as en_GB } from './en_GB';
|
|
35
|
+
export { default as is } from './is';
|
|
36
|
+
export { default as ro } from './ro';
|
package/dist/esm/styled/Card.js
CHANGED
|
@@ -4,8 +4,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
4
4
|
|
|
5
5
|
import styled, { css } from 'styled-components';
|
|
6
6
|
import { borderRadius, fontSizeSmall, gridSize } from '@atlaskit/theme/constants';
|
|
7
|
-
import {
|
|
8
|
-
import { appLabelBgColor, appLabelTextColor, bgColor, headerBgColor, headerBgColorDisabledUser, headerTextColor, headerTextColorInactive, labelIconColor, labelTextColor } from '../styled/constants';
|
|
7
|
+
import { appLabelBgColor, appLabelTextColor, bgColor, boxShadow, headerBgColor, headerBgColorDisabledUser, headerTextColor, headerTextColorInactive, labelIconColor, labelTextColor } from '../styled/constants';
|
|
9
8
|
|
|
10
9
|
var getFullNameMargin = function getFullNameMargin(props) {
|
|
11
10
|
return props.noMeta ? "".concat(gridSize() * 4.5, "px 0 ").concat(gridSize() * 1.5, "px 0") : "".concat(gridSize() * 1.5, "px 0 0 0");
|
|
@@ -38,7 +37,7 @@ export var CardContainer = styled.div(_templateObject15 || (_templateObject15 =
|
|
|
38
37
|
return '';
|
|
39
38
|
}
|
|
40
39
|
|
|
41
|
-
return css(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n ", "
|
|
40
|
+
return css(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n box-shadow: ", ";\n border-radius: ", "px;\n "])), boxShadow, borderRadius);
|
|
42
41
|
});
|
|
43
42
|
export var DetailsLabel = styled.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n line-height: ", "px;\n font-size: ", "px;\n margin: ", "px 0 0 0;\n white-space: nowrap;\n\n & + & {\n margin-top: ", "px;\n }\n"])), gridSize() * 3, gridSize() * 1.5, gridSize() * 2, gridSize() / 4);
|
|
44
43
|
export var DetailsLabelIcon = styled.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n display: flex;\n flex-shrink: 0;\n color: ", ";\n width: ", "px;\n height: ", "px;\n padding: ", "px;\n vertical-align: top;\n\n svg {\n width: 100%;\n height: 100%;\n }\n"])), labelIconColor, gridSize() * 2, gridSize() * 2, gridSize() / 2);
|
package/dist/esm/styled/Error.js
CHANGED
|
@@ -6,9 +6,10 @@ import styled from 'styled-components';
|
|
|
6
6
|
import { N200 } from '@atlaskit/theme/colors';
|
|
7
7
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
8
8
|
import { h400 } from '@atlaskit/theme/typography';
|
|
9
|
+
import { token } from '@atlaskit/tokens';
|
|
9
10
|
import { errorIconColor, errorTextColor, errorTitleColor } from '../styled/constants';
|
|
10
11
|
export var ErrorWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n text-align: center;\n padding: ", "px;\n color: ", ";\n"])), gridSize() * 3, errorIconColor);
|
|
11
12
|
export var ErrorTitle = styled.p(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n line-height: ", "px;\n margin: ", "px 0;\n"])), errorTitleColor, gridSize() * 3, gridSize);
|
|
12
13
|
export var ErrorText = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", ";\n"])), errorTextColor);
|
|
13
14
|
export var TeamErrorTitle = styled.p(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", ";\n"])), h400);
|
|
14
|
-
export var TeamErrorText = styled.p(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n color: ", ";\n margin-top: ", "px;\n"])), N200, gridSize() * 1);
|
|
15
|
+
export var TeamErrorText = styled.p(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n color: ", ";\n margin-top: ", "px;\n"])), token('color.text.lowEmphasis', N200), gridSize() * 1);
|
|
@@ -6,10 +6,11 @@ import styled, { css } from 'styled-components';
|
|
|
6
6
|
import { N20, N200 } from '@atlaskit/theme/colors';
|
|
7
7
|
import { borderRadius, gridSize } from '@atlaskit/theme/constants';
|
|
8
8
|
import { h600 } from '@atlaskit/theme/typography';
|
|
9
|
+
import { token } from '@atlaskit/tokens';
|
|
9
10
|
import { bgColor, teamHeaderBgColor } from '../styled/constants';
|
|
10
11
|
export var CardTriggerWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inherit;\n"])));
|
|
11
12
|
export var CardWrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: ", ";\n border-radius: ", "px;\n width: ", "px;\n position: relative;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n"])), bgColor, borderRadius, gridSize() * 40);
|
|
12
|
-
var loadingImage = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background-color: ", ";\n"])), N20);
|
|
13
|
+
var loadingImage = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background-color: ", ";\n"])), token('color.background.subtleNeutral.resting', N20));
|
|
13
14
|
var defaultImage = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background-color: ", ";\n"])), teamHeaderBgColor);
|
|
14
15
|
export var CardHeader = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n ", ";\n background-repeat: no-repeat;\n background-size: cover;\n box-sizing: content-box;\n height: ", "px;\n"])), function (props) {
|
|
15
16
|
if (props.isLoading) {
|
|
@@ -24,11 +25,11 @@ export var CardHeader = styled.div(_templateObject5 || (_templateObject5 = _tagg
|
|
|
24
25
|
}, gridSize() * 16);
|
|
25
26
|
export var CardContent = styled.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: ", "px;\n min-height: ", "px;\n"])), gridSize() * 3, gridSize() * 13);
|
|
26
27
|
export var TeamName = styled.h6(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n ", ";\n text-transform: none;\n overflow: hidden;\n max-height: 48px;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n"])), h600);
|
|
27
|
-
export var MemberCount = styled.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n color: ", ";\n margin-top: ", "px;\n"])), N200, gridSize() * 0.5);
|
|
28
|
+
export var MemberCount = styled.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n color: ", ";\n margin-top: ", "px;\n"])), token('color.text.lowEmphasis', N200), gridSize() * 0.5);
|
|
28
29
|
export var AvatarSection = styled.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n margin-top: ", "px;\n margin-left: -2px;\n"])), gridSize() * 2);
|
|
29
30
|
export var DescriptionWrapper = styled.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n margin-top: ", "px;\n align-items: center;\n display: flex;\n"])), gridSize() * 2);
|
|
30
31
|
export var Description = styled.span(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n overflow: hidden;\n max-height: 60px;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n"])));
|
|
31
|
-
export var ActionButtons = styled.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n width: calc(100% + 8px);\n display: flex;\n justify-content: space-between;\n margin: ", "px -", "px 0 -", "px;\n background-color:
|
|
32
|
+
export var ActionButtons = styled.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n width: calc(100% + 8px);\n display: flex;\n justify-content: space-between;\n margin: ", "px -", "px 0 -", "px;\n background-color: ", ";\n"])), gridSize() * 3, gridSize() * 3, gridSize(), token('color.background.overlay', 'hsla(0, 100%, 100%, 0.2)'));
|
|
32
33
|
export var WrappedButton = styled.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n flex-basis: 0;\n flex-grow: 1;\n margin-left: 8px;\n"])));
|
|
33
34
|
export var MoreButton = styled.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n margin-left: 8px;\n"])));
|
|
34
35
|
export var LoadingWrapper = styled.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n text-align: center;\n margin-top: ", "px;\n"])), gridSize() * 5); // export const LoadingTeamName = styled.div`
|
|
@@ -1,54 +1,59 @@
|
|
|
1
1
|
import * as colors from '@atlaskit/theme/colors';
|
|
2
2
|
import { themed } from '@atlaskit/theme/components';
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
3
4
|
export var bgColor = themed({
|
|
4
|
-
light: colors.N0,
|
|
5
|
-
dark: colors.DN50
|
|
5
|
+
light: token('color.background.overlay', colors.N0),
|
|
6
|
+
dark: token('color.background.overlay', colors.DN50)
|
|
6
7
|
});
|
|
7
8
|
export var headerBgColor = themed({
|
|
8
|
-
light: colors.B500,
|
|
9
|
-
dark: colors.B100
|
|
9
|
+
light: token('color.background.boldBrand.resting', colors.B500),
|
|
10
|
+
dark: token('color.background.boldBrand.resting', colors.B100)
|
|
10
11
|
});
|
|
11
12
|
export var teamHeaderBgColor = themed({
|
|
12
|
-
light: colors.N50,
|
|
13
|
-
dark: colors.N50
|
|
13
|
+
light: token('color.background.subtleNeutral.resting', colors.N50),
|
|
14
|
+
dark: token('color.background.subtleNeutral.resting', colors.N50)
|
|
14
15
|
});
|
|
15
16
|
export var headerBgColorDisabledUser = themed({
|
|
16
|
-
light: colors.N30,
|
|
17
|
-
dark: colors.B100
|
|
17
|
+
light: token('color.background.disabled', colors.N30),
|
|
18
|
+
dark: token('color.background.disabled', colors.B100)
|
|
18
19
|
});
|
|
19
20
|
export var headerTextColor = themed({
|
|
20
|
-
light: colors.N0,
|
|
21
|
-
dark: colors.N0
|
|
21
|
+
light: token('color.text.onBold', colors.N0),
|
|
22
|
+
dark: token('color.text.onBold', colors.N0)
|
|
22
23
|
});
|
|
23
24
|
export var headerTextColorInactive = themed({
|
|
24
|
-
light: colors.N800,
|
|
25
|
-
dark: colors.N0
|
|
25
|
+
light: token('color.text.highEmphasis', colors.N800),
|
|
26
|
+
dark: token('color.text.highEmphasis', colors.N0)
|
|
26
27
|
});
|
|
27
28
|
export var appLabelBgColor = themed({
|
|
28
|
-
light: colors.N20,
|
|
29
|
-
dark: colors.N20
|
|
29
|
+
light: token('color.background.subtleNeutral.resting', colors.N20),
|
|
30
|
+
dark: token('color.background.subtleNeutral.resting', colors.N20)
|
|
30
31
|
});
|
|
31
32
|
export var appLabelTextColor = themed({
|
|
32
|
-
light: colors.N500,
|
|
33
|
-
dark: colors.N500
|
|
33
|
+
light: token('color.text.highEmphasis', colors.N500),
|
|
34
|
+
dark: token('color.text.highEmphasis', colors.N500)
|
|
34
35
|
});
|
|
35
36
|
export var labelTextColor = themed({
|
|
36
|
-
light: colors.N800,
|
|
37
|
-
dark: colors.DN900
|
|
37
|
+
light: token('color.text.highEmphasis', colors.N800),
|
|
38
|
+
dark: token('color.text.highEmphasis', colors.DN900)
|
|
38
39
|
});
|
|
39
40
|
export var labelIconColor = themed({
|
|
40
|
-
light: colors.N60,
|
|
41
|
-
dark: colors.DN100
|
|
41
|
+
light: token('color.text.lowEmphasis', colors.N60),
|
|
42
|
+
dark: token('color.text.lowEmphasis', colors.DN100)
|
|
42
43
|
});
|
|
43
44
|
export var errorIconColor = themed({
|
|
44
|
-
light: colors.N90,
|
|
45
|
-
dark: colors.DN90
|
|
45
|
+
light: token('color.text.disabled', colors.N90),
|
|
46
|
+
dark: token('color.text.disabled', colors.DN90)
|
|
46
47
|
});
|
|
47
48
|
export var errorTitleColor = themed({
|
|
48
|
-
light: colors.N800,
|
|
49
|
-
dark: colors.DN800
|
|
49
|
+
light: token('color.text.highEmphasis', colors.N800),
|
|
50
|
+
dark: token('color.text.highEmphasis', colors.DN800)
|
|
50
51
|
});
|
|
51
52
|
export var errorTextColor = themed({
|
|
52
|
-
light: colors.N90,
|
|
53
|
-
dark: colors.DN90
|
|
53
|
+
light: token('color.text.lowEmphasis', colors.N90),
|
|
54
|
+
dark: token('color.text.lowEmphasis', colors.DN90)
|
|
55
|
+
});
|
|
56
|
+
export var boxShadow = themed({
|
|
57
|
+
light: token('shadow.overlay', "0 4px 8px -2px ".concat(colors.N50A, ", 0 0 1px ").concat(colors.N60A)),
|
|
58
|
+
dark: token('shadow.overlay', "0 4px 8px -2px ".concat(colors.DN50A, ", 0 0 1px ").concat(colors.DN60A))
|
|
54
59
|
});
|
|
@@ -19,7 +19,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
19
19
|
actionSubjectId: actionSubjectId,
|
|
20
20
|
attributes: _objectSpread(_objectSpread({
|
|
21
21
|
packageName: "@atlaskit/profilecard",
|
|
22
|
-
packageVersion: "15.
|
|
22
|
+
packageVersion: "15.8.0"
|
|
23
23
|
}, attributes), {}, {
|
|
24
24
|
firedAt: getPageTime()
|
|
25
25
|
})
|
package/dist/esm/version.json
CHANGED
|
@@ -4,33 +4,33 @@
|
|
|
4
4
|
* This file is automatically generated by i18n-tools.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
export { default as
|
|
7
|
+
export { default as zh } from './zh';
|
|
8
|
+
export { default as zh_TW } from './zh_TW';
|
|
8
9
|
export { default as cs } from './cs';
|
|
9
10
|
export { default as da } from './da';
|
|
10
|
-
export { default as
|
|
11
|
-
export { default as en } from './en';
|
|
12
|
-
export { default as en_GB } from './en_GB';
|
|
13
|
-
export { default as es } from './es';
|
|
11
|
+
export { default as nl } from './nl';
|
|
14
12
|
export { default as et } from './et';
|
|
15
13
|
export { default as fi } from './fi';
|
|
16
14
|
export { default as fr } from './fr';
|
|
15
|
+
export { default as de } from './de';
|
|
17
16
|
export { default as hu } from './hu';
|
|
18
|
-
export { default as is } from './is';
|
|
19
17
|
export { default as it } from './it';
|
|
20
18
|
export { default as ja } from './ja';
|
|
21
19
|
export { default as ko } from './ko';
|
|
22
20
|
export { default as nb } from './nb';
|
|
23
|
-
export { default as nl } from './nl';
|
|
24
21
|
export { default as pl } from './pl';
|
|
25
22
|
export { default as pt_BR } from './pt_BR';
|
|
26
23
|
export { default as pt_PT } from './pt_PT';
|
|
27
|
-
export { default as ro } from './ro';
|
|
28
24
|
export { default as ru } from './ru';
|
|
29
25
|
export { default as sk } from './sk';
|
|
26
|
+
export { default as es } from './es';
|
|
30
27
|
export { default as sv } from './sv';
|
|
31
28
|
export { default as th } from './th';
|
|
32
29
|
export { default as tr } from './tr';
|
|
33
30
|
export { default as uk } from './uk';
|
|
34
31
|
export { default as vi } from './vi';
|
|
35
|
-
export { default as
|
|
36
|
-
export { default as
|
|
32
|
+
export { default as en_ZZ } from './en_ZZ';
|
|
33
|
+
export { default as en } from './en';
|
|
34
|
+
export { default as en_GB } from './en_GB';
|
|
35
|
+
export { default as is } from './is';
|
|
36
|
+
export { default as ro } from './ro';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
export declare const bgColor: import("@atlaskit/theme").ThemedValue<
|
|
2
|
-
export declare const headerBgColor: import("@atlaskit/theme").ThemedValue<
|
|
3
|
-
export declare const teamHeaderBgColor: import("@atlaskit/theme").ThemedValue<
|
|
4
|
-
export declare const headerBgColorDisabledUser: import("@atlaskit/theme").ThemedValue<
|
|
5
|
-
export declare const headerTextColor: import("@atlaskit/theme").ThemedValue<
|
|
6
|
-
export declare const headerTextColorInactive: import("@atlaskit/theme").ThemedValue<
|
|
7
|
-
export declare const appLabelBgColor: import("@atlaskit/theme").ThemedValue<
|
|
8
|
-
export declare const appLabelTextColor: import("@atlaskit/theme").ThemedValue<
|
|
9
|
-
export declare const labelTextColor: import("@atlaskit/theme").ThemedValue<
|
|
10
|
-
export declare const labelIconColor: import("@atlaskit/theme").ThemedValue<
|
|
11
|
-
export declare const errorIconColor: import("@atlaskit/theme").ThemedValue<
|
|
12
|
-
export declare const errorTitleColor: import("@atlaskit/theme").ThemedValue<
|
|
13
|
-
export declare const errorTextColor: import("@atlaskit/theme").ThemedValue<
|
|
1
|
+
export declare const bgColor: import("@atlaskit/theme").ThemedValue<"var(--background-overlay)">;
|
|
2
|
+
export declare const headerBgColor: import("@atlaskit/theme").ThemedValue<"var(--background-boldBrand-resting)">;
|
|
3
|
+
export declare const teamHeaderBgColor: import("@atlaskit/theme").ThemedValue<"var(--background-subtleNeutral-resting)">;
|
|
4
|
+
export declare const headerBgColorDisabledUser: import("@atlaskit/theme").ThemedValue<"var(--background-disabled)">;
|
|
5
|
+
export declare const headerTextColor: import("@atlaskit/theme").ThemedValue<"var(--text-onBold)">;
|
|
6
|
+
export declare const headerTextColorInactive: import("@atlaskit/theme").ThemedValue<"var(--text-highEmphasis)">;
|
|
7
|
+
export declare const appLabelBgColor: import("@atlaskit/theme").ThemedValue<"var(--background-subtleNeutral-resting)">;
|
|
8
|
+
export declare const appLabelTextColor: import("@atlaskit/theme").ThemedValue<"var(--text-highEmphasis)">;
|
|
9
|
+
export declare const labelTextColor: import("@atlaskit/theme").ThemedValue<"var(--text-highEmphasis)">;
|
|
10
|
+
export declare const labelIconColor: import("@atlaskit/theme").ThemedValue<"var(--text-lowEmphasis)">;
|
|
11
|
+
export declare const errorIconColor: import("@atlaskit/theme").ThemedValue<"var(--text-disabled)">;
|
|
12
|
+
export declare const errorTitleColor: import("@atlaskit/theme").ThemedValue<"var(--text-highEmphasis)">;
|
|
13
|
+
export declare const errorTextColor: import("@atlaskit/theme").ThemedValue<"var(--text-lowEmphasis)">;
|
|
14
|
+
export declare const boxShadow: import("@atlaskit/theme").ThemedValue<"var(--overlay)">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.8.0",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"@atlaskit/popup": "^1.1.0",
|
|
49
49
|
"@atlaskit/spinner": "^15.0.0",
|
|
50
50
|
"@atlaskit/theme": "^12.0.0",
|
|
51
|
+
"@atlaskit/tokens": "^0.2.0",
|
|
51
52
|
"@babel/runtime": "^7.0.0",
|
|
52
53
|
"date-fns": "^2.17.0",
|
|
53
54
|
"lodash": "^4.17.15",
|
|
@@ -83,6 +84,9 @@
|
|
|
83
84
|
"techstack": {
|
|
84
85
|
"@atlassian/frontend": {
|
|
85
86
|
"import-structure": "atlassian-conventions"
|
|
87
|
+
},
|
|
88
|
+
"@repo/internal": {
|
|
89
|
+
"theming": "tokens"
|
|
86
90
|
}
|
|
87
91
|
},
|
|
88
92
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|