@atlaskit/navigation-system 2.22.0 → 2.23.1
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 +19 -22
- package/dist/cjs/ui/menu-item/menu-item.compiled.css +1 -7
- package/dist/cjs/ui/menu-item/menu-item.js +5 -12
- package/dist/es2019/ui/menu-item/menu-item.compiled.css +1 -7
- package/dist/es2019/ui/menu-item/menu-item.js +5 -12
- package/dist/esm/ui/menu-item/menu-item.compiled.css +1 -7
- package/dist/esm/ui/menu-item/menu-item.js +5 -12
- package/package.json +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 2.23.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 2.23.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`46f39b03ba41d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/46f39b03ba41d) -
|
|
14
|
+
The menu item `actionsOnHover` slot has been updated to improve accessibility. These changes were
|
|
15
|
+
previously behind a feature flag, which has now been removed. These changes are now available for
|
|
16
|
+
all consumers.
|
|
17
|
+
- Popup triggers placed inside the slot will now correctly be focused when closing their
|
|
18
|
+
respective popups.
|
|
19
|
+
|
|
20
|
+
- Interactive elements placed inside the slot will be in the tab order when tabbing backwards.
|
|
21
|
+
|
|
3
22
|
## 2.22.0
|
|
4
23
|
|
|
5
24
|
### Minor Changes
|
|
@@ -7,7 +26,6 @@
|
|
|
7
26
|
- [`3c732646f3e19`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3c732646f3e19) -
|
|
8
27
|
The tooltip for truncated side nav menu item has been updated behind the feature gate
|
|
9
28
|
`platform_dst_side_nav_remove_custom_tooltip`:
|
|
10
|
-
|
|
11
29
|
- The tooltip now uses the standard tooltip styling and behavior, instead of using a custom
|
|
12
30
|
component.
|
|
13
31
|
- The tooltip position has been updated to `right-start` (previously it was `right`).
|
|
@@ -27,7 +45,6 @@
|
|
|
27
45
|
This change is behind the feature gate `navx-full-height-sidebar`.
|
|
28
46
|
|
|
29
47
|
This includes:
|
|
30
|
-
|
|
31
48
|
- `SideNav` peek animations
|
|
32
49
|
- `SideNav` expand and collapse animations
|
|
33
50
|
- `TopNavStart` reorder animations
|
|
@@ -74,7 +91,6 @@
|
|
|
74
91
|
- [`dc96cee1f923a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dc96cee1f923a) -
|
|
75
92
|
Minor improvements to the side nav peek (flyout) animations. These changes are behind the
|
|
76
93
|
`navx-full-height-sidebar` feature flag.
|
|
77
|
-
|
|
78
94
|
- The timing functions for the peek and hide animations have been slightly tweaked to align with
|
|
79
95
|
the new full height sidebar animations
|
|
80
96
|
- The peek animation duration has been increased to 300ms from 200ms to align with the new full
|
|
@@ -437,7 +453,6 @@
|
|
|
437
453
|
- [`e40aa48c11a02`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e40aa48c11a02) -
|
|
438
454
|
The menu item `actionsOnHover` slot has been updated, behind a feature flag, to improve
|
|
439
455
|
accessibility.
|
|
440
|
-
|
|
441
456
|
- Popup triggers placed inside the slot will now correctly be focused when closing their
|
|
442
457
|
respective popups.
|
|
443
458
|
|
|
@@ -875,12 +890,10 @@
|
|
|
875
890
|
- [#171544](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/171544)
|
|
876
891
|
[`855881697b291`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/855881697b291) -
|
|
877
892
|
The following components have been renamed:
|
|
878
|
-
|
|
879
893
|
- `MenuLinkItem` -> `LinkMenuItem`
|
|
880
894
|
- `MenuButtonItem` -> `ButtonMenuItem`
|
|
881
895
|
|
|
882
896
|
Their imports have been updated to use the new names.
|
|
883
|
-
|
|
884
897
|
- `@atlassian/navigation-system/side-nav/menu-link-item` ->
|
|
885
898
|
`@atlassian/navigation-system/side-nav/link-menu-item`
|
|
886
899
|
- `@atlassian/navigation-system/side-nav/menu-button-item` ->
|
|
@@ -914,7 +927,6 @@
|
|
|
914
927
|
- [#169983](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/169983)
|
|
915
928
|
[`c72e85f165c1b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c72e85f165c1b) -
|
|
916
929
|
A number of components have been renamed:
|
|
917
|
-
|
|
918
930
|
- `TopBar` -> `TopNav`
|
|
919
931
|
- `HomeActions` -> `TopNavStart`
|
|
920
932
|
- `CommonActions` -> `TopNavMiddle`
|
|
@@ -926,7 +938,6 @@
|
|
|
926
938
|
|
|
927
939
|
The following components have been moved from the `@atlassian/navigation-system/top-nav-items`
|
|
928
940
|
entrypoint to the `@atlassian/navigation-system/layout/top-nav` entrypoint:
|
|
929
|
-
|
|
930
941
|
- `TopNavStart`
|
|
931
942
|
- `TopNavMiddle`
|
|
932
943
|
- `TopNavEnd`
|
|
@@ -1195,7 +1206,6 @@
|
|
|
1195
1206
|
- [#152893](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/152893)
|
|
1196
1207
|
[`ffd9759e99c3e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ffd9759e99c3e) -
|
|
1197
1208
|
Notifications and Help now re-use `UserAction` internally, which means:
|
|
1198
|
-
|
|
1199
1209
|
- They now support the `onMouseEnter` prop.
|
|
1200
1210
|
- They now support the `isListItem` prop. This allows you to disable the default list item
|
|
1201
1211
|
wrapper. It is intended for use with dropdown menus or popups, and requires you to render your
|
|
@@ -1369,7 +1379,6 @@
|
|
|
1369
1379
|
- [#137059](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/137059)
|
|
1370
1380
|
[`8d6a3a75c70f1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8d6a3a75c70f1) -
|
|
1371
1381
|
[ux] Changes the resizing bounds of the `Panel` slot to have a:
|
|
1372
|
-
|
|
1373
1382
|
- Minimum resizing width equal to the `defaultWidth` (up to a maximum of `400px`)
|
|
1374
1383
|
- Maximum resizing width of half the viewport width after the sidebar has been removed. This means
|
|
1375
1384
|
that the `Panel` will not be larger than the content.
|
|
@@ -2242,7 +2251,6 @@
|
|
|
2242
2251
|
Color inputs should be parsed into `RGB` objects before providing them as the custom theme.
|
|
2243
2252
|
|
|
2244
2253
|
We now export multiple utility functions to assist with color parsing:
|
|
2245
|
-
|
|
2246
2254
|
- Hex parsing with `parseHex` from
|
|
2247
2255
|
`@atlassian/navigation-system/experimental/color-utils/parse-hex`
|
|
2248
2256
|
- CSS `hsl()` parsing with `parseHsl` from
|
|
@@ -2307,14 +2315,12 @@
|
|
|
2307
2315
|
- [#176005](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/176005)
|
|
2308
2316
|
[`a7f4659856234`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a7f4659856234) -
|
|
2309
2317
|
Adds `visualContentRef` prop to:
|
|
2310
|
-
|
|
2311
2318
|
- `ExpandableMenuItemTrigger`
|
|
2312
2319
|
- `FlyoutMenuItemTrigger`
|
|
2313
2320
|
- `MenuButtonItem`
|
|
2314
2321
|
- `MenuLinkItem`
|
|
2315
2322
|
|
|
2316
2323
|
Adds `listItemRef` to:
|
|
2317
|
-
|
|
2318
2324
|
- `MenuButtonItem`
|
|
2319
2325
|
- `MenuLinkItem`
|
|
2320
2326
|
|
|
@@ -2369,14 +2375,12 @@
|
|
|
2369
2375
|
|
|
2370
2376
|
The following components previously had an optional `label` prop, which has now been made
|
|
2371
2377
|
required:
|
|
2372
|
-
|
|
2373
2378
|
- Help
|
|
2374
2379
|
- NavLogo
|
|
2375
2380
|
- Notifications
|
|
2376
2381
|
|
|
2377
2382
|
The following components previously used the `children` prop as the label, but have now been
|
|
2378
2383
|
updated to use a required `label` prop:
|
|
2379
|
-
|
|
2380
2384
|
- Settings
|
|
2381
2385
|
- Profile
|
|
2382
2386
|
- UserAction
|
|
@@ -2449,7 +2453,6 @@
|
|
|
2449
2453
|
- [#162526](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/162526)
|
|
2450
2454
|
[`9a0c103641a2f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9a0c103641a2f) -
|
|
2451
2455
|
Menu items are now more resilient to narrow widths and deep nesting.
|
|
2452
|
-
|
|
2453
2456
|
- A minimum width of 72px has been set on menu items.
|
|
2454
2457
|
- The menu item slots (elemBefore, elemAfter, actions, actionsOnHover) now hide overflowing
|
|
2455
2458
|
content to prevent content spilling out or overlapping other slots when space is limited.
|
|
@@ -2561,7 +2564,6 @@
|
|
|
2561
2564
|
[`c3366ec919883`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c3366ec919883) -
|
|
2562
2565
|
The side nav slots and scroll container feature flag has been cleaned up. The following changes
|
|
2563
2566
|
are now available for all consumers:
|
|
2564
|
-
|
|
2565
2567
|
- `PanelSplitterProvider` no longer renders a scroll container, and no longer adds a flex
|
|
2566
2568
|
container.
|
|
2567
2569
|
- `SideNavContent` renders a scroll container.
|
|
@@ -2605,7 +2607,6 @@
|
|
|
2605
2607
|
- [#159268](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159268)
|
|
2606
2608
|
[`487d22f32a93f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/487d22f32a93f) -
|
|
2607
2609
|
Trivial CSS changes to bring this inline with @atlaskit/css typing:
|
|
2608
|
-
|
|
2609
2610
|
- We now allow certain `zIndex` values.
|
|
2610
2611
|
- `background` is a banned property, use `backgroundColor` instead
|
|
2611
2612
|
- Migrates a few things to the new `@atlaskit/css` JSX pragmas.
|
|
@@ -2753,7 +2754,6 @@
|
|
|
2753
2754
|
[`b6738b5acfef0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6738b5acfef0) -
|
|
2754
2755
|
We are making changes to the side nav scroll container behind a feature flag, in order to support
|
|
2755
2756
|
the new header and footer slot components.
|
|
2756
|
-
|
|
2757
2757
|
- `PanelSplitterProvider` no longer renders a scroll container, and no longer adds a flex
|
|
2758
2758
|
container.
|
|
2759
2759
|
- `SideNavContent` renders a scroll container.
|
|
@@ -2932,7 +2932,6 @@
|
|
|
2932
2932
|
- [#148601](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/148601)
|
|
2933
2933
|
[`eff2b0c0e6815`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eff2b0c0e6815) -
|
|
2934
2934
|
Two required label props have been added to `SideNavToggleButton`:
|
|
2935
|
-
|
|
2936
2935
|
- `collapseLabel`: used as the button label when the toggle button will collapse the side nav
|
|
2937
2936
|
- `expandLabel`: used as the button label when the toggle button will expand the side nav
|
|
2938
2937
|
|
|
@@ -3015,7 +3014,6 @@
|
|
|
3015
3014
|
- [#145878](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/145878)
|
|
3016
3015
|
[`72e885acee099`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/72e885acee099) -
|
|
3017
3016
|
[ux] Side nav buttons have been consolidated.
|
|
3018
|
-
|
|
3019
3017
|
- `SideNavToggleButton` (used in the top bar) is now always visible. It no longer has built in
|
|
3020
3018
|
visibility logic for showing/hiding itself based on whether the side nav is expanded or
|
|
3021
3019
|
collapsed.
|
|
@@ -3134,7 +3132,6 @@
|
|
|
3134
3132
|
[`e484ea0d5c1e2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e484ea0d5c1e2) -
|
|
3135
3133
|
The `NavLogo` component logo and mobileLogo props have changed to prevent invalid and inaccessible
|
|
3136
3134
|
states.
|
|
3137
|
-
|
|
3138
3135
|
- `logo` now takes a component reference that matches `@atlaskit/logo` props instead of arbitrary
|
|
3139
3136
|
JSX
|
|
3140
3137
|
- `mobileLogo` has been renamed to `icon` and now takes a component reference that matches
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
2
|
._1r04ze3t{inset:var(--ds-space-0,0)}
|
|
4
3
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
@@ -25,13 +24,11 @@
|
|
|
25
24
|
._1e02ze3t{inset-inline-start:var(--ds-space-0,0)}
|
|
26
25
|
._1e0c11p5{display:grid}
|
|
27
26
|
._1e0c13yo{display:var(--elem-after-display)}
|
|
28
|
-
._1e0c1c3z{display:var(--actions-on-hover-display)}
|
|
29
27
|
._1e0c1txw{display:flex}
|
|
30
28
|
._1i4q1hna{overflow-wrap:break-word}
|
|
31
29
|
._1ifmglyw{-webkit-touch-callout:none}
|
|
32
30
|
._1lmcu4vt{grid-template-areas:"elem-before interactive elem-after actions"}
|
|
33
31
|
._1o9zidpf{flex-shrink:0}
|
|
34
|
-
._1ojv1txw:has([aria-expanded=true][aria-haspopup=true]){--actions-on-hover-display:flex}
|
|
35
32
|
._1q511b66{padding-block-start:var(--ds-space-050,4px)}
|
|
36
33
|
._1q51v77o{padding-block-start:var(--ds-space-025,2px)}
|
|
37
34
|
._1rbv1wug:has([aria-expanded=true][aria-haspopup=true]){--actions-on-hover-width:auto}
|
|
@@ -64,8 +61,6 @@
|
|
|
64
61
|
._bozg1b66{padding-inline-start:var(--ds-space-050,4px)}
|
|
65
62
|
._db801b66{--actions-on-hover-padding:var(--ds-space-050,4px)}
|
|
66
63
|
._db80idpf{--actions-on-hover-padding:0}
|
|
67
|
-
._ek6g1txw{--actions-on-hover-display:flex}
|
|
68
|
-
._ek6gglyw{--actions-on-hover-display:none}
|
|
69
64
|
._kqswh2mm{position:relative}
|
|
70
65
|
._kqswstnw{position:absolute}
|
|
71
66
|
._kwq51b66:has([aria-expanded=true][aria-haspopup=true]){--actions-on-hover-padding:var(--ds-space-050,4px)}
|
|
@@ -93,12 +88,11 @@
|
|
|
93
88
|
._yv0e7dup{grid-template-columns:minmax(0,auto) 1fr minmax(0,auto) minmax(0,auto)}
|
|
94
89
|
._yv0enbh3{grid-template-columns:subgrid}
|
|
95
90
|
._12s918uv:focus-within{overflow-y:initial}
|
|
96
|
-
._1brr1txw:focus-within{--actions-on-hover-display:flex}
|
|
97
91
|
._1guo18uv:focus-within{overflow-x:initial}
|
|
98
92
|
._1mfcglyw:focus-within{--elem-after-display:none}
|
|
99
93
|
._91nl1wug:focus-within{--actions-on-hover-width:auto}
|
|
100
94
|
._iy5o1b66:focus-within{--actions-on-hover-padding:var(--ds-space-050,4px)}
|
|
101
|
-
._t7p8kb7n:focus-within{--actions-on-hover-opacity:1}
|
|
95
|
+
._t7p8kb7n:focus-within{--actions-on-hover-opacity:1}
|
|
102
96
|
._11om6b4r:hover{animation-name:k1xyysw3}
|
|
103
97
|
._1sjuglyw:hover{--elem-after-display:none}
|
|
104
98
|
._1uy01amc:hover{animation-delay:.8s}
|
|
@@ -63,8 +63,6 @@ var defaultAvatarValues = {
|
|
|
63
63
|
size: 'small'
|
|
64
64
|
};
|
|
65
65
|
var elemAfterDisplayVar = '--elem-after-display';
|
|
66
|
-
// Note: actionsOnHoverDisplayVar wll be cleaned up with fg('platform_dst_nav4_actionsonhover_focus_fix')
|
|
67
|
-
var actionsOnHoverDisplayVar = '--actions-on-hover-display';
|
|
68
66
|
var actionsOnHoverOpacityVar = '--actions-on-hover-opacity';
|
|
69
67
|
var actionsOnHoverWidthVar = '--actions-on-hover-width';
|
|
70
68
|
var actionsOnHoverPaddingInlineEndVar = '--actions-on-hover-padding';
|
|
@@ -151,12 +149,9 @@ var onTopOfButtonOrAnchorStyles = {
|
|
|
151
149
|
*/
|
|
152
150
|
var nestedOpenPopupCSSSelector = exports.nestedOpenPopupCSSSelector = '&:has([aria-expanded="true"][aria-haspopup="true"])';
|
|
153
151
|
var containerStyles = {
|
|
154
|
-
root: "_2rko12b0 _vchhusvi _1e0c11p5 _yv0e7dup _2z05hkll _1lmcu4vt _1ul9t9kd _4t3iviql _4cvr1h6o _uiztglyw _syaz1gjq _1yyu1j28 _91ju1txw _1swv108i _irr3108i",
|
|
155
|
-
actionsOnHoverFocusFixEnabled: "_uomdidpf _pmxpidpf _db80idpf _qxq9kb7n _1rbv1wug _kwq51b66 _t7p8kb7n _g4kikb7n _91nl1wug _ynyi1wug _iy5o1b66 _v4o21b66",
|
|
156
|
-
actionsOnHoverFocusFixDisabled: "_ek6gglyw _1ojv1txw _1brr1txw _109x1txw",
|
|
152
|
+
root: "_2rko12b0 _vchhusvi _1e0c11p5 _yv0e7dup _2z05hkll _1lmcu4vt _1ul9t9kd _4t3iviql _4cvr1h6o _uiztglyw _syaz1gjq _1yyu1j28 _91ju1txw _uomdidpf _pmxpidpf _db80idpf _qxq9kb7n _1rbv1wug _kwq51b66 _1swv108i _irr3108i _t7p8kb7n _g4kikb7n _91nl1wug _ynyi1wug _iy5o1b66 _v4o21b66",
|
|
157
153
|
removeElemAfter: "_91juglyw",
|
|
158
|
-
|
|
159
|
-
showHoverActionsWithFocusFixDisabled: "_ek6g1txw",
|
|
154
|
+
showHoverActions: "_uomdkb7n _pmxp1wug _db801b66",
|
|
160
155
|
removeElemAfterOnHoverOrOpenNestedPopup: "_1djyglyw _1mfcglyw _1sjuglyw",
|
|
161
156
|
selected: "_bfhkfg4m _syazaqb7 _1yyu1fvw _1swvi1yw _30l3aqb7 _irr3i1yw",
|
|
162
157
|
disabled: "_syaz1lh4 _irr3n7od",
|
|
@@ -178,9 +173,7 @@ var actionStyles = {
|
|
|
178
173
|
root: "_zulp1b66 _nd5lbc26 _1reo15vq _18m915vq _1e0c1txw _4cvr1h6o _y4ti1b66 _1guo18uv _12s918uv"
|
|
179
174
|
};
|
|
180
175
|
var actionsOnHoverStyles = {
|
|
181
|
-
root: "_nd5l16dh _zulp1b66 _1reo15vq _18m915vq _4cvr1h6o _1guo18uv _12s918uv"
|
|
182
|
-
focusFixEnabled: "_1e0c1txw _tzy4pnc3 _1bsbty16 _y4tidria",
|
|
183
|
-
focusFixDisabled: "_1e0c1c3z _y4ti1b66"
|
|
176
|
+
root: "_nd5l16dh _zulp1b66 _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _tzy4pnc3 _1bsbty16 _y4tidria _1guo18uv _12s918uv"
|
|
184
177
|
};
|
|
185
178
|
var textStyles = {
|
|
186
179
|
root: "_zulpv77o _1reo15vq _18m915vq _y4ti1b66 _bozg1b66 _1e0c1txw _2lx21bp4 _1ul91c9m _1guo18uv _12s918uv",
|
|
@@ -333,7 +326,7 @@ var MenuItemBaseNoRef = function MenuItemBaseNoRef(_ref3, forwardedRef) {
|
|
|
333
326
|
ref: visualContentRef,
|
|
334
327
|
"data-testid": testId ? "".concat(testId, "-container") : undefined,
|
|
335
328
|
"data-selected": isSelected,
|
|
336
|
-
className: (0, _runtime.ax)([containerStyles.root,
|
|
329
|
+
className: (0, _runtime.ax)([containerStyles.root, isSelected && containerStyles.selected, isDragging && containerStyles.dragging, description && containerStyles.hasDescription, showHoverActionsWhenNotHovered && containerStyles.showHoverActions, showHoverActionsWhenNotHovered && elemAfter && containerStyles.removeElemAfter, actionsOnHover && elemAfter && containerStyles.removeElemAfterOnHoverOrOpenNestedPopup, isDisabled && containerStyles.disabled])
|
|
337
330
|
}, /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
338
331
|
content: function content() {
|
|
339
332
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, children), description ? /*#__PURE__*/_react.default.createElement("div", null, description) : null);
|
|
@@ -407,7 +400,7 @@ var MenuItemBaseNoRef = function MenuItemBaseNoRef(_ref3, forwardedRef) {
|
|
|
407
400
|
}), showElemBefore && /*#__PURE__*/_react.default.createElement("div", {
|
|
408
401
|
className: (0, _runtime.ax)([elemBeforeStyles.root, topLevelSiblingStyles.root, onTopOfButtonOrAnchorStyles.root])
|
|
409
402
|
}, elemBefore), actionsOnHover && /*#__PURE__*/_react.default.createElement("div", {
|
|
410
|
-
className: (0, _runtime.ax)([actionsOnHoverStyles.root
|
|
403
|
+
className: (0, _runtime.ax)([actionsOnHoverStyles.root])
|
|
411
404
|
}, actionsOnHover), elemAfter && /*#__PURE__*/_react.default.createElement("div", {
|
|
412
405
|
className: (0, _runtime.ax)([elemAfterStyles.root, topLevelSiblingStyles.root, onTopOfButtonOrAnchorStyles.root])
|
|
413
406
|
}, elemAfter), actions && /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
2
|
._1r04ze3t{inset:var(--ds-space-0,0)}
|
|
4
3
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
@@ -25,13 +24,11 @@
|
|
|
25
24
|
._1e02ze3t{inset-inline-start:var(--ds-space-0,0)}
|
|
26
25
|
._1e0c11p5{display:grid}
|
|
27
26
|
._1e0c13yo{display:var(--elem-after-display)}
|
|
28
|
-
._1e0c1c3z{display:var(--actions-on-hover-display)}
|
|
29
27
|
._1e0c1txw{display:flex}
|
|
30
28
|
._1i4q1hna{overflow-wrap:break-word}
|
|
31
29
|
._1ifmglyw{-webkit-touch-callout:none}
|
|
32
30
|
._1lmcu4vt{grid-template-areas:"elem-before interactive elem-after actions"}
|
|
33
31
|
._1o9zidpf{flex-shrink:0}
|
|
34
|
-
._1ojv1txw:has([aria-expanded=true][aria-haspopup=true]){--actions-on-hover-display:flex}
|
|
35
32
|
._1q511b66{padding-block-start:var(--ds-space-050,4px)}
|
|
36
33
|
._1q51v77o{padding-block-start:var(--ds-space-025,2px)}
|
|
37
34
|
._1rbv1wug:has([aria-expanded=true][aria-haspopup=true]){--actions-on-hover-width:auto}
|
|
@@ -64,8 +61,6 @@
|
|
|
64
61
|
._bozg1b66{padding-inline-start:var(--ds-space-050,4px)}
|
|
65
62
|
._db801b66{--actions-on-hover-padding:var(--ds-space-050,4px)}
|
|
66
63
|
._db80idpf{--actions-on-hover-padding:0}
|
|
67
|
-
._ek6g1txw{--actions-on-hover-display:flex}
|
|
68
|
-
._ek6gglyw{--actions-on-hover-display:none}
|
|
69
64
|
._kqswh2mm{position:relative}
|
|
70
65
|
._kqswstnw{position:absolute}
|
|
71
66
|
._kwq51b66:has([aria-expanded=true][aria-haspopup=true]){--actions-on-hover-padding:var(--ds-space-050,4px)}
|
|
@@ -93,12 +88,11 @@
|
|
|
93
88
|
._yv0e7dup{grid-template-columns:minmax(0,auto) 1fr minmax(0,auto) minmax(0,auto)}
|
|
94
89
|
._yv0enbh3{grid-template-columns:subgrid}
|
|
95
90
|
._12s918uv:focus-within{overflow-y:initial}
|
|
96
|
-
._1brr1txw:focus-within{--actions-on-hover-display:flex}
|
|
97
91
|
._1guo18uv:focus-within{overflow-x:initial}
|
|
98
92
|
._1mfcglyw:focus-within{--elem-after-display:none}
|
|
99
93
|
._91nl1wug:focus-within{--actions-on-hover-width:auto}
|
|
100
94
|
._iy5o1b66:focus-within{--actions-on-hover-padding:var(--ds-space-050,4px)}
|
|
101
|
-
._t7p8kb7n:focus-within{--actions-on-hover-opacity:1}
|
|
95
|
+
._t7p8kb7n:focus-within{--actions-on-hover-opacity:1}
|
|
102
96
|
._11om6b4r:hover{animation-name:k1xyysw3}
|
|
103
97
|
._1sjuglyw:hover{--elem-after-display:none}
|
|
104
98
|
._1uy01amc:hover{animation-delay:.8s}
|
|
@@ -46,8 +46,6 @@ const defaultAvatarValues = {
|
|
|
46
46
|
size: 'small'
|
|
47
47
|
};
|
|
48
48
|
const elemAfterDisplayVar = '--elem-after-display';
|
|
49
|
-
// Note: actionsOnHoverDisplayVar wll be cleaned up with fg('platform_dst_nav4_actionsonhover_focus_fix')
|
|
50
|
-
const actionsOnHoverDisplayVar = '--actions-on-hover-display';
|
|
51
49
|
const actionsOnHoverOpacityVar = '--actions-on-hover-opacity';
|
|
52
50
|
const actionsOnHoverWidthVar = '--actions-on-hover-width';
|
|
53
51
|
const actionsOnHoverPaddingInlineEndVar = '--actions-on-hover-padding';
|
|
@@ -134,12 +132,9 @@ const onTopOfButtonOrAnchorStyles = {
|
|
|
134
132
|
*/
|
|
135
133
|
export const nestedOpenPopupCSSSelector = '&:has([aria-expanded="true"][aria-haspopup="true"])';
|
|
136
134
|
const containerStyles = {
|
|
137
|
-
root: "_2rko12b0 _vchhusvi _1e0c11p5 _yv0e7dup _2z05hkll _1lmcu4vt _1ul9t9kd _4t3iviql _4cvr1h6o _uiztglyw _syaz1gjq _1yyu1j28 _91ju1txw _1swv108i _irr3108i",
|
|
138
|
-
actionsOnHoverFocusFixEnabled: "_uomdidpf _pmxpidpf _db80idpf _qxq9kb7n _1rbv1wug _kwq51b66 _t7p8kb7n _g4kikb7n _91nl1wug _ynyi1wug _iy5o1b66 _v4o21b66",
|
|
139
|
-
actionsOnHoverFocusFixDisabled: "_ek6gglyw _1ojv1txw _1brr1txw _109x1txw",
|
|
135
|
+
root: "_2rko12b0 _vchhusvi _1e0c11p5 _yv0e7dup _2z05hkll _1lmcu4vt _1ul9t9kd _4t3iviql _4cvr1h6o _uiztglyw _syaz1gjq _1yyu1j28 _91ju1txw _uomdidpf _pmxpidpf _db80idpf _qxq9kb7n _1rbv1wug _kwq51b66 _1swv108i _irr3108i _t7p8kb7n _g4kikb7n _91nl1wug _ynyi1wug _iy5o1b66 _v4o21b66",
|
|
140
136
|
removeElemAfter: "_91juglyw",
|
|
141
|
-
|
|
142
|
-
showHoverActionsWithFocusFixDisabled: "_ek6g1txw",
|
|
137
|
+
showHoverActions: "_uomdkb7n _pmxp1wug _db801b66",
|
|
143
138
|
removeElemAfterOnHoverOrOpenNestedPopup: "_1djyglyw _1mfcglyw _1sjuglyw",
|
|
144
139
|
selected: "_bfhkfg4m _syazaqb7 _1yyu1fvw _1swvi1yw _30l3aqb7 _irr3i1yw",
|
|
145
140
|
disabled: "_syaz1lh4 _irr3n7od",
|
|
@@ -161,9 +156,7 @@ const actionStyles = {
|
|
|
161
156
|
root: "_zulp1b66 _nd5lbc26 _1reo15vq _18m915vq _1e0c1txw _4cvr1h6o _y4ti1b66 _1guo18uv _12s918uv"
|
|
162
157
|
};
|
|
163
158
|
const actionsOnHoverStyles = {
|
|
164
|
-
root: "_nd5l16dh _zulp1b66 _1reo15vq _18m915vq _4cvr1h6o _1guo18uv _12s918uv"
|
|
165
|
-
focusFixEnabled: "_1e0c1txw _tzy4pnc3 _1bsbty16 _y4tidria",
|
|
166
|
-
focusFixDisabled: "_1e0c1c3z _y4ti1b66"
|
|
159
|
+
root: "_nd5l16dh _zulp1b66 _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _tzy4pnc3 _1bsbty16 _y4tidria _1guo18uv _12s918uv"
|
|
167
160
|
};
|
|
168
161
|
const textStyles = {
|
|
169
162
|
root: "_zulpv77o _1reo15vq _18m915vq _y4ti1b66 _bozg1b66 _1e0c1txw _2lx21bp4 _1ul91c9m _1guo18uv _12s918uv",
|
|
@@ -318,7 +311,7 @@ const MenuItemBaseNoRef = ({
|
|
|
318
311
|
ref: visualContentRef,
|
|
319
312
|
"data-testid": testId ? `${testId}-container` : undefined,
|
|
320
313
|
"data-selected": isSelected,
|
|
321
|
-
className: ax([containerStyles.root,
|
|
314
|
+
className: ax([containerStyles.root, isSelected && containerStyles.selected, isDragging && containerStyles.dragging, description && containerStyles.hasDescription, showHoverActionsWhenNotHovered && containerStyles.showHoverActions, showHoverActionsWhenNotHovered && elemAfter && containerStyles.removeElemAfter, actionsOnHover && elemAfter && containerStyles.removeElemAfterOnHoverOrOpenNestedPopup, isDisabled && containerStyles.disabled])
|
|
322
315
|
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
323
316
|
content: () => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, children), description ? /*#__PURE__*/React.createElement("div", null, description) : null),
|
|
324
317
|
position: fg('platform_dst_side_nav_remove_custom_tooltip') ? 'right-start' : 'right'
|
|
@@ -391,7 +384,7 @@ const MenuItemBaseNoRef = ({
|
|
|
391
384
|
}), showElemBefore && /*#__PURE__*/React.createElement("div", {
|
|
392
385
|
className: ax([elemBeforeStyles.root, topLevelSiblingStyles.root, onTopOfButtonOrAnchorStyles.root])
|
|
393
386
|
}, elemBefore), actionsOnHover && /*#__PURE__*/React.createElement("div", {
|
|
394
|
-
className: ax([actionsOnHoverStyles.root
|
|
387
|
+
className: ax([actionsOnHoverStyles.root])
|
|
395
388
|
}, actionsOnHover), elemAfter && /*#__PURE__*/React.createElement("div", {
|
|
396
389
|
className: ax([elemAfterStyles.root, topLevelSiblingStyles.root, onTopOfButtonOrAnchorStyles.root])
|
|
397
390
|
}, elemAfter), actions && /*#__PURE__*/React.createElement("div", {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
2
|
._1r04ze3t{inset:var(--ds-space-0,0)}
|
|
4
3
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
@@ -25,13 +24,11 @@
|
|
|
25
24
|
._1e02ze3t{inset-inline-start:var(--ds-space-0,0)}
|
|
26
25
|
._1e0c11p5{display:grid}
|
|
27
26
|
._1e0c13yo{display:var(--elem-after-display)}
|
|
28
|
-
._1e0c1c3z{display:var(--actions-on-hover-display)}
|
|
29
27
|
._1e0c1txw{display:flex}
|
|
30
28
|
._1i4q1hna{overflow-wrap:break-word}
|
|
31
29
|
._1ifmglyw{-webkit-touch-callout:none}
|
|
32
30
|
._1lmcu4vt{grid-template-areas:"elem-before interactive elem-after actions"}
|
|
33
31
|
._1o9zidpf{flex-shrink:0}
|
|
34
|
-
._1ojv1txw:has([aria-expanded=true][aria-haspopup=true]){--actions-on-hover-display:flex}
|
|
35
32
|
._1q511b66{padding-block-start:var(--ds-space-050,4px)}
|
|
36
33
|
._1q51v77o{padding-block-start:var(--ds-space-025,2px)}
|
|
37
34
|
._1rbv1wug:has([aria-expanded=true][aria-haspopup=true]){--actions-on-hover-width:auto}
|
|
@@ -64,8 +61,6 @@
|
|
|
64
61
|
._bozg1b66{padding-inline-start:var(--ds-space-050,4px)}
|
|
65
62
|
._db801b66{--actions-on-hover-padding:var(--ds-space-050,4px)}
|
|
66
63
|
._db80idpf{--actions-on-hover-padding:0}
|
|
67
|
-
._ek6g1txw{--actions-on-hover-display:flex}
|
|
68
|
-
._ek6gglyw{--actions-on-hover-display:none}
|
|
69
64
|
._kqswh2mm{position:relative}
|
|
70
65
|
._kqswstnw{position:absolute}
|
|
71
66
|
._kwq51b66:has([aria-expanded=true][aria-haspopup=true]){--actions-on-hover-padding:var(--ds-space-050,4px)}
|
|
@@ -93,12 +88,11 @@
|
|
|
93
88
|
._yv0e7dup{grid-template-columns:minmax(0,auto) 1fr minmax(0,auto) minmax(0,auto)}
|
|
94
89
|
._yv0enbh3{grid-template-columns:subgrid}
|
|
95
90
|
._12s918uv:focus-within{overflow-y:initial}
|
|
96
|
-
._1brr1txw:focus-within{--actions-on-hover-display:flex}
|
|
97
91
|
._1guo18uv:focus-within{overflow-x:initial}
|
|
98
92
|
._1mfcglyw:focus-within{--elem-after-display:none}
|
|
99
93
|
._91nl1wug:focus-within{--actions-on-hover-width:auto}
|
|
100
94
|
._iy5o1b66:focus-within{--actions-on-hover-padding:var(--ds-space-050,4px)}
|
|
101
|
-
._t7p8kb7n:focus-within{--actions-on-hover-opacity:1}
|
|
95
|
+
._t7p8kb7n:focus-within{--actions-on-hover-opacity:1}
|
|
102
96
|
._11om6b4r:hover{animation-name:k1xyysw3}
|
|
103
97
|
._1sjuglyw:hover{--elem-after-display:none}
|
|
104
98
|
._1uy01amc:hover{animation-delay:.8s}
|
|
@@ -52,8 +52,6 @@ var defaultAvatarValues = {
|
|
|
52
52
|
size: 'small'
|
|
53
53
|
};
|
|
54
54
|
var elemAfterDisplayVar = '--elem-after-display';
|
|
55
|
-
// Note: actionsOnHoverDisplayVar wll be cleaned up with fg('platform_dst_nav4_actionsonhover_focus_fix')
|
|
56
|
-
var actionsOnHoverDisplayVar = '--actions-on-hover-display';
|
|
57
55
|
var actionsOnHoverOpacityVar = '--actions-on-hover-opacity';
|
|
58
56
|
var actionsOnHoverWidthVar = '--actions-on-hover-width';
|
|
59
57
|
var actionsOnHoverPaddingInlineEndVar = '--actions-on-hover-padding';
|
|
@@ -140,12 +138,9 @@ var onTopOfButtonOrAnchorStyles = {
|
|
|
140
138
|
*/
|
|
141
139
|
export var nestedOpenPopupCSSSelector = '&:has([aria-expanded="true"][aria-haspopup="true"])';
|
|
142
140
|
var containerStyles = {
|
|
143
|
-
root: "_2rko12b0 _vchhusvi _1e0c11p5 _yv0e7dup _2z05hkll _1lmcu4vt _1ul9t9kd _4t3iviql _4cvr1h6o _uiztglyw _syaz1gjq _1yyu1j28 _91ju1txw _1swv108i _irr3108i",
|
|
144
|
-
actionsOnHoverFocusFixEnabled: "_uomdidpf _pmxpidpf _db80idpf _qxq9kb7n _1rbv1wug _kwq51b66 _t7p8kb7n _g4kikb7n _91nl1wug _ynyi1wug _iy5o1b66 _v4o21b66",
|
|
145
|
-
actionsOnHoverFocusFixDisabled: "_ek6gglyw _1ojv1txw _1brr1txw _109x1txw",
|
|
141
|
+
root: "_2rko12b0 _vchhusvi _1e0c11p5 _yv0e7dup _2z05hkll _1lmcu4vt _1ul9t9kd _4t3iviql _4cvr1h6o _uiztglyw _syaz1gjq _1yyu1j28 _91ju1txw _uomdidpf _pmxpidpf _db80idpf _qxq9kb7n _1rbv1wug _kwq51b66 _1swv108i _irr3108i _t7p8kb7n _g4kikb7n _91nl1wug _ynyi1wug _iy5o1b66 _v4o21b66",
|
|
146
142
|
removeElemAfter: "_91juglyw",
|
|
147
|
-
|
|
148
|
-
showHoverActionsWithFocusFixDisabled: "_ek6g1txw",
|
|
143
|
+
showHoverActions: "_uomdkb7n _pmxp1wug _db801b66",
|
|
149
144
|
removeElemAfterOnHoverOrOpenNestedPopup: "_1djyglyw _1mfcglyw _1sjuglyw",
|
|
150
145
|
selected: "_bfhkfg4m _syazaqb7 _1yyu1fvw _1swvi1yw _30l3aqb7 _irr3i1yw",
|
|
151
146
|
disabled: "_syaz1lh4 _irr3n7od",
|
|
@@ -167,9 +162,7 @@ var actionStyles = {
|
|
|
167
162
|
root: "_zulp1b66 _nd5lbc26 _1reo15vq _18m915vq _1e0c1txw _4cvr1h6o _y4ti1b66 _1guo18uv _12s918uv"
|
|
168
163
|
};
|
|
169
164
|
var actionsOnHoverStyles = {
|
|
170
|
-
root: "_nd5l16dh _zulp1b66 _1reo15vq _18m915vq _4cvr1h6o _1guo18uv _12s918uv"
|
|
171
|
-
focusFixEnabled: "_1e0c1txw _tzy4pnc3 _1bsbty16 _y4tidria",
|
|
172
|
-
focusFixDisabled: "_1e0c1c3z _y4ti1b66"
|
|
165
|
+
root: "_nd5l16dh _zulp1b66 _1reo15vq _18m915vq _4cvr1h6o _1e0c1txw _tzy4pnc3 _1bsbty16 _y4tidria _1guo18uv _12s918uv"
|
|
173
166
|
};
|
|
174
167
|
var textStyles = {
|
|
175
168
|
root: "_zulpv77o _1reo15vq _18m915vq _y4ti1b66 _bozg1b66 _1e0c1txw _2lx21bp4 _1ul91c9m _1guo18uv _12s918uv",
|
|
@@ -322,7 +315,7 @@ var MenuItemBaseNoRef = function MenuItemBaseNoRef(_ref3, forwardedRef) {
|
|
|
322
315
|
ref: visualContentRef,
|
|
323
316
|
"data-testid": testId ? "".concat(testId, "-container") : undefined,
|
|
324
317
|
"data-selected": isSelected,
|
|
325
|
-
className: ax([containerStyles.root,
|
|
318
|
+
className: ax([containerStyles.root, isSelected && containerStyles.selected, isDragging && containerStyles.dragging, description && containerStyles.hasDescription, showHoverActionsWhenNotHovered && containerStyles.showHoverActions, showHoverActionsWhenNotHovered && elemAfter && containerStyles.removeElemAfter, actionsOnHover && elemAfter && containerStyles.removeElemAfterOnHoverOrOpenNestedPopup, isDisabled && containerStyles.disabled])
|
|
326
319
|
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
327
320
|
content: function content() {
|
|
328
321
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, children), description ? /*#__PURE__*/React.createElement("div", null, description) : null);
|
|
@@ -396,7 +389,7 @@ var MenuItemBaseNoRef = function MenuItemBaseNoRef(_ref3, forwardedRef) {
|
|
|
396
389
|
}), showElemBefore && /*#__PURE__*/React.createElement("div", {
|
|
397
390
|
className: ax([elemBeforeStyles.root, topLevelSiblingStyles.root, onTopOfButtonOrAnchorStyles.root])
|
|
398
391
|
}, elemBefore), actionsOnHover && /*#__PURE__*/React.createElement("div", {
|
|
399
|
-
className: ax([actionsOnHoverStyles.root
|
|
392
|
+
className: ax([actionsOnHoverStyles.root])
|
|
400
393
|
}, actionsOnHover), elemAfter && /*#__PURE__*/React.createElement("div", {
|
|
401
394
|
className: ax([elemAfterStyles.root, topLevelSiblingStyles.root, onTopOfButtonOrAnchorStyles.root])
|
|
402
395
|
}, elemAfter), actions && /*#__PURE__*/React.createElement("div", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/navigation-system",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.23.1",
|
|
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",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
81
81
|
"@atlaskit/pragmatic-drag-and-drop-react-drop-indicator": "^3.2.0",
|
|
82
82
|
"@atlaskit/primitives": "^15.0.0",
|
|
83
|
-
"@atlaskit/tokens": "^
|
|
83
|
+
"@atlaskit/tokens": "^7.0.0",
|
|
84
84
|
"@atlaskit/tooltip": "^20.5.0",
|
|
85
85
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
86
86
|
"@babel/runtime": "^7.0.0",
|
|
@@ -162,9 +162,6 @@
|
|
|
162
162
|
"platform_dst_nav4_layering_in_main_slot_fixes": {
|
|
163
163
|
"type": "boolean"
|
|
164
164
|
},
|
|
165
|
-
"platform_dst_nav4_actionsonhover_focus_fix": {
|
|
166
|
-
"type": "boolean"
|
|
167
|
-
},
|
|
168
165
|
"platform_dst_nav4_flyoutmenuitem_render_to_parent": {
|
|
169
166
|
"type": "boolean"
|
|
170
167
|
},
|