react-bootstrap 1.2.0 → 1.4.0
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/README.md +1 -1
- package/cjs/AccordionCollapse.js +9 -3
- package/cjs/Alert.d.ts +2 -2
- package/cjs/Button.d.ts +2 -1
- package/cjs/Button.js +1 -1
- package/cjs/Card.d.ts +8 -8
- package/cjs/CardColumns.d.ts +1 -1
- package/cjs/CardDeck.d.ts +1 -1
- package/cjs/CardGroup.d.ts +1 -1
- package/cjs/Carousel.d.ts +1 -1
- package/cjs/Carousel.js +22 -4
- package/cjs/CarouselCaption.d.ts +1 -1
- package/cjs/CarouselItem.d.ts +7 -2
- package/cjs/CarouselItem.js +25 -2
- package/cjs/Dropdown.d.ts +4 -2
- package/cjs/Dropdown.js +4 -0
- package/cjs/DropdownButton.d.ts +3 -2
- package/cjs/DropdownButton.js +16 -3
- package/cjs/DropdownItem.js +3 -2
- package/cjs/DropdownMenu.d.ts +24 -3
- package/cjs/DropdownMenu.js +47 -9
- package/cjs/DropdownToggle.js +2 -3
- package/cjs/Fade.d.ts +6 -3
- package/cjs/Figure.d.ts +2 -2
- package/cjs/FigureCaption.d.ts +1 -1
- package/cjs/Form.d.ts +4 -4
- package/cjs/Form.js +12 -12
- package/cjs/FormCheck.d.ts +1 -3
- package/cjs/FormCheck.js +1 -1
- package/cjs/FormFile.js +2 -0
- package/cjs/FormLabel.js +1 -1
- package/cjs/InputGroup.d.ts +4 -3
- package/cjs/ListGroupItem.js +2 -1
- package/cjs/Media.d.ts +1 -1
- package/cjs/Modal.d.ts +1 -0
- package/cjs/Modal.js +4 -2
- package/cjs/ModalBody.d.ts +1 -1
- package/cjs/ModalDialog.d.ts +2 -1
- package/cjs/ModalDialog.js +3 -2
- package/cjs/ModalFooter.d.ts +1 -1
- package/cjs/ModalTitle.d.ts +1 -1
- package/cjs/NavContext.js +1 -0
- package/cjs/NavDropdown.d.ts +4 -3
- package/cjs/NavDropdown.js +1 -0
- package/cjs/Navbar.d.ts +1 -1
- package/cjs/Overlay.d.ts +6 -5
- package/cjs/Overlay.js +8 -6
- package/cjs/OverlayTrigger.d.ts +5 -2
- package/cjs/OverlayTrigger.js +29 -50
- package/cjs/PageItem.d.ts +3 -2
- package/cjs/Popover.d.ts +2 -5
- package/cjs/Popover.js +1 -6
- package/cjs/ProgressBar.d.ts +1 -2
- package/cjs/SafeAnchor.d.ts +1 -3
- package/cjs/Spinner.d.ts +1 -1
- package/cjs/SplitButton.d.ts +4 -1
- package/cjs/SplitButton.js +15 -2
- package/cjs/TabContainer.d.ts +1 -1
- package/cjs/TabPane.d.ts +0 -1
- package/cjs/Tabs.d.ts +1 -1
- package/cjs/ThemeProvider.d.ts +1 -1
- package/cjs/Toast.d.ts +1 -1
- package/cjs/ToastBody.d.ts +1 -1
- package/cjs/ToggleButton.d.ts +2 -2
- package/cjs/ToggleButtonGroup.d.ts +4 -3
- package/cjs/ToggleButtonGroup.js +2 -1
- package/cjs/Tooltip.d.ts +4 -7
- package/cjs/helpers.d.ts +3 -3
- package/cjs/index.d.ts +1 -0
- package/cjs/usePopperMarginModifiers.d.ts +4 -1
- package/cjs/usePopperMarginModifiers.js +41 -5
- package/dist/react-bootstrap.js +757 -484
- package/dist/react-bootstrap.min.js +2 -2
- package/esm/AccordionCollapse.js +8 -3
- package/esm/Alert.d.ts +2 -2
- package/esm/Button.d.ts +2 -1
- package/esm/Button.js +1 -1
- package/esm/Card.d.ts +8 -8
- package/esm/CardColumns.d.ts +1 -1
- package/esm/CardDeck.d.ts +1 -1
- package/esm/CardGroup.d.ts +1 -1
- package/esm/Carousel.d.ts +1 -1
- package/esm/Carousel.js +23 -5
- package/esm/CarouselCaption.d.ts +1 -1
- package/esm/CarouselItem.d.ts +7 -2
- package/esm/CarouselItem.js +22 -2
- package/esm/Dropdown.d.ts +4 -2
- package/esm/Dropdown.js +4 -0
- package/esm/DropdownButton.d.ts +3 -2
- package/esm/DropdownButton.js +14 -3
- package/esm/DropdownItem.js +3 -2
- package/esm/DropdownMenu.d.ts +24 -3
- package/esm/DropdownMenu.js +40 -6
- package/esm/DropdownToggle.js +2 -3
- package/esm/Fade.d.ts +6 -3
- package/esm/Figure.d.ts +2 -2
- package/esm/FigureCaption.d.ts +1 -1
- package/esm/Form.d.ts +4 -4
- package/esm/Form.js +12 -12
- package/esm/FormCheck.d.ts +1 -3
- package/esm/FormCheck.js +1 -1
- package/esm/FormFile.js +2 -0
- package/esm/FormLabel.js +1 -1
- package/esm/InputGroup.d.ts +4 -3
- package/esm/ListGroupItem.js +2 -1
- package/esm/Media.d.ts +1 -1
- package/esm/Modal.d.ts +1 -0
- package/esm/Modal.js +4 -2
- package/esm/ModalBody.d.ts +1 -1
- package/esm/ModalDialog.d.ts +2 -1
- package/esm/ModalDialog.js +3 -2
- package/esm/ModalFooter.d.ts +1 -1
- package/esm/ModalTitle.d.ts +1 -1
- package/esm/NavContext.js +1 -0
- package/esm/NavDropdown.d.ts +4 -3
- package/esm/NavDropdown.js +1 -0
- package/esm/Navbar.d.ts +1 -1
- package/esm/Overlay.d.ts +6 -5
- package/esm/Overlay.js +8 -6
- package/esm/OverlayTrigger.d.ts +5 -2
- package/esm/OverlayTrigger.js +31 -50
- package/esm/PageItem.d.ts +3 -2
- package/esm/Popover.d.ts +2 -5
- package/esm/Popover.js +1 -6
- package/esm/ProgressBar.d.ts +1 -2
- package/esm/SafeAnchor.d.ts +1 -3
- package/esm/Spinner.d.ts +1 -1
- package/esm/SplitButton.d.ts +4 -1
- package/esm/SplitButton.js +14 -2
- package/esm/TabContainer.d.ts +1 -1
- package/esm/TabContext.js +1 -3
- package/esm/TabPane.d.ts +0 -1
- package/esm/Tabs.d.ts +1 -1
- package/esm/ThemeProvider.d.ts +1 -1
- package/esm/Toast.d.ts +1 -1
- package/esm/ToastBody.d.ts +1 -1
- package/esm/ToggleButton.d.ts +2 -2
- package/esm/ToggleButtonGroup.d.ts +4 -3
- package/esm/ToggleButtonGroup.js +2 -1
- package/esm/Tooltip.d.ts +4 -7
- package/esm/helpers.d.ts +3 -3
- package/esm/index.d.ts +1 -0
- package/esm/usePopperMarginModifiers.d.ts +4 -1
- package/esm/usePopperMarginModifiers.js +40 -5
- package/package.json +26 -26
package/esm/SplitButton.js
CHANGED
|
@@ -5,6 +5,7 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
import Button from './Button';
|
|
6
6
|
import ButtonGroup from './ButtonGroup';
|
|
7
7
|
import Dropdown from './Dropdown';
|
|
8
|
+
import { alignPropType } from './DropdownMenu';
|
|
8
9
|
var propTypes = {
|
|
9
10
|
/**
|
|
10
11
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
@@ -36,6 +37,15 @@ var propTypes = {
|
|
|
36
37
|
/** Disables both Buttons */
|
|
37
38
|
disabled: PropTypes.bool,
|
|
38
39
|
|
|
40
|
+
/**
|
|
41
|
+
* Aligns the dropdown menu responsively.
|
|
42
|
+
*
|
|
43
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
44
|
+
*
|
|
45
|
+
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
46
|
+
*/
|
|
47
|
+
menuAlign: alignPropType,
|
|
48
|
+
|
|
39
49
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
40
50
|
menuRole: PropTypes.string,
|
|
41
51
|
|
|
@@ -45,7 +55,7 @@ var propTypes = {
|
|
|
45
55
|
/**
|
|
46
56
|
* Which event when fired outside the component will cause it to be closed.
|
|
47
57
|
*
|
|
48
|
-
* _see [DropdownMenu](#menu-props) for more details_
|
|
58
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
49
59
|
*/
|
|
50
60
|
rootCloseEvent: PropTypes.string,
|
|
51
61
|
|
|
@@ -74,10 +84,11 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
74
84
|
onClick = _ref.onClick,
|
|
75
85
|
href = _ref.href,
|
|
76
86
|
target = _ref.target,
|
|
87
|
+
menuAlign = _ref.menuAlign,
|
|
77
88
|
menuRole = _ref.menuRole,
|
|
78
89
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
79
90
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
80
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
91
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
81
92
|
|
|
82
93
|
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
83
94
|
ref: ref
|
|
@@ -102,6 +113,7 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
102
113
|
}, /*#__PURE__*/React.createElement("span", {
|
|
103
114
|
className: "sr-only"
|
|
104
115
|
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown.Menu, {
|
|
116
|
+
align: menuAlign,
|
|
105
117
|
role: menuRole,
|
|
106
118
|
renderOnMount: renderMenuOnMount,
|
|
107
119
|
rootCloseEvent: rootCloseEvent
|
package/esm/TabContainer.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { SelectCallback, TransitionType } from './helpers';
|
|
4
|
-
export interface TabContainerProps extends React.PropsWithChildren<
|
|
4
|
+
export interface TabContainerProps extends React.PropsWithChildren<unknown> {
|
|
5
5
|
id?: string;
|
|
6
6
|
transition?: TransitionType;
|
|
7
7
|
mountOnEnter?: boolean;
|
package/esm/TabContext.js
CHANGED
package/esm/TabPane.d.ts
CHANGED
package/esm/Tabs.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SelectCallback, TransitionType } from './helpers';
|
|
3
|
-
export interface TabsProps extends React.PropsWithChildren<
|
|
3
|
+
export interface TabsProps extends React.PropsWithChildren<unknown> {
|
|
4
4
|
activeKey?: unknown;
|
|
5
5
|
defaultActiveKey?: unknown;
|
|
6
6
|
onSelect?: SelectCallback;
|
package/esm/ThemeProvider.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export interface ThemeProviderProps {
|
|
4
|
-
prefixes:
|
|
4
|
+
prefixes: Record<string, unknown>;
|
|
5
5
|
}
|
|
6
6
|
declare const Consumer: React.Consumer<{}>;
|
|
7
7
|
declare function ThemeProvider({ prefixes, children }: {
|
package/esm/Toast.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface ToastProps extends BsPrefixPropsWithChildren {
|
|
|
9
9
|
transition?: TransitionComponent;
|
|
10
10
|
}
|
|
11
11
|
declare const _default: BsPrefixRefForwardingComponent<"div", ToastProps> & {
|
|
12
|
-
Body: BsPrefixRefForwardingComponent<"div",
|
|
12
|
+
Body: BsPrefixRefForwardingComponent<"div", unknown>;
|
|
13
13
|
Header: ToastHeader;
|
|
14
14
|
};
|
|
15
15
|
export default _default;
|
package/esm/ToastBody.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("./helpers").BsPrefixRefForwardingComponent<"div",
|
|
1
|
+
declare const _default: import("./helpers").BsPrefixRefForwardingComponent<"div", unknown>;
|
|
2
2
|
export default _default;
|
package/esm/ToggleButton.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ButtonProps } from './Button';
|
|
3
3
|
import { BsPrefixAndClassNameOnlyProps, BsPrefixComponentClass } from './helpers';
|
|
4
|
-
export interface ToggleButtonProps extends React.PropsWithChildren<BsPrefixAndClassNameOnlyProps> {
|
|
4
|
+
export interface ToggleButtonProps extends ButtonProps, React.PropsWithChildren<BsPrefixAndClassNameOnlyProps> {
|
|
5
5
|
type?: 'checkbox' | 'radio';
|
|
6
6
|
name?: string;
|
|
7
7
|
checked?: boolean;
|
|
@@ -10,6 +10,6 @@ export interface ToggleButtonProps extends React.PropsWithChildren<BsPrefixAndCl
|
|
|
10
10
|
value: unknown;
|
|
11
11
|
inputRef?: React.LegacyRef<'input'>;
|
|
12
12
|
}
|
|
13
|
-
declare type ToggleButton = BsPrefixComponentClass<'button',
|
|
13
|
+
declare type ToggleButton = BsPrefixComponentClass<'button', ToggleButtonProps>;
|
|
14
14
|
declare const ToggleButton: React.ForwardRefExoticComponent<ToggleButtonProps & React.RefAttributes<any>>;
|
|
15
15
|
export default ToggleButton;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { ButtonGroupProps } from './ButtonGroup';
|
|
1
2
|
import ToggleButton from './ToggleButton';
|
|
2
|
-
import {
|
|
3
|
-
export interface ToggleButtonRadioProps<T> extends
|
|
3
|
+
import { BsPrefixRefForwardingComponent } from './helpers';
|
|
4
|
+
export interface ToggleButtonRadioProps<T> extends Omit<ButtonGroupProps, 'toggle'> {
|
|
4
5
|
type?: 'radio';
|
|
5
6
|
name: string;
|
|
6
7
|
value?: T;
|
|
7
8
|
defaultValue?: T;
|
|
8
9
|
onChange?: (value: T, event: any) => void;
|
|
9
10
|
}
|
|
10
|
-
export interface ToggleButtonCheckboxProps<T> extends
|
|
11
|
+
export interface ToggleButtonCheckboxProps<T> extends Omit<ButtonGroupProps, 'toggle'> {
|
|
11
12
|
type: 'checkbox';
|
|
12
13
|
name?: string;
|
|
13
14
|
value?: T[];
|
package/esm/ToggleButtonGroup.js
CHANGED
|
@@ -8,7 +8,8 @@ import { map } from './ElementChildren';
|
|
|
8
8
|
import ButtonGroup from './ButtonGroup';
|
|
9
9
|
import ToggleButton from './ToggleButton';
|
|
10
10
|
var defaultProps = {
|
|
11
|
-
type: 'radio'
|
|
11
|
+
type: 'radio',
|
|
12
|
+
vertical: false
|
|
12
13
|
};
|
|
13
14
|
var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
14
15
|
var _useUncontrolled = useUncontrolled(props, {
|
package/esm/Tooltip.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ArrowProps, Placement } from './Overlay';
|
|
2
3
|
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
export interface TooltipProps extends BsPrefixPropsWithChildren {
|
|
4
|
-
style?: any;
|
|
4
|
+
export interface TooltipProps extends React.HTMLAttributes<HTMLDivElement>, BsPrefixPropsWithChildren {
|
|
5
5
|
id: string;
|
|
6
6
|
placement?: Placement;
|
|
7
|
-
arrowProps?:
|
|
8
|
-
ref: any;
|
|
9
|
-
style: object;
|
|
10
|
-
};
|
|
7
|
+
arrowProps?: ArrowProps;
|
|
11
8
|
show?: boolean;
|
|
12
9
|
popper?: any;
|
|
13
10
|
}
|
package/esm/helpers.d.ts
CHANGED
|
@@ -12,16 +12,16 @@ export interface BsPrefixProps<As extends React.ElementType = React.ElementType>
|
|
|
12
12
|
as?: As;
|
|
13
13
|
}
|
|
14
14
|
export declare type BsPrefixPropsWithChildren<As extends React.ElementType = React.ElementType> = React.PropsWithChildren<BsPrefixProps<As>>;
|
|
15
|
-
export interface BsPrefixRefForwardingComponent<TInitial extends React.ElementType, P =
|
|
15
|
+
export interface BsPrefixRefForwardingComponent<TInitial extends React.ElementType, P = unknown> {
|
|
16
16
|
<As extends React.ElementType = TInitial>(props: React.PropsWithChildren<ReplaceProps<As, BsPrefixProps<As> & P>>, context?: any): React.ReactElement | null;
|
|
17
17
|
propTypes?: any;
|
|
18
18
|
contextTypes?: any;
|
|
19
19
|
defaultProps?: Partial<P>;
|
|
20
20
|
displayName?: string;
|
|
21
21
|
}
|
|
22
|
-
export declare class BsPrefixComponent<As extends React.ElementType, P =
|
|
22
|
+
export declare class BsPrefixComponent<As extends React.ElementType, P = unknown> extends React.Component<ReplaceProps<As, BsPrefixProps<As> & P>> {
|
|
23
23
|
}
|
|
24
|
-
export declare type BsPrefixComponentClass<As extends React.ElementType, P =
|
|
24
|
+
export declare type BsPrefixComponentClass<As extends React.ElementType, P = unknown> = React.ComponentClass<ReplaceProps<As, BsPrefixProps<As> & P>>;
|
|
25
25
|
export declare type SelectCallback = (eventKey: string | null, e: React.SyntheticEvent<unknown>) => void;
|
|
26
26
|
export interface TransitionCallbacks {
|
|
27
27
|
onEnter?(node: HTMLElement): any;
|
package/esm/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export { default as CardGroup } from './CardGroup';
|
|
|
29
29
|
export { default as Carousel } from './Carousel';
|
|
30
30
|
export type { CarouselProps } from './Carousel';
|
|
31
31
|
export { default as CarouselItem } from './CarouselItem';
|
|
32
|
+
export type { CarouselItemProps } from './CarouselItem';
|
|
32
33
|
export { default as CloseButton } from './CloseButton';
|
|
33
34
|
export type { CloseButtonProps } from './CloseButton';
|
|
34
35
|
export { default as Col } from './Col';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useCallback, useMemo, useRef } from 'react';
|
|
2
2
|
import hasClass from 'dom-helpers/hasClass';
|
|
3
|
+
import { useBootstrapPrefix } from './ThemeProvider';
|
|
3
4
|
|
|
4
5
|
function getMargins(element) {
|
|
5
6
|
var styles = window.getComputedStyle(element);
|
|
@@ -18,13 +19,15 @@ function getMargins(element) {
|
|
|
18
19
|
export default function usePopperMarginModifiers() {
|
|
19
20
|
var overlayRef = useRef(null);
|
|
20
21
|
var margins = useRef(null);
|
|
22
|
+
var popoverClass = useBootstrapPrefix(undefined, 'popover');
|
|
23
|
+
var dropdownMenuClass = useBootstrapPrefix(undefined, 'dropdown-menu');
|
|
21
24
|
var callback = useCallback(function (overlay) {
|
|
22
|
-
if (!overlay || !(hasClass(overlay,
|
|
25
|
+
if (!overlay || !(hasClass(overlay, popoverClass) || hasClass(overlay, dropdownMenuClass))) return;
|
|
23
26
|
margins.current = getMargins(overlay);
|
|
24
27
|
overlay.style.margin = '0';
|
|
25
28
|
overlayRef.current = overlay;
|
|
26
|
-
}, []);
|
|
27
|
-
var
|
|
29
|
+
}, [popoverClass, dropdownMenuClass]);
|
|
30
|
+
var offset = useMemo(function () {
|
|
28
31
|
return {
|
|
29
32
|
name: 'offset',
|
|
30
33
|
options: {
|
|
@@ -56,6 +59,38 @@ export default function usePopperMarginModifiers() {
|
|
|
56
59
|
}
|
|
57
60
|
}
|
|
58
61
|
};
|
|
59
|
-
}, [margins]);
|
|
60
|
-
|
|
62
|
+
}, [margins]); // Converts popover arrow margin to arrow modifier padding
|
|
63
|
+
|
|
64
|
+
var popoverArrowMargins = useMemo(function () {
|
|
65
|
+
return {
|
|
66
|
+
name: 'popoverArrowMargins',
|
|
67
|
+
enabled: true,
|
|
68
|
+
phase: 'main',
|
|
69
|
+
requiresIfExists: ['arrow'],
|
|
70
|
+
effect: function effect(_ref2) {
|
|
71
|
+
var state = _ref2.state;
|
|
72
|
+
|
|
73
|
+
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current, popoverClass) || !state.modifiersData['arrow#persistent']) {
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
var _getMargins = getMargins(state.elements.arrow),
|
|
78
|
+
top = _getMargins.top,
|
|
79
|
+
right = _getMargins.right;
|
|
80
|
+
|
|
81
|
+
var padding = top || right;
|
|
82
|
+
state.modifiersData['arrow#persistent'].padding = {
|
|
83
|
+
top: padding,
|
|
84
|
+
left: padding,
|
|
85
|
+
right: padding,
|
|
86
|
+
bottom: padding
|
|
87
|
+
};
|
|
88
|
+
state.elements.arrow.style.margin = '0';
|
|
89
|
+
return function () {
|
|
90
|
+
if (state.elements.arrow) state.elements.arrow.style.margin = '';
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
}, [popoverClass]);
|
|
95
|
+
return [callback, [offset, popoverArrowMargins]];
|
|
61
96
|
}
|
package/package.json
CHANGED
|
@@ -1,16 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-bootstrap",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Bootstrap 4 components built with React",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"ecosystem-react",
|
|
8
|
+
"react-component",
|
|
9
|
+
"bootstrap"
|
|
10
|
+
],
|
|
9
11
|
"homepage": "https://react-bootstrap.github.io/",
|
|
10
|
-
"
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/react-bootstrap/react-bootstrap/issues"
|
|
14
|
+
},
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"author": {
|
|
17
|
+
"name": "Stephen J. Collings",
|
|
18
|
+
"email": "stevoland@gmail.com"
|
|
19
|
+
},
|
|
11
20
|
"main": "cjs/index.js",
|
|
12
21
|
"module": "esm/index.js",
|
|
13
22
|
"types": "esm/index.d.ts",
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/react-bootstrap/react-bootstrap.git"
|
|
27
|
+
},
|
|
14
28
|
"husky": {
|
|
15
29
|
"hooks": {
|
|
16
30
|
"pre-commit": "lint-staged"
|
|
@@ -23,21 +37,6 @@
|
|
|
23
37
|
"singleQuote": true,
|
|
24
38
|
"trailingComma": "all"
|
|
25
39
|
},
|
|
26
|
-
"keywords": [
|
|
27
|
-
"react",
|
|
28
|
-
"ecosystem-react",
|
|
29
|
-
"react-component",
|
|
30
|
-
"bootstrap"
|
|
31
|
-
],
|
|
32
|
-
"author": {
|
|
33
|
-
"name": "Stephen J. Collings",
|
|
34
|
-
"email": "stevoland@gmail.com"
|
|
35
|
-
},
|
|
36
|
-
"license": "MIT",
|
|
37
|
-
"peerDependencies": {
|
|
38
|
-
"react": ">=16.8.0",
|
|
39
|
-
"react-dom": ">=16.8.0"
|
|
40
|
-
},
|
|
41
40
|
"dependencies": {
|
|
42
41
|
"@babel/runtime": "^7.4.2",
|
|
43
42
|
"@restart/context": "^2.1.4",
|
|
@@ -53,18 +52,19 @@
|
|
|
53
52
|
"invariant": "^2.2.4",
|
|
54
53
|
"prop-types": "^15.7.2",
|
|
55
54
|
"prop-types-extra": "^1.1.0",
|
|
56
|
-
"react-overlays": "^
|
|
57
|
-
"react-transition-group": "^4.
|
|
55
|
+
"react-overlays": "^4.1.0",
|
|
56
|
+
"react-transition-group": "^4.4.1",
|
|
58
57
|
"uncontrollable": "^7.0.0",
|
|
59
58
|
"warning": "^4.0.3"
|
|
60
59
|
},
|
|
60
|
+
"peerDependencies": {
|
|
61
|
+
"react": ">=16.8.0",
|
|
62
|
+
"react-dom": ">=16.8.0"
|
|
63
|
+
},
|
|
61
64
|
"publishConfig": {
|
|
62
65
|
"directory": "lib"
|
|
63
66
|
},
|
|
64
67
|
"release": {
|
|
65
68
|
"conventionalCommits": true
|
|
66
|
-
},
|
|
67
|
-
"bugs": {
|
|
68
|
-
"url": "https://github.com/react-bootstrap/react-bootstrap/issues"
|
|
69
69
|
}
|
|
70
70
|
}
|