@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.
Files changed (50) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/dist/cjs/client/UserProfileCardClient.js +1 -1
  3. package/dist/cjs/client/index.js +1 -1
  4. package/dist/cjs/components/Error/ErrorIllustration.js +4 -1
  5. package/dist/cjs/components/Team/TeamProfileCard.js +5 -5
  6. package/dist/cjs/components/User/ProfileCard.js +9 -7
  7. package/dist/cjs/components/User/index.js +4 -4
  8. package/dist/cjs/i18n/index.js +22 -22
  9. package/dist/cjs/index.js +23 -23
  10. package/dist/cjs/internal/relative-date.js +1 -1
  11. package/dist/cjs/messages.js +2 -2
  12. package/dist/cjs/mocks/simple-mock-clients.js +1 -1
  13. package/dist/cjs/mocks/util.js +1 -1
  14. package/dist/cjs/styled/Card.js +2 -4
  15. package/dist/cjs/styled/Error.js +4 -2
  16. package/dist/cjs/styled/TeamCard.js +6 -4
  17. package/dist/cjs/styled/constants.js +35 -28
  18. package/dist/cjs/util/analytics.js +2 -2
  19. package/dist/cjs/util/config.js +1 -1
  20. package/dist/cjs/version.json +1 -1
  21. package/dist/es2019/components/Error/ErrorIllustration.js +3 -1
  22. package/dist/es2019/components/Team/TeamProfileCard.js +1 -1
  23. package/dist/es2019/components/User/ProfileCard.js +3 -2
  24. package/dist/es2019/i18n/index.js +10 -10
  25. package/dist/es2019/messages.js +1 -1
  26. package/dist/es2019/styled/Card.js +2 -3
  27. package/dist/es2019/styled/Error.js +2 -1
  28. package/dist/es2019/styled/TeamCard.js +4 -3
  29. package/dist/es2019/styled/constants.js +31 -26
  30. package/dist/es2019/util/analytics.js +1 -1
  31. package/dist/es2019/version.json +1 -1
  32. package/dist/esm/components/Error/ErrorIllustration.js +3 -1
  33. package/dist/esm/components/Team/TeamProfileCard.js +1 -1
  34. package/dist/esm/components/User/ProfileCard.js +3 -2
  35. package/dist/esm/i18n/index.js +10 -10
  36. package/dist/esm/messages.js +1 -1
  37. package/dist/esm/styled/Card.js +2 -3
  38. package/dist/esm/styled/Error.js +2 -1
  39. package/dist/esm/styled/TeamCard.js +4 -3
  40. package/dist/esm/styled/constants.js +31 -26
  41. package/dist/esm/util/analytics.js +1 -1
  42. package/dist/esm/version.json +1 -1
  43. package/dist/types/components/Error/ErrorIllustration.d.ts +1 -0
  44. package/dist/types/components/Team/TeamLoadingState.d.ts +1 -0
  45. package/dist/types/components/Team/TeamProfileCard.d.ts +1 -0
  46. package/dist/types/components/User/UserLoadingState.d.ts +1 -0
  47. package/dist/types/i18n/index.d.ts +10 -10
  48. package/dist/types/styled/constants.d.ts +14 -13
  49. package/dist/types/types.d.ts +1 -1
  50. 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: "15.7.1"
22
+ packageVersion: "16.0.0"
23
23
  }, attributes), {}, {
24
24
  firedAt: getPageTime()
25
25
  })
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "15.7.1"
3
+ "version": "16.0.0"
4
4
  }
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ErrorIllustration: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AnalyticsFunction } from '../../types';
2
3
  declare const _default: (props: {
3
4
  analytics: AnalyticsFunction;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { TeamProfilecardProps } from '../../types';
2
3
  declare const TeamProfileCard: (props: TeamProfilecardProps) => JSX.Element | null;
3
4
  export default TeamProfileCard;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const UserLoadingState: () => JSX.Element;
2
3
  export default UserLoadingState;
@@ -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 en_ZZ } from './en_ZZ';
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 de } from './de';
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 zh } from './zh';
36
- export { default as zh_TW } from './zh_TW';
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<string>;
2
- export declare const headerBgColor: import("@atlaskit/theme").ThemedValue<string>;
3
- export declare const teamHeaderBgColor: import("@atlaskit/theme").ThemedValue<string>;
4
- export declare const headerBgColorDisabledUser: import("@atlaskit/theme").ThemedValue<string>;
5
- export declare const headerTextColor: import("@atlaskit/theme").ThemedValue<string>;
6
- export declare const headerTextColorInactive: import("@atlaskit/theme").ThemedValue<string>;
7
- export declare const appLabelBgColor: import("@atlaskit/theme").ThemedValue<string>;
8
- export declare const appLabelTextColor: import("@atlaskit/theme").ThemedValue<string>;
9
- export declare const labelTextColor: import("@atlaskit/theme").ThemedValue<string>;
10
- export declare const labelIconColor: import("@atlaskit/theme").ThemedValue<string>;
11
- export declare const errorIconColor: import("@atlaskit/theme").ThemedValue<string>;
12
- export declare const errorTitleColor: import("@atlaskit/theme").ThemedValue<string>;
13
- export declare const errorTextColor: import("@atlaskit/theme").ThemedValue<string>;
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)">;
@@ -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": "15.7.1",
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.0.0",
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.2.0",
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": "^16.0.0",
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"