@atlaskit/atlassian-navigation 2.1.1 → 2.1.2

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/atlassian-navigation
2
2
 
3
+ ## 2.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ac9343c3ed4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ac9343c3ed4) - Replaces usage of deprecated design tokens. No visual or functional changes
8
+ - [`62edf20ab1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62edf20ab1e) - Migrates all usage of brand tokens to either selected or information tokens. This change is purely for semantic reasons, there are no visual or behavioural changes.
9
+ - Updated dependencies
10
+
3
11
  ## 2.1.1
4
12
 
5
13
  ### Patch Changes
@@ -51,7 +51,7 @@ var defaultTheme = {
51
51
  },
52
52
  focus: {
53
53
  color: "var(--ds-text-subtle, ".concat(_colors.N600, ")"),
54
- backgroundColor: "var(--ds-background-brand-hovered, ".concat((0, _themeHelpers.hexToRGBA)(_colors.B50, 0.5), ")"),
54
+ backgroundColor: "var(--ds-background-selected-hovered, ".concat((0, _themeHelpers.hexToRGBA)(_colors.B50, 0.5), ")"),
55
55
  boxShadow: "0 0 0 2px ".concat("var(--ds-border-focused, ".concat(_colors.B200, ")"))
56
56
  },
57
57
  hover: {
@@ -60,8 +60,8 @@ var defaultTheme = {
60
60
  boxShadow: ''
61
61
  },
62
62
  selected: {
63
- color: "var(--ds-text-brand)",
64
- backgroundColor: "var(--ds-background-brand)",
63
+ color: "var(--ds-text-selected)",
64
+ backgroundColor: "var(--ds-background-selected)",
65
65
  boxShadow: ''
66
66
  }
67
67
  },
@@ -103,11 +103,11 @@ var defaultTheme = {
103
103
  boxShadow: ''
104
104
  },
105
105
  selected: {
106
- color: "var(--ds-text-subtle, ".concat(_colors.B400, ")"),
107
- backgroundColor: "var(--ds-background-brand)",
106
+ color: "var(--ds-text-selected, ".concat(_colors.B400, ")"),
107
+ backgroundColor: "var(--ds-background-selected)",
108
108
  boxShadow: '',
109
- borderColor: "var(--ds-border-brand, ".concat(_colors.B400, ")"),
110
- bordorBottom: "4px solid ".concat("var(--ds-border-brand, ".concat(_colors.B400, ")"))
109
+ borderColor: "var(--ds-border-selected, ".concat(_colors.B400, ")"),
110
+ bordorBottom: "4px solid ".concat("var(--ds-border-selected, ".concat(_colors.B400, ")"))
111
111
  }
112
112
  },
113
113
  search: {
@@ -120,7 +120,7 @@ var defaultTheme = {
120
120
  borderColor: "var(--ds-border-focused, ".concat(_colors.B200, ")")
121
121
  },
122
122
  hover: {
123
- color: "var(--ds-text-brand, ".concat(_colors.B400, ")"),
123
+ color: "var(--ds-text-selected, ".concat(_colors.B400, ")"),
124
124
  backgroundColor: "var(--ds-surface, ".concat((0, _themeHelpers.hexToRGBA)(_colors.B50, 0.9), ")")
125
125
  }
126
126
  },
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "sideEffects": false
5
5
  }
@@ -42,7 +42,7 @@ const defaultTheme = {
42
42
  },
43
43
  focus: {
44
44
  color: `var(--ds-text-subtle, ${N600})`,
45
- backgroundColor: `var(--ds-background-brand-hovered, ${hexToRGBA(B50, 0.5)})`,
45
+ backgroundColor: `var(--ds-background-selected-hovered, ${hexToRGBA(B50, 0.5)})`,
46
46
  boxShadow: `0 0 0 2px ${`var(--ds-border-focused, ${B200})`}`
47
47
  },
48
48
  hover: {
@@ -51,8 +51,8 @@ const defaultTheme = {
51
51
  boxShadow: ''
52
52
  },
53
53
  selected: {
54
- color: "var(--ds-text-brand)",
55
- backgroundColor: "var(--ds-background-brand)",
54
+ color: "var(--ds-text-selected)",
55
+ backgroundColor: "var(--ds-background-selected)",
56
56
  boxShadow: ''
57
57
  }
58
58
  },
@@ -94,11 +94,11 @@ const defaultTheme = {
94
94
  boxShadow: ''
95
95
  },
96
96
  selected: {
97
- color: `var(--ds-text-subtle, ${B400})`,
98
- backgroundColor: "var(--ds-background-brand)",
97
+ color: `var(--ds-text-selected, ${B400})`,
98
+ backgroundColor: "var(--ds-background-selected)",
99
99
  boxShadow: '',
100
- borderColor: `var(--ds-border-brand, ${B400})`,
101
- bordorBottom: `4px solid ${`var(--ds-border-brand, ${B400})`}`
100
+ borderColor: `var(--ds-border-selected, ${B400})`,
101
+ bordorBottom: `4px solid ${`var(--ds-border-selected, ${B400})`}`
102
102
  }
103
103
  },
104
104
  search: {
@@ -111,7 +111,7 @@ const defaultTheme = {
111
111
  borderColor: `var(--ds-border-focused, ${B200})`
112
112
  },
113
113
  hover: {
114
- color: `var(--ds-text-brand, ${B400})`,
114
+ color: `var(--ds-text-selected, ${B400})`,
115
115
  backgroundColor: `var(--ds-surface, ${hexToRGBA(B50, 0.9)})`
116
116
  }
117
117
  },
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "sideEffects": false
5
5
  }
@@ -42,7 +42,7 @@ var defaultTheme = {
42
42
  },
43
43
  focus: {
44
44
  color: "var(--ds-text-subtle, ".concat(N600, ")"),
45
- backgroundColor: "var(--ds-background-brand-hovered, ".concat(hexToRGBA(B50, 0.5), ")"),
45
+ backgroundColor: "var(--ds-background-selected-hovered, ".concat(hexToRGBA(B50, 0.5), ")"),
46
46
  boxShadow: "0 0 0 2px ".concat("var(--ds-border-focused, ".concat(B200, ")"))
47
47
  },
48
48
  hover: {
@@ -51,8 +51,8 @@ var defaultTheme = {
51
51
  boxShadow: ''
52
52
  },
53
53
  selected: {
54
- color: "var(--ds-text-brand)",
55
- backgroundColor: "var(--ds-background-brand)",
54
+ color: "var(--ds-text-selected)",
55
+ backgroundColor: "var(--ds-background-selected)",
56
56
  boxShadow: ''
57
57
  }
58
58
  },
@@ -94,11 +94,11 @@ var defaultTheme = {
94
94
  boxShadow: ''
95
95
  },
96
96
  selected: {
97
- color: "var(--ds-text-subtle, ".concat(B400, ")"),
98
- backgroundColor: "var(--ds-background-brand)",
97
+ color: "var(--ds-text-selected, ".concat(B400, ")"),
98
+ backgroundColor: "var(--ds-background-selected)",
99
99
  boxShadow: '',
100
- borderColor: "var(--ds-border-brand, ".concat(B400, ")"),
101
- bordorBottom: "4px solid ".concat("var(--ds-border-brand, ".concat(B400, ")"))
100
+ borderColor: "var(--ds-border-selected, ".concat(B400, ")"),
101
+ bordorBottom: "4px solid ".concat("var(--ds-border-selected, ".concat(B400, ")"))
102
102
  }
103
103
  },
104
104
  search: {
@@ -111,7 +111,7 @@ var defaultTheme = {
111
111
  borderColor: "var(--ds-border-focused, ".concat(B200, ")")
112
112
  },
113
113
  hover: {
114
- color: "var(--ds-text-brand, ".concat(B400, ")"),
114
+ color: "var(--ds-text-selected, ".concat(B400, ")"),
115
115
  backgroundColor: "var(--ds-surface, ".concat(hexToRGBA(B50, 0.9), ")")
116
116
  }
117
117
  },
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "A horizontal navigation component for Atlassian products.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,9 +29,9 @@
29
29
  "@atlaskit/logo": "*",
30
30
  "@atlaskit/popup": "^1.3.0",
31
31
  "@atlaskit/theme": "^12.1.0",
32
- "@atlaskit/tokens": "^0.7.0",
32
+ "@atlaskit/tokens": "^0.8.0",
33
33
  "@atlaskit/tooltip": "^17.5.0",
34
- "@atlaskit/width-detector": "^3.0.0",
34
+ "@atlaskit/width-detector": "^4.0.0",
35
35
  "@babel/runtime": "^7.0.0",
36
36
  "@emotion/core": "^10.0.9",
37
37
  "chromatism": "^2.6.0",