react-bootstrap 2.10.6 → 2.10.8
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/cjs/AccordionCollapse.d.ts +2 -0
- package/cjs/Dropdown.d.ts +1 -1
- package/cjs/Navbar.d.ts +1 -1
- package/cjs/Ratio.d.ts +1 -1
- package/cjs/Tabs.d.ts +1 -67
- package/dist/react-bootstrap.js +227 -50
- package/dist/react-bootstrap.min.js +1 -1
- package/esm/AccordionCollapse.d.ts +2 -0
- package/esm/Dropdown.d.ts +1 -1
- package/esm/Navbar.d.ts +1 -1
- package/esm/Ratio.d.ts +1 -1
- package/esm/Tabs.d.ts +1 -67
- package/package.json +3 -2
|
@@ -2,6 +2,8 @@ import { CollapseProps } from './Collapse';
|
|
|
2
2
|
import { BsPrefixRefForwardingComponent, BsPrefixProps } from './helpers';
|
|
3
3
|
export interface AccordionCollapseProps extends BsPrefixProps, CollapseProps {
|
|
4
4
|
eventKey: string;
|
|
5
|
+
/** @default 'accordion-collapse' */
|
|
6
|
+
bsPrefix?: string;
|
|
5
7
|
}
|
|
6
8
|
/**
|
|
7
9
|
* This component accepts all of [`Collapse`'s props](/docs/utilities/transitions#collapse-1).
|
package/cjs/Dropdown.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { DropdownProps as BaseDropdownProps } from '@restart/ui/Dropdown';
|
|
|
3
3
|
import { DropDirection } from './DropdownContext';
|
|
4
4
|
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
5
5
|
import { AlignType } from './types';
|
|
6
|
-
export interface DropdownProps extends BaseDropdownProps, BsPrefixProps, Omit<React.HTMLAttributes<HTMLElement>, 'onSelect' | 'children'> {
|
|
6
|
+
export interface DropdownProps extends BaseDropdownProps, BsPrefixProps, Omit<React.HTMLAttributes<HTMLElement>, 'onSelect' | 'children' | 'onToggle'> {
|
|
7
7
|
drop?: DropDirection;
|
|
8
8
|
align?: AlignType;
|
|
9
9
|
focusFirstItemOnShow?: boolean | 'keyboard';
|
package/cjs/Navbar.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SelectCallback } from '@restart/ui/types';
|
|
3
3
|
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
4
|
-
export interface NavbarProps extends BsPrefixProps, Omit<React.HTMLAttributes<HTMLElement>, 'onSelect'> {
|
|
4
|
+
export interface NavbarProps extends BsPrefixProps, Omit<React.HTMLAttributes<HTMLElement>, 'onSelect' | 'onToggle'> {
|
|
5
5
|
variant?: 'light' | 'dark' | string;
|
|
6
6
|
expand?: boolean | string | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
7
7
|
bg?: string;
|
package/cjs/Ratio.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { BsPrefixProps } from './helpers';
|
|
3
3
|
export type AspectRatio = '1x1' | '4x3' | '16x9' | '21x9' | string;
|
|
4
4
|
export interface RatioProps extends BsPrefixProps, React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
children: React.
|
|
5
|
+
children: React.ReactElement | string | number;
|
|
6
6
|
aspectRatio?: AspectRatio | number;
|
|
7
7
|
}
|
|
8
8
|
declare const Ratio: React.ForwardRefExoticComponent<RatioProps & React.RefAttributes<HTMLDivElement>>;
|
package/cjs/Tabs.d.ts
CHANGED
|
@@ -1,75 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import { TabsProps as BaseTabsProps } from '@restart/ui/Tabs';
|
|
4
3
|
import { NavProps } from './Nav';
|
|
5
4
|
import { TransitionType } from './helpers';
|
|
6
5
|
export interface TabsProps extends Omit<BaseTabsProps, 'transition'>, Omit<React.HTMLAttributes<HTMLElement>, 'onSelect'>, NavProps {
|
|
7
6
|
transition?: TransitionType;
|
|
8
7
|
}
|
|
9
|
-
declare const Tabs:
|
|
10
|
-
(props: TabsProps): React.JSX.Element;
|
|
11
|
-
propTypes: {
|
|
12
|
-
/**
|
|
13
|
-
* Mark the Tab with a matching `eventKey` as active.
|
|
14
|
-
*
|
|
15
|
-
* @controllable onSelect
|
|
16
|
-
*/
|
|
17
|
-
activeKey: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
18
|
-
/** The default active key that is selected on start */
|
|
19
|
-
defaultActiveKey: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
20
|
-
/**
|
|
21
|
-
* Navigation style
|
|
22
|
-
*
|
|
23
|
-
* @type {('tabs'| 'pills' | 'underline')}
|
|
24
|
-
*/
|
|
25
|
-
variant: PropTypes.Requireable<string>;
|
|
26
|
-
/**
|
|
27
|
-
* Sets a default animation strategy for all children `<TabPane>`s.<tbcont
|
|
28
|
-
*
|
|
29
|
-
* Defaults to `<Fade>` animation, else use `false` to disable or a
|
|
30
|
-
* react-transition-group `<Transition/>` component.
|
|
31
|
-
*
|
|
32
|
-
* @type {Transition | false}
|
|
33
|
-
* @default {Fade}
|
|
34
|
-
*/
|
|
35
|
-
transition: PropTypes.Requireable<NonNullable<boolean | PropTypes.ReactComponentLike | null | undefined>>;
|
|
36
|
-
/**
|
|
37
|
-
* HTML id attribute, required if no `generateChildId` prop
|
|
38
|
-
* is specified.
|
|
39
|
-
*
|
|
40
|
-
* @type {string}
|
|
41
|
-
*/
|
|
42
|
-
id: PropTypes.Requireable<string>;
|
|
43
|
-
/**
|
|
44
|
-
* Callback fired when a Tab is selected.
|
|
45
|
-
*
|
|
46
|
-
* ```js
|
|
47
|
-
* function (
|
|
48
|
-
* Any eventKey,
|
|
49
|
-
* SyntheticEvent event?
|
|
50
|
-
* )
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
* @controllable activeKey
|
|
54
|
-
*/
|
|
55
|
-
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
56
|
-
/**
|
|
57
|
-
* Wait until the first "enter" transition to mount tabs (add them to the DOM)
|
|
58
|
-
*/
|
|
59
|
-
mountOnEnter: PropTypes.Requireable<boolean>;
|
|
60
|
-
/**
|
|
61
|
-
* Unmount tabs (remove it from the DOM) when it is no longer visible
|
|
62
|
-
*/
|
|
63
|
-
unmountOnExit: PropTypes.Requireable<boolean>;
|
|
64
|
-
/**
|
|
65
|
-
* Have all `Tabs`s proportionately fill all available width.
|
|
66
|
-
*/
|
|
67
|
-
fill: PropTypes.Requireable<boolean>;
|
|
68
|
-
/**
|
|
69
|
-
* Have all `Tab`s evenly fill all available width.
|
|
70
|
-
*/
|
|
71
|
-
justify: PropTypes.Requireable<boolean>;
|
|
72
|
-
};
|
|
73
|
-
displayName: string;
|
|
74
|
-
};
|
|
8
|
+
declare const Tabs: React.FC<TabsProps>;
|
|
75
9
|
export default Tabs;
|