@zendeskgarden/react-tabs 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 +4 -4
- package/dist/index.esm.js +4 -4
- package/dist/typings/elements/Tab.d.ts +12 -12
- package/dist/typings/elements/TabList.d.ts +11 -11
- package/dist/typings/elements/TabPanel.d.ts +12 -12
- package/dist/typings/elements/Tabs.d.ts +12 -12
- package/dist/typings/index.d.ts +11 -11
- package/dist/typings/styled/StyledTab.d.ts +17 -17
- package/dist/typings/styled/StyledTabList.d.ts +13 -13
- package/dist/typings/styled/StyledTabPanel.d.ts +13 -13
- package/dist/typings/styled/StyledTabs.d.ts +18 -18
- package/dist/typings/styled/index.d.ts +10 -10
- package/dist/typings/types/index.d.ts +35 -35
- package/dist/typings/utils/useTabsContext.d.ts +15 -15
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -67,7 +67,7 @@ const sizeStyles = _ref2 => {
|
|
|
67
67
|
};
|
|
68
68
|
const StyledTab = styled__default.default.div.attrs({
|
|
69
69
|
'data-garden-id': COMPONENT_ID$3,
|
|
70
|
-
'data-garden-version': '8.69.
|
|
70
|
+
'data-garden-version': '8.69.3'
|
|
71
71
|
}).withConfig({
|
|
72
72
|
displayName: "StyledTab",
|
|
73
73
|
componentId: "sc-x2pbow-0"
|
|
@@ -79,7 +79,7 @@ StyledTab.defaultProps = {
|
|
|
79
79
|
const COMPONENT_ID$2 = 'tabs.tablist';
|
|
80
80
|
const StyledTabList = styled__default.default.div.attrs({
|
|
81
81
|
'data-garden-id': COMPONENT_ID$2,
|
|
82
|
-
'data-garden-version': '8.69.
|
|
82
|
+
'data-garden-version': '8.69.3'
|
|
83
83
|
}).withConfig({
|
|
84
84
|
displayName: "StyledTabList",
|
|
85
85
|
componentId: "sc-wa5aaj-0"
|
|
@@ -91,7 +91,7 @@ StyledTabList.defaultProps = {
|
|
|
91
91
|
const COMPONENT_ID$1 = 'tabs.tabpanel';
|
|
92
92
|
const StyledTabPanel = styled__default.default.div.attrs({
|
|
93
93
|
'data-garden-id': COMPONENT_ID$1,
|
|
94
|
-
'data-garden-version': '8.69.
|
|
94
|
+
'data-garden-version': '8.69.3'
|
|
95
95
|
}).withConfig({
|
|
96
96
|
displayName: "StyledTabPanel",
|
|
97
97
|
componentId: "sc-7lhrmp-0"
|
|
@@ -109,7 +109,7 @@ const verticalStyling = _ref => {
|
|
|
109
109
|
};
|
|
110
110
|
const StyledTabs = styled__default.default.div.attrs({
|
|
111
111
|
'data-garden-id': COMPONENT_ID,
|
|
112
|
-
'data-garden-version': '8.69.
|
|
112
|
+
'data-garden-version': '8.69.3'
|
|
113
113
|
}).withConfig({
|
|
114
114
|
displayName: "StyledTabs",
|
|
115
115
|
componentId: "sc-1qaor65-0"
|
package/dist/index.esm.js
CHANGED
|
@@ -58,7 +58,7 @@ const sizeStyles = _ref2 => {
|
|
|
58
58
|
};
|
|
59
59
|
const StyledTab = styled.div.attrs({
|
|
60
60
|
'data-garden-id': COMPONENT_ID$3,
|
|
61
|
-
'data-garden-version': '8.69.
|
|
61
|
+
'data-garden-version': '8.69.3'
|
|
62
62
|
}).withConfig({
|
|
63
63
|
displayName: "StyledTab",
|
|
64
64
|
componentId: "sc-x2pbow-0"
|
|
@@ -70,7 +70,7 @@ StyledTab.defaultProps = {
|
|
|
70
70
|
const COMPONENT_ID$2 = 'tabs.tablist';
|
|
71
71
|
const StyledTabList = styled.div.attrs({
|
|
72
72
|
'data-garden-id': COMPONENT_ID$2,
|
|
73
|
-
'data-garden-version': '8.69.
|
|
73
|
+
'data-garden-version': '8.69.3'
|
|
74
74
|
}).withConfig({
|
|
75
75
|
displayName: "StyledTabList",
|
|
76
76
|
componentId: "sc-wa5aaj-0"
|
|
@@ -82,7 +82,7 @@ StyledTabList.defaultProps = {
|
|
|
82
82
|
const COMPONENT_ID$1 = 'tabs.tabpanel';
|
|
83
83
|
const StyledTabPanel = styled.div.attrs({
|
|
84
84
|
'data-garden-id': COMPONENT_ID$1,
|
|
85
|
-
'data-garden-version': '8.69.
|
|
85
|
+
'data-garden-version': '8.69.3'
|
|
86
86
|
}).withConfig({
|
|
87
87
|
displayName: "StyledTabPanel",
|
|
88
88
|
componentId: "sc-7lhrmp-0"
|
|
@@ -100,7 +100,7 @@ const verticalStyling = _ref => {
|
|
|
100
100
|
};
|
|
101
101
|
const StyledTabs = styled.div.attrs({
|
|
102
102
|
'data-garden-id': COMPONENT_ID,
|
|
103
|
-
'data-garden-version': '8.69.
|
|
103
|
+
'data-garden-version': '8.69.3'
|
|
104
104
|
}).withConfig({
|
|
105
105
|
displayName: "StyledTabs",
|
|
106
106
|
componentId: "sc-1qaor65-0"
|
|
@@ -1,12 +1,12 @@
|
|
|
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
|
-
import { ITabProps } from '../types';
|
|
9
|
-
/**
|
|
10
|
-
* @extends HTMLAttributes<HTMLDivElement>
|
|
11
|
-
*/
|
|
12
|
-
export declare const Tab: React.ForwardRefExoticComponent<ITabProps & React.RefAttributes<HTMLDivElement>>;
|
|
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
|
+
import { ITabProps } from '../types';
|
|
9
|
+
/**
|
|
10
|
+
* @extends HTMLAttributes<HTMLDivElement>
|
|
11
|
+
*/
|
|
12
|
+
export declare const Tab: React.ForwardRefExoticComponent<ITabProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright Zendesk, Inc.
|
|
3
|
-
*
|
|
4
|
-
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
|
-
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
-
*/
|
|
7
|
-
import React from 'react';
|
|
8
|
-
/**
|
|
9
|
-
* @extends HTMLAttributes<HTMLDivElement>
|
|
10
|
-
*/
|
|
11
|
-
export declare const TabList: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Zendesk, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
|
+
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
/**
|
|
9
|
+
* @extends HTMLAttributes<HTMLDivElement>
|
|
10
|
+
*/
|
|
11
|
+
export declare const TabList: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,12 +1,12 @@
|
|
|
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
|
-
import { ITabPanelProps } from '../types';
|
|
9
|
-
/**
|
|
10
|
-
* @extends HTMLAttributes<HTMLDivElement>
|
|
11
|
-
*/
|
|
12
|
-
export declare const TabPanel: React.ForwardRefExoticComponent<ITabPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
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
|
+
import { ITabPanelProps } from '../types';
|
|
9
|
+
/**
|
|
10
|
+
* @extends HTMLAttributes<HTMLDivElement>
|
|
11
|
+
*/
|
|
12
|
+
export declare const TabPanel: React.ForwardRefExoticComponent<ITabPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,12 +1,12 @@
|
|
|
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
|
-
import { ITabsProps } from '../types';
|
|
9
|
-
/**
|
|
10
|
-
* @extends HTMLAttributes<HTMLDivElement>
|
|
11
|
-
*/
|
|
12
|
-
export declare const Tabs: React.ForwardRefExoticComponent<ITabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
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
|
+
import { ITabsProps } from '../types';
|
|
9
|
+
/**
|
|
10
|
+
* @extends HTMLAttributes<HTMLDivElement>
|
|
11
|
+
*/
|
|
12
|
+
export declare const Tabs: React.ForwardRefExoticComponent<ITabsProps & React.RefAttributes<HTMLDivElement>>;
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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 { Tab } from './elements/Tab';
|
|
8
|
-
export { TabList } from './elements/TabList';
|
|
9
|
-
export { TabPanel } from './elements/TabPanel';
|
|
10
|
-
export { Tabs } from './elements/Tabs';
|
|
11
|
-
export type { ITabProps, ITabPanelProps, ITabsProps } from './types';
|
|
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 { Tab } from './elements/Tab';
|
|
8
|
+
export { TabList } from './elements/TabList';
|
|
9
|
+
export { TabPanel } from './elements/TabPanel';
|
|
10
|
+
export { Tabs } from './elements/Tabs';
|
|
11
|
+
export type { ITabProps, ITabPanelProps, ITabsProps } from './types';
|
|
@@ -1,17 +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 IStyledTabProps {
|
|
9
|
-
isSelected?: boolean;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* 1. Text truncation (requires `max-width`).
|
|
13
|
-
* 2. Overflow compensation.
|
|
14
|
-
* 3. Override default anchor styling
|
|
15
|
-
*/
|
|
16
|
-
export declare const StyledTab: import("styled-components").StyledComponent<"div", DefaultTheme, IStyledTabProps, never>;
|
|
17
|
-
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 { DefaultTheme } from 'styled-components';
|
|
8
|
+
interface IStyledTabProps {
|
|
9
|
+
isSelected?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 1. Text truncation (requires `max-width`).
|
|
13
|
+
* 2. Overflow compensation.
|
|
14
|
+
* 3. Override default anchor styling
|
|
15
|
+
*/
|
|
16
|
+
export declare const StyledTab: import("styled-components").StyledComponent<"div", DefaultTheme, IStyledTabProps, never>;
|
|
17
|
+
export {};
|
|
@@ -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
|
-
/**
|
|
8
|
-
* 1. List element reset.
|
|
9
|
-
*/
|
|
10
|
-
export declare const StyledTabList: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
11
|
-
'data-garden-id': string;
|
|
12
|
-
'data-garden-version': string;
|
|
13
|
-
}, "data-garden-id" | "data-garden-version">;
|
|
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
|
+
/**
|
|
8
|
+
* 1. List element reset.
|
|
9
|
+
*/
|
|
10
|
+
export declare const StyledTabList: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
11
|
+
'data-garden-id': string;
|
|
12
|
+
'data-garden-version': string;
|
|
13
|
+
}, "data-garden-id" | "data-garden-version">;
|
|
@@ -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
|
-
/**
|
|
8
|
-
* Accepts all `<div>` props
|
|
9
|
-
*/
|
|
10
|
-
export declare const StyledTabPanel: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
11
|
-
'data-garden-id': string;
|
|
12
|
-
'data-garden-version': string;
|
|
13
|
-
}, "data-garden-id" | "data-garden-version">;
|
|
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
|
+
/**
|
|
8
|
+
* Accepts all `<div>` props
|
|
9
|
+
*/
|
|
10
|
+
export declare const StyledTabPanel: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
11
|
+
'data-garden-id': string;
|
|
12
|
+
'data-garden-version': string;
|
|
13
|
+
}, "data-garden-id" | "data-garden-version">;
|
|
@@ -1,18 +1,18 @@
|
|
|
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 IStyledTabsProps {
|
|
9
|
-
/**
|
|
10
|
-
* Displays vertical TabList styling
|
|
11
|
-
*/
|
|
12
|
-
isVertical?: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Accepts all `<div>` props
|
|
16
|
-
*/
|
|
17
|
-
export declare const StyledTabs: import("styled-components").StyledComponent<"div", DefaultTheme, IStyledTabsProps, never>;
|
|
18
|
-
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 { DefaultTheme } from 'styled-components';
|
|
8
|
+
interface IStyledTabsProps {
|
|
9
|
+
/**
|
|
10
|
+
* Displays vertical TabList styling
|
|
11
|
+
*/
|
|
12
|
+
isVertical?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Accepts all `<div>` props
|
|
16
|
+
*/
|
|
17
|
+
export declare const StyledTabs: import("styled-components").StyledComponent<"div", DefaultTheme, IStyledTabsProps, never>;
|
|
18
|
+
export {};
|
|
@@ -1,10 +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 { StyledTab } from './StyledTab';
|
|
8
|
-
export { StyledTabList } from './StyledTabList';
|
|
9
|
-
export { StyledTabPanel } from './StyledTabPanel';
|
|
10
|
-
export { StyledTabs } from './StyledTabs';
|
|
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 { StyledTab } from './StyledTab';
|
|
8
|
+
export { StyledTabList } from './StyledTabList';
|
|
9
|
+
export { StyledTabPanel } from './StyledTabPanel';
|
|
10
|
+
export { StyledTabs } from './StyledTabs';
|
|
@@ -1,35 +1,35 @@
|
|
|
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 { HTMLAttributes } from 'react';
|
|
8
|
-
export interface ITabProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
|
-
/** Indicates that the element is not interactive */
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
/** Defines a unique value to identify the tab. Provided to the `onChange` event in the [Tabs](#tabs) component. */
|
|
12
|
-
item?: any;
|
|
13
|
-
}
|
|
14
|
-
export interface ITabPanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
15
|
-
/**
|
|
16
|
-
* Defines a value used to match a tab panel with its associated tab
|
|
17
|
-
*/
|
|
18
|
-
item?: any;
|
|
19
|
-
}
|
|
20
|
-
export interface ITabsProps extends HTMLAttributes<HTMLDivElement> {
|
|
21
|
-
/**
|
|
22
|
-
* Arranges the tabs vertically
|
|
23
|
-
*/
|
|
24
|
-
isVertical?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Specifies the currently selected tab
|
|
27
|
-
*/
|
|
28
|
-
selectedItem?: any;
|
|
29
|
-
/**
|
|
30
|
-
* Handles tab selection
|
|
31
|
-
*
|
|
32
|
-
* @param {String} selectedItem The selected tab's `item` value
|
|
33
|
-
*/
|
|
34
|
-
onChange?: (selectedItem: any) => void;
|
|
35
|
-
}
|
|
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 { HTMLAttributes } from 'react';
|
|
8
|
+
export interface ITabProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
/** Indicates that the element is not interactive */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Defines a unique value to identify the tab. Provided to the `onChange` event in the [Tabs](#tabs) component. */
|
|
12
|
+
item?: any;
|
|
13
|
+
}
|
|
14
|
+
export interface ITabPanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
15
|
+
/**
|
|
16
|
+
* Defines a value used to match a tab panel with its associated tab
|
|
17
|
+
*/
|
|
18
|
+
item?: any;
|
|
19
|
+
}
|
|
20
|
+
export interface ITabsProps extends HTMLAttributes<HTMLDivElement> {
|
|
21
|
+
/**
|
|
22
|
+
* Arranges the tabs vertically
|
|
23
|
+
*/
|
|
24
|
+
isVertical?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Specifies the currently selected tab
|
|
27
|
+
*/
|
|
28
|
+
selectedItem?: any;
|
|
29
|
+
/**
|
|
30
|
+
* Handles tab selection
|
|
31
|
+
*
|
|
32
|
+
* @param {String} selectedItem The selected tab's `item` value
|
|
33
|
+
*/
|
|
34
|
+
onChange?: (selectedItem: any) => void;
|
|
35
|
+
}
|
|
@@ -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 { MutableRefObject } from 'react';
|
|
8
|
-
import { IUseTabsReturnValue } from '@zendeskgarden/container-tabs';
|
|
9
|
-
interface ITabsContext extends IUseTabsReturnValue<any> {
|
|
10
|
-
tabIndexRef: MutableRefObject<number>;
|
|
11
|
-
tabPanelIndexRef: MutableRefObject<number>;
|
|
12
|
-
}
|
|
13
|
-
export declare const TabsContext: import("react").Context<ITabsContext | undefined>;
|
|
14
|
-
export declare const useTabsContext: () => ITabsContext | undefined;
|
|
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 { MutableRefObject } from 'react';
|
|
8
|
+
import { IUseTabsReturnValue } from '@zendeskgarden/container-tabs';
|
|
9
|
+
interface ITabsContext extends IUseTabsReturnValue<any> {
|
|
10
|
+
tabIndexRef: MutableRefObject<number>;
|
|
11
|
+
tabPanelIndexRef: MutableRefObject<number>;
|
|
12
|
+
}
|
|
13
|
+
export declare const TabsContext: import("react").Context<ITabsContext | undefined>;
|
|
14
|
+
export declare const useTabsContext: () => ITabsContext | undefined;
|
|
15
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-tabs",
|
|
3
|
-
"version": "8.69.
|
|
3
|
+
"version": "8.69.3",
|
|
4
4
|
"description": "Components and render prop containers relating to the Garden Design System.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Zendesk Garden <garden@zendesk.com>",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"styled-components": "^4.2.0 || ^5.0.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@zendeskgarden/react-theming": "^8.69.
|
|
37
|
+
"@zendeskgarden/react-theming": "^8.69.3"
|
|
38
38
|
},
|
|
39
39
|
"keywords": [
|
|
40
40
|
"components",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"zendeskgarden:src": "src/index.ts",
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "c861fbeb70120b66b05d2ce3a26ccf3047659aa0"
|
|
50
50
|
}
|