@zendeskgarden/react-chrome 9.0.0-next.4 → 9.0.0-next.6

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,8 +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
- * @extends HTMLAttributes<HTMLElement>
9
+ * @deprecated use `Nav.ItemIcon` instead
10
+ *
11
+ * @extends SVGAttributes<SVGElement>
10
12
  */
11
- 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;
@@ -7,6 +7,8 @@
7
7
  import React from 'react';
8
8
  import { INavItemTextProps } from '../../types';
9
9
  /**
10
+ * @deprecated use `Nav.ItemText` instead
11
+ *
10
12
  * @extends HTMLAttributes<HTMLSpanElement>
11
13
  */
12
14
  export declare const NavItemText: React.ForwardRefExoticComponent<INavItemTextProps & React.RefAttributes<HTMLElement>>;
@@ -7,6 +7,8 @@
7
7
  import React from 'react';
8
8
  import { ICollapsibleSubNavItemProps } from '../../types';
9
9
  /**
10
+ * @deprecated use `SubNav.CollapsibleItem` instead
11
+ *
10
12
  * @extends ButtonHTMLAttributes<HTMLButtonElement>
11
13
  */
12
14
  export declare const CollapsibleSubNavItem: React.ForwardRefExoticComponent<ICollapsibleSubNavItemProps & React.RefAttributes<HTMLDivElement>>;
@@ -7,6 +7,8 @@
7
7
  import React from 'react';
8
8
  import { ISubNavItemProps } from '../../types';
9
9
  /**
10
+ * @deprecated use `SubNav.Item` instead
11
+ *
10
12
  * @extends ButtonHTMLAttributes<HTMLButtonElement>
11
13
  */
12
14
  export declare const SubNavItem: React.ForwardRefExoticComponent<ISubNavItemProps & React.RefAttributes<HTMLButtonElement>>;
@@ -7,6 +7,8 @@
7
7
  import React from 'react';
8
8
  import { ISubNavItemTextProps } from '../../types';
9
9
  /**
10
+ * @deprecated use `SubNav.ItemText` instead
11
+ *
10
12
  * @extends HTMLAttributes<HTMLSpanElement>
11
13
  */
12
14
  export declare const SubNavItemText: React.ForwardRefExoticComponent<ISubNavItemTextProps & React.RefAttributes<HTMLElement>>;
@@ -4,27 +4,16 @@
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
- /** @deprecated use `Header.Item` instead */
8
7
  export { HeaderItem } from './elements/header/HeaderItem';
9
- /** @deprecated use `Header.ItemIcon` instead */
10
8
  export { HeaderItemIcon } from './elements/header/HeaderItemIcon';
11
- /** @deprecated use `Header.ItemText` instead */
12
9
  export { HeaderItemText } from './elements/header/HeaderItemText';
13
- /** @deprecated use `Header.ItemWrapper` instead */
14
10
  export { HeaderItemWrapper } from './elements/header/HeaderItemWrapper';
15
- /** @deprecated use `Footer.Item` instead */
16
11
  export { FooterItem } from './elements/footer/FooterItem';
17
- /** @deprecated use `Nav.Item` instead */
18
12
  export { NavItem } from './elements/nav/NavItem';
19
- /** @deprecated use `Nav.ItemIcon` instead */
20
13
  export { NavItemIcon } from './elements/nav/NavItemIcon';
21
- /** @deprecated use `Nav.ItemText` instead */
22
14
  export { NavItemText } from './elements/nav/NavItemText';
23
- /** @deprecated use `SubNav.Item` instead */
24
15
  export { SubNavItem } from './elements/subnav/SubNavItem';
25
- /** @deprecated use `SubNav.ItemText` instead */
26
16
  export { SubNavItemText } from './elements/subnav/SubNavItemText';
27
- /** @deprecated use `SubNav.CollapsibleItem` instead */
28
17
  export { CollapsibleSubNavItem } from './elements/subnav/CollapsibleSubNavItem';
29
18
  export { Chrome } from './elements/Chrome';
30
19
  export { SkipNav } from './elements/SkipNav';
@@ -37,4 +26,4 @@ export { Footer } from './elements/footer/Footer';
37
26
  export { Nav } from './elements/nav/Nav';
38
27
  export { SubNav } from './elements/subnav/SubNav';
39
28
  export { Sheet } from './elements/sheet/Sheet';
40
- 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';
29
+ 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';
@@ -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.4",
3
+ "version": "9.0.0-next.6",
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>",
@@ -32,10 +32,10 @@
32
32
  "@zendeskgarden/react-theming": "^8.67.0",
33
33
  "react": ">=16.8.0",
34
34
  "react-dom": ">=16.8.0",
35
- "styled-components": "^5.1.0"
35
+ "styled-components": "^5.3.1"
36
36
  },
37
37
  "devDependencies": {
38
- "@zendeskgarden/react-theming": "^9.0.0-next.4",
38
+ "@zendeskgarden/react-theming": "^9.0.0-next.6",
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": "749220247e3a22d2d502dcb3691d81e6a3d52b02"
51
+ "gitHead": "45c56ad1c73af40afba8e5415f529a2c9601c83f"
52
52
  }