react-bootstrap 2.0.0-rc.0 → 2.0.2
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/NavbarOffcanvas/package.json +7 -0
- package/README.md +1 -1
- package/cjs/AccordionButton.js +1 -1
- package/cjs/BootstrapModalManager.js +1 -1
- package/cjs/Col.js +1 -1
- package/cjs/DropdownMenu.js +1 -1
- package/cjs/ElementChildren.js +1 -1
- package/cjs/FormSelect.d.ts +1 -1
- package/cjs/Image.js +1 -1
- package/cjs/ListGroup.d.ts +1 -0
- package/cjs/ListGroup.js +2 -1
- package/cjs/Navbar.d.ts +2 -1
- package/cjs/Navbar.js +5 -2
- package/cjs/NavbarOffcanvas.d.ts +4 -0
- package/cjs/NavbarOffcanvas.js +31 -0
- package/cjs/Offcanvas.js +10 -2
- package/cjs/PageItem.js +1 -1
- package/cjs/ThemeProvider.js +3 -2
- package/cjs/Toast.d.ts +1 -1
- package/cjs/ToastContext.d.ts +1 -1
- package/cjs/createUtilityClasses.js +2 -2
- package/cjs/helpers.js +1 -1
- package/cjs/index.js +1 -1
- package/dist/react-bootstrap.js +606 -571
- package/dist/react-bootstrap.min.js +1 -1
- package/esm/FormSelect.d.ts +1 -1
- package/esm/ListGroup.d.ts +1 -0
- package/esm/ListGroup.js +2 -1
- package/esm/Navbar.d.ts +2 -1
- package/esm/Navbar.js +4 -2
- package/esm/NavbarOffcanvas.d.ts +4 -0
- package/esm/NavbarOffcanvas.js +15 -0
- package/esm/Offcanvas.js +10 -3
- package/esm/Toast.d.ts +1 -1
- package/esm/ToastContext.d.ts +1 -1
- package/esm/ToastContext.js +1 -2
- package/package.json +2 -2
- package/cjs/AbstractNav.d.ts +0 -15
- package/cjs/AbstractNavItem.d.ts +0 -19
- package/cjs/AccordionToggle.d.ts +0 -11
- package/cjs/CardColumns.d.ts +0 -2
- package/cjs/CardContext.d.ts +0 -6
- package/cjs/CardDeck.d.ts +0 -2
- package/cjs/FormFile.d.ts +0 -23
- package/cjs/FormFileInput.d.ts +0 -10
- package/cjs/FormFileLabel.d.ts +0 -7
- package/cjs/Jumbotron.d.ts +0 -7
- package/cjs/Media.d.ts +0 -8
- package/cjs/PopoverContent.d.ts +0 -5
- package/cjs/PopoverTitle.d.ts +0 -5
- package/cjs/ResponsiveEmbed.d.ts +0 -9
- package/cjs/SafeAnchor.d.ts +0 -17
- package/cjs/SelectableContext.d.ts +0 -5
- package/cjs/TabContext.d.ts +0 -12
- package/cjs/usePopperMarginModifiers.d.ts +0 -4
- package/esm/AbstractNav.d.ts +0 -15
- package/esm/AbstractNavItem.d.ts +0 -19
- package/esm/AccordionToggle.d.ts +0 -11
- package/esm/CardColumns.d.ts +0 -2
- package/esm/CardContext.d.ts +0 -6
- package/esm/CardDeck.d.ts +0 -2
- package/esm/FormFile.d.ts +0 -23
- package/esm/FormFileInput.d.ts +0 -10
- package/esm/FormFileLabel.d.ts +0 -7
- package/esm/Jumbotron.d.ts +0 -7
- package/esm/Media.d.ts +0 -8
- package/esm/PopoverContent.d.ts +0 -5
- package/esm/PopoverTitle.d.ts +0 -5
- package/esm/ResponsiveEmbed.d.ts +0 -9
- package/esm/SafeAnchor.d.ts +0 -17
- package/esm/SelectableContext.d.ts +0 -5
- package/esm/TabContext.d.ts +0 -12
- package/esm/usePopperMarginModifiers.d.ts +0 -4
package/esm/ListGroup.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export interface ListGroupProps extends BsPrefixProps, BaseNavProps {
|
|
|
5
5
|
variant?: 'flush';
|
|
6
6
|
horizontal?: boolean | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
7
7
|
defaultActiveKey?: EventKey;
|
|
8
|
+
numbered?: boolean;
|
|
8
9
|
}
|
|
9
10
|
declare const _default: BsPrefixRefForwardingComponent<"div", ListGroupProps> & {
|
|
10
11
|
Item: BsPrefixRefForwardingComponent<"a", import("./ListGroupItem").ListGroupItemProps>;
|
package/esm/ListGroup.js
CHANGED
|
@@ -12,6 +12,7 @@ const ListGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
12
12
|
bsPrefix: initialBsPrefix,
|
|
13
13
|
variant,
|
|
14
14
|
horizontal,
|
|
15
|
+
numbered,
|
|
15
16
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
16
17
|
as = 'div',
|
|
17
18
|
...controlledProps
|
|
@@ -30,7 +31,7 @@ const ListGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
30
31
|
ref: ref,
|
|
31
32
|
...controlledProps,
|
|
32
33
|
as: as,
|
|
33
|
-
className: classNames(className, bsPrefix, variant && `${bsPrefix}-${variant}`, horizontalVariant && `${bsPrefix}-${horizontalVariant}`)
|
|
34
|
+
className: classNames(className, bsPrefix, variant && `${bsPrefix}-${variant}`, horizontalVariant && `${bsPrefix}-${horizontalVariant}`, numbered && `${bsPrefix}-numbered`)
|
|
34
35
|
});
|
|
35
36
|
});
|
|
36
37
|
ListGroup.displayName = 'ListGroup';
|
package/esm/Navbar.d.ts
CHANGED
|
@@ -14,8 +14,9 @@ export interface NavbarProps extends BsPrefixProps, Omit<React.HTMLAttributes<HT
|
|
|
14
14
|
}
|
|
15
15
|
declare const _default: BsPrefixRefForwardingComponent<"nav", NavbarProps> & {
|
|
16
16
|
Brand: BsPrefixRefForwardingComponent<"a", import("./NavbarBrand").NavbarBrandProps>;
|
|
17
|
-
Toggle: BsPrefixRefForwardingComponent<"button", import("./NavbarToggle").NavbarToggleProps>;
|
|
18
17
|
Collapse: React.ForwardRefExoticComponent<import("./NavbarCollapse").NavbarCollapseProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
Offcanvas: React.ForwardRefExoticComponent<Pick<import("./Offcanvas").OffcanvasProps, keyof import("./Offcanvas").OffcanvasProps> & React.RefAttributes<HTMLDivElement>>;
|
|
19
19
|
Text: BsPrefixRefForwardingComponent<"span", unknown>;
|
|
20
|
+
Toggle: BsPrefixRefForwardingComponent<"button", import("./NavbarToggle").NavbarToggleProps>;
|
|
20
21
|
};
|
|
21
22
|
export default _default;
|
package/esm/Navbar.js
CHANGED
|
@@ -7,6 +7,7 @@ import createWithBsPrefix from './createWithBsPrefix';
|
|
|
7
7
|
import NavbarBrand from './NavbarBrand';
|
|
8
8
|
import NavbarCollapse from './NavbarCollapse';
|
|
9
9
|
import NavbarToggle from './NavbarToggle';
|
|
10
|
+
import NavbarOffcanvas from './NavbarOffcanvas';
|
|
10
11
|
import { useBootstrapPrefix } from './ThemeProvider';
|
|
11
12
|
import NavbarContext from './NavbarContext';
|
|
12
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -75,7 +76,8 @@ Navbar.defaultProps = defaultProps;
|
|
|
75
76
|
Navbar.displayName = 'Navbar';
|
|
76
77
|
export default Object.assign(Navbar, {
|
|
77
78
|
Brand: NavbarBrand,
|
|
78
|
-
Toggle: NavbarToggle,
|
|
79
79
|
Collapse: NavbarCollapse,
|
|
80
|
-
|
|
80
|
+
Offcanvas: NavbarOffcanvas,
|
|
81
|
+
Text: NavbarText,
|
|
82
|
+
Toggle: NavbarToggle
|
|
81
83
|
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useContext } from 'react';
|
|
3
|
+
import Offcanvas from './Offcanvas';
|
|
4
|
+
import NavbarContext from './NavbarContext';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const NavbarOffcanvas = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
7
|
+
const context = useContext(NavbarContext);
|
|
8
|
+
return /*#__PURE__*/_jsx(Offcanvas, {
|
|
9
|
+
ref: ref,
|
|
10
|
+
show: !!(context != null && context.expanded),
|
|
11
|
+
...props
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
NavbarOffcanvas.displayName = 'NavbarOffcanvas';
|
|
15
|
+
export default NavbarOffcanvas;
|
package/esm/Offcanvas.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import classNames from 'classnames';
|
|
2
2
|
import useEventCallback from '@restart/hooks/useEventCallback';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import { useCallback, useMemo, useRef } from 'react';
|
|
4
|
+
import { useCallback, useContext, useMemo, useRef } from 'react';
|
|
5
5
|
import BaseModal from '@restart/ui/Modal';
|
|
6
6
|
import Fade from './Fade';
|
|
7
7
|
import OffcanvasBody from './OffcanvasBody';
|
|
8
8
|
import OffcanvasToggling from './OffcanvasToggling';
|
|
9
9
|
import ModalContext from './ModalContext';
|
|
10
|
+
import NavbarContext from './NavbarContext';
|
|
10
11
|
import OffcanvasHeader from './OffcanvasHeader';
|
|
11
12
|
import OffcanvasTitle from './OffcanvasTitle';
|
|
12
13
|
import { useBootstrapPrefix } from './ThemeProvider';
|
|
@@ -64,8 +65,14 @@ const Offcanvas = /*#__PURE__*/React.forwardRef(({
|
|
|
64
65
|
...props
|
|
65
66
|
}, ref) => {
|
|
66
67
|
const modalManager = useRef();
|
|
67
|
-
const handleHide = useEventCallback(onHide);
|
|
68
68
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'offcanvas');
|
|
69
|
+
const {
|
|
70
|
+
onToggle
|
|
71
|
+
} = useContext(NavbarContext) || {};
|
|
72
|
+
const handleHide = useEventCallback(() => {
|
|
73
|
+
onToggle == null ? void 0 : onToggle();
|
|
74
|
+
onHide == null ? void 0 : onHide();
|
|
75
|
+
});
|
|
69
76
|
const modalContext = useMemo(() => ({
|
|
70
77
|
onHide: handleHide
|
|
71
78
|
}), [handleHide]);
|
|
@@ -122,7 +129,7 @@ const Offcanvas = /*#__PURE__*/React.forwardRef(({
|
|
|
122
129
|
restoreFocusOptions: restoreFocusOptions,
|
|
123
130
|
onEscapeKeyDown: onEscapeKeyDown,
|
|
124
131
|
onShow: onShow,
|
|
125
|
-
onHide:
|
|
132
|
+
onHide: handleHide,
|
|
126
133
|
onEnter: handleEnter,
|
|
127
134
|
onEntering: onEntering,
|
|
128
135
|
onEntered: onEntered,
|
package/esm/Toast.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface ToastProps extends BsPrefixProps, React.HTMLAttributes<HTMLElem
|
|
|
6
6
|
animation?: boolean;
|
|
7
7
|
autohide?: boolean;
|
|
8
8
|
delay?: number;
|
|
9
|
-
onClose?: () => void;
|
|
9
|
+
onClose?: (e?: React.MouseEvent | React.KeyboardEvent) => void;
|
|
10
10
|
show?: boolean;
|
|
11
11
|
transition?: TransitionComponent;
|
|
12
12
|
bg?: Variant;
|
package/esm/ToastContext.d.ts
CHANGED
package/esm/ToastContext.js
CHANGED
package/package.json
CHANGED
package/cjs/AbstractNav.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
interface AbstractNavProps {
|
|
4
|
-
activeKey?: any;
|
|
5
|
-
as?: React.ElementType;
|
|
6
|
-
getControlledId?: any;
|
|
7
|
-
getControllerId?: any;
|
|
8
|
-
onKeyDown?: any;
|
|
9
|
-
onSelect?: any;
|
|
10
|
-
parentOnSelect?: any;
|
|
11
|
-
role?: string;
|
|
12
|
-
}
|
|
13
|
-
declare type AbstractNav = BsPrefixRefForwardingComponent<'ul', AbstractNavProps>;
|
|
14
|
-
declare const AbstractNav: AbstractNav;
|
|
15
|
-
export default AbstractNav;
|
package/cjs/AbstractNavItem.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
import { EventKey } from './types';
|
|
4
|
-
interface AbstractNavItemProps {
|
|
5
|
-
active?: boolean;
|
|
6
|
-
as: React.ElementType;
|
|
7
|
-
className?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
eventKey?: EventKey;
|
|
10
|
-
href?: string;
|
|
11
|
-
role?: string;
|
|
12
|
-
id?: string;
|
|
13
|
-
tabIndex?: number;
|
|
14
|
-
onClick?: (e: any) => void;
|
|
15
|
-
onSelect?: (navKey: string, e: any) => void;
|
|
16
|
-
}
|
|
17
|
-
declare type AbstractNavItem = BsPrefixRefForwardingComponent<'div', AbstractNavItemProps>;
|
|
18
|
-
declare const AbstractNavItem: AbstractNavItem;
|
|
19
|
-
export default AbstractNavItem;
|
package/cjs/AccordionToggle.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
declare type EventHandler = React.EventHandler<React.SyntheticEvent>;
|
|
4
|
-
export interface AccordionToggleProps extends BsPrefixPropsWithChildren {
|
|
5
|
-
eventKey: string;
|
|
6
|
-
onClick?: EventHandler;
|
|
7
|
-
}
|
|
8
|
-
declare type AccordionToggle = BsPrefixRefForwardingComponent<'div', AccordionToggleProps>;
|
|
9
|
-
export declare function useAccordionToggle(eventKey: string, onClick?: EventHandler): EventHandler;
|
|
10
|
-
declare const AccordionToggle: AccordionToggle;
|
|
11
|
-
export default AccordionToggle;
|
package/cjs/CardColumns.d.ts
DELETED
package/cjs/CardContext.d.ts
DELETED
package/cjs/CardDeck.d.ts
DELETED
package/cjs/FormFile.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import FormFileInput from './FormFileInput';
|
|
3
|
-
import FormFileLabel from './FormFileLabel';
|
|
4
|
-
import { BsCustomPrefixProps, BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
5
|
-
export interface FormFileProps extends BsPrefixPropsWithChildren, BsCustomPrefixProps, Pick<React.HTMLAttributes<HTMLElement>, 'style'> {
|
|
6
|
-
inputAs?: React.ElementType;
|
|
7
|
-
id?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
label?: React.ReactNode;
|
|
10
|
-
custom?: boolean;
|
|
11
|
-
isValid?: boolean;
|
|
12
|
-
isInvalid?: boolean;
|
|
13
|
-
feedback?: React.ReactNode;
|
|
14
|
-
feedbackTooltip?: boolean;
|
|
15
|
-
lang?: string;
|
|
16
|
-
'data-browse'?: any;
|
|
17
|
-
}
|
|
18
|
-
declare type FormFile = BsPrefixRefForwardingComponent<'input', FormFileProps> & {
|
|
19
|
-
Input: typeof FormFileInput;
|
|
20
|
-
Label: typeof FormFileLabel;
|
|
21
|
-
};
|
|
22
|
-
declare const FormFile: FormFile;
|
|
23
|
-
export default FormFile;
|
package/cjs/FormFileInput.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BsCustomPrefixProps, BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
export interface FormFileInputProps extends BsPrefixProps, BsCustomPrefixProps {
|
|
3
|
-
id?: string;
|
|
4
|
-
isValid?: boolean;
|
|
5
|
-
isInvalid?: boolean;
|
|
6
|
-
lang?: string;
|
|
7
|
-
}
|
|
8
|
-
declare type FormFileInput = BsPrefixRefForwardingComponent<'input', FormFileInputProps>;
|
|
9
|
-
declare const FormFileInput: FormFileInput;
|
|
10
|
-
export default FormFileInput;
|
package/cjs/FormFileLabel.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BsCustomPrefixProps, BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
export interface FormFileLabelProps extends BsPrefixProps, BsCustomPrefixProps {
|
|
3
|
-
htmlFor?: string;
|
|
4
|
-
}
|
|
5
|
-
declare type FormFileLabel = BsPrefixRefForwardingComponent<'label', FormFileLabelProps>;
|
|
6
|
-
declare const FormFileLabel: FormFileLabel;
|
|
7
|
-
export default FormFileLabel;
|
package/cjs/Jumbotron.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
export interface JumbotronProps extends BsPrefixProps {
|
|
3
|
-
fluid?: boolean;
|
|
4
|
-
}
|
|
5
|
-
declare type Jumbotron = BsPrefixRefForwardingComponent<'div', JumbotronProps>;
|
|
6
|
-
declare const Jumbotron: Jumbotron;
|
|
7
|
-
export default Jumbotron;
|
package/cjs/Media.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
declare const MediaBody: BsPrefixRefForwardingComponent<"div", unknown>;
|
|
3
|
-
declare type MediaProps = BsPrefixProps;
|
|
4
|
-
declare type Media = BsPrefixRefForwardingComponent<'div', MediaProps> & {
|
|
5
|
-
Body: typeof MediaBody;
|
|
6
|
-
};
|
|
7
|
-
declare const Media: Media;
|
|
8
|
-
export default Media;
|
package/cjs/PopoverContent.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
declare type PopoverContentProps = BsPrefixPropsWithChildren;
|
|
3
|
-
declare type PopoverContent = BsPrefixRefForwardingComponent<'div', PopoverContentProps>;
|
|
4
|
-
declare const PopoverContent: PopoverContent;
|
|
5
|
-
export default PopoverContent;
|
package/cjs/PopoverTitle.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
declare type PopoverTitleProps = BsPrefixPropsWithChildren;
|
|
3
|
-
declare type PopoverTitle = BsPrefixRefForwardingComponent<'div', PopoverTitleProps>;
|
|
4
|
-
declare const PopoverTitle: PopoverTitle;
|
|
5
|
-
export default PopoverTitle;
|
package/cjs/ResponsiveEmbed.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
export interface ResponsiveEmbedProps extends BsPrefixPropsWithChildren {
|
|
4
|
-
children: React.ReactChild;
|
|
5
|
-
aspectRatio?: '21by9' | '16by9' | '4by3' | '1by1';
|
|
6
|
-
}
|
|
7
|
-
declare type ResponsiveEmbed = BsPrefixRefForwardingComponent<'div', ResponsiveEmbedProps>;
|
|
8
|
-
declare const ResponsiveEmbed: ResponsiveEmbed;
|
|
9
|
-
export default ResponsiveEmbed;
|
package/cjs/SafeAnchor.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
export interface SafeAnchorProps extends React.HTMLAttributes<HTMLElement>, BsPrefixProps {
|
|
4
|
-
href?: string;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
tabIndex?: number;
|
|
7
|
-
}
|
|
8
|
-
declare type SafeAnchor = BsPrefixRefForwardingComponent<'a', SafeAnchorProps>;
|
|
9
|
-
/**
|
|
10
|
-
* There are situations due to browser quirks or Bootstrap CSS where
|
|
11
|
-
* an anchor tag is needed, when semantically a button tag is the
|
|
12
|
-
* better choice. SafeAnchor ensures that when an anchor is used like a
|
|
13
|
-
* button its accessible. It also emulates input `disabled` behavior for
|
|
14
|
-
* links, which is usually desirable for Buttons, NavItems, DropdownItems, etc.
|
|
15
|
-
*/
|
|
16
|
-
declare const SafeAnchor: SafeAnchor;
|
|
17
|
-
export default SafeAnchor;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type SelectableContextType = (key: string | null, event: any) => void;
|
|
3
|
-
declare const SelectableContext: React.Context<SelectableContextType | null>;
|
|
4
|
-
export declare const makeEventKey: (eventKey?: string | number | null | undefined, href?: string | null) => string | null;
|
|
5
|
-
export default SelectableContext;
|
package/cjs/TabContext.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface TabContextType {
|
|
3
|
-
onSelect: any;
|
|
4
|
-
activeKey: any;
|
|
5
|
-
transition: any;
|
|
6
|
-
mountOnEnter: boolean;
|
|
7
|
-
unmountOnExit: boolean;
|
|
8
|
-
getControlledId: (key: any) => any;
|
|
9
|
-
getControllerId: (key: any) => any;
|
|
10
|
-
}
|
|
11
|
-
declare const TabContext: React.Context<TabContextType | null>;
|
|
12
|
-
export default TabContext;
|
package/esm/AbstractNav.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
interface AbstractNavProps {
|
|
4
|
-
activeKey?: any;
|
|
5
|
-
as?: React.ElementType;
|
|
6
|
-
getControlledId?: any;
|
|
7
|
-
getControllerId?: any;
|
|
8
|
-
onKeyDown?: any;
|
|
9
|
-
onSelect?: any;
|
|
10
|
-
parentOnSelect?: any;
|
|
11
|
-
role?: string;
|
|
12
|
-
}
|
|
13
|
-
declare type AbstractNav = BsPrefixRefForwardingComponent<'ul', AbstractNavProps>;
|
|
14
|
-
declare const AbstractNav: AbstractNav;
|
|
15
|
-
export default AbstractNav;
|
package/esm/AbstractNavItem.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
import { EventKey } from './types';
|
|
4
|
-
interface AbstractNavItemProps {
|
|
5
|
-
active?: boolean;
|
|
6
|
-
as: React.ElementType;
|
|
7
|
-
className?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
eventKey?: EventKey;
|
|
10
|
-
href?: string;
|
|
11
|
-
role?: string;
|
|
12
|
-
id?: string;
|
|
13
|
-
tabIndex?: number;
|
|
14
|
-
onClick?: (e: any) => void;
|
|
15
|
-
onSelect?: (navKey: string, e: any) => void;
|
|
16
|
-
}
|
|
17
|
-
declare type AbstractNavItem = BsPrefixRefForwardingComponent<'div', AbstractNavItemProps>;
|
|
18
|
-
declare const AbstractNavItem: AbstractNavItem;
|
|
19
|
-
export default AbstractNavItem;
|
package/esm/AccordionToggle.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
declare type EventHandler = React.EventHandler<React.SyntheticEvent>;
|
|
4
|
-
export interface AccordionToggleProps extends BsPrefixPropsWithChildren {
|
|
5
|
-
eventKey: string;
|
|
6
|
-
onClick?: EventHandler;
|
|
7
|
-
}
|
|
8
|
-
declare type AccordionToggle = BsPrefixRefForwardingComponent<'div', AccordionToggleProps>;
|
|
9
|
-
export declare function useAccordionToggle(eventKey: string, onClick?: EventHandler): EventHandler;
|
|
10
|
-
declare const AccordionToggle: AccordionToggle;
|
|
11
|
-
export default AccordionToggle;
|
package/esm/CardColumns.d.ts
DELETED
package/esm/CardContext.d.ts
DELETED
package/esm/CardDeck.d.ts
DELETED
package/esm/FormFile.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import FormFileInput from './FormFileInput';
|
|
3
|
-
import FormFileLabel from './FormFileLabel';
|
|
4
|
-
import { BsCustomPrefixProps, BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
5
|
-
export interface FormFileProps extends BsPrefixPropsWithChildren, BsCustomPrefixProps, Pick<React.HTMLAttributes<HTMLElement>, 'style'> {
|
|
6
|
-
inputAs?: React.ElementType;
|
|
7
|
-
id?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
label?: React.ReactNode;
|
|
10
|
-
custom?: boolean;
|
|
11
|
-
isValid?: boolean;
|
|
12
|
-
isInvalid?: boolean;
|
|
13
|
-
feedback?: React.ReactNode;
|
|
14
|
-
feedbackTooltip?: boolean;
|
|
15
|
-
lang?: string;
|
|
16
|
-
'data-browse'?: any;
|
|
17
|
-
}
|
|
18
|
-
declare type FormFile = BsPrefixRefForwardingComponent<'input', FormFileProps> & {
|
|
19
|
-
Input: typeof FormFileInput;
|
|
20
|
-
Label: typeof FormFileLabel;
|
|
21
|
-
};
|
|
22
|
-
declare const FormFile: FormFile;
|
|
23
|
-
export default FormFile;
|
package/esm/FormFileInput.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BsCustomPrefixProps, BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
export interface FormFileInputProps extends BsPrefixProps, BsCustomPrefixProps {
|
|
3
|
-
id?: string;
|
|
4
|
-
isValid?: boolean;
|
|
5
|
-
isInvalid?: boolean;
|
|
6
|
-
lang?: string;
|
|
7
|
-
}
|
|
8
|
-
declare type FormFileInput = BsPrefixRefForwardingComponent<'input', FormFileInputProps>;
|
|
9
|
-
declare const FormFileInput: FormFileInput;
|
|
10
|
-
export default FormFileInput;
|
package/esm/FormFileLabel.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BsCustomPrefixProps, BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
export interface FormFileLabelProps extends BsPrefixProps, BsCustomPrefixProps {
|
|
3
|
-
htmlFor?: string;
|
|
4
|
-
}
|
|
5
|
-
declare type FormFileLabel = BsPrefixRefForwardingComponent<'label', FormFileLabelProps>;
|
|
6
|
-
declare const FormFileLabel: FormFileLabel;
|
|
7
|
-
export default FormFileLabel;
|
package/esm/Jumbotron.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
export interface JumbotronProps extends BsPrefixProps {
|
|
3
|
-
fluid?: boolean;
|
|
4
|
-
}
|
|
5
|
-
declare type Jumbotron = BsPrefixRefForwardingComponent<'div', JumbotronProps>;
|
|
6
|
-
declare const Jumbotron: Jumbotron;
|
|
7
|
-
export default Jumbotron;
|
package/esm/Media.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
declare const MediaBody: BsPrefixRefForwardingComponent<"div", unknown>;
|
|
3
|
-
declare type MediaProps = BsPrefixProps;
|
|
4
|
-
declare type Media = BsPrefixRefForwardingComponent<'div', MediaProps> & {
|
|
5
|
-
Body: typeof MediaBody;
|
|
6
|
-
};
|
|
7
|
-
declare const Media: Media;
|
|
8
|
-
export default Media;
|
package/esm/PopoverContent.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
declare type PopoverContentProps = BsPrefixPropsWithChildren;
|
|
3
|
-
declare type PopoverContent = BsPrefixRefForwardingComponent<'div', PopoverContentProps>;
|
|
4
|
-
declare const PopoverContent: PopoverContent;
|
|
5
|
-
export default PopoverContent;
|
package/esm/PopoverTitle.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
2
|
-
declare type PopoverTitleProps = BsPrefixPropsWithChildren;
|
|
3
|
-
declare type PopoverTitle = BsPrefixRefForwardingComponent<'div', PopoverTitleProps>;
|
|
4
|
-
declare const PopoverTitle: PopoverTitle;
|
|
5
|
-
export default PopoverTitle;
|
package/esm/ResponsiveEmbed.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
export interface ResponsiveEmbedProps extends BsPrefixPropsWithChildren {
|
|
4
|
-
children: React.ReactChild;
|
|
5
|
-
aspectRatio?: '21by9' | '16by9' | '4by3' | '1by1';
|
|
6
|
-
}
|
|
7
|
-
declare type ResponsiveEmbed = BsPrefixRefForwardingComponent<'div', ResponsiveEmbedProps>;
|
|
8
|
-
declare const ResponsiveEmbed: ResponsiveEmbed;
|
|
9
|
-
export default ResponsiveEmbed;
|
package/esm/SafeAnchor.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
export interface SafeAnchorProps extends React.HTMLAttributes<HTMLElement>, BsPrefixProps {
|
|
4
|
-
href?: string;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
tabIndex?: number;
|
|
7
|
-
}
|
|
8
|
-
declare type SafeAnchor = BsPrefixRefForwardingComponent<'a', SafeAnchorProps>;
|
|
9
|
-
/**
|
|
10
|
-
* There are situations due to browser quirks or Bootstrap CSS where
|
|
11
|
-
* an anchor tag is needed, when semantically a button tag is the
|
|
12
|
-
* better choice. SafeAnchor ensures that when an anchor is used like a
|
|
13
|
-
* button its accessible. It also emulates input `disabled` behavior for
|
|
14
|
-
* links, which is usually desirable for Buttons, NavItems, DropdownItems, etc.
|
|
15
|
-
*/
|
|
16
|
-
declare const SafeAnchor: SafeAnchor;
|
|
17
|
-
export default SafeAnchor;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type SelectableContextType = (key: string | null, event: any) => void;
|
|
3
|
-
declare const SelectableContext: React.Context<SelectableContextType | null>;
|
|
4
|
-
export declare const makeEventKey: (eventKey?: string | number | null | undefined, href?: string | null) => string | null;
|
|
5
|
-
export default SelectableContext;
|
package/esm/TabContext.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface TabContextType {
|
|
3
|
-
onSelect: any;
|
|
4
|
-
activeKey: any;
|
|
5
|
-
transition: any;
|
|
6
|
-
mountOnEnter: boolean;
|
|
7
|
-
unmountOnExit: boolean;
|
|
8
|
-
getControlledId: (key: any) => any;
|
|
9
|
-
getControllerId: (key: any) => any;
|
|
10
|
-
}
|
|
11
|
-
declare const TabContext: React.Context<TabContextType | null>;
|
|
12
|
-
export default TabContext;
|