@atlaskit/atlassian-navigation 4.10.3 → 4.10.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 +8 -0
- package/dist/cjs/components/AtlassianNavigation/index.js +2 -3
- package/dist/cjs/components/AtlassianNavigation/skeleton.js +2 -3
- package/dist/cjs/components/Create/index.js +2 -3
- package/dist/cjs/components/Help/index.js +2 -3
- package/dist/cjs/components/Notifications/index.js +2 -3
- package/dist/cjs/components/PrimaryButton/index.js +2 -3
- package/dist/cjs/components/PrimaryDropdownButton/index.js +2 -3
- package/dist/cjs/components/Search/index.js +2 -3
- package/dist/cjs/components/Settings/index.js +2 -3
- package/dist/cjs/components/SignIn/index.js +2 -3
- package/dist/cjs/theme/theme-generator.js +2 -3
- package/dist/es2019/components/AtlassianNavigation/index.js +1 -2
- package/dist/es2019/components/AtlassianNavigation/skeleton.js +1 -2
- package/dist/es2019/components/Create/index.js +1 -2
- package/dist/es2019/components/Help/index.js +1 -2
- package/dist/es2019/components/Notifications/index.js +1 -2
- package/dist/es2019/components/PrimaryButton/index.js +1 -2
- package/dist/es2019/components/PrimaryDropdownButton/index.js +1 -2
- package/dist/es2019/components/Search/index.js +1 -2
- package/dist/es2019/components/Settings/index.js +1 -2
- package/dist/es2019/components/SignIn/index.js +1 -2
- package/dist/es2019/theme/theme-generator.js +1 -2
- package/dist/esm/components/AtlassianNavigation/index.js +1 -2
- package/dist/esm/components/AtlassianNavigation/skeleton.js +1 -2
- package/dist/esm/components/Create/index.js +1 -2
- package/dist/esm/components/Help/index.js +1 -2
- package/dist/esm/components/Notifications/index.js +1 -2
- package/dist/esm/components/PrimaryButton/index.js +1 -2
- package/dist/esm/components/PrimaryDropdownButton/index.js +1 -2
- package/dist/esm/components/Search/index.js +1 -2
- package/dist/esm/components/Settings/index.js +1 -2
- package/dist/esm/components/SignIn/index.js +1 -2
- package/dist/esm/theme/theme-generator.js +1 -2
- package/dist/types/components/AtlassianNavigation/index.d.ts +0 -1
- package/dist/types/components/AtlassianNavigation/skeleton.d.ts +0 -1
- package/dist/types/components/Create/index.d.ts +0 -1
- package/dist/types/components/Help/index.d.ts +0 -1
- package/dist/types/components/Notifications/index.d.ts +0 -1
- package/dist/types/components/PrimaryButton/index.d.ts +0 -1
- package/dist/types/components/PrimaryDropdownButton/index.d.ts +0 -1
- package/dist/types/components/Search/index.d.ts +0 -1
- package/dist/types/components/Settings/index.d.ts +0 -1
- package/dist/types/components/SignIn/index.d.ts +0 -1
- package/dist/types/theme/theme-generator.d.ts +0 -1
- package/dist/types/theme/types.d.ts +2 -2
- package/dist/types-ts4.5/components/AtlassianNavigation/index.d.ts +0 -1
- package/dist/types-ts4.5/components/AtlassianNavigation/skeleton.d.ts +0 -1
- package/dist/types-ts4.5/components/Create/index.d.ts +0 -1
- package/dist/types-ts4.5/components/Help/index.d.ts +0 -1
- package/dist/types-ts4.5/components/Notifications/index.d.ts +0 -1
- package/dist/types-ts4.5/components/PrimaryButton/index.d.ts +0 -1
- package/dist/types-ts4.5/components/PrimaryDropdownButton/index.d.ts +0 -1
- package/dist/types-ts4.5/components/Search/index.d.ts +0 -1
- package/dist/types-ts4.5/components/Settings/index.d.ts +0 -1
- package/dist/types-ts4.5/components/SignIn/index.d.ts +0 -1
- package/dist/types-ts4.5/theme/theme-generator.d.ts +0 -1
- package/dist/types-ts4.5/theme/types.d.ts +2 -2
- package/package.json +17 -6
- package/dist/cjs/components/Create/skeleton.js +0 -46
- package/dist/es2019/components/Create/skeleton.js +0 -40
- package/dist/esm/components/Create/skeleton.js +0 -38
- package/dist/types/components/Create/skeleton.d.ts +0 -2
- package/dist/types-ts4.5/components/Create/skeleton.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 4.10.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#104068](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104068)
|
|
8
|
+
[`624d374b427b7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/624d374b427b7) -
|
|
9
|
+
Cleans up and updates dependencies. Removes unused internal exports and deletes unused files.
|
|
10
|
+
|
|
3
11
|
## 4.10.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.AtlassianNavigation = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _analyticsNamespacedContext = require("@atlaskit/analytics-namespaced-context");
|
|
@@ -126,5 +126,4 @@ var AtlassianNavigation = exports.AtlassianNavigation = function AtlassianNaviga
|
|
|
126
126
|
css: [rightStyles, noRightMarginStyles],
|
|
127
127
|
"data-vc": "atlassian-navigation-secondary-actions"
|
|
128
128
|
}, Notifications && (0, _react.jsx)(Notifications, null), Help && (0, _react.jsx)(Help, null), Settings && (0, _react.jsx)(Settings, null), SignIn && (0, _react.jsx)(SignIn, null), Profile && (0, _react.jsx)(Profile, null))))));
|
|
129
|
-
};
|
|
130
|
-
var _default = exports.default = AtlassianNavigation;
|
|
129
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.NavigationSkeleton = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
9
|
var _constants = require("../../common/constants");
|
|
@@ -108,5 +108,4 @@ var NavigationSkeleton = exports.NavigationSkeleton = function NavigationSkeleto
|
|
|
108
108
|
size: 26
|
|
109
109
|
});
|
|
110
110
|
}), (0, _react.jsx)(_skeleton4.ProfileSkeleton, null))));
|
|
111
|
-
};
|
|
112
|
-
var _default = exports.default = NavigationSkeleton;
|
|
111
|
+
};
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.Create = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("react");
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
@@ -100,5 +100,4 @@ var Create = exports.Create = function Create(_ref2) {
|
|
|
100
100
|
"aria-label": text,
|
|
101
101
|
"data-hide-on-largescreens": true
|
|
102
102
|
}));
|
|
103
|
-
};
|
|
104
|
-
var _default = exports.default = Create;
|
|
103
|
+
};
|
|
@@ -5,7 +5,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.Help = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -81,5 +81,4 @@ var Help = exports.Help = /*#__PURE__*/(0, _react.forwardRef)(function (props, r
|
|
|
81
81
|
}, button) : /*#__PURE__*/_react.default.createElement("div", {
|
|
82
82
|
role: "listitem"
|
|
83
83
|
}, button);
|
|
84
|
-
});
|
|
85
|
-
var _default = exports.default = Help;
|
|
84
|
+
});
|
|
@@ -5,7 +5,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.Notifications = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -76,5 +76,4 @@ var Notifications = exports.Notifications = /*#__PURE__*/(0, _react.forwardRef)(
|
|
|
76
76
|
// These are all explicit, leaving it in just in case
|
|
77
77
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
78
78
|
}, rest)));
|
|
79
|
-
});
|
|
80
|
-
var _default = exports.default = Notifications;
|
|
79
|
+
});
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.PrimaryButton = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
@@ -97,5 +97,4 @@ var PrimaryButton = exports.PrimaryButton = /*#__PURE__*/(0, _react.forwardRef)(
|
|
|
97
97
|
}, button);
|
|
98
98
|
}
|
|
99
99
|
return button;
|
|
100
|
-
});
|
|
101
|
-
var _default = exports.default = PrimaryButton;
|
|
100
|
+
});
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.PrimaryDropdownButton = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
10
|
var _react = require("react");
|
|
@@ -61,5 +61,4 @@ var PrimaryDropdownButton = exports.PrimaryDropdownButton = /*#__PURE__*/(0, _re
|
|
|
61
61
|
// These are mostly explicit, leaving it in just in case
|
|
62
62
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
63
63
|
}, rest));
|
|
64
|
-
});
|
|
65
|
-
var _default = exports.default = PrimaryDropdownButton;
|
|
64
|
+
});
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.Search = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
@@ -173,5 +173,4 @@ var Search = exports.Search = function Search(props) {
|
|
|
173
173
|
// Made all explicit, this is left just in case
|
|
174
174
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
175
175
|
}, rest)));
|
|
176
|
-
};
|
|
177
|
-
var _default = exports.default = Search;
|
|
176
|
+
};
|
|
@@ -5,7 +5,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.Settings = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -66,5 +66,4 @@ var Settings = exports.Settings = /*#__PURE__*/(0, _react.forwardRef)(function (
|
|
|
66
66
|
testId: testId,
|
|
67
67
|
tooltip: tooltip
|
|
68
68
|
}, rest)));
|
|
69
|
-
});
|
|
70
|
-
var _default = exports.default = Settings;
|
|
69
|
+
});
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.SignIn = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
@@ -64,5 +64,4 @@ var SignIn = exports.SignIn = function SignIn(props) {
|
|
|
64
64
|
// These are all explicit, leaving it in just in case
|
|
65
65
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
66
66
|
}, rest)));
|
|
67
|
-
};
|
|
68
|
-
var _default = exports.default = SignIn;
|
|
67
|
+
};
|
|
@@ -5,7 +5,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.generateTheme =
|
|
8
|
+
exports.generateTheme = void 0;
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _defaultTheme = _interopRequireWildcard(require("./default-theme"));
|
|
11
11
|
var _themeHelpers = require("./theme-helpers");
|
|
@@ -115,5 +115,4 @@ var generateTheme = exports.generateTheme = function generateTheme(themeColors)
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
|
-
};
|
|
119
|
-
var _default = exports.default = generateTheme;
|
|
118
|
+
};
|
|
@@ -115,5 +115,4 @@ export const AtlassianNavigation = props => {
|
|
|
115
115
|
css: [rightStyles, noRightMarginStyles],
|
|
116
116
|
"data-vc": "atlassian-navigation-secondary-actions"
|
|
117
117
|
}, Notifications && jsx(Notifications, null), Help && jsx(Help, null), Settings && jsx(Settings, null), SignIn && jsx(SignIn, null), Profile && jsx(Profile, null))))));
|
|
118
|
-
};
|
|
119
|
-
export default AtlassianNavigation;
|
|
118
|
+
};
|
|
@@ -55,5 +55,4 @@ export const PrimaryDropdownButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
55
55
|
// These are mostly explicit, leaving it in just in case
|
|
56
56
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
57
57
|
}, rest));
|
|
58
|
-
});
|
|
59
|
-
export default PrimaryDropdownButton;
|
|
58
|
+
});
|
|
@@ -118,5 +118,4 @@ export var AtlassianNavigation = function AtlassianNavigation(props) {
|
|
|
118
118
|
css: [rightStyles, noRightMarginStyles],
|
|
119
119
|
"data-vc": "atlassian-navigation-secondary-actions"
|
|
120
120
|
}, Notifications && jsx(Notifications, null), Help && jsx(Help, null), Settings && jsx(Settings, null), SignIn && jsx(SignIn, null), Profile && jsx(Profile, null))))));
|
|
121
|
-
};
|
|
122
|
-
export default AtlassianNavigation;
|
|
121
|
+
};
|
|
@@ -66,5 +66,4 @@ export var Notifications = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
66
66
|
// These are all explicit, leaving it in just in case
|
|
67
67
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
68
68
|
}, rest)));
|
|
69
|
-
});
|
|
70
|
-
export default Notifications;
|
|
69
|
+
});
|
|
@@ -55,5 +55,4 @@ export var PrimaryDropdownButton = /*#__PURE__*/forwardRef(function (props, ref)
|
|
|
55
55
|
// These are mostly explicit, leaving it in just in case
|
|
56
56
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-spread-props
|
|
57
57
|
}, rest));
|
|
58
|
-
});
|
|
59
|
-
export default PrimaryDropdownButton;
|
|
58
|
+
});
|
|
@@ -13,4 +13,3 @@ import { type AtlassianNavigationProps } from './types';
|
|
|
13
13
|
* - [Code](https://atlassian.design/components/atlassian-navigation/examples)
|
|
14
14
|
*/
|
|
15
15
|
export declare const AtlassianNavigation: (props: AtlassianNavigationProps) => jsx.JSX.Element;
|
|
16
|
-
export default AtlassianNavigation;
|
|
@@ -18,4 +18,3 @@ import { type NavigationSkeletonProps } from './types';
|
|
|
18
18
|
* - [Code](https://atlassian.design/components/{packageName}/code)
|
|
19
19
|
*/
|
|
20
20
|
export declare const NavigationSkeleton: ({ primaryItemsCount, secondaryItemsCount, theme, showSiteName, shouldShowSearch, testId, }: NavigationSkeletonProps) => jsx.JSX.Element;
|
|
21
|
-
export default NavigationSkeleton;
|
|
@@ -10,4 +10,3 @@ import { type CreateProps } from './types';
|
|
|
10
10
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
11
11
|
*/
|
|
12
12
|
export declare const Create: ({ onClick, href, text, buttonTooltip, iconButtonTooltip, testId, label, }: CreateProps) => jsx.JSX.Element;
|
|
13
|
-
export default Create;
|
|
@@ -15,4 +15,3 @@ export declare const PrimaryButton: import("react").ForwardRefExoticComponent<Om
|
|
|
15
15
|
tooltip?: import("react").ReactNode;
|
|
16
16
|
onClick?: ((event: import("react").MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: any) => void) | undefined;
|
|
17
17
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
18
|
-
export default PrimaryButton;
|
|
@@ -8,4 +8,3 @@ import React from 'react';
|
|
|
8
8
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
9
9
|
*/
|
|
10
10
|
export declare const Settings: React.ForwardRefExoticComponent<import("../IconButton/types").BaseIconButtonProps & React.RefAttributes<any>>;
|
|
11
|
-
export default Settings;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type CSSObject } from '@emotion/react';
|
|
2
|
-
|
|
2
|
+
type CSSProperties = CSSObject & {
|
|
3
3
|
backgroundColor: string;
|
|
4
4
|
color: string;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type ButtonCSSProperties = CSSProperties & {
|
|
7
7
|
boxShadow: string;
|
|
8
8
|
};
|
|
9
9
|
export type ButtonCSSContext = {
|
|
@@ -13,4 +13,3 @@ import { type AtlassianNavigationProps } from './types';
|
|
|
13
13
|
* - [Code](https://atlassian.design/components/atlassian-navigation/examples)
|
|
14
14
|
*/
|
|
15
15
|
export declare const AtlassianNavigation: (props: AtlassianNavigationProps) => jsx.JSX.Element;
|
|
16
|
-
export default AtlassianNavigation;
|
|
@@ -18,4 +18,3 @@ import { type NavigationSkeletonProps } from './types';
|
|
|
18
18
|
* - [Code](https://atlassian.design/components/{packageName}/code)
|
|
19
19
|
*/
|
|
20
20
|
export declare const NavigationSkeleton: ({ primaryItemsCount, secondaryItemsCount, theme, showSiteName, shouldShowSearch, testId, }: NavigationSkeletonProps) => jsx.JSX.Element;
|
|
21
|
-
export default NavigationSkeleton;
|
|
@@ -10,4 +10,3 @@ import { type CreateProps } from './types';
|
|
|
10
10
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
11
11
|
*/
|
|
12
12
|
export declare const Create: ({ onClick, href, text, buttonTooltip, iconButtonTooltip, testId, label, }: CreateProps) => jsx.JSX.Element;
|
|
13
|
-
export default Create;
|
|
@@ -15,4 +15,3 @@ export declare const PrimaryButton: import("react").ForwardRefExoticComponent<Om
|
|
|
15
15
|
tooltip?: import("react").ReactNode;
|
|
16
16
|
onClick?: ((event: import("react").MouseEvent<HTMLElement, MouseEvent>, analyticsEvent: any) => void) | undefined;
|
|
17
17
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
18
|
-
export default PrimaryButton;
|
|
@@ -8,4 +8,3 @@ import React from 'react';
|
|
|
8
8
|
* - [Code](https://atlassian.design/components/atlassian-navigation/code)
|
|
9
9
|
*/
|
|
10
10
|
export declare const Settings: React.ForwardRefExoticComponent<import("../IconButton/types").BaseIconButtonProps & React.RefAttributes<any>>;
|
|
11
|
-
export default Settings;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type CSSObject } from '@emotion/react';
|
|
2
|
-
|
|
2
|
+
type CSSProperties = CSSObject & {
|
|
3
3
|
backgroundColor: string;
|
|
4
4
|
color: string;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type ButtonCSSProperties = CSSProperties & {
|
|
7
7
|
boxShadow: string;
|
|
8
8
|
};
|
|
9
9
|
export type ButtonCSSContext = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.4",
|
|
4
4
|
"description": "A horizontal navigation component for Atlassian products.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
"@atlaskit/analytics-namespaced-context": "^6.12.0",
|
|
49
49
|
"@atlaskit/button": "^20.3.0",
|
|
50
50
|
"@atlaskit/ds-lib": "^3.3.0",
|
|
51
|
-
"@atlaskit/icon": "^23.
|
|
51
|
+
"@atlaskit/icon": "^23.4.0",
|
|
52
52
|
"@atlaskit/logo": "*",
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
54
54
|
"@atlaskit/popup": "^1.30.0",
|
|
55
55
|
"@atlaskit/primitives": "^13.3.0",
|
|
56
56
|
"@atlaskit/theme": "^14.0.0",
|
|
57
|
-
"@atlaskit/tokens": "^3.
|
|
57
|
+
"@atlaskit/tokens": "^3.2.0",
|
|
58
58
|
"@atlaskit/tooltip": "^19.0.0",
|
|
59
59
|
"@atlaskit/width-detector": "^4.3.0",
|
|
60
60
|
"@babel/runtime": "^7.0.0",
|
|
@@ -69,14 +69,25 @@
|
|
|
69
69
|
"@af/accessibility-testing": "*",
|
|
70
70
|
"@af/integration-testing": "*",
|
|
71
71
|
"@af/visual-regression": "*",
|
|
72
|
-
"@atlaskit/
|
|
72
|
+
"@atlaskit/analytics-next": "^10.2.1",
|
|
73
|
+
"@atlaskit/atlassian-notifications": "^0.5.0",
|
|
74
|
+
"@atlaskit/avatar": "^21.17.7",
|
|
75
|
+
"@atlaskit/badge": "^17.0.1",
|
|
76
|
+
"@atlaskit/docs": "*",
|
|
77
|
+
"@atlaskit/drawer": "^9.3.2",
|
|
78
|
+
"@atlaskit/dropdown-menu": "^12.25.0",
|
|
79
|
+
"@atlaskit/form": "^11.0.1",
|
|
80
|
+
"@atlaskit/menu": "^2.13.8",
|
|
73
81
|
"@atlaskit/notification-indicator": "*",
|
|
74
82
|
"@atlaskit/notification-log-client": "*",
|
|
83
|
+
"@atlaskit/section-message": "^6.8.3",
|
|
84
|
+
"@atlaskit/spinner": "^17.0.0",
|
|
85
|
+
"@atlaskit/textfield": "^6.7.1",
|
|
75
86
|
"@atlaskit/visual-regression": "*",
|
|
76
|
-
"@atlassian/
|
|
87
|
+
"@atlassian/switcher": "^33.0.0",
|
|
88
|
+
"@atlassian/switcher-test-utils": "^3.2.0",
|
|
77
89
|
"@testing-library/react": "^12.1.5",
|
|
78
90
|
"@testing-library/react-hooks": "^8.0.1",
|
|
79
|
-
"jest-axe": "^8.0.0",
|
|
80
91
|
"jest-emotion": "^10.0.32",
|
|
81
92
|
"react": "^16.8.0",
|
|
82
93
|
"react-dom": "^16.8.0",
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.CreateSkeleton = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _react = require("react");
|
|
10
|
-
var _react2 = require("@emotion/react");
|
|
11
|
-
var _constants = require("../../common/constants");
|
|
12
|
-
var _theme = require("../../theme");
|
|
13
|
-
var _skeleton = require("../IconButton/skeleton");
|
|
14
|
-
/**
|
|
15
|
-
* @jsxRuntime classic
|
|
16
|
-
* @jsx jsx
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
|
-
|
|
21
|
-
var buttonHeight = "var(--ds-space-400, 32px)";
|
|
22
|
-
var skeletonStyles = (0, _react2.css)({
|
|
23
|
-
width: 68,
|
|
24
|
-
height: buttonHeight,
|
|
25
|
-
borderRadius: "var(--ds-border-radius, 3px)",
|
|
26
|
-
marginInlineStart: "var(--ds-space-150, 12px)",
|
|
27
|
-
opacity: 0.15
|
|
28
|
-
});
|
|
29
|
-
var mobileStyles = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (max-width: ".concat(_constants.CREATE_BREAKPOINT - 1, "px)"), {
|
|
30
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
31
|
-
display: 'none !important'
|
|
32
|
-
}));
|
|
33
|
-
|
|
34
|
-
// Not exported to consumers, only used in NavigationSkeleton
|
|
35
|
-
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
36
|
-
var CreateSkeleton = exports.CreateSkeleton = function CreateSkeleton() {
|
|
37
|
-
var theme = (0, _theme.useTheme)();
|
|
38
|
-
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)("div", {
|
|
39
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
40
|
-
style: theme.mode.skeleton,
|
|
41
|
-
css: [skeletonStyles, mobileStyles]
|
|
42
|
-
}), (0, _react2.jsx)(_skeleton.IconButtonSkeleton, {
|
|
43
|
-
css: mobileStyles,
|
|
44
|
-
size: 26
|
|
45
|
-
}));
|
|
46
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { Fragment } from 'react';
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
-
import { css, jsx } from '@emotion/react';
|
|
9
|
-
import { CREATE_BREAKPOINT } from '../../common/constants';
|
|
10
|
-
import { useTheme } from '../../theme';
|
|
11
|
-
import { IconButtonSkeleton } from '../IconButton/skeleton';
|
|
12
|
-
const buttonHeight = "var(--ds-space-400, 32px)";
|
|
13
|
-
const skeletonStyles = css({
|
|
14
|
-
width: 68,
|
|
15
|
-
height: buttonHeight,
|
|
16
|
-
borderRadius: "var(--ds-border-radius, 3px)",
|
|
17
|
-
marginInlineStart: "var(--ds-space-150, 12px)",
|
|
18
|
-
opacity: 0.15
|
|
19
|
-
});
|
|
20
|
-
const mobileStyles = css({
|
|
21
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
22
|
-
[`@media (max-width: ${CREATE_BREAKPOINT - 1}px)`]: {
|
|
23
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
24
|
-
display: 'none !important'
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
// Not exported to consumers, only used in NavigationSkeleton
|
|
29
|
-
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
30
|
-
export const CreateSkeleton = () => {
|
|
31
|
-
const theme = useTheme();
|
|
32
|
-
return jsx(Fragment, null, jsx("div", {
|
|
33
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
34
|
-
style: theme.mode.skeleton,
|
|
35
|
-
css: [skeletonStyles, mobileStyles]
|
|
36
|
-
}), jsx(IconButtonSkeleton, {
|
|
37
|
-
css: mobileStyles,
|
|
38
|
-
size: 26
|
|
39
|
-
}));
|
|
40
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
/**
|
|
3
|
-
* @jsxRuntime classic
|
|
4
|
-
* @jsx jsx
|
|
5
|
-
*/
|
|
6
|
-
import { Fragment } from 'react';
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
-
import { css, jsx } from '@emotion/react';
|
|
10
|
-
import { CREATE_BREAKPOINT } from '../../common/constants';
|
|
11
|
-
import { useTheme } from '../../theme';
|
|
12
|
-
import { IconButtonSkeleton } from '../IconButton/skeleton';
|
|
13
|
-
var buttonHeight = "var(--ds-space-400, 32px)";
|
|
14
|
-
var skeletonStyles = css({
|
|
15
|
-
width: 68,
|
|
16
|
-
height: buttonHeight,
|
|
17
|
-
borderRadius: "var(--ds-border-radius, 3px)",
|
|
18
|
-
marginInlineStart: "var(--ds-space-150, 12px)",
|
|
19
|
-
opacity: 0.15
|
|
20
|
-
});
|
|
21
|
-
var mobileStyles = css(_defineProperty({}, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
|
|
22
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
23
|
-
display: 'none !important'
|
|
24
|
-
}));
|
|
25
|
-
|
|
26
|
-
// Not exported to consumers, only used in NavigationSkeleton
|
|
27
|
-
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
28
|
-
export var CreateSkeleton = function CreateSkeleton() {
|
|
29
|
-
var theme = useTheme();
|
|
30
|
-
return jsx(Fragment, null, jsx("div", {
|
|
31
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
32
|
-
style: theme.mode.skeleton,
|
|
33
|
-
css: [skeletonStyles, mobileStyles]
|
|
34
|
-
}), jsx(IconButtonSkeleton, {
|
|
35
|
-
css: mobileStyles,
|
|
36
|
-
size: 26
|
|
37
|
-
}));
|
|
38
|
-
};
|