@zendeskgarden/react-chrome 9.0.0-next.16 → 9.0.0-next.17

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 (70) hide show
  1. package/dist/esm/elements/Chrome.js +9 -8
  2. package/dist/esm/elements/header/HeaderItemIcon.js +2 -18
  3. package/dist/esm/elements/nav/Nav.js +13 -7
  4. package/dist/esm/elements/nav/NavItem.js +5 -11
  5. package/dist/esm/elements/nav/NavItemIcon.js +2 -18
  6. package/dist/esm/elements/sheet/Sheet.js +1 -1
  7. package/dist/esm/styled/StyledChrome.js +1 -1
  8. package/dist/esm/styled/StyledSkipNav.js +43 -15
  9. package/dist/esm/styled/StyledSkipNavIcon.js +10 -4
  10. package/dist/esm/styled/body/StyledBody.js +6 -3
  11. package/dist/esm/styled/body/StyledContent.js +18 -6
  12. package/dist/esm/styled/body/StyledMain.js +6 -3
  13. package/dist/esm/styled/footer/StyledFooter.js +28 -7
  14. package/dist/esm/styled/footer/StyledFooterItem.js +1 -1
  15. package/dist/esm/styled/header/StyledBaseHeaderItem.js +24 -15
  16. package/dist/esm/styled/header/StyledHeader.js +46 -12
  17. package/dist/esm/styled/header/StyledHeaderItem.js +46 -14
  18. package/dist/esm/styled/header/StyledHeaderItemIcon.js +13 -5
  19. package/dist/esm/styled/header/StyledHeaderItemText.js +5 -5
  20. package/dist/esm/styled/header/StyledHeaderItemWrapper.js +1 -1
  21. package/dist/esm/styled/header/StyledLogoHeaderItem.js +33 -21
  22. package/dist/esm/styled/nav/StyledBaseNavItem.js +12 -11
  23. package/dist/esm/styled/nav/StyledBrandmarkNavItem.js +2 -2
  24. package/dist/esm/styled/nav/StyledLogoNavItem.js +15 -22
  25. package/dist/esm/styled/nav/StyledNav.js +33 -13
  26. package/dist/esm/styled/nav/StyledNavButton.js +64 -35
  27. package/dist/esm/styled/nav/StyledNavItemIcon.js +12 -5
  28. package/dist/esm/styled/nav/StyledNavItemText.js +19 -14
  29. package/dist/esm/styled/nav/StyledNavList.js +1 -1
  30. package/dist/esm/styled/nav/StyledNavListItem.js +1 -1
  31. package/dist/esm/styled/sheet/StyledSheet.js +32 -17
  32. package/dist/esm/styled/sheet/StyledSheetBody.js +1 -1
  33. package/dist/esm/styled/sheet/StyledSheetClose.js +13 -16
  34. package/dist/esm/styled/sheet/StyledSheetDescription.js +6 -3
  35. package/dist/esm/styled/sheet/StyledSheetFooter.js +23 -4
  36. package/dist/esm/styled/sheet/StyledSheetFooterItem.js +1 -1
  37. package/dist/esm/styled/sheet/StyledSheetHeader.js +27 -5
  38. package/dist/esm/styled/sheet/StyledSheetTitle.js +6 -3
  39. package/dist/esm/styled/sheet/StyledSheetWrapper.js +21 -18
  40. package/dist/esm/styled/utils.js +20 -0
  41. package/dist/index.cjs.js +662 -403
  42. package/dist/typings/elements/header/HeaderItemIcon.d.ts +1 -1
  43. package/dist/typings/elements/nav/NavItemIcon.d.ts +1 -1
  44. package/dist/typings/styled/StyledSkipNav.d.ts +0 -3
  45. package/dist/typings/styled/StyledSkipNavIcon.d.ts +2 -2
  46. package/dist/typings/styled/body/StyledContent.d.ts +2 -1
  47. package/dist/typings/styled/footer/StyledFooter.d.ts +1 -2
  48. package/dist/typings/styled/header/StyledBaseHeaderItem.d.ts +1 -6
  49. package/dist/typings/styled/header/StyledHeader.d.ts +1 -2
  50. package/dist/typings/styled/header/StyledHeaderItem.d.ts +0 -3
  51. package/dist/typings/styled/header/StyledHeaderItemIcon.d.ts +3 -4
  52. package/dist/typings/styled/header/StyledHeaderItemText.d.ts +0 -1
  53. package/dist/typings/styled/header/StyledLogoHeaderItem.d.ts +2 -4
  54. package/dist/typings/styled/nav/StyledBaseNavItem.d.ts +1 -2
  55. package/dist/typings/styled/nav/StyledBrandmarkNavItem.d.ts +0 -3
  56. package/dist/typings/styled/nav/StyledLogoNavItem.d.ts +3 -7
  57. package/dist/typings/styled/nav/StyledNav.d.ts +2 -6
  58. package/dist/typings/styled/nav/StyledNavButton.d.ts +2 -13
  59. package/dist/typings/styled/nav/StyledNavItemIcon.d.ts +3 -4
  60. package/dist/typings/styled/nav/StyledNavItemText.d.ts +2 -1
  61. package/dist/typings/styled/sheet/StyledSheetClose.d.ts +4 -8
  62. package/dist/typings/styled/sheet/StyledSheetDescription.d.ts +2 -3
  63. package/dist/typings/styled/sheet/StyledSheetFooter.d.ts +2 -2
  64. package/dist/typings/styled/sheet/StyledSheetFooterItem.d.ts +2 -3
  65. package/dist/typings/styled/sheet/StyledSheetHeader.d.ts +2 -6
  66. package/dist/typings/styled/sheet/StyledSheetTitle.d.ts +2 -3
  67. package/dist/typings/styled/sheet/StyledSheetWrapper.d.ts +2 -2
  68. package/dist/typings/styled/utils.d.ts +15 -0
  69. package/dist/typings/utils/useChromeContext.d.ts +0 -1
  70. package/package.json +4 -3
