@zendeskgarden/react-chrome 9.0.0-next.2 → 9.0.0-next.20

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 (130) hide show
  1. package/README.md +26 -27
  2. package/dist/esm/elements/Chrome.js +95 -0
  3. package/dist/esm/elements/SkipNav.js +65 -0
  4. package/dist/esm/elements/body/Body.js +57 -0
  5. package/dist/esm/elements/body/Content.js +54 -0
  6. package/dist/esm/elements/body/Main.js +47 -0
  7. package/dist/esm/elements/footer/Footer.js +67 -0
  8. package/dist/esm/elements/footer/FooterItem.js +47 -0
  9. package/dist/esm/elements/header/Header.js +60 -0
  10. package/dist/esm/elements/header/HeaderItem.js +69 -0
  11. package/dist/esm/elements/header/HeaderItemIcon.js +50 -0
  12. package/dist/esm/elements/header/HeaderItemText.js +51 -0
  13. package/dist/esm/elements/header/HeaderItemWrapper.js +47 -0
  14. package/dist/esm/elements/nav/Nav.js +84 -0
  15. package/dist/esm/elements/nav/NavItem.js +95 -0
  16. package/dist/esm/elements/nav/NavItemIcon.js +50 -0
  17. package/dist/esm/elements/nav/NavItemText.js +58 -0
  18. package/dist/esm/elements/nav/NavList.js +55 -0
  19. package/dist/esm/elements/sheet/Sheet.js +128 -0
  20. package/dist/esm/elements/sheet/components/Body.js +50 -0
  21. package/dist/esm/elements/sheet/components/Close.js +60 -0
  22. package/dist/esm/elements/sheet/components/Description.js +59 -0
  23. package/dist/esm/elements/sheet/components/Footer.js +50 -0
  24. package/dist/esm/elements/sheet/components/FooterItem.js +50 -0
  25. package/dist/esm/elements/sheet/components/Header.js +55 -0
  26. package/dist/esm/elements/sheet/components/Title.js +59 -0
  27. package/dist/esm/index.js +24 -0
  28. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/link-stroke.svg.js +25 -0
  29. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/x-stroke.svg.js +26 -0
  30. package/dist/esm/styled/StyledChrome.js +22 -0
  31. package/dist/esm/styled/StyledSkipNav.js +67 -0
  32. package/dist/esm/styled/StyledSkipNavIcon.js +34 -0
  33. package/dist/esm/styled/body/StyledBody.js +25 -0
  34. package/dist/esm/styled/body/StyledContent.js +37 -0
  35. package/dist/esm/styled/body/StyledMain.js +25 -0
  36. package/dist/esm/styled/footer/StyledFooter.js +46 -0
  37. package/dist/esm/styled/footer/StyledFooterItem.js +22 -0
  38. package/dist/esm/styled/header/StyledBaseHeaderItem.js +44 -0
  39. package/dist/esm/styled/header/StyledHeader.js +58 -0
  40. package/dist/esm/styled/header/StyledHeaderItem.js +69 -0
  41. package/dist/esm/styled/header/StyledHeaderItemIcon.js +30 -0
  42. package/dist/esm/styled/header/StyledHeaderItemText.js +23 -0
  43. package/dist/esm/styled/header/StyledHeaderItemWrapper.js +24 -0
  44. package/dist/esm/styled/header/StyledLogoHeaderItem.js +55 -0
  45. package/dist/esm/styled/nav/StyledBaseNavItem.js +33 -0
  46. package/dist/esm/styled/nav/StyledBrandmarkNavItem.js +23 -0
  47. package/dist/esm/styled/nav/StyledLogoNavItem.js +37 -0
  48. package/dist/esm/styled/nav/StyledNav.js +54 -0
  49. package/dist/esm/styled/nav/StyledNavButton.js +94 -0
  50. package/dist/esm/styled/nav/StyledNavItemIcon.js +29 -0
  51. package/dist/esm/styled/nav/StyledNavItemText.js +39 -0
  52. package/dist/esm/styled/nav/StyledNavList.js +22 -0
  53. package/dist/esm/styled/nav/StyledNavListItem.js +22 -0
  54. package/dist/esm/styled/sheet/StyledSheet.js +56 -0
  55. package/dist/esm/styled/sheet/StyledSheetBody.js +22 -0
  56. package/dist/esm/styled/sheet/StyledSheetClose.js +31 -0
  57. package/dist/esm/styled/sheet/StyledSheetDescription.js +25 -0
  58. package/dist/esm/styled/sheet/StyledSheetFooter.js +41 -0
  59. package/dist/esm/styled/sheet/StyledSheetFooterItem.js +22 -0
  60. package/dist/esm/styled/sheet/StyledSheetHeader.js +45 -0
  61. package/dist/esm/styled/sheet/StyledSheetTitle.js +25 -0
  62. package/dist/esm/styled/sheet/StyledSheetWrapper.js +40 -0
  63. package/dist/esm/styled/utils.js +20 -0
  64. package/dist/esm/types/index.js +10 -0
  65. package/dist/esm/utils/useBodyContext.js +14 -0
  66. package/dist/esm/utils/useChromeContext.js +16 -0
  67. package/dist/esm/utils/useFocusableMount.js +31 -0
  68. package/dist/esm/utils/useNavContext.js +16 -0
  69. package/dist/esm/utils/useNavListContext.js +14 -0
  70. package/dist/esm/utils/useSheetContext.js +16 -0
  71. package/dist/index.cjs.js +880 -881
  72. package/dist/typings/elements/body/Body.d.ts +1 -2
  73. package/dist/typings/elements/footer/Footer.d.ts +8 -1
  74. package/dist/typings/elements/footer/FooterItem.d.ts +2 -0
  75. package/dist/typings/elements/header/Header.d.ts +11 -1
  76. package/dist/typings/elements/header/HeaderItem.d.ts +2 -0
  77. package/dist/typings/elements/header/HeaderItemIcon.d.ts +5 -3
  78. package/dist/typings/elements/header/HeaderItemText.d.ts +2 -0
  79. package/dist/typings/elements/header/HeaderItemWrapper.d.ts +2 -0
  80. package/dist/typings/elements/nav/Nav.d.ts +11 -1
  81. package/dist/typings/elements/nav/NavItem.d.ts +2 -0
  82. package/dist/typings/elements/nav/NavItemIcon.d.ts +5 -3
  83. package/dist/typings/elements/nav/NavItemText.d.ts +2 -0
  84. package/dist/typings/elements/{body/Sidebar.d.ts → nav/NavList.d.ts} +2 -2
  85. package/dist/typings/index.d.ts +9 -16
  86. package/dist/typings/styled/StyledSkipNav.d.ts +0 -3
  87. package/dist/typings/styled/StyledSkipNavIcon.d.ts +2 -2
  88. package/dist/typings/styled/body/StyledContent.d.ts +2 -1
  89. package/dist/typings/styled/footer/StyledFooter.d.ts +1 -2
  90. package/dist/typings/styled/header/StyledBaseHeaderItem.d.ts +1 -6
  91. package/dist/typings/styled/header/StyledHeader.d.ts +1 -2
  92. package/dist/typings/styled/header/StyledHeaderItem.d.ts +0 -3
  93. package/dist/typings/styled/header/StyledHeaderItemIcon.d.ts +3 -4
  94. package/dist/typings/styled/header/StyledHeaderItemText.d.ts +0 -1
  95. package/dist/typings/styled/header/StyledLogoHeaderItem.d.ts +2 -4
  96. package/dist/typings/styled/index.d.ts +3 -8
  97. package/dist/typings/styled/nav/StyledBaseNavItem.d.ts +2 -7
  98. package/dist/typings/styled/nav/StyledBrandmarkNavItem.d.ts +1 -5
  99. package/dist/typings/styled/nav/StyledLogoNavItem.d.ts +4 -9
  100. package/dist/typings/styled/nav/StyledNav.d.ts +2 -6
  101. package/dist/typings/styled/nav/StyledNavButton.d.ts +17 -0
  102. package/dist/typings/styled/nav/StyledNavItemIcon.d.ts +3 -4
  103. package/dist/typings/styled/nav/StyledNavItemText.d.ts +2 -1
  104. package/dist/typings/styled/{body/StyledSidebar.d.ts → nav/StyledNavList.d.ts} +1 -1
  105. package/dist/typings/styled/nav/StyledNavListItem.d.ts +10 -0
  106. package/dist/typings/styled/sheet/StyledSheetClose.d.ts +4 -8
  107. package/dist/typings/styled/sheet/StyledSheetDescription.d.ts +2 -3
  108. package/dist/typings/styled/sheet/StyledSheetFooter.d.ts +2 -2
  109. package/dist/typings/styled/sheet/StyledSheetFooterItem.d.ts +2 -3
  110. package/dist/typings/styled/sheet/StyledSheetHeader.d.ts +2 -6
  111. package/dist/typings/styled/sheet/StyledSheetTitle.d.ts +2 -3
  112. package/dist/typings/styled/sheet/StyledSheetWrapper.d.ts +2 -2
  113. package/dist/typings/styled/utils.d.ts +15 -0
  114. package/dist/typings/types/index.d.ts +3 -30
  115. package/dist/typings/utils/useBodyContext.d.ts +3 -2
  116. package/dist/typings/utils/useChromeContext.d.ts +0 -1
  117. package/dist/typings/utils/useNavListContext.d.ts +13 -0
  118. package/package.json +9 -10
  119. package/dist/index.esm.js +0 -1449
  120. package/dist/typings/elements/subnav/CollapsibleSubNavItem.d.ts +0 -12
  121. package/dist/typings/elements/subnav/SubNav.d.ts +0 -11
  122. package/dist/typings/elements/subnav/SubNavItem.d.ts +0 -12
  123. package/dist/typings/elements/subnav/SubNavItemText.d.ts +0 -12
  124. package/dist/typings/styled/nav/StyledNavItem.d.ts +0 -26
  125. package/dist/typings/styled/subnav/StyledSubNav.d.ts +0 -17
  126. package/dist/typings/styled/subnav/StyledSubNavItem.d.ts +0 -21
  127. package/dist/typings/styled/subnav/StyledSubNavItemHeader.d.ts +0 -14
  128. package/dist/typings/styled/subnav/StyledSubNavItemIcon.d.ts +0 -14
  129. package/dist/typings/styled/subnav/StyledSubNavItemText.d.ts +0 -11
  130. package/dist/typings/styled/subnav/StyledSubNavPanel.d.ts +0 -12
