@zendeskgarden/react-chrome 9.0.0-next.5 → 9.0.0-next.7

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.
@@ -4,10 +4,10 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- import React, { HTMLAttributes, PropsWithChildren } from 'react';
7
+ import React, { SVGAttributes, PropsWithChildren } from 'react';
8
8
  /**
9
9
  * @deprecated use `Nav.ItemIcon` instead
10
10
  *
11
- * @extends HTMLAttributes<HTMLElement>
11
+ * @extends SVGAttributes<SVGElement>
12
12
  */
13
- export declare const NavItemIcon: ({ children, ...props }: PropsWithChildren<HTMLAttributes<HTMLElement>>) => React.JSX.Element | null;
13
+ export declare const NavItemIcon: ({ children, ...props }: PropsWithChildren<SVGAttributes<SVGElement>>) => React.JSX.Element | null;
@@ -20,10 +20,9 @@ export { SkipNav } from './elements/SkipNav';
20
20
  export { Body } from './elements/body/Body';
21
21
  export { Content } from './elements/body/Content';
22
22
  export { Main } from './elements/body/Main';
23
- export { Sidebar } from './elements/body/Sidebar';
24
23
  export { Header } from './elements/header/Header';
25
24
  export { Footer } from './elements/footer/Footer';
26
25
  export { Nav } from './elements/nav/Nav';
27
26
  export { SubNav } from './elements/subnav/SubNav';
28
27
  export { Sheet } from './elements/sheet/Sheet';
29
- export { PRODUCTS, type IChromeProps, type ISkipNavProps, type IBodyProps, type IHeaderProps, type IHeaderItemProps, type IHeaderItemTextProps, type IHeaderItemWrapperProps, type INavProps, type INavItemProps, type INavItemTextProps, type ISubNavItemProps, type ICollapsibleSubNavItemProps, type ISheetProps, type ISheetFooterProps } from './types';
28
+ export { PRODUCTS, type IChromeProps, type ISkipNavProps, type IHeaderProps, type IHeaderItemProps, type IHeaderItemTextProps, type IHeaderItemWrapperProps, type INavProps, type INavItemProps, type INavItemTextProps, type ISubNavItemProps, type ICollapsibleSubNavItemProps, type ISheetProps, type ISheetFooterProps } from './types';
@@ -10,7 +10,6 @@ export { StyledSkipNavIcon } from './StyledSkipNavIcon';
10
10
  export { StyledBody } from './body/StyledBody';
11
11
  export { StyledContent } from './body/StyledContent';
12
12
  export { StyledMain } from './body/StyledMain';
13
- export { StyledSidebar } from './body/StyledSidebar';
14
13
  export { StyledFooter } from './footer/StyledFooter';
15
14
  export { StyledFooterItem } from './footer/StyledFooterItem';
16
15
  export { StyledHeader } from './header/StyledHeader';
@@ -20,10 +20,6 @@ export interface ISkipNavProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
20
20
  /** Sets the `z-index` of the element */
21
21
  zIndex?: number;
22
22
  }
23
- export interface IBodyProps extends HTMLAttributes<HTMLDivElement> {
24
- /** Adjusts the body content height to allow space for a footer component */
25
- hasFooter?: boolean;
26
- }
27
23
  export interface IHeaderProps extends HTMLAttributes<HTMLElement> {
28
24
  /** Displays logo for standlone usage */
29
25
  isStandalone?: boolean;
@@ -7,7 +7,8 @@
7
7
  import React from 'react';
8
8
  interface IBodyContext {
9
9
  hasFooter: boolean;
10
+ setHasFooter: (footerPresent: boolean) => void;
10
11
  }
11
- export declare const BodyContext: React.Context<IBodyContext>;
12
- export declare const useBodyContext: () => IBodyContext;
12
+ export declare const BodyContext: React.Context<IBodyContext | undefined>;
13
+ export declare const useBodyContext: () => IBodyContext | undefined;
13
14
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-chrome",
3
- "version": "9.0.0-next.5",
3
+ "version": "9.0.0-next.7",
4
4
  "description": "Components relating to Chrome within the Garden Design System.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Zendesk Garden <garden@zendesk.com>",
@@ -29,13 +29,13 @@
29
29
  "react-merge-refs": "^2.0.0"
30
30
  },
31
31
  "peerDependencies": {
32
- "@zendeskgarden/react-theming": "^8.67.0",
32
+ "@zendeskgarden/react-theming": "^9.0.0",
33
33
  "react": ">=16.8.0",
34
34
  "react-dom": ">=16.8.0",
35
35
  "styled-components": "^5.3.1"
36
36
  },
37
37
  "devDependencies": {
38
- "@zendeskgarden/react-theming": "^9.0.0-next.5",
38
+ "@zendeskgarden/react-theming": "^9.0.0-next.7",
39
39
  "@zendeskgarden/svg-icons": "7.0.0"
40
40
  },
41
41
  "keywords": [
@@ -48,5 +48,5 @@
48
48
  "access": "public"
49
49
  },
50
50
  "zendeskgarden:src": "src/index.ts",
51
- "gitHead": "806fa33feb06142c3f69b6a87b53628469117e4d"
51
+ "gitHead": "50a2b45b2e237a490a6d460818d33498b92479ec"
52
52
  }
@@ -1,11 +0,0 @@
1
- /**
2
- * Copyright Zendesk, Inc.
3
- *
4
- * Use of this source code is governed under the Apache License, Version 2.0
5
- * found at http://www.apache.org/licenses/LICENSE-2.0.
6
- */
7
- import React from 'react';
8
- /**
9
- * @extends HTMLAttributes<HTMLElement>
10
- */
11
- export declare const Sidebar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
@@ -1,10 +0,0 @@
1
- /**
2
- * Copyright Zendesk, Inc.
3
- *
4
- * Use of this source code is governed under the Apache License, Version 2.0
5
- * found at http://www.apache.org/licenses/LICENSE-2.0.
6
- */
7
- export declare const StyledSidebar: import("styled-components").StyledComponent<"aside", import("styled-components").DefaultTheme, {
8
- 'data-garden-id': string;
9
- 'data-garden-version': string;
10
- }, "data-garden-id" | "data-garden-version">;