react-bootstrap 1.6.3 → 1.6.6
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/InputGroup.d.ts +5 -7
- package/cjs/InputGroup.js +6 -8
- package/cjs/Modal.js +6 -2
- package/dist/react-bootstrap.js +28 -25
- package/dist/react-bootstrap.min.js +1 -1
- package/esm/InputGroup.d.ts +5 -7
- package/esm/InputGroup.js +6 -10
- package/esm/Modal.js +6 -2
- package/package.json +3 -3
- package/cjs/AbstractModalHeader.d.ts +0 -10
- package/cjs/AccordionBody.d.ts +0 -6
- package/cjs/AccordionButton.d.ts +0 -8
- package/cjs/AccordionHeader.d.ts +0 -6
- package/cjs/AccordionItem.d.ts +0 -7
- package/cjs/AccordionItemContext.d.ts +0 -6
- package/cjs/Anchor.d.ts +0 -3
- package/cjs/CardHeader.d.ts +0 -6
- package/cjs/CardHeaderContext.d.ts +0 -6
- package/cjs/DropdownContext.d.ts +0 -10
- package/cjs/FloatingLabel.d.ts +0 -9
- package/cjs/FormFloating.d.ts +0 -2
- package/cjs/FormRange.d.ts +0 -6
- package/cjs/FormSelect.d.ts +0 -10
- package/cjs/InputGroupContext.d.ts +0 -3
- package/cjs/Offcanvas.d.ts +0 -16
- package/cjs/OffcanvasBody.d.ts +0 -2
- package/cjs/OffcanvasHeader.d.ts +0 -7
- package/cjs/OffcanvasTitle.d.ts +0 -3
- package/cjs/OffcanvasToggling.d.ts +0 -15
- package/cjs/Placeholder.d.ts +0 -8
- package/cjs/PlaceholderButton.d.ts +0 -8
- package/cjs/PopoverBody.d.ts +0 -2
- package/cjs/PopoverHeader.d.ts +0 -2
- package/cjs/Ratio.d.ts +0 -9
- package/cjs/ToastContainer.d.ts +0 -8
- package/cjs/TransitionWrapper.d.ts +0 -8
- package/cjs/getTabTransitionComponent.d.ts +0 -3
- package/cjs/safeFindDOMNode.d.ts +0 -2
- package/cjs/useOverlayOffset.d.ts +0 -6
- package/cjs/usePlaceholder.d.ts +0 -10
- package/esm/AbstractModalHeader.d.ts +0 -10
- package/esm/AccordionBody.d.ts +0 -6
- package/esm/AccordionButton.d.ts +0 -8
- package/esm/AccordionHeader.d.ts +0 -6
- package/esm/AccordionItem.d.ts +0 -7
- package/esm/AccordionItemContext.d.ts +0 -6
- package/esm/Anchor.d.ts +0 -3
- package/esm/CardHeader.d.ts +0 -6
- package/esm/CardHeaderContext.d.ts +0 -6
- package/esm/DropdownContext.d.ts +0 -10
- package/esm/FloatingLabel.d.ts +0 -9
- package/esm/FormFloating.d.ts +0 -2
- package/esm/FormRange.d.ts +0 -6
- package/esm/FormSelect.d.ts +0 -10
- package/esm/InputGroupContext.d.ts +0 -3
- package/esm/Offcanvas.d.ts +0 -16
- package/esm/OffcanvasBody.d.ts +0 -2
- package/esm/OffcanvasHeader.d.ts +0 -7
- package/esm/OffcanvasTitle.d.ts +0 -3
- package/esm/OffcanvasToggling.d.ts +0 -15
- package/esm/Placeholder.d.ts +0 -8
- package/esm/PlaceholderButton.d.ts +0 -8
- package/esm/PopoverBody.d.ts +0 -2
- package/esm/PopoverHeader.d.ts +0 -2
- package/esm/Ratio.d.ts +0 -9
- package/esm/ToastContainer.d.ts +0 -8
- package/esm/TransitionWrapper.d.ts +0 -8
- package/esm/getTabTransitionComponent.d.ts +0 -3
- package/esm/safeFindDOMNode.d.ts +0 -2
- package/esm/useOverlayOffset.d.ts +0 -6
- package/esm/usePlaceholder.d.ts +0 -10
package/esm/InputGroup.d.ts
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
3
|
declare const InputGroupAppend: BsPrefixRefForwardingComponent<"div", unknown>;
|
|
4
4
|
declare const InputGroupPrepend: BsPrefixRefForwardingComponent<"div", unknown>;
|
|
5
5
|
declare const InputGroupText: BsPrefixRefForwardingComponent<"span", unknown>;
|
|
6
6
|
declare const InputGroupCheckbox: (props: any) => JSX.Element;
|
|
7
7
|
declare const InputGroupRadio: (props: any) => JSX.Element;
|
|
8
|
-
export interface InputGroupProps extends
|
|
8
|
+
export interface InputGroupProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
9
9
|
size?: 'sm' | 'lg';
|
|
10
10
|
hasValidation?: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare type
|
|
12
|
+
declare type InputGroup = BsPrefixRefForwardingComponent<'div', InputGroupProps> & {
|
|
13
13
|
Append: typeof InputGroupAppend;
|
|
14
14
|
Prepend: typeof InputGroupPrepend;
|
|
15
15
|
Text: typeof InputGroupText;
|
|
16
16
|
Checkbox: typeof InputGroupCheckbox;
|
|
17
17
|
Radio: typeof InputGroupRadio;
|
|
18
18
|
};
|
|
19
|
-
declare type InputGroup = BsPrefixRefForwardingComponent<'div', InputGroupProps>;
|
|
20
19
|
/**
|
|
21
20
|
*
|
|
22
21
|
* @property {InputGroupAppend} Append
|
|
@@ -26,5 +25,4 @@ declare type InputGroup = BsPrefixRefForwardingComponent<'div', InputGroupProps>
|
|
|
26
25
|
* @property {InputGroupCheckbox} Checkbox
|
|
27
26
|
*/
|
|
28
27
|
declare const InputGroup: InputGroup;
|
|
29
|
-
|
|
30
|
-
export default InputGroupWithExtras;
|
|
28
|
+
export default InputGroup;
|
package/esm/InputGroup.js
CHANGED
|
@@ -48,13 +48,9 @@ var InputGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
48
48
|
}));
|
|
49
49
|
});
|
|
50
50
|
InputGroup.displayName = 'InputGroup';
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
Prepend: InputGroupPrepend
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
export default InputGroupWithExtras;
|
|
51
|
+
InputGroup.Text = InputGroupText;
|
|
52
|
+
InputGroup.Radio = InputGroupRadio;
|
|
53
|
+
InputGroup.Checkbox = InputGroupCheckbox;
|
|
54
|
+
InputGroup.Append = InputGroupAppend;
|
|
55
|
+
InputGroup.Prepend = InputGroupPrepend;
|
|
56
|
+
export default InputGroup;
|
package/esm/Modal.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
|
-
var _excluded = ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"];
|
|
3
|
+
var _excluded = ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "aria-describedby", "aria-label", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"];
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import addEventListener from 'dom-helpers/addEventListener';
|
|
6
6
|
import canUseDOM from 'dom-helpers/canUseDOM';
|
|
@@ -59,6 +59,8 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
59
59
|
children = _ref.children,
|
|
60
60
|
Dialog = _ref.dialogAs,
|
|
61
61
|
ariaLabelledby = _ref['aria-labelledby'],
|
|
62
|
+
ariaDescribedby = _ref['aria-describedby'],
|
|
63
|
+
ariaLabel = _ref['aria-label'],
|
|
62
64
|
show = _ref.show,
|
|
63
65
|
animation = _ref.animation,
|
|
64
66
|
backdrop = _ref.backdrop,
|
|
@@ -246,7 +248,9 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
246
248
|
className: classNames(className, bsPrefix, animateStaticModal && bsPrefix + "-static"),
|
|
247
249
|
onClick: backdrop ? handleClick : undefined,
|
|
248
250
|
onMouseUp: handleMouseUp,
|
|
249
|
-
"aria-
|
|
251
|
+
"aria-label": ariaLabel,
|
|
252
|
+
"aria-labelledby": ariaLabelledby,
|
|
253
|
+
"aria-describedby": ariaDescribedby
|
|
250
254
|
}), /*#__PURE__*/React.createElement(Dialog, _extends({}, props, {
|
|
251
255
|
onMouseDown: handleDialogMouseDown,
|
|
252
256
|
className: dialogClassName,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-bootstrap",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.6",
|
|
4
4
|
"description": "Bootstrap 4 components built with React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@babel/runtime": "^7.14.0",
|
|
37
37
|
"@restart/context": "^2.1.4",
|
|
38
|
-
"@restart/hooks": "^0.
|
|
38
|
+
"@restart/hooks": "^0.4.7",
|
|
39
39
|
"@types/invariant": "^2.2.33",
|
|
40
40
|
"@types/prop-types": "^15.7.3",
|
|
41
41
|
"@types/react": ">=16.14.8",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"invariant": "^2.2.4",
|
|
47
47
|
"prop-types": "^15.7.2",
|
|
48
48
|
"prop-types-extra": "^1.1.0",
|
|
49
|
-
"react-overlays": "^5.1.
|
|
49
|
+
"react-overlays": "^5.1.2",
|
|
50
50
|
"react-transition-group": "^4.4.1",
|
|
51
51
|
"uncontrollable": "^7.2.1",
|
|
52
52
|
"warning": "^4.0.3"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { CloseButtonVariant } from './CloseButton';
|
|
3
|
-
export interface AbstractModalHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
closeLabel?: string;
|
|
5
|
-
closeVariant?: CloseButtonVariant;
|
|
6
|
-
closeButton?: boolean;
|
|
7
|
-
onHide?: () => void;
|
|
8
|
-
}
|
|
9
|
-
declare const AbstractModalHeader: React.ForwardRefExoticComponent<AbstractModalHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
export default AbstractModalHeader;
|
package/cjs/AccordionBody.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BsPrefixRefForwardingComponent, BsPrefixProps } from './helpers';
|
|
3
|
-
export interface AccordionBodyProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
-
}
|
|
5
|
-
declare const AccordionBody: BsPrefixRefForwardingComponent<'div', AccordionBodyProps>;
|
|
6
|
-
export default AccordionBody;
|
package/cjs/AccordionButton.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
declare type EventHandler = React.EventHandler<React.SyntheticEvent>;
|
|
4
|
-
export interface AccordionButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, BsPrefixProps {
|
|
5
|
-
}
|
|
6
|
-
export declare function useAccordionButton(eventKey: string, onClick?: EventHandler): EventHandler;
|
|
7
|
-
declare const AccordionButton: BsPrefixRefForwardingComponent<'div', AccordionButtonProps>;
|
|
8
|
-
export default AccordionButton;
|
package/cjs/AccordionHeader.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BsPrefixRefForwardingComponent, BsPrefixProps } from './helpers';
|
|
3
|
-
export interface AccordionHeaderProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
-
}
|
|
5
|
-
declare const AccordionHeader: BsPrefixRefForwardingComponent<'h2', AccordionHeaderProps>;
|
|
6
|
-
export default AccordionHeader;
|
package/cjs/AccordionItem.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BsPrefixRefForwardingComponent, BsPrefixProps } from './helpers';
|
|
3
|
-
export interface AccordionItemProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
-
eventKey: string;
|
|
5
|
-
}
|
|
6
|
-
declare const AccordionItem: BsPrefixRefForwardingComponent<'div', AccordionItemProps>;
|
|
7
|
-
export default AccordionItem;
|
package/cjs/Anchor.d.ts
DELETED
package/cjs/CardHeader.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
export interface CardHeaderProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
-
}
|
|
5
|
-
declare const CardHeader: BsPrefixRefForwardingComponent<'div', CardHeaderProps>;
|
|
6
|
-
export default CardHeader;
|
package/cjs/DropdownContext.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AlignType } from './types';
|
|
3
|
-
export declare type DropDirection = 'up' | 'start' | 'end' | 'down';
|
|
4
|
-
export declare type DropdownContextValue = {
|
|
5
|
-
align?: AlignType;
|
|
6
|
-
drop?: DropDirection;
|
|
7
|
-
isRTL?: boolean;
|
|
8
|
-
};
|
|
9
|
-
declare const DropdownContext: React.Context<DropdownContextValue>;
|
|
10
|
-
export default DropdownContext;
|
package/cjs/FloatingLabel.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { FormGroupProps } from './FormGroup';
|
|
3
|
-
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
4
|
-
export interface FloatingLabelProps extends FormGroupProps, BsPrefixProps {
|
|
5
|
-
controlId?: string;
|
|
6
|
-
label: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
declare const FloatingLabel: BsPrefixRefForwardingComponent<'div', FloatingLabelProps>;
|
|
9
|
-
export default FloatingLabel;
|
package/cjs/FormFloating.d.ts
DELETED
package/cjs/FormRange.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BsPrefixOnlyProps } from './helpers';
|
|
3
|
-
export interface FormRangeProps extends BsPrefixOnlyProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
4
|
-
}
|
|
5
|
-
declare const FormRange: React.ForwardRefExoticComponent<FormRangeProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
|
-
export default FormRange;
|
package/cjs/FormSelect.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BsPrefixOnlyProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
export interface FormSelectProps extends BsPrefixOnlyProps, React.HTMLAttributes<HTMLSelectElement> {
|
|
4
|
-
htmlSize?: number;
|
|
5
|
-
size?: 'sm' | 'lg';
|
|
6
|
-
isValid?: boolean;
|
|
7
|
-
isInvalid?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const FormSelect: BsPrefixRefForwardingComponent<'select', FormSelectProps>;
|
|
10
|
-
export default FormSelect;
|
package/cjs/Offcanvas.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ModalProps as BaseModalProps } from '@restart/ui/Modal';
|
|
3
|
-
import { BsPrefixRefForwardingComponent } from './helpers';
|
|
4
|
-
export declare type OffcanvasPlacement = 'start' | 'end' | 'top' | 'bottom';
|
|
5
|
-
export interface OffcanvasProps extends Omit<BaseModalProps, 'role' | 'renderBackdrop' | 'renderDialog' | 'transition' | 'backdrop' | 'backdropTransition'> {
|
|
6
|
-
bsPrefix?: string;
|
|
7
|
-
backdropClassName?: string;
|
|
8
|
-
scroll?: boolean;
|
|
9
|
-
placement?: OffcanvasPlacement;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: BsPrefixRefForwardingComponent<"div", OffcanvasProps> & {
|
|
12
|
-
Body: BsPrefixRefForwardingComponent<"div", unknown>;
|
|
13
|
-
Header: React.ForwardRefExoticComponent<import("./OffcanvasHeader").OffcanvasHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
Title: BsPrefixRefForwardingComponent<React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>>, unknown>;
|
|
15
|
-
};
|
|
16
|
-
export default _default;
|
package/cjs/OffcanvasBody.d.ts
DELETED
package/cjs/OffcanvasHeader.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AbstractModalHeaderProps } from './AbstractModalHeader';
|
|
3
|
-
import { BsPrefixOnlyProps } from './helpers';
|
|
4
|
-
export interface OffcanvasHeaderProps extends AbstractModalHeaderProps, BsPrefixOnlyProps {
|
|
5
|
-
}
|
|
6
|
-
declare const OffcanvasHeader: React.ForwardRefExoticComponent<OffcanvasHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
export default OffcanvasHeader;
|
package/cjs/OffcanvasTitle.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const _default: import("./helpers").BsPrefixRefForwardingComponent<import("react").ForwardRefExoticComponent<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & import("react").RefAttributes<HTMLDivElement>>, unknown>;
|
|
3
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import Transition from 'react-transition-group/Transition';
|
|
3
|
-
import { TransitionCallbacks } from '@restart/ui/types';
|
|
4
|
-
import { BsPrefixOnlyProps } from './helpers';
|
|
5
|
-
export interface OffcanvasTogglingProps extends TransitionCallbacks, BsPrefixOnlyProps {
|
|
6
|
-
className?: string;
|
|
7
|
-
in?: boolean;
|
|
8
|
-
mountOnEnter?: boolean;
|
|
9
|
-
unmountOnExit?: boolean;
|
|
10
|
-
appear?: boolean;
|
|
11
|
-
timeout?: number;
|
|
12
|
-
children: React.ReactElement;
|
|
13
|
-
}
|
|
14
|
-
declare const OffcanvasToggling: React.ForwardRefExoticComponent<OffcanvasTogglingProps & React.RefAttributes<Transition<any>>>;
|
|
15
|
-
export default OffcanvasToggling;
|
package/cjs/Placeholder.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
import { UsePlaceholderProps } from './usePlaceholder';
|
|
3
|
-
export interface PlaceholderProps extends UsePlaceholderProps, BsPrefixProps {
|
|
4
|
-
}
|
|
5
|
-
declare const _default: BsPrefixRefForwardingComponent<"span", PlaceholderProps> & {
|
|
6
|
-
Button: BsPrefixRefForwardingComponent<"button", import("./PlaceholderButton").PlaceholderButtonProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
import { UsePlaceholderProps } from './usePlaceholder';
|
|
3
|
-
import { ButtonVariant } from './types';
|
|
4
|
-
export interface PlaceholderButtonProps extends UsePlaceholderProps {
|
|
5
|
-
variant?: ButtonVariant;
|
|
6
|
-
}
|
|
7
|
-
declare const PlaceholderButton: BsPrefixRefForwardingComponent<'button', PlaceholderButtonProps>;
|
|
8
|
-
export default PlaceholderButton;
|
package/cjs/PopoverBody.d.ts
DELETED
package/cjs/PopoverHeader.d.ts
DELETED
package/cjs/Ratio.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BsPrefixProps } from './helpers';
|
|
3
|
-
export declare type AspectRatio = '1x1' | '4x3' | '16x9' | '21x9' | string;
|
|
4
|
-
export interface RatioProps extends BsPrefixProps, React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
children: React.ReactChild;
|
|
6
|
-
aspectRatio?: AspectRatio | number;
|
|
7
|
-
}
|
|
8
|
-
declare const Ratio: React.ForwardRefExoticComponent<RatioProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
export default Ratio;
|
package/cjs/ToastContainer.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
export declare type ToastPosition = 'top-start' | 'top-center' | 'top-end' | 'middle-start' | 'middle-center' | 'middle-end' | 'bottom-start' | 'bottom-center' | 'bottom-end';
|
|
4
|
-
export interface ToastContainerProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
5
|
-
position?: ToastPosition;
|
|
6
|
-
}
|
|
7
|
-
declare const ToastContainer: BsPrefixRefForwardingComponent<'div', ToastContainerProps>;
|
|
8
|
-
export default ToastContainer;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Transition, { TransitionProps, TransitionStatus } from 'react-transition-group/Transition';
|
|
3
|
-
export declare type TransitionWrapperProps = TransitionProps & {
|
|
4
|
-
childRef?: React.Ref<unknown>;
|
|
5
|
-
children: React.ReactElement | ((status: TransitionStatus, props: Record<string, unknown>) => React.ReactNode);
|
|
6
|
-
};
|
|
7
|
-
declare const TransitionWrapper: React.ForwardRefExoticComponent<Pick<TransitionWrapperProps, string | number> & React.RefAttributes<Transition<any>>>;
|
|
8
|
-
export default TransitionWrapper;
|
package/cjs/safeFindDOMNode.d.ts
DELETED
package/cjs/usePlaceholder.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ColProps } from './Col';
|
|
2
|
-
import { Variant } from './types';
|
|
3
|
-
export declare type PlaceholderAnimation = 'glow' | 'wave';
|
|
4
|
-
export declare type PlaceholderSize = 'xs' | 'sm' | 'lg';
|
|
5
|
-
export interface UsePlaceholderProps extends Omit<ColProps, 'as'> {
|
|
6
|
-
animation?: PlaceholderAnimation;
|
|
7
|
-
bg?: Variant;
|
|
8
|
-
size?: PlaceholderSize;
|
|
9
|
-
}
|
|
10
|
-
export default function usePlaceholder({ animation, bg, bsPrefix, size, ...props }: UsePlaceholderProps): any;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { CloseButtonVariant } from './CloseButton';
|
|
3
|
-
export interface AbstractModalHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
closeLabel?: string;
|
|
5
|
-
closeVariant?: CloseButtonVariant;
|
|
6
|
-
closeButton?: boolean;
|
|
7
|
-
onHide?: () => void;
|
|
8
|
-
}
|
|
9
|
-
declare const AbstractModalHeader: React.ForwardRefExoticComponent<AbstractModalHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
export default AbstractModalHeader;
|
package/esm/AccordionBody.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BsPrefixRefForwardingComponent, BsPrefixProps } from './helpers';
|
|
3
|
-
export interface AccordionBodyProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
-
}
|
|
5
|
-
declare const AccordionBody: BsPrefixRefForwardingComponent<'div', AccordionBodyProps>;
|
|
6
|
-
export default AccordionBody;
|
package/esm/AccordionButton.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
declare type EventHandler = React.EventHandler<React.SyntheticEvent>;
|
|
4
|
-
export interface AccordionButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, BsPrefixProps {
|
|
5
|
-
}
|
|
6
|
-
export declare function useAccordionButton(eventKey: string, onClick?: EventHandler): EventHandler;
|
|
7
|
-
declare const AccordionButton: BsPrefixRefForwardingComponent<'div', AccordionButtonProps>;
|
|
8
|
-
export default AccordionButton;
|
package/esm/AccordionHeader.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BsPrefixRefForwardingComponent, BsPrefixProps } from './helpers';
|
|
3
|
-
export interface AccordionHeaderProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
-
}
|
|
5
|
-
declare const AccordionHeader: BsPrefixRefForwardingComponent<'h2', AccordionHeaderProps>;
|
|
6
|
-
export default AccordionHeader;
|
package/esm/AccordionItem.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BsPrefixRefForwardingComponent, BsPrefixProps } from './helpers';
|
|
3
|
-
export interface AccordionItemProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
-
eventKey: string;
|
|
5
|
-
}
|
|
6
|
-
declare const AccordionItem: BsPrefixRefForwardingComponent<'div', AccordionItemProps>;
|
|
7
|
-
export default AccordionItem;
|
package/esm/Anchor.d.ts
DELETED
package/esm/CardHeader.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
export interface CardHeaderProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
4
|
-
}
|
|
5
|
-
declare const CardHeader: BsPrefixRefForwardingComponent<'div', CardHeaderProps>;
|
|
6
|
-
export default CardHeader;
|
package/esm/DropdownContext.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AlignType } from './types';
|
|
3
|
-
export declare type DropDirection = 'up' | 'start' | 'end' | 'down';
|
|
4
|
-
export declare type DropdownContextValue = {
|
|
5
|
-
align?: AlignType;
|
|
6
|
-
drop?: DropDirection;
|
|
7
|
-
isRTL?: boolean;
|
|
8
|
-
};
|
|
9
|
-
declare const DropdownContext: React.Context<DropdownContextValue>;
|
|
10
|
-
export default DropdownContext;
|
package/esm/FloatingLabel.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { FormGroupProps } from './FormGroup';
|
|
3
|
-
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
4
|
-
export interface FloatingLabelProps extends FormGroupProps, BsPrefixProps {
|
|
5
|
-
controlId?: string;
|
|
6
|
-
label: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
declare const FloatingLabel: BsPrefixRefForwardingComponent<'div', FloatingLabelProps>;
|
|
9
|
-
export default FloatingLabel;
|
package/esm/FormFloating.d.ts
DELETED
package/esm/FormRange.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BsPrefixOnlyProps } from './helpers';
|
|
3
|
-
export interface FormRangeProps extends BsPrefixOnlyProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
4
|
-
}
|
|
5
|
-
declare const FormRange: React.ForwardRefExoticComponent<FormRangeProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
|
-
export default FormRange;
|
package/esm/FormSelect.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BsPrefixOnlyProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
export interface FormSelectProps extends BsPrefixOnlyProps, React.HTMLAttributes<HTMLSelectElement> {
|
|
4
|
-
htmlSize?: number;
|
|
5
|
-
size?: 'sm' | 'lg';
|
|
6
|
-
isValid?: boolean;
|
|
7
|
-
isInvalid?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const FormSelect: BsPrefixRefForwardingComponent<'select', FormSelectProps>;
|
|
10
|
-
export default FormSelect;
|
package/esm/Offcanvas.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ModalProps as BaseModalProps } from '@restart/ui/Modal';
|
|
3
|
-
import { BsPrefixRefForwardingComponent } from './helpers';
|
|
4
|
-
export declare type OffcanvasPlacement = 'start' | 'end' | 'top' | 'bottom';
|
|
5
|
-
export interface OffcanvasProps extends Omit<BaseModalProps, 'role' | 'renderBackdrop' | 'renderDialog' | 'transition' | 'backdrop' | 'backdropTransition'> {
|
|
6
|
-
bsPrefix?: string;
|
|
7
|
-
backdropClassName?: string;
|
|
8
|
-
scroll?: boolean;
|
|
9
|
-
placement?: OffcanvasPlacement;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: BsPrefixRefForwardingComponent<"div", OffcanvasProps> & {
|
|
12
|
-
Body: BsPrefixRefForwardingComponent<"div", unknown>;
|
|
13
|
-
Header: React.ForwardRefExoticComponent<import("./OffcanvasHeader").OffcanvasHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
Title: BsPrefixRefForwardingComponent<React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>>, unknown>;
|
|
15
|
-
};
|
|
16
|
-
export default _default;
|
package/esm/OffcanvasBody.d.ts
DELETED
package/esm/OffcanvasHeader.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AbstractModalHeaderProps } from './AbstractModalHeader';
|
|
3
|
-
import { BsPrefixOnlyProps } from './helpers';
|
|
4
|
-
export interface OffcanvasHeaderProps extends AbstractModalHeaderProps, BsPrefixOnlyProps {
|
|
5
|
-
}
|
|
6
|
-
declare const OffcanvasHeader: React.ForwardRefExoticComponent<OffcanvasHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
export default OffcanvasHeader;
|
package/esm/OffcanvasTitle.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const _default: import("./helpers").BsPrefixRefForwardingComponent<import("react").ForwardRefExoticComponent<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & import("react").RefAttributes<HTMLDivElement>>, unknown>;
|
|
3
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import Transition from 'react-transition-group/Transition';
|
|
3
|
-
import { TransitionCallbacks } from '@restart/ui/types';
|
|
4
|
-
import { BsPrefixOnlyProps } from './helpers';
|
|
5
|
-
export interface OffcanvasTogglingProps extends TransitionCallbacks, BsPrefixOnlyProps {
|
|
6
|
-
className?: string;
|
|
7
|
-
in?: boolean;
|
|
8
|
-
mountOnEnter?: boolean;
|
|
9
|
-
unmountOnExit?: boolean;
|
|
10
|
-
appear?: boolean;
|
|
11
|
-
timeout?: number;
|
|
12
|
-
children: React.ReactElement;
|
|
13
|
-
}
|
|
14
|
-
declare const OffcanvasToggling: React.ForwardRefExoticComponent<OffcanvasTogglingProps & React.RefAttributes<Transition<any>>>;
|
|
15
|
-
export default OffcanvasToggling;
|
package/esm/Placeholder.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
import { UsePlaceholderProps } from './usePlaceholder';
|
|
3
|
-
export interface PlaceholderProps extends UsePlaceholderProps, BsPrefixProps {
|
|
4
|
-
}
|
|
5
|
-
declare const _default: BsPrefixRefForwardingComponent<"span", PlaceholderProps> & {
|
|
6
|
-
Button: BsPrefixRefForwardingComponent<"button", import("./PlaceholderButton").PlaceholderButtonProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
import { UsePlaceholderProps } from './usePlaceholder';
|
|
3
|
-
import { ButtonVariant } from './types';
|
|
4
|
-
export interface PlaceholderButtonProps extends UsePlaceholderProps {
|
|
5
|
-
variant?: ButtonVariant;
|
|
6
|
-
}
|
|
7
|
-
declare const PlaceholderButton: BsPrefixRefForwardingComponent<'button', PlaceholderButtonProps>;
|
|
8
|
-
export default PlaceholderButton;
|
package/esm/PopoverBody.d.ts
DELETED
package/esm/PopoverHeader.d.ts
DELETED
package/esm/Ratio.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BsPrefixProps } from './helpers';
|
|
3
|
-
export declare type AspectRatio = '1x1' | '4x3' | '16x9' | '21x9' | string;
|
|
4
|
-
export interface RatioProps extends BsPrefixProps, React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
children: React.ReactChild;
|
|
6
|
-
aspectRatio?: AspectRatio | number;
|
|
7
|
-
}
|
|
8
|
-
declare const Ratio: React.ForwardRefExoticComponent<RatioProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
export default Ratio;
|
package/esm/ToastContainer.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
export declare type ToastPosition = 'top-start' | 'top-center' | 'top-end' | 'middle-start' | 'middle-center' | 'middle-end' | 'bottom-start' | 'bottom-center' | 'bottom-end';
|
|
4
|
-
export interface ToastContainerProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
5
|
-
position?: ToastPosition;
|
|
6
|
-
}
|
|
7
|
-
declare const ToastContainer: BsPrefixRefForwardingComponent<'div', ToastContainerProps>;
|
|
8
|
-
export default ToastContainer;
|