@atlaskit/atlassian-navigation 2.6.14 → 2.6.16

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.
Files changed (63) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/components/AtlassianNavigation/index.js +3 -3
  3. package/dist/cjs/components/AtlassianNavigation/skeleton.js +3 -3
  4. package/dist/cjs/components/Create/index.js +3 -3
  5. package/dist/cjs/components/PrimaryButton/index.js +1 -1
  6. package/dist/cjs/components/PrimaryDropdownButton/index.js +5 -5
  7. package/dist/cjs/components/PrimaryItemsContainer/index.js +1 -1
  8. package/dist/cjs/components/PrimaryItemsContainerV2/index.js +83 -43
  9. package/dist/cjs/components/ProductHome/custom-product-home.js +1 -1
  10. package/dist/cjs/components/ProductHome/product-home.js +14 -6
  11. package/dist/cjs/components/ProductHome/skeleton.js +3 -3
  12. package/dist/cjs/components/SkeletonCreateButton/index.js +1 -1
  13. package/dist/cjs/components/SkeletonIconButton/index.js +2 -2
  14. package/dist/cjs/version.json +1 -1
  15. package/dist/es2019/components/AtlassianNavigation/index.js +3 -3
  16. package/dist/es2019/components/AtlassianNavigation/skeleton.js +3 -3
  17. package/dist/es2019/components/Create/index.js +5 -5
  18. package/dist/es2019/components/Create/skeleton.js +1 -1
  19. package/dist/es2019/components/PrimaryButton/index.js +1 -1
  20. package/dist/es2019/components/PrimaryDropdownButton/index.js +6 -6
  21. package/dist/es2019/components/PrimaryItemsContainer/index.js +1 -1
  22. package/dist/es2019/components/PrimaryItemsContainerV2/index.js +68 -44
  23. package/dist/es2019/components/ProductHome/custom-product-home.js +6 -6
  24. package/dist/es2019/components/ProductHome/product-home.js +18 -11
  25. package/dist/es2019/components/ProductHome/skeleton.js +7 -7
  26. package/dist/es2019/components/Search/index.js +2 -2
  27. package/dist/es2019/components/Search/skeleton.js +2 -2
  28. package/dist/es2019/components/SkeletonCreateButton/index.js +1 -1
  29. package/dist/es2019/components/SkeletonIconButton/index.js +2 -2
  30. package/dist/es2019/version.json +1 -1
  31. package/dist/esm/components/AtlassianNavigation/index.js +3 -3
  32. package/dist/esm/components/AtlassianNavigation/skeleton.js +3 -3
  33. package/dist/esm/components/Create/index.js +3 -3
  34. package/dist/esm/components/PrimaryButton/index.js +1 -1
  35. package/dist/esm/components/PrimaryDropdownButton/index.js +6 -6
  36. package/dist/esm/components/PrimaryItemsContainer/index.js +1 -1
  37. package/dist/esm/components/PrimaryItemsContainerV2/index.js +85 -45
  38. package/dist/esm/components/ProductHome/custom-product-home.js +1 -1
  39. package/dist/esm/components/ProductHome/product-home.js +14 -6
  40. package/dist/esm/components/ProductHome/skeleton.js +3 -3
  41. package/dist/esm/components/SkeletonCreateButton/index.js +1 -1
  42. package/dist/esm/components/SkeletonIconButton/index.js +2 -2
  43. package/dist/esm/version.json +1 -1
  44. package/dist/types/components/PrimaryItemsContainerV2/index.d.ts +1 -3
  45. package/dist/types-ts4.5/components/PrimaryItemsContainerV2/index.d.ts +1 -3
  46. package/package.json +3 -3
  47. package/tmp/api-report-tmp.d.ts +325 -0
  48. package/__perf__/default.tsx +0 -14
  49. package/docs/01-intro.tsx +0 -46
  50. package/docs/02-atlassian-navigation.tsx +0 -38
  51. package/docs/03-product-home.tsx +0 -73
  52. package/docs/04-app-switcher.tsx +0 -29
  53. package/docs/05-create.tsx +0 -37
  54. package/docs/06-primary-actions.tsx +0 -64
  55. package/docs/07-secondary-actions.tsx +0 -206
  56. package/docs/96-skeleton-buttons.tsx +0 -88
  57. package/docs/97-theming.tsx +0 -45
  58. package/docs/98-overflow-menu.tsx +0 -49
  59. package/docs/99-migrating-from-navigation-next.tsx +0 -52
  60. package/docs/ert/skeleton-create-button.tsx +0 -3
  61. package/docs/ert/skeleton-icon-button.tsx +0 -3
  62. package/docs/ert/skeleton-primary-button.tsx +0 -3
  63. package/docs/ert/skeleton-switcher-button.tsx +0 -3