@@ -5,8 +5,7 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import React from 'react';
8
- import { IBodyProps } from '../../types';
9
8
  /**
10
9
  * @extends HTMLAttributes<HTMLDivElement>
11
10
  */
12
- export declare const Body: React.ForwardRefExoticComponent<IBodyProps & React.RefAttributes<HTMLDivElement>>;
11
+ export declare const Body: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
@@ -5,7 +5,14 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import React from 'react';
8
+ import { FooterItem } from './FooterItem';
8
9
  /**
9
10
  * @extends HTMLAttributes<HTMLElement>
10
11
  */
11
- export declare const Footer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
12
+ export declare const FooterComponent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
13
+ /**
14
+ * @extends HTMLAttributes<HTMLElement>
15
+ */
16
+ export declare const Footer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>> & {
17
+ Item: typeof FooterItem;
18
+ };
@@ -6,6 +6,8 @@
6
6
  */
7
7
  import React from 'react';
8
8
  /**
9
+ * @deprecated use `Footer.Item` instead
10
+ *
9
11
  * @extends HTMLAttributes<HTMLElement>
10
12
  */
11
13
  export declare const FooterItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
@@ -6,7 +6,17 @@
6
6
  */
7
7
  import React from 'react';
8
8
  import { IHeaderProps } from '../../types';
