@atlaskit/side-navigation 5.0.1 → 6.0.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/afm-cc/tsconfig.json +3 -0
- package/afm-jira/tsconfig.json +3 -0
- package/afm-post-office/tsconfig.json +3 -0
- package/dist/cjs/components/Footer/index.compiled.css +3 -0
- package/dist/cjs/components/Footer/index.js +21 -18
- package/dist/cjs/components/Header/index.js +16 -18
- package/dist/cjs/components/LoadingItems/index.compiled.css +7 -0
- package/dist/cjs/components/LoadingItems/index.js +9 -24
- package/dist/cjs/components/NavigationContent/index.compiled.css +46 -0
- package/dist/cjs/components/NavigationContent/index.js +27 -26
- package/dist/cjs/components/NavigationFooter/index.compiled.css +1 -0
- package/dist/cjs/components/NavigationFooter/index.js +13 -9
- package/dist/cjs/components/NavigationHeader/index.compiled.css +5 -0
- package/dist/cjs/components/NavigationHeader/index.js +13 -18
- package/dist/cjs/components/NestableNavigationContent/index.compiled.css +9 -0
- package/dist/cjs/components/NestableNavigationContent/index.js +14 -29
- package/dist/cjs/components/NestableNavigationContent/nesting-motion.js +3 -6
- package/dist/cjs/components/NestingItem/index.compiled.css +1 -0
- package/dist/cjs/components/NestingItem/index.js +17 -20
- package/dist/cjs/components/SideNavigation/index.compiled.css +10 -0
- package/dist/cjs/components/SideNavigation/index.js +17 -23
- package/dist/es2019/components/Footer/index.compiled.css +3 -0
- package/dist/es2019/components/Footer/index.js +10 -8
- package/dist/es2019/components/Header/index.js +13 -18
- package/dist/es2019/components/LoadingItems/index.compiled.css +7 -0
- package/dist/es2019/components/LoadingItems/index.js +9 -23
- package/dist/es2019/components/NavigationContent/index.compiled.css +46 -0
- package/dist/es2019/components/NavigationContent/index.js +22 -26
- package/dist/es2019/components/NavigationFooter/index.compiled.css +1 -0
- package/dist/es2019/components/NavigationFooter/index.js +9 -7
- package/dist/es2019/components/NavigationHeader/index.compiled.css +5 -0
- package/dist/es2019/components/NavigationHeader/index.js +10 -17
- package/dist/es2019/components/NestableNavigationContent/index.compiled.css +9 -0
- package/dist/es2019/components/NestableNavigationContent/index.js +14 -28
- package/dist/es2019/components/NestableNavigationContent/nesting-motion.js +2 -8
- package/dist/es2019/components/NestingItem/index.compiled.css +1 -0
- package/dist/es2019/components/NestingItem/index.js +17 -21
- package/dist/es2019/components/SideNavigation/index.compiled.css +10 -0
- package/dist/es2019/components/SideNavigation/index.js +9 -21
- package/dist/esm/components/Footer/index.compiled.css +3 -0
- package/dist/esm/components/Footer/index.js +10 -8
- package/dist/esm/components/Header/index.js +13 -18
- package/dist/esm/components/LoadingItems/index.compiled.css +7 -0
- package/dist/esm/components/LoadingItems/index.js +9 -23
- package/dist/esm/components/NavigationContent/index.compiled.css +46 -0
- package/dist/esm/components/NavigationContent/index.js +25 -26
- package/dist/esm/components/NavigationFooter/index.compiled.css +1 -0
- package/dist/esm/components/NavigationFooter/index.js +9 -7
- package/dist/esm/components/NavigationHeader/index.compiled.css +5 -0
- package/dist/esm/components/NavigationHeader/index.js +10 -17
- package/dist/esm/components/NestableNavigationContent/index.compiled.css +9 -0
- package/dist/esm/components/NestableNavigationContent/index.js +14 -28
- package/dist/esm/components/NestableNavigationContent/nesting-motion.js +2 -8
- package/dist/esm/components/NestingItem/index.compiled.css +1 -0
- package/dist/esm/components/NestingItem/index.js +17 -21
- package/dist/esm/components/SideNavigation/index.compiled.css +10 -0
- package/dist/esm/components/SideNavigation/index.js +13 -21
- package/dist/types/components/Footer/index.d.ts +2 -2
- package/dist/types/components/Header/index.d.ts +3 -4
- package/dist/types/components/LoadingItems/index.d.ts +5 -1
- package/dist/types/components/NavigationContent/index.d.ts +2 -2
- package/dist/types/components/NavigationFooter/index.d.ts +6 -2
- package/dist/types/components/NavigationHeader/index.d.ts +1 -6
- package/dist/types/components/NestableNavigationContent/index.d.ts +1 -2
- package/dist/types/components/NestableNavigationContent/nesting-motion.d.ts +2 -7
- package/dist/types-ts4.5/components/Footer/index.d.ts +2 -2
- package/dist/types-ts4.5/components/Header/index.d.ts +3 -4
- package/dist/types-ts4.5/components/LoadingItems/index.d.ts +5 -1
- package/dist/types-ts4.5/components/NavigationContent/index.d.ts +2 -2
- package/dist/types-ts4.5/components/NavigationFooter/index.d.ts +6 -2
- package/dist/types-ts4.5/components/NavigationHeader/index.d.ts +1 -6
- package/dist/types-ts4.5/components/NestableNavigationContent/index.d.ts +1 -2
- package/dist/types-ts4.5/components/NestableNavigationContent/nesting-motion.d.ts +2 -7
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/side-navigation
|
|
2
2
|
|
|
3
|
+
## 6.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#119150](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/119150)
|
|
8
|
+
[`5ae7ca716c848`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5ae7ca716c848) -
|
|
9
|
+
Migrated from `@emotion/react` to `@compiled/react` in order to improve performance, align with
|
|
10
|
+
the rest of the Atlaskit techstack, and support React 18 Streaming SSR.
|
|
11
|
+
|
|
12
|
+
Please note, in order to use this version of `@atlaskit/side-navigation`, you will need to ensure
|
|
13
|
+
that your bundler is configured to handle `.css` imports correctly. Most bundlers come with
|
|
14
|
+
built-in support for `.css` imports, so you may not need to do anything. If you are using a
|
|
15
|
+
different bundler, please refer to the documentation for that bundler to understand how to handle
|
|
16
|
+
`.css` imports.
|
|
17
|
+
|
|
18
|
+
For more information on the migration, please refer to
|
|
19
|
+
[RFC-73 Migrating our components to Compiled CSS-in-JS](https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/85953).
|
|
20
|
+
|
|
3
21
|
## 5.0.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
package/afm-jira/tsconfig.json
CHANGED
|
@@ -1,25 +1,28 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
6
|
Object.defineProperty(exports, "__esModule", {
|
|
5
7
|
value: true
|
|
6
8
|
});
|
|
7
9
|
exports.default = void 0;
|
|
10
|
+
require("./index.compiled.css");
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
8
13
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
14
|
var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
|
|
11
|
-
var
|
|
15
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
12
16
|
var _colors = require("@atlaskit/theme/colors");
|
|
13
17
|
var _styles = require("../../common/styles");
|
|
14
18
|
var _Header = require("../Header");
|
|
15
19
|
var _Item = require("../Item");
|
|
20
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
22
|
/* eslint-disable @repo/internal/react/consistent-props-definitions */
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
width: '1.5rem',
|
|
21
|
-
height: '1.5rem'
|
|
22
|
-
});
|
|
23
|
+
var styles = {
|
|
24
|
+
iconContainer: "_1e0c1o8l _1bsb1k8s _4t3i1k8s"
|
|
25
|
+
};
|
|
23
26
|
/**
|
|
24
27
|
* __Footer__
|
|
25
28
|
*
|
|
@@ -76,7 +79,7 @@ var OldFooter = function OldFooter(props) {
|
|
|
76
79
|
testId: testId
|
|
77
80
|
};
|
|
78
81
|
}(props);
|
|
79
|
-
return /*#__PURE__*/
|
|
82
|
+
return /*#__PURE__*/React.createElement(_Item.CustomItem, (0, _extends2.default)({}, safeProps, {
|
|
80
83
|
component: props.component || _Header.Container
|
|
81
84
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
82
85
|
,
|
|
@@ -95,21 +98,21 @@ var Footer = function Footer(_ref2) {
|
|
|
95
98
|
children = _ref2.children,
|
|
96
99
|
iconBefore = _ref2.iconBefore,
|
|
97
100
|
testId = _ref2.testId;
|
|
98
|
-
return /*#__PURE__*/
|
|
101
|
+
return /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
99
102
|
padding: "space.100",
|
|
100
103
|
testId: testId
|
|
101
|
-
}, /*#__PURE__*/
|
|
104
|
+
}, /*#__PURE__*/React.createElement(_compiled.Stack, {
|
|
102
105
|
space: "space.100",
|
|
103
106
|
alignInline: "center"
|
|
104
|
-
}, /*#__PURE__*/
|
|
105
|
-
xcss:
|
|
106
|
-
}, iconBefore), /*#__PURE__*/
|
|
107
|
+
}, /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
108
|
+
xcss: styles.iconContainer
|
|
109
|
+
}, iconBefore), /*#__PURE__*/React.createElement(_compiled.Stack, {
|
|
107
110
|
space: "space.075"
|
|
108
|
-
}, /*#__PURE__*/
|
|
111
|
+
}, /*#__PURE__*/React.createElement(_compiled.Text, {
|
|
109
112
|
size: "UNSAFE_small",
|
|
110
113
|
align: "center",
|
|
111
114
|
color: "inherit"
|
|
112
|
-
}, children), description && /*#__PURE__*/
|
|
115
|
+
}, children), description && /*#__PURE__*/React.createElement(_compiled.Text, {
|
|
113
116
|
size: "UNSAFE_small",
|
|
114
117
|
as: "p",
|
|
115
118
|
align: "center",
|
|
@@ -134,7 +137,7 @@ var FooterFacade = function FooterFacade(_ref3) {
|
|
|
134
137
|
cssFn = _ref3.cssFn,
|
|
135
138
|
onClick = _ref3.onClick;
|
|
136
139
|
if (!useDeprecatedApi) {
|
|
137
|
-
return /*#__PURE__*/
|
|
140
|
+
return /*#__PURE__*/React.createElement(Footer, {
|
|
138
141
|
iconBefore: iconBefore,
|
|
139
142
|
description: description,
|
|
140
143
|
testId: testId
|
|
@@ -143,7 +146,7 @@ var FooterFacade = function FooterFacade(_ref3) {
|
|
|
143
146
|
if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'CI') {
|
|
144
147
|
(0, _warnOnce.default)('The `@atlaskit/side-navigation` Footer has simplified its API, removing support for the `component`, `cssFn` and `onClick` props.\n\nThese props will stop working in a future major release. Reach out to #help-design-system on slack for help.');
|
|
145
148
|
}
|
|
146
|
-
return /*#__PURE__*/
|
|
149
|
+
return /*#__PURE__*/React.createElement(OldFooter, {
|
|
147
150
|
onClick: onClick,
|
|
148
151
|
component: component
|
|
149
152
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
@@ -8,23 +9,14 @@ exports.default = exports.Container = void 0;
|
|
|
8
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
-
var _react = require("react");
|
|
12
|
-
var _react2 = require("@emotion/react");
|
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _colors = require("@atlaskit/theme/colors");
|
|
14
14
|
var _styles = require("../../common/styles");
|
|
15
15
|
var _Item = require("../Item");
|
|
16
16
|
var _excluded = ["children", "data-testid"],
|
|
17
17
|
_excluded2 = ["children"];
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
* @jsx jsx
|
|
21
|
-
*/
|
|
22
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
|
-
var containerStyles = (0, _react2.css)({
|
|
24
|
-
display: 'block',
|
|
25
|
-
position: 'relative'
|
|
26
|
-
});
|
|
27
|
-
|
|
18
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
28
20
|
/**
|
|
29
21
|
* __Container__
|
|
30
22
|
*
|
|
@@ -55,10 +47,16 @@ var Container = exports.Container = function Container(_ref) {
|
|
|
55
47
|
disabled: disabled
|
|
56
48
|
};
|
|
57
49
|
}(props);
|
|
58
|
-
return (
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
50
|
+
return (
|
|
51
|
+
/*#__PURE__*/
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
53
|
+
_react.default.createElement("div", (0, _extends2.default)({
|
|
54
|
+
"data-testid": testId,
|
|
55
|
+
style: {
|
|
56
|
+
position: 'relative'
|
|
57
|
+
}
|
|
58
|
+
}, safeProps), children)
|
|
59
|
+
);
|
|
62
60
|
};
|
|
63
61
|
/**
|
|
64
62
|
* __Header__
|
|
@@ -81,7 +79,7 @@ var Header = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
81
79
|
color: "var(--ds-text, ".concat(_colors.N500, ")")
|
|
82
80
|
});
|
|
83
81
|
}, props.cssFn);
|
|
84
|
-
return
|
|
82
|
+
return /*#__PURE__*/_react.default.createElement(_Item.CustomItem, (0, _extends2.default)({}, props, {
|
|
85
83
|
ref: ref,
|
|
86
84
|
component: props.component || Container
|
|
87
85
|
// eslint-disable-next-line @repo/internal/react/no-unsafe-overrides
|
|
@@ -95,7 +93,7 @@ var Header = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
95
93
|
render: function render(_, _ref4) {
|
|
96
94
|
var children = _ref4.children,
|
|
97
95
|
props = (0, _objectWithoutProperties2.default)(_ref4, _excluded2);
|
|
98
|
-
return
|
|
96
|
+
return /*#__PURE__*/_react.default.createElement("h2", props, children);
|
|
99
97
|
}
|
|
100
98
|
}
|
|
101
99
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -5,30 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
9
|
+
require("./index.compiled.css");
|
|
10
|
+
var _runtime = require("@compiled/react/runtime");
|
|
8
11
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
-
var _react = require("
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
13
|
var _motion = require("@atlaskit/motion");
|
|
11
14
|
var _context = require("../NestableNavigationContent/context");
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
* @jsx jsx
|
|
15
|
-
*/
|
|
16
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
|
-
|
|
18
|
-
var baseMotionStyles = (0, _react.css)({
|
|
19
|
-
position: 'absolute',
|
|
20
|
-
zIndex: 1,
|
|
21
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-physical-properties
|
|
22
|
-
top: 0,
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-physical-properties
|
|
24
|
-
right: 0,
|
|
25
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-physical-properties
|
|
26
|
-
left: 0
|
|
27
|
-
});
|
|
28
|
-
var enteringStyles = (0, _react.css)({
|
|
29
|
-
position: 'static',
|
|
30
|
-
zIndex: 2
|
|
31
|
-
});
|
|
15
|
+
var baseMotionStyles = null;
|
|
16
|
+
var enteringStyles = null;
|
|
32
17
|
|
|
33
18
|
/**
|
|
34
19
|
* __Loading items__
|
|
@@ -45,13 +30,13 @@ var LoadingItems = function LoadingItems(_ref) {
|
|
|
45
30
|
if (!shouldRender) {
|
|
46
31
|
return children;
|
|
47
32
|
}
|
|
48
|
-
return
|
|
33
|
+
return /*#__PURE__*/_react.default.createElement(_motion.ExitingPersistence, null, /*#__PURE__*/_react.default.createElement(_motion.FadeIn, {
|
|
49
34
|
key: "loading-section-".concat(isLoading),
|
|
50
35
|
duration: "medium"
|
|
51
36
|
}, function (motion, state) {
|
|
52
|
-
return
|
|
37
|
+
return /*#__PURE__*/_react.default.createElement("span", (0, _extends2.default)({}, motion, {
|
|
53
38
|
"data-testid": testId && "".concat(testId, "--").concat(state),
|
|
54
|
-
|
|
39
|
+
className: (0, _runtime.ax)(["_kqswstnw _1pbykb7n _154iidpf _1xi2idpf _1ltvidpf", state === 'entering' && "_kqswpfqs _1pbycs5v"])
|
|
55
40
|
}), isLoading ? fallback : children);
|
|
56
41
|
}));
|
|
57
42
|
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
._14mjgqwt:after{border-radius:var(--ds-border-radius-050,2px)}
|
|
3
|
+
._rfx3gqwt:before{border-radius:var(--ds-border-radius-050,2px)}._12l2u2gc{margin-inline-end:var(--ds-space-100,8px)}
|
|
4
|
+
._18m915vq{overflow-y:hidden}
|
|
5
|
+
._18m91wug{overflow-y:auto}
|
|
6
|
+
._18poh2mm:after{position:relative}
|
|
7
|
+
._18postnw:after{position:absolute}
|
|
8
|
+
._1bqqcs5v:after{z-index:2}
|
|
9
|
+
._1bqqkb7n:after{z-index:1}
|
|
10
|
+
._1bsb1osq{width:100%}
|
|
11
|
+
._1cs8stnw:before{position:absolute}
|
|
12
|
+
._1czdftgi:after{inset-inline-end:8px}
|
|
13
|
+
._1e0c1txw{display:flex}
|
|
14
|
+
._1enwftgi:before{inset-inline-end:8px}
|
|
15
|
+
._1enwidpf:before{inset-inline-end:0}
|
|
16
|
+
._1g0vcs5v:before{z-index:2}
|
|
17
|
+
._1g0vkb7n:before{z-index:1}
|
|
18
|
+
._1gufidpf:after{inset-block-end:0}
|
|
19
|
+
._1hfk1q2g:after{background-color:var(--ds-menu-scroll-indicator-color,var(--ds-surface,#fff))}
|
|
20
|
+
._1hfk1x3l:after{background-color:var(--_1uyno6z)}
|
|
21
|
+
._1kt9b3bt:before{content:""}
|
|
22
|
+
._1l6bpxbi [data-ds--menu--heading-item]{margin-block-start:var(--ds-space-200,1pc)}
|
|
23
|
+
._1p3h12x7 [data-ds--menu--heading-item]{margin-block-end:var(--ds-space-075,6px)}
|
|
24
|
+
._1pfhidpf{margin-block-start:0}
|
|
25
|
+
._1pfhv77o{margin-block-start:var(--ds-space-025,2px)}
|
|
26
|
+
._1qdgyh40:after{height:2px}
|
|
27
|
+
._1reo15vq{overflow-x:hidden}
|
|
28
|
+
._1reo1wug{overflow-x:auto}
|
|
29
|
+
._1rus1q2g:before{background-color:var(--ds-menu-scroll-indicator-color,var(--ds-surface,#fff))}
|
|
30
|
+
._1rus1x3l:before{background-color:var(--_1uyno6z)}
|
|
31
|
+
._1ywu1ule:after{display:block}
|
|
32
|
+
._2lx21bp4{flex-direction:column}
|
|
33
|
+
._3mxo1wug:after{margin-block-start:auto}
|
|
34
|
+
._4t3i1osq{height:100%}
|
|
35
|
+
._aetrb3bt:after{content:""}
|
|
36
|
+
._ahbqu2gc{margin-inline-start:var(--ds-space-100,8px)}
|
|
37
|
+
._auo4rdoj [data-ds--menu--skeleton-heading-item]{margin-block-end:9px}
|
|
38
|
+
._cfu11ule:before{display:block}
|
|
39
|
+
._g0nfu2gc:after{inset-inline-start:var(--ds-space-100,8px)}
|
|
40
|
+
._hp2110yn [data-ds--menu--skeleton-heading-item]{margin-block-start:25px}
|
|
41
|
+
._kfgtyh40:before{height:2px}
|
|
42
|
+
._kqswh2mm{position:relative}
|
|
43
|
+
._tua5idpf:after{flex-shrink:0}
|
|
44
|
+
._vchhusvi{box-sizing:border-box}
|
|
45
|
+
._z5wtidpf:before{inset-inline-start:0}
|
|
46
|
+
._z5wtu2gc:before{inset-inline-start:var(--ds-space-100,8px)}
|
|
@@ -1,21 +1,28 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
6
|
Object.defineProperty(exports, "__esModule", {
|
|
5
7
|
value: true
|
|
6
8
|
});
|
|
7
9
|
exports.default = void 0;
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
+
require("./index.compiled.css");
|
|
11
|
+
var _runtime = require("@compiled/react/runtime");
|
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
13
|
var _useScrollbarWidth = _interopRequireDefault(require("@atlaskit/ds-lib/use-scrollbar-width"));
|
|
11
14
|
var _context = require("../NestableNavigationContent/context");
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
|
+
var outerContainerCSS = null;
|
|
18
|
+
var innerContainerCSS = {
|
|
19
|
+
basic: "_1reo1wug _18m91wug _1e0c1txw _vchhusvi _1bsb1osq _kqswh2mm _2lx21bp4 _14mjgqwt _1ywu1ule _1qdgyh40 _18poh2mm _1bqqcs5v _tua5idpf _1hfk1q2g _aetrb3bt _3mxo1wug",
|
|
20
|
+
topScrollIndicator: "_rfx3gqwt _cfu11ule _kfgtyh40 _1cs8stnw _1g0vcs5v _1rus1q2g _1kt9b3bt _1enwidpf _z5wtidpf"
|
|
21
|
+
};
|
|
22
|
+
var containerCSS = {
|
|
23
|
+
basic: "_kqswh2mm _12l2u2gc _ahbqu2gc _1pfhidpf _1p3h12x7 _1l6bpxbi _auo4rdoj _hp2110yn",
|
|
24
|
+
marginBlockStart: "_1pfhv77o"
|
|
25
|
+
};
|
|
19
26
|
|
|
20
27
|
/**
|
|
21
28
|
* __Navigation content__
|
|
@@ -36,24 +43,18 @@ var NavigationContent = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref
|
|
|
36
43
|
return children;
|
|
37
44
|
}
|
|
38
45
|
var typedRef = ref;
|
|
39
|
-
return
|
|
40
|
-
ref: typedRef
|
|
41
|
-
|
|
42
|
-
,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"data-testid": testId
|
|
48
|
-
}, (0, _react2.jsx)("div", {
|
|
46
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
47
|
+
ref: typedRef,
|
|
48
|
+
"data-testid": testId,
|
|
49
|
+
className: (0, _runtime.ax)(["_1reo15vq _18m915vq _1e0c1txw _4t3i1osq _kqswh2mm _rfx3gqwt _cfu11ule _kfgtyh40 _1cs8stnw _1g0vkb7n _1rus1x3l _1kt9b3bt _1enwftgi _z5wtu2gc _14mjgqwt _1ywu1ule _1qdgyh40 _18postnw _1bqqkb7n _tua5idpf _1hfk1x3l _aetrb3bt _1gufidpf _1czdftgi _g0nfu2gc"]),
|
|
50
|
+
style: {
|
|
51
|
+
"--_1uyno6z": (0, _runtime.ix)("var(--ds-menu-seperator-color, ".concat("var(--ds-border, #091E4224)", ")"))
|
|
52
|
+
}
|
|
53
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
49
54
|
ref: scrollbar.ref,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}, (0, _react2.jsx)("div", {
|
|
54
|
-
css: (0, _styles.containerCSS)({
|
|
55
|
-
showTopScrollIndicator: showTopScrollIndicator
|
|
56
|
-
})
|
|
55
|
+
className: (0, _runtime.ax)([innerContainerCSS.basic, !showTopScrollIndicator && innerContainerCSS.topScrollIndicator])
|
|
56
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
57
|
+
className: (0, _runtime.ax)([containerCSS.basic, showTopScrollIndicator && containerCSS.marginBlockStart])
|
|
57
58
|
}, children)));
|
|
58
59
|
});
|
|
59
60
|
var _default = exports.default = NavigationContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._kqswh2mm{position:relative}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
|
-
var
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.default = void 0;
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
});
|
|
13
|
-
|
|
9
|
+
require("./index.compiled.css");
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _runtime = require("@compiled/react/runtime");
|
|
12
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
+
var styles = {
|
|
16
|
+
navigationFooter: "_kqswh2mm"
|
|
17
|
+
};
|
|
14
18
|
/**
|
|
15
19
|
* __Navigation footer__
|
|
16
20
|
*
|
|
@@ -21,10 +25,10 @@ var navigationFooterStyles = (0, _primitives.xcss)({
|
|
|
21
25
|
*/
|
|
22
26
|
var NavigationFooter = function NavigationFooter(_ref) {
|
|
23
27
|
var children = _ref.children;
|
|
24
|
-
return /*#__PURE__*/
|
|
28
|
+
return /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
25
29
|
padding: "space.100",
|
|
26
30
|
paddingBlockEnd: "space.200",
|
|
27
|
-
xcss:
|
|
31
|
+
xcss: styles.navigationFooter
|
|
28
32
|
}, children);
|
|
29
33
|
};
|
|
30
34
|
var _default = exports.default = NavigationFooter;
|
|
@@ -1,25 +1,20 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
display: 'block',
|
|
17
|
-
paddingTop: 'space.100',
|
|
18
|
-
paddingRight: 'space.100',
|
|
19
|
-
paddingBottom: 'space.100',
|
|
20
|
-
paddingLeft: 'space.100',
|
|
21
|
-
paddingBlockStart: 'space.300'
|
|
22
|
-
});
|
|
9
|
+
require("./index.compiled.css");
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _runtime = require("@compiled/react/runtime");
|
|
12
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
+
var styles = {
|
|
16
|
+
navigationFooter: "_1e0c1ule _85i5u2gc _1q511ejb _y4tiu2gc _bozgu2gc"
|
|
17
|
+
};
|
|
23
18
|
/**
|
|
24
19
|
* __Navigation header__
|
|
25
20
|
*
|
|
@@ -30,8 +25,8 @@ var navigationFooterStyles = (0, _primitives.xcss)({
|
|
|
30
25
|
*/
|
|
31
26
|
var NavigationHeader = function NavigationHeader(props) {
|
|
32
27
|
var children = props.children;
|
|
33
|
-
return
|
|
34
|
-
xcss:
|
|
28
|
+
return /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
29
|
+
xcss: styles.navigationFooter,
|
|
35
30
|
"data-navheader": true
|
|
36
31
|
}, children);
|
|
37
32
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
._12ji1r31{outline-color:currentColor}
|
|
2
|
+
._12y31o36{outline-width:medium}
|
|
3
|
+
._1bsb1osq{width:100%}
|
|
4
|
+
._1e0c1txw{display:flex}
|
|
5
|
+
._1qu2glyw{outline-style:none}
|
|
6
|
+
._2lx21bp4{flex-direction:column}
|
|
7
|
+
._4t3i1osq{height:100%}
|
|
8
|
+
._kqswh2mm{position:relative}
|
|
9
|
+
._kqswstnw{position:absolute}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -6,10 +7,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
7
|
value: true
|
|
7
8
|
});
|
|
8
9
|
exports.default = exports.ROOT_ID = void 0;
|
|
10
|
+
require("./index.compiled.css");
|
|
11
|
+
var _runtime = require("@compiled/react/runtime");
|
|
9
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
13
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _react2 = require("@emotion/react");
|
|
13
15
|
var _motion = require("@atlaskit/motion");
|
|
14
16
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
17
|
var _Item = require("../Item");
|
|
@@ -19,28 +21,11 @@ var _context = require("./context");
|
|
|
19
21
|
var _nestingMotion = require("./nesting-motion");
|
|
20
22
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
23
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
|
-
/**
|
|
23
|
-
* @jsxRuntime classic
|
|
24
|
-
* @jsx jsx
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
28
|
-
|
|
29
24
|
// Named so ERT doesn't pick up the override name as a type.
|
|
30
25
|
|
|
31
26
|
var ROOT_ID = exports.ROOT_ID = 'ATLASKIT_NESTED_ROOT';
|
|
32
|
-
var nestableNavigationContentStyles =
|
|
33
|
-
|
|
34
|
-
position: 'relative',
|
|
35
|
-
outline: 'none'
|
|
36
|
-
});
|
|
37
|
-
var nestingRootStyles = (0, _react2.css)({
|
|
38
|
-
display: 'flex',
|
|
39
|
-
width: '100%',
|
|
40
|
-
height: '100%',
|
|
41
|
-
position: 'absolute',
|
|
42
|
-
flexDirection: 'column'
|
|
43
|
-
});
|
|
27
|
+
var nestableNavigationContentStyles = null;
|
|
28
|
+
var nestingRootStyles = null;
|
|
44
29
|
|
|
45
30
|
/**
|
|
46
31
|
* __Nestable navigation content__
|
|
@@ -84,7 +69,7 @@ var NestableNavigationContent = function NestableNavigationContent(props) {
|
|
|
84
69
|
setFocusGoBackButton = _useState8[1];
|
|
85
70
|
var shouldFocus = isDefaultFocusControl && (0, _platformFeatureFlags.fg)('platform-side-navigation-keyboard-focus');
|
|
86
71
|
var renderGoBackItem = overrides && overrides.GoBackItem && overrides.GoBackItem.render ? overrides.GoBackItem.render : function (props) {
|
|
87
|
-
return
|
|
72
|
+
return /*#__PURE__*/_react.default.createElement(_Item.GoBackItem, props, "Go back");
|
|
88
73
|
};
|
|
89
74
|
var _useChildIds = (0, _hooks.useChildIds)(currentStackId, committedStack, onUnknownNest),
|
|
90
75
|
childIdsRef = _useChildIds.childIdsRef;
|
|
@@ -175,13 +160,13 @@ var NestableNavigationContent = function NestableNavigationContent(props) {
|
|
|
175
160
|
containerRef.current && containerRef.current.focus();
|
|
176
161
|
}
|
|
177
162
|
};
|
|
178
|
-
return
|
|
163
|
+
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
179
164
|
"data-testid": testId,
|
|
180
|
-
css: nestableNavigationContentStyles,
|
|
181
165
|
ref: containerRef,
|
|
182
166
|
tabIndex: -1,
|
|
183
|
-
onClick: manageFocus
|
|
184
|
-
|
|
167
|
+
onClick: manageFocus,
|
|
168
|
+
className: (0, _runtime.ax)(["_12ji1r31 _1qu2glyw _12y31o36 _4t3i1osq _kqswh2mm"])
|
|
169
|
+
}, /*#__PURE__*/_react.default.createElement(_motion.ExitingPersistence, null, /*#__PURE__*/_react.default.createElement(_nestingMotion.NestingMotion
|
|
185
170
|
// Key is needed to have a unique react instance per stack name.
|
|
186
171
|
// This enables us to easily animate it in & out with exiting persistence.
|
|
187
172
|
, {
|
|
@@ -190,13 +175,13 @@ var NestableNavigationContent = function NestableNavigationContent(props) {
|
|
|
190
175
|
exitTo: transition === 'nesting' ? 'left' : 'right',
|
|
191
176
|
testId: testId && "".concat(testId, "-anim")
|
|
192
177
|
}, function (motion) {
|
|
193
|
-
return
|
|
194
|
-
|
|
195
|
-
}
|
|
178
|
+
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, motion, {
|
|
179
|
+
className: (0, _runtime.ax)(["_1e0c1txw _1bsb1osq _4t3i1osq _kqswstnw _2lx21bp4", motion.className])
|
|
180
|
+
}), /*#__PURE__*/_react.default.createElement(_context.NestedContext.Provider, {
|
|
196
181
|
// This provider is inside the NestingMotion to ensure it keeps a stale
|
|
197
182
|
// reference to the previous value.
|
|
198
183
|
value: context
|
|
199
|
-
},
|
|
184
|
+
}, /*#__PURE__*/_react.default.createElement(_NestingItem.default, {
|
|
200
185
|
title: "",
|
|
201
186
|
id: ROOT_ID
|
|
202
187
|
}, children)));
|