File tree Expand file tree Collapse file tree 5 files changed +11
-12
lines changed Expand file tree Collapse file tree 5 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 1
1
import classNames from 'classnames' ;
2
2
import * as React from 'react' ;
3
3
import PropTypes from 'prop-types' ;
4
+ import { OverlayArrowProps } from '@restart/ui/Overlay' ;
4
5
import { useBootstrapPrefix , useIsRTL } from './ThemeProvider' ;
5
6
import PopoverHeader from './PopoverHeader' ;
6
7
import PopoverBody from './PopoverBody' ;
7
- import { ArrowProps , Placement } from './types' ;
8
+ import { Placement } from './types' ;
8
9
import { BsPrefixProps , getOverlayDirection } from './helpers' ;
9
10
10
11
export interface PopoverProps
11
12
extends React . HTMLAttributes < HTMLDivElement > ,
12
13
BsPrefixProps {
13
14
placement ?: Placement ;
14
15
title ?: string ;
15
- arrowProps ?: ArrowProps ;
16
+ arrowProps ?: Partial < OverlayArrowProps > ;
16
17
body ?: boolean ;
17
18
popper ?: any ;
18
19
show ?: boolean ;
Original file line number Diff line number Diff line change 1
1
import PropTypes from 'prop-types' ;
2
2
import * as React from 'react' ;
3
- import Tabs from '@restart/ui/Tabs ' ;
3
+ import TabContainer from './TabContainer ' ;
4
4
import TabContent from './TabContent' ;
5
5
import TabPane , { TabPaneProps } from './TabPane' ;
6
6
@@ -43,7 +43,7 @@ const Tab: React.FC<TabProps> = () => {
43
43
Tab . propTypes = propTypes ;
44
44
45
45
export default Object . assign ( Tab , {
46
- Container : Tabs ,
46
+ Container : TabContainer ,
47
47
Content : TabContent ,
48
48
Pane : TabPane ,
49
49
} ) ;
Original file line number Diff line number Diff line change 1
1
import classNames from 'classnames' ;
2
2
import * as React from 'react' ;
3
3
import PropTypes from 'prop-types' ;
4
+ import { OverlayArrowProps } from '@restart/ui/Overlay' ;
4
5
import { useBootstrapPrefix , useIsRTL } from './ThemeProvider' ;
5
- import { ArrowProps , Placement } from './types' ;
6
+ import { Placement } from './types' ;
6
7
import { BsPrefixProps , getOverlayDirection } from './helpers' ;
7
8
8
9
export interface TooltipProps
9
10
extends React . HTMLAttributes < HTMLDivElement > ,
10
11
BsPrefixProps {
11
12
placement ?: Placement ;
12
- arrowProps ?: ArrowProps ;
13
+ arrowProps ?: Partial < OverlayArrowProps > ;
13
14
show ?: boolean ;
14
15
popper ?: any ;
15
16
}
Original file line number Diff line number Diff line change @@ -35,11 +35,6 @@ export type Color =
35
35
36
36
export type Placement = import ( '@restart/ui/usePopper' ) . Placement ;
37
37
38
- export type ArrowProps = {
39
- ref : React . RefCallback < HTMLElement > ;
40
- style : React . CSSProperties ;
41
- } ;
42
-
43
38
export type AlignDirection = 'start' | 'end' ;
44
39
45
40
export type ResponsiveAlignProp =
Original file line number Diff line number Diff line change @@ -924,7 +924,9 @@ const MegaComponent = () => (
924
924
onToggle = { noop }
925
925
focusFirstItemOnShow = "keyboard"
926
926
navbar
927
- />
927
+ >
928
+ < Dropdown . Item />
929
+ </ SplitButton >
928
930
< Table
929
931
id = "id"
930
932
bordered
You can’t perform that action at this time.
0 commit comments