9
+ import { HeaderItem } from './HeaderItem';
10
+ import { HeaderItemIcon } from './HeaderItemIcon';
11
+ import { HeaderItemText } from './HeaderItemText';
12
+ import { HeaderItemWrapper } from './HeaderItemWrapper';
13
+ export declare const HeaderComponent: React.ForwardRefExoticComponent<IHeaderProps & React.RefAttributes<HTMLElement>>;
9
14
  /**
10
15
  * @extends HTMLAttributes<HTMLElement>
11
16
  */
12
- export declare const Header: React.ForwardRefExoticComponent<IHeaderProps & React.RefAttributes<HTMLElement>>;
17
+ export declare const Header: React.ForwardRefExoticComponent<IHeaderProps & React.RefAttributes<HTMLElement>> & {
18
+ Item: typeof HeaderItem;
19
+ ItemIcon: typeof HeaderItemIcon;
20
+ ItemText: typeof HeaderItemText;
21
+ ItemWrapper: typeof HeaderItemWrapper;
22
+ };
@@ -7,6 +7,8 @@
7
7
  import React from 'react';
8
8
  import { IHeaderItemProps } from '../../types';
9
9
  /**
10
+ * @deprecated use `Header.Item` instead
11
+ *
10
12
  * @extends ButtonHTMLAttributes<HTMLButtonElement>
11
13
  */
