react-bootstrap 2.0.0 → 2.0.4
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/ElementChildren.d.ts +6 -1
- package/cjs/ElementChildren.js +10 -0
- package/cjs/FormCheck.js +4 -2
- package/cjs/FormSelect.d.ts +1 -1
- package/cjs/Modal.d.ts +1 -1
- package/cjs/NavDropdown.d.ts +1 -1
- package/dist/react-bootstrap.js +67 -30
- package/dist/react-bootstrap.min.js +1 -1
- package/esm/ElementChildren.d.ts +6 -1
- package/esm/ElementChildren.js +10 -1
- package/esm/FormCheck.js +3 -2
- package/esm/FormSelect.d.ts +1 -1
- package/esm/Modal.d.ts +1 -1
- package/esm/NavDropdown.d.ts +1 -1
- package/package.json +3 -4
- 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/ElementChildren.js
CHANGED
|
@@ -26,5 +26,14 @@ function forEach(children, func) {
|
|
|
26
26
|
if ( /*#__PURE__*/React.isValidElement(child)) func(child, index++);
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Finds whether a component's `children` prop includes a React element of the
|
|
31
|
+
* specified type.
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
function hasChildOfType(children, type) {
|
|
36
|
+
return React.Children.toArray(children).some(child => /*#__PURE__*/React.isValidElement(child) && child.type === type);
|
|
37
|
+
}
|
|
29
38
|
|
|
30
|
-
export { map, forEach };
|
|
39
|
+
export { map, forEach, hasChildOfType };
|
package/esm/FormCheck.js
CHANGED
|
@@ -6,6 +6,7 @@ import FormCheckInput from './FormCheckInput';
|
|
|
6
6
|
import FormCheckLabel from './FormCheckLabel';
|
|
7
7
|
import FormContext from './FormContext';
|
|
8
8
|
import { useBootstrapPrefix } from './ThemeProvider';
|
|
9
|
+
import { hasChildOfType } from './ElementChildren';
|
|
9
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
11
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
12
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -38,7 +39,7 @@ const FormCheck = /*#__PURE__*/React.forwardRef(({
|
|
|
38
39
|
const innerFormContext = useMemo(() => ({
|
|
39
40
|
controlId: id || controlId
|
|
40
41
|
}), [controlId, id]);
|
|
41
|
-
const hasLabel = label != null && label !== false
|
|
42
|
+
const hasLabel = !children && label != null && label !== false || hasChildOfType(children, FormCheckLabel);
|
|
42
43
|
|
|
43
44
|
const input = /*#__PURE__*/_jsx(FormCheckInput, { ...props,
|
|
44
45
|
type: type === 'switch' ? 'checkbox' : type,
|
|
@@ -53,7 +54,7 @@ const FormCheck = /*#__PURE__*/React.forwardRef(({
|
|
|
53
54
|
value: innerFormContext,
|
|
54
55
|
children: /*#__PURE__*/_jsx("div", {
|
|
55
56
|
style: style,
|
|
56
|
-
className: classNames(className,
|
|
57
|
+
className: classNames(className, hasLabel && bsPrefix, inline && `${bsPrefix}-inline`, type === 'switch' && bsSwitchPrefix),
|
|
57
58
|
children: children || /*#__PURE__*/_jsxs(_Fragment, {
|
|
58
59
|
children: [input, hasLabel && /*#__PURE__*/_jsx(FormCheckLabel, {
|
|
59
60
|
title: title,
|
package/esm/FormSelect.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { BsPrefixOnlyProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
3
|
-
export interface FormSelectProps extends BsPrefixOnlyProps, React.
|
|
3
|
+
export interface FormSelectProps extends BsPrefixOnlyProps, Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
|
|
4
4
|
htmlSize?: number;
|
|
5
5
|
size?: 'sm' | 'lg';
|
|
6
6
|
isValid?: boolean;
|
package/esm/Modal.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { BaseModalProps } from '@restart/ui/Modal';
|
|
3
3
|
import { BsPrefixRefForwardingComponent } from './helpers';
|
|
4
4
|
export interface ModalProps extends Omit<BaseModalProps, 'role' | 'renderBackdrop' | 'renderDialog' | 'transition' | 'backdropTransition' | 'children'> {
|
|
5
5
|
size?: 'sm' | 'lg' | 'xl';
|
package/esm/NavDropdown.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { DropdownProps } from './Dropdown';
|
|
3
3
|
import { DropdownMenuVariant } from './DropdownMenu';
|
|
4
4
|
import { BsPrefixRefForwardingComponent } from './helpers';
|
|
5
|
-
export interface NavDropdownProps extends Omit<DropdownProps, '
|
|
5
|
+
export interface NavDropdownProps extends Omit<DropdownProps, 'title'> {
|
|
6
6
|
title: React.ReactNode;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
active?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-bootstrap",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Bootstrap 5 components built with React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -34,9 +34,8 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@babel/runtime": "^7.14.0",
|
|
37
|
-
"@restart/
|
|
38
|
-
"@restart/
|
|
39
|
-
"@restart/ui": "^0.2.3",
|
|
37
|
+
"@restart/hooks": "^0.4.5",
|
|
38
|
+
"@restart/ui": "^0.2.5",
|
|
40
39
|
"@types/invariant": "^2.2.33",
|
|
41
40
|
"@types/prop-types": "^15.7.3",
|
|
42
41
|
"@types/react": ">=16.14.8",
|
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;
|