@zendeskgarden/react-chrome 8.69.2 → 8.69.3
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/dist/index.cjs.js +42 -57
- package/dist/index.esm.js +40 -56
- package/dist/typings/elements/Chrome.d.ts +12 -12
- package/dist/typings/elements/SkipNav.d.ts +12 -12
- package/dist/typings/elements/body/Body.d.ts +12 -12
- package/dist/typings/elements/body/Content.d.ts +11 -11
- package/dist/typings/elements/body/Main.d.ts +11 -11
- package/dist/typings/elements/body/Sidebar.d.ts +11 -11
- package/dist/typings/elements/footer/Footer.d.ts +11 -11
- package/dist/typings/elements/footer/FooterItem.d.ts +11 -11
- package/dist/typings/elements/header/Header.d.ts +12 -12
- package/dist/typings/elements/header/HeaderItem.d.ts +12 -12
- package/dist/typings/elements/header/HeaderItemIcon.d.ts +11 -11
- package/dist/typings/elements/header/HeaderItemText.d.ts +12 -12
- package/dist/typings/elements/header/HeaderItemWrapper.d.ts +12 -12
- package/dist/typings/elements/nav/Nav.d.ts +12 -12
- package/dist/typings/elements/nav/NavItem.d.ts +12 -12
- package/dist/typings/elements/nav/NavItemIcon.d.ts +11 -11
- package/dist/typings/elements/nav/NavItemText.d.ts +12 -12
- package/dist/typings/elements/sheet/Sheet.d.ts +27 -27
- package/dist/typings/elements/sheet/components/Body.d.ts +11 -11
- package/dist/typings/elements/sheet/components/Close.d.ts +11 -11
- package/dist/typings/elements/sheet/components/Description.d.ts +11 -11
- package/dist/typings/elements/sheet/components/Footer.d.ts +12 -12
- package/dist/typings/elements/sheet/components/FooterItem.d.ts +11 -11
- package/dist/typings/elements/sheet/components/Header.d.ts +11 -11
- package/dist/typings/elements/sheet/components/Title.d.ts +11 -11
- package/dist/typings/elements/subnav/CollapsibleSubNavItem.d.ts +12 -12
- package/dist/typings/elements/subnav/SubNav.d.ts +11 -11
- package/dist/typings/elements/subnav/SubNavItem.d.ts +12 -12
- package/dist/typings/elements/subnav/SubNavItemText.d.ts +12 -12
- package/dist/typings/index.d.ts +32 -32
- package/dist/typings/styled/StyledChrome.d.ts +13 -13
- package/dist/typings/styled/StyledSkipNav.d.ts +18 -18
- package/dist/typings/styled/StyledSkipNavIcon.d.ts +11 -11
- package/dist/typings/styled/body/StyledBody.d.ts +10 -10
- package/dist/typings/styled/body/StyledContent.d.ts +14 -14
- package/dist/typings/styled/body/StyledMain.d.ts +10 -10
- package/dist/typings/styled/body/StyledSidebar.d.ts +10 -10
- package/dist/typings/styled/footer/StyledFooter.d.ts +12 -12
- package/dist/typings/styled/footer/StyledFooterItem.d.ts +13 -13
- package/dist/typings/styled/header/StyledBaseHeaderItem.d.ts +21 -21
- package/dist/typings/styled/header/StyledHeader.d.ts +12 -12
- package/dist/typings/styled/header/StyledHeaderItem.d.ts +15 -15
- package/dist/typings/styled/header/StyledHeaderItemIcon.d.ts +13 -13
- package/dist/typings/styled/header/StyledHeaderItemText.d.ts +11 -11
- package/dist/typings/styled/header/StyledHeaderItemWrapper.d.ts +11 -11
- package/dist/typings/styled/header/StyledLogoHeaderItem.d.ts +21 -21
- package/dist/typings/styled/index.d.ts +44 -44
- package/dist/typings/styled/nav/StyledBaseNavItem.d.ts +16 -16
- package/dist/typings/styled/nav/StyledBrandmarkNavItem.d.ts +14 -14
- package/dist/typings/styled/nav/StyledLogoNavItem.d.ts +21 -21
- package/dist/typings/styled/nav/StyledNav.d.ts +17 -17
- package/dist/typings/styled/nav/StyledNavItem.d.ts +26 -26
- package/dist/typings/styled/nav/StyledNavItemIcon.d.ts +13 -13
- package/dist/typings/styled/nav/StyledNavItemText.d.ts +11 -11
- package/dist/typings/styled/sheet/StyledSheet.d.ts +19 -19
- package/dist/typings/styled/sheet/StyledSheetBody.d.ts +10 -10
- package/dist/typings/styled/sheet/StyledSheetClose.d.ts +16 -16
- package/dist/typings/styled/sheet/StyledSheetDescription.d.ts +11 -11
- package/dist/typings/styled/sheet/StyledSheetFooter.d.ts +15 -15
- package/dist/typings/styled/sheet/StyledSheetFooterItem.d.ts +11 -11
- package/dist/typings/styled/sheet/StyledSheetHeader.d.ts +18 -18
- package/dist/typings/styled/sheet/StyledSheetTitle.d.ts +11 -11
- package/dist/typings/styled/sheet/StyledSheetWrapper.d.ts +19 -19
- package/dist/typings/styled/subnav/StyledSubNav.d.ts +17 -17
- package/dist/typings/styled/subnav/StyledSubNavItem.d.ts +21 -21
- package/dist/typings/styled/subnav/StyledSubNavItemHeader.d.ts +14 -14
- package/dist/typings/styled/subnav/StyledSubNavItemIcon.d.ts +14 -14
- package/dist/typings/styled/subnav/StyledSubNavItemText.d.ts +11 -11
- package/dist/typings/styled/subnav/StyledSubNavPanel.d.ts +12 -12
- package/dist/typings/types/index.d.ts +117 -117
- package/dist/typings/utils/useBodyContext.d.ts +13 -13
- package/dist/typings/utils/useChromeContext.d.ts +15 -15
- package/dist/typings/utils/useFocusableMount.d.ts +14 -14
- package/dist/typings/utils/useNavContext.d.ts +13 -13
- package/dist/typings/utils/useSheetContext.d.ts +15 -15
- package/package.json +3 -3
|
@@ -1,117 +1,117 @@
|
|
|
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 { AnchorHTMLAttributes, ButtonHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
8
|
-
export declare const PLACEMENT: readonly ["end", "start"];
|
|
9
|
-
export declare const PRODUCT: readonly ["chat", "connect", "explore", "guide", "message", "support", "talk"];
|
|
10
|
-
export type Product = (typeof PRODUCT)[number];
|
|
11
|
-
export interface IChromeProps extends HTMLAttributes<HTMLDivElement> {
|
|
12
|
-
/** Applies a custom hue to the chrome navigation */
|
|
13
|
-
hue?: string;
|
|
14
|
-
/** Prevents fixed positioning from being applied to the `<html>` element */
|
|
15
|
-
isFluid?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export interface ISkipNavProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
18
|
-
/** Sets the ID of the element to navigate to */
|
|
19
|
-
targetId: string;
|
|
20
|
-
/** Sets the `z-index` of the element */
|
|
21
|
-
zIndex?: number;
|
|
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
|
-
export interface IHeaderProps extends HTMLAttributes<HTMLElement> {
|
|
28
|
-
/** Displays logo for standlone usage */
|
|
29
|
-
isStandalone?: boolean;
|
|
30
|
-
}
|
|
31
|
-
export interface IHeaderItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
32
|
-
/** Maximizes the width of a flex item in the header */
|
|
33
|
-
maxX?: boolean;
|
|
34
|
-
/** Maximizes the height of the item (i.e. contains a search input) */
|
|
35
|
-
maxY?: boolean;
|
|
36
|
-
/** Rounds the border radius of the item */
|
|
37
|
-
isRound?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Applies a
|
|
40
|
-
* [brand color](/design/color#brand-colors)
|
|
41
|
-
* to the product logo
|
|
42
|
-
*/
|
|
43
|
-
product?: Product;
|
|
44
|
-
/** Applies header logo styles to the item */
|
|
45
|
-
hasLogo?: boolean;
|
|
46
|
-
}
|
|
47
|
-
export interface IHeaderItemTextProps extends HTMLAttributes<HTMLElement> {
|
|
48
|
-
/** Hides item text. Text remains accessible to screen readers. */
|
|
49
|
-
isClipped?: boolean;
|
|
50
|
-
}
|
|
51
|
-
export interface IHeaderItemWrapperProps extends HTMLAttributes<HTMLDivElement> {
|
|
52
|
-
/** Maximizes the width of a flex item in the header */
|
|
53
|
-
maxX?: boolean;
|
|
54
|
-
/** Maximizes the height of the item (i.e. contains a search input) */
|
|
55
|
-
maxY?: boolean;
|
|
56
|
-
/** Rounds the border radius of the item */
|
|
57
|
-
isRound?: boolean;
|
|
58
|
-
}
|
|
59
|
-
export interface INavProps extends HTMLAttributes<HTMLElement> {
|
|
60
|
-
/** Expands the nav area to display the item text */
|
|
61
|
-
isExpanded?: boolean;
|
|
62
|
-
}
|
|
63
|
-
export interface INavItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
64
|
-
/** Applies a product-specific color palette */
|
|
65
|
-
product?: Product;
|
|
66
|
-
/** Indicates that the item is current in the nav */
|
|
67
|
-
isCurrent?: boolean;
|
|
68
|
-
/** Indicates that the item contains a product logo */
|
|
69
|
-
hasLogo?: boolean;
|
|
70
|
-
/** Indicates that the item contains the company brandmark */
|
|
71
|
-
hasBrandmark?: boolean;
|
|
72
|
-
}
|
|
73
|
-
export interface INavItemTextProps extends HTMLAttributes<HTMLSpanElement> {
|
|
74
|
-
/** Wraps overflow item text instead of truncating long strings with an ellipsis */
|
|
75
|
-
isWrapped?: boolean;
|
|
76
|
-
}
|
|
77
|
-
export interface ISubNavItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
78
|
-
/** Indicates that the item is current in the subnav */
|
|
79
|
-
isCurrent?: boolean;
|
|
80
|
-
}
|
|
81
|
-
export interface ISubNavItemTextProps extends HTMLAttributes<HTMLSpanElement> {
|
|
82
|
-
/**
|
|
83
|
-
* Wraps overflow item text instead of truncating long strings with an ellipsis.
|
|
84
|
-
* Use when `max-width` styling is applied to the subnav container.
|
|
85
|
-
*/
|
|
86
|
-
isWrapped?: boolean;
|
|
87
|
-
}
|
|
88
|
-
export interface ICollapsibleSubNavItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> {
|
|
89
|
-
/** Sets the item's section header */
|
|
90
|
-
header?: ReactNode;
|
|
91
|
-
/** Reveals the item's section */
|
|
92
|
-
isExpanded?: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Handles changes in the item's expansion state
|
|
95
|
-
*
|
|
96
|
-
* @param {boolean} isExpanded An item's expansion state
|
|
97
|
-
*/
|
|
98
|
-
onChange?: (isExpanded: boolean) => void;
|
|
99
|
-
}
|
|
100
|
-
export interface ISheetProps extends HTMLAttributes<HTMLElement> {
|
|
101
|
-
/** Opens the sheet */
|
|
102
|
-
isOpen?: boolean;
|
|
103
|
-
/** Determines whether animation for opening and closing the sheet is used */
|
|
104
|
-
isAnimated?: boolean;
|
|
105
|
-
/** Directs keyboard focus to the sheet on mount */
|
|
106
|
-
focusOnMount?: boolean;
|
|
107
|
-
/** Returns keyboard focus to the element that triggered the sheet */
|
|
108
|
-
restoreFocus?: boolean;
|
|
109
|
-
/** Adjusts the placement of the sheet */
|
|
110
|
-
placement?: (typeof PLACEMENT)[number];
|
|
111
|
-
/** Sets the size of the open sheet */
|
|
112
|
-
size?: string;
|
|
113
|
-
}
|
|
114
|
-
export interface ISheetFooterProps extends HTMLAttributes<HTMLElement> {
|
|
115
|
-
/** Applies compact styling and centers the elements */
|
|
116
|
-
isCompact?: boolean;
|
|
117
|
-
}
|
|
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 { AnchorHTMLAttributes, ButtonHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
8
|
+
export declare const PLACEMENT: readonly ["end", "start"];
|
|
9
|
+
export declare const PRODUCT: readonly ["chat", "connect", "explore", "guide", "message", "support", "talk"];
|
|
10
|
+
export type Product = (typeof PRODUCT)[number];
|
|
11
|
+
export interface IChromeProps extends HTMLAttributes<HTMLDivElement> {
|
|
12
|
+
/** Applies a custom hue to the chrome navigation */
|
|
13
|
+
hue?: string;
|
|
14
|
+
/** Prevents fixed positioning from being applied to the `<html>` element */
|
|
15
|
+
isFluid?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface ISkipNavProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
18
|
+
/** Sets the ID of the element to navigate to */
|
|
19
|
+
targetId: string;
|
|
20
|
+
/** Sets the `z-index` of the element */
|
|
21
|
+
zIndex?: number;
|
|
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
|
+
export interface IHeaderProps extends HTMLAttributes<HTMLElement> {
|
|
28
|
+
/** Displays logo for standlone usage */
|
|
29
|
+
isStandalone?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface IHeaderItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
32
|
+
/** Maximizes the width of a flex item in the header */
|
|
33
|
+
maxX?: boolean;
|
|
34
|
+
/** Maximizes the height of the item (i.e. contains a search input) */
|
|
35
|
+
maxY?: boolean;
|
|
36
|
+
/** Rounds the border radius of the item */
|
|
37
|
+
isRound?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Applies a
|
|
40
|
+
* [brand color](/design/color#brand-colors)
|
|
41
|
+
* to the product logo
|
|
42
|
+
*/
|
|
43
|
+
product?: Product;
|
|
44
|
+
/** Applies header logo styles to the item */
|
|
45
|
+
hasLogo?: boolean;
|
|
46
|
+
}
|
|
47
|
+
export interface IHeaderItemTextProps extends HTMLAttributes<HTMLElement> {
|
|
48
|
+
/** Hides item text. Text remains accessible to screen readers. */
|
|
49
|
+
isClipped?: boolean;
|
|
50
|
+
}
|
|
51
|
+
export interface IHeaderItemWrapperProps extends HTMLAttributes<HTMLDivElement> {
|
|
52
|
+
/** Maximizes the width of a flex item in the header */
|
|
53
|
+
maxX?: boolean;
|
|
54
|
+
/** Maximizes the height of the item (i.e. contains a search input) */
|
|
55
|
+
maxY?: boolean;
|
|
56
|
+
/** Rounds the border radius of the item */
|
|
57
|
+
isRound?: boolean;
|
|
58
|
+
}
|
|
59
|
+
export interface INavProps extends HTMLAttributes<HTMLElement> {
|
|
60
|
+
/** Expands the nav area to display the item text */
|
|
61
|
+
isExpanded?: boolean;
|
|
62
|
+
}
|
|
63
|
+
export interface INavItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
64
|
+
/** Applies a product-specific color palette */
|
|
65
|
+
product?: Product;
|
|
66
|
+
/** Indicates that the item is current in the nav */
|
|
67
|
+
isCurrent?: boolean;
|
|
68
|
+
/** Indicates that the item contains a product logo */
|
|
69
|
+
hasLogo?: boolean;
|
|
70
|
+
/** Indicates that the item contains the company brandmark */
|
|
71
|
+
hasBrandmark?: boolean;
|
|
72
|
+
}
|
|
73
|
+
export interface INavItemTextProps extends HTMLAttributes<HTMLSpanElement> {
|
|
74
|
+
/** Wraps overflow item text instead of truncating long strings with an ellipsis */
|
|
75
|
+
isWrapped?: boolean;
|
|
76
|
+
}
|
|
77
|
+
export interface ISubNavItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
78
|
+
/** Indicates that the item is current in the subnav */
|
|
79
|
+
isCurrent?: boolean;
|
|
80
|
+
}
|
|
81
|
+
export interface ISubNavItemTextProps extends HTMLAttributes<HTMLSpanElement> {
|
|
82
|
+
/**
|
|
83
|
+
* Wraps overflow item text instead of truncating long strings with an ellipsis.
|
|
84
|
+
* Use when `max-width` styling is applied to the subnav container.
|
|
85
|
+
*/
|
|
86
|
+
isWrapped?: boolean;
|
|
87
|
+
}
|
|
88
|
+
export interface ICollapsibleSubNavItemProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> {
|
|
89
|
+
/** Sets the item's section header */
|
|
90
|
+
header?: ReactNode;
|
|
91
|
+
/** Reveals the item's section */
|
|
92
|
+
isExpanded?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Handles changes in the item's expansion state
|
|
95
|
+
*
|
|
96
|
+
* @param {boolean} isExpanded An item's expansion state
|
|
97
|
+
*/
|
|
98
|
+
onChange?: (isExpanded: boolean) => void;
|
|
99
|
+
}
|
|
100
|
+
export interface ISheetProps extends HTMLAttributes<HTMLElement> {
|
|
101
|
+
/** Opens the sheet */
|
|
102
|
+
isOpen?: boolean;
|
|
103
|
+
/** Determines whether animation for opening and closing the sheet is used */
|
|
104
|
+
isAnimated?: boolean;
|
|
105
|
+
/** Directs keyboard focus to the sheet on mount */
|
|
106
|
+
focusOnMount?: boolean;
|
|
107
|
+
/** Returns keyboard focus to the element that triggered the sheet */
|
|
108
|
+
restoreFocus?: boolean;
|
|
109
|
+
/** Adjusts the placement of the sheet */
|
|
110
|
+
placement?: (typeof PLACEMENT)[number];
|
|
111
|
+
/** Sets the size of the open sheet */
|
|
112
|
+
size?: string;
|
|
113
|
+
}
|
|
114
|
+
export interface ISheetFooterProps extends HTMLAttributes<HTMLElement> {
|
|
115
|
+
/** Applies compact styling and centers the elements */
|
|
116
|
+
isCompact?: boolean;
|
|
117
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
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
|
-
interface IBodyContext {
|
|
9
|
-
hasFooter: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const BodyContext: React.Context<IBodyContext>;
|
|
12
|
-
export declare const useBodyContext: () => IBodyContext;
|
|
13
|
-
export {};
|
|
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
|
+
interface IBodyContext {
|
|
9
|
+
hasFooter: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const BodyContext: React.Context<IBodyContext>;
|
|
12
|
+
export declare const useBodyContext: () => IBodyContext;
|
|
13
|
+
export {};
|
|
@@ -1,15 +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 React from 'react';
|
|
8
|
-
interface IChromeContext {
|
|
9
|
-
hue: string;
|
|
10
|
-
isLight?: boolean;
|
|
11
|
-
isDark?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const ChromeContext: React.Context<IChromeContext>;
|
|
14
|
-
export declare const useChromeContext: () => IChromeContext;
|
|
15
|
-
export {};
|
|
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
|
+
interface IChromeContext {
|
|
9
|
+
hue: string;
|
|
10
|
+
isLight?: boolean;
|
|
11
|
+
isDark?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const ChromeContext: React.Context<IChromeContext>;
|
|
14
|
+
export declare const useChromeContext: () => IChromeContext;
|
|
15
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
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 { MutableRefObject } from 'react';
|
|
8
|
-
export interface IUseFocusableMountProp {
|
|
9
|
-
isMounted?: boolean;
|
|
10
|
-
focusOnMount?: boolean;
|
|
11
|
-
restoreFocus?: boolean;
|
|
12
|
-
targetRef: MutableRefObject<HTMLElement | null>;
|
|
13
|
-
}
|
|
14
|
-
export declare function useFocusableMount({ isMounted, focusOnMount, restoreFocus, targetRef }: IUseFocusableMountProp): void;
|
|
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 { MutableRefObject } from 'react';
|
|
8
|
+
export interface IUseFocusableMountProp {
|
|
9
|
+
isMounted?: boolean;
|
|
10
|
+
focusOnMount?: boolean;
|
|
11
|
+
restoreFocus?: boolean;
|
|
12
|
+
targetRef: MutableRefObject<HTMLElement | null>;
|
|
13
|
+
}
|
|
14
|
+
export declare function useFocusableMount({ isMounted, focusOnMount, restoreFocus, targetRef }: IUseFocusableMountProp): void;
|
|
@@ -1,13 +1,13 @@
|
|
|
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
|
-
interface INavContext {
|
|
9
|
-
isExpanded: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const NavContext: React.Context<INavContext>;
|
|
12
|
-
export declare const useNavContext: () => INavContext;
|
|
13
|
-
export {};
|
|
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
|
+
interface INavContext {
|
|
9
|
+
isExpanded: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const NavContext: React.Context<INavContext>;
|
|
12
|
+
export declare const useNavContext: () => INavContext;
|
|
13
|
+
export {};
|
|
@@ -1,15 +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
|
-
/// <reference types="react" />
|
|
8
|
-
export interface ISheetContext {
|
|
9
|
-
titleId?: string;
|
|
10
|
-
descriptionId?: string;
|
|
11
|
-
isCloseButtonPresent?: boolean;
|
|
12
|
-
setIsCloseButtonPresent: (isPresent: boolean) => void;
|
|
13
|
-
}
|
|
14
|
-
export declare const SheetContext: import("react").Context<ISheetContext>;
|
|
15
|
-
export declare const useSheetContext: () => ISheetContext;
|
|
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
|
+
/// <reference types="react" />
|
|
8
|
+
export interface ISheetContext {
|
|
9
|
+
titleId?: string;
|
|
10
|
+
descriptionId?: string;
|
|
11
|
+
isCloseButtonPresent?: boolean;
|
|
12
|
+
setIsCloseButtonPresent: (isPresent: boolean) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const SheetContext: import("react").Context<ISheetContext>;
|
|
15
|
+
export declare const useSheetContext: () => ISheetContext;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-chrome",
|
|
3
|
-
"version": "8.69.
|
|
3
|
+
"version": "8.69.3",
|
|
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>",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"styled-components": "^4.2.0 || ^5.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@zendeskgarden/react-theming": "^8.69.
|
|
38
|
+
"@zendeskgarden/react-theming": "^8.69.3",
|
|
39
39
|
"@zendeskgarden/svg-icons": "6.33.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": "
|
|
51
|
+
"gitHead": "c861fbeb70120b66b05d2ce3a26ccf3047659aa0"
|
|
52
52
|
}
|