@atlaskit/side-navigation 1.6.6 → 1.6.8

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/side-navigation
2
2
 
3
+ ## 1.6.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`65e4baeea85`](https://bitbucket.org/atlassian/atlassian-frontend/commits/65e4baeea85) - Internal changes.
8
+
9
+ ## 1.6.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
14
+
3
15
  ## 1.6.6
4
16
 
5
17
  ### Patch Changes
@@ -14,8 +14,11 @@ var _context = require("../NestableNavigationContent/context");
14
14
  var baseMotionStyles = (0, _react.css)({
15
15
  position: 'absolute',
16
16
  zIndex: 1,
17
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
17
18
  top: 0,
19
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
18
20
  right: 0,
21
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
19
22
  left: 0
20
23
  });
21
24
  var enteringStyles = (0, _react.css)({
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/side-navigation",
3
- "version": "1.6.6",
3
+ "version": "1.6.8",
4
4
  "sideEffects": false
5
5
  }
@@ -6,8 +6,11 @@ import { useShouldNestedElementRender } from '../NestableNavigationContent/conte
6
6
  const baseMotionStyles = css({
7
7
  position: 'absolute',
8
8
  zIndex: 1,
9
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
9
10
  top: 0,
11
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
10
12
  right: 0,
13
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
11
14
  left: 0
12
15
  });
13
16
  const enteringStyles = css({
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/side-navigation",
3
- "version": "1.6.6",
3
+ "version": "1.6.8",
4
4
  "sideEffects": false
5
5
  }
@@ -6,8 +6,11 @@ import { useShouldNestedElementRender } from '../NestableNavigationContent/conte
6
6
  var baseMotionStyles = css({
7
7
  position: 'absolute',
8
8
  zIndex: 1,
9
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
9
10
  top: 0,
11
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
10
12
  right: 0,
13
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
11
14
  left: 0
12
15
  });
13
16
  var enteringStyles = css({
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/side-navigation",
3
- "version": "1.6.6",
3
+ "version": "1.6.8",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/side-navigation",
3
- "version": "1.6.6",
3
+ "version": "1.6.8",
4
4
  "description": "A highly composable side navigation component that supports nested views.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,7 +30,7 @@
30
30
  "@atlaskit/menu": "^1.5.0",
31
31
  "@atlaskit/motion": "^1.3.0",
32
32
  "@atlaskit/primitives": "^0.8.0",
33
- "@atlaskit/theme": "^12.3.0",
33
+ "@atlaskit/theme": "^12.4.0",
34
34
  "@atlaskit/tokens": "^1.2.0",
35
35
  "@babel/runtime": "^7.0.0",
36
36
  "@emotion/react": "^11.7.1"
@@ -42,7 +42,7 @@
42
42
  "@atlaskit/atlassian-navigation": "^2.4.0",
43
43
  "@atlaskit/button": "^16.6.0",
44
44
  "@atlaskit/docs": "*",
45
- "@atlaskit/logo": "^13.12.0",
45
+ "@atlaskit/logo": "^13.13.0",
46
46
  "@atlaskit/onboarding": "^10.7.0",
47
47
  "@atlaskit/section-message": "^6.3.0",
48
48
  "@atlaskit/select": "^16.1.0",
package/report.api.md CHANGED
@@ -59,7 +59,31 @@ interface CustomItemPropsHack {
59
59
  }
60
60
 
61
61
  // @public
62
- export const Footer: (props: HeaderProps) => JSX.Element;
62
+ export const Footer: ({
63
+ useDeprecatedApi,
64
+ description,
65
+ iconBefore,
66
+ testId,
67
+ children,
68
+ component,
69
+ cssFn,
70
+ onClick,
71
+ }: FooterFacadeProps) => JSX.Element;
72
+
73
+ // @public (undocumented)
74
+ type FooterFacadeProps =
75
+ | (HeaderProps & {
76
+ useDeprecatedApi?: true;
77
+ })
78
+ | (NewFooterProps & {
79
+ useDeprecatedApi?: false;
80
+ cssFn?: never;
81
+ component?: never;
82
+ onClick?: never;
83
+ });
84
+
85
+ // @public (undocumented)
86
+ export type FooterProps = HeaderProps | NewFooterProps;
63
87
 
64
88
  // @public
65
89
  export const GoBackItem: React_2.ForwardRefExoticComponent<
@@ -72,18 +96,15 @@ export const Header: React_2.ForwardRefExoticComponent<
72
96
  >;
73
97
 
74
98
  // @public (undocumented)
75
- interface HeaderProps {
76
- children?: React_2.ReactNode;
77
- component?: React_2.ComponentType<CustomItemComponentProps>;
78
- // @deprecated
99
+ export type HeaderProps = {
79
100
  cssFn?: CSSFn;
80
- description?: JSX.Element | string;
81
101
  iconBefore?: React_2.ReactNode;
82
102
  onClick?: (event: React_2.KeyboardEvent | React_2.MouseEvent) => void;
103
+ description?: JSX.Element | string;
104
+ children?: React_2.ReactNode;
83
105
  testId?: string;
84
- }
85
- export { HeaderProps as FooterProps };
86
- export { HeaderProps };
106
+ component?: React_2.ComponentType<CustomItemComponentProps>;
107
+ };
87
108
 
88
109
  // @public
89
110
  export const HeadingItem: (props: HeadingItemProps) => JSX.Element | null;
@@ -211,6 +232,9 @@ export interface NestingItemProps<
211
232
  title: React_2.ReactNode;
212
233
  }
213
234
 
235
+ // @public (undocumented)
236
+ type NewFooterProps = Omit<HeaderProps, 'component' | 'cssFn' | 'onClick'>;
237
+
214
238
  // @public
215
239
  export const Section: React_2.ForwardRefExoticComponent<
216
240
  SectionProps & React_2.RefAttributes<HTMLElement>