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/AccordionCollapse.js
CHANGED
|
@@ -3,16 +3,21 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
3
3
|
import React, { useContext } from 'react';
|
|
4
4
|
import Collapse from './Collapse';
|
|
5
5
|
import AccordionContext from './AccordionContext';
|
|
6
|
+
import SelectableContext from './SelectableContext';
|
|
6
7
|
var AccordionCollapse = React.forwardRef(function (_ref, ref) {
|
|
7
8
|
var children = _ref.children,
|
|
8
9
|
eventKey = _ref.eventKey,
|
|
9
10
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
10
11
|
|
|
11
|
-
var contextEventKey = useContext(AccordionContext);
|
|
12
|
-
|
|
12
|
+
var contextEventKey = useContext(AccordionContext); // Empty SelectableContext is to prevent elements in the collapse
|
|
13
|
+
// from collapsing the accordion when clicked.
|
|
14
|
+
|
|
15
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
16
|
+
value: null
|
|
17
|
+
}, /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
13
18
|
ref: ref,
|
|
14
19
|
in: contextEventKey === eventKey
|
|
15
|
-
}, props), /*#__PURE__*/React.createElement("div", null, React.Children.only(children)));
|
|
20
|
+
}, props), /*#__PURE__*/React.createElement("div", null, React.Children.only(children))));
|
|
16
21
|
});
|
|
17
22
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
18
23
|
export default AccordionCollapse;
|
package/esm/Alert.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ export interface AlertProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
11
11
|
closeLabel?: string;
|
|
12
12
|
transition?: TransitionType;
|
|
13
13
|
}
|
|
14
|
-
declare const AlertHeading: import("./helpers").BsPrefixRefForwardingComponent<React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "className" | "key" | "onKeyDown" | "onSelect" | "role" | "color" | "id" | "lang" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is"> & React.RefAttributes<HTMLDivElement>>,
|
|
15
|
-
declare const AlertLink: import("./helpers").BsPrefixRefForwardingComponent<SafeAnchor,
|
|
14
|
+
declare const AlertHeading: import("./helpers").BsPrefixRefForwardingComponent<React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "className" | "key" | "onKeyDown" | "onSelect" | "role" | "color" | "id" | "lang" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is"> & React.RefAttributes<HTMLDivElement>>, unknown>;
|
|
15
|
+
declare const AlertLink: import("./helpers").BsPrefixRefForwardingComponent<SafeAnchor, unknown>;
|
|
16
16
|
declare type Alert = React.ForwardRefExoticComponent<AlertProps> & {
|
|
17
17
|
Link: typeof AlertLink;
|
|
18
18
|
Heading: typeof AlertHeading;
|
package/esm/Button.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
3
|
import { ButtonVariant } from './types';
|
|
4
|
+
export declare type ButtonType = 'button' | 'reset' | 'submit' | string;
|
|
4
5
|
export interface ButtonProps extends React.HTMLAttributes<HTMLElement>, BsPrefixPropsWithChildren {
|
|
5
6
|
active?: boolean;
|
|
6
7
|
block?: boolean;
|
|
7
8
|
variant?: ButtonVariant;
|
|
8
9
|
size?: 'sm' | 'lg';
|
|
9
|
-
type?:
|
|
10
|
+
type?: ButtonType;
|
|
10
11
|
href?: string;
|
|
11
12
|
disabled?: boolean;
|
|
12
13
|
target?: any;
|
package/esm/Button.js
CHANGED
|
@@ -21,7 +21,7 @@ var Button = React.forwardRef(function (_ref, ref) {
|
|
|
21
21
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
22
22
|
|
|
23
23
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
24
|
-
var classes = classNames(className, prefix, active && 'active', prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
24
|
+
var classes = classNames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
25
25
|
|
|
26
26
|
if (props.href) {
|
|
27
27
|
return /*#__PURE__*/React.createElement(SafeAnchor, _extends({}, props, {
|
package/esm/Card.d.ts
CHANGED
|
@@ -2,14 +2,14 @@ import React from 'react';
|
|
|
2
2
|
import CardImg from './CardImg';
|
|
3
3
|
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
4
4
|
import { Color, Variant } from './types';
|
|
5
|
-
declare const CardBody: BsPrefixRefForwardingComponent<"div",
|
|
6
|
-
declare const CardTitle: BsPrefixRefForwardingComponent<React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "className" | "key" | "onKeyDown" | "onSelect" | "role" | "color" | "id" | "lang" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is"> & React.RefAttributes<HTMLDivElement>>,
|
|
7
|
-
declare const CardSubtitle: BsPrefixRefForwardingComponent<React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "className" | "key" | "onKeyDown" | "onSelect" | "role" | "color" | "id" | "lang" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is"> & React.RefAttributes<HTMLDivElement>>,
|
|
8
|
-
declare const CardLink: BsPrefixRefForwardingComponent<"a",
|
|
9
|
-
declare const CardText: BsPrefixRefForwardingComponent<"p",
|
|
10
|
-
declare const CardHeader: BsPrefixRefForwardingComponent<"div",
|
|
11
|
-
declare const CardFooter: BsPrefixRefForwardingComponent<"div",
|
|
12
|
-
declare const CardImgOverlay: BsPrefixRefForwardingComponent<"div",
|
|
5
|
+
declare const CardBody: BsPrefixRefForwardingComponent<"div", unknown>;
|
|
6
|
+
declare const CardTitle: BsPrefixRefForwardingComponent<React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "className" | "key" | "onKeyDown" | "onSelect" | "role" | "color" | "id" | "lang" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is"> & React.RefAttributes<HTMLDivElement>>, unknown>;
|
|
7
|
+
declare const CardSubtitle: BsPrefixRefForwardingComponent<React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "className" | "key" | "onKeyDown" | "onSelect" | "role" | "color" | "id" | "lang" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is"> & React.RefAttributes<HTMLDivElement>>, unknown>;
|
|
8
|
+
declare const CardLink: BsPrefixRefForwardingComponent<"a", unknown>;
|
|
9
|
+
declare const CardText: BsPrefixRefForwardingComponent<"p", unknown>;
|
|
10
|
+
declare const CardHeader: BsPrefixRefForwardingComponent<"div", unknown>;
|
|
11
|
+
declare const CardFooter: BsPrefixRefForwardingComponent<"div", unknown>;
|
|
12
|
+
declare const CardImgOverlay: BsPrefixRefForwardingComponent<"div", unknown>;
|
|
13
13
|
export interface CardProps extends BsPrefixPropsWithChildren {
|
|
14
14
|
bg?: Variant;
|
|
15
15
|
text?: Color;
|
package/esm/CardColumns.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/CardDeck.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/CardGroup.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/Carousel.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface CarouselProps extends BsPrefixPropsWithChildren, Pick<React.DOM
|
|
|
8
8
|
controls?: boolean;
|
|
9
9
|
indicators?: boolean;
|
|
10
10
|
activeIndex?: number;
|
|
11
|
-
onSelect?: (eventKey: number, event:
|
|
11
|
+
onSelect?: (eventKey: number, event: Record<string, unknown> | null) => void;
|
|
12
12
|
defaultActiveIndex?: number;
|
|
13
13
|
onSlide?: (eventKey: number, direction: 'left' | 'right') => void;
|
|
14
14
|
onSlid?: (eventKey: number, direction: 'left' | 'right') => void;
|
package/esm/Carousel.js
CHANGED
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
import useEventCallback from '@restart/hooks/useEventCallback';
|
|
4
4
|
import useUpdateEffect from '@restart/hooks/useUpdateEffect';
|
|
5
|
+
import useCommittedRef from '@restart/hooks/useCommittedRef';
|
|
5
6
|
import useTimeout from '@restart/hooks/useTimeout';
|
|
6
7
|
import classNames from 'classnames';
|
|
7
8
|
import transitionEnd from 'dom-helpers/transitionEnd';
|
|
@@ -11,7 +12,7 @@ import React, { useCallback, useEffect, useImperativeHandle, useMemo, useRef, us
|
|
|
11
12
|
import { useUncontrolled } from 'uncontrollable';
|
|
12
13
|
import CarouselCaption from './CarouselCaption';
|
|
13
14
|
import CarouselItem from './CarouselItem';
|
|
14
|
-
import { map } from './ElementChildren';
|
|
15
|
+
import { map, forEach } from './ElementChildren';
|
|
15
16
|
import SafeAnchor from './SafeAnchor';
|
|
16
17
|
import { useBootstrapPrefix } from './ThemeProvider';
|
|
17
18
|
import triggerBrowserReflow from './triggerBrowserReflow';
|
|
@@ -202,7 +203,6 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
202
203
|
if (!isSliding && activeIndex !== renderedActiveIndex) {
|
|
203
204
|
if (nextDirectionRef.current) {
|
|
204
205
|
setDirection(nextDirectionRef.current);
|
|
205
|
-
nextDirectionRef.current = null;
|
|
206
206
|
} else {
|
|
207
207
|
setDirection((activeIndex || 0) > renderedActiveIndex ? 'next' : 'prev');
|
|
208
208
|
}
|
|
@@ -214,7 +214,23 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
214
214
|
setRenderedActiveIndex(activeIndex || 0);
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
-
|
|
217
|
+
useEffect(function () {
|
|
218
|
+
if (nextDirectionRef.current) {
|
|
219
|
+
nextDirectionRef.current = null;
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
var numChildren = 0;
|
|
223
|
+
var activeChildInterval; // Iterate to grab all of the children's interval values
|
|
224
|
+
// (and count them, too)
|
|
225
|
+
|
|
226
|
+
forEach(children, function (child, index) {
|
|
227
|
+
++numChildren;
|
|
228
|
+
|
|
229
|
+
if (index === activeIndex) {
|
|
230
|
+
activeChildInterval = child.props.interval;
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
var activeChildIntervalRef = useCommittedRef(activeChildInterval);
|
|
218
234
|
var prev = useCallback(function (event) {
|
|
219
235
|
if (isSliding) {
|
|
220
236
|
return;
|
|
@@ -402,17 +418,19 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
402
418
|
var shouldPlay = interval != null && !pausedOnHover && !pausedOnTouch && !isSliding;
|
|
403
419
|
var intervalHandleRef = useRef();
|
|
404
420
|
useEffect(function () {
|
|
421
|
+
var _ref, _activeChildIntervalR;
|
|
422
|
+
|
|
405
423
|
if (!shouldPlay) {
|
|
406
424
|
return undefined;
|
|
407
425
|
}
|
|
408
426
|
|
|
409
|
-
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next, interval
|
|
427
|
+
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next, (_ref = (_activeChildIntervalR = activeChildIntervalRef.current) != null ? _activeChildIntervalR : interval) != null ? _ref : undefined);
|
|
410
428
|
return function () {
|
|
411
429
|
if (intervalHandleRef.current !== null) {
|
|
412
430
|
clearInterval(intervalHandleRef.current);
|
|
413
431
|
}
|
|
414
432
|
};
|
|
415
|
-
}, [shouldPlay, next, interval, nextWhenVisible]);
|
|
433
|
+
}, [shouldPlay, next, activeChildIntervalRef, interval, nextWhenVisible]);
|
|
416
434
|
var indicatorOnClicks = useMemo(function () {
|
|
417
435
|
return indicators && Array.from({
|
|
418
436
|
length: numChildren
|
package/esm/CarouselCaption.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/CarouselItem.d.ts
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
+
export interface CarouselItemProps extends BsPrefixPropsWithChildren {
|
|
3
|
+
interval?: number;
|
|
4
|
+
}
|
|
5
|
+
declare type CarouselItem = BsPrefixRefForwardingComponent<'div', CarouselItemProps>;
|
|
6
|
+
declare const CarouselItem: CarouselItem;
|
|
7
|
+
export default CarouselItem;
|
package/esm/CarouselItem.js
CHANGED
|
@@ -1,2 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider';
|
|
6
|
+
var CarouselItem = React.forwardRef(function (_ref, ref) {
|
|
7
|
+
var _ref$as = _ref.as,
|
|
8
|
+
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
9
|
+
bsPrefix = _ref.bsPrefix,
|
|
10
|
+
children = _ref.children,
|
|
11
|
+
className = _ref.className,
|
|
12
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
13
|
+
|
|
14
|
+
var finalClassName = classNames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
15
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
16
|
+
ref: ref
|
|
17
|
+
}, props, {
|
|
18
|
+
className: finalClassName
|
|
19
|
+
}), children);
|
|
20
|
+
});
|
|
21
|
+
CarouselItem.displayName = 'CarouselItem';
|
|
22
|
+
export default CarouselItem;
|
package/esm/Dropdown.d.ts
CHANGED
|
@@ -3,8 +3,9 @@ import DropdownItem from './DropdownItem';
|
|
|
3
3
|
import DropdownMenu from './DropdownMenu';
|
|
4
4
|
import DropdownToggle from './DropdownToggle';
|
|
5
5
|
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent, SelectCallback } from './helpers';
|
|
6
|
-
declare const DropdownHeader: BsPrefixRefForwardingComponent<"div",
|
|
7
|
-
declare const DropdownDivider: BsPrefixRefForwardingComponent<"div",
|
|
6
|
+
declare const DropdownHeader: BsPrefixRefForwardingComponent<"div", unknown>;
|
|
7
|
+
declare const DropdownDivider: BsPrefixRefForwardingComponent<"div", unknown>;
|
|
8
|
+
declare const DropdownItemText: BsPrefixRefForwardingComponent<"span", unknown>;
|
|
8
9
|
export interface DropdownProps extends BsPrefixPropsWithChildren {
|
|
9
10
|
drop?: 'up' | 'left' | 'right' | 'down';
|
|
10
11
|
alignRight?: boolean;
|
|
@@ -21,6 +22,7 @@ declare type Dropdown = BsPrefixRefForwardingComponent<'div', DropdownProps> & {
|
|
|
21
22
|
Toggle: typeof DropdownToggle;
|
|
22
23
|
Menu: typeof DropdownMenu;
|
|
23
24
|
Item: typeof DropdownItem;
|
|
25
|
+
ItemText: typeof DropdownItemText;
|
|
24
26
|
Divider: typeof DropdownDivider;
|
|
25
27
|
Header: typeof DropdownHeader;
|
|
26
28
|
};
|
package/esm/Dropdown.js
CHANGED
|
@@ -21,6 +21,9 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
21
21
|
role: 'separator'
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
+
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
25
|
+
Component: 'span'
|
|
26
|
+
});
|
|
24
27
|
var defaultProps = {
|
|
25
28
|
navbar: false
|
|
26
29
|
};
|
|
@@ -83,6 +86,7 @@ Dropdown.defaultProps = defaultProps;
|
|
|
83
86
|
Dropdown.Divider = DropdownDivider;
|
|
84
87
|
Dropdown.Header = DropdownHeader;
|
|
85
88
|
Dropdown.Item = DropdownItem;
|
|
89
|
+
Dropdown.ItemText = DropdownItemText;
|
|
86
90
|
Dropdown.Menu = DropdownMenu;
|
|
87
91
|
Dropdown.Toggle = DropdownToggle;
|
|
88
92
|
export default Dropdown;
|
package/esm/DropdownButton.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DropdownProps } from './Dropdown';
|
|
3
3
|
import { PropsFromToggle } from './DropdownToggle';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import { AlignType } from './DropdownMenu';
|
|
5
|
+
export interface DropdownButtonProps extends DropdownProps, Omit<React.HTMLAttributes<HTMLElement>, 'onSelect' | 'title'>, React.PropsWithChildren<PropsFromToggle> {
|
|
6
6
|
title: React.ReactNode;
|
|
7
|
+
menuAlign?: AlignType;
|
|
7
8
|
menuRole?: string;
|
|
8
9
|
renderMenuOnMount?: boolean;
|
|
9
10
|
rootCloseEvent?: 'click' | 'mousedown';
|
package/esm/DropdownButton.js
CHANGED
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import Dropdown from './Dropdown';
|
|
6
6
|
import DropdownToggle from './DropdownToggle';
|
|
7
|
-
import DropdownMenu from './DropdownMenu';
|
|
7
|
+
import DropdownMenu, { alignPropType } from './DropdownMenu';
|
|
8
8
|
var propTypes = {
|
|
9
9
|
/**
|
|
10
10
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
@@ -25,6 +25,15 @@ var propTypes = {
|
|
|
25
25
|
/** Disables both Buttons */
|
|
26
26
|
disabled: PropTypes.bool,
|
|
27
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Aligns the dropdown menu responsively.
|
|
30
|
+
*
|
|
31
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
32
|
+
*
|
|
33
|
+
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
34
|
+
*/
|
|
35
|
+
menuAlign: alignPropType,
|
|
36
|
+
|
|
28
37
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
29
38
|
menuRole: PropTypes.string,
|
|
30
39
|
|
|
@@ -34,7 +43,7 @@ var propTypes = {
|
|
|
34
43
|
/**
|
|
35
44
|
* Which event when fired outside the component will cause it to be closed.
|
|
36
45
|
*
|
|
37
|
-
* _see [DropdownMenu](#menu-props) for more details_
|
|
46
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
38
47
|
*/
|
|
39
48
|
rootCloseEvent: PropTypes.string,
|
|
40
49
|
|
|
@@ -63,12 +72,13 @@ var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
|
63
72
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
64
73
|
variant = _ref.variant,
|
|
65
74
|
size = _ref.size,
|
|
75
|
+
menuAlign = _ref.menuAlign,
|
|
66
76
|
menuRole = _ref.menuRole,
|
|
67
77
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
68
78
|
disabled = _ref.disabled,
|
|
69
79
|
href = _ref.href,
|
|
70
80
|
id = _ref.id,
|
|
71
|
-
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
81
|
+
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
72
82
|
|
|
73
83
|
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
74
84
|
ref: ref
|
|
@@ -80,6 +90,7 @@ var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
|
80
90
|
disabled: disabled,
|
|
81
91
|
childBsPrefix: bsPrefix
|
|
82
92
|
}, title), /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
93
|
+
align: menuAlign,
|
|
83
94
|
role: menuRole,
|
|
84
95
|
renderOnMount: renderMenuOnMount,
|
|
85
96
|
rootCloseEvent: rootCloseEvent
|
package/esm/DropdownItem.js
CHANGED
|
@@ -29,9 +29,10 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
29
29
|
var navContext = useContext(NavContext);
|
|
30
30
|
|
|
31
31
|
var _ref2 = navContext || {},
|
|
32
|
-
activeKey = _ref2.activeKey;
|
|
32
|
+
activeKey = _ref2.activeKey; // TODO: Restrict eventKey to string in v5?
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
|
|
35
|
+
var key = makeEventKey(eventKey, href);
|
|
35
36
|
var active = propActive == null && key != null ? makeEventKey(activeKey) === key : propActive;
|
|
36
37
|
var handleClick = useEventCallback(function (event) {
|
|
37
38
|
// SafeAnchor handles the disabled case, but we handle it here
|
package/esm/DropdownMenu.d.ts
CHANGED
|
@@ -1,15 +1,36 @@
|
|
|
1
|
+
import PropTypes from 'prop-types';
|
|
2
|
+
import { UseDropdownMenuOptions } from 'react-overlays/DropdownMenu';
|
|
1
3
|
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent, SelectCallback } from './helpers';
|
|
4
|
+
export declare type AlignDirection = 'left' | 'right';
|
|
5
|
+
export declare type ResponsiveAlignProp = {
|
|
6
|
+
sm: AlignDirection;
|
|
7
|
+
} | {
|
|
8
|
+
md: AlignDirection;
|
|
9
|
+
} | {
|
|
10
|
+
lg: AlignDirection;
|
|
11
|
+
} | {
|
|
12
|
+
xl: AlignDirection;
|
|
13
|
+
};
|
|
14
|
+
export declare type AlignType = AlignDirection | ResponsiveAlignProp;
|
|
2
15
|
export interface DropdownMenuProps extends BsPrefixPropsWithChildren {
|
|
3
16
|
show?: boolean;
|
|
4
17
|
renderOnMount?: boolean;
|
|
5
18
|
flip?: boolean;
|
|
19
|
+
align?: AlignType;
|
|
6
20
|
alignRight?: boolean;
|
|
7
21
|
onSelect?: SelectCallback;
|
|
8
22
|
rootCloseEvent?: 'click' | 'mousedown';
|
|
9
|
-
popperConfig?:
|
|
10
|
-
modifiers?: any;
|
|
11
|
-
};
|
|
23
|
+
popperConfig?: UseDropdownMenuOptions['popperConfig'];
|
|
12
24
|
}
|
|
13
25
|
declare type DropdownMenu = BsPrefixRefForwardingComponent<'div', DropdownMenuProps>;
|
|
26
|
+
export declare const alignPropType: PropTypes.Requireable<string | PropTypes.InferProps<{
|
|
27
|
+
sm: PropTypes.Requireable<string>;
|
|
28
|
+
}> | PropTypes.InferProps<{
|
|
29
|
+
md: PropTypes.Requireable<string>;
|
|
30
|
+
}> | PropTypes.InferProps<{
|
|
31
|
+
lg: PropTypes.Requireable<string>;
|
|
32
|
+
}> | PropTypes.InferProps<{
|
|
33
|
+
xl: PropTypes.Requireable<string>;
|
|
34
|
+
}>>;
|
|
14
35
|
declare const DropdownMenu: DropdownMenu;
|
|
15
36
|
export default DropdownMenu;
|
package/esm/DropdownMenu.js
CHANGED
|
@@ -1,14 +1,27 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
4
5
|
import React, { useContext } from 'react';
|
|
5
6
|
import { useDropdownMenu } from 'react-overlays/DropdownMenu';
|
|
6
7
|
import useMergedRefs from '@restart/hooks/useMergedRefs';
|
|
8
|
+
import warning from 'warning';
|
|
7
9
|
import NavbarContext from './NavbarContext';
|
|
8
10
|
import { useBootstrapPrefix } from './ThemeProvider';
|
|
9
11
|
import useWrappedRefWithWarning from './useWrappedRefWithWarning';
|
|
10
12
|
import usePopperMarginModifiers from './usePopperMarginModifiers';
|
|
13
|
+
var alignDirection = PropTypes.oneOf(['left', 'right']);
|
|
14
|
+
export var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
15
|
+
sm: alignDirection
|
|
16
|
+
}), PropTypes.shape({
|
|
17
|
+
md: alignDirection
|
|
18
|
+
}), PropTypes.shape({
|
|
19
|
+
lg: alignDirection
|
|
20
|
+
}), PropTypes.shape({
|
|
21
|
+
xl: alignDirection
|
|
22
|
+
})]);
|
|
11
23
|
var defaultProps = {
|
|
24
|
+
align: 'left',
|
|
12
25
|
alignRight: false,
|
|
13
26
|
flip: true
|
|
14
27
|
}; // TODO: remove this hack
|
|
@@ -16,6 +29,7 @@ var defaultProps = {
|
|
|
16
29
|
var DropdownMenu = React.forwardRef(function (_ref, ref) {
|
|
17
30
|
var bsPrefix = _ref.bsPrefix,
|
|
18
31
|
className = _ref.className,
|
|
32
|
+
align = _ref.align,
|
|
19
33
|
alignRight = _ref.alignRight,
|
|
20
34
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
21
35
|
flip = _ref.flip,
|
|
@@ -23,9 +37,8 @@ var DropdownMenu = React.forwardRef(function (_ref, ref) {
|
|
|
23
37
|
renderOnMount = _ref.renderOnMount,
|
|
24
38
|
_ref$as = _ref.as,
|
|
25
39
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
40
|
+
popperConfig = _ref.popperConfig,
|
|
41
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
29
42
|
|
|
30
43
|
var isNavbar = useContext(NavbarContext);
|
|
31
44
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
@@ -34,14 +47,35 @@ var DropdownMenu = React.forwardRef(function (_ref, ref) {
|
|
|
34
47
|
popperRef = _usePopperMarginModif[0],
|
|
35
48
|
marginModifiers = _usePopperMarginModif[1];
|
|
36
49
|
|
|
50
|
+
var alignClasses = [];
|
|
51
|
+
|
|
52
|
+
if (align) {
|
|
53
|
+
if (typeof align === 'object') {
|
|
54
|
+
var keys = Object.keys(align);
|
|
55
|
+
process.env.NODE_ENV !== "production" ? warning(keys.length === 1, 'There should only be 1 breakpoint when passing an object to `align`') : void 0;
|
|
56
|
+
|
|
57
|
+
if (keys.length) {
|
|
58
|
+
var brkPoint = keys[0];
|
|
59
|
+
var direction = align[brkPoint]; // .dropdown-menu-right is required for responsively aligning
|
|
60
|
+
// left in addition to align left classes.
|
|
61
|
+
// Reuse alignRight to toggle the class below.
|
|
62
|
+
|
|
63
|
+
alignRight = direction === 'left';
|
|
64
|
+
alignClasses.push(prefix + "-" + brkPoint + "-" + direction);
|
|
65
|
+
}
|
|
66
|
+
} else if (align === 'right') {
|
|
67
|
+
alignRight = true;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
37
71
|
var _ref2 = useDropdownMenu({
|
|
38
72
|
flip: flip,
|
|
39
73
|
rootCloseEvent: rootCloseEvent,
|
|
40
74
|
show: showProps,
|
|
41
75
|
alignEnd: alignRight,
|
|
42
|
-
usePopper: !isNavbar,
|
|
76
|
+
usePopper: !isNavbar && alignClasses.length === 0,
|
|
43
77
|
popperConfig: _extends({}, popperConfig, {
|
|
44
|
-
modifiers: marginModifiers.concat(popperConfig.modifiers || [])
|
|
78
|
+
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
45
79
|
})
|
|
46
80
|
}),
|
|
47
81
|
hasShown = _ref2.hasShown,
|
|
@@ -68,7 +102,7 @@ var DropdownMenu = React.forwardRef(function (_ref, ref) {
|
|
|
68
102
|
}
|
|
69
103
|
|
|
70
104
|
return /*#__PURE__*/React.createElement(Component, _extends({}, props, menuProps, {
|
|
71
|
-
className: classNames(className, prefix, show && 'show', alignEnd && prefix + "-right")
|
|
105
|
+
className: classNames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
72
106
|
}));
|
|
73
107
|
});
|
|
74
108
|
DropdownMenu.displayName = 'DropdownMenu';
|
package/esm/DropdownToggle.js
CHANGED
|
@@ -12,11 +12,10 @@ var DropdownToggle = React.forwardRef(function (_ref, ref) {
|
|
|
12
12
|
var bsPrefix = _ref.bsPrefix,
|
|
13
13
|
split = _ref.split,
|
|
14
14
|
className = _ref.className,
|
|
15
|
-
children = _ref.children,
|
|
16
15
|
childBsPrefix = _ref.childBsPrefix,
|
|
17
16
|
_ref$as = _ref.as,
|
|
18
17
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
19
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "
|
|
18
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
20
19
|
|
|
21
20
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
22
21
|
|
|
@@ -34,7 +33,7 @@ var DropdownToggle = React.forwardRef(function (_ref, ref) {
|
|
|
34
33
|
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
35
34
|
onClick: toggle,
|
|
36
35
|
className: classNames(className, prefix, split && prefix + "-split")
|
|
37
|
-
}, toggleProps, props)
|
|
36
|
+
}, toggleProps, props));
|
|
38
37
|
});
|
|
39
38
|
DropdownToggle.displayName = 'DropdownToggle';
|
|
40
39
|
export default DropdownToggle;
|
package/esm/Fade.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Transition
|
|
3
|
-
|
|
2
|
+
import Transition from 'react-transition-group/Transition';
|
|
3
|
+
import { TransitionCallbacks } from './helpers';
|
|
4
|
+
export interface FadeProps extends TransitionCallbacks {
|
|
5
|
+
className?: string;
|
|
4
6
|
in?: boolean;
|
|
5
7
|
mountOnEnter?: boolean;
|
|
6
8
|
unmountOnExit?: boolean;
|
|
7
9
|
appear?: boolean;
|
|
8
10
|
timeout?: number;
|
|
11
|
+
children: React.ReactElement;
|
|
9
12
|
}
|
|
10
|
-
declare const Fade: React.ForwardRefExoticComponent<
|
|
13
|
+
declare const Fade: React.ForwardRefExoticComponent<FadeProps & React.RefAttributes<Transition<any>>>;
|
|
11
14
|
export default Fade;
|