@@ -1,28 +1,23 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
3
- import React, { memo, useCallback, useMemo, useState } from 'react';
4
- import { css, jsx } from '@emotion/react';
2
+ import React, { memo, useCallback, useEffect, useMemo, useState } from 'react';
5
3
  import Popup from '@atlaskit/popup';
6
- import { media, UNSAFE_media } from '@atlaskit/primitives/responsive';
4
+ import { Inline, xcss } from '@atlaskit/primitives';
5
+ import { media, UNSAFE_useMediaQuery as useMediaQuery } from '@atlaskit/primitives/responsive';
7
6
  import { OverflowProvider } from '../../controllers/overflow';
8
7
  import { PrimaryDropdownButton } from '../PrimaryDropdownButton';
9
- const parentContainerStyles = css({
10
- display: 'flex',
11
- width: '100%',
12
- height: '100%'
8
+ const sharedContainerStyles = xcss({
9
+ height: '100%',
10
+ alignItems: 'stretch',
11
+ paddingInlineEnd: 'space.050',
12
+ gap: 'space.100'
13
13
  });
14
- const basePrimaryContainerStyles = css({
15
- display: 'none',
16
- minWidth: 0,
17
- gap: "var(--ds-space-100, 8px)"
18
- });
19
- const smallContainerStyles = css({
20
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
21
- [UNSAFE_media.below.sm]: {
22
- display: 'flex'
14
+ const smallContainerStyles = xcss({
15
+ [media.above.sm]: {
16
+ display: 'none'
23
17
  }
24
18
  });
25
- const mediumContainerStyles = css({
19
+ const mediumContainerStyles = xcss({
20
+ display: 'none',
26
21
  [media.above.sm]: {
27
22
  display: 'flex'
28
23
  },
@@ -30,7 +25,8 @@ const mediumContainerStyles = css({
30
25
  display: 'none'
31
26
  }
32
27
  });
33
- const largeContainerStyles = css({
28
+ const largeContainerStyles = xcss({
29
+ display: 'none',
34
30
  [media.above.lg]: {
35
31
  display: 'flex'
36
32
  }
@@ -44,17 +40,17 @@ const MoreItemsPopup = ({
44
40
  const onMoreClose = useCallback(() => setIsMoreOpen(false), []);
45
41
  const onMoreClick = useCallback(() => setIsMoreOpen(current => !current), []);
46
42
  const openOverflowMenu = useCallback(() => setIsMoreOpen(true), []);
47
- const trigger = useCallback(triggerProps => jsx(PrimaryDropdownButton, _extends({
43
+ const trigger = useCallback(triggerProps => /*#__PURE__*/React.createElement(PrimaryDropdownButton, _extends({
48
44
  onClick: onMoreClick,
49
45
  isSelected: isMoreOpen,
50
46
  testId: testId ? `${testId}-overflow-menu-trigger` : 'overflow-menu-trigger'
51
47
  }, triggerProps), moreLabel), [moreLabel, onMoreClick, isMoreOpen, testId]);
52
- const content = useCallback(() => jsx(OverflowProvider, {
48
+ const content = useCallback(() => /*#__PURE__*/React.createElement(OverflowProvider, {
53
49
  isVisible: false,
54
50
  openOverflowMenu: openOverflowMenu,
55
51
  closeOverflowMenu: onMoreClose
56
52
  }, items), [items, openOverflowMenu, onMoreClose]);
57
- return jsx(Popup, {
53
+ return /*#__PURE__*/React.createElement(Popup, {
58
54
  placement: "bottom-start",
59
55
  isOpen: isMoreOpen,
60
56
  onClose: onMoreClose,
@@ -73,6 +69,20 @@ export const PrimaryItemsContainer = /*#__PURE__*/memo(({
73
69
  theme,
74
70
  testId
75
71
  }) => {
72
+ // We render a CSS media query based nav at first to handle SSR, then use
73
+ // our useMediaQuery hook once we are hydrated so there is only one set of nav items
74
+ const [isClient, setIsClient] = useState(false);
75
+ useEffect(() => {
76
+ setIsClient(true);
77
+ }, []);
78
+
79
+ // Setting up our media queries to use once app is hydrated
80
+ const mqSm = useMediaQuery('above.sm', event => setIsAboveSm(event.matches));
81
+ const [isAboveSm, setIsAboveSm] = useState(mqSm === null || mqSm === void 0 ? void 0 : mqSm.matches);
82
+ const mqLg = useMediaQuery('above.lg', event => setIsAboveLg(event.matches));
83
+ const [isAboveLg, setIsAboveLg] = useState(mqLg === null || mqLg === void 0 ? void 0 : mqLg.matches);
84
+
85
+ // Filter out any falsy items passed in
76
86
  const filteredItems = useMemo(() => React.Children.toArray(items).filter(item => !!item), [items]);
77
87
  // NOTE: we could make these max items configurable in the future. For now
78
88
  // we are using sensible defaults. Anything over the max gets put in the
@@ -83,9 +93,15 @@ export const PrimaryItemsContainer = /*#__PURE__*/memo(({
83
93
  const smallMaxItems = 0;
84
94
  const mediumMaxItems = 3;
85
95
  const largeMaxItems = 8;
96
+
97
+ // We re-use this in both the CSS media query nav that loads in for SSR,
98
+ // and the JS/hook media query nav that is used once hydrated
86
99
  const navItems = useMemo(() => {
87
100
  return {
88
- // For small screens, we're currently putting all items in the overflow
101
+ small: {
102
+ navBarItems: [],
103
+ overflowItems: filteredItems
104
+ },
89
105
  medium: {
90
106
  navBarItems: filteredItems.slice(0, mediumMaxItems),
91
107
  overflowItems: filteredItems.slice(mediumMaxItems, filteredItems.length)
@@ -96,31 +112,39 @@ export const PrimaryItemsContainer = /*#__PURE__*/memo(({
96
112
  }
97
113
  };
98
114
  }, [filteredItems]);
99
- return jsx("div", {
100
- css: parentContainerStyles,
101
- "data-testid": testId && `${testId}-primary-actions`
102
- }, jsx("div", {
103
- css: [basePrimaryContainerStyles, smallContainerStyles]
104
- }, filteredItems.length > smallMaxItems && jsx(MoreItemsPopup
105
- // NOTE: Would be nice to have a different label for small screens
106
- // with i18n support (eg. swapping from 'More' to 'Menu' like
107
- // Atlas does). Instead of opting for adding a new label prop right
108
- // now I'm holding off until DSTRFC-016 lands.
109
- , {
115
+ const hydratedNavItems = useMemo(() => {
116
+ if (isAboveLg) {
117
+ return navItems.large;
118
+ }
119
+ if (isAboveSm && !isAboveLg) {
120
+ return navItems.medium;
121
+ }
122
+ return navItems.small;
123
+ }, [isAboveLg, isAboveSm, navItems.large, navItems.medium, navItems.small]);
124
+ return /*#__PURE__*/React.createElement(React.Fragment, null, isClient ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Inline, {
125
+ testId: testId && `${testId}-primary-actions`,
126
+ xcss: sharedContainerStyles
127
+ }, hydratedNavItems.navBarItems, hydratedNavItems.overflowItems.length > 0 && /*#__PURE__*/React.createElement(MoreItemsPopup, {
128
+ moreLabel: moreLabel,
129
+ items: hydratedNavItems.overflowItems,
130
+ testId: testId
131
+ }))) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Inline, {
132
+ xcss: [sharedContainerStyles, smallContainerStyles]
133
+ }, filteredItems.length > smallMaxItems &&
134
+ /*#__PURE__*/
135
+ // We don't need to pass items into popup, it won't be interactive (SSR only)
136
+ React.createElement(MoreItemsPopup, {
110
137
  moreLabel: moreLabel,
111
- items: filteredItems,
112
138
  testId: testId
113
- })), jsx("div", {
114
- css: [basePrimaryContainerStyles, mediumContainerStyles]
115
- }, navItems.medium.navBarItems, navItems.medium.overflowItems.length > 0 && jsx(MoreItemsPopup, {
139
+ })), /*#__PURE__*/React.createElement(Inline, {
140
+ xcss: [sharedContainerStyles, mediumContainerStyles]
141
+ }, navItems.medium.navBarItems, navItems.medium.overflowItems.length > 0 && /*#__PURE__*/React.createElement(MoreItemsPopup, {
116
142
  moreLabel: moreLabel,
117
- items: navItems.medium.overflowItems,
118
143
  testId: testId
119
- })), jsx("div", {
120
- css: [basePrimaryContainerStyles, largeContainerStyles]
121
- }, navItems.large.navBarItems, navItems.large.overflowItems.length > 0 && jsx(MoreItemsPopup, {
144
+ })), /*#__PURE__*/React.createElement(Inline, {
145
+ xcss: [sharedContainerStyles, largeContainerStyles]
146
+ }, navItems.large.navBarItems, navItems.large.overflowItems.length > 0 && /*#__PURE__*/React.createElement(MoreItemsPopup, {
122
147
  moreLabel: moreLabel,
123
- items: navItems.large.overflowItems,
124
148
  testId: testId
125
- })), Create && jsx(Create, null));
149
+ }))), Create && /*#__PURE__*/React.createElement(Create, null));
126
150
  });
@@ -20,7 +20,7 @@ const productLogoStyles = css({
20
20
  // Ensure anything passed into
21
21
  // productHome is aligned correctly
22
22
  display: 'flex',
23
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
23
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
24
24
  [`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
25
25
  display: 'none'
26
26
  }
@@ -32,7 +32,7 @@ const productIconStyles = css({
32
32
  // Ensure anything passed into
33
33
  // productHome is aligned correctly
34
34
  display: 'flex',
35
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
35
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
36
36
  [`@media (min-width: ${PRODUCT_HOME_BREAKPOINT}px)`]: {
37
37
  display: 'none'
38
38
  }
@@ -67,15 +67,15 @@ const productHomeButtonStyles = css({
67
67
  color: `var(${VAR_PRODUCT_HOME_COLOR_FOCUS})`,
68
68
  outline: `2px solid ${`var(--ds-border-focused, ${B200})`}`
69
69
  },
70
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
70
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
71
71
  'div&': {
72
72
  pointerEvents: 'none'
73
73
  },
74
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
74
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
75
75
  [`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
76
76
  margin: `0 ${"var(--ds-space-100, 8px)"}`
77
77
  },
78
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
78
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
79
79
  [`@media (min-width: ${PRODUCT_HOME_BREAKPOINT}px)`]: {
80
80
  margin: `0 ${"var(--ds-space-200, 16px)"}`
81
81
  }
@@ -88,7 +88,7 @@ const siteTitleStyles = css({
88
88
  alignItems: 'center'
89
89
  });
90
90
  const hideSiteTitleStyles = css({
91
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
91
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
92
92
  [`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
93
93
  display: 'none'
94
94
  }
@@ -46,15 +46,15 @@ const productHomeButtonStyles = css({
46
46
  color: `var(${VAR_PRODUCT_HOME_COLOR_FOCUS})`,
47
47
  outline: `${"var(--ds-border-width-outline, 2px)"} solid ${"var(--ds-border-focused, #4C9AFF)"}`
48
48
  },
49
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
49
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
50
50
  'div&': {
51
51
  pointerEvents: 'none'
52
52
  },
53
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
53
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
54
54
  [`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
55
55
  margin: `0 ${"var(--ds-space-100, 8px)"}`
56
56
  },
57
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
57
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
58
58
  [`@media (min-width: ${PRODUCT_HOME_BREAKPOINT}px)`]: {
59
59
  margin: `0 ${"var(--ds-space-200, 16px)"}`
60
60
  }
@@ -64,15 +64,15 @@ const productLogoStyles = css({
64
64
  // productHome is aligned correctly
65
65
  display: 'flex',
66
66
  maxWidth: `var(${VAR_LOGO_MAX_WIDTH})`,
67
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
67
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
68
68
  '& > *': {
69
69
  maxHeight: 24
70
70
  },
71
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
71
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
72
72
  '& > span > svg': {
73
73
  maxWidth: `var(${VAR_LOGO_MAX_WIDTH})`
74
74
  },
75
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
75
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
76
76
  [`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
77
77
  display: 'none'
78
78
  }
@@ -84,24 +84,31 @@ const productIconStyles = css({
84
84
  // Ensure anything passed into
85
85
  // productHome is aligned correctly
86
86
  display: 'flex',
87
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
87
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
88
88
  '& > *': {
89
89
  maxHeight: 24
90
90
  },
91
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
91
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
92
92
  [`@media (min-width: ${PRODUCT_HOME_BREAKPOINT}px)`]: {
93
93
  display: 'none'
94
94
  }
95
95
  });
96
96
  const siteTitleStyles = css({
97
97
  display: 'flex',
98
+ // Overridden in PFF styles applied below; consolidate in FF cleanup
98
99
  marginRight: "var(--ds-space-050, 4px)",
99
100
  marginLeft: "var(--ds-space-050, 4px)",
100
101
  paddingRight: "var(--ds-space-200, 16px)",
101
102
  alignItems: 'center'
102
103
  });
103
- const hideSiteTitleStyles = css({
104
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
104
+
105
+ // When cleaning up feature flag, these styles can be moved into the above block
106
+ const featureFlaggedSiteTitleStyles = css({
107
+ // Under the FF, we've made the site title handle it's spacing, with the
108
+ // PrimaryItemsContainer not needing to worry about its paddingInlineStart.
109
+ // This makes it cleaner for the title styles to appear and disappear with mq's
110
+ marginRight: "var(--ds-space-100, 8px)",
111
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
105
112
  [`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
106
113
  display: 'none'
107
114
  }
@@ -181,7 +188,7 @@ const ProductHome = ({
181
188
  style: {
182
189
  borderRight: theme.mode.productHome.borderRight
183
190
  },
184
- css: [siteTitleStyles, getBooleanFF('platform.design-system-team.navigation-v2-no-jank_5yhbd') && hideSiteTitleStyles],
191
+ css: [siteTitleStyles, getBooleanFF('platform.design-system-team.navigation-v2-no-jank_5yhbd') && featureFlaggedSiteTitleStyles],
185
192
  "data-testid": testId && `${testId}-site-title`
186
193
  }, siteTitle));
187
194
  };
@@ -45,15 +45,15 @@ const productHomeButtonStyles = css({
45
45
  boxShadow: `var(${VAR_PRODUCT_HOME_BOX_SHADOW_HOVER})`,
46
46
  color: `var(${VAR_PRODUCT_HOME_COLOR_HOVER})`
47
47
  },
48
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
48
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
49
49
  'div&': {
50
50
  pointerEvents: 'none'
51
51
  },
52
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
52
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
53
53
  [`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
54
54
  margin: `0 ${"var(--ds-space-100, 8px)"}`
55
55
  },
56
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
56
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
57
57
  [`@media (min-width: ${PRODUCT_HOME_BREAKPOINT}px)`]: {
58
58
  margin: `0 ${"var(--ds-space-200, 16px)"}`
59
59
  }
@@ -65,11 +65,11 @@ const productLogoStyles = css({
65
65
  height: 24,
66
66
  maxHeight: 28,
67
67
  opacity: 0.15,
68
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
68
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
69
69
  '& > *': {
70
70
  maxHeight: 24
71
71
  },
72
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
72
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
73
73
  [`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
74
74
  display: 'none'
75
75
  }
@@ -80,11 +80,11 @@ const productIconStyles = css({
80
80
  height: 28,
81
81
  borderRadius: "var(--ds-border-radius-circle, 50%)",
82
82
  opacity: 0.15,
83
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
83
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
84
84
  '& > *': {
85
85
  maxHeight: 24
86
86
  },
87
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
87
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
88
88
  [`@media (min-width: ${PRODUCT_HOME_BREAKPOINT}px)`]: {
89
89
  display: 'none'
90
90
  }
@@ -10,7 +10,7 @@ const searchInputContainerStyles = css({
10
10
  marginRight: "var(--ds-space-100, 8px)",
11
11
  marginLeft: "var(--ds-space-250, 20px)",
12
12
  position: 'relative',
13
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
13
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
14
14
  [`@media (max-width: ${CREATE_BREAKPOINT - 1}px)`]: {
15
15
  display: 'none !important'
16
16
  }
@@ -48,7 +48,7 @@ const searchInputStyles = css({
48
48
  }
49
49
  });
50
50
  const searchIconStyles = css({
51
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
51
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
52
52
  [`@media (min-width: ${CREATE_BREAKPOINT}px)`]: {
53
53
  display: 'none !important'
54
54
  }
@@ -8,7 +8,7 @@ const searchInputContainerStyles = css({
8
8
  marginRight: "var(--ds-space-100, 8px)",
9
9
  marginLeft: "var(--ds-space-250, 20px)",
10
10
  position: 'relative',
11
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
11
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
12
12
  [`@media (max-width: ${CREATE_BREAKPOINT - 1}px)`]: {
13
13
  display: 'none !important'
14
14
  }
@@ -22,7 +22,7 @@ const searchInputSkeletonStyles = css({
22
22
  opacity: 0.15
23
23
  });
24
24
  const searchIconStyles = css({
25
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
25
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
26
26
  [`@media (min-width: ${CREATE_BREAKPOINT}px)`]: {
27
27
  display: 'none !important'
28
28
  }
@@ -16,7 +16,7 @@ const skeletonCreateButtonStyles = css({
16
16
  border: 0,
17
17
  outline: 0
18
18
  },
19
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
19
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
20
20
  '&&': {
21
21
  marginLeft: "var(--ds-space-150, 12px)"
22
22
  }
@@ -16,11 +16,11 @@ const skeletonIconButtonStyles = css({
16
16
  '&:only-of-type': {
17
17
  marginRight: 0
18
18
  },
19
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
19
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
20
20
  '& > span': {
21
21
  lineHeight: 'normal'
22
22
  },
23
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
23
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
24
24
  '& > img': {
25
25
  width: 24,
26
26
  height: 24,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/atlassian-navigation",
3
- "version": "2.6.14",
3
+ "version": "2.6.16",
4
4
  "sideEffects": false
5
5
  }
@@ -17,7 +17,7 @@ var containerStyles = css({
17
17
  alignItems: 'center',
18
18
  justifyContent: 'space-between',
19
19
  flexShrink: 0,
20
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
20
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
21
21
  '[data-color-mode="light"] &, [data-color-mode="dark"] &': {
22
22
  // eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
23
23
  borderBottom: "1px solid ".concat("var(--ds-border, #091E4224)"),
@@ -47,7 +47,7 @@ var leftStyles = css({
47
47
  height: 'inherit',
48
48
  alignItems: 'center',
49
49
  flexGrow: 1,
50
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
50
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
51
51
  '& > *': {
52
52
  flexShrink: 0
53
53
  }
@@ -56,7 +56,7 @@ var rightStyles = css({
56
56
  display: 'flex',
57
57
  alignItems: 'center',
58
58
  flexShrink: 0,
59
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
59
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
60
60
  '& > *': {
61
61
  marginRight: "var(--ds-space-050, 4px)",
62
62
  flexShrink: 0
@@ -18,7 +18,7 @@ var containerStyles = css({
18
18
  alignItems: 'center',
19
19
  justifyContent: 'space-between',
20
20
  flexShrink: 0,
21
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
21
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
22
22
  '[data-color-mode="light"] &, [data-color-mode="dark"] &': {
23
23
  // eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
24
24
  borderBottom: "1px solid ".concat("var(--ds-border, #091E4224)"),
@@ -48,7 +48,7 @@ var leftStyles = css({
48
48
  height: 'inherit',
49
49
  alignItems: 'center',
50
50
  flexGrow: 1,
51
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
51
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
52
52
  '& > *': {
53
53
  flexShrink: 0
54
54
  }
@@ -57,7 +57,7 @@ var rightStyles = css({
57
57
  display: 'flex',
58
58
  alignItems: 'center',
59
59
  flexShrink: 0,
60
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
60
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
61
61
  '& > *': {
62
62
  marginRight: "var(--ds-space-050, 4px)",
63
63
  flexShrink: 0
@@ -12,15 +12,15 @@ import { getCreateButtonTheme } from './styles';
12
12
  var wrapperStyles = css({
13
13
  display: 'flex',
14
14
  alignItems: 'center',
15
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
15
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
16
16
  '& [data-hide-on-smallscreens]': _defineProperty({}, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
17
17
  display: 'none !important'
18
18
  }),
19
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
19
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
20
20
  '& [data-hide-on-largescreens]': _defineProperty({}, "@media (min-width: ".concat(CREATE_BREAKPOINT, "px)"), {
21
21
  display: 'none !important'
22
22
  }),
23
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
23
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
24
24
  '&&': {
25
25
  marginLeft: "var(--ds-space-150, 12px)"
26
26
  }
@@ -20,7 +20,7 @@ var buttonBaseStyles = css({
20
20
  flexDirection: 'column'
21
21
  });
22
22
  var buttonHighlightedStyles = css({
23
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
23
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
24
24
  '&& > *': {
25
25
  color: "var(".concat(VAR_BUTTON_SELECTED_COLOR, ")")
26
26
  },
@@ -1,12 +1,11 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  /** @jsx jsx */
3
3
  import { forwardRef } from 'react';
4
- import { css, jsx } from '@emotion/react';
4
+ import { jsx } from '@emotion/react';
5
5
  import ChevronIcon from '@atlaskit/icon/glyph/chevron-down';
6
+ import { Bleed, xcss } from '@atlaskit/primitives';
6
7
  import { PrimaryButton } from '../PrimaryButton';
7
- var chevronIconStyles = css({
8
- marginRight: "calc(-1 * ".concat("var(--ds-space-100, 8px)", ")"),
9
- marginLeft: "calc(-1 * ".concat("var(--ds-space-100, 8px)", ")"),
8
+ var chevronIconStyles = xcss({
10
9
  opacity: 0.51
11
10
  });
12
11
 
@@ -21,8 +20,9 @@ var chevronIconStyles = css({
21
20
  */
22
21
  export var PrimaryDropdownButton = /*#__PURE__*/forwardRef(function (props, ref) {
23
22
  return jsx(PrimaryButton, _extends({
24
- iconAfter: jsx("span", {
25
- css: chevronIconStyles
23
+ iconAfter: jsx(Bleed, {
24
+ xcss: chevronIconStyles,
25
+ inline: "space.100"
26
26
  }, jsx(ChevronIcon, {
27
27
  label: ""
28
28
  })),
@@ -15,7 +15,7 @@ var containerStyles = css({
15
15
  flexBasis: 0,
16
16
  flexGrow: 1,
17
17
  flexShrink: 0,
18
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
18
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
19
19
  '& > *': {
20
20
  margin: "0 ".concat("var(--ds-space-050, 4px)"),
21
21
  flexShrink: 0