@atlaskit/atlassian-navigation 1.2.1 → 2.0.1

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 +84 -0
  2. package/dist/cjs/common/constants.js +1 -1
  3. package/dist/cjs/components/AtlassianNavigation/styles.js +2 -4
  4. package/dist/cjs/components/IconButton/styles.js +1 -1
  5. package/dist/cjs/components/PrimaryButton/styles.js +1 -1
  6. package/dist/cjs/components/PrimaryItemsContainer/index.js +6 -11
  7. package/dist/cjs/components/PrimaryItemsContainer/styles.js +1 -1
  8. package/dist/cjs/components/ProductHome/index.js +4 -4
  9. package/dist/cjs/components/ProductHome/styles.js +1 -1
  10. package/dist/cjs/components/Search/styles.js +1 -1
  11. package/dist/cjs/controllers/overflow/index.js +1 -1
  12. package/dist/cjs/index.js +26 -26
  13. package/dist/cjs/theme/defaultTheme.js +42 -44
  14. package/dist/cjs/theme/index.js +8 -8
  15. package/dist/cjs/theme/themeGenerator.js +1 -1
  16. package/dist/cjs/theme/themeHelpers.js +1 -1
  17. package/dist/cjs/version.json +1 -1
  18. package/dist/es2019/components/AtlassianNavigation/styles.js +2 -3
  19. package/dist/es2019/components/PrimaryItemsContainer/index.js +6 -11
  20. package/dist/es2019/theme/defaultTheme.js +42 -43
  21. package/dist/es2019/version.json +1 -1
  22. package/dist/esm/components/AtlassianNavigation/styles.js +2 -3
  23. package/dist/esm/components/PrimaryItemsContainer/index.js +6 -11
  24. package/dist/esm/theme/defaultTheme.js +42 -43
  25. package/dist/esm/version.json +1 -1
  26. package/dist/types/components/AtlassianNavigation/index.d.ts +1 -0
  27. package/dist/types/components/AtlassianNavigation/skeleton.d.ts +1 -0
  28. package/dist/types/components/BadgeContainer/index.d.ts +1 -0
  29. package/dist/types/components/Create/index.d.ts +1 -0
  30. package/dist/types/components/Create/skeleton.d.ts +1 -0
  31. package/dist/types/components/IconButton/skeleton.d.ts +1 -0
  32. package/dist/types/components/PrimaryButton/skeleton.d.ts +1 -0
  33. package/dist/types/components/PrimaryItemsContainer/index.d.ts +1 -0
  34. package/dist/types/components/PrimaryItemsContainer/skeleton.d.ts +1 -0
  35. package/dist/types/components/ProductHome/custom-product-home.d.ts +1 -0
  36. package/dist/types/components/ProductHome/product-home.d.ts +1 -0
  37. package/dist/types/components/ProductHome/skeleton.d.ts +1 -0
  38. package/dist/types/components/Profile/skeleton.d.ts +1 -0
  39. package/dist/types/components/Search/index.d.ts +1 -0
  40. package/dist/types/components/Search/skeleton.d.ts +1 -0
  41. package/dist/types/components/SignIn/index.d.ts +1 -0
  42. package/dist/types/components/SignIn/skeleton.d.ts +1 -0
  43. package/dist/types/components/SkeletonCreateButton/index.d.ts +1 -0
  44. package/dist/types/components/SkeletonIconButton/index.d.ts +1 -0
  45. package/dist/types/components/SkeletonPrimaryButton/index.d.ts +1 -0
  46. package/dist/types/skeleton-help-button.d.ts +1 -0
  47. package/dist/types/skeleton-notification-button.d.ts +1 -0
  48. package/dist/types/skeleton-settings-button.d.ts +1 -0
  49. package/dist/types/skeleton-switcher-button.d.ts +1 -0
  50. package/package.json +5 -5
@@ -1,27 +1,26 @@
1
1
  import { B200, B400, B50, N0, N20, N200, N40, N600, N700 } from '@atlaskit/theme/colors';
2
- import { token } from '@atlaskit/tokens';
3
2
  import { hexToRGBA } from './themeHelpers';