12
14
  export declare const HeaderItem: React.ForwardRefExoticComponent<IHeaderItemProps & React.RefAttributes<HTMLButtonElement>>;
@@ -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, { PropsWithChildren, SVGAttributes } from 'react';
8
8
  /**
9
- * @extends HTMLAttributes<HTMLElement>
9
+ * @deprecated use `Header.ItemIcon` instead
10
+ *
11
+ * @extends SVGAttributes<SVGElement>
10
12
  */
11
- export declare const HeaderItemIcon: ({ children, ...props }: PropsWithChildren<HTMLAttributes<HTMLElement>>) => React.JSX.Element | null;
13
+ export declare const HeaderItemIcon: ({ children, ...props }: PropsWithChildren<SVGAttributes<SVGElement>>) => React.JSX.Element;
@@ -7,6 +7,8 @@
7
7
  import React from 'react';
8
8
  import { IHeaderItemTextProps } from '../../types';
9
9
  /**
10
+ * @deprecated use `Header.ItemText` instead
11
+ *
10
12
  * @extends HTMLAttributes<HTMLSpanElement>
11
13
  */
12
14
  export declare const HeaderItemText: React.ForwardRefExoticComponent<IHeaderItemTextProps & React.RefAttributes<HTMLElement>>;
@@ -7,6 +7,8 @@
7
7
  import React from 'react';
8
8
  import { IHeaderItemWrapperProps } from '../../types';
9
9
  /**
10
+ * @deprecated use `Header.ItemWrapper` instead
11
+ *
10
12
  * @extends HTMLAttributes<HTMLDivElement>
11
13
  */
12
14
  export declare const HeaderItemWrapper: React.ForwardRefExoticComponent<IHeaderItemWrapperProps & React.RefAttributes<HTMLDivElement>>;
@@ -6,7 +6,17 @@
6
6
  */
7
7
  import React from 'react';
8
8
  import { INavProps } from '../../types';
9
+ import { NavItem } from './NavItem';
10
+ import { NavItemIcon } from './NavItemIcon';
11
+ import { NavItemText } from './NavItemText';
12
+ import { NavList } from './NavList';
13
+ export declare const NavComponent: React.ForwardRefExoticComponent<INavProps & React.RefAttributes<HTMLElement>>;
9
14
  /**
10
15
  * @extends HTMLAttributes<HTMLElement>
11
16
  */
12
- export declare const Nav: React.ForwardRefExoticComponent<INavProps & React.RefAttributes<HTMLElement>>;
17
+ export declare const Nav: React.ForwardRefExoticComponent<INavProps & React.RefAttributes<HTMLElement>> & {
18
+ List: typeof NavList;
19
+ Item: typeof NavItem;
20
+ ItemIcon: typeof NavItemIcon;
21
+ ItemText: typeof NavItemText;
22
+ };
@@ -7,6 +7,8 @@
7
7
  import React from 'react';
