@atlaskit/atlassian-navigation 5.5.2 → 5.5.4
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 +14 -0
- package/dist/cjs/components/AppSwitcher/index.js +1 -2
- package/dist/cjs/components/AtlassianNavigation/index.js +15 -13
- package/dist/cjs/components/AtlassianNavigation/skeleton.js +17 -14
- package/dist/cjs/components/BadgeContainer/index.js +9 -6
- package/dist/cjs/components/Create/index.js +3 -1
- package/dist/cjs/components/Help/index.js +1 -1
- package/dist/cjs/components/IconButton/skeleton.js +4 -3
- package/dist/cjs/components/Notifications/index.js +1 -1
- package/dist/cjs/components/PrimaryButton/skeleton.js +5 -3
- package/dist/cjs/components/PrimaryDropdownButton/index.js +1 -2
- package/dist/cjs/components/PrimaryItemsContainer/index.js +3 -1
- package/dist/cjs/components/PrimaryItemsContainer/skeleton.js +3 -1
- package/dist/cjs/components/ProductHome/custom-product-home.js +3 -1
- package/dist/cjs/components/ProductHome/product-home.js +3 -1
- package/dist/cjs/components/ProductHome/skeleton.js +3 -1
- package/dist/cjs/components/Search/index.js +4 -2
- package/dist/cjs/components/Search/skeleton.js +3 -1
- package/dist/cjs/components/Settings/index.js +1 -1
- package/dist/cjs/components/SkeletonCreateButton/index.js +8 -5
- package/dist/cjs/components/SkeletonIconButton/index.js +8 -5
- package/dist/cjs/components/SkeletonPrimaryButton/index.js +10 -9
- package/dist/cjs/skeleton-help-button.js +2 -3
- package/dist/cjs/skeleton-notification-button.js +2 -3
- package/dist/cjs/skeleton-settings-button.js +2 -3
- package/dist/cjs/skeleton-switcher-button.js +7 -6
- package/dist/es2019/components/AppSwitcher/index.js +2 -3
- package/dist/es2019/components/AtlassianNavigation/index.js +2 -0
- package/dist/es2019/components/AtlassianNavigation/skeleton.js +2 -0
- package/dist/es2019/components/BadgeContainer/index.js +2 -0
- package/dist/es2019/components/Create/index.js +1 -1
- package/dist/es2019/components/Help/index.js +1 -1
- package/dist/es2019/components/IconButton/skeleton.js +2 -0
- package/dist/es2019/components/Notifications/index.js +1 -1
- package/dist/es2019/components/PrimaryButton/skeleton.js +1 -0
- package/dist/es2019/components/PrimaryDropdownButton/index.js +2 -3
- package/dist/es2019/components/PrimaryItemsContainer/index.js +1 -1
- package/dist/es2019/components/PrimaryItemsContainer/skeleton.js +1 -1
- package/dist/es2019/components/ProductHome/custom-product-home.js +1 -1
- package/dist/es2019/components/ProductHome/product-home.js +1 -1
- package/dist/es2019/components/ProductHome/skeleton.js +1 -1
- package/dist/es2019/components/Search/index.js +2 -2
- package/dist/es2019/components/Search/skeleton.js +1 -1
- package/dist/es2019/components/Settings/index.js +1 -1
- package/dist/es2019/components/SkeletonCreateButton/index.js +2 -0
- package/dist/es2019/components/SkeletonIconButton/index.js +2 -0
- package/dist/es2019/components/SkeletonPrimaryButton/index.js +2 -0
- package/dist/es2019/skeleton-help-button.js +2 -3
- package/dist/es2019/skeleton-notification-button.js +2 -3
- package/dist/es2019/skeleton-settings-button.js +2 -3
- package/dist/es2019/skeleton-switcher-button.js +4 -3
- package/dist/es2019/theme/theme-provider.js +0 -1
- package/dist/esm/components/AppSwitcher/index.js +2 -3
- package/dist/esm/components/AtlassianNavigation/index.js +2 -0
- package/dist/esm/components/AtlassianNavigation/skeleton.js +2 -0
- package/dist/esm/components/BadgeContainer/index.js +2 -0
- package/dist/esm/components/Create/index.js +1 -1
- package/dist/esm/components/Help/index.js +1 -1
- package/dist/esm/components/IconButton/skeleton.js +2 -0
- package/dist/esm/components/Notifications/index.js +1 -1
- package/dist/esm/components/PrimaryButton/skeleton.js +1 -0
- package/dist/esm/components/PrimaryDropdownButton/index.js +2 -3
- package/dist/esm/components/PrimaryItemsContainer/index.js +1 -1
- package/dist/esm/components/PrimaryItemsContainer/skeleton.js +1 -1
- package/dist/esm/components/ProductHome/custom-product-home.js +1 -1
- package/dist/esm/components/ProductHome/product-home.js +1 -1
- package/dist/esm/components/ProductHome/skeleton.js +1 -1
- package/dist/esm/components/Search/index.js +2 -2
- package/dist/esm/components/Search/skeleton.js +1 -1
- package/dist/esm/components/Settings/index.js +1 -1
- package/dist/esm/components/SkeletonCreateButton/index.js +2 -0
- package/dist/esm/components/SkeletonIconButton/index.js +2 -0
- package/dist/esm/components/SkeletonPrimaryButton/index.js +2 -0
- package/dist/esm/skeleton-help-button.js +2 -3
- package/dist/esm/skeleton-notification-button.js +2 -3
- package/dist/esm/skeleton-settings-button.js +2 -3
- package/dist/esm/skeleton-switcher-button.js +4 -3
- package/dist/esm/theme/theme-provider.js +0 -1
- package/dist/types/components/AtlassianNavigation/index.d.ts +2 -2
- package/dist/types/components/AtlassianNavigation/skeleton.d.ts +2 -2
- package/dist/types/components/BadgeContainer/index.d.ts +2 -2
- package/dist/types/components/Create/index.d.ts +6 -2
- package/dist/types/components/IconButton/skeleton.d.ts +2 -2
- package/dist/types/components/PrimaryButton/skeleton.d.ts +2 -2
- package/dist/types/components/PrimaryItemsContainer/index.d.ts +6 -2
- package/dist/types/components/PrimaryItemsContainer/skeleton.d.ts +6 -2
- package/dist/types/components/ProductHome/custom-product-home.d.ts +6 -2
- package/dist/types/components/ProductHome/product-home.d.ts +7 -3
- package/dist/types/components/ProductHome/skeleton.d.ts +2 -2
- package/dist/types/components/Search/index.d.ts +6 -2
- package/dist/types/components/Search/skeleton.d.ts +6 -2
- package/dist/types/components/SkeletonCreateButton/index.d.ts +2 -2
- package/dist/types/components/SkeletonIconButton/index.d.ts +2 -2
- package/dist/types/components/SkeletonPrimaryButton/index.d.ts +2 -2
- package/dist/types/skeleton-switcher-button.d.ts +3 -3
- package/dist/types/theme/theme-provider.d.ts +4 -2
- package/dist/types/theme/use-theme.d.ts +2 -1
- package/dist/types-ts4.5/components/AtlassianNavigation/index.d.ts +2 -2
- package/dist/types-ts4.5/components/AtlassianNavigation/skeleton.d.ts +2 -2
- package/dist/types-ts4.5/components/BadgeContainer/index.d.ts +2 -2
- package/dist/types-ts4.5/components/Create/index.d.ts +6 -2
- package/dist/types-ts4.5/components/IconButton/skeleton.d.ts +2 -2
- package/dist/types-ts4.5/components/PrimaryButton/skeleton.d.ts +2 -2
- package/dist/types-ts4.5/components/PrimaryItemsContainer/index.d.ts +6 -2
- package/dist/types-ts4.5/components/PrimaryItemsContainer/skeleton.d.ts +6 -2
- package/dist/types-ts4.5/components/ProductHome/custom-product-home.d.ts +6 -2
- package/dist/types-ts4.5/components/ProductHome/product-home.d.ts +7 -3
- package/dist/types-ts4.5/components/ProductHome/skeleton.d.ts +2 -2
- package/dist/types-ts4.5/components/Search/index.d.ts +6 -2
- package/dist/types-ts4.5/components/Search/skeleton.d.ts +6 -2
- package/dist/types-ts4.5/components/SkeletonCreateButton/index.d.ts +2 -2
- package/dist/types-ts4.5/components/SkeletonIconButton/index.d.ts +2 -2
- package/dist/types-ts4.5/components/SkeletonPrimaryButton/index.d.ts +2 -2
- package/dist/types-ts4.5/skeleton-switcher-button.d.ts +3 -3
- package/dist/types-ts4.5/theme/theme-provider.d.ts +4 -2
- package/dist/types-ts4.5/theme/use-theme.d.ts +2 -1
- package/package.json +7 -7
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.SkeletonIconButton = void 0;
|
|
7
|
-
var _react = require("
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _react2 = require("@emotion/react");
|
|
8
10
|
var _theme = require("../../theme");
|
|
9
11
|
/**
|
|
10
12
|
* @jsxRuntime classic
|
|
11
13
|
* @jsx jsx
|
|
12
14
|
*/
|
|
15
|
+
|
|
13
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
17
|
|
|
15
|
-
var skeletonIconButtonStyles = (0,
|
|
18
|
+
var skeletonIconButtonStyles = (0, _react2.css)({
|
|
16
19
|
margin: 0,
|
|
17
20
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-075, 6px)"),
|
|
18
21
|
border: 0,
|
|
@@ -37,7 +40,7 @@ var skeletonIconButtonStyles = (0, _react.css)({
|
|
|
37
40
|
verticalAlign: 'middle'
|
|
38
41
|
}
|
|
39
42
|
});
|
|
40
|
-
var buttonWrapperStyles = (0,
|
|
43
|
+
var buttonWrapperStyles = (0, _react2.css)({
|
|
41
44
|
marginInlineEnd: "var(--ds-space-050, 4px)",
|
|
42
45
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
43
46
|
'&:only-of-type': {
|
|
@@ -59,10 +62,10 @@ var SkeletonIconButton = exports.SkeletonIconButton = function SkeletonIconButto
|
|
|
59
62
|
var children = _ref.children,
|
|
60
63
|
testId = _ref.testId;
|
|
61
64
|
var theme = (0, _theme.useTheme)();
|
|
62
|
-
return (0,
|
|
65
|
+
return (0, _react2.jsx)("div", {
|
|
63
66
|
role: "listitem",
|
|
64
67
|
css: buttonWrapperStyles
|
|
65
|
-
}, (0,
|
|
68
|
+
}, (0, _react2.jsx)("button", {
|
|
66
69
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
67
70
|
style: theme.mode.iconButton.default,
|
|
68
71
|
"data-testid": testId,
|
|
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.SkeletonPrimaryButton = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _react = require("
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _react2 = require("@emotion/react");
|
|
10
11
|
var _theme = require("../../theme");
|
|
11
12
|
var _utils = require("../../utils");
|
|
12
13
|
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; }
|
|
@@ -16,7 +17,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
16
17
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
18
|
var VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR = '--primary-button-before-highlighted-background-color';
|
|
18
19
|
var VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR = '--primary-button-after-dropdown-border-color';
|
|
19
|
-
var primaryButtonSkeletonStyles = (0,
|
|
20
|
+
var primaryButtonSkeletonStyles = (0, _react2.css)({
|
|
20
21
|
margin: "0 ".concat("var(--ds-space-075, 6px)"),
|
|
21
22
|
padding: "0 ".concat("var(--ds-space-050, 4px)"),
|
|
22
23
|
position: 'relative',
|
|
@@ -36,7 +37,7 @@ var primaryButtonSkeletonStyles = (0, _react.css)({
|
|
|
36
37
|
border: 0
|
|
37
38
|
}
|
|
38
39
|
});
|
|
39
|
-
var isHighlightedStyles = (0,
|
|
40
|
+
var isHighlightedStyles = (0, _react2.css)({
|
|
40
41
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
41
42
|
'&:before': {
|
|
42
43
|
height: 3,
|
|
@@ -49,19 +50,19 @@ var isHighlightedStyles = (0, _react.css)({
|
|
|
49
50
|
insetInlineStart: "var(--ds-space-025, 2px)"
|
|
50
51
|
}
|
|
51
52
|
});
|
|
52
|
-
var isHighlightedAndDropdownButtonStyles = (0,
|
|
53
|
+
var isHighlightedAndDropdownButtonStyles = (0, _react2.css)({
|
|
53
54
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
54
55
|
'&:before': {
|
|
55
56
|
insetInlineEnd: -10
|
|
56
57
|
}
|
|
57
58
|
});
|
|
58
|
-
var isHighlightedNotDropdownButtonStyles = (0,
|
|
59
|
+
var isHighlightedNotDropdownButtonStyles = (0, _react2.css)({
|
|
59
60
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
60
61
|
'&:before': {
|
|
61
62
|
insetInlineEnd: "var(--ds-space-025, 2px)"
|
|
62
63
|
}
|
|
63
64
|
});
|
|
64
|
-
var isDropdownButtonStyles = (0,
|
|
65
|
+
var isDropdownButtonStyles = (0, _react2.css)({
|
|
65
66
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
66
67
|
marginInlineEnd: 18,
|
|
67
68
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
@@ -82,7 +83,7 @@ var isDropdownButtonStyles = (0, _react.css)({
|
|
|
82
83
|
verticalAlign: 'middle'
|
|
83
84
|
}
|
|
84
85
|
});
|
|
85
|
-
var buttonWrapperStyles = (0,
|
|
86
|
+
var buttonWrapperStyles = (0, _react2.css)({
|
|
86
87
|
display: 'flex',
|
|
87
88
|
margin: 0
|
|
88
89
|
});
|
|
@@ -110,10 +111,10 @@ var SkeletonPrimaryButton = exports.SkeletonPrimaryButton = function SkeletonPri
|
|
|
110
111
|
var dynamicStyles = (0, _utils.stripEmptyProperties)(_objectSpread(_objectSpread(_objectSpread({}, primaryButton.default), isHighlighted && {
|
|
111
112
|
color: primaryButton.selected.color
|
|
112
113
|
}), {}, (0, _defineProperty2.default)((0, _defineProperty2.default)({}, VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR, primaryButton.selected.borderColor), VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR, isHighlighted ? primaryButton.default.borderColor : primaryButton.default.color)));
|
|
113
|
-
return (0,
|
|
114
|
+
return (0, _react2.jsx)("div", {
|
|
114
115
|
role: "listitem",
|
|
115
116
|
css: buttonWrapperStyles
|
|
116
|
-
}, (0,
|
|
117
|
+
}, (0, _react2.jsx)("button", {
|
|
117
118
|
type: "button"
|
|
118
119
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
119
120
|
,
|
|
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.SkeletonHelpButton = exports.Nav4SkeletonHelpButton = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/core/
|
|
10
|
-
var _questionCircle2 = _interopRequireDefault(require("@atlaskit/icon/core/question-circle"));
|
|
9
|
+
var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/core/question-circle"));
|
|
11
10
|
var _SkeletonIconButton = require("./components/SkeletonIconButton");
|
|
12
11
|
var _theme = require("./theme");
|
|
13
12
|
/**
|
|
@@ -40,7 +39,7 @@ var SkeletonHelpButton = exports.SkeletonHelpButton = function SkeletonHelpButto
|
|
|
40
39
|
var Nav4SkeletonHelpButton = exports.Nav4SkeletonHelpButton = function Nav4SkeletonHelpButton(_ref2) {
|
|
41
40
|
var _ref2$label = _ref2.label,
|
|
42
41
|
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
43
|
-
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(
|
|
42
|
+
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(_questionCircle.default, {
|
|
44
43
|
label: label,
|
|
45
44
|
spacing: "spacious",
|
|
46
45
|
color: "var(--ds-icon, #292A2E)"
|
|
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.SkeletonNotificationButton = exports.Nav4SkeletonNotificationButton = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _notification = _interopRequireDefault(require("@atlaskit/icon/core/
|
|
10
|
-
var _notification2 = _interopRequireDefault(require("@atlaskit/icon/core/notification"));
|
|
9
|
+
var _notification = _interopRequireDefault(require("@atlaskit/icon/core/notification"));
|
|
11
10
|
var _SkeletonIconButton = require("./components/SkeletonIconButton");
|
|
12
11
|
/**
|
|
13
12
|
* __Skeleton notification button__
|
|
@@ -38,7 +37,7 @@ var SkeletonNotificationButton = exports.SkeletonNotificationButton = function S
|
|
|
38
37
|
var Nav4SkeletonNotificationButton = exports.Nav4SkeletonNotificationButton = function Nav4SkeletonNotificationButton(_ref2) {
|
|
39
38
|
var _ref2$label = _ref2.label,
|
|
40
39
|
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
41
|
-
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(
|
|
40
|
+
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(_notification.default, {
|
|
42
41
|
label: label,
|
|
43
42
|
color: "var(--ds-icon, #292A2E)"
|
|
44
43
|
}));
|
|
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.SkeletonSettingsButton = exports.Nav4SkeletonSettingsButton = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _settings = _interopRequireDefault(require("@atlaskit/icon/core/
|
|
10
|
-
var _settings2 = _interopRequireDefault(require("@atlaskit/icon/core/settings"));
|
|
9
|
+
var _settings = _interopRequireDefault(require("@atlaskit/icon/core/settings"));
|
|
11
10
|
var _SkeletonIconButton = require("./components/SkeletonIconButton");
|
|
12
11
|
/**
|
|
13
12
|
* __Skeleton settings button__
|
|
@@ -37,7 +36,7 @@ var SkeletonSettingsButton = exports.SkeletonSettingsButton = function SkeletonS
|
|
|
37
36
|
var Nav4SkeletonSettingsButton = exports.Nav4SkeletonSettingsButton = function Nav4SkeletonSettingsButton(_ref2) {
|
|
38
37
|
var _ref2$label = _ref2.label,
|
|
39
38
|
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
40
|
-
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(
|
|
39
|
+
return /*#__PURE__*/_react.default.createElement(_SkeletonIconButton.SkeletonIconButton, null, /*#__PURE__*/_react.default.createElement(_settings.default, {
|
|
41
40
|
label: label,
|
|
42
41
|
color: "var(--ds-icon, #292A2E)"
|
|
43
42
|
}));
|
|
@@ -5,18 +5,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.SkeletonSwitcherButton = exports.Nav4SkeletonSwitcherButton = void 0;
|
|
8
|
-
var _react = require("
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _react2 = require("@emotion/react");
|
|
9
10
|
var _appSwitcher = _interopRequireDefault(require("@atlaskit/icon/core/app-switcher"));
|
|
10
|
-
var _appSwitcher2 = _interopRequireDefault(require("@atlaskit/icon/core/migration/app-switcher"));
|
|
11
11
|
var _SkeletonIconButton = require("./components/SkeletonIconButton");
|
|
12
12
|
var _theme = require("./theme");
|
|
13
13
|
/**
|
|
14
14
|
* @jsxRuntime classic
|
|
15
15
|
* @jsx jsx
|
|
16
16
|
*/
|
|
17
|
+
|
|
17
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
19
|
|
|
19
|
-
var skeletonSwitcherButtonStyles = (0,
|
|
20
|
+
var skeletonSwitcherButtonStyles = (0, _react2.css)({
|
|
20
21
|
margin: 0,
|
|
21
22
|
// eslint-disable-next-line @atlaskit/design-system/no-physical-properties
|
|
22
23
|
marginRight: "var(--ds-space-050, 4px)",
|
|
@@ -64,13 +65,13 @@ var SkeletonSwitcherButton = exports.SkeletonSwitcherButton = function SkeletonS
|
|
|
64
65
|
label = _ref$label === void 0 ? '' : _ref$label,
|
|
65
66
|
testId = _ref.testId;
|
|
66
67
|
var theme = (0, _theme.useTheme)();
|
|
67
|
-
return (0,
|
|
68
|
+
return (0, _react2.jsx)("button", {
|
|
68
69
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
69
70
|
style: theme.mode.iconButton.default,
|
|
70
71
|
"data-testid": testId,
|
|
71
72
|
css: skeletonSwitcherButtonStyles,
|
|
72
73
|
type: "button"
|
|
73
|
-
}, (0,
|
|
74
|
+
}, (0, _react2.jsx)(_appSwitcher.default, {
|
|
74
75
|
color: "currentColor",
|
|
75
76
|
spacing: "spacious",
|
|
76
77
|
label: label
|
|
@@ -85,7 +86,7 @@ var SkeletonSwitcherButton = exports.SkeletonSwitcherButton = function SkeletonS
|
|
|
85
86
|
var Nav4SkeletonSwitcherButton = exports.Nav4SkeletonSwitcherButton = function Nav4SkeletonSwitcherButton(_ref2) {
|
|
86
87
|
var _ref2$label = _ref2.label,
|
|
87
88
|
label = _ref2$label === void 0 ? '' : _ref2$label;
|
|
88
|
-
return (0,
|
|
89
|
+
return (0, _react2.jsx)(_SkeletonIconButton.SkeletonIconButton, null, (0, _react2.jsx)(_appSwitcher.default, {
|
|
89
90
|
label: label,
|
|
90
91
|
spacing: "spacious",
|
|
91
92
|
color: "var(--ds-icon, #292A2E)"
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import
|
|
4
|
-
import AppSwitcherIcon from '@atlaskit/icon/core/migration/app-switcher';
|
|
3
|
+
import AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
|
|
5
4
|
import { IconButton } from '../IconButton';
|
|
6
5
|
/**
|
|
7
6
|
* _App switcher__
|
|
@@ -81,7 +80,7 @@ export const AppSwitcherNav4 = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
81
80
|
...rest
|
|
82
81
|
} = props;
|
|
83
82
|
return /*#__PURE__*/React.createElement(IconButton, _extends({
|
|
84
|
-
icon: /*#__PURE__*/React.createElement(
|
|
83
|
+
icon: /*#__PURE__*/React.createElement(AppSwitcherIcon, {
|
|
85
84
|
label: typeof tooltip === 'string' ? tooltip : 'Switch apps',
|
|
86
85
|
color: "var(--ds-icon, #292A2E)"
|
|
87
86
|
}),
|
|
@@ -3,6 +3,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
* @jsxRuntime classic
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
|
|
6
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
9
|
import { css, jsx } from '@emotion/react';
|
|
8
10
|
import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import { Fragment } from 'react';
|
|
5
|
+
import React, { Fragment } from 'react';
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import QuestionCircleIcon from '@atlaskit/icon/core/
|
|
3
|
+
import QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
|
|
4
4
|
import { useTheme } from '../../theme';
|
|
5
5
|
import { BadgeContainer } from '../BadgeContainer';
|
|
6
6
|
import { IconButton } from '../IconButton';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import NotificationIcon from '@atlaskit/icon/core/
|
|
3
|
+
import NotificationIcon from '@atlaskit/icon/core/notification';
|
|
4
4
|
import { BadgeContainer } from '../BadgeContainer';
|
|
5
5
|
import { IconButton } from '../IconButton';
|
|
6
6
|
const NOTIFICATIONS_BADGE_ID = 'atlassian-navigation-notification-count';
|
|
@@ -7,7 +7,7 @@ import { forwardRef } 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
|
-
import
|
|
10
|
+
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
11
11
|
import { PrimaryButton } from '../PrimaryButton';
|
|
12
12
|
const buttonNoOpStyle = css({
|
|
13
13
|
'--noop': 1
|
|
@@ -35,8 +35,7 @@ export const PrimaryDropdownButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
35
35
|
} = props;
|
|
36
36
|
return jsx(PrimaryButton, _extends({
|
|
37
37
|
component: component,
|
|
38
|
-
iconAfter: jsx(
|
|
39
|
-
LEGACY_margin: `0 ${"var(--ds-space-negative-050, -4px)"} 0 ${"var(--ds-space-negative-100, -8px)"}`,
|
|
38
|
+
iconAfter: jsx(ChevronDownIcon, {
|
|
40
39
|
color: "currentColor",
|
|
41
40
|
label: "",
|
|
42
41
|
size: "small"
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
* @jsxRuntime classic
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
|
-
import { useCallback, useState } from 'react';
|
|
6
|
+
import React, { useCallback, useState } 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';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import { Fragment, memo } from 'react';
|
|
5
|
+
import React, { Fragment, memo } from 'react';
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
* @jsxRuntime classic
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
|
-
import { Fragment } from 'react';
|
|
6
|
+
import React, { 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';
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
* @jsxRuntime classic
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
|
-
import { Fragment } from 'react';
|
|
6
|
+
import React, { 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';
|
|
@@ -3,11 +3,11 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
* @jsxRuntime classic
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
|
-
import { Fragment } from 'react';
|
|
6
|
+
import React, { 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
|
-
import SearchIcon from '@atlaskit/icon/core/
|
|
10
|
+
import SearchIcon from '@atlaskit/icon/core/search';
|
|
11
11
|
import { CREATE_BREAKPOINT, varSearchBackgroundColor, varSearchBorderColor, varSearchColor, varSearchFocusBorderColor, varSearchHoverBackgroundColor } from '../../common/constants';
|
|
12
12
|
import { useTheme } from '../../theme';
|
|
13
13
|
import { stripEmptyProperties } from '../../utils';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import { Fragment } from 'react';
|
|
5
|
+
import React, { Fragment } from 'react';
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
|
-
import SettingsIcon from '@atlaskit/icon/core/
|
|
3
|
+
import SettingsIcon from '@atlaskit/icon/core/settings';
|
|
4
4
|
import { IconButton } from '../IconButton';
|
|
5
5
|
/**
|
|
6
6
|
* __Settings__
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import QuestionCircleIcon from '@atlaskit/icon/core/
|
|
3
|
-
import Nav4QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
|
|
2
|
+
import QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
|
|
4
3
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
5
4
|
import { useTheme } from './theme';
|
|
6
5
|
/**
|
|
@@ -35,7 +34,7 @@ export const SkeletonHelpButton = ({
|
|
|
35
34
|
*/
|
|
36
35
|
export const Nav4SkeletonHelpButton = ({
|
|
37
36
|
label = ''
|
|
38
|
-
}) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(
|
|
37
|
+
}) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(QuestionCircleIcon, {
|
|
39
38
|
label: label,
|
|
40
39
|
spacing: "spacious",
|
|
41
40
|
color: "var(--ds-icon, #292A2E)"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import NotificationIcon from '@atlaskit/icon/core/
|
|
3
|
-
import Nav4NotificationsIcon from '@atlaskit/icon/core/notification';
|
|
2
|
+
import NotificationIcon from '@atlaskit/icon/core/notification';
|
|
4
3
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
5
4
|
/**
|
|
6
5
|
* __Skeleton notification button__
|
|
@@ -28,7 +27,7 @@ export const SkeletonNotificationButton = ({
|
|
|
28
27
|
*/
|
|
29
28
|
export const Nav4SkeletonNotificationButton = ({
|
|
30
29
|
label = ''
|
|
31
|
-
}) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(
|
|
30
|
+
}) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(NotificationIcon, {
|
|
32
31
|
label: label,
|
|
33
32
|
color: "var(--ds-icon, #292A2E)"
|
|
34
33
|
}));
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import SettingsIcon from '@atlaskit/icon/core/
|
|
3
|
-
import Nav4SettingsIcon from '@atlaskit/icon/core/settings';
|
|
2
|
+
import SettingsIcon from '@atlaskit/icon/core/settings';
|
|
4
3
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
5
4
|
/**
|
|
6
5
|
* __Skeleton settings button__
|
|
@@ -27,7 +26,7 @@ export const SkeletonSettingsButton = ({
|
|
|
27
26
|
*/
|
|
28
27
|
export const Nav4SkeletonSettingsButton = ({
|
|
29
28
|
label = ''
|
|
30
|
-
}) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(
|
|
29
|
+
}) => /*#__PURE__*/React.createElement(SkeletonIconButton, null, /*#__PURE__*/React.createElement(SettingsIcon, {
|
|
31
30
|
label: label,
|
|
32
31
|
color: "var(--ds-icon, #292A2E)"
|
|
33
32
|
}));
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
|
|
5
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
8
|
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import
|
|
8
|
-
import AppSwitcherIcon from '@atlaskit/icon/core/migration/app-switcher';
|
|
9
|
+
import AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
|
|
9
10
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
10
11
|
import { useTheme } from './theme';
|
|
11
12
|
const skeletonSwitcherButtonStyles = css({
|
|
@@ -76,7 +77,7 @@ export const SkeletonSwitcherButton = ({
|
|
|
76
77
|
*/
|
|
77
78
|
export const Nav4SkeletonSwitcherButton = ({
|
|
78
79
|
label = ''
|
|
79
|
-
}) => jsx(SkeletonIconButton, null, jsx(
|
|
80
|
+
}) => jsx(SkeletonIconButton, null, jsx(AppSwitcherIcon, {
|
|
80
81
|
label: label,
|
|
81
82
|
spacing: "spacious",
|
|
82
83
|
color: "var(--ds-icon, #292A2E)"
|
|
@@ -3,8 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["component", "href", "id", "isDisabled", "isSelected", "label", "onBlur", "onClick", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "target", "testId", "tooltip"],
|
|
4
4
|
_excluded2 = ["component", "href", "id", "isDisabled", "isSelected", "label", "onBlur", "onClick", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "target", "testId", "tooltip"];
|
|
5
5
|
import React, { forwardRef } from 'react';
|
|
6
|
-
import
|
|
7
|
-
import AppSwitcherIcon from '@atlaskit/icon/core/migration/app-switcher';
|
|
6
|
+
import AppSwitcherIcon from '@atlaskit/icon/core/app-switcher';
|
|
8
7
|
import { IconButton } from '../IconButton';
|
|
9
8
|
/**
|
|
10
9
|
* _App switcher__
|
|
@@ -80,7 +79,7 @@ export var AppSwitcherNav4 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
80
79
|
tooltip = props.tooltip,
|
|
81
80
|
rest = _objectWithoutProperties(props, _excluded2);
|
|
82
81
|
return /*#__PURE__*/React.createElement(IconButton, _extends({
|
|
83
|
-
icon: /*#__PURE__*/React.createElement(
|
|
82
|
+
icon: /*#__PURE__*/React.createElement(AppSwitcherIcon, {
|
|
84
83
|
label: typeof tooltip === 'string' ? tooltip : 'Switch apps',
|
|
85
84
|
color: "var(--ds-icon, #292A2E)"
|
|
86
85
|
}),
|
|
@@ -3,6 +3,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
* @jsxRuntime classic
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
|
|
6
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
9
|
import { css, jsx } from '@emotion/react';
|
|
8
10
|
import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
* @jsxRuntime classic
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
|
-
import { Fragment } from 'react';
|
|
6
|
+
import React, { 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';
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["badge", "component", "href", "id", "isDisabled", "isSelected", "label", "onBlur", "onClick", "onFocus", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseUp", "target", "testId", "tooltip"];
|
|
4
4
|
import React, { forwardRef } from 'react';
|
|
5
|
-
import QuestionCircleIcon from '@atlaskit/icon/core/
|
|
5
|
+
import QuestionCircleIcon from '@atlaskit/icon/core/question-circle';
|
|
6
6
|
import { useTheme } from '../../theme';
|
|
7
7
|
import { BadgeContainer } from '../BadgeContainer';
|
|
8
8
|
import { IconButton } from '../IconButton';
|
|
@@ -5,6 +5,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
5
5
|
* @jsxRuntime classic
|
|
6
6
|
* @jsx jsx
|
|
7
7
|
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
|
|
8
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
11
|
import { css, jsx } from '@emotion/react';
|
|
10
12
|
import { useTheme } from '../../theme';
|