4
3
  const defaultTheme = {
5
4
  mode: {
6
5
  create: {
7
6
  active: {
8
- color: token('color.text.onBold', N0),
9
- backgroundColor: token('color.background.boldBrand.pressed', hexToRGBA(B400, 0.8)),
7
+ color: `var(--ds-text-onBold, ${N0})`,
8
+ backgroundColor: `var(--ds-background-boldBrand-pressed, ${hexToRGBA(B400, 0.8)})`,
10
9
  boxShadow: ''
11
10
  },
12
11
  default: {
13
- color: token('color.text.onBold', N0),
14
- backgroundColor: token('color.background.boldBrand.resting', B400),
12
+ color: `var(--ds-text-onBold, ${N0})`,
13
+ backgroundColor: `var(--ds-background-boldBrand-resting, ${B400})`,
15
14
  boxShadow: ''
16
15
  },
17
16
  focus: {
18
- color: token('color.text.onBold', N0),
19
- backgroundColor: token('color.background.boldBrand.resting', B400),
20
- boxShadow: `0 0 0 2px ${token('color.border.focus', 'rgb(128,169,230)')}`
17
+ color: `var(--ds-text-onBold, ${N0})`,
18
+ backgroundColor: `var(--ds-background-boldBrand-resting, ${B400})`,
19
+ boxShadow: `0 0 0 2px ${"var(--ds-border-focus, rgb(128,169,230))"}`
21
20
  },
22
21
  hover: {
23
- color: token('color.text.onBold', N0),
24
- backgroundColor: token('color.background.boldBrand.hover', hexToRGBA(B400, 0.9)),
22
+ color: `var(--ds-text-onBold, ${N0})`,
23
+ backgroundColor: `var(--ds-background-boldBrand-hover, ${hexToRGBA(B400, 0.9)})`,
25
24
  boxShadow: ''
26
25
  },
27
26
  selected: {
@@ -32,39 +31,39 @@ const defaultTheme = {
32
31
  },
33
32
  iconButton: {
34
33
  active: {
35
- color: token('color.text.mediumEmphasis', B400),
36
- backgroundColor: token('color.background.subtleNeutral.pressed', hexToRGBA(B50, 0.6)),
34
+ color: `var(--ds-text-mediumEmphasis, ${B400})`,
35
+ backgroundColor: `var(--ds-background-subtleNeutral-pressed, ${hexToRGBA(B50, 0.6)})`,
37
36
  boxShadow: ''
38
37
  },
39
38
  default: {
40
- color: token('color.text.mediumEmphasis', N600),
39
+ color: `var(--ds-text-mediumEmphasis, ${N600})`,
41
40
  backgroundColor: 'transparent',
42
41
  boxShadow: ''
43
42
  },
44
43
  focus: {
45
- color: token('color.text.mediumEmphasis', N600),
46
- backgroundColor: token('color.background.subtleBrand.hover', hexToRGBA(B50, 0.5)),
47
- boxShadow: `0 0 0 2px ${token('color.border.focus', B200)}`
44
+ color: `var(--ds-text-mediumEmphasis, ${N600})`,
45
+ backgroundColor: `var(--ds-background-subtleBrand-hover, ${hexToRGBA(B50, 0.5)})`,
46
+ boxShadow: `0 0 0 2px ${`var(--ds-border-focus, ${B200})`}`
48
47
  },
49
48
  hover: {
50
- color: token('color.text.mediumEmphasis', B400),
51
- backgroundColor: token('color.background.subtleNeutral.hover', hexToRGBA(B50, 0.9)),
49
+ color: `var(--ds-text-mediumEmphasis, ${B400})`,
50
+ backgroundColor: `var(--ds-background-subtleNeutral-hover, ${hexToRGBA(B50, 0.9)})`,
52
51
  boxShadow: ''
53
52
  },
54
53
  selected: {
55
- color: token('color.text.selected', ''),
56
- backgroundColor: token('color.background.selected.resting', ''),
54
+ color: "var(--ds-text-selected)",
55
+ backgroundColor: "var(--ds-background-selected-resting)",
57
56
  boxShadow: ''
58
57
  }
59
58
  },
60
59
  navigation: {
61
- backgroundColor: token('color.background.default', N0),
62
- color: token('color.text.lowEmphasis', N200)
60
+ backgroundColor: `var(--ds-background-default, ${N0})`,
61
+ color: `var(--ds-text-lowEmphasis, ${N200})`
63
62
  },
64
63
  productHome: {
65
- backgroundColor: token('color.text.brand', B400),
66
- color: token('color.text.highEmphasis', N700),
67
- borderRight: `1px solid ${token('color.border.neutral', hexToRGBA(N200, 0.3))}`,
64
+ backgroundColor: `var(--ds-text-brand, ${B400})`,
65
+ color: `var(--ds-text-highEmphasis, ${N700})`,
66
+ borderRight: `1px solid ${`var(--ds-border-neutral, ${hexToRGBA(N200, 0.3)})`}`,
68
67
  // TODO: (DSP-1256) These colors should be moved into the Logo package
69
68
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
70
69
  iconGradientStart: B400,
@@ -75,49 +74,49 @@ const defaultTheme = {
75
74
  },
76
75
  primaryButton: {
77
76
  active: {
78
- color: token('color.text.mediumEmphasis', B400),
79
- backgroundColor: token('color.background.subtleNeutral.pressed', hexToRGBA(B50, 0.7)),
77
+ color: `var(--ds-text-mediumEmphasis, ${B400})`,
78
+ backgroundColor: `var(--ds-background-subtleNeutral-pressed, ${hexToRGBA(B50, 0.7)})`,
80
79
  boxShadow: ''
81
80
  },
82
81
  default: {
83
- color: token('color.text.mediumEmphasis', N600),
82
+ color: `var(--ds-text-mediumEmphasis, ${N600})`,
84
83
  backgroundColor: 'transparent',
85
84
  boxShadow: ''
86
85
  },
87
86
  focus: {
88
- color: token('color.text.mediumEmphasis', N600),
87
+ color: `var(--ds-text-mediumEmphasis, ${N600})`,
89
88
  backgroundColor: '',
90
- boxShadow: `0 0 0 2px ${token('color.border.focus', B200)}`
89
+ boxShadow: `0 0 0 2px ${`var(--ds-border-focus, ${B200})`}`
91
90
  },
92
91
  hover: {
93
- color: token('color.text.mediumEmphasis', B400),
94
- backgroundColor: token('color.background.subtleNeutral.hover', hexToRGBA(B50, 0.9)),
92
+ color: `var(--ds-text-mediumEmphasis, ${B400})`,
93
+ backgroundColor: `var(--ds-background-subtleNeutral-hover, ${hexToRGBA(B50, 0.9)})`,
95
94
  boxShadow: ''
96
95
  },
97
96
  selected: {
98
- color: token('color.text.mediumEmphasis', B400),
99
- backgroundColor: token('color.background.selected.resting', ''),
97
+ color: `var(--ds-text-mediumEmphasis, ${B400})`,
98
+ backgroundColor: "var(--ds-background-selected-resting)",
100
99
  boxShadow: '',
101
- borderColor: token('color.iconBorder.brand', B400),
102
- bordorBottom: `4px solid ${token('color.iconBorder.brand', B400)}`
100
+ borderColor: `var(--ds-iconBorder-brand, ${B400})`,
101
+ bordorBottom: `4px solid ${`var(--ds-iconBorder-brand, ${B400})`}`
103
102
  }
104
103
  },
105
104
  search: {
106
105
  default: {
107
- backgroundColor: token('color.background.default', N0),
108
- color: token('color.text.lowEmphasis', N200),
109
- borderColor: token('color.border.neutral', N40)
106
+ backgroundColor: `var(--ds-background-default, ${N0})`,
107
+ color: `var(--ds-text-lowEmphasis, ${N200})`,
108
+ borderColor: `var(--ds-border-neutral, ${N40})`
110
109
  },
111
110
  focus: {
112
- borderColor: token('color.border.focus', B200)
111
+ borderColor: `var(--ds-border-focus, ${B200})`
113
112
  },
114
113
  hover: {
115
- color: token('color.text.brand', B400),
116
- backgroundColor: token('color.background.default', hexToRGBA(B50, 0.9))
114
+ color: `var(--ds-text-brand, ${B400})`,
115
+ backgroundColor: `var(--ds-background-default, ${hexToRGBA(B50, 0.9)})`
117
116
  }
118
117
  },
119
118
  skeleton: {
120
- backgroundColor: token('color.background.subtleNeutral.resting', N20),
119
+ backgroundColor: `var(--ds-background-subtleNeutral-resting, ${N20})`,
121
120
  opacity: 1
122
121
  }
123
122
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "1.2.1",
3
+ "version": "2.0.1",
4
4
  "sideEffects": false
5
5
  }
@@ -6,7 +6,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
6
6
 
7
7
  import { N30A, N40A, N900 } from '@atlaskit/theme/colors';
8
8
  import { gridSize as gridSizeFn } from '@atlaskit/theme/constants';
9
- import { token } from '@atlaskit/tokens';
10
9
  import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
11
10
  import { hexToRGBA } from '../../theme';
12
11
  var gridSize = gridSizeFn();
@@ -23,8 +22,8 @@ export var containerCSS = function containerCSS(_ref) {
23
22
  height: HORIZONTAL_GLOBAL_NAV_HEIGHT,
24
23
  position: 'relative',
25
24
  '[data-theme="light"] &, [data-theme="dark"] &': {
26
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
27
- borderBottom: "1px solid ".concat(token('color.border.neutral')),
25
+ // eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
26
+ borderBottom: "1px solid ".concat("var(--ds-border-neutral, #091E4224)"),
28
27
  // TODO: (DSP-2087) Remove the below once tokens have launched
29
28
  '&::after': {
30
29
  content: 'none'
@@ -42,16 +42,6 @@ export var PrimaryItemsContainer = function PrimaryItemsContainer(_ref) {
42
42
  testId: testId ? "".concat(testId, "-overflow-menu-trigger") : 'overflow-menu-trigger'
43
43
  }, triggerProps), moreLabel);
44
44
  }, [moreLabel, onMoreClick, isMoreOpen, testId]);
45
-
46
- var WidthObserverRelativeWrapper = function WidthObserverRelativeWrapper() {
47
- return jsx("div", {
48
- style: widthObserverContainerStyle
49
- }, jsx(WidthObserver, {
50
- offscreen: true,
51
- setWidth: updateWidth
52
- }));
53
- };
54
-
55
45
  var content = useCallback(function () {
56
46
  return jsx(OverflowProvider, {
57
47
  isVisible: false,
@@ -76,5 +66,10 @@ export var PrimaryItemsContainer = function PrimaryItemsContainer(_ref) {
76
66
  onClose: onMoreClose,
77
67
  trigger: trigger,
78
68
  testId: testId ? "".concat(testId, "-overflow-menu-popup") : 'overflow-menu-popup'
79
- }), Create && jsx(Create, null), jsx(WidthObserverRelativeWrapper, null));
69
+ }), Create && jsx(Create, null), jsx("div", {
70
+ style: widthObserverContainerStyle
71
+ }, jsx(WidthObserver, {
72
+ offscreen: true,
73
+ setWidth: updateWidth
74
+ })));
80
75
  };
@@ -1,27 +1,26 @@
1
1
  import { B200, B400, B50, N0, N20, N200, N40, N600, N700 } from '@atlaskit/theme/colors';
2
- import { token } from '@atlaskit/tokens';
3
2
  import { hexToRGBA } from './themeHelpers';
4
3
  var defaultTheme = {
5
4
  mode: {
6
5
  create: {
7
6
  active: {
8
- color: token('color.text.onBold', N0),
9
- backgroundColor: token('color.background.boldBrand.pressed', hexToRGBA(B400, 0.8)),
7
+ color: "var(--ds-text-onBold, ".concat(N0, ")"),
8
+ backgroundColor: "var(--ds-background-boldBrand-pressed, ".concat(hexToRGBA(B400, 0.8), ")"),
10
9
  boxShadow: ''
11
10
  },
12
11
  default: {
13
- color: token('color.text.onBold', N0),
14
- backgroundColor: token('color.background.boldBrand.resting', B400),
12
+ color: "var(--ds-text-onBold, ".concat(N0, ")"),
13
+ backgroundColor: "var(--ds-background-boldBrand-resting, ".concat(B400, ")"),
15
14
  boxShadow: ''
16
15
  },
17
16
  focus: {
18
- color: token('color.text.onBold', N0),
19
- backgroundColor: token('color.background.boldBrand.resting', B400),
20
- boxShadow: "0 0 0 2px ".concat(token('color.border.focus', 'rgb(128,169,230)'))
17
+ color: "var(--ds-text-onBold, ".concat(N0, ")"),
18
+ backgroundColor: "var(--ds-background-boldBrand-resting, ".concat(B400, ")"),
19
+ boxShadow: "0 0 0 2px ".concat("var(--ds-border-focus, rgb(128,169,230))")
21
20
  },
22
21
  hover: {
23
- color: token('color.text.onBold', N0),
24
- backgroundColor: token('color.background.boldBrand.hover', hexToRGBA(B400, 0.9)),
22
+ color: "var(--ds-text-onBold, ".concat(N0, ")"),
23
+ backgroundColor: "var(--ds-background-boldBrand-hover, ".concat(hexToRGBA(B400, 0.9), ")"),
25
24
  boxShadow: ''
26
25
  },
27
26
  selected: {
@@ -32,39 +31,39 @@ var defaultTheme = {
32
31
  },
33
32
  iconButton: {
34
33
  active: {
35
- color: token('color.text.mediumEmphasis', B400),
36
- backgroundColor: token('color.background.subtleNeutral.pressed', hexToRGBA(B50, 0.6)),
34
+ color: "var(--ds-text-mediumEmphasis, ".concat(B400, ")"),
35
+ backgroundColor: "var(--ds-background-subtleNeutral-pressed, ".concat(hexToRGBA(B50, 0.6), ")"),
37
36
  boxShadow: ''
38
37
  },
39
38
  default: {
40
- color: token('color.text.mediumEmphasis', N600),
39
+ color: "var(--ds-text-mediumEmphasis, ".concat(N600, ")"),
41
40
  backgroundColor: 'transparent',
42
41
  boxShadow: ''
43
42
  },
44
43
  focus: {
45
- color: token('color.text.mediumEmphasis', N600),
46
- backgroundColor: token('color.background.subtleBrand.hover', hexToRGBA(B50, 0.5)),
47
- boxShadow: "0 0 0 2px ".concat(token('color.border.focus', B200))
44
+ color: "var(--ds-text-mediumEmphasis, ".concat(N600, ")"),
45
+ backgroundColor: "var(--ds-background-subtleBrand-hover, ".concat(hexToRGBA(B50, 0.5), ")"),
46
+ boxShadow: "0 0 0 2px ".concat("var(--ds-border-focus, ".concat(B200, ")"))
48
47
  },
49
48
  hover: {
50
- color: token('color.text.mediumEmphasis', B400),
51
- backgroundColor: token('color.background.subtleNeutral.hover', hexToRGBA(B50, 0.9)),
49
+ color: "var(--ds-text-mediumEmphasis, ".concat(B400, ")"),
50
+ backgroundColor: "var(--ds-background-subtleNeutral-hover, ".concat(hexToRGBA(B50, 0.9), ")"),
52
51
  boxShadow: ''
53
52
  },
54
53
  selected: {
55
- color: token('color.text.selected', ''),
56
- backgroundColor: token('color.background.selected.resting', ''),
54
+ color: "var(--ds-text-selected)",
55
+ backgroundColor: "var(--ds-background-selected-resting)",
57
56
  boxShadow: ''
58
57
  }
59
58
  },
60
59
  navigation: {
61
- backgroundColor: token('color.background.default', N0),
62
- color: token('color.text.lowEmphasis', N200)
60
+ backgroundColor: "var(--ds-background-default, ".concat(N0, ")"),
61
+ color: "var(--ds-text-lowEmphasis, ".concat(N200, ")")
63
62
  },
64
63
  productHome: {
65
- backgroundColor: token('color.text.brand', B400),
66
- color: token('color.text.highEmphasis', N700),
67
- borderRight: "1px solid ".concat(token('color.border.neutral', hexToRGBA(N200, 0.3))),
64
+ backgroundColor: "var(--ds-text-brand, ".concat(B400, ")"),
65
+ color: "var(--ds-text-highEmphasis, ".concat(N700, ")"),
66
+ borderRight: "1px solid ".concat("var(--ds-border-neutral, ".concat(hexToRGBA(N200, 0.3), ")")),
68
67
  // TODO: (DSP-1256) These colors should be moved into the Logo package
69
68
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
70
69
  iconGradientStart: B400,
@@ -75,49 +74,49 @@ var defaultTheme = {
75
74
  },
76
75
  primaryButton: {
77
76
  active: {
78
- color: token('color.text.mediumEmphasis', B400),
79
- backgroundColor: token('color.background.subtleNeutral.pressed', hexToRGBA(B50, 0.7)),
77
+ color: "var(--ds-text-mediumEmphasis, ".concat(B400, ")"),
78
+ backgroundColor: "var(--ds-background-subtleNeutral-pressed, ".concat(hexToRGBA(B50, 0.7), ")"),
80
79
  boxShadow: ''
81
80
  },
82
81
  default: {
83
- color: token('color.text.mediumEmphasis', N600),
82
+ color: "var(--ds-text-mediumEmphasis, ".concat(N600, ")"),
84
83
  backgroundColor: 'transparent',
85
84
  boxShadow: ''
86
85
  },
87
86
  focus: {
88
- color: token('color.text.mediumEmphasis', N600),
87
+ color: "var(--ds-text-mediumEmphasis, ".concat(N600, ")"),
89
88
  backgroundColor: '',
90
- boxShadow: "0 0 0 2px ".concat(token('color.border.focus', B200))
89
+ boxShadow: "0 0 0 2px ".concat("var(--ds-border-focus, ".concat(B200, ")"))
91
90
  },
92
91
  hover: {
93
- color: token('color.text.mediumEmphasis', B400),
94
- backgroundColor: token('color.background.subtleNeutral.hover', hexToRGBA(B50, 0.9)),
92
+ color: "var(--ds-text-mediumEmphasis, ".concat(B400, ")"),
93
+ backgroundColor: "var(--ds-background-subtleNeutral-hover, ".concat(hexToRGBA(B50, 0.9), ")"),
95
94
  boxShadow: ''
96
95
  },
97
96
  selected: {
98
- color: token('color.text.mediumEmphasis', B400),
99
- backgroundColor: token('color.background.selected.resting', ''),
97
+ color: "var(--ds-text-mediumEmphasis, ".concat(B400, ")"),
98
+ backgroundColor: "var(--ds-background-selected-resting)",
100
99
  boxShadow: '',
101
- borderColor: token('color.iconBorder.brand', B400),
102
- bordorBottom: "4px solid ".concat(token('color.iconBorder.brand', B400))
100
+ borderColor: "var(--ds-iconBorder-brand, ".concat(B400, ")"),
101
+ bordorBottom: "4px solid ".concat("var(--ds-iconBorder-brand, ".concat(B400, ")"))
103
102
  }
104
103
  },
105
104
  search: {
106
105
  default: {
107
- backgroundColor: token('color.background.default', N0),
108
- color: token('color.text.lowEmphasis', N200),
109
- borderColor: token('color.border.neutral', N40)
106
+ backgroundColor: "var(--ds-background-default, ".concat(N0, ")"),
107
+ color: "var(--ds-text-lowEmphasis, ".concat(N200, ")"),
108
+ borderColor: "var(--ds-border-neutral, ".concat(N40, ")")
110
109
  },
111
110
  focus: {
112
- borderColor: token('color.border.focus', B200)
111
+ borderColor: "var(--ds-border-focus, ".concat(B200, ")")
113
112
  },
114
113
  hover: {
115
- color: token('color.text.brand', B400),
116
- backgroundColor: token('color.background.default', hexToRGBA(B50, 0.9))
114
+ color: "var(--ds-text-brand, ".concat(B400, ")"),
115
+ backgroundColor: "var(--ds-background-default, ".concat(hexToRGBA(B50, 0.9), ")")
117
116
  }
118
117
  },
119
118
  skeleton: {
120
- backgroundColor: token('color.background.subtleNeutral.resting', N20),
119
+ backgroundColor: "var(--ds-background-subtleNeutral-resting, ".concat(N20, ")"),
121
120
  opacity: 1
122
121
  }
123
122
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "1.2.1",
3
+ "version": "2.0.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AtlassianNavigationProps } from './types';
2
3
  export declare const AtlassianNavigation: (props: AtlassianNavigationProps) => JSX.Element;
3
4
  export default AtlassianNavigation;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { NavigationSkeletonProps } from './types';
2
3
  export declare const NavigationSkeleton: ({ primaryItemsCount, secondaryItemsCount, theme, showSiteName, shouldShowSearch, }: NavigationSkeletonProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { BadgeProps } from './types';
2
3
  export declare const BadgeContainer: (props: BadgeProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CreateProps } from './types';
2
3
  export declare const Create: ({ onClick, text, buttonTooltip, iconButtonTooltip, testId, }: CreateProps) => JSX.Element;
3
4
  export default Create;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const CreateSkeleton: () => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { IconButtonSkeletonProps } from './types';
2
3
  export declare const IconButtonSkeleton: (props: IconButtonSkeletonProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { PrimaryButtonSkeletonProps } from './types';
2
3
  export declare const PrimaryButtonSkeleton: (props: PrimaryButtonSkeletonProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { NavigationTheme } from '../../theme';
2
3
  import { PrimaryItemsContainerProps } from './types';
3
4
  export declare const PrimaryItemsContainer: ({ moreLabel, items, create: Create, theme, testId, }: PrimaryItemsContainerProps & {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { PrimaryItemsContainerSkeletonProps } from './types';
2
3
  export declare const PrimaryItemsContainerSkeleton: ({ count, }: PrimaryItemsContainerSkeletonProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CustomProductHomeProps } from './types';
2
3
  declare const CustomProductHome: (props: CustomProductHomeProps) => JSX.Element;
3
4
  export default CustomProductHome;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ProductHomeProps } from './types';
2
3
  declare const ProductHome: ({ icon: Icon, logo: Logo, siteTitle, onClick, href, onMouseDown, testId, logoMaxWidth, ...rest }: ProductHomeProps) => JSX.Element;
3
4
  export default ProductHome;
@@ -1,4 +1,5 @@
1
1
  /** @jsx jsx */
2
+ /// <reference types="react" />
2
3
  export declare const ProductHomeSkeleton: ({ showSiteName, }: {
3
4
  showSiteName: boolean;
4
5
  }) => JSX.Element;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const ProfileSkeleton: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SearchProps } from './types';
2
3
  export declare const Search: (props: SearchProps) => JSX.Element;
3
4
  export default Search;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const SearchSkeleton: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SignInProps } from './types';
2
3
  export declare const SignIn: (props: SignInProps) => JSX.Element;
3
4
  export default SignIn;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const SignInSkeleton: () => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SkeletonCreateButtonProps } from './types';
2
3
  export declare const SkeletonCreateButton: ({ text, testId, }: SkeletonCreateButtonProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SkeletonIconButtonProps } from './types';
2
3
  export declare const SkeletonIconButton: ({ children, testId, }: SkeletonIconButtonProps) => JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { SkeletonPrimaryButtonProps } from './types';
2
3
  export declare const SkeletonPrimaryButton: ({ isDropdownButton, isHighlighted, text, children, testId, }: SkeletonPrimaryButtonProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const SkeletonHelpButton: ({ label }: {
2
3
  label: string;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const SkeletonNotificationButton: ({ label, }: {
2
3
  label: string;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const SkeletonSettingsButton: ({ label }: {
2
3
  label: string;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const SkeletonSwitcherButton: ({ label }: {
2
3
  label: string;
3
4
  }) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "1.2.1",
3
+ "version": "2.0.1",
4
4
  "description": "A horizontal navigation component for Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -27,15 +27,15 @@
27
27
  "@atlaskit/button": "^16.0.0",
28
28
  "@atlaskit/icon": "^21.9.0",
29
29
  "@atlaskit/logo": "*",
30
- "@atlaskit/popup": "^1.1.0",
30
+ "@atlaskit/popup": "^1.2.0",
31
31
  "@atlaskit/theme": "^12.0.0",
32
- "@atlaskit/tokens": "^0.3.0",
32
+ "@atlaskit/tokens": "^0.4.0",
33
33
  "@atlaskit/tooltip": "^17.5.0",
34
34
  "@atlaskit/width-detector": "^3.0.0",
35
35
  "@babel/runtime": "^7.0.0",
36
36
  "@emotion/core": "^10.0.9",
37
37
  "chromatism": "^2.6.0",
38
- "lodash": "^4.17.15"
38
+ "lodash": "^4.17.21"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "react": "^16.8.0"
@@ -58,7 +58,7 @@
58
58
  "jest-axe": "^4.0.0",
59
59
  "jest-emotion": "^10.0.32",
60
60
  "react": "^16.8.0",
61
- "react-intl": "^2.6.0",
61
+ "react-intl-next": "npm:react-intl@^5.18.1",
62
62
  "typescript": "3.9.6"
63
63
  },
64
64
  "techstack": {