@atlaskit/profilecard 15.7.1 → 16.0.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 +63 -0
- package/dist/cjs/client/UserProfileCardClient.js +1 -1
- package/dist/cjs/client/index.js +1 -1
- package/dist/cjs/components/Error/ErrorIllustration.js +4 -1
- package/dist/cjs/components/Team/TeamProfileCard.js +5 -5
- package/dist/cjs/components/User/ProfileCard.js +9 -7
- package/dist/cjs/components/User/index.js +4 -4
- package/dist/cjs/i18n/index.js +22 -22
- package/dist/cjs/index.js +23 -23
- package/dist/cjs/internal/relative-date.js +1 -1
- package/dist/cjs/messages.js +2 -2
- package/dist/cjs/mocks/simple-mock-clients.js +1 -1
- package/dist/cjs/mocks/util.js +1 -1
- package/dist/cjs/styled/Card.js +2 -4
- package/dist/cjs/styled/Error.js +4 -2
- package/dist/cjs/styled/TeamCard.js +6 -4
- package/dist/cjs/styled/constants.js +35 -28
- package/dist/cjs/util/analytics.js +2 -2
- package/dist/cjs/util/config.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/Error/ErrorIllustration.js +3 -1
- package/dist/es2019/components/Team/TeamProfileCard.js +1 -1
- package/dist/es2019/components/User/ProfileCard.js +3 -2
- package/dist/es2019/i18n/index.js +10 -10
- package/dist/es2019/messages.js +1 -1
- 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/Team/TeamProfileCard.js +1 -1
- package/dist/esm/components/User/ProfileCard.js +3 -2
- package/dist/esm/i18n/index.js +10 -10
- package/dist/esm/messages.js +1 -1
- 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/components/Error/ErrorIllustration.d.ts +1 -0
- package/dist/types/components/Team/TeamLoadingState.d.ts +1 -0
- package/dist/types/components/Team/TeamProfileCard.d.ts +1 -0
- package/dist/types/components/User/UserLoadingState.d.ts +1 -0
- package/dist/types/i18n/index.d.ts +10 -10
- package/dist/types/styled/constants.d.ts +14 -13
- package/dist/types/types.d.ts +1 -1
- package/package.json +10 -6
|
@@ -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: "
|
|
22
|
+
packageVersion: "16.0.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(--ds-background-overlay)">;
|
|
2
|
+
export declare const headerBgColor: import("@atlaskit/theme").ThemedValue<"var(--ds-background-boldBrand-resting)">;
|
|
3
|
+
export declare const teamHeaderBgColor: import("@atlaskit/theme").ThemedValue<"var(--ds-background-subtleNeutral-resting)">;
|
|
4
|
+
export declare const headerBgColorDisabledUser: import("@atlaskit/theme").ThemedValue<"var(--ds-background-disabled)">;
|
|
5
|
+
export declare const headerTextColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text-onBold)">;
|
|
6
|
+
export declare const headerTextColorInactive: import("@atlaskit/theme").ThemedValue<"var(--ds-text-highEmphasis)">;
|
|
7
|
+
export declare const appLabelBgColor: import("@atlaskit/theme").ThemedValue<"var(--ds-background-subtleNeutral-resting)">;
|
|
8
|
+
export declare const appLabelTextColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text-highEmphasis)">;
|
|
9
|
+
export declare const labelTextColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text-highEmphasis)">;
|
|
10
|
+
export declare const labelIconColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text-lowEmphasis)">;
|
|
11
|
+
export declare const errorIconColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text-disabled)">;
|
|
12
|
+
export declare const errorTitleColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text-highEmphasis)">;
|
|
13
|
+
export declare const errorTextColor: import("@atlaskit/theme").ThemedValue<"var(--ds-text-lowEmphasis)">;
|
|
14
|
+
export declare const boxShadow: import("@atlaskit/theme").ThemedValue<"var(--ds-overlay)">;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { IntlShape } from 'react-intl';
|
|
2
|
+
import { IntlShape } from 'react-intl-next';
|
|
3
3
|
import TeamProfileCardClient from './client/TeamProfileCardClient';
|
|
4
4
|
import UserProfileCardClient from './client/UserProfileCardClient';
|
|
5
5
|
export interface ApiClientResponse {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,27 +44,28 @@
|
|
|
44
44
|
"@atlaskit/button": "^16.0.0",
|
|
45
45
|
"@atlaskit/icon": "^21.9.0",
|
|
46
46
|
"@atlaskit/lozenge": "^11.0.0",
|
|
47
|
-
"@atlaskit/menu": "^1.
|
|
47
|
+
"@atlaskit/menu": "^1.2.0",
|
|
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.4.0",
|
|
51
52
|
"@babel/runtime": "^7.0.0",
|
|
52
53
|
"date-fns": "^2.17.0",
|
|
53
54
|
"lodash": "^4.17.15",
|
|
54
|
-
"lru-fast": "^0.2.2"
|
|
55
|
+
"lru-fast": "^0.2.2",
|
|
56
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
55
57
|
},
|
|
56
58
|
"peerDependencies": {
|
|
57
59
|
"react": "^16.8.0",
|
|
58
60
|
"react-dom": "^16.8.0",
|
|
59
|
-
"react-intl": "^2.6.0",
|
|
60
61
|
"styled-components": "^3.2.6"
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|
|
63
64
|
"@atlaskit/docs": "*",
|
|
64
|
-
"@atlaskit/dynamic-table": "^14.
|
|
65
|
+
"@atlaskit/dynamic-table": "^14.4.0",
|
|
65
66
|
"@atlaskit/inline-edit": "^12.0.0",
|
|
66
67
|
"@atlaskit/select": "^15.0.0",
|
|
67
|
-
"@atlaskit/util-data-test": "^
|
|
68
|
+
"@atlaskit/util-data-test": "^17.0.0",
|
|
68
69
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
69
70
|
"@testing-library/react": "^8.0.1",
|
|
70
71
|
"enzyme": "^3.10.0",
|
|
@@ -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"
|