@atlaskit/atlassian-navigation 5.3.9 → 5.3.11
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 +19 -2
- package/afm-volt/tsconfig.json +10 -1
- package/dist/cjs/components/ProductHome/product-home.js +7 -12
- package/dist/cjs/theme/theme-generator.js +4 -7
- package/dist/es2019/components/ProductHome/product-home.js +8 -12
- package/dist/es2019/theme/theme-generator.js +4 -5
- package/dist/esm/components/ProductHome/product-home.js +8 -12
- package/dist/esm/theme/theme-generator.js +4 -5
- package/dist/types/components/Help/index.d.ts +1 -1
- package/dist/types/components/IconButton/index.d.ts +3 -3
- package/dist/types/components/IconButton/types.d.ts +0 -1
- package/dist/types/components/PrimaryButton/index.d.ts +5 -6
- package/dist/types/components/PrimaryDropdownButton/index.d.ts +3 -4
- package/dist/types/components/PrimaryDropdownButton/types.d.ts +0 -1
- package/dist/types/components/PrimaryItemsContainer/skeleton.d.ts +0 -1
- package/dist/types/components/ProductHome/utils.d.ts +1 -1
- package/dist/types/components/Profile/index.d.ts +3 -3
- package/dist/types/theme/theme-provider.d.ts +0 -1
- package/dist/types-ts4.5/components/Help/index.d.ts +1 -1
- package/dist/types-ts4.5/components/IconButton/index.d.ts +3 -3
- package/dist/types-ts4.5/components/IconButton/types.d.ts +0 -1
- package/dist/types-ts4.5/components/PrimaryButton/index.d.ts +5 -6
- package/dist/types-ts4.5/components/PrimaryDropdownButton/index.d.ts +3 -4
- package/dist/types-ts4.5/components/PrimaryDropdownButton/types.d.ts +0 -1
- package/dist/types-ts4.5/components/PrimaryItemsContainer/skeleton.d.ts +0 -1
- package/dist/types-ts4.5/components/ProductHome/utils.d.ts +1 -1
- package/dist/types-ts4.5/components/Profile/index.d.ts +3 -3
- package/dist/types-ts4.5/theme/theme-provider.d.ts +0 -1
- package/package.json +8 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 5.3.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2af42ad93c3e0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2af42ad93c3e0) -
|
|
8
|
+
Internal changes to use tokens for border radius.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 5.3.10
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`0c3ef91864885`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0c3ef91864885) -
|
|
16
|
+
Fixes a bug where when no custom theming preferences are set, `iconColor` and `textColor` still
|
|
17
|
+
had colors set, overriding default logo colors and causing bugs with some logos. This change was
|
|
18
|
+
previously tested behind a feature flag.
|
|
19
|
+
|
|
3
20
|
## 5.3.9
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -12,7 +29,7 @@
|
|
|
12
29
|
|
|
13
30
|
- [#185231](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/185231)
|
|
14
31
|
[`8cd7b52d423d1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8cd7b52d423d1) -
|
|
15
|
-
Internal changes resulting from update to
|
|
32
|
+
Internal changes resulting from update to `@atlaskit/navigation-system`
|
|
16
33
|
- Updated dependencies
|
|
17
34
|
|
|
18
35
|
## 5.3.7
|
|
@@ -44,7 +61,7 @@
|
|
|
44
61
|
|
|
45
62
|
- [#174616](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/174616)
|
|
46
63
|
[`ee906c44a058e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ee906c44a058e) -
|
|
47
|
-
Internal refactors to
|
|
64
|
+
Internal refactors to accommodate for platform package rename.
|
|
48
65
|
- Updated dependencies
|
|
49
66
|
|
|
50
67
|
## 5.3.3
|
package/afm-volt/tsconfig.json
CHANGED
|
@@ -14,7 +14,13 @@
|
|
|
14
14
|
"exclude": [
|
|
15
15
|
"../src/**/__tests__/*",
|
|
16
16
|
"../src/**/*.test.*",
|
|
17
|
-
"../src/**/test.*"
|
|
17
|
+
"../src/**/test.*",
|
|
18
|
+
"../src/**/examples.*",
|
|
19
|
+
"../src/**/examples/*",
|
|
20
|
+
"../src/**/examples/**/*",
|
|
21
|
+
"../src/**/*.stories.*",
|
|
22
|
+
"../src/**/stories/*",
|
|
23
|
+
"../src/**/stories/**/*"
|
|
18
24
|
],
|
|
19
25
|
"references": [
|
|
20
26
|
{
|
|
@@ -38,6 +44,9 @@
|
|
|
38
44
|
{
|
|
39
45
|
"path": "../../popup/afm-volt/tsconfig.json"
|
|
40
46
|
},
|
|
47
|
+
{
|
|
48
|
+
"path": "../../primitives/afm-volt/tsconfig.json"
|
|
49
|
+
},
|
|
41
50
|
{
|
|
42
51
|
"path": "../../theme/afm-volt/tsconfig.json"
|
|
43
52
|
},
|
|
@@ -10,7 +10,6 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _react = require("react");
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
13
|
var _primitives = require("@atlaskit/primitives");
|
|
15
14
|
var _colors = require("@atlaskit/theme/colors");
|
|
16
15
|
var _constants = require("../../common/constants");
|
|
@@ -235,18 +234,14 @@ var ProductHome = function ProductHome(_ref2) {
|
|
|
235
234
|
rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded2);
|
|
236
235
|
var theme = (0, _theme.useTheme)();
|
|
237
236
|
var primaryButton = theme.mode.primaryButton;
|
|
238
|
-
// After the brand refresh, iconColor and textColor should be set to 'undefined' to allow the original
|
|
239
|
-
// multi-color logo tile colors to be visible, rather than a hardcoded blue.
|
|
240
237
|
var _theme$mode$productHo4 = theme.mode.productHome,
|
|
241
238
|
_theme$mode$productHo5 = _theme$mode$productHo4.iconColor,
|
|
242
|
-
iconColor = _theme$mode$productHo5 === void 0 ?
|
|
239
|
+
iconColor = _theme$mode$productHo5 === void 0 ? undefined : _theme$mode$productHo5,
|
|
243
240
|
_theme$mode$productHo6 = _theme$mode$productHo4.textColor,
|
|
244
|
-
textColor = _theme$mode$productHo6 === void 0 ?
|
|
241
|
+
textColor = _theme$mode$productHo6 === void 0 ? undefined : _theme$mode$productHo6;
|
|
245
242
|
|
|
246
|
-
//
|
|
247
|
-
|
|
248
|
-
// values and override them to undefined.
|
|
249
|
-
if (iconColor === '#357DE8' && textColor === "var(--ds-text, ".concat(_colors.N700, ")") && (0, _platformFeatureFlags.fg)('platform-team25-app-icon-tiles')) {
|
|
243
|
+
// If the theme returns the default Atlassian theme, rely on the Logo default behaviour instead
|
|
244
|
+
if (iconColor === '#357DE8' && textColor === "var(--ds-text, ".concat(_colors.N700, ")")) {
|
|
250
245
|
iconColor = undefined;
|
|
251
246
|
textColor = undefined;
|
|
252
247
|
}
|
|
@@ -276,16 +271,16 @@ var ProductHome = function ProductHome(_ref2) {
|
|
|
276
271
|
textColor: textColor
|
|
277
272
|
// @ts-ignore - The new icons don't have an appearance prop at the moment
|
|
278
273
|
,
|
|
279
|
-
appearance:
|
|
274
|
+
appearance: iconColor || textColor ? undefined : 'brand'
|
|
280
275
|
})), (0, _react2.jsx)("div", {
|
|
281
276
|
css: [customMaxHeightStyles, productIconStyles],
|
|
282
277
|
"data-testid": testId && "".concat(testId, "-icon")
|
|
283
278
|
}, (0, _react2.jsx)(Icon, {
|
|
284
279
|
iconColor: iconColor,
|
|
285
|
-
size:
|
|
280
|
+
size: 'small'
|
|
286
281
|
// @ts-ignore - The new icons don't have an appearance prop at the moment
|
|
287
282
|
,
|
|
288
|
-
appearance:
|
|
283
|
+
appearance: iconColor || textColor ? undefined : 'brand'
|
|
289
284
|
}))), siteTitle && (0, _react2.jsx)("div", {
|
|
290
285
|
style: {
|
|
291
286
|
borderRight: theme.mode.productHome.borderRight
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.generateTheme = void 0;
|
|
9
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
-
var
|
|
11
|
-
var _defaultTheme = _interopRequireWildcard(require("./default-theme"));
|
|
9
|
+
var _defaultTheme = require("./default-theme");
|
|
12
10
|
var _themeHelpers = require("./theme-helpers");
|
|
13
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
14
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
13
|
var generateOpacityValue = function generateOpacityValue(color) {
|
|
@@ -78,7 +75,7 @@ var generateTheme = exports.generateTheme = function generateTheme(themeColors)
|
|
|
78
75
|
color: color
|
|
79
76
|
});
|
|
80
77
|
if (name === _defaultTheme.DEFAULT_THEME_NAME) {
|
|
81
|
-
return
|
|
78
|
+
return _defaultTheme.defaultThemeBrandRefresh;
|
|
82
79
|
}
|
|
83
80
|
return {
|
|
84
81
|
mode: {
|
|
@@ -91,8 +88,8 @@ var generateTheme = exports.generateTheme = function generateTheme(themeColors)
|
|
|
91
88
|
},
|
|
92
89
|
productHome: {
|
|
93
90
|
color: color,
|
|
94
|
-
iconColor:
|
|
95
|
-
textColor:
|
|
91
|
+
iconColor: color,
|
|
92
|
+
textColor: color,
|
|
96
93
|
backgroundColor: highlightColor,
|
|
97
94
|
borderRight: "1px solid ".concat((0, _themeHelpers.hexToRGBA)(color, 0.5))
|
|
98
95
|
},
|
|
@@ -7,7 +7,7 @@ import { Fragment } from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
12
12
|
import { Inline, Text } from '@atlaskit/primitives';
|
|
13
13
|
import { N700 } from '@atlaskit/theme/colors';
|
|
@@ -245,17 +245,13 @@ const ProductHome = ({
|
|
|
245
245
|
}) => {
|
|
246
246
|
const theme = useTheme();
|
|
247
247
|
const primaryButton = theme.mode.primaryButton;
|
|
248
|
-
// After the brand refresh, iconColor and textColor should be set to 'undefined' to allow the original
|
|
249
|
-
// multi-color logo tile colors to be visible, rather than a hardcoded blue.
|
|
250
248
|
let {
|
|
251
|
-
iconColor =
|
|
252
|
-
textColor =
|
|
249
|
+
iconColor = undefined,
|
|
250
|
+
textColor = undefined
|
|
253
251
|
} = theme.mode.productHome;
|
|
254
252
|
|
|
255
|
-
//
|
|
256
|
-
|
|
257
|
-
// values and override them to undefined.
|
|
258
|
-
if (iconColor === '#357DE8' && textColor === `var(--ds-text, ${N700})` && fg('platform-team25-app-icon-tiles')) {
|
|
253
|
+
// If the theme returns the default Atlassian theme, rely on the Logo default behaviour instead
|
|
254
|
+
if (iconColor === '#357DE8' && textColor === `var(--ds-text, ${N700})`) {
|
|
259
255
|
iconColor = undefined;
|
|
260
256
|
textColor = undefined;
|
|
261
257
|
}
|
|
@@ -296,16 +292,16 @@ const ProductHome = ({
|
|
|
296
292
|
textColor: textColor
|
|
297
293
|
// @ts-ignore - The new icons don't have an appearance prop at the moment
|
|
298
294
|
,
|
|
299
|
-
appearance:
|
|
295
|
+
appearance: iconColor || textColor ? undefined : 'brand'
|
|
300
296
|
})), jsx("div", {
|
|
301
297
|
css: [customMaxHeightStyles, productIconStyles],
|
|
302
298
|
"data-testid": testId && `${testId}-icon`
|
|
303
299
|
}, jsx(Icon, {
|
|
304
300
|
iconColor: iconColor,
|
|
305
|
-
size:
|
|
301
|
+
size: 'small'
|
|
306
302
|
// @ts-ignore - The new icons don't have an appearance prop at the moment
|
|
307
303
|
,
|
|
308
|
-
appearance:
|
|
304
|
+
appearance: iconColor || textColor ? undefined : 'brand'
|
|
309
305
|
}))), siteTitle && jsx("div", {
|
|
310
306
|
style: {
|
|
311
307
|
borderRight: theme.mode.productHome.borderRight
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import defaultTheme, { DEFAULT_THEME_NAME, defaultThemeBrandRefresh } from './default-theme';
|
|
1
|
+
import { DEFAULT_THEME_NAME, defaultThemeBrandRefresh } from './default-theme';
|
|
3
2
|
import { generateTextColor, getBoxShadow, getContrastColor, hexToRGBA } from './theme-helpers';
|
|
4
3
|
const generateOpacityValue = color => color === '#000000' ? 0.3 : 0.6;
|
|
5
4
|
|
|
@@ -67,7 +66,7 @@ export const generateTheme = themeColors => {
|
|
|
67
66
|
color
|
|
68
67
|
};
|
|
69
68
|
if (name === DEFAULT_THEME_NAME) {
|
|
70
|
-
return
|
|
69
|
+
return defaultThemeBrandRefresh;
|
|
71
70
|
}
|
|
72
71
|
return {
|
|
73
72
|
mode: {
|
|
@@ -80,8 +79,8 @@ export const generateTheme = themeColors => {
|
|
|
80
79
|
},
|
|
81
80
|
productHome: {
|
|
82
81
|
color,
|
|
83
|
-
iconColor:
|
|
84
|
-
textColor:
|
|
82
|
+
iconColor: color,
|
|
83
|
+
textColor: color,
|
|
85
84
|
backgroundColor: highlightColor,
|
|
86
85
|
borderRight: `1px solid ${hexToRGBA(color, 0.5)}`
|
|
87
86
|
},
|
|
@@ -11,7 +11,7 @@ import { Fragment } from 'react';
|
|
|
11
11
|
|
|
12
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
13
|
import { css, jsx } from '@emotion/react';
|
|
14
|
-
|
|
14
|
+
|
|
15
15
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
16
16
|
import { Inline, Text } from '@atlaskit/primitives';
|
|
17
17
|
import { N700 } from '@atlaskit/theme/colors';
|
|
@@ -229,18 +229,14 @@ var ProductHome = function ProductHome(_ref2) {
|
|
|
229
229
|
rest = _objectWithoutProperties(_ref2, _excluded2);
|
|
230
230
|
var theme = useTheme();
|
|
231
231
|
var primaryButton = theme.mode.primaryButton;
|
|
232
|
-
// After the brand refresh, iconColor and textColor should be set to 'undefined' to allow the original
|
|
233
|
-
// multi-color logo tile colors to be visible, rather than a hardcoded blue.
|
|
234
232
|
var _theme$mode$productHo4 = theme.mode.productHome,
|
|
235
233
|
_theme$mode$productHo5 = _theme$mode$productHo4.iconColor,
|
|
236
|
-
iconColor = _theme$mode$productHo5 === void 0 ?
|
|
234
|
+
iconColor = _theme$mode$productHo5 === void 0 ? undefined : _theme$mode$productHo5,
|
|
237
235
|
_theme$mode$productHo6 = _theme$mode$productHo4.textColor,
|
|
238
|
-
textColor = _theme$mode$productHo6 === void 0 ?
|
|
236
|
+
textColor = _theme$mode$productHo6 === void 0 ? undefined : _theme$mode$productHo6;
|
|
239
237
|
|
|
240
|
-
//
|
|
241
|
-
|
|
242
|
-
// values and override them to undefined.
|
|
243
|
-
if (iconColor === '#357DE8' && textColor === "var(--ds-text, ".concat(N700, ")") && fg('platform-team25-app-icon-tiles')) {
|
|
238
|
+
// If the theme returns the default Atlassian theme, rely on the Logo default behaviour instead
|
|
239
|
+
if (iconColor === '#357DE8' && textColor === "var(--ds-text, ".concat(N700, ")")) {
|
|
244
240
|
iconColor = undefined;
|
|
245
241
|
textColor = undefined;
|
|
246
242
|
}
|
|
@@ -270,16 +266,16 @@ var ProductHome = function ProductHome(_ref2) {
|
|
|
270
266
|
textColor: textColor
|
|
271
267
|
// @ts-ignore - The new icons don't have an appearance prop at the moment
|
|
272
268
|
,
|
|
273
|
-
appearance:
|
|
269
|
+
appearance: iconColor || textColor ? undefined : 'brand'
|
|
274
270
|
})), jsx("div", {
|
|
275
271
|
css: [customMaxHeightStyles, productIconStyles],
|
|
276
272
|
"data-testid": testId && "".concat(testId, "-icon")
|
|
277
273
|
}, jsx(Icon, {
|
|
278
274
|
iconColor: iconColor,
|
|
279
|
-
size:
|
|
275
|
+
size: 'small'
|
|
280
276
|
// @ts-ignore - The new icons don't have an appearance prop at the moment
|
|
281
277
|
,
|
|
282
|
-
appearance:
|
|
278
|
+
appearance: iconColor || textColor ? undefined : 'brand'
|
|
283
279
|
}))), siteTitle && jsx("div", {
|
|
284
280
|
style: {
|
|
285
281
|
borderRight: theme.mode.productHome.borderRight
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
import {
|
|
5
|
-
import defaultTheme, { DEFAULT_THEME_NAME, defaultThemeBrandRefresh } from './default-theme';
|
|
4
|
+
import { DEFAULT_THEME_NAME, defaultThemeBrandRefresh } from './default-theme';
|
|
6
5
|
import { generateTextColor, getBoxShadow, getContrastColor, hexToRGBA } from './theme-helpers';
|
|
7
6
|
var generateOpacityValue = function generateOpacityValue(color) {
|
|
8
7
|
return color === '#000000' ? 0.3 : 0.6;
|
|
@@ -69,7 +68,7 @@ export var generateTheme = function generateTheme(themeColors) {
|
|
|
69
68
|
color: color
|
|
70
69
|
});
|
|
71
70
|
if (name === DEFAULT_THEME_NAME) {
|
|
72
|
-
return
|
|
71
|
+
return defaultThemeBrandRefresh;
|
|
73
72
|
}
|
|
74
73
|
return {
|
|
75
74
|
mode: {
|
|
@@ -82,8 +81,8 @@ export var generateTheme = function generateTheme(themeColors) {
|
|
|
82
81
|
},
|
|
83
82
|
productHome: {
|
|
84
83
|
color: color,
|
|
85
|
-
iconColor:
|
|
86
|
-
textColor:
|
|
84
|
+
iconColor: color,
|
|
85
|
+
textColor: color,
|
|
87
86
|
backgroundColor: highlightColor,
|
|
88
87
|
borderRight: "1px solid ".concat(hexToRGBA(color, 0.5))
|
|
89
88
|
},
|
|
@@ -8,5 +8,5 @@ import React from 'react';
|
|
|
8
8
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
9
9
|
*/
|
|
10
10
|
export declare const Help: React.ForwardRefExoticComponent<import("../IconButton/types").BaseIconButtonProps & {
|
|
11
|
-
badge?: React.ComponentType<{}
|
|
11
|
+
badge?: React.ComponentType<{}>;
|
|
12
12
|
} & React.RefAttributes<any>>;
|
|
@@ -9,7 +9,7 @@ import React from 'react';
|
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
11
|
export declare const IconButton: React.ForwardRefExoticComponent<import("./types").BaseIconButtonProps & {
|
|
12
|
-
icon:
|
|
13
|
-
theme?:
|
|
14
|
-
isTooltipAnnouncementDisabled?: boolean
|
|
12
|
+
icon: import("@atlaskit/button/custom-theme-button").CustomThemeButtonProps["iconBefore"];
|
|
13
|
+
theme?: import("@atlaskit/button/custom-theme-button").CustomThemeButtonProps["theme"];
|
|
14
|
+
isTooltipAnnouncementDisabled?: boolean;
|
|
15
15
|
} & React.RefAttributes<HTMLElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* __Primary button__
|
|
4
3
|
*
|
|
@@ -9,9 +8,9 @@
|
|
|
9
8
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
10
9
|
*/
|
|
11
10
|
export declare const PrimaryButton: import("react").ForwardRefExoticComponent<Omit<import("@atlaskit/button/custom-theme-button").CustomThemeButtonProps, "appearance" | "onClick"> & {
|
|
12
|
-
component?: import("react").ComponentType<import("react").AllHTMLAttributes<HTMLElement>> | import("react").ElementType<any
|
|
13
|
-
isHighlighted?: boolean
|
|
14
|
-
testId?: string
|
|
15
|
-
tooltip?:
|
|
16
|
-
onClick?: (
|
|
11
|
+
component?: import("react").ComponentType<import("react").AllHTMLAttributes<HTMLElement>> | import("react").ElementType<any>;
|
|
12
|
+
isHighlighted?: boolean;
|
|
13
|
+
testId?: string;
|
|
14
|
+
tooltip?: React.ReactNode;
|
|
15
|
+
onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: any) => void;
|
|
17
16
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* __Primary dropdown button__
|
|
4
3
|
*
|
|
@@ -9,7 +8,7 @@
|
|
|
9
8
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
10
9
|
*/
|
|
11
10
|
export declare const PrimaryDropdownButton: import("react").ForwardRefExoticComponent<Omit<import("../..").PrimaryButtonProps, "iconAfter"> & {
|
|
12
|
-
isHighlighted?: boolean
|
|
13
|
-
testId?: string
|
|
14
|
-
tooltip?:
|
|
11
|
+
isHighlighted?: boolean;
|
|
12
|
+
testId?: string;
|
|
13
|
+
tooltip?: React.ReactNode;
|
|
15
14
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { jsx } from '@emotion/react';
|
|
3
2
|
import { type PrimaryItemsContainerSkeletonProps } from './types';
|
|
4
3
|
export declare const PrimaryItemsContainerSkeleton: import("react").MemoExoticComponent<({ count }: PrimaryItemsContainerSkeletonProps) => jsx.JSX.Element>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getTag: (onClick?: (
|
|
1
|
+
export declare const getTag: (onClick?: (arg: any) => void, href?: string) => "button" | "a" | "div";
|
|
@@ -10,9 +10,9 @@ import { type ProfileProps } from './types';
|
|
|
10
10
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
11
11
|
*/
|
|
12
12
|
export declare const Profile: React.ForwardRefExoticComponent<import("../IconButton/types").BaseIconButtonProps & {
|
|
13
|
-
icon:
|
|
14
|
-
theme?:
|
|
15
|
-
isTooltipAnnouncementDisabled?: boolean
|
|
13
|
+
icon: import("@atlaskit/button").CustomThemeButtonProps["iconBefore"];
|
|
14
|
+
theme?: import("@atlaskit/button").CustomThemeButtonProps["theme"];
|
|
15
|
+
isTooltipAnnouncementDisabled?: boolean;
|
|
16
16
|
} & React.RefAttributes<HTMLElement>>;
|
|
17
17
|
declare const _default: (props: ProfileProps) => void;
|
|
18
18
|
export default _default;
|
|
@@ -8,5 +8,5 @@ import React from 'react';
|
|
|
8
8
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
9
9
|
*/
|
|
10
10
|
export declare const Help: React.ForwardRefExoticComponent<import("../IconButton/types").BaseIconButtonProps & {
|
|
11
|
-
badge?: React.ComponentType<{}
|
|
11
|
+
badge?: React.ComponentType<{}>;
|
|
12
12
|
} & React.RefAttributes<any>>;
|
|
@@ -9,7 +9,7 @@ import React from 'react';
|
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
11
|
export declare const IconButton: React.ForwardRefExoticComponent<import("./types").BaseIconButtonProps & {
|
|
12
|
-
icon:
|
|
13
|
-
theme?:
|
|
14
|
-
isTooltipAnnouncementDisabled?: boolean
|
|
12
|
+
icon: import("@atlaskit/button/custom-theme-button").CustomThemeButtonProps["iconBefore"];
|
|
13
|
+
theme?: import("@atlaskit/button/custom-theme-button").CustomThemeButtonProps["theme"];
|
|
14
|
+
isTooltipAnnouncementDisabled?: boolean;
|
|
15
15
|
} & React.RefAttributes<HTMLElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* __Primary button__
|
|
4
3
|
*
|
|
@@ -9,9 +8,9 @@
|
|
|
9
8
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
10
9
|
*/
|
|
11
10
|
export declare const PrimaryButton: import("react").ForwardRefExoticComponent<Omit<import("@atlaskit/button/custom-theme-button").CustomThemeButtonProps, "appearance" | "onClick"> & {
|
|
12
|
-
component?: import("react").ComponentType<import("react").AllHTMLAttributes<HTMLElement>> | import("react").ElementType<any
|
|
13
|
-
isHighlighted?: boolean
|
|
14
|
-
testId?: string
|
|
15
|
-
tooltip?:
|
|
16
|
-
onClick?: (
|
|
11
|
+
component?: import("react").ComponentType<import("react").AllHTMLAttributes<HTMLElement>> | import("react").ElementType<any>;
|
|
12
|
+
isHighlighted?: boolean;
|
|
13
|
+
testId?: string;
|
|
14
|
+
tooltip?: React.ReactNode;
|
|
15
|
+
onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: any) => void;
|
|
17
16
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* __Primary dropdown button__
|
|
4
3
|
*
|
|
@@ -9,7 +8,7 @@
|
|
|
9
8
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
10
9
|
*/
|
|
11
10
|
export declare const PrimaryDropdownButton: import("react").ForwardRefExoticComponent<Omit<import("../..").PrimaryButtonProps, "iconAfter"> & {
|
|
12
|
-
isHighlighted?: boolean
|
|
13
|
-
testId?: string
|
|
14
|
-
tooltip?:
|
|
11
|
+
isHighlighted?: boolean;
|
|
12
|
+
testId?: string;
|
|
13
|
+
tooltip?: React.ReactNode;
|
|
15
14
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { jsx } from '@emotion/react';
|
|
3
2
|
import { type PrimaryItemsContainerSkeletonProps } from './types';
|
|
4
3
|
export declare const PrimaryItemsContainerSkeleton: import("react").MemoExoticComponent<({ count }: PrimaryItemsContainerSkeletonProps) => jsx.JSX.Element>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getTag: (onClick?: (
|
|
1
|
+
export declare const getTag: (onClick?: (arg: any) => void, href?: string) => "button" | "a" | "div";
|
|
@@ -10,9 +10,9 @@ import { type ProfileProps } from './types';
|
|
|
10
10
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
11
11
|
*/
|
|
12
12
|
export declare const Profile: React.ForwardRefExoticComponent<import("../IconButton/types").BaseIconButtonProps & {
|
|
13
|
-
icon:
|
|
14
|
-
theme?:
|
|
15
|
-
isTooltipAnnouncementDisabled?: boolean
|
|
13
|
+
icon: import("@atlaskit/button").CustomThemeButtonProps["iconBefore"];
|
|
14
|
+
theme?: import("@atlaskit/button").CustomThemeButtonProps["theme"];
|
|
15
|
+
isTooltipAnnouncementDisabled?: boolean;
|
|
16
16
|
} & React.RefAttributes<HTMLElement>>;
|
|
17
17
|
declare const _default: (props: ProfileProps) => void;
|
|
18
18
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.11",
|
|
4
4
|
"description": "A horizontal navigation component for Atlassian apps.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
48
|
-
"@atlaskit/button": "^23.
|
|
48
|
+
"@atlaskit/button": "^23.4.0",
|
|
49
49
|
"@atlaskit/ds-lib": "^5.0.0",
|
|
50
|
-
"@atlaskit/icon": "^27.
|
|
51
|
-
"@atlaskit/logo": "^19.
|
|
50
|
+
"@atlaskit/icon": "^27.12.0",
|
|
51
|
+
"@atlaskit/logo": "^19.7.0",
|
|
52
52
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
53
53
|
"@atlaskit/popup": "^4.3.0",
|
|
54
54
|
"@atlaskit/primitives": "^14.11.0",
|
|
@@ -75,16 +75,15 @@
|
|
|
75
75
|
"@atlaskit/docs": "^11.0.0",
|
|
76
76
|
"@atlaskit/drawer": "^11.0.0",
|
|
77
77
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
78
|
-
"@atlaskit/form": "^12.
|
|
79
|
-
"@atlaskit/menu": "^8.
|
|
78
|
+
"@atlaskit/form": "^12.1.0",
|
|
79
|
+
"@atlaskit/menu": "^8.3.0",
|
|
80
80
|
"@atlaskit/notification-indicator": "^10.0.0",
|
|
81
81
|
"@atlaskit/notification-log-client": "^6.2.0",
|
|
82
82
|
"@atlaskit/section-message": "^8.5.0",
|
|
83
83
|
"@atlaskit/spinner": "^19.0.0",
|
|
84
|
-
"@atlaskit/temp-nav-app-icons": "^0.9.0",
|
|
85
84
|
"@atlaskit/textfield": "^8.0.0",
|
|
86
85
|
"@atlaskit/visual-regression": "workspace:^",
|
|
87
|
-
"@atlassian/switcher": "^38.
|
|
86
|
+
"@atlassian/switcher": "^38.5.0",
|
|
88
87
|
"@atlassian/switcher-test-utils": "^7.1.0",
|
|
89
88
|
"@testing-library/react": "^13.4.0",
|
|
90
89
|
"@testing-library/react-hooks": "^8.0.1",
|
|
@@ -92,8 +91,7 @@
|
|
|
92
91
|
"jest-emotion": "^10.0.32",
|
|
93
92
|
"react": "^18.2.0",
|
|
94
93
|
"react-dom": "^18.2.0",
|
|
95
|
-
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
96
|
-
"typescript": "~5.4.2"
|
|
94
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
97
95
|
},
|
|
98
96
|
"techstack": {
|
|
99
97
|
"@atlassian/frontend": {
|