@atlaskit/navigation-system 9.4.0 → 9.4.2
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 +17 -0
- package/constellation/layout/code.mdx +1 -13
- package/constellation/layout/examples.mdx +12 -49
- package/constellation/layout/images/layout-anatomy-dark.png +0 -0
- package/constellation/layout/images/layout-anatomy-light.png +0 -0
- package/constellation/layout/images/layout-do-dark.png +0 -0
- package/constellation/layout/images/layout-do-light.png +0 -0
- package/constellation/layout/images/layout-dont-dark.png +0 -0
- package/constellation/layout/images/layout-dont-light.png +0 -0
- package/constellation/layout/images/layout-example-dark.png +0 -0
- package/constellation/layout/images/layout-example-light.png +0 -0
- package/constellation/layout/usage.mdx +8 -19
- package/dist/cjs/ui/page-layout/aside.js +1 -1
- package/dist/cjs/ui/page-layout/constants.js +3 -0
- package/dist/cjs/ui/top-nav-items/themed/color-utils/index.js +4 -0
- package/dist/cjs/ui/top-nav-items/themed/has-custom-theme-context.js +1 -0
- package/dist/es2019/ui/page-layout/aside.js +1 -1
- package/dist/es2019/ui/page-layout/constants.js +3 -0
- package/dist/es2019/ui/top-nav-items/themed/color-utils/index.js +4 -0
- package/dist/es2019/ui/top-nav-items/themed/has-custom-theme-context.js +1 -0
- package/dist/esm/ui/page-layout/aside.js +1 -1
- package/dist/esm/ui/page-layout/constants.js +3 -0
- package/dist/esm/ui/top-nav-items/themed/color-utils/index.js +4 -0
- package/dist/esm/ui/top-nav-items/themed/has-custom-theme-context.js +1 -0
- package/dist/types/ui/page-layout/aside.d.ts +1 -1
- package/dist/types-ts4.5/ui/page-layout/aside.d.ts +1 -1
- package/package.json +10 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 9.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`8f6296fa87d19`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8f6296fa87d19) -
|
|
8
|
+
Deprecate the Aside export.
|
|
9
|
+
- [`cc4a66306965d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cc4a66306965d) -
|
|
10
|
+
Cleanup feature gate `platform_dst_nav4_flyout_menu_slots_close_button`. Flyout menu slot
|
|
11
|
+
subcomponents (header, body, footer) and close button are now permanently enabled.
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 9.4.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 9.4.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -17,7 +17,6 @@ props:
|
|
|
17
17
|
- SideNavFooter
|
|
18
18
|
- Main
|
|
19
19
|
- MainStickyHeader
|
|
20
|
-
- Aside
|
|
21
20
|
- Panel
|
|
22
21
|
- PanelSplitter
|
|
23
22
|
- SideNavToggleButton
|
|
@@ -103,20 +102,9 @@ The sticky header of the main layout area.
|
|
|
103
102
|
|
|
104
103
|
<TSMorphProps exportName="MainStickyHeader" packageName="@atlaskit/navigation-system" />
|
|
105
104
|
|
|
106
|
-
### Aside
|
|
107
|
-
|
|
108
|
-
<SectionMessage appearance="warning" title="Caution">
|
|
109
|
-
We are planning on deprecating the Aside component. Please use Panel instead.
|
|
110
|
-
</SectionMessage>
|
|
111
|
-
|
|
112
|
-
The Aside layout area is rendered to the right (inline end) of the Main area.
|
|
113
|
-
|
|
114
|
-
<TSMorphProps exportName="Aside" packageName="@atlaskit/navigation-system" />
|
|
115
|
-
|
|
116
105
|
### Panel
|
|
117
106
|
|
|
118
|
-
The Panel layout area is rendered to the right (inline end) of the Main area,
|
|
119
|
-
it is present. On small viewports, the Panel slot will become an overlay.
|
|
107
|
+
The Panel layout area is rendered to the right (inline end) of the Main area. On small viewports, the Panel slot will become an overlay.
|
|
120
108
|
|
|
121
109
|
<TSMorphProps exportName="Panel" packageName="@atlaskit/navigation-system" />
|
|
122
110
|
|
|
@@ -97,7 +97,7 @@ See the [custom theming](/components/navigation-system/layout/custom-theming) ta
|
|
|
97
97
|
- Use the [side nav slots](#side-nav-slots) to position content within the side nav.
|
|
98
98
|
- The side nav is [collapsable and expandable](#side-nav-collapseexpand),
|
|
99
99
|
[resizable](#side-nav-resizing), [responsive](#side-nav-responsive), and offers
|
|
100
|
-
[flyout](#side-nav-flyout)
|
|
100
|
+
[flyout](#side-nav-flyout) behavior.
|
|
101
101
|
|
|
102
102
|
[View interactive example](https://go.atlassian.com/nav4-interactive-example)
|
|
103
103
|
|
|
@@ -216,43 +216,9 @@ expand to fill available space.
|
|
|
216
216
|
|
|
217
217
|
[View interactive example](https://go.atlassian.com/nav4-interactive-example)
|
|
218
218
|
|
|
219
|
-
### Aside
|
|
220
|
-
|
|
221
|
-
<SectionMessage appearance="warning" title="Caution">
|
|
222
|
-
We plan to deprecate aside. Use panel instead.
|
|
223
|
-
</SectionMessage>
|
|
224
|
-
|
|
225
|
-
The aside area is rendered to the right of the main area.
|
|
226
|
-
|
|
227
|
-
- The default width of the aside is 330px, and it is
|
|
228
|
-
[resizable](/components/navigation-system/layout/examples#aside-resizing) and
|
|
229
|
-
[responsive](/components/navigation-system/layout/examples#aside-responsive).
|
|
230
|
-
- On large viewports the aside can be fixed, meaning it will have its own scroll container and not
|
|
231
|
-
use the body scroll.
|
|
232
|
-
- On small viewports, the element will always use body scroll, to make it easier to scroll the page
|
|
233
|
-
when the content is tall.
|
|
234
|
-
|
|
235
|
-
[View interactive example](https://go.atlassian.com/nav4-interactive-example)
|
|
236
|
-
|
|
237
|
-
#### Aside resizing
|
|
238
|
-
|
|
239
|
-
You can optionally render a [panel splitter](#resizable-areas) as a child to make the aside
|
|
240
|
-
resizable.
|
|
241
|
-
|
|
242
|
-
- The aside is resized using the drag handle. When you hover over the drag handle, the mouse pointer
|
|
243
|
-
changes to a resize cursor.
|
|
244
|
-
- The aside can be resized to a minimum width of 120px and a maximum width equal to 50% of the
|
|
245
|
-
viewport width.
|
|
246
|
-
- Persist the chosen width across page refreshes by providing it to the `defaultWidth` prop.
|
|
247
|
-
|
|
248
|
-
#### Aside responsive
|
|
249
|
-
|
|
250
|
-
At `s`, `xs`, and `xxs` breakpoints (i.e. viewports smaller than 1024px), the aside moves below the
|
|
251
|
-
main area, and conforms to main width and behaviour.
|
|
252
|
-
|
|
253
219
|
### Panel
|
|
254
220
|
|
|
255
|
-
The panel area is rendered to the right of the main
|
|
221
|
+
The panel area is rendered to the right of the main area.
|
|
256
222
|
|
|
257
223
|
- The default width of the panel is 365px, which can be modified using the `defaultWidth` prop.
|
|
258
224
|
- The panel is
|
|
@@ -280,8 +246,7 @@ resizable.
|
|
|
280
246
|
|
|
281
247
|
#### Panel responsive
|
|
282
248
|
|
|
283
|
-
At `
|
|
284
|
-
and below (less than 1024px) it will start to overlay the main area.
|
|
249
|
+
At `s` breakpoints and below (less than 1024px) the panel will start to overlay the main area.
|
|
285
250
|
|
|
286
251
|
## Resizable areas
|
|
287
252
|
|
|
@@ -290,7 +255,6 @@ Render a `PanelSplitter` in a layout area to make it resizable.
|
|
|
290
255
|
Resizing is supported for the following areas:
|
|
291
256
|
|
|
292
257
|
- [Side nav](/components/navigation-system/layout/examples#side-nav): Use `SideNavPanelSplitter`
|
|
293
|
-
- [Aside](/components/navigation-system/layout/examples#aside): Use `PanelSplitter`
|
|
294
258
|
- [Panel](/components/navigation-system/layout/examples#panel): Use `PanelSplitter`
|
|
295
259
|
|
|
296
260
|
[View interactive example](https://go.atlassian.com/nav4-interactive-example)
|
|
@@ -298,22 +262,21 @@ Resizing is supported for the following areas:
|
|
|
298
262
|
| Area | Default width | Min width | Max width |
|
|
299
263
|
| --------- | ------------------ | --------------------- | ------------------------------------------------------ |
|
|
300
264
|
| `SideNav` | 320px | 240px | 50% of viewport width |
|
|
301
|
-
| `Aside` | 330px (modifiable) | 120px | 50% of viewport width |
|
|
302
265
|
| `Panel` | 365px (modifiable) | Same as default width | 50% of content area (viewport minus the side nav area) |
|
|
303
266
|
|
|
304
267
|
## Responsive
|
|
305
268
|
|
|
306
|
-
Layout areas respond to the viewport size. See default
|
|
269
|
+
Layout areas respond to the viewport size. See default behavior below, or the
|
|
307
270
|
[interactive example](https://go.atlassian.com/nav4-interactive-example).
|
|
308
271
|
|
|
309
|
-
| Breakpoint | Viewport | Side nav |
|
|
310
|
-
| ---------- | ------------- | --------------------------- |
|
|
311
|
-
| `xxs` | 320 - 479px | Collapsed; opens as overlay |
|
|
312
|
-
| `xs` | 480 - 767px | Collapsed; opens as overlay |
|
|
313
|
-
| `s` | 768 - 1023px | Collapsed; opens as overlay |
|
|
314
|
-
| `m` | 1024 - 1439px | Expanded (inline) |
|
|
315
|
-
| `l` | 1440 - 1767px | Expanded (inline) |
|
|
316
|
-
| `xl` | 1768+px | Expanded (inline) |
|
|
272
|
+
| Breakpoint | Viewport | Side nav | Panel |
|
|
273
|
+
| ---------- | ------------- | --------------------------- | ---------------- |
|
|
274
|
+
| `xxs` | 320 - 479px | Collapsed; opens as overlay | Opens as overlay |
|
|
275
|
+
| `xs` | 480 - 767px | Collapsed; opens as overlay | Opens as overlay |
|
|
276
|
+
| `s` | 768 - 1023px | Collapsed; opens as overlay | Opens as overlay |
|
|
277
|
+
| `m` | 1024 - 1439px | Expanded (inline) | Opens inline |
|
|
278
|
+
| `l` | 1440 - 1767px | Expanded (inline) | Opens inline |
|
|
279
|
+
| `xl` | 1768+px | Expanded (inline) | Opens inline |
|
|
317
280
|
|
|
318
281
|
## Custom skip links
|
|
319
282
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -71,29 +71,19 @@ When applying components to the navigational areas,
|
|
|
71
71
|
<li>
|
|
72
72
|
<strong>Main:</strong> Use for the page content. Expands to fill available space.
|
|
73
73
|
</li>
|
|
74
|
-
<li>
|
|
75
|
-
<strong>Aside:</strong> Optional. Use to display supporting or supplementary content. Is
|
|
76
|
-
resizable. <em>We plan to deprecate aside, please use panel instead.</em>
|
|
77
|
-
</li>
|
|
78
74
|
<li>
|
|
79
75
|
<strong>Panel:</strong> Optional. Use to display supporting or supplementary content. Is
|
|
80
76
|
resizable and collapsible.
|
|
81
77
|
</li>
|
|
82
78
|
</ol>
|
|
83
79
|
|
|
84
|
-
### The difference between
|
|
85
|
-
|
|
86
|
-
<SectionMessage appearance="warning" title="Caution">
|
|
87
|
-
We plan to deprecate aside. Use panel instead.
|
|
88
|
-
</SectionMessage>
|
|
80
|
+
### The difference between panel and modal dialog
|
|
89
81
|
|
|
90
|
-
The main difference between
|
|
82
|
+
The main difference between panel and modal dialog is their behaviors:
|
|
91
83
|
|
|
92
|
-
- **
|
|
93
|
-
- **Panel** and **aside** present content alongside the **main** area, while a **modal dialog**
|
|
84
|
+
- **Panel** presents content alongside the **main** area, while a **modal dialog**
|
|
94
85
|
appears in a layer above the page.
|
|
95
|
-
- On small viewports (1024px and below), the **panel** becomes an overlay
|
|
96
|
-
below the **main** area.
|
|
86
|
+
- **Panel** can be collapsed and resized. On small viewports (1024px and below), the **panel** becomes an overlay.
|
|
97
87
|
|
|
98
88
|
#### Usage guidance
|
|
99
89
|
|
|
@@ -102,14 +92,13 @@ The main difference between aside, panel and modal dialog is their behaviours:
|
|
|
102
92
|
connected to their primary task.
|
|
103
93
|
- Use a **modal dialog** when you need the user to focus on a specific task, such as making a
|
|
104
94
|
decision or completing an action, before they can return to their primary task.
|
|
105
|
-
- Don’t use aside for new experiences. It is planned for deprecation.
|
|
106
95
|
|
|
107
96
|
## Accessibility
|
|
108
97
|
|
|
109
98
|
- Always place slots in this order as direct children of the root: banner, top nav, side nav, main,
|
|
110
|
-
|
|
99
|
+
panel. This determines the keyboard tab order, screen reader reading order, and skip link
|
|
111
100
|
order.
|
|
112
|
-
- Provide a unique, meaningful `label` for side nav,
|
|
101
|
+
- Provide a unique, meaningful `label` for side nav, panel, and top nav end. The label is
|
|
113
102
|
exposed as the landmark's accessible name. Don't repeat the landmark's role in the label.
|
|
114
103
|
- Slots provide landmark roles automatically. Don't add or duplicate landmark roles inside them.
|
|
115
104
|
- Use custom skip links sparingly. Too many skip links makes the skip links menu noisy. Consider the
|
|
@@ -137,11 +126,11 @@ The main difference between aside, panel and modal dialog is their behaviours:
|
|
|
137
126
|
image={{
|
|
138
127
|
url: layoutDontLight,
|
|
139
128
|
urlDarkMode: layoutDontDark,
|
|
140
|
-
alt: 'A layout with a grid overlay on the Main area, but also on the Side nav
|
|
129
|
+
alt: 'A layout with a grid overlay on the Main area, but also on the Side nav and Panel areas.',
|
|
141
130
|
}}
|
|
142
131
|
isFullWidth
|
|
143
132
|
>
|
|
144
|
-
Don't include side nav
|
|
133
|
+
Don't include side nav or panel areas as part of your grid.
|
|
145
134
|
</DoDont>
|
|
146
135
|
</DoDontGrid>
|
|
147
136
|
|
|
@@ -63,7 +63,7 @@ var fallbackDefaultWidth = 330;
|
|
|
63
63
|
*
|
|
64
64
|
* You can optionally render a `PanelSplitter` as a child to make the aside area resizable.
|
|
65
65
|
*
|
|
66
|
-
*
|
|
66
|
+
* @deprecated Use `Panel` instead.
|
|
67
67
|
*/
|
|
68
68
|
function Aside(_ref) {
|
|
69
69
|
var children = _ref.children,
|
|
@@ -25,7 +25,9 @@ var ribbonVar = exports.ribbonVar = '--n_rbnW';
|
|
|
25
25
|
*/
|
|
26
26
|
var sideNavLiveWidthVar = exports.sideNavLiveWidthVar = '--n_sNvlw';
|
|
27
27
|
var sideNavPanelSplitterId = exports.sideNavPanelSplitterId = Symbol('SideNav PanelSplitter');
|
|
28
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
28
29
|
var asidePanelSplitterId = exports.asidePanelSplitterId = Symbol('Aside PanelSplitter');
|
|
30
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
29
31
|
var panelPanelSplitterId = exports.panelPanelSplitterId = Symbol('Panel PanelSplitter');
|
|
30
32
|
|
|
31
33
|
// We aren't using template literals here because Compiled can't compiled them in platform ATM.
|
|
@@ -55,6 +57,7 @@ var UNSAFE_MAIN_INLINE_END_FOR_LEGACY_PAGES_ONLY = exports.UNSAFE_MAIN_INLINE_EN
|
|
|
55
57
|
* For globally defined values such as flag, modal, etc, we can continue to
|
|
56
58
|
* rely on accessing them through global means.
|
|
57
59
|
*/
|
|
60
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
58
61
|
var localSlotLayers = exports.localSlotLayers = {
|
|
59
62
|
ribbon: 4,
|
|
60
63
|
// The side nav panel splitter is layered above the top nav when FHS is enabled.
|
|
@@ -69,6 +69,7 @@ var flipLuminance = 0.179129;
|
|
|
69
69
|
function isLight(color) {
|
|
70
70
|
return relativeLuminanceW3C(color) >= flipLuminance;
|
|
71
71
|
}
|
|
72
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
72
73
|
function getColorMode(backgroundColor) {
|
|
73
74
|
if (relativeLuminanceW3C(backgroundColor) >= flipLuminance) {
|
|
74
75
|
return 'light';
|
|
@@ -93,6 +94,8 @@ var textColor = {
|
|
|
93
94
|
}
|
|
94
95
|
}
|
|
95
96
|
};
|
|
97
|
+
|
|
98
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
96
99
|
function getTextColor(backgroundColor) {
|
|
97
100
|
var colorMode = getColorMode(backgroundColor);
|
|
98
101
|
return textColor[colorMode];
|
|
@@ -107,6 +110,7 @@ function getTextColor(backgroundColor) {
|
|
|
107
110
|
*
|
|
108
111
|
* This has been simplified to assume the background has no transparency.
|
|
109
112
|
*/
|
|
113
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
110
114
|
function simpleAlphaComposite(_ref2) {
|
|
111
115
|
var background = _ref2.background,
|
|
112
116
|
foreground = _ref2.foreground;
|
|
@@ -14,6 +14,7 @@ var HasCustomThemeContext = exports.HasCustomThemeContext = /*#__PURE__*/(0, _re
|
|
|
14
14
|
/**
|
|
15
15
|
* Returns whether a custom theme is being applied.
|
|
16
16
|
*/
|
|
17
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
17
18
|
function useHasCustomTheme() {
|
|
18
19
|
return (0, _react.useContext)(HasCustomThemeContext);
|
|
19
20
|
}
|
|
@@ -52,7 +52,7 @@ const fallbackDefaultWidth = 330;
|
|
|
52
52
|
*
|
|
53
53
|
* You can optionally render a `PanelSplitter` as a child to make the aside area resizable.
|
|
54
54
|
*
|
|
55
|
-
*
|
|
55
|
+
* @deprecated Use `Panel` instead.
|
|
56
56
|
*/
|
|
57
57
|
export function Aside({
|
|
58
58
|
children,
|
|
@@ -19,7 +19,9 @@ export const ribbonVar = '--n_rbnW';
|
|
|
19
19
|
*/
|
|
20
20
|
export const sideNavLiveWidthVar = '--n_sNvlw';
|
|
21
21
|
export const sideNavPanelSplitterId = Symbol('SideNav PanelSplitter');
|
|
22
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
22
23
|
export const asidePanelSplitterId = Symbol('Aside PanelSplitter');
|
|
24
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
23
25
|
export const panelPanelSplitterId = Symbol('Panel PanelSplitter');
|
|
24
26
|
|
|
25
27
|
// We aren't using template literals here because Compiled can't compiled them in platform ATM.
|
|
@@ -49,6 +51,7 @@ export const UNSAFE_MAIN_INLINE_END_FOR_LEGACY_PAGES_ONLY = `calc(var(${UNSAFE_a
|
|
|
49
51
|
* For globally defined values such as flag, modal, etc, we can continue to
|
|
50
52
|
* rely on accessing them through global means.
|
|
51
53
|
*/
|
|
54
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
52
55
|
export const localSlotLayers = {
|
|
53
56
|
ribbon: 4,
|
|
54
57
|
// The side nav panel splitter is layered above the top nav when FHS is enabled.
|
|
@@ -61,6 +61,7 @@ const flipLuminance = 0.179129;
|
|
|
61
61
|
export function isLight(color) {
|
|
62
62
|
return relativeLuminanceW3C(color) >= flipLuminance;
|
|
63
63
|
}
|
|
64
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
64
65
|
export function getColorMode(backgroundColor) {
|
|
65
66
|
if (relativeLuminanceW3C(backgroundColor) >= flipLuminance) {
|
|
66
67
|
return 'light';
|
|
@@ -85,6 +86,8 @@ const textColor = {
|
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
88
|
};
|
|
89
|
+
|
|
90
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
88
91
|
export function getTextColor(backgroundColor) {
|
|
89
92
|
const colorMode = getColorMode(backgroundColor);
|
|
90
93
|
return textColor[colorMode];
|
|
@@ -99,6 +102,7 @@ export function getTextColor(backgroundColor) {
|
|
|
99
102
|
*
|
|
100
103
|
* This has been simplified to assume the background has no transparency.
|
|
101
104
|
*/
|
|
105
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
102
106
|
export function simpleAlphaComposite({
|
|
103
107
|
background,
|
|
104
108
|
foreground
|
|
@@ -8,6 +8,7 @@ export const HasCustomThemeContext = /*#__PURE__*/createContext(false);
|
|
|
8
8
|
/**
|
|
9
9
|
* Returns whether a custom theme is being applied.
|
|
10
10
|
*/
|
|
11
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
11
12
|
export function useHasCustomTheme() {
|
|
12
13
|
return useContext(HasCustomThemeContext);
|
|
13
14
|
}
|
|
@@ -54,7 +54,7 @@ var fallbackDefaultWidth = 330;
|
|
|
54
54
|
*
|
|
55
55
|
* You can optionally render a `PanelSplitter` as a child to make the aside area resizable.
|
|
56
56
|
*
|
|
57
|
-
*
|
|
57
|
+
* @deprecated Use `Panel` instead.
|
|
58
58
|
*/
|
|
59
59
|
export function Aside(_ref) {
|
|
60
60
|
var children = _ref.children,
|
|
@@ -19,7 +19,9 @@ export var ribbonVar = '--n_rbnW';
|
|
|
19
19
|
*/
|
|
20
20
|
export var sideNavLiveWidthVar = '--n_sNvlw';
|
|
21
21
|
export var sideNavPanelSplitterId = Symbol('SideNav PanelSplitter');
|
|
22
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
22
23
|
export var asidePanelSplitterId = Symbol('Aside PanelSplitter');
|
|
24
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
23
25
|
export var panelPanelSplitterId = Symbol('Panel PanelSplitter');
|
|
24
26
|
|
|
25
27
|
// We aren't using template literals here because Compiled can't compiled them in platform ATM.
|
|
@@ -49,6 +51,7 @@ export var UNSAFE_MAIN_INLINE_END_FOR_LEGACY_PAGES_ONLY = "calc(var(".concat(UNS
|
|
|
49
51
|
* For globally defined values such as flag, modal, etc, we can continue to
|
|
50
52
|
* rely on accessing them through global means.
|
|
51
53
|
*/
|
|
54
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
52
55
|
export var localSlotLayers = {
|
|
53
56
|
ribbon: 4,
|
|
54
57
|
// The side nav panel splitter is layered above the top nav when FHS is enabled.
|
|
@@ -60,6 +60,7 @@ var flipLuminance = 0.179129;
|
|
|
60
60
|
export function isLight(color) {
|
|
61
61
|
return relativeLuminanceW3C(color) >= flipLuminance;
|
|
62
62
|
}
|
|
63
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
63
64
|
export function getColorMode(backgroundColor) {
|
|
64
65
|
if (relativeLuminanceW3C(backgroundColor) >= flipLuminance) {
|
|
65
66
|
return 'light';
|
|
@@ -84,6 +85,8 @@ var textColor = {
|
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
87
|
};
|
|
88
|
+
|
|
89
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
87
90
|
export function getTextColor(backgroundColor) {
|
|
88
91
|
var colorMode = getColorMode(backgroundColor);
|
|
89
92
|
return textColor[colorMode];
|
|
@@ -98,6 +101,7 @@ export function getTextColor(backgroundColor) {
|
|
|
98
101
|
*
|
|
99
102
|
* This has been simplified to assume the background has no transparency.
|
|
100
103
|
*/
|
|
104
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
101
105
|
export function simpleAlphaComposite(_ref2) {
|
|
102
106
|
var background = _ref2.background,
|
|
103
107
|
foreground = _ref2.foreground;
|
|
@@ -8,6 +8,7 @@ export var HasCustomThemeContext = /*#__PURE__*/createContext(false);
|
|
|
8
8
|
/**
|
|
9
9
|
* Returns whether a custom theme is being applied.
|
|
10
10
|
*/
|
|
11
|
+
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
11
12
|
export function useHasCustomTheme() {
|
|
12
13
|
return useContext(HasCustomThemeContext);
|
|
13
14
|
}
|
|
@@ -5,7 +5,7 @@ import type { CommonSlotProps } from './types';
|
|
|
5
5
|
*
|
|
6
6
|
* You can optionally render a `PanelSplitter` as a child to make the aside area resizable.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* @deprecated Use `Panel` instead.
|
|
9
9
|
*/
|
|
10
10
|
export declare function Aside({ children, xcss, defaultWidth: defaultWidthProp, label, skipLinkLabel, testId, id: providedId, }: CommonSlotProps & {
|
|
11
11
|
/**
|
|
@@ -5,7 +5,7 @@ import type { CommonSlotProps } from './types';
|
|
|
5
5
|
*
|
|
6
6
|
* You can optionally render a `PanelSplitter` as a child to make the aside area resizable.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* @deprecated Use `Panel` instead.
|
|
9
9
|
*/
|
|
10
10
|
export declare function Aside({ children, xcss, defaultWidth: defaultWidthProp, label, skipLinkLabel, testId, id: providedId, }: CommonSlotProps & {
|
|
11
11
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/navigation-system",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.2",
|
|
4
4
|
"description": "The latest navigation system for Atlassian apps.",
|
|
5
5
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
6
6
|
"author": "Atlassian Pty Ltd",
|
|
@@ -35,16 +35,10 @@
|
|
|
35
35
|
"website": {
|
|
36
36
|
"name": "Navigation system",
|
|
37
37
|
"category": "Navigation",
|
|
38
|
-
"status": {
|
|
39
|
-
"type": "beta"
|
|
40
|
-
},
|
|
41
38
|
"subPages": [
|
|
42
39
|
{
|
|
43
40
|
"title": "Layout",
|
|
44
41
|
"id": "layout",
|
|
45
|
-
"status": {
|
|
46
|
-
"type": "beta"
|
|
47
|
-
},
|
|
48
42
|
"sortKey": 1
|
|
49
43
|
},
|
|
50
44
|
{
|
|
@@ -55,9 +49,6 @@
|
|
|
55
49
|
{
|
|
56
50
|
"title": "Top nav items",
|
|
57
51
|
"id": "top-nav-items",
|
|
58
|
-
"status": {
|
|
59
|
-
"type": "beta"
|
|
60
|
-
},
|
|
61
52
|
"sortKey": 3
|
|
62
53
|
}
|
|
63
54
|
]
|
|
@@ -72,16 +63,16 @@
|
|
|
72
63
|
"dependencies": {
|
|
73
64
|
"@atlaskit/analytics-next": "^11.2.0",
|
|
74
65
|
"@atlaskit/app-provider": "^4.3.0",
|
|
75
|
-
"@atlaskit/avatar": "^25.
|
|
66
|
+
"@atlaskit/avatar": "^25.15.0",
|
|
76
67
|
"@atlaskit/button": "^23.11.0",
|
|
77
68
|
"@atlaskit/css": "^0.19.0",
|
|
78
69
|
"@atlaskit/ds-lib": "^7.0.0",
|
|
79
|
-
"@atlaskit/icon": "^
|
|
70
|
+
"@atlaskit/icon": "^35.0.0",
|
|
80
71
|
"@atlaskit/layering": "^3.7.0",
|
|
81
72
|
"@atlaskit/logo": "^20.1.0",
|
|
82
73
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
83
74
|
"@atlaskit/platform-feature-flags-react": "^0.5.0",
|
|
84
|
-
"@atlaskit/popup": "^4.
|
|
75
|
+
"@atlaskit/popup": "^4.20.0",
|
|
85
76
|
"@atlaskit/pragmatic-drag-and-drop": "^1.8.0",
|
|
86
77
|
"@atlaskit/primitives": "^19.0.0",
|
|
87
78
|
"@atlaskit/side-nav-items": "^1.13.0",
|
|
@@ -105,15 +96,15 @@
|
|
|
105
96
|
"@atlaskit/badge": "^18.6.0",
|
|
106
97
|
"@atlaskit/banner": "^14.1.0",
|
|
107
98
|
"@atlaskit/breadcrumbs": "^16.1.0",
|
|
108
|
-
"@atlaskit/dropdown-menu": "^16.
|
|
109
|
-
"@atlaskit/flag": "^17.
|
|
99
|
+
"@atlaskit/dropdown-menu": "^16.9.0",
|
|
100
|
+
"@atlaskit/flag": "^17.12.0",
|
|
110
101
|
"@atlaskit/form": "^15.5.0",
|
|
111
102
|
"@atlaskit/heading": "^5.4.0",
|
|
112
103
|
"@atlaskit/inline-dialog": "^18.1.0",
|
|
113
104
|
"@atlaskit/link": "^3.4.0",
|
|
114
105
|
"@atlaskit/lozenge": "^13.8.0",
|
|
115
106
|
"@atlaskit/menu": "^8.5.0",
|
|
116
|
-
"@atlaskit/modal-dialog": "^15.
|
|
107
|
+
"@atlaskit/modal-dialog": "^15.1.0",
|
|
117
108
|
"@atlaskit/onboarding": "^14.6.0",
|
|
118
109
|
"@atlaskit/page-header": "^12.2.0",
|
|
119
110
|
"@atlaskit/page-layout": "^4.3.0",
|
|
@@ -123,18 +114,19 @@
|
|
|
123
114
|
"@atlaskit/skeleton": "^2.1.0",
|
|
124
115
|
"@atlaskit/spotlight": "^0.14.0",
|
|
125
116
|
"@atlaskit/textfield": "^8.3.0",
|
|
126
|
-
"@atlaskit/top-layer": "^0.
|
|
117
|
+
"@atlaskit/top-layer": "^0.8.0",
|
|
127
118
|
"@atlassian/feature-flags-test-utils": "^1.1.0",
|
|
128
119
|
"@atlassian/gemini": "^1.45.0",
|
|
129
120
|
"@atlassian/react-compiler-gating": "workspace:^",
|
|
130
121
|
"@atlassian/search-dialog": "^10.3.0",
|
|
131
122
|
"@atlassian/ssr-tests": "workspace:^",
|
|
132
123
|
"@atlassian/test-utils": "^1.0.0",
|
|
133
|
-
"@atlassian/testing-library": "^0.
|
|
124
|
+
"@atlassian/testing-library": "^0.6.0",
|
|
134
125
|
"@axe-core/playwright": "^4.11.1",
|
|
135
126
|
"@testing-library/react": "^16.3.0",
|
|
136
127
|
"@testing-library/user-event": "^14.4.3",
|
|
137
128
|
"raf-stub": "^2.0.1",
|
|
129
|
+
"react": "^18.2.0",
|
|
138
130
|
"react-dom": "^18.2.0"
|
|
139
131
|
},
|
|
140
132
|
"techstack": {
|
|
@@ -174,9 +166,6 @@
|
|
|
174
166
|
"platform-dst-shape-theme-default": {
|
|
175
167
|
"type": "boolean"
|
|
176
168
|
},
|
|
177
|
-
"platform_dst_nav4_flyout_menu_slots_close_button": {
|
|
178
|
-
"type": "boolean"
|
|
179
|
-
},
|
|
180
169
|
"platform_dst_nav4_custom_theming_fhs_1": {
|
|
181
170
|
"type": "boolean"
|
|
182
171
|
},
|