@@ -10,4 +10,4 @@ import React, { PropsWithChildren, SVGAttributes } from 'react';
10
10
  *
11
11
  * @extends SVGAttributes<SVGElement>
12
12
  */
13
- export declare const HeaderItemIcon: ({ children, ...props }: PropsWithChildren<SVGAttributes<SVGElement>>) => React.JSX.Element | null;
13
+ export declare const HeaderItemIcon: ({ children, ...props }: PropsWithChildren<SVGAttributes<SVGElement>>) => React.JSX.Element;
@@ -10,4 +10,4 @@ import React, { SVGAttributes, PropsWithChildren } from 'react';
10
10
  *
11
11
  * @extends SVGAttributes<SVGElement>
12
12
  */
13
- export declare const NavItemIcon: ({ children, ...props }: PropsWithChildren<SVGAttributes<SVGElement>>) => React.JSX.Element | null;
13
+ export declare const NavItemIcon: ({ children, ...props }: PropsWithChildren<SVGAttributes<SVGElement>>) => React.JSX.Element;
@@ -8,9 +8,6 @@ import { DefaultTheme } from 'styled-components';
8
8
  interface IStyledSkipNavProps {
9
9
  zIndex?: number;
10
10
  }
11
- /**
12
- * 1. breaking LVHFA order for `<a>` to underline when focused and hovered
13
- */
14
11
  export declare const StyledSkipNav: import("styled-components").StyledComponent<"a", DefaultTheme, {
15
12
  'data-garden-id': string;
16
13
  'data-garden-version': string;
@@ -4,8 +4,8 @@
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 { ThemeProps, DefaultTheme } from 'styled-components';
7
+ import { DefaultTheme } from 'styled-components';
8
8
  export declare const StyledSkipNavIcon: import("styled-components").StyledComponent<any, DefaultTheme, object & {
9
9
  'data-garden-id': string;
10
10
  'data-garden-version': string;
11
- } & ThemeProps<DefaultTheme>, string | number | symbol>;
11
+ }, string | number | symbol>;
@@ -4,10 +4,11 @@
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 { DefaultTheme } from 'styled-components';
7
8
  interface IStyledContentProps {
8
9
  hasFooter?: boolean;
9
10
  }
