@elliemae/ds-tabs 2.3.0-alpha.8 → 2.3.0-alpha.9
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/types/DSTabs.d.ts +14 -0
- package/dist/types/DSTabsCTX.d.ts +4 -0
- package/dist/types/DSTabsDatatestid.d.ts +12 -0
- package/dist/types/DSTabsTypes.d.ts +205 -0
- package/dist/types/config/useCrossRef.d.ts +2 -0
- package/dist/types/config/useTabs.d.ts +2 -0
- package/dist/types/defaultProps.d.ts +2 -0
- package/dist/types/exportsRelated/DSTab.d.ts +14 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/parts/carousel/Carousel.d.ts +3 -0
- package/dist/types/parts/carousel/styles.d.ts +9 -0
- package/dist/types/parts/carousel/useCarousel.d.ts +2 -0
- package/dist/types/parts/carousel/useCarouselCallbacks.d.ts +2 -0
- package/dist/types/parts/tabBar/TabBar.d.ts +2 -0
- package/dist/types/parts/tabBar/styles.d.ts +7 -0
- package/dist/types/parts/tabBar/useTabBar.d.ts +2 -0
- package/dist/types/parts/tabsContent/TabsContent.d.ts +2 -0
- package/dist/types/parts/tabsContent/styles.d.ts +1 -0
- package/dist/types/parts/tabsPanel/TabsPanels.d.ts +2 -0
- package/dist/types/parts/tabsPanel/styles.d.ts +2 -0
- package/dist/types/propTypes.d.ts +54 -0
- package/dist/types/tests/DSTabs.callbacks.test.d.ts +1 -0
- package/dist/types/tests/DSTabs.func.test.d.ts +1 -0
- package/dist/types/tests/DSTabs.keyboard.test.d.ts +1 -0
- package/dist/types/tests/DSTabs.test.d.ts +1 -0
- package/dist/types/utils/constants.d.ts +18 -0
- package/dist/types/utils/helpers.d.ts +9 -0
- package/dist/types/utils/hooks/useKeyboardNavigation.d.ts +2 -0
- package/dist/types/utils/hooks/useTabsCallbacks.d.ts +2 -0
- package/package.json +6 -6
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { DSTabsPropsT } from './DSTabsTypes';
|
|
4
|
+
declare const DSTabs: {
|
|
5
|
+
(props: DSTabsPropsT): JSX.Element;
|
|
6
|
+
propTypes: React.WeakValidationMap<unknown>;
|
|
7
|
+
};
|
|
8
|
+
declare const DSTabsWithSchema: {
|
|
9
|
+
(props?: DSTabsPropsT | undefined): JSX.Element;
|
|
10
|
+
propTypes: unknown;
|
|
11
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
12
|
+
};
|
|
13
|
+
export { DSTabs, DSTabsWithSchema };
|
|
14
|
+
export default DSTabs;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { DSTabsUseCrossRefContextT, DSTabsUseTabsContextT } from './DSTabsTypes';
|
|
3
|
+
export declare const DSTabsContext: import("react").Context<DSTabsUseTabsContextT>;
|
|
4
|
+
export declare const DSTabsCrossRefContext: import("react").Context<DSTabsUseCrossRefContextT>;
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { TabTypes } from './utils/constants';
|
|
3
|
+
declare type TabTypesT = typeof TabTypes[keyof typeof TabTypes];
|
|
4
|
+
export interface DSTabsPropsT {
|
|
5
|
+
containerProps?: Record<string, unknown>;
|
|
6
|
+
innerRef?: React.MutableRefObject<HTMLDivElement>;
|
|
7
|
+
animated?: boolean;
|
|
8
|
+
enableMouseEvents?: boolean;
|
|
9
|
+
allowTextSelection?: boolean;
|
|
10
|
+
onTabChange?: (tabId: string, e?: React.MouseEvent) => void;
|
|
11
|
+
tabsListAriaLabel?: string;
|
|
12
|
+
type?: TabTypesT;
|
|
13
|
+
tabBarExtraContent?: React.ReactNode;
|
|
14
|
+
children: React.ReactElement<DSTabPropsWithDefaultT>[];
|
|
15
|
+
onlyRenderActiveTab?: boolean;
|
|
16
|
+
activeTab?: string;
|
|
17
|
+
withCarousel?: boolean;
|
|
18
|
+
firstSubtabRef?: React.MutableRefObject<HTMLElement>;
|
|
19
|
+
lastTabRef?: React.MutableRefObject<HTMLElement>;
|
|
20
|
+
fixedTabsHeaders?: boolean;
|
|
21
|
+
isDSMobile?: boolean;
|
|
22
|
+
showSelectionIndicator?: boolean;
|
|
23
|
+
showSeparator?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface DSTabsPropsWithDefaultsT {
|
|
26
|
+
containerProps: Record<string, unknown>;
|
|
27
|
+
innerRef?: React.MutableRefObject<HTMLDivElement>;
|
|
28
|
+
animated: boolean;
|
|
29
|
+
enableMouseEvents: boolean;
|
|
30
|
+
allowTextSelection: boolean;
|
|
31
|
+
onTabChange: (tabId: string, e?: React.MouseEvent) => void;
|
|
32
|
+
tabsListAriaLabel: string;
|
|
33
|
+
type: TabTypesT;
|
|
34
|
+
tabBarExtraContent?: React.ReactNode;
|
|
35
|
+
children: React.ReactElement<DSTabPropsWithDefaultT>[];
|
|
36
|
+
onlyRenderActiveTab: boolean;
|
|
37
|
+
activeTab?: string;
|
|
38
|
+
withCarousel: boolean;
|
|
39
|
+
firstSubtabRef?: React.MutableRefObject<HTMLElement>;
|
|
40
|
+
lastTabRef?: React.MutableRefObject<HTMLElement>;
|
|
41
|
+
fixedTabsHeaders: boolean;
|
|
42
|
+
isDSMobile: boolean;
|
|
43
|
+
showSelectionIndicator: boolean;
|
|
44
|
+
showSeparator: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface DSTabsDefaultPropsT {
|
|
47
|
+
containerProps: Record<string, unknown>;
|
|
48
|
+
animated: boolean;
|
|
49
|
+
enableMouseEvents: boolean;
|
|
50
|
+
allowTextSelection: boolean;
|
|
51
|
+
onTabChange: (tabId: string, e?: React.MouseEvent) => void;
|
|
52
|
+
tabsListAriaLabel: string;
|
|
53
|
+
type: TabTypesT;
|
|
54
|
+
onlyRenderActiveTab: boolean;
|
|
55
|
+
fixedTabsHeaders: boolean;
|
|
56
|
+
children: React.ReactElement<DSTabPropsWithDefaultT>[];
|
|
57
|
+
withCarousel: boolean;
|
|
58
|
+
isDSMobile: boolean;
|
|
59
|
+
showSelectionIndicator: boolean;
|
|
60
|
+
showSeparator: boolean;
|
|
61
|
+
}
|
|
62
|
+
export interface CarouselPropsT {
|
|
63
|
+
children: React.ReactNode[];
|
|
64
|
+
updateIndicatorStyle?: () => void;
|
|
65
|
+
}
|
|
66
|
+
export interface DSTabPropsT {
|
|
67
|
+
tabId: string;
|
|
68
|
+
title?: string;
|
|
69
|
+
required?: boolean;
|
|
70
|
+
children?: React.ReactNode;
|
|
71
|
+
style?: Record<string, unknown>;
|
|
72
|
+
disabled?: boolean;
|
|
73
|
+
ref?: React.MutableRefObject<HTMLButtonElement>;
|
|
74
|
+
onClick?: (tabId: string, e: React.MouseEvent) => null | void;
|
|
75
|
+
onKeyDown?: (e: React.KeyboardEvent) => null | void;
|
|
76
|
+
}
|
|
77
|
+
export interface DSTabPropsWithDefaultT {
|
|
78
|
+
tabId: string;
|
|
79
|
+
title: string;
|
|
80
|
+
required: boolean;
|
|
81
|
+
children?: React.ReactNode;
|
|
82
|
+
style?: Record<string, unknown>;
|
|
83
|
+
disabled: boolean;
|
|
84
|
+
ref?: React.MutableRefObject<HTMLButtonElement>;
|
|
85
|
+
onClick?: (tabId: string, e: React.MouseEvent) => null | void;
|
|
86
|
+
onKeyDown?: (e: React.KeyboardEvent) => null | void;
|
|
87
|
+
}
|
|
88
|
+
export interface CarouselButtonsPropsT {
|
|
89
|
+
leftButtonOnClick: () => void;
|
|
90
|
+
rightButtonOnClick: () => void;
|
|
91
|
+
showChevrons: ShowChevronsT;
|
|
92
|
+
type: TabTypesT;
|
|
93
|
+
}
|
|
94
|
+
export interface DSTabsUseCrossRefContextT {
|
|
95
|
+
lastTabInternalRef: React.MutableRefObject<HTMLButtonElement | null | undefined>;
|
|
96
|
+
firstSubtabInternalRef: React.MutableRefObject<HTMLButtonElement | null | undefined>;
|
|
97
|
+
}
|
|
98
|
+
export interface DSTabsUseTabsContextT {
|
|
99
|
+
props: DSTabsPropsWithDefaultsT;
|
|
100
|
+
tabsRef: React.MutableRefObject<Record<number, HTMLButtonElement> | null>;
|
|
101
|
+
focusableTabsRef: React.MutableRefObject<HTMLButtonElement[] | null>;
|
|
102
|
+
tabsListRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
103
|
+
tabsRefAsArray: React.MutableRefObject<HTMLButtonElement[] | null>;
|
|
104
|
+
actualActiveTabRef: React.MutableRefObject<HTMLButtonElement | null>;
|
|
105
|
+
carouselOnlyListRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
106
|
+
setInternalActiveTab: React.Dispatch<React.SetStateAction<string>>;
|
|
107
|
+
actualActiveTab: string;
|
|
108
|
+
}
|
|
109
|
+
export interface UseRezisePropsT {
|
|
110
|
+
ref: React.MutableRefObject<HTMLDivElement | null>;
|
|
111
|
+
callback: () => void;
|
|
112
|
+
}
|
|
113
|
+
export interface UseCarouselPropsT {
|
|
114
|
+
updateIndicatorStyle?: () => void;
|
|
115
|
+
}
|
|
116
|
+
export interface ShowChevronsT {
|
|
117
|
+
right: boolean;
|
|
118
|
+
left: boolean;
|
|
119
|
+
}
|
|
120
|
+
export interface MobileGradientsT {
|
|
121
|
+
right: boolean;
|
|
122
|
+
left: boolean;
|
|
123
|
+
}
|
|
124
|
+
export interface IndicatorStyleT {
|
|
125
|
+
left: string;
|
|
126
|
+
width: string;
|
|
127
|
+
backgroundWithTransparent: string;
|
|
128
|
+
}
|
|
129
|
+
export interface UseCarouselReturnTypeT {
|
|
130
|
+
showChevrons: ShowChevronsT;
|
|
131
|
+
leftButtonOnClick: () => void;
|
|
132
|
+
rightButtonOnClick: () => void;
|
|
133
|
+
handleOnClick: (e: React.MouseEvent) => void;
|
|
134
|
+
handleOnScroll: (e: React.UIEvent) => void;
|
|
135
|
+
}
|
|
136
|
+
export interface UseCarouselCallbacksPropsT {
|
|
137
|
+
getVisibleItemsOffset: () => number;
|
|
138
|
+
recalcChevrons: () => void;
|
|
139
|
+
updateIndicatorStyle?: () => void;
|
|
140
|
+
}
|
|
141
|
+
export interface UseCarouselCallbacksReturnTypeT {
|
|
142
|
+
leftButtonOnClick: () => void;
|
|
143
|
+
rightButtonOnClick: () => void;
|
|
144
|
+
handleOnClick: (e: React.MouseEvent) => void;
|
|
145
|
+
handleOnScroll: (e: React.UIEvent) => void;
|
|
146
|
+
}
|
|
147
|
+
export interface UseKeyboardNavigationReturnTypeT {
|
|
148
|
+
handleOnKeyDown: (e: React.KeyboardEvent) => void;
|
|
149
|
+
}
|
|
150
|
+
export interface UseTabsCallbacksReturnTypeT {
|
|
151
|
+
handleOnTabChange: (tabId: string, e?: React.MouseEvent) => void;
|
|
152
|
+
handleOnMouseDown: (e: React.MouseEvent) => void;
|
|
153
|
+
}
|
|
154
|
+
export interface UseTabBarReturnTypeT {
|
|
155
|
+
updateIndicatorStyle: () => void;
|
|
156
|
+
updateMobileGradients: () => void;
|
|
157
|
+
setIndicatorStyle: React.Dispatch<React.SetStateAction<IndicatorStyleT>>;
|
|
158
|
+
indicatorStyle: IndicatorStyleT;
|
|
159
|
+
mobileGradients: MobileGradientsT;
|
|
160
|
+
}
|
|
161
|
+
export interface VisibleDimensionsT {
|
|
162
|
+
width: number;
|
|
163
|
+
height: number;
|
|
164
|
+
}
|
|
165
|
+
export interface CenterTabPropsT {
|
|
166
|
+
e?: React.MouseEvent | React.FocusEvent;
|
|
167
|
+
listRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
168
|
+
}
|
|
169
|
+
export interface StyledTabWrapperPropsT {
|
|
170
|
+
isDSMobile: boolean;
|
|
171
|
+
fixedTabsHeaders: boolean;
|
|
172
|
+
}
|
|
173
|
+
export interface StyledTabListPropsT {
|
|
174
|
+
withCarousel: boolean;
|
|
175
|
+
isDSMobile: boolean;
|
|
176
|
+
fixedTabsHeaders: boolean;
|
|
177
|
+
mobileGradients: MobileGradientsT;
|
|
178
|
+
indicatorStyle: IndicatorStyleT;
|
|
179
|
+
tabType: TabTypesT;
|
|
180
|
+
}
|
|
181
|
+
export interface StyledSubTabsListPropsT {
|
|
182
|
+
withCarousel: boolean;
|
|
183
|
+
}
|
|
184
|
+
export interface StyledTabButtonPropsT {
|
|
185
|
+
isActive: boolean;
|
|
186
|
+
disabled: boolean;
|
|
187
|
+
showSeparator: boolean;
|
|
188
|
+
isDSMobile: boolean;
|
|
189
|
+
fixedTabsHeaders: boolean;
|
|
190
|
+
withCarousel: boolean;
|
|
191
|
+
tabType: TabTypesT;
|
|
192
|
+
}
|
|
193
|
+
export interface StyledCarouselButtonWrapperPropsT {
|
|
194
|
+
right?: boolean;
|
|
195
|
+
tabType: TabTypesT;
|
|
196
|
+
}
|
|
197
|
+
export interface StyledPanelContainerPropsT {
|
|
198
|
+
hidden: boolean;
|
|
199
|
+
isDSMobile: boolean;
|
|
200
|
+
}
|
|
201
|
+
export interface StyledSelectionIndicatoPropsT {
|
|
202
|
+
isDSMobile: boolean;
|
|
203
|
+
tabType: TabTypesT;
|
|
204
|
+
}
|
|
205
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { DSTabPropsT } from '../DSTabsTypes';
|
|
4
|
+
declare const DSTab: {
|
|
5
|
+
(props: DSTabPropsT): JSX.Element;
|
|
6
|
+
propTypes: React.WeakValidationMap<unknown>;
|
|
7
|
+
};
|
|
8
|
+
declare const DSTabWithSchema: {
|
|
9
|
+
(props?: DSTabPropsT | undefined): JSX.Element;
|
|
10
|
+
propTypes: unknown;
|
|
11
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
12
|
+
};
|
|
13
|
+
export { DSTab, DSTabWithSchema };
|
|
14
|
+
export default DSTab;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StyledCarouselButtonWrapperPropsT } from '../../DSTabsTypes';
|
|
3
|
+
export declare const StyledCarouselBtn: import("styled-components").StyledComponent<{
|
|
4
|
+
(props: import("@elliemae/ds-button/dist/types/v2/propTypes").DSButtonPropsT): JSX.Element;
|
|
5
|
+
propTypes: import("react").WeakValidationMap<unknown>;
|
|
6
|
+
}, import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
+
export declare const StyledCarouselWrapper: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
+
export declare const StyledChildrenWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
9
|
+
export declare const StyledCarouselButtonWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledCarouselButtonWrapperPropsT, never>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { StyledSelectionIndicatoPropsT, StyledSubTabsListPropsT, StyledTabListPropsT, StyledTabButtonPropsT, StyledTabWrapperPropsT } from '../../DSTabsTypes';
|
|
2
|
+
export declare const StyledSelectionIndicator: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledSelectionIndicatoPropsT, never>;
|
|
3
|
+
export declare const StyledTabWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledTabWrapperPropsT, never>;
|
|
4
|
+
export declare const StyledTabButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, StyledTabButtonPropsT, never>;
|
|
5
|
+
export declare const StyledSubTabsList: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledSubTabsListPropsT, never>;
|
|
6
|
+
export declare const StyledTabList: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledTabListPropsT, never>;
|
|
7
|
+
export declare const StyledRequiredMark: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledTabBarContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
export declare const tabPropTypes: {
|
|
3
|
+
tabId: {
|
|
4
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
5
|
+
};
|
|
6
|
+
title: {
|
|
7
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
8
|
+
};
|
|
9
|
+
required: {
|
|
10
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
11
|
+
};
|
|
12
|
+
disabled: {
|
|
13
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare const tabsPropTypes: {
|
|
17
|
+
animated: {
|
|
18
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
19
|
+
};
|
|
20
|
+
enableMouseEvents: {
|
|
21
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
22
|
+
};
|
|
23
|
+
allowTextSelection: {
|
|
24
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
25
|
+
};
|
|
26
|
+
onTabChange: {
|
|
27
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
};
|
|
29
|
+
type: {
|
|
30
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
31
|
+
};
|
|
32
|
+
tabBarExtraContent: {
|
|
33
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
34
|
+
};
|
|
35
|
+
onlyRenderActiveTab: {
|
|
36
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
37
|
+
};
|
|
38
|
+
withCarousel: {
|
|
39
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
40
|
+
};
|
|
41
|
+
activeTab: {
|
|
42
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
43
|
+
};
|
|
44
|
+
children: import("react-desc").PropTypesDescValue;
|
|
45
|
+
tabsListAriaLabel: {
|
|
46
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
47
|
+
};
|
|
48
|
+
containerProps: {
|
|
49
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
50
|
+
};
|
|
51
|
+
innerRef: {
|
|
52
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const TabTypes: {
|
|
2
|
+
NORMAL: "normal";
|
|
3
|
+
NORMAL_SMALL: "normal_small";
|
|
4
|
+
SUBTABS: "subtabs";
|
|
5
|
+
};
|
|
6
|
+
export declare const TabTypesValuesAsArray: ("normal" | "normal_small" | "subtabs")[];
|
|
7
|
+
export declare const MOBILE_GRADIENT_WIDTH = 24;
|
|
8
|
+
export declare const defaultIndicatorStyles: {
|
|
9
|
+
left: string;
|
|
10
|
+
width: string;
|
|
11
|
+
backgroundWithTransparent: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const gradientOffsetsAccordingType: {
|
|
14
|
+
normal_small: number;
|
|
15
|
+
normal: number;
|
|
16
|
+
subtabs: number;
|
|
17
|
+
fixedTabsHeaders: number;
|
|
18
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CenterTabPropsT, DSTabPropsWithDefaultT, VisibleDimensionsT } from '../DSTabsTypes';
|
|
2
|
+
export declare const isElementVisible: (tab: HTMLElement, tabList: HTMLElement) => boolean;
|
|
3
|
+
export declare const isElementVisibleCarousel: (tab: HTMLElement | null, tabContainer: HTMLDivElement | null, firstOrLastItem?: boolean) => boolean;
|
|
4
|
+
export declare const centerTab: ({ e, listRef }: CenterTabPropsT) => void;
|
|
5
|
+
export declare const getVisibleDimensions: (node: HTMLElement, referenceNode: HTMLElement) => VisibleDimensionsT;
|
|
6
|
+
export declare const getIndexById: (children: React.ReactElement<DSTabPropsWithDefaultT>[], activeId?: string | undefined) => number;
|
|
7
|
+
export declare const getIdByIndex: (children: React.ReactElement<DSTabPropsWithDefaultT>[], index: number) => string;
|
|
8
|
+
export declare const shouldHaveLeftGradient: (scrollLeft: number) => boolean;
|
|
9
|
+
export declare const shouldHaveRightGradient: (scrollLeft: number, clientWidth: number, scrollWidth: number) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-tabs",
|
|
3
|
-
"version": "2.3.0-alpha.
|
|
3
|
+
"version": "2.3.0-alpha.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Tabs",
|
|
6
6
|
"files": [
|
|
@@ -125,11 +125,11 @@
|
|
|
125
125
|
},
|
|
126
126
|
"author": "ICE MT",
|
|
127
127
|
"dependencies": {
|
|
128
|
-
"@elliemae/ds-button": "2.3.0-alpha.
|
|
129
|
-
"@elliemae/ds-icon": "2.3.0-alpha.
|
|
130
|
-
"@elliemae/ds-icons": "2.3.0-alpha.
|
|
131
|
-
"@elliemae/ds-props-helpers": "2.3.0-alpha.
|
|
132
|
-
"@elliemae/ds-system": "2.3.0-alpha.
|
|
128
|
+
"@elliemae/ds-button": "2.3.0-alpha.9",
|
|
129
|
+
"@elliemae/ds-icon": "2.3.0-alpha.9",
|
|
130
|
+
"@elliemae/ds-icons": "2.3.0-alpha.9",
|
|
131
|
+
"@elliemae/ds-props-helpers": "2.3.0-alpha.9",
|
|
132
|
+
"@elliemae/ds-system": "2.3.0-alpha.9",
|
|
133
133
|
"@react-hook/resize-observer": "~1.2.5",
|
|
134
134
|
"prop-types": "~15.7.2",
|
|
135
135
|
"react-desc": "~4.1.3",
|