@atlaskit/navigation-system 2.22.0 → 2.23.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 +13 -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 +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlassian/navigation-system
|
|
2
2
|
|
|
3
|
+
## 2.23.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`46f39b03ba41d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/46f39b03ba41d) -
|
|
8
|
+
The menu item `actionsOnHover` slot has been updated to improve accessibility. These changes were
|
|
9
|
+
previously behind a feature flag, which has now been removed. These changes are now available for
|
|
10
|
+
all consumers.
|
|
11
|
+
- Popup triggers placed inside the slot will now correctly be focused when closing their
|
|
12
|
+
respective popups.
|
|
13
|
+
|
|
14
|
+
- Interactive elements placed inside the slot will be in the tab order when tabbing backwards.
|
|
15
|
+
|
|
3
16
|
## 2.22.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -7,7 +20,6 @@
|
|
|
7
20
|
- [`3c732646f3e19`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3c732646f3e19) -
|
|
8
21
|
The tooltip for truncated side nav menu item has been updated behind the feature gate
|
|
9
22
|
`platform_dst_side_nav_remove_custom_tooltip`:
|
|
10
|
-
|
|
11
23
|
- The tooltip now uses the standard tooltip styling and behavior, instead of using a custom
|
|
12
24
|
component.
|
|
13
25
|
- The tooltip position has been updated to `right-start` (previously it was `right`).
|
|
@@ -27,7 +39,6 @@
|
|
|
27
39
|
This change is behind the feature gate `navx-full-height-sidebar`.
|
|
28
40
|
|
|
29
41
|
This includes:
|
|
30
|
-
|
|
31
42
|
- `SideNav` peek animations
|
|
32
43
|
- `SideNav` expand and collapse animations
|
|
33
44
|
- `TopNavStart` reorder animations
|
|
@@ -74,7 +85,6 @@
|
|
|
74
85
|
- [`dc96cee1f923a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dc96cee1f923a) -
|
|
75
86
|
Minor improvements to the side nav peek (flyout) animations. These changes are behind the
|
|
76
87
|
`navx-full-height-sidebar` feature flag.
|
|
77
|
-
|
|
78
88
|
- The timing functions for the peek and hide animations have been slightly tweaked to align with
|
|
79
89
|
the new full height sidebar animations
|
|
80
90
|
- The peek animation duration has been increased to 300ms from 200ms to align with the new full
|
|
@@ -437,7 +447,6 @@
|
|
|
437
447
|
- [`e40aa48c11a02`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e40aa48c11a02) -
|
|
438
448
|
The menu item `actionsOnHover` slot has been updated, behind a feature flag, to improve
|
|
439
449
|
accessibility.
|
|
440
|
-
|
|
441
450
|
- Popup triggers placed inside the slot will now correctly be focused when closing their
|
|
442
451
|
respective popups.
|
|
443
452
|
|
|
@@ -875,12 +884,10 @@
|
|
|
875
884
|
- [#171544](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/171544)
|
|
876
885
|
[`855881697b291`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/855881697b291) -
|
|
877
886
|
The following components have been renamed:
|
|
878
|
-
|
|
879
887
|
- `MenuLinkItem` -> `LinkMenuItem`
|
|
880
888
|
- `MenuButtonItem` -> `ButtonMenuItem`
|
|
881
889
|
|
|
882
890
|
Their imports have been updated to use the new names.
|
|
883
|
-
|
|
884
891
|
- `@atlassian/navigation-system/side-nav/menu-link-item` ->
|
|
885
892
|
`@atlassian/navigation-system/side-nav/link-menu-item`
|
|
886
893
|
- `@atlassian/navigation-system/side-nav/menu-button-item` ->
|
|
@@ -914,7 +921,6 @@
|
|
|
914
921
|
- [#169983](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/169983)
|
|
915
922
|
[`c72e85f165c1b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c72e85f165c1b) -
|
|
916
923
|
A number of components have been renamed:
|
|
917
|
-
|
|
918
924
|
- `TopBar` -> `TopNav`
|
|
919
925
|
- `HomeActions` -> `TopNavStart`
|
|
920
926
|
- `CommonActions` -> `TopNavMiddle`
|
|
@@ -926,7 +932,6 @@
|
|
|
926
932
|
|
|
927
933
|
The following components have been moved from the `@atlassian/navigation-system/top-nav-items`
|
|
928
934
|
entrypoint to the `@atlassian/navigation-system/layout/top-nav` entrypoint:
|
|
929
|
-
|
|
930
935
|
- `TopNavStart`
|
|
931
936
|
- `TopNavMiddle`
|
|
932
937
|
- `TopNavEnd`
|
|
@@ -1195,7 +1200,6 @@
|
|
|
1195
1200
|
- [#152893](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/152893)
|
|
1196
1201
|
[`ffd9759e99c3e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ffd9759e99c3e) -
|
|
1197
1202
|
Notifications and Help now re-use `UserAction` internally, which means:
|
|
1198
|
-
|
|
1199
1203
|
- They now support the `onMouseEnter` prop.
|
|
1200
1204
|
- They now support the `isListItem` prop. This allows you to disable the default list item
|
|
1201
1205
|
wrapper. It is intended for use with dropdown menus or popups, and requires you to render your
|
|
@@ -1369,7 +1373,6 @@
|
|
|
1369
1373
|
- [#137059](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/137059)
|
|
1370
1374
|
[`8d6a3a75c70f1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8d6a3a75c70f1) -
|
|
1371
1375
|
[ux] Changes the resizing bounds of the `Panel` slot to have a:
|
|
1372
|
-
|
|
1373
1376
|
- Minimum resizing width equal to the `defaultWidth` (up to a maximum of `400px`)
|
|
1374
1377
|
- Maximum resizing width of half the viewport width after the sidebar has been removed. This means
|
|
1375
1378
|
that the `Panel` will not be larger than the content.
|
|
@@ -2242,7 +2245,6 @@
|
|
|
2242
2245
|
Color inputs should be parsed into `RGB` objects before providing them as the custom theme.
|
|
2243
2246
|
|
|
2244
2247
|
We now export multiple utility functions to assist with color parsing:
|
|
2245
|
-
|
|
2246
2248
|
- Hex parsing with `parseHex` from
|
|
2247
2249
|
`@atlassian/navigation-system/experimental/color-utils/parse-hex`
|
|
2248
2250
|
- CSS `hsl()` parsing with `parseHsl` from
|
|
@@ -2307,14 +2309,12 @@
|
|
|
2307
2309
|
- [#176005](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/176005)
|
|
2308
2310
|
[`a7f4659856234`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a7f4659856234) -
|
|
2309
2311
|
Adds `visualContentRef` prop to:
|
|
2310
|
-
|
|
2311
2312
|
- `ExpandableMenuItemTrigger`
|
|
2312
2313
|
- `FlyoutMenuItemTrigger`
|
|
2313
2314
|
- `MenuButtonItem`
|
|
2314
2315
|
- `MenuLinkItem`
|
|
2315
2316
|
|
|
2316
2317
|
Adds `listItemRef` to:
|
|
2317
|
-
|
|
2318
2318
|
- `MenuButtonItem`
|
|
2319
2319
|
- `MenuLinkItem`
|
|
2320
2320
|
|
|
@@ -2369,14 +2369,12 @@
|
|
|
2369
2369
|
|
|
2370
2370
|
The following components previously had an optional `label` prop, which has now been made
|
|
2371
2371
|
required:
|
|
2372
|
-
|
|
2373
2372
|
- Help
|
|
2374
2373
|
- NavLogo
|
|
2375
2374
|
- Notifications
|
|
2376
2375
|
|
|
2377
2376
|
The following components previously used the `children` prop as the label, but have now been
|
|
2378
2377
|
updated to use a required `label` prop:
|
|
2379
|
-
|
|
2380
2378
|
- Settings
|
|
2381
2379
|
- Profile
|
|
2382
2380
|
- UserAction
|
|
@@ -2449,7 +2447,6 @@
|
|
|
2449
2447
|
- [#162526](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/162526)
|
|
2450
2448
|
[`9a0c103641a2f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9a0c103641a2f) -
|
|
2451
2449
|
Menu items are now more resilient to narrow widths and deep nesting.
|
|
2452
|
-
|
|
2453
2450
|
- A minimum width of 72px has been set on menu items.
|
|
2454
2451
|
- The menu item slots (elemBefore, elemAfter, actions, actionsOnHover) now hide overflowing
|
|
2455
2452
|
content to prevent content spilling out or overlapping other slots when space is limited.
|
|
@@ -2561,7 +2558,6 @@
|
|
|
2561
2558
|
[`c3366ec919883`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c3366ec919883) -
|
|
2562
2559
|
The side nav slots and scroll container feature flag has been cleaned up. The following changes
|
|
2563
2560
|
are now available for all consumers:
|
|
2564
|
-
|
|
2565
2561
|
- `PanelSplitterProvider` no longer renders a scroll container, and no longer adds a flex
|
|
2566
2562
|
container.
|
|
2567
2563
|
- `SideNavContent` renders a scroll container.
|
|
@@ -2605,7 +2601,6 @@
|
|
|
2605
2601
|
- [#159268](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159268)
|
|
2606
2602
|
[`487d22f32a93f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/487d22f32a93f) -
|
|
2607
2603
|
Trivial CSS changes to bring this inline with @atlaskit/css typing:
|
|
2608
|
-
|
|
2609
2604
|
- We now allow certain `zIndex` values.
|
|
2610
2605
|
- `background` is a banned property, use `backgroundColor` instead
|
|
2611
2606
|
- Migrates a few things to the new `@atlaskit/css` JSX pragmas.
|
|
@@ -2753,7 +2748,6 @@
|
|
|
2753
2748
|
[`b6738b5acfef0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b6738b5acfef0) -
|
|
2754
2749
|
We are making changes to the side nav scroll container behind a feature flag, in order to support
|
|
2755
2750
|
the new header and footer slot components.
|
|
2756
|
-
|
|
2757
2751
|
- `PanelSplitterProvider` no longer renders a scroll container, and no longer adds a flex
|
|
2758
2752
|
container.
|
|
2759
2753
|
- `SideNavContent` renders a scroll container.
|
|
@@ -2932,7 +2926,6 @@
|
|
|
2932
2926
|
- [#148601](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/148601)
|
|
2933
2927
|
[`eff2b0c0e6815`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eff2b0c0e6815) -
|
|
2934
2928
|
Two required label props have been added to `SideNavToggleButton`:
|
|
2935
|
-
|
|
2936
2929
|
- `collapseLabel`: used as the button label when the toggle button will collapse the side nav
|
|
2937
2930
|
- `expandLabel`: used as the button label when the toggle button will expand the side nav
|
|
2938
2931
|
|
|
@@ -3015,7 +3008,6 @@
|
|
|
3015
3008
|
- [#145878](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/145878)
|
|
3016
3009
|
[`72e885acee099`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/72e885acee099) -
|
|
3017
3010
|
[ux] Side nav buttons have been consolidated.
|
|
3018
|
-
|
|
3019
3011
|
- `SideNavToggleButton` (used in the top bar) is now always visible. It no longer has built in
|
|
3020
3012
|
visibility logic for showing/hiding itself based on whether the side nav is expanded or
|
|
3021
3013
|
collapsed.
|
|
@@ -3134,7 +3126,6 @@
|
|
|
3134
3126
|
[`e484ea0d5c1e2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e484ea0d5c1e2) -
|
|
3135
3127
|
The `NavLogo` component logo and mobileLogo props have changed to prevent invalid and inaccessible
|
|
3136
3128
|
states.
|
|
3137
|
-
|
|
3138
3129
|
- `logo` now takes a component reference that matches `@atlaskit/logo` props instead of arbitrary
|
|
3139
3130
|
JSX
|
|
3140
3131
|
- `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.0",
|
|
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",
|
|
@@ -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
|
},
|