8
8
  import { INavItemProps } from '../../types';
9
9
  /**
10
+ * @deprecated use `Nav.Item` instead
11
+ *
10
12
  * @extends ButtonHTMLAttributes<HTMLButtonElement>
11
13
  */
12
14
  export declare const NavItem: React.ForwardRefExoticComponent<INavItemProps & React.RefAttributes<HTMLButtonElement>>;
@@ -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;
@@ -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>>;
@@ -6,6 +6,6 @@
6
6
  */
7
7
  import React from 'react';
8
8
  /**
9
- * @extends HTMLAttributes<HTMLElement>
9
+ * @extends HTMLAttributes<HTMLUListElement>
10
10
  */
11
- export declare const Sidebar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
11
+ export declare const NavList: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLUListElement> & React.RefAttributes<HTMLUListElement>>;
@@ -4,28 +4,21 @@
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
- export { Chrome } from './elements/Chrome';
8
- export { SkipNav } from './elements/SkipNav';
9
- export { Body } from './elements/body/Body';
10
- export { Content } from './elements/body/Content';
11
- export { Main } from './elements/body/Main';
12
- export { Sidebar } from './elements/body/Sidebar';
13
- export { Header } from './elements/header/Header';
14
7
  export { HeaderItem } from './elements/header/HeaderItem';
15
8
  export { HeaderItemIcon } from './elements/header/HeaderItemIcon';
16
9
  export { HeaderItemText } from './elements/header/HeaderItemText';
17
10
  export { HeaderItemWrapper } from './elements/header/HeaderItemWrapper';
18
- export { Footer } from './elements/footer/Footer';
19
11
  export { FooterItem } from './elements/footer/FooterItem';
20
- export { Nav } from './elements/nav/Nav';
21
12
  export { NavItem } from './elements/nav/NavItem';
22
13
  export { NavItemIcon } from './elements/nav/NavItemIcon';
23
14
  export { NavItemText } from './elements/nav/NavItemText';
24
- export { SubNav } from './elements/subnav/SubNav';
25
- export { SubNavItem } from './elements/subnav/SubNavItem';
26
- export { SubNavItemText } from './elements/subnav/SubNavItemText';
27
- export { CollapsibleSubNavItem } from './elements/subnav/CollapsibleSubNavItem';
15
+ export { Chrome } from './elements/Chrome';
16
+ export { SkipNav } from './elements/SkipNav';
17
+ export { Body } from './elements/body/Body';
18
+ export { Content } from './elements/body/Content';
19
+ export { Main } from './elements/body/Main';
20
+ export { Header } from './elements/header/Header';
21
+ export { Footer } from './elements/footer/Footer';
22
+ export { Nav } from './elements/nav/Nav';
28
23
  export { Sheet } from './elements/sheet/Sheet';
