react-bootstrap 2.7.0 → 2.7.1
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/AccordionButton.js +1 -1
- package/cjs/Overlay.d.ts +1 -0
- package/cjs/Overlay.js +12 -4
- package/cjs/Popover.d.ts +1 -0
- package/cjs/Popover.js +12 -3
- package/cjs/Stack.js +2 -4
- package/cjs/Tooltip.d.ts +1 -0
- package/cjs/Tooltip.js +12 -3
- package/cjs/getInitialPopperStyles.d.ts +2 -0
- package/cjs/getInitialPopperStyles.js +14 -0
- package/cjs/types.d.ts +2 -1
- package/dist/react-bootstrap.js +64 -22
- package/dist/react-bootstrap.min.js +1 -1
- package/esm/AccordionButton.js +1 -1
- package/esm/Overlay.d.ts +1 -0
- package/esm/Overlay.js +13 -5
- package/esm/Popover.d.ts +1 -0
- package/esm/Popover.js +12 -3
- package/esm/Stack.js +2 -4
- package/esm/Tooltip.d.ts +1 -0
- package/esm/Tooltip.js +12 -3
- package/esm/getInitialPopperStyles.d.ts +2 -0
- package/esm/getInitialPopperStyles.js +9 -0
- package/esm/types.d.ts +2 -1
- package/getInitialPopperStyles/package.json +7 -0
- package/package.json +1 -1
- package/cjs/AbstractNav.d.ts +0 -15
- package/cjs/AbstractNavItem.d.ts +0 -19
- package/cjs/AccordionToggle.d.ts +0 -11
- package/cjs/CardColumns.d.ts +0 -2
- package/cjs/CardContext.d.ts +0 -6
- package/cjs/CardDeck.d.ts +0 -2
- package/cjs/FormFile.d.ts +0 -23
- package/cjs/FormFileInput.d.ts +0 -10
- package/cjs/FormFileLabel.d.ts +0 -7
- package/cjs/Jumbotron.d.ts +0 -7
- package/cjs/Media.d.ts +0 -8
- package/cjs/PopoverContent.d.ts +0 -5
- package/cjs/PopoverTitle.d.ts +0 -5
- package/cjs/ResponsiveEmbed.d.ts +0 -9
- package/cjs/SafeAnchor.d.ts +0 -17
- package/cjs/SelectableContext.d.ts +0 -5
- package/cjs/TabContext.d.ts +0 -12
- package/cjs/usePopperMarginModifiers.d.ts +0 -4
- package/esm/AbstractNav.d.ts +0 -15
- package/esm/AbstractNavItem.d.ts +0 -19
- package/esm/AccordionToggle.d.ts +0 -11
- package/esm/CardColumns.d.ts +0 -2
- package/esm/CardContext.d.ts +0 -6
- package/esm/CardDeck.d.ts +0 -2
- package/esm/FormFile.d.ts +0 -23
- package/esm/FormFileInput.d.ts +0 -10
- package/esm/FormFileLabel.d.ts +0 -7
- package/esm/Jumbotron.d.ts +0 -7
- package/esm/Media.d.ts +0 -8
- package/esm/PopoverContent.d.ts +0 -5
- package/esm/PopoverTitle.d.ts +0 -5
- package/esm/ResponsiveEmbed.d.ts +0 -9
- package/esm/SafeAnchor.d.ts +0 -17
- package/esm/SelectableContext.d.ts +0 -5
- package/esm/TabContext.d.ts +0 -12
- package/esm/usePopperMarginModifiers.d.ts +0 -4
package/esm/AccordionButton.js
CHANGED
|
@@ -56,7 +56,7 @@ const AccordionButton = /*#__PURE__*/React.forwardRef(({
|
|
|
56
56
|
ref: ref,
|
|
57
57
|
onClick: accordionOnClick,
|
|
58
58
|
...props,
|
|
59
|
-
"aria-expanded": eventKey === activeEventKey,
|
|
59
|
+
"aria-expanded": Array.isArray(activeEventKey) ? activeEventKey.includes(eventKey) : eventKey === activeEventKey,
|
|
60
60
|
className: classNames(className, bsPrefix, !isAccordionItemSelected(activeEventKey, eventKey) && 'collapsed')
|
|
61
61
|
});
|
|
62
62
|
});
|
package/esm/Overlay.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export interface OverlayInjectedProps {
|
|
|
10
10
|
show: boolean;
|
|
11
11
|
placement: Placement | undefined;
|
|
12
12
|
popper: PopperRef;
|
|
13
|
+
hasDoneInitialMeasure?: boolean;
|
|
13
14
|
[prop: string]: any;
|
|
14
15
|
}
|
|
15
16
|
export type OverlayChildren = React.ReactElement<OverlayInjectedProps> | ((injected: OverlayInjectedProps) => React.ReactNode);
|
package/esm/Overlay.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { useRef } from 'react';
|
|
2
|
+
import { useEffect, useRef, useState } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import BaseOverlay from '@restart/ui/Overlay';
|
|
5
|
-
import useCallbackRef from '@restart/hooks/useCallbackRef';
|
|
6
5
|
import useEventCallback from '@restart/hooks/useEventCallback';
|
|
7
6
|
import useIsomorphicEffect from '@restart/hooks/useIsomorphicEffect';
|
|
8
7
|
import useMergedRefs from '@restart/hooks/useMergedRefs';
|
|
@@ -33,7 +32,7 @@ const Overlay = /*#__PURE__*/React.forwardRef(({
|
|
|
33
32
|
...outerProps
|
|
34
33
|
}, outerRef) => {
|
|
35
34
|
const popperRef = useRef({});
|
|
36
|
-
const [firstRenderedState, setFirstRenderedState] =
|
|
35
|
+
const [firstRenderedState, setFirstRenderedState] = useState(null);
|
|
37
36
|
const [ref, modifiers] = useOverlayOffset(outerProps.offset);
|
|
38
37
|
const mergedRef = useMergedRefs(outerRef, ref);
|
|
39
38
|
const actualTransition = transition === true ? Fade : transition || undefined;
|
|
@@ -46,6 +45,11 @@ const Overlay = /*#__PURE__*/React.forwardRef(({
|
|
|
46
45
|
popperRef.current.scheduleUpdate == null ? void 0 : popperRef.current.scheduleUpdate();
|
|
47
46
|
}
|
|
48
47
|
}, [firstRenderedState]);
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
if (!outerProps.show) {
|
|
50
|
+
setFirstRenderedState(null);
|
|
51
|
+
}
|
|
52
|
+
}, [outerProps.show]);
|
|
49
53
|
return /*#__PURE__*/_jsx(BaseOverlay, {
|
|
50
54
|
...outerProps,
|
|
51
55
|
ref: mergedRef,
|
|
@@ -68,8 +72,10 @@ const Overlay = /*#__PURE__*/React.forwardRef(({
|
|
|
68
72
|
state: popperObj == null ? void 0 : popperObj.state,
|
|
69
73
|
scheduleUpdate: popperObj == null ? void 0 : popperObj.update,
|
|
70
74
|
placement: updatedPlacement,
|
|
71
|
-
outOfBoundaries: (popperObj == null ? void 0 : (_popperObj$state = popperObj.state) == null ? void 0 : (_popperObj$state$modi = _popperObj$state.modifiersData.hide) == null ? void 0 : _popperObj$state$modi.isReferenceHidden) || false
|
|
75
|
+
outOfBoundaries: (popperObj == null ? void 0 : (_popperObj$state = popperObj.state) == null ? void 0 : (_popperObj$state$modi = _popperObj$state.modifiersData.hide) == null ? void 0 : _popperObj$state$modi.isReferenceHidden) || false,
|
|
76
|
+
strategy: popperConfig.strategy
|
|
72
77
|
});
|
|
78
|
+
const hasDoneInitialMeasure = !!firstRenderedState;
|
|
73
79
|
if (typeof overlay === 'function') return overlay({
|
|
74
80
|
...overlayProps,
|
|
75
81
|
placement: updatedPlacement,
|
|
@@ -78,13 +84,15 @@ const Overlay = /*#__PURE__*/React.forwardRef(({
|
|
|
78
84
|
className: 'show'
|
|
79
85
|
}),
|
|
80
86
|
popper,
|
|
81
|
-
arrowProps
|
|
87
|
+
arrowProps,
|
|
88
|
+
hasDoneInitialMeasure
|
|
82
89
|
});
|
|
83
90
|
return /*#__PURE__*/React.cloneElement(overlay, {
|
|
84
91
|
...overlayProps,
|
|
85
92
|
placement: updatedPlacement,
|
|
86
93
|
arrowProps,
|
|
87
94
|
popper,
|
|
95
|
+
hasDoneInitialMeasure,
|
|
88
96
|
className: classNames(overlay.props.className, !transition && show && 'show'),
|
|
89
97
|
style: {
|
|
90
98
|
...overlay.props.style,
|
package/esm/Popover.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export interface PopoverProps extends React.HTMLAttributes<HTMLDivElement>, BsPr
|
|
|
9
9
|
body?: boolean;
|
|
10
10
|
popper?: PopperRef;
|
|
11
11
|
show?: boolean;
|
|
12
|
+
hasDoneInitialMeasure?: boolean;
|
|
12
13
|
}
|
|
13
14
|
declare const _default: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>> & {
|
|
14
15
|
Header: import("./helpers").BsPrefixRefForwardingComponent<"div", unknown>;
|
package/esm/Popover.js
CHANGED
|
@@ -4,6 +4,7 @@ import { useBootstrapPrefix, useIsRTL } from './ThemeProvider';
|
|
|
4
4
|
import PopoverHeader from './PopoverHeader';
|
|
5
5
|
import PopoverBody from './PopoverBody';
|
|
6
6
|
import { getOverlayDirection } from './helpers';
|
|
7
|
+
import getInitialPopperStyles from './getInitialPopperStyles';
|
|
7
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
10
|
const defaultProps = {
|
|
@@ -17,18 +18,26 @@ const Popover = /*#__PURE__*/React.forwardRef(({
|
|
|
17
18
|
children,
|
|
18
19
|
body,
|
|
19
20
|
arrowProps,
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
hasDoneInitialMeasure,
|
|
22
|
+
popper,
|
|
23
|
+
show: _,
|
|
22
24
|
...props
|
|
23
25
|
}, ref) => {
|
|
24
26
|
const decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
25
27
|
const isRTL = useIsRTL();
|
|
26
28
|
const [primaryPlacement] = (placement == null ? void 0 : placement.split('-')) || [];
|
|
27
29
|
const bsDirection = getOverlayDirection(primaryPlacement, isRTL);
|
|
30
|
+
let computedStyle = style;
|
|
31
|
+
if (!hasDoneInitialMeasure) {
|
|
32
|
+
computedStyle = {
|
|
33
|
+
...style,
|
|
34
|
+
...getInitialPopperStyles(popper == null ? void 0 : popper.strategy)
|
|
35
|
+
};
|
|
36
|
+
}
|
|
28
37
|
return /*#__PURE__*/_jsxs("div", {
|
|
29
38
|
ref: ref,
|
|
30
39
|
role: "tooltip",
|
|
31
|
-
style:
|
|
40
|
+
style: computedStyle,
|
|
32
41
|
"x-placement": primaryPlacement,
|
|
33
42
|
className: classNames(className, decoratedBsPrefix, primaryPlacement && `bs-popover-${bsDirection}`),
|
|
34
43
|
...props,
|
package/esm/Stack.js
CHANGED
|
@@ -18,10 +18,8 @@ const Stack = /*#__PURE__*/React.forwardRef(({
|
|
|
18
18
|
...props,
|
|
19
19
|
ref: ref,
|
|
20
20
|
className: classNames(className, bsPrefix, ...createUtilityClassName({
|
|
21
|
-
gap
|
|
22
|
-
|
|
23
|
-
minBreakpoint
|
|
24
|
-
}))
|
|
21
|
+
gap
|
|
22
|
+
}, breakpoints, minBreakpoint))
|
|
25
23
|
});
|
|
26
24
|
});
|
|
27
25
|
Stack.displayName = 'Stack';
|
package/esm/Tooltip.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface TooltipProps extends React.HTMLAttributes<HTMLDivElement>, BsPr
|
|
|
7
7
|
arrowProps?: Partial<OverlayArrowProps>;
|
|
8
8
|
show?: boolean;
|
|
9
9
|
popper?: PopperRef;
|
|
10
|
+
hasDoneInitialMeasure?: boolean;
|
|
10
11
|
}
|
|
11
12
|
declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
13
|
export default Tooltip;
|
package/esm/Tooltip.js
CHANGED
|
@@ -2,6 +2,7 @@ import classNames from 'classnames';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useBootstrapPrefix, useIsRTL } from './ThemeProvider';
|
|
4
4
|
import { getOverlayDirection } from './helpers';
|
|
5
|
+
import getInitialPopperStyles from './getInitialPopperStyles';
|
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
8
|
const defaultProps = {
|
|
@@ -14,17 +15,25 @@ const Tooltip = /*#__PURE__*/React.forwardRef(({
|
|
|
14
15
|
style,
|
|
15
16
|
children,
|
|
16
17
|
arrowProps,
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
hasDoneInitialMeasure,
|
|
19
|
+
popper,
|
|
20
|
+
show: _,
|
|
19
21
|
...props
|
|
20
22
|
}, ref) => {
|
|
21
23
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
22
24
|
const isRTL = useIsRTL();
|
|
23
25
|
const [primaryPlacement] = (placement == null ? void 0 : placement.split('-')) || [];
|
|
24
26
|
const bsDirection = getOverlayDirection(primaryPlacement, isRTL);
|
|
27
|
+
let computedStyle = style;
|
|
28
|
+
if (!hasDoneInitialMeasure) {
|
|
29
|
+
computedStyle = {
|
|
30
|
+
...style,
|
|
31
|
+
...getInitialPopperStyles(popper == null ? void 0 : popper.strategy)
|
|
32
|
+
};
|
|
33
|
+
}
|
|
25
34
|
return /*#__PURE__*/_jsxs("div", {
|
|
26
35
|
ref: ref,
|
|
27
|
-
style:
|
|
36
|
+
style: computedStyle,
|
|
28
37
|
role: "tooltip",
|
|
29
38
|
"x-placement": primaryPlacement,
|
|
30
39
|
className: classNames(className, bsPrefix, `bs-tooltip-${bsDirection}`),
|
package/esm/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
import { State } from '@restart/ui/usePopper';
|
|
2
|
+
import { State, UsePopperOptions } from '@restart/ui/usePopper';
|
|
3
3
|
export type Variant = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string;
|
|
4
4
|
export type ButtonVariant = Variant | 'link' | 'outline-primary' | 'outline-secondary' | 'outline-success' | 'outline-danger' | 'outline-warning' | 'outline-info' | 'outline-dark' | 'outline-light';
|
|
5
5
|
export type Color = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | 'white' | 'muted';
|
|
@@ -25,4 +25,5 @@ export interface PopperRef {
|
|
|
25
25
|
outOfBoundaries: boolean;
|
|
26
26
|
placement: Placement | undefined;
|
|
27
27
|
scheduleUpdate?: () => void;
|
|
28
|
+
strategy: UsePopperOptions['strategy'];
|
|
28
29
|
}
|
package/package.json
CHANGED
package/cjs/AbstractNav.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
interface AbstractNavProps {
|
|
4
|
-
activeKey?: any;
|
|
5
|
-
as?: React.ElementType;
|
|
6
|
-
getControlledId?: any;
|
|
7
|
-
getControllerId?: any;
|
|
8
|
-
onKeyDown?: any;
|
|
9
|
-
onSelect?: any;
|
|
10
|
-
parentOnSelect?: any;
|
|
11
|
-
role?: string;
|
|
12
|
-
}
|
|
13
|
-
declare type AbstractNav = BsPrefixRefForwardingComponent<'ul', AbstractNavProps>;
|
|
14
|
-
declare const AbstractNav: AbstractNav;
|
|
15
|
-
export default AbstractNav;
|
package/cjs/AbstractNavItem.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
import { EventKey } from './types';
|
|
4
|
-
interface AbstractNavItemProps {
|
|
5
|
-
active?: boolean;
|
|
6
|
-
as: React.ElementType;
|
|
7
|
-
className?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
eventKey?: EventKey;
|
|
10
|
-
href?: string;
|
|
11
|
-
role?: string;
|
|
12
|
-
id?: string;
|
|
13
|
-
tabIndex?: number;
|
|
14
|
-
onClick?: (e: any) => void;
|
|
15
|
-
onSelect?: (navKey: string, e: any) => void;
|
|
16
|
-
}
|
|
17
|
-
declare type AbstractNavItem = BsPrefixRefForwardingComponent<'div', AbstractNavItemProps>;
|
|
18
|
-
declare const AbstractNavItem: AbstractNavItem;
|
|
19
|
-
export default AbstractNavItem;
|
package/cjs/AccordionToggle.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
declare type EventHandler = React.EventHandler<React.SyntheticEvent>;
|
|
4
|
-
export interface AccordionToggleProps extends BsPrefixPropsWithChildren {
|
|
5
|
-
eventKey: string;
|
|
6
|
-
onClick?: EventHandler;
|
|
7
|
-
}
|
|
8
|
-
declare type AccordionToggle = BsPrefixRefForwardingComponent<'div', AccordionToggleProps>;
|
|
9
|
-
export declare function useAccordionToggle(eventKey: string, onClick?: EventHandler): EventHandler;
|
|
10
|
-
declare const AccordionToggle: AccordionToggle;
|
|
11
|
-
export default AccordionToggle;
|
package/cjs/CardColumns.d.ts
DELETED
package/cjs/CardContext.d.ts
DELETED
package/cjs/CardDeck.d.ts
DELETED
package/cjs/FormFile.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import FormFileInput from './FormFileInput';
|
|
3
|
-
import FormFileLabel from './FormFileLabel';
|
|
4
|
-
import { BsCustomPrefixProps, BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
5
|
-
export interface FormFileProps extends BsPrefixPropsWithChildren, BsCustomPrefixProps, Pick<React.HTMLAttributes<HTMLElement>, 'style'> {
|
|
6
|
-
inputAs?: React.ElementType;
|
|
7
|
-
id?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
label?: React.ReactNode;
|
|
10
|
-
custom?: boolean;
|
|
11
|
-
isValid?: boolean;
|
|
12
|
-
isInvalid?: boolean;
|
|
13
|
-
feedback?: React.ReactNode;
|
|
14
|
-
feedbackTooltip?: boolean;
|
|
15
|
-
lang?: string;
|
|
16
|
-
'data-browse'?: any;
|
|
17
|
-
}
|
|
18
|
-
declare type FormFile = BsPrefixRefForwardingComponent<'input', FormFileProps> & {
|
|
19
|
-
Input: typeof FormFileInput;
|
|
20
|
-
Label: typeof FormFileLabel;
|
|
21
|
-
};
|
|
22
|
-
declare const FormFile: FormFile;
|
|
23
|
-
export default FormFile;
|
package/cjs/FormFileInput.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BsCustomPrefixProps, BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
export interface FormFileInputProps extends BsPrefixProps, BsCustomPrefixProps {
|
|
3
|
-
id?: string;
|
|
4
|
-
isValid?: boolean;
|
|
5
|
-
isInvalid?: boolean;
|
|
6
|
-
lang?: string;
|
|
7
|
-
}
|
|
8
|
-
declare type FormFileInput = BsPrefixRefForwardingComponent<'input', FormFileInputProps>;
|
|
9
|
-
declare const FormFileInput: FormFileInput;
|
|
10
|
-
export default FormFileInput;
|
package/cjs/FormFileLabel.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BsCustomPrefixProps, BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
export interface FormFileLabelProps extends BsPrefixProps, BsCustomPrefixProps {
|
|
3
|
-
htmlFor?: string;
|
|
4
|
-
}
|
|
5
|
-
declare type FormFileLabel = BsPrefixRefForwardingComponent<'label', FormFileLabelProps>;
|
|
6
|
-
declare const FormFileLabel: FormFileLabel;
|
|
7
|
-
export default FormFileLabel;
|
package/cjs/Jumbotron.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
export interface JumbotronProps extends BsPrefixProps {
|
|
3
|
-
fluid?: boolean;
|
|
4
|
-
}
|
|
5
|
-
declare type Jumbotron = BsPrefixRefForwardingComponent<'div', JumbotronProps>;
|
|
6
|
-
declare const Jumbotron: Jumbotron;
|
|
7
|
-
export default Jumbotron;
|
package/cjs/Media.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
declare const MediaBody: BsPrefixRefForwardingComponent<"div", unknown>;
|
|
3
|
-
declare type MediaProps = BsPrefixProps;
|
|
4
|
-
declare type Media = BsPrefixRefForwardingComponent<'div', MediaProps> & {
|
|
5
|
-
Body: typeof MediaBody;
|
|
6
|
-
};
|
|
7
|
-
declare const Media: Media;
|
|
8
|
-
export default Media;
|
package/cjs/PopoverContent.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
declare type PopoverContentProps = BsPrefixPropsWithChildren;
|
|
3
|
-
declare type PopoverContent = BsPrefixRefForwardingComponent<'div', PopoverContentProps>;
|
|
4
|
-
declare const PopoverContent: PopoverContent;
|
|
5
|
-
export default PopoverContent;
|
package/cjs/PopoverTitle.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
declare type PopoverTitleProps = BsPrefixPropsWithChildren;
|
|
3
|
-
declare type PopoverTitle = BsPrefixRefForwardingComponent<'div', PopoverTitleProps>;
|
|
4
|
-
declare const PopoverTitle: PopoverTitle;
|
|
5
|
-
export default PopoverTitle;
|
package/cjs/ResponsiveEmbed.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
export interface ResponsiveEmbedProps extends BsPrefixPropsWithChildren {
|
|
4
|
-
children: React.ReactChild;
|
|
5
|
-
aspectRatio?: '21by9' | '16by9' | '4by3' | '1by1';
|
|
6
|
-
}
|
|
7
|
-
declare type ResponsiveEmbed = BsPrefixRefForwardingComponent<'div', ResponsiveEmbedProps>;
|
|
8
|
-
declare const ResponsiveEmbed: ResponsiveEmbed;
|
|
9
|
-
export default ResponsiveEmbed;
|
package/cjs/SafeAnchor.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
export interface SafeAnchorProps extends React.HTMLAttributes<HTMLElement>, BsPrefixProps {
|
|
4
|
-
href?: string;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
tabIndex?: number;
|
|
7
|
-
}
|
|
8
|
-
declare type SafeAnchor = BsPrefixRefForwardingComponent<'a', SafeAnchorProps>;
|
|
9
|
-
/**
|
|
10
|
-
* There are situations due to browser quirks or Bootstrap CSS where
|
|
11
|
-
* an anchor tag is needed, when semantically a button tag is the
|
|
12
|
-
* better choice. SafeAnchor ensures that when an anchor is used like a
|
|
13
|
-
* button its accessible. It also emulates input `disabled` behavior for
|
|
14
|
-
* links, which is usually desirable for Buttons, NavItems, DropdownItems, etc.
|
|
15
|
-
*/
|
|
16
|
-
declare const SafeAnchor: SafeAnchor;
|
|
17
|
-
export default SafeAnchor;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type SelectableContextType = (key: string | null, event: any) => void;
|
|
3
|
-
declare const SelectableContext: React.Context<SelectableContextType | null>;
|
|
4
|
-
export declare const makeEventKey: (eventKey?: string | number | null | undefined, href?: string | null) => string | null;
|
|
5
|
-
export default SelectableContext;
|
package/cjs/TabContext.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface TabContextType {
|
|
3
|
-
onSelect: any;
|
|
4
|
-
activeKey: any;
|
|
5
|
-
transition: any;
|
|
6
|
-
mountOnEnter: boolean;
|
|
7
|
-
unmountOnExit: boolean;
|
|
8
|
-
getControlledId: (key: any) => any;
|
|
9
|
-
getControllerId: (key: any) => any;
|
|
10
|
-
}
|
|
11
|
-
declare const TabContext: React.Context<TabContextType | null>;
|
|
12
|
-
export default TabContext;
|
package/esm/AbstractNav.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
interface AbstractNavProps {
|
|
4
|
-
activeKey?: any;
|
|
5
|
-
as?: React.ElementType;
|
|
6
|
-
getControlledId?: any;
|
|
7
|
-
getControllerId?: any;
|
|
8
|
-
onKeyDown?: any;
|
|
9
|
-
onSelect?: any;
|
|
10
|
-
parentOnSelect?: any;
|
|
11
|
-
role?: string;
|
|
12
|
-
}
|
|
13
|
-
declare type AbstractNav = BsPrefixRefForwardingComponent<'ul', AbstractNavProps>;
|
|
14
|
-
declare const AbstractNav: AbstractNav;
|
|
15
|
-
export default AbstractNav;
|
package/esm/AbstractNavItem.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
import { EventKey } from './types';
|
|
4
|
-
interface AbstractNavItemProps {
|
|
5
|
-
active?: boolean;
|
|
6
|
-
as: React.ElementType;
|
|
7
|
-
className?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
eventKey?: EventKey;
|
|
10
|
-
href?: string;
|
|
11
|
-
role?: string;
|
|
12
|
-
id?: string;
|
|
13
|
-
tabIndex?: number;
|
|
14
|
-
onClick?: (e: any) => void;
|
|
15
|
-
onSelect?: (navKey: string, e: any) => void;
|
|
16
|
-
}
|
|
17
|
-
declare type AbstractNavItem = BsPrefixRefForwardingComponent<'div', AbstractNavItemProps>;
|
|
18
|
-
declare const AbstractNavItem: AbstractNavItem;
|
|
19
|
-
export default AbstractNavItem;
|
package/esm/AccordionToggle.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
declare type EventHandler = React.EventHandler<React.SyntheticEvent>;
|
|
4
|
-
export interface AccordionToggleProps extends BsPrefixPropsWithChildren {
|
|
5
|
-
eventKey: string;
|
|
6
|
-
onClick?: EventHandler;
|
|
7
|
-
}
|
|
8
|
-
declare type AccordionToggle = BsPrefixRefForwardingComponent<'div', AccordionToggleProps>;
|
|
9
|
-
export declare function useAccordionToggle(eventKey: string, onClick?: EventHandler): EventHandler;
|
|
10
|
-
declare const AccordionToggle: AccordionToggle;
|
|
11
|
-
export default AccordionToggle;
|
package/esm/CardColumns.d.ts
DELETED
package/esm/CardContext.d.ts
DELETED
package/esm/CardDeck.d.ts
DELETED
package/esm/FormFile.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import FormFileInput from './FormFileInput';
|
|
3
|
-
import FormFileLabel from './FormFileLabel';
|
|
4
|
-
import { BsCustomPrefixProps, BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
5
|
-
export interface FormFileProps extends BsPrefixPropsWithChildren, BsCustomPrefixProps, Pick<React.HTMLAttributes<HTMLElement>, 'style'> {
|
|
6
|
-
inputAs?: React.ElementType;
|
|
7
|
-
id?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
label?: React.ReactNode;
|
|
10
|
-
custom?: boolean;
|
|
11
|
-
isValid?: boolean;
|
|
12
|
-
isInvalid?: boolean;
|
|
13
|
-
feedback?: React.ReactNode;
|
|
14
|
-
feedbackTooltip?: boolean;
|
|
15
|
-
lang?: string;
|
|
16
|
-
'data-browse'?: any;
|
|
17
|
-
}
|
|
18
|
-
declare type FormFile = BsPrefixRefForwardingComponent<'input', FormFileProps> & {
|
|
19
|
-
Input: typeof FormFileInput;
|
|
20
|
-
Label: typeof FormFileLabel;
|
|
21
|
-
};
|
|
22
|
-
declare const FormFile: FormFile;
|
|
23
|
-
export default FormFile;
|
package/esm/FormFileInput.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BsCustomPrefixProps, BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
export interface FormFileInputProps extends BsPrefixProps, BsCustomPrefixProps {
|
|
3
|
-
id?: string;
|
|
4
|
-
isValid?: boolean;
|
|
5
|
-
isInvalid?: boolean;
|
|
6
|
-
lang?: string;
|
|
7
|
-
}
|
|
8
|
-
declare type FormFileInput = BsPrefixRefForwardingComponent<'input', FormFileInputProps>;
|
|
9
|
-
declare const FormFileInput: FormFileInput;
|
|
10
|
-
export default FormFileInput;
|
package/esm/FormFileLabel.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BsCustomPrefixProps, BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
export interface FormFileLabelProps extends BsPrefixProps, BsCustomPrefixProps {
|
|
3
|
-
htmlFor?: string;
|
|
4
|
-
}
|
|
5
|
-
declare type FormFileLabel = BsPrefixRefForwardingComponent<'label', FormFileLabelProps>;
|
|
6
|
-
declare const FormFileLabel: FormFileLabel;
|
|
7
|
-
export default FormFileLabel;
|
package/esm/Jumbotron.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
export interface JumbotronProps extends BsPrefixProps {
|
|
3
|
-
fluid?: boolean;
|
|
4
|
-
}
|
|
5
|
-
declare type Jumbotron = BsPrefixRefForwardingComponent<'div', JumbotronProps>;
|
|
6
|
-
declare const Jumbotron: Jumbotron;
|
|
7
|
-
export default Jumbotron;
|
package/esm/Media.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
declare const MediaBody: BsPrefixRefForwardingComponent<"div", unknown>;
|
|
3
|
-
declare type MediaProps = BsPrefixProps;
|
|
4
|
-
declare type Media = BsPrefixRefForwardingComponent<'div', MediaProps> & {
|
|
5
|
-
Body: typeof MediaBody;
|
|
6
|
-
};
|
|
7
|
-
declare const Media: Media;
|
|
8
|
-
export default Media;
|
package/esm/PopoverContent.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
declare type PopoverContentProps = BsPrefixPropsWithChildren;
|
|
3
|
-
declare type PopoverContent = BsPrefixRefForwardingComponent<'div', PopoverContentProps>;
|
|
4
|
-
declare const PopoverContent: PopoverContent;
|
|
5
|
-
export default PopoverContent;
|
package/esm/PopoverTitle.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
declare type PopoverTitleProps = BsPrefixPropsWithChildren;
|
|
3
|
-
declare type PopoverTitle = BsPrefixRefForwardingComponent<'div', PopoverTitleProps>;
|
|
4
|
-
declare const PopoverTitle: PopoverTitle;
|
|
5
|
-
export default PopoverTitle;
|
package/esm/ResponsiveEmbed.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
export interface ResponsiveEmbedProps extends BsPrefixPropsWithChildren {
|
|
4
|
-
children: React.ReactChild;
|
|
5
|
-
aspectRatio?: '21by9' | '16by9' | '4by3' | '1by1';
|
|
6
|
-
}
|
|
7
|
-
declare type ResponsiveEmbed = BsPrefixRefForwardingComponent<'div', ResponsiveEmbedProps>;
|
|
8
|
-
declare const ResponsiveEmbed: ResponsiveEmbed;
|
|
9
|
-
export default ResponsiveEmbed;
|
package/esm/SafeAnchor.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
export interface SafeAnchorProps extends React.HTMLAttributes<HTMLElement>, BsPrefixProps {
|
|
4
|
-
href?: string;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
tabIndex?: number;
|
|
7
|
-
}
|
|
8
|
-
declare type SafeAnchor = BsPrefixRefForwardingComponent<'a', SafeAnchorProps>;
|
|
9
|
-
/**
|
|
10
|
-
* There are situations due to browser quirks or Bootstrap CSS where
|
|
11
|
-
* an anchor tag is needed, when semantically a button tag is the
|
|
12
|
-
* better choice. SafeAnchor ensures that when an anchor is used like a
|
|
13
|
-
* button its accessible. It also emulates input `disabled` behavior for
|
|
14
|
-
* links, which is usually desirable for Buttons, NavItems, DropdownItems, etc.
|
|
15
|
-
*/
|
|
16
|
-
declare const SafeAnchor: SafeAnchor;
|
|
17
|
-
export default SafeAnchor;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type SelectableContextType = (key: string | null, event: any) => void;
|
|
3
|
-
declare const SelectableContext: React.Context<SelectableContextType | null>;
|
|
4
|
-
export declare const makeEventKey: (eventKey?: string | number | null | undefined, href?: string | null) => string | null;
|
|
5
|
-
export default SelectableContext;
|
package/esm/TabContext.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface TabContextType {
|
|
3
|
-
onSelect: any;
|
|
4
|
-
activeKey: any;
|
|
5
|
-
transition: any;
|
|
6
|
-
mountOnEnter: boolean;
|
|
7
|
-
unmountOnExit: boolean;
|
|
8
|
-
getControlledId: (key: any) => any;
|
|
9
|
-
getControllerId: (key: any) => any;
|
|
10
|
-
}
|
|
11
|
-
declare const TabContext: React.Context<TabContextType | null>;
|
|
12
|
-
export default TabContext;
|