react-bootstrap 2.2.3 → 2.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/cjs/Form.d.ts +13 -13
- package/cjs/Navbar.d.ts +1 -1
- package/cjs/Navbar.js +3 -2
- package/cjs/NavbarContext.d.ts +1 -0
- package/cjs/NavbarOffcanvas.d.ts +2 -1
- package/cjs/NavbarOffcanvas.js +56 -2
- package/cjs/PageItem.d.ts +5 -20
- package/cjs/PageItem.js +11 -13
- package/cjs/Pagination.d.ts +5 -20
- package/cjs/ToastContainer.d.ts +1 -0
- package/cjs/ToastContainer.js +2 -1
- package/cjs/TransitionWrapper.d.ts +7 -1
- package/cjs/getTabTransitionComponent.js +3 -1
- package/dist/react-bootstrap.js +342 -267
- package/dist/react-bootstrap.min.js +1 -1
- package/esm/Form.d.ts +13 -13
- package/esm/Navbar.d.ts +1 -1
- package/esm/Navbar.js +3 -2
- package/esm/NavbarContext.d.ts +1 -0
- package/esm/NavbarOffcanvas.d.ts +2 -1
- package/esm/NavbarOffcanvas.js +53 -2
- package/esm/PageItem.d.ts +5 -20
- package/esm/PageItem.js +11 -13
- package/esm/Pagination.d.ts +5 -20
- package/esm/ToastContainer.d.ts +1 -0
- package/esm/ToastContainer.js +2 -1
- package/esm/TransitionWrapper.d.ts +7 -1
- package/esm/getTabTransitionComponent.js +2 -1
- package/package.json +7 -5
package/esm/Form.d.ts
CHANGED
|
@@ -72,9 +72,9 @@ declare const _default: BsPrefixRefForwardingComponent<"form", FormProps> & {
|
|
|
72
72
|
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
73
73
|
is?: string | undefined;
|
|
74
74
|
'aria-activedescendant'?: string | undefined;
|
|
75
|
-
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
|
75
|
+
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
76
76
|
'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
|
|
77
|
-
'aria-busy'?: boolean | "true" | "false" | undefined;
|
|
77
|
+
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
78
78
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
79
79
|
'aria-colcount'?: number | undefined;
|
|
80
80
|
'aria-colindex'?: number | undefined;
|
|
@@ -83,36 +83,36 @@ declare const _default: BsPrefixRefForwardingComponent<"form", FormProps> & {
|
|
|
83
83
|
'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
84
84
|
'aria-describedby'?: string | undefined;
|
|
85
85
|
'aria-details'?: string | undefined;
|
|
86
|
-
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
|
86
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
87
87
|
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
88
88
|
'aria-errormessage'?: string | undefined;
|
|
89
|
-
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
89
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
90
90
|
'aria-flowto'?: string | undefined;
|
|
91
|
-
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
|
91
|
+
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
92
92
|
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
93
|
-
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
|
93
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
94
94
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
95
95
|
'aria-keyshortcuts'?: string | undefined;
|
|
96
96
|
'aria-label'?: string | undefined;
|
|
97
97
|
'aria-labelledby'?: string | undefined;
|
|
98
98
|
'aria-level'?: number | undefined;
|
|
99
99
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
100
|
-
'aria-modal'?: boolean | "true" | "false" | undefined;
|
|
101
|
-
'aria-multiline'?: boolean | "true" | "false" | undefined;
|
|
102
|
-
'aria-multiselectable'?: boolean | "true" | "false" | undefined;
|
|
100
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
101
|
+
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
102
|
+
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
103
103
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
104
104
|
'aria-owns'?: string | undefined;
|
|
105
105
|
'aria-placeholder'?: string | undefined;
|
|
106
106
|
'aria-posinset'?: number | undefined;
|
|
107
107
|
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
108
|
-
'aria-readonly'?: boolean | "true" | "false" | undefined;
|
|
108
|
+
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
109
109
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
110
|
-
'aria-required'?: boolean | "true" | "false" | undefined;
|
|
110
|
+
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
111
111
|
'aria-roledescription'?: string | undefined;
|
|
112
112
|
'aria-rowcount'?: number | undefined;
|
|
113
113
|
'aria-rowindex'?: number | undefined;
|
|
114
114
|
'aria-rowspan'?: number | undefined;
|
|
115
|
-
'aria-selected'?: boolean | "true" | "false" | undefined;
|
|
115
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
116
116
|
'aria-setsize'?: number | undefined;
|
|
117
117
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
118
118
|
'aria-valuemax'?: number | undefined;
|
|
@@ -297,7 +297,7 @@ declare const _default: BsPrefixRefForwardingComponent<"form", FormProps> & {
|
|
|
297
297
|
autoComplete?: string | undefined;
|
|
298
298
|
alt?: string | undefined;
|
|
299
299
|
accept?: string | undefined;
|
|
300
|
-
capture?:
|
|
300
|
+
capture?: boolean | "user" | "environment" | undefined;
|
|
301
301
|
checked?: boolean | undefined;
|
|
302
302
|
maxLength?: number | undefined;
|
|
303
303
|
minLength?: number | undefined;
|
package/esm/Navbar.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface NavbarProps extends BsPrefixProps, Omit<React.HTMLAttributes<HT
|
|
|
15
15
|
declare const _default: BsPrefixRefForwardingComponent<"nav", NavbarProps> & {
|
|
16
16
|
Brand: BsPrefixRefForwardingComponent<"a", import("./NavbarBrand").NavbarBrandProps>;
|
|
17
17
|
Collapse: React.ForwardRefExoticComponent<import("./NavbarCollapse").NavbarCollapseProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
-
Offcanvas: React.ForwardRefExoticComponent<Pick<import("./
|
|
18
|
+
Offcanvas: React.ForwardRefExoticComponent<Pick<import("./NavbarOffcanvas").NavbarOffcanvasProps, keyof import("./Offcanvas").OffcanvasProps> & React.RefAttributes<HTMLDivElement>>;
|
|
19
19
|
Text: BsPrefixRefForwardingComponent<"span", unknown>;
|
|
20
20
|
Toggle: BsPrefixRefForwardingComponent<"button", import("./NavbarToggle").NavbarToggleProps>;
|
|
21
21
|
};
|
package/esm/Navbar.js
CHANGED
|
@@ -58,8 +58,9 @@ const Navbar = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
58
58
|
const navbarContext = useMemo(() => ({
|
|
59
59
|
onToggle: () => onToggle == null ? void 0 : onToggle(!expanded),
|
|
60
60
|
bsPrefix,
|
|
61
|
-
expanded: !!expanded
|
|
62
|
-
|
|
61
|
+
expanded: !!expanded,
|
|
62
|
+
expand
|
|
63
|
+
}), [bsPrefix, expanded, expand, onToggle]);
|
|
63
64
|
return /*#__PURE__*/_jsx(NavbarContext.Provider, {
|
|
64
65
|
value: navbarContext,
|
|
65
66
|
children: /*#__PURE__*/_jsx(SelectableContext.Provider, {
|
package/esm/NavbarContext.d.ts
CHANGED
package/esm/NavbarOffcanvas.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { OffcanvasProps } from './Offcanvas';
|
|
3
|
-
declare
|
|
3
|
+
export declare type NavbarOffcanvasProps = Omit<OffcanvasProps, 'show'>;
|
|
4
|
+
declare const NavbarOffcanvas: React.ForwardRefExoticComponent<Pick<NavbarOffcanvasProps, keyof OffcanvasProps> & React.RefAttributes<HTMLDivElement>>;
|
|
4
5
|
export default NavbarOffcanvas;
|
package/esm/NavbarOffcanvas.js
CHANGED
|
@@ -1,13 +1,64 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useContext } from 'react';
|
|
3
|
+
import useBreakpoint from '@restart/hooks/useBreakpoint';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider';
|
|
3
6
|
import Offcanvas from './Offcanvas';
|
|
4
7
|
import NavbarContext from './NavbarContext';
|
|
5
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
const NavbarOffcanvas = /*#__PURE__*/React.forwardRef((
|
|
9
|
+
const NavbarOffcanvas = /*#__PURE__*/React.forwardRef(({
|
|
10
|
+
className,
|
|
11
|
+
bsPrefix,
|
|
12
|
+
backdrop,
|
|
13
|
+
backdropClassName,
|
|
14
|
+
keyboard,
|
|
15
|
+
scroll,
|
|
16
|
+
placement,
|
|
17
|
+
autoFocus,
|
|
18
|
+
enforceFocus,
|
|
19
|
+
restoreFocus,
|
|
20
|
+
restoreFocusOptions,
|
|
21
|
+
onShow,
|
|
22
|
+
onHide,
|
|
23
|
+
onEscapeKeyDown,
|
|
24
|
+
onEnter,
|
|
25
|
+
onEntering,
|
|
26
|
+
onEntered,
|
|
27
|
+
onExit,
|
|
28
|
+
onExiting,
|
|
29
|
+
onExited,
|
|
30
|
+
...props
|
|
31
|
+
}, ref) => {
|
|
7
32
|
const context = useContext(NavbarContext);
|
|
8
|
-
|
|
33
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'offcanvas');
|
|
34
|
+
const hasExpandProp = typeof (context == null ? void 0 : context.expand) === 'string';
|
|
35
|
+
const shouldExpand = useBreakpoint(hasExpandProp ? context.expand : 'xs', 'up');
|
|
36
|
+
return hasExpandProp && shouldExpand ? /*#__PURE__*/_jsx("div", {
|
|
37
|
+
ref: ref,
|
|
38
|
+
...props,
|
|
39
|
+
className: classNames(className, bsPrefix, `${bsPrefix}-${placement}`)
|
|
40
|
+
}) : /*#__PURE__*/_jsx(Offcanvas, {
|
|
9
41
|
ref: ref,
|
|
10
42
|
show: !!(context != null && context.expanded),
|
|
43
|
+
bsPrefix: bsPrefix,
|
|
44
|
+
backdrop: backdrop,
|
|
45
|
+
backdropClassName: backdropClassName,
|
|
46
|
+
keyboard: keyboard,
|
|
47
|
+
scroll: scroll,
|
|
48
|
+
placement: placement,
|
|
49
|
+
autoFocus: autoFocus,
|
|
50
|
+
enforceFocus: enforceFocus,
|
|
51
|
+
restoreFocus: restoreFocus,
|
|
52
|
+
restoreFocusOptions: restoreFocusOptions,
|
|
53
|
+
onShow: onShow,
|
|
54
|
+
onHide: onHide,
|
|
55
|
+
onEscapeKeyDown: onEscapeKeyDown,
|
|
56
|
+
onEnter: onEnter,
|
|
57
|
+
onEntering: onEntering,
|
|
58
|
+
onEntered: onEntered,
|
|
59
|
+
onExit: onExit,
|
|
60
|
+
onExiting: onExiting,
|
|
61
|
+
onExited: onExited,
|
|
11
62
|
...props
|
|
12
63
|
});
|
|
13
64
|
});
|
package/esm/PageItem.d.ts
CHANGED
|
@@ -8,23 +8,8 @@ export interface PageItemProps extends React.HTMLAttributes<HTMLElement>, BsPref
|
|
|
8
8
|
}
|
|
9
9
|
declare const PageItem: BsPrefixRefForwardingComponent<'li', PageItemProps>;
|
|
10
10
|
export default PageItem;
|
|
11
|
-
export declare const First:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export declare const
|
|
16
|
-
({ children, ...props }: PageItemProps): JSX.Element;
|
|
17
|
-
displayName: string;
|
|
18
|
-
};
|
|
19
|
-
export declare const Ellipsis: {
|
|
20
|
-
({ children, ...props }: PageItemProps): JSX.Element;
|
|
21
|
-
displayName: string;
|
|
22
|
-
};
|
|
23
|
-
export declare const Next: {
|
|
24
|
-
({ children, ...props }: PageItemProps): JSX.Element;
|
|
25
|
-
displayName: string;
|
|
26
|
-
};
|
|
27
|
-
export declare const Last: {
|
|
28
|
-
({ children, ...props }: PageItemProps): JSX.Element;
|
|
29
|
-
displayName: string;
|
|
30
|
-
};
|
|
11
|
+
export declare const First: React.ForwardRefExoticComponent<PageItemProps & React.RefAttributes<unknown>>;
|
|
12
|
+
export declare const Prev: React.ForwardRefExoticComponent<PageItemProps & React.RefAttributes<unknown>>;
|
|
13
|
+
export declare const Ellipsis: React.ForwardRefExoticComponent<PageItemProps & React.RefAttributes<unknown>>;
|
|
14
|
+
export declare const Next: React.ForwardRefExoticComponent<PageItemProps & React.RefAttributes<unknown>>;
|
|
15
|
+
export declare const Last: React.ForwardRefExoticComponent<PageItemProps & React.RefAttributes<unknown>>;
|
package/esm/PageItem.js
CHANGED
|
@@ -42,21 +42,19 @@ PageItem.displayName = 'PageItem';
|
|
|
42
42
|
export default PageItem;
|
|
43
43
|
|
|
44
44
|
function createButton(name, defaultValue, label = name) {
|
|
45
|
-
|
|
45
|
+
const Button = /*#__PURE__*/React.forwardRef(({
|
|
46
46
|
children,
|
|
47
47
|
...props
|
|
48
|
-
}) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
48
|
+
}, ref) => /*#__PURE__*/_jsxs(PageItem, { ...props,
|
|
49
|
+
ref: ref,
|
|
50
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
51
|
+
"aria-hidden": "true",
|
|
52
|
+
children: children || defaultValue
|
|
53
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
54
|
+
className: "visually-hidden",
|
|
55
|
+
children: label
|
|
56
|
+
})]
|
|
57
|
+
}));
|
|
60
58
|
Button.displayName = name;
|
|
61
59
|
return Button;
|
|
62
60
|
}
|
package/esm/Pagination.d.ts
CHANGED
|
@@ -4,26 +4,11 @@ export interface PaginationProps extends BsPrefixProps, React.HTMLAttributes<HTM
|
|
|
4
4
|
size?: 'sm' | 'lg';
|
|
5
5
|
}
|
|
6
6
|
declare const _default: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLUListElement>> & {
|
|
7
|
-
First:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
Prev: {
|
|
12
|
-
({ children, ...props }: import("./PageItem").PageItemProps): JSX.Element;
|
|
13
|
-
displayName: string;
|
|
14
|
-
};
|
|
15
|
-
Ellipsis: {
|
|
16
|
-
({ children, ...props }: import("./PageItem").PageItemProps): JSX.Element;
|
|
17
|
-
displayName: string;
|
|
18
|
-
};
|
|
7
|
+
First: React.ForwardRefExoticComponent<import("./PageItem").PageItemProps & React.RefAttributes<unknown>>;
|
|
8
|
+
Prev: React.ForwardRefExoticComponent<import("./PageItem").PageItemProps & React.RefAttributes<unknown>>;
|
|
9
|
+
Ellipsis: React.ForwardRefExoticComponent<import("./PageItem").PageItemProps & React.RefAttributes<unknown>>;
|
|
19
10
|
Item: import("./helpers").BsPrefixRefForwardingComponent<"li", import("./PageItem").PageItemProps>;
|
|
20
|
-
Next:
|
|
21
|
-
|
|
22
|
-
displayName: string;
|
|
23
|
-
};
|
|
24
|
-
Last: {
|
|
25
|
-
({ children, ...props }: import("./PageItem").PageItemProps): JSX.Element;
|
|
26
|
-
displayName: string;
|
|
27
|
-
};
|
|
11
|
+
Next: React.ForwardRefExoticComponent<import("./PageItem").PageItemProps & React.RefAttributes<unknown>>;
|
|
12
|
+
Last: React.ForwardRefExoticComponent<import("./PageItem").PageItemProps & React.RefAttributes<unknown>>;
|
|
28
13
|
};
|
|
29
14
|
export default _default;
|
package/esm/ToastContainer.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
|
|
|
3
3
|
export declare type ToastPosition = 'top-start' | 'top-center' | 'top-end' | 'middle-start' | 'middle-center' | 'middle-end' | 'bottom-start' | 'bottom-center' | 'bottom-end';
|
|
4
4
|
export interface ToastContainerProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
|
|
5
5
|
position?: ToastPosition;
|
|
6
|
+
containerPosition?: string;
|
|
6
7
|
}
|
|
7
8
|
declare const ToastContainer: BsPrefixRefForwardingComponent<'div', ToastContainerProps>;
|
|
8
9
|
export default ToastContainer;
|
package/esm/ToastContainer.js
CHANGED
|
@@ -16,6 +16,7 @@ const positionClasses = {
|
|
|
16
16
|
const ToastContainer = /*#__PURE__*/React.forwardRef(({
|
|
17
17
|
bsPrefix,
|
|
18
18
|
position,
|
|
19
|
+
containerPosition = 'absolute',
|
|
19
20
|
className,
|
|
20
21
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
21
22
|
as: Component = 'div',
|
|
@@ -25,7 +26,7 @@ const ToastContainer = /*#__PURE__*/React.forwardRef(({
|
|
|
25
26
|
return /*#__PURE__*/_jsx(Component, {
|
|
26
27
|
ref: ref,
|
|
27
28
|
...props,
|
|
28
|
-
className: classNames(bsPrefix, position && `position
|
|
29
|
+
className: classNames(bsPrefix, position && [containerPosition ? `position-${containerPosition}` : null, positionClasses[position]], className)
|
|
29
30
|
});
|
|
30
31
|
});
|
|
31
32
|
ToastContainer.displayName = 'ToastContainer';
|
|
@@ -4,5 +4,11 @@ export declare type TransitionWrapperProps = TransitionProps & {
|
|
|
4
4
|
childRef?: React.Ref<unknown>;
|
|
5
5
|
children: React.ReactElement | ((status: TransitionStatus, props: Record<string, unknown>) => React.ReactNode);
|
|
6
6
|
};
|
|
7
|
-
declare const TransitionWrapper: React.ForwardRefExoticComponent<Pick<
|
|
7
|
+
declare const TransitionWrapper: React.ForwardRefExoticComponent<(Pick<import("react-transition-group/Transition").TimeoutProps<undefined> & {
|
|
8
|
+
childRef?: React.Ref<unknown> | undefined;
|
|
9
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | ((status: TransitionStatus, props: Record<string, unknown>) => React.ReactNode);
|
|
10
|
+
}, keyof import("react-transition-group/Transition").TimeoutProps<undefined>> | Pick<import("react-transition-group/Transition").EndListenerProps<undefined> & {
|
|
11
|
+
childRef?: React.Ref<unknown> | undefined;
|
|
12
|
+
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | ((status: TransitionStatus, props: Record<string, unknown>) => React.ReactNode);
|
|
13
|
+
}, keyof import("react-transition-group/Transition").EndListenerProps<undefined>>) & React.RefAttributes<Transition<any>>>;
|
|
8
14
|
export default TransitionWrapper;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import NoopTransition from '@restart/ui/NoopTransition';
|
|
1
2
|
import Fade from './Fade';
|
|
2
3
|
export default function getTabTransitionComponent(transition) {
|
|
3
4
|
if (typeof transition === 'boolean') {
|
|
4
|
-
return transition ? Fade :
|
|
5
|
+
return transition ? Fade : NoopTransition;
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
return transition;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-bootstrap",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Bootstrap 5 components built with React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bootstrap",
|
|
@@ -38,11 +38,7 @@
|
|
|
38
38
|
"@babel/runtime": "^7.17.2",
|
|
39
39
|
"@restart/hooks": "^0.4.6",
|
|
40
40
|
"@restart/ui": "^1.2.0",
|
|
41
|
-
"@types/invariant": "^2.2.35",
|
|
42
|
-
"@types/prop-types": "^15.7.4",
|
|
43
|
-
"@types/react": ">=16.14.8",
|
|
44
41
|
"@types/react-transition-group": "^4.4.4",
|
|
45
|
-
"@types/warning": "^3.0.0",
|
|
46
42
|
"classnames": "^2.3.1",
|
|
47
43
|
"dom-helpers": "^5.2.1",
|
|
48
44
|
"invariant": "^2.2.4",
|
|
@@ -53,9 +49,15 @@
|
|
|
53
49
|
"warning": "^4.0.3"
|
|
54
50
|
},
|
|
55
51
|
"peerDependencies": {
|
|
52
|
+
"@types/react": ">=16.14.8",
|
|
56
53
|
"react": ">=16.14.0",
|
|
57
54
|
"react-dom": ">=16.14.0"
|
|
58
55
|
},
|
|
56
|
+
"peerDependenciesMeta": {
|
|
57
|
+
"@types/react": {
|
|
58
|
+
"optional": true
|
|
59
|
+
}
|
|
60
|
+
},
|
|
59
61
|
"publishConfig": {
|
|
60
62
|
"directory": "lib"
|
|
61
63
|
},
|