29
- export { PRODUCT as 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,
30
- /** @deprecated can be accessed via IHeaderItemProps['product'] */
31
- type Product as PRODUCT } from './types';
24
+ export { PRODUCTS, type IChromeProps, type ISkipNavProps, type IHeaderProps, type IHeaderItemProps, type IHeaderItemTextProps, type IHeaderItemWrapperProps, type INavProps, type INavItemProps, type INavItemTextProps, type ISheetProps, type ISheetFooterProps } from './types';
@@ -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 & {
@@ -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';
@@ -21,18 +20,14 @@ export { StyledLogoHeaderItem } from './header/StyledLogoHeaderItem';
21
20
  export { StyledHeaderItemText } from './header/StyledHeaderItemText';
22
21
  export { StyledHeaderItemWrapper } from './header/StyledHeaderItemWrapper';
23
22
  export { StyledNav } from './nav/StyledNav';
23
+ export { StyledNavList } from './nav/StyledNavList';
24
+ export { StyledNavListItem } from './nav/StyledNavListItem';
24
25
  export { StyledBaseNavItem } from './nav/StyledBaseNavItem';
25
26
  export { StyledLogoNavItem } from './nav/StyledLogoNavItem';
26
27
  export { StyledBrandmarkNavItem } from './nav/StyledBrandmarkNavItem';
27
- export { StyledNavItem } from './nav/StyledNavItem';
28
+ export { StyledNavButton } from './nav/StyledNavButton';
28
29
  export { StyledNavItemIcon } from './nav/StyledNavItemIcon';
29
30
  export { StyledNavItemText } from './nav/StyledNavItemText';
30
- export { StyledSubNav } from './subnav/StyledSubNav';
31
- export { StyledSubNavItem } from './subnav/StyledSubNavItem';
32
- export { StyledSubNavItemText } from './subnav/StyledSubNavItemText';
33
- export { StyledSubNavItemHeader } from './subnav/StyledSubNavItemHeader';
34
- export { StyledSubNavItemIconWrapper, StyledSubNavItemIcon } from './subnav/StyledSubNavItemIcon';
35
- export { StyledSubNavPanel } from './subnav/StyledSubNavPanel';
36
31
  export { StyledSheet } from './sheet/StyledSheet';
37
32
  export { StyledSheetWrapper } from './sheet/StyledSheetWrapper';
38
33
  export { StyledSheetTitle } from './sheet/StyledSheetTitle';
@@ -4,13 +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';
8
- export declare const getNavItemHeight: (props: ThemeProps<DefaultTheme>) => string;
9
- /**
10
- * 1. Button reset.
11
- * 2. Anchor reset.
12
- */
13
- export declare const StyledBaseNavItem: import("styled-components").StyledComponent<"button", DefaultTheme, {
7
+ import { DefaultTheme } from 'styled-components';
8
+ export declare const StyledBaseNavItem: import("styled-components").StyledComponent<"div", DefaultTheme, {
14
9
  'data-garden-id': string;
15
10
  'data-garden-version': string;
16
11
  }, "data-garden-id" | "data-garden-version">;
@@ -7,8 +7,4 @@
7
7
  export declare const StyledBrandmarkNavItem: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
8
8
  'data-garden-id': string;
9
9
  'data-garden-version': string;
10
- } & {
11
- 'data-garden-id': string;
12
- 'data-garden-version': string;
13
- as: string;
14
- }, "as" | "data-garden-id" | "data-garden-version">;
10
+ }, "data-garden-id" | "data-garden-version">;
@@ -4,18 +4,13 @@
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
13
  export declare const StyledLogoNavItem: import("styled-components").StyledComponent<"button", DefaultTheme, {
15
14
  'data-garden-id': string;
16
15
  'data-garden-version': string;
17
- } & {
18
- 'data-garden-id': string;
19
- 'data-garden-version': string;
20
- as: string;
21
- } & IStyledLogoNavItemProps, "as" | "data-garden-id" | "data-garden-version">;
16
+ } & IStyledLogoNavItemProps, "data-garden-id" | "data-garden-version">;
@@ -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 {};
@@ -0,0 +1,17 @@
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
+ interface IStyledNavItemProps {
9
+ isExpanded?: boolean;
10
+ hue: string;
11
+ }
12
+ export declare const StyledNavButton: import("styled-components").StyledComponent<"button", DefaultTheme, {
13
+ 'data-garden-id': string;
14
+ 'data-garden-version': string;
15
+ as: string;
16
+ } & IStyledNavItemProps, "as" | "data-garden-id" | "data-garden-version">;
17
+ export {};
@@ -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,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
- export declare const StyledSidebar: import("styled-components").StyledComponent<"aside", import("styled-components").DefaultTheme, {
7
+ export declare const StyledNavList: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {
8
8
  'data-garden-id': string;
9
9
  'data-garden-version': string;
10
10
  }, "data-garden-id" | "data-garden-version">;
@@ -0,0 +1,10 @@
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 StyledNavListItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {
8
+ 'data-garden-id': string;
9
+ 'data-garden-version': string;
10
+ }, "data-garden-id" | "data-garden-version">;
@@ -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 {};