10
- export declare const StyledContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
11
+ export declare const StyledContent: import("styled-components").StyledComponent<"div", DefaultTheme, {
11
12
  'data-garden-id': string;
12
13
  'data-garden-version': string;
13
14
  } & IStyledContentProps, "data-garden-id" | "data-garden-version">;
@@ -4,8 +4,7 @@
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 { ThemeProps, DefaultTheme } from 'styled-components';
8
- export declare const getFooterHeight: (props: ThemeProps<DefaultTheme>) => string;
7
+ import { DefaultTheme } from 'styled-components';
9
8
  export declare const StyledFooter: import("styled-components").StyledComponent<"footer", DefaultTheme, {
10
9
  'data-garden-id': string;
11
10
  'data-garden-version': string;
@@ -4,17 +4,12 @@
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 { ThemeProps, DefaultTheme } from 'styled-components';
7
+ import { DefaultTheme } from 'styled-components';
8
8
  export interface IStyledBaseHeaderItemProps {
9
9
  maxX?: boolean;
10
10
  maxY?: boolean;
11
11
  isRound?: boolean;
12
12
  }
13
- export declare const getHeaderItemSize: (props: ThemeProps<DefaultTheme>) => string;
14
- /**
15
- * 1. Reset the stacking context for embedded menus
16
- * 2. Button element reset
17
- */
18
13
  export declare const StyledBaseHeaderItem: import("styled-components").StyledComponent<"button", DefaultTheme, {
19
14
  'data-garden-id': string;
20
15
  'data-garden-version': string;
@@ -4,9 +4,8 @@
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 { ThemeProps, DefaultTheme } from 'styled-components';
7
+ import { DefaultTheme } from 'styled-components';
8
8
  export interface IStyledHeaderProps {
9
9
  isStandalone?: boolean;
10
10
  }
11
- export declare const getHeaderHeight: (props: ThemeProps<DefaultTheme>) => string;
12
11
  export declare const StyledHeader: import("styled-components").StyledComponent<"header", DefaultTheme, IStyledHeaderProps, never>;
@@ -6,9 +6,6 @@
6
6
  */
7
7
  import { DefaultTheme } from 'styled-components';
8
8
  import { IStyledBaseHeaderItemProps } from './StyledBaseHeaderItem';
9
- /**
10
- * 1. Anchor reset.
11
- */
12
9
  export declare const StyledHeaderItem: import("styled-components").StyledComponent<"button", DefaultTheme, {
13
10
  'data-garden-id': string;
14
11
  'data-garden-version': string;
@@ -4,10 +4,9 @@
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
- /**
8
- * Applies styling directly to child component
9
- **/
10
- export declare const StyledHeaderItemIcon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
7
+ /// <reference types="react" />
8
+ import { DefaultTheme } from 'styled-components';
9
+ export declare const StyledHeaderItemIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
11
10
  'data-garden-id': string;
12
11
  'data-garden-version': string;
13
12
  }, "data-garden-id" | "data-garden-version">;
@@ -7,5 +7,4 @@
7
7
  export interface IStyledHeaderItemTextProps {
8
8
  isClipped?: boolean;
9
9
  }
10
- export declare const clippedStyling: import("styled-components").FlattenSimpleInterpolation;
11
10
  export declare const StyledHeaderItemText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, IStyledHeaderItemTextProps, never>;
@@ -4,14 +4,12 @@
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 { DefaultTheme } from 'styled-components';
7
8
  import { Product } from '../../types';
8
9
  export interface IStyledLogoHeaderItemProps {
9
10
  product?: Product;
10
11
  }
11
- /**
12
- * 1. Anchor reset
13
- */
14
- export declare const StyledLogoHeaderItem: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
12
+ export declare const StyledLogoHeaderItem: import("styled-components").StyledComponent<"button", DefaultTheme, {
15
13
  'data-garden-id': string;
16
14
  'data-garden-version': string;
17
15
  } & import("./StyledBaseHeaderItem").IStyledBaseHeaderItemProps & {
@@ -4,8 +4,7 @@
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 { ThemeProps, DefaultTheme } from 'styled-components';
8
- export declare const getNavItemHeight: (props: ThemeProps<DefaultTheme>) => string;
7
+ import { DefaultTheme } from 'styled-components';
9
8
  export declare const StyledBaseNavItem: import("styled-components").StyledComponent<"div", DefaultTheme, {
10
9
  'data-garden-id': string;
11
10
  'data-garden-version': string;
@@ -4,9 +4,6 @@
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
- /**
8
- * 1. Overrides flex default `min-height: auto`
9
- */
10
7
  export declare const StyledBrandmarkNavItem: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
11
8
  'data-garden-id': string;
12
9
  'data-garden-version': string;
@@ -4,16 +4,12 @@
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 { ThemeProps, DefaultTheme } from 'styled-components';
7
+ import { DefaultTheme } from 'styled-components';
8
8
  import { Product } from '../../types';
9
- export interface IStyledLogoNavItemProps extends ThemeProps<DefaultTheme> {
9
+ export interface IStyledLogoNavItemProps {
10
+ hue: string;
10
11
  product?: Product;
11
- isDark?: boolean;
12
- isLight?: boolean;
13
12
  }
14
- /**
15
- * 1. Overrides flex default `min-height: auto`
16
- */
17
13
  export declare const StyledLogoNavItem: import("styled-components").StyledComponent<"button", DefaultTheme, {
18
14
  'data-garden-id': string;
19
15
  'data-garden-version': string;
@@ -4,14 +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 { ThemeProps, DefaultTheme } from 'styled-components';
8
- interface IStyledNavProps extends ThemeProps<DefaultTheme> {
7
+ import { DefaultTheme } from 'styled-components';
8
+ interface IStyledNavProps {
9
9
  hue: string;
10
- isDark?: boolean;
11
- isLight?: boolean;
12
10
  isExpanded?: boolean;
13
11
  }
14
- export declare const getNavWidth: (props: ThemeProps<DefaultTheme>) => string;
15
- export declare const getExpandedNavWidth: () => string;
16
12
  export declare const StyledNav: import("styled-components").StyledComponent<"nav", DefaultTheme, IStyledNavProps, never>;
17
13
  export {};
@@ -4,22 +4,11 @@
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 { ThemeProps, DefaultTheme } from 'styled-components';
8
- interface IStyledNavItemProps extends ThemeProps<DefaultTheme> {
9
- isCurrent?: boolean;
7
+ import { DefaultTheme } from 'styled-components';
8
+ interface IStyledNavItemProps {
10
9
  isExpanded?: boolean;
11
- isDark?: boolean;
12
- isLight?: boolean;
13
10
  hue: string;
14
11
  }
15
- /**
16
- * 1. Anchor reset
17
- * 2. Button reset
18
- * 3. Override `focusStyles` outline (in `colorStyles`)
19
- * 4. Use of negative offset to create an inset outline
20
- * 5. Overrides flex default `min-width: auto`
21
- * https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox
22
- */
23
12
  export declare const StyledNavButton: import("styled-components").StyledComponent<"button", DefaultTheme, {
24
13
  'data-garden-id': string;
25
14
  'data-garden-version': string;
@@ -4,10 +4,9 @@
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
- /**
8
- * Applies styling directly to child component
9
- **/
10
- export declare const StyledNavItemIcon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
7
+ /// <reference types="react" />
8
+ import { DefaultTheme } from 'styled-components';
9
+ export declare const StyledNavItemIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
11
10
  'data-garden-id': string;
12
11
  'data-garden-version': string;
13
12
  }, "data-garden-id" | "data-garden-version">;
@@ -4,8 +4,9 @@
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 { DefaultTheme } from 'styled-components';
7
8
  export interface IStyledNavItemTextProps {
8
9
  isWrapped?: boolean;
9
10
  isExpanded?: boolean;
10
11
  }
11
- export declare const StyledNavItemText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, IStyledNavItemTextProps, never>;
12
+ export declare const StyledNavItemText: import("styled-components").StyledComponent<"span", DefaultTheme, IStyledNavItemTextProps, never>;
@@ -4,13 +4,9 @@
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 { ThemeProps, DefaultTheme } from 'styled-components';
8
- export declare const BASE_MULTIPLIERS: {
9
- top: number;
10
- side: number;
11
- size: number;
12
- };
13
- export declare const StyledSheetClose: import("styled-components").StyledComponent<"button", DefaultTheme, {
7
+ /// <reference types="react" />
8
+ import { DefaultTheme } from 'styled-components';
9
+ export declare const StyledSheetClose: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-buttons").IIconButtonProps & import("react").RefAttributes<HTMLButtonElement>>, DefaultTheme, {
14
10
  'data-garden-id': string;
15
11
  'data-garden-version': string;
16
- } & ThemeProps<DefaultTheme>, "data-garden-id" | "data-garden-version">;
12
+ }, "data-garden-id" | "data-garden-version">;
@@ -4,8 +4,7 @@
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 { ThemeProps, DefaultTheme } from 'styled-components';
8
- export declare const StyledSheetDescription: import("styled-components").StyledComponent<"div", DefaultTheme, {
7
+ export declare const StyledSheetDescription: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
9
8
  'data-garden-id': string;
10
9
  'data-garden-version': string;
11
- } & ThemeProps<DefaultTheme>, "data-garden-id" | "data-garden-version">;
10
+ }, "data-garden-id" | "data-garden-version">;
@@ -4,7 +4,7 @@
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 { ThemeProps, DefaultTheme } from 'styled-components';
7
+ import { DefaultTheme } from 'styled-components';
8
8
  export interface IStyledSheetFooterProps {
9
9
  /** Sets the SheetFooter padding to half the standard and centers the elements */
10
10
  isCompact?: boolean;
@@ -12,4 +12,4 @@ export interface IStyledSheetFooterProps {
12
12
  export declare const StyledSheetFooter: import("styled-components").StyledComponent<"footer", DefaultTheme, {
13
13
  'data-garden-id': string;
14
14
  'data-garden-version': string;
15
- } & IStyledSheetFooterProps & ThemeProps<DefaultTheme>, "data-garden-id" | "data-garden-version">;
15
+ } & IStyledSheetFooterProps, "data-garden-id" | "data-garden-version">;
@@ -4,8 +4,7 @@
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 { ThemeProps, DefaultTheme } from 'styled-components';
8
- export declare const StyledSheetFooterItem: import("styled-components").StyledComponent<"div", DefaultTheme, {
7
+ export declare const StyledSheetFooterItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
9
8
  'data-garden-id': string;
10
9
  'data-garden-version': string;
11
- } & ThemeProps<DefaultTheme>, "data-garden-id" | "data-garden-version">;
10
+ }, "data-garden-id" | "data-garden-version">;
@@ -4,15 +4,11 @@
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 { ThemeProps, DefaultTheme } from 'styled-components';
7
+ import { DefaultTheme } from 'styled-components';
8
8
  export interface IStyledSheetHeaderProps {
9
9
  isCloseButtonPresent?: boolean;
10
10
  }
11
- /**
12
- * 1. the padding size accounts for 40px (10 base units) size of the button,
13
- * 8px additional padding and 8px padding for the button position from a given side.
14
- */
15
11
  export declare const StyledSheetHeader: import("styled-components").StyledComponent<"header", DefaultTheme, {
16
12
  'data-garden-id': string;
17
13
  'data-garden-version': string;
18
- } & IStyledSheetHeaderProps & ThemeProps<DefaultTheme>, "data-garden-id" | "data-garden-version">;
14
+ } & IStyledSheetHeaderProps, "data-garden-id" | "data-garden-version">;
@@ -4,8 +4,7 @@
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 { ThemeProps, DefaultTheme } from 'styled-components';
8
- export declare const StyledSheetTitle: import("styled-components").StyledComponent<"div", DefaultTheme, {
7
+ export declare const StyledSheetTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
9
8
  'data-garden-id': string;
10
9
  'data-garden-version': string;
11
- } & ThemeProps<DefaultTheme>, "data-garden-id" | "data-garden-version">;
10
+ }, "data-garden-id" | "data-garden-version">;
@@ -4,7 +4,7 @@
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 { ThemeProps, DefaultTheme } from 'styled-components';
7
+ import { DefaultTheme } from 'styled-components';
8
8
  import { ISheetProps } from '../../types';
9
9
  interface IStyledSheetWrapperProps {
10
10
  isOpen?: boolean;
@@ -15,5 +15,5 @@ interface IStyledSheetWrapperProps {
15
15
  export declare const StyledSheetWrapper: import("styled-components").StyledComponent<"div", DefaultTheme, {
16
16
  'data-garden-id': string;
17
17
  'data-garden-version': string;
18
- } & IStyledSheetWrapperProps & ThemeProps<DefaultTheme>, "data-garden-id" | "data-garden-version">;
18
+ } & IStyledSheetWrapperProps, "data-garden-id" | "data-garden-version">;
19
19
  export {};
@@ -0,0 +1,15 @@
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 { DefaultTheme } from 'styled-components';
8
+ import { Product } from '../types';
9
+ export declare const getFooterHeight: (theme: DefaultTheme) => string;
10
+ export declare const getHeaderHeight: (theme: DefaultTheme) => string;
11
+ export declare const getHeaderItemSize: (theme: DefaultTheme) => string;
12
+ export declare const getNavItemHeight: (theme: DefaultTheme) => string;
13
+ export declare const getNavWidth: (theme: DefaultTheme) => string;
14
+ export declare const getNavWidthExpanded: () => string;
15
+ export declare const getProductColor: (product?: Product, fallback?: string) => string;
@@ -8,7 +8,6 @@ import React from 'react';
8
8
  interface IChromeContext {
9
9
  hue: string;
10
10
  isLight?: boolean;
11
- isDark?: boolean;
12
11
  }
13
12
  export declare const ChromeContext: React.Context<IChromeContext>;
14
13
  export declare const useChromeContext: () => IChromeContext;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-chrome",
3
- "version": "9.0.0-next.16",
3
+ "version": "9.0.0-next.17",
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>",
@@ -21,6 +21,7 @@
21
21
  "sideEffects": false,
22
22
  "types": "dist/typings/index.d.ts",
23
23
  "dependencies": {
24
+ "@zendeskgarden/react-buttons": "^9.0.0-next.17",
24
25
  "dom-helpers": "^5.2.1",
25
26
  "polished": "^4.3.1",
26
27
  "prop-types": "^15.5.7",
@@ -33,7 +34,7 @@
33
34
  "styled-components": "^5.3.1"
34
35
  },
35
36
  "devDependencies": {
36
- "@zendeskgarden/react-theming": "^9.0.0-next.16",
37
+ "@zendeskgarden/react-theming": "^9.0.0-next.17",
37
38
  "@zendeskgarden/svg-icons": "7.1.1"
38
39
  },
39
40
  "keywords": [
@@ -46,5 +47,5 @@
46
47
  "access": "public"
47
48
  },
48
49
  "zendeskgarden:src": "src/index.ts",
49
- "gitHead": "52321498a76a68e6152aca0b44949e79ed9b2b3b"
50
+ "gitHead": "7a7e39c2a9e854ad0fe914d82e28c052aa102d2e"
50
51
  }