@atlaskit/atlassian-navigation 4.5.1 → 4.6.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 +18 -0
- package/dist/cjs/skeleton-help-button.js +18 -3
- package/dist/cjs/skeleton-notification-button.js +19 -3
- package/dist/cjs/skeleton-settings-button.js +18 -3
- package/dist/cjs/skeleton-switcher-button.js +20 -3
- package/dist/es2019/skeleton-help-button.js +14 -1
- package/dist/es2019/skeleton-notification-button.js +14 -0
- package/dist/es2019/skeleton-settings-button.js +13 -0
- package/dist/es2019/skeleton-switcher-button.js +16 -1
- package/dist/esm/skeleton-help-button.js +15 -0
- package/dist/esm/skeleton-notification-button.js +16 -0
- package/dist/esm/skeleton-settings-button.js +15 -0
- package/dist/esm/skeleton-switcher-button.js +17 -0
- package/dist/types/skeleton-help-button.d.ts +6 -0
- package/dist/types/skeleton-notification-button.d.ts +7 -0
- package/dist/types/skeleton-settings-button.d.ts +6 -0
- package/dist/types/skeleton-switcher-button.d.ts +6 -0
- package/dist/types-ts4.5/skeleton-help-button.d.ts +6 -0
- package/dist/types-ts4.5/skeleton-notification-button.d.ts +7 -0
- package/dist/types-ts4.5/skeleton-settings-button.d.ts +6 -0
- package/dist/types-ts4.5/skeleton-switcher-button.d.ts +6 -0
- package/package.json +8 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 4.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#134149](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/134149)
|
|
8
|
+
[`9502975197692`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9502975197692) -
|
|
9
|
+
[ux] Providing Nav4 skeleton components for SSR
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 4.5.2
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 4.5.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -4,9 +4,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.SkeletonHelpButton = void 0;
|
|
7
|
+
exports.SkeletonHelpButton = exports.Nav4SkeletonHelpButton = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/
|
|
9
|
+
var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/core/question-circle"));
|
|
10
|
+
var _questionCircle2 = _interopRequireDefault(require("@atlaskit/icon/glyph/question-circle"));
|
|
10
11
|
var _SkeletonIconButton = require("./components/SkeletonIconButton");
|
|
11
12
|
var _theme = require("./theme");
|
|
12
13
|
/**
|
|
@@ -24,8 +25,22 @@ var SkeletonHelpButton = exports.SkeletonHelpButton = function SkeletonHelpButto
|
|
|
24
25
|
label = _ref$label === void 0 ? '' : _ref$label;
|
|
25
26
|
var _useTheme = (0, _theme.useTheme)(),
|
|
26
27
|
navigation = _useTheme.mode.navigation;
|
|
27
|
-
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(
|
|
28
|
+
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(_questionCircle2.default, {
|
|
28
29
|
label: label,
|
|
29
30
|
secondaryColor: navigation.backgroundColor
|
|
30
31
|
}));
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* __Nav 4 skeleton help button__
|
|
36
|
+
*
|
|
37
|
+
* A nav 4 skeleton help button {description}.
|
|
38
|
+
*/
|
|
39
|
+
var Nav4SkeletonHelpButton = exports.Nav4SkeletonHelpButton = function Nav4SkeletonHelpButton(_ref2) {
|
|
40
|
+
var _ref2$label = _ref2.label,
|
|
41
|
+
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
42
|
+
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(_questionCircle.default, {
|
|
43
|
+
label: label,
|
|
44
|
+
color: "var(--ds-icon, #44546F)"
|
|
45
|
+
}));
|
|
31
46
|
};
|
|
@@ -4,9 +4,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.SkeletonNotificationButton = void 0;
|
|
7
|
+
exports.SkeletonNotificationButton = exports.Nav4SkeletonNotificationButton = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _notification = _interopRequireDefault(require("@atlaskit/icon/
|
|
9
|
+
var _notification = _interopRequireDefault(require("@atlaskit/icon/core/notification"));
|
|
10
|
+
var _notification2 = _interopRequireDefault(require("@atlaskit/icon/glyph/notification"));
|
|
10
11
|
var _SkeletonIconButton = require("./components/SkeletonIconButton");
|
|
11
12
|
/**
|
|
12
13
|
* __Skeleton notification button__
|
|
@@ -21,7 +22,22 @@ var _SkeletonIconButton = require("./components/SkeletonIconButton");
|
|
|
21
22
|
var SkeletonNotificationButton = exports.SkeletonNotificationButton = function SkeletonNotificationButton(_ref) {
|
|
22
23
|
var _ref$label = _ref.label,
|
|
23
24
|
label = _ref$label === void 0 ? '' : _ref$label;
|
|
24
|
-
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(_notification2.default, {
|
|
25
26
|
label: label
|
|
26
27
|
}));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* __Nav 4 skeleton notification button__
|
|
32
|
+
*
|
|
33
|
+
* A nav 4 skeleton notification button.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
var Nav4SkeletonNotificationButton = exports.Nav4SkeletonNotificationButton = function Nav4SkeletonNotificationButton(_ref2) {
|
|
37
|
+
var _ref2$label = _ref2.label,
|
|
38
|
+
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
39
|
+
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(_notification.default, {
|
|
40
|
+
label: label,
|
|
41
|
+
color: "var(--ds-icon, #44546F)"
|
|
42
|
+
}));
|
|
27
43
|
};
|
|
@@ -4,9 +4,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.SkeletonSettingsButton = void 0;
|
|
7
|
+
exports.SkeletonSettingsButton = exports.Nav4SkeletonSettingsButton = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _settings = _interopRequireDefault(require("@atlaskit/icon/
|
|
9
|
+
var _settings = _interopRequireDefault(require("@atlaskit/icon/core/settings"));
|
|
10
|
+
var _settings2 = _interopRequireDefault(require("@atlaskit/icon/glyph/settings"));
|
|
10
11
|
var _SkeletonIconButton = require("./components/SkeletonIconButton");
|
|
11
12
|
/**
|
|
12
13
|
* __Skeleton settings button__
|
|
@@ -21,7 +22,21 @@ var _SkeletonIconButton = require("./components/SkeletonIconButton");
|
|
|
21
22
|
var SkeletonSettingsButton = exports.SkeletonSettingsButton = function SkeletonSettingsButton(_ref) {
|
|
22
23
|
var _ref$label = _ref.label,
|
|
23
24
|
label = _ref$label === void 0 ? '' : _ref$label;
|
|
24
|
-
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(
|
|
25
|
+
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(_settings2.default, {
|
|
25
26
|
label: label
|
|
26
27
|
}));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* __Nav 4 skeleton settings button__
|
|
32
|
+
*
|
|
33
|
+
* A nav 4 skeleton settings button
|
|
34
|
+
*/
|
|
35
|
+
var Nav4SkeletonSettingsButton = exports.Nav4SkeletonSettingsButton = function Nav4SkeletonSettingsButton(_ref2) {
|
|
36
|
+
var _ref2$label = _ref2.label,
|
|
37
|
+
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
38
|
+
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(_settings.default, {
|
|
39
|
+
label: label,
|
|
40
|
+
color: "var(--ds-icon, #44546F)"
|
|
41
|
+
}));
|
|
27
42
|
};
|
|
@@ -4,9 +4,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.SkeletonSwitcherButton = void 0;
|
|
7
|
+
exports.SkeletonSwitcherButton = exports.Nav4SkeletonSwitcherButton = void 0;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
|
-
var _appSwitcher = _interopRequireDefault(require("@atlaskit/icon/
|
|
9
|
+
var _appSwitcher = _interopRequireDefault(require("@atlaskit/icon/core/app-switcher"));
|
|
10
|
+
var _appSwitcher2 = _interopRequireDefault(require("@atlaskit/icon/glyph/app-switcher"));
|
|
11
|
+
var _SkeletonIconButton = require("./components/SkeletonIconButton");
|
|
10
12
|
var _theme = require("./theme");
|
|
11
13
|
/**
|
|
12
14
|
* @jsxRuntime classic
|
|
@@ -69,8 +71,23 @@ var SkeletonSwitcherButton = exports.SkeletonSwitcherButton = function SkeletonS
|
|
|
69
71
|
"data-testid": testId,
|
|
70
72
|
css: skeletonSwitcherButtonStyles,
|
|
71
73
|
type: "button"
|
|
72
|
-
}, (0, _react.jsx)(
|
|
74
|
+
}, (0, _react.jsx)(_appSwitcher2.default, {
|
|
73
75
|
label: label
|
|
74
76
|
}))
|
|
75
77
|
);
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* __Nav 4 skeleton switcher button__
|
|
82
|
+
*
|
|
83
|
+
* A nav 4 skeleton switcher button
|
|
84
|
+
*/
|
|
85
|
+
var Nav4SkeletonSwitcherButton = exports.Nav4SkeletonSwitcherButton = function Nav4SkeletonSwitcherButton(_ref2) {
|
|
86
|
+
var _ref2$label = _ref2.label,
|
|
87
|
+
label = _ref2$label === void 0 ? '' : _ref2$label,
|
|
88
|
+
testId = _ref2.testId;
|
|
89
|
+
return (0, _react.jsx)(_SkeletonIconButton.SkeletonIconButton, null, (0, _react.jsx)(_appSwitcher.default, {
|
|
90
|
+
label: label,
|
|
91
|
+
color: "var(--ds-icon, #44546F)"
|
|
92
|
+
}));
|
|
76
93
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import Nav4QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
|
|
2
3
|
import QuestionCircleIcon from '@atlaskit/icon/glyph/question-circle';
|
|
3
4
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
4
5
|
import { useTheme } from './theme';
|
|
@@ -24,4 +25,16 @@ export const SkeletonHelpButton = ({
|
|
|
24
25
|
label: label,
|
|
25
26
|
secondaryColor: navigation.backgroundColor
|
|
26
27
|
}));
|
|
27
|
-
};
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* __Nav 4 skeleton help button__
|
|
32
|
+
*
|
|
33
|
+
* A nav 4 skeleton help button {description}.
|
|
34
|
+
*/
|
|
35
|
+
export const Nav4SkeletonHelpButton = ({
|
|
36
|
+
label = ''
|
|
37
|
+
}) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(Nav4QuestionCircleIcon, {
|
|
38
|
+
label: label,
|
|
39
|
+
color: "var(--ds-icon, #44546F)"
|
|
40
|
+
}));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import Nav4NotificationsIcon from '@atlaskit/icon/core/notification';
|
|
2
3
|
import NotificationIcon from '@atlaskit/icon/glyph/notification';
|
|
3
4
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
4
5
|
/**
|
|
@@ -15,4 +16,17 @@ export const SkeletonNotificationButton = ({
|
|
|
15
16
|
label = ''
|
|
16
17
|
}) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(NotificationIcon, {
|
|
17
18
|
label: label
|
|
19
|
+
}));
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* __Nav 4 skeleton notification button__
|
|
23
|
+
*
|
|
24
|
+
* A nav 4 skeleton notification button.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export const Nav4SkeletonNotificationButton = ({
|
|
28
|
+
label = ''
|
|
29
|
+
}) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(Nav4NotificationsIcon, {
|
|
30
|
+
label: label,
|
|
31
|
+
color: "var(--ds-icon, #44546F)"
|
|
18
32
|
}));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import Nav4SettingsIcon from '@atlaskit/icon/core/settings';
|
|
2
3
|
import SettingsIcon from '@atlaskit/icon/glyph/settings';
|
|
3
4
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
4
5
|
/**
|
|
@@ -15,4 +16,16 @@ export const SkeletonSettingsButton = ({
|
|
|
15
16
|
label = ''
|
|
16
17
|
}) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(SettingsIcon, {
|
|
17
18
|
label: label
|
|
19
|
+
}));
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* __Nav 4 skeleton settings button__
|
|
23
|
+
*
|
|
24
|
+
* A nav 4 skeleton settings button
|
|
25
|
+
*/
|
|
26
|
+
export const Nav4SkeletonSettingsButton = ({
|
|
27
|
+
label = ''
|
|
28
|
+
}) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(Nav4SettingsIcon, {
|
|
29
|
+
label: label,
|
|
30
|
+
color: "var(--ds-icon, #44546F)"
|
|
18
31
|
}));
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
|
+
import Nav4AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
|
|
7
8
|
import AppSwitcherIcon from '@atlaskit/icon/glyph/app-switcher';
|
|
9
|
+
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
8
10
|
import { useTheme } from './theme';
|
|
9
11
|
const skeletonSwitcherButtonStyles = css({
|
|
10
12
|
margin: 0,
|
|
@@ -65,4 +67,17 @@ export const SkeletonSwitcherButton = ({
|
|
|
65
67
|
label: label
|
|
66
68
|
}))
|
|
67
69
|
);
|
|
68
|
-
};
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* __Nav 4 skeleton switcher button__
|
|
74
|
+
*
|
|
75
|
+
* A nav 4 skeleton switcher button
|
|
76
|
+
*/
|
|
77
|
+
export const Nav4SkeletonSwitcherButton = ({
|
|
78
|
+
label = '',
|
|
79
|
+
testId
|
|
80
|
+
}) => jsx(SkeletonIconButton, null, jsx(Nav4AppSwitcherIcon, {
|
|
81
|
+
label: label,
|
|
82
|
+
color: "var(--ds-icon, #44546F)"
|
|
83
|
+
}));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import Nav4QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
|
|
2
3
|
import QuestionCircleIcon from '@atlaskit/icon/glyph/question-circle';
|
|
3
4
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
4
5
|
import { useTheme } from './theme';
|
|
@@ -21,4 +22,18 @@ export var SkeletonHelpButton = function SkeletonHelpButton(_ref) {
|
|
|
21
22
|
label: label,
|
|
22
23
|
secondaryColor: navigation.backgroundColor
|
|
23
24
|
}));
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* __Nav 4 skeleton help button__
|
|
29
|
+
*
|
|
30
|
+
* A nav 4 skeleton help button {description}.
|
|
31
|
+
*/
|
|
32
|
+
export var Nav4SkeletonHelpButton = function Nav4SkeletonHelpButton(_ref2) {
|
|
33
|
+
var _ref2$label = _ref2.label,
|
|
34
|
+
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
35
|
+
return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(Nav4QuestionCircleIcon, {
|
|
36
|
+
label: label,
|
|
37
|
+
color: "var(--ds-icon, #44546F)"
|
|
38
|
+
}));
|
|
24
39
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import Nav4NotificationsIcon from '@atlaskit/icon/core/notification';
|
|
2
3
|
import NotificationIcon from '@atlaskit/icon/glyph/notification';
|
|
3
4
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
4
5
|
/**
|
|
@@ -17,4 +18,19 @@ export var SkeletonNotificationButton = function SkeletonNotificationButton(_ref
|
|
|
17
18
|
return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(NotificationIcon, {
|
|
18
19
|
label: label
|
|
19
20
|
}));
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* __Nav 4 skeleton notification button__
|
|
25
|
+
*
|
|
26
|
+
* A nav 4 skeleton notification button.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
export var Nav4SkeletonNotificationButton = function Nav4SkeletonNotificationButton(_ref2) {
|
|
30
|
+
var _ref2$label = _ref2.label,
|
|
31
|
+
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
32
|
+
return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(Nav4NotificationsIcon, {
|
|
33
|
+
label: label,
|
|
34
|
+
color: "var(--ds-icon, #44546F)"
|
|
35
|
+
}));
|
|
20
36
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import Nav4SettingsIcon from '@atlaskit/icon/core/settings';
|
|
2
3
|
import SettingsIcon from '@atlaskit/icon/glyph/settings';
|
|
3
4
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
4
5
|
/**
|
|
@@ -17,4 +18,18 @@ export var SkeletonSettingsButton = function SkeletonSettingsButton(_ref) {
|
|
|
17
18
|
return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(SettingsIcon, {
|
|
18
19
|
label: label
|
|
19
20
|
}));
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* __Nav 4 skeleton settings button__
|
|
25
|
+
*
|
|
26
|
+
* A nav 4 skeleton settings button
|
|
27
|
+
*/
|
|
28
|
+
export var Nav4SkeletonSettingsButton = function Nav4SkeletonSettingsButton(_ref2) {
|
|
29
|
+
var _ref2$label = _ref2.label,
|
|
30
|
+
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
31
|
+
return /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(Nav4SettingsIcon, {
|
|
32
|
+
label: label,
|
|
33
|
+
color: "var(--ds-icon, #44546F)"
|
|
34
|
+
}));
|
|
20
35
|
};
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
|
+
import Nav4AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
|
|
7
8
|
import AppSwitcherIcon from '@atlaskit/icon/glyph/app-switcher';
|
|
9
|
+
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
8
10
|
import { useTheme } from './theme';
|
|
9
11
|
var skeletonSwitcherButtonStyles = css({
|
|
10
12
|
margin: 0,
|
|
@@ -65,4 +67,19 @@ export var SkeletonSwitcherButton = function SkeletonSwitcherButton(_ref) {
|
|
|
65
67
|
label: label
|
|
66
68
|
}))
|
|
67
69
|
);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* __Nav 4 skeleton switcher button__
|
|
74
|
+
*
|
|
75
|
+
* A nav 4 skeleton switcher button
|
|
76
|
+
*/
|
|
77
|
+
export var Nav4SkeletonSwitcherButton = function Nav4SkeletonSwitcherButton(_ref2) {
|
|
78
|
+
var _ref2$label = _ref2.label,
|
|
79
|
+
label = _ref2$label === void 0 ? '' : _ref2$label,
|
|
80
|
+
testId = _ref2.testId;
|
|
81
|
+
return jsx(SkeletonIconButton, null, jsx(Nav4AppSwitcherIcon, {
|
|
82
|
+
label: label,
|
|
83
|
+
color: "var(--ds-icon, #44546F)"
|
|
84
|
+
}));
|
|
68
85
|
};
|
|
@@ -17,3 +17,9 @@ export type SkeletonHelpButtonProps = {
|
|
|
17
17
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
18
|
*/
|
|
19
19
|
export declare const SkeletonHelpButton: ({ label }: SkeletonHelpButtonProps) => JSX.Element;
|
|
20
|
+
/**
|
|
21
|
+
* __Nav 4 skeleton help button__
|
|
22
|
+
*
|
|
23
|
+
* A nav 4 skeleton help button {description}.
|
|
24
|
+
*/
|
|
25
|
+
export declare const Nav4SkeletonHelpButton: ({ label }: SkeletonHelpButtonProps) => JSX.Element;
|
|
@@ -17,3 +17,10 @@ export type SkeletonNotificationButtonProps = {
|
|
|
17
17
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
18
|
*/
|
|
19
19
|
export declare const SkeletonNotificationButton: ({ label }: SkeletonNotificationButtonProps) => JSX.Element;
|
|
20
|
+
/**
|
|
21
|
+
* __Nav 4 skeleton notification button__
|
|
22
|
+
*
|
|
23
|
+
* A nav 4 skeleton notification button.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare const Nav4SkeletonNotificationButton: ({ label }: SkeletonNotificationButtonProps) => JSX.Element;
|
|
@@ -17,3 +17,9 @@ export type SkeletonSettingsButtonProps = {
|
|
|
17
17
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
18
|
*/
|
|
19
19
|
export declare const SkeletonSettingsButton: ({ label }: SkeletonSettingsButtonProps) => JSX.Element;
|
|
20
|
+
/**
|
|
21
|
+
* __Nav 4 skeleton settings button__
|
|
22
|
+
*
|
|
23
|
+
* A nav 4 skeleton settings button
|
|
24
|
+
*/
|
|
25
|
+
export declare const Nav4SkeletonSettingsButton: ({ label }: SkeletonSettingsButtonProps) => JSX.Element;
|
|
@@ -27,3 +27,9 @@ export type SkeletonSwitcherButtonProps = {
|
|
|
27
27
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
28
28
|
*/
|
|
29
29
|
export declare const SkeletonSwitcherButton: ({ label, testId }: SkeletonSwitcherButtonProps) => jsx.JSX.Element;
|
|
30
|
+
/**
|
|
31
|
+
* __Nav 4 skeleton switcher button__
|
|
32
|
+
*
|
|
33
|
+
* A nav 4 skeleton switcher button
|
|
34
|
+
*/
|
|
35
|
+
export declare const Nav4SkeletonSwitcherButton: ({ label, testId }: SkeletonSwitcherButtonProps) => jsx.JSX.Element;
|
|
@@ -17,3 +17,9 @@ export type SkeletonHelpButtonProps = {
|
|
|
17
17
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
18
|
*/
|
|
19
19
|
export declare const SkeletonHelpButton: ({ label }: SkeletonHelpButtonProps) => JSX.Element;
|
|
20
|
+
/**
|
|
21
|
+
* __Nav 4 skeleton help button__
|
|
22
|
+
*
|
|
23
|
+
* A nav 4 skeleton help button {description}.
|
|
24
|
+
*/
|
|
25
|
+
export declare const Nav4SkeletonHelpButton: ({ label }: SkeletonHelpButtonProps) => JSX.Element;
|
|
@@ -17,3 +17,10 @@ export type SkeletonNotificationButtonProps = {
|
|
|
17
17
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
18
|
*/
|
|
19
19
|
export declare const SkeletonNotificationButton: ({ label }: SkeletonNotificationButtonProps) => JSX.Element;
|
|
20
|
+
/**
|
|
21
|
+
* __Nav 4 skeleton notification button__
|
|
22
|
+
*
|
|
23
|
+
* A nav 4 skeleton notification button.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare const Nav4SkeletonNotificationButton: ({ label }: SkeletonNotificationButtonProps) => JSX.Element;
|
|
@@ -17,3 +17,9 @@ export type SkeletonSettingsButtonProps = {
|
|
|
17
17
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
18
18
|
*/
|
|
19
19
|
export declare const SkeletonSettingsButton: ({ label }: SkeletonSettingsButtonProps) => JSX.Element;
|
|
20
|
+
/**
|
|
21
|
+
* __Nav 4 skeleton settings button__
|
|
22
|
+
*
|
|
23
|
+
* A nav 4 skeleton settings button
|
|
24
|
+
*/
|
|
25
|
+
export declare const Nav4SkeletonSettingsButton: ({ label }: SkeletonSettingsButtonProps) => JSX.Element;
|
|
@@ -27,3 +27,9 @@ export type SkeletonSwitcherButtonProps = {
|
|
|
27
27
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
28
28
|
*/
|
|
29
29
|
export declare const SkeletonSwitcherButton: ({ label, testId }: SkeletonSwitcherButtonProps) => jsx.JSX.Element;
|
|
30
|
+
/**
|
|
31
|
+
* __Nav 4 skeleton switcher button__
|
|
32
|
+
*
|
|
33
|
+
* A nav 4 skeleton switcher button
|
|
34
|
+
*/
|
|
35
|
+
export declare const Nav4SkeletonSwitcherButton: ({ label, testId }: SkeletonSwitcherButtonProps) => jsx.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"description": "A horizontal navigation component for Atlassian products.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,10 +32,6 @@
|
|
|
32
32
|
},
|
|
33
33
|
"atlassian": {
|
|
34
34
|
"team": "Design System Team",
|
|
35
|
-
"releaseModel": "continuous",
|
|
36
|
-
"productPushConsumption": [
|
|
37
|
-
"jira"
|
|
38
|
-
],
|
|
39
35
|
"website": {
|
|
40
36
|
"name": "Atlassian navigation",
|
|
41
37
|
"category": "Components"
|
|
@@ -44,15 +40,15 @@
|
|
|
44
40
|
},
|
|
45
41
|
"dependencies": {
|
|
46
42
|
"@atlaskit/analytics-namespaced-context": "^6.11.0",
|
|
47
|
-
"@atlaskit/button": "^
|
|
48
|
-
"@atlaskit/ds-lib": "^2.
|
|
49
|
-
"@atlaskit/icon": "^22.
|
|
43
|
+
"@atlaskit/button": "^20.1.0",
|
|
44
|
+
"@atlaskit/ds-lib": "^2.5.0",
|
|
45
|
+
"@atlaskit/icon": "^22.15.0",
|
|
50
46
|
"@atlaskit/logo": "*",
|
|
51
47
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
52
|
-
"@atlaskit/popup": "^1.
|
|
53
|
-
"@atlaskit/primitives": "^12.
|
|
48
|
+
"@atlaskit/popup": "^1.24.0",
|
|
49
|
+
"@atlaskit/primitives": "^12.1.0",
|
|
54
50
|
"@atlaskit/theme": "^13.0.0",
|
|
55
|
-
"@atlaskit/tokens": "^1.
|
|
51
|
+
"@atlaskit/tokens": "^1.59.0",
|
|
56
52
|
"@atlaskit/tooltip": "^18.7.0",
|
|
57
53
|
"@atlaskit/width-detector": "^4.3.0",
|
|
58
54
|
"@babel/runtime": "^7.0.0",
|
|
@@ -66,7 +62,7 @@
|
|
|
66
62
|
"devDependencies": {
|
|
67
63
|
"@af/accessibility-testing": "*",
|
|
68
64
|
"@af/visual-regression": "*",
|
|
69
|
-
"@atlaskit/dropdown-menu": "^12.
|
|
65
|
+
"@atlaskit/dropdown-menu": "^12.18.0",
|
|
70
66
|
"@atlaskit/notification-indicator": "*",
|
|
71
67
|
"@atlaskit/notification-log-client": "*",
|
|
72
68
|
"@atlaskit/visual-regression": "*",
|