react-bootstrap 3.0.0-beta.4 → 3.0.0-beta.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/CHANGELOG.md +22 -0
- package/cjs/Carousel.js +1 -1
- package/cjs/Form.d.ts +12 -12
- package/cjs/Overlay.js +8 -0
- package/cjs/TabContainer.d.ts +1 -1
- package/lib/Carousel.js +1 -1
- package/lib/Form.d.ts +12 -12
- package/lib/Overlay.js +8 -0
- package/lib/TabContainer.d.ts +1 -1
- package/package.json +28 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# [3.0.0-beta.6](https://github.com/react-bootstrap/react-bootstrap/compare/v3.0.0-beta.5...v3.0.0-beta.6) (2026-10-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **Carousel:** ensure nextActiveIndex is non-negative when no children are present ([#6972](https://github.com/react-bootstrap/react-bootstrap/issues/6972)) ([b652b00](https://github.com/react-bootstrap/react-bootstrap/commit/b652b00c7fdd993c3a3f283703ce5fbd8cd16145))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# [3.0.0-beta.5](https://github.com/react-bootstrap/react-bootstrap/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2025-09-22)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **TabContainer:** fix children prop type ([#6965](https://github.com/react-bootstrap/react-bootstrap/issues/6965)) ([5c87f93](https://github.com/react-bootstrap/react-bootstrap/commit/5c87f931b6c1c87cb7bf8872d0ca3a4a626272f7))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
1
23
|
# [3.0.0-beta.4](https://github.com/react-bootstrap/react-bootstrap/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2025-09-04)
|
|
2
24
|
|
|
3
25
|
|
package/cjs/Carousel.js
CHANGED
|
@@ -124,7 +124,7 @@ const Carousel = /*#__PURE__*/React.forwardRef(({
|
|
|
124
124
|
if (!wrap) {
|
|
125
125
|
return;
|
|
126
126
|
}
|
|
127
|
-
nextActiveIndex = numChildren - 1;
|
|
127
|
+
nextActiveIndex = numChildren > 0 ? numChildren - 1 : 0;
|
|
128
128
|
}
|
|
129
129
|
nextDirectionRef.current = 'prev';
|
|
130
130
|
onSelect == null || onSelect(nextActiveIndex, event);
|
package/cjs/Form.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ declare const _default: DynamicRefForwardingComponent<"form", FormProps> & {
|
|
|
82
82
|
results?: number | undefined | undefined;
|
|
83
83
|
security?: string | undefined | undefined;
|
|
84
84
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
85
|
-
popover?: "" | "auto" | "manual" | undefined | undefined;
|
|
85
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
86
86
|
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
87
87
|
popoverTarget?: string | undefined | undefined;
|
|
88
88
|
inert?: boolean | undefined | undefined;
|
|
@@ -162,18 +162,18 @@ declare const _default: DynamicRefForwardingComponent<"form", FormProps> & {
|
|
|
162
162
|
onFocusCapture?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
163
163
|
onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
164
164
|
onBlurCapture?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
165
|
-
onChange?: React.ChangeEventHandler<HTMLInputElement> | undefined;
|
|
166
|
-
onChangeCapture?: React.
|
|
165
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement, HTMLInputElement> | undefined;
|
|
166
|
+
onChangeCapture?: React.ChangeEventHandler<HTMLInputElement, Element> | undefined;
|
|
167
167
|
onBeforeInput?: React.InputEventHandler<HTMLInputElement> | undefined;
|
|
168
|
-
onBeforeInputCapture?: React.
|
|
169
|
-
onInput?: React.
|
|
170
|
-
onInputCapture?: React.
|
|
171
|
-
onReset?: React.
|
|
172
|
-
onResetCapture?: React.
|
|
173
|
-
onSubmit?: React.
|
|
174
|
-
onSubmitCapture?: React.
|
|
175
|
-
onInvalid?: React.
|
|
176
|
-
onInvalidCapture?: React.
|
|
168
|
+
onBeforeInputCapture?: React.InputEventHandler<HTMLInputElement> | undefined;
|
|
169
|
+
onInput?: React.InputEventHandler<HTMLInputElement> | undefined;
|
|
170
|
+
onInputCapture?: React.InputEventHandler<HTMLInputElement> | undefined;
|
|
171
|
+
onReset?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
172
|
+
onResetCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
173
|
+
onSubmit?: React.SubmitEventHandler<HTMLInputElement> | undefined;
|
|
174
|
+
onSubmitCapture?: React.SubmitEventHandler<HTMLInputElement> | undefined;
|
|
175
|
+
onInvalid?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
176
|
+
onInvalidCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
177
177
|
onLoad?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
178
178
|
onLoadCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
179
179
|
onError?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
package/cjs/Overlay.js
CHANGED
|
@@ -25,6 +25,10 @@ function wrapRefs(props, arrowProps) {
|
|
|
25
25
|
props.ref = ref.__wrapped || (ref.__wrapped = r => ref(r));
|
|
26
26
|
arrowProps.ref = aRef.__wrapped || (aRef.__wrapped = r => aRef(r));
|
|
27
27
|
}
|
|
28
|
+
function clearPopperCache(popperRef) {
|
|
29
|
+
popperRef.state = undefined;
|
|
30
|
+
popperRef.scheduleUpdate = undefined;
|
|
31
|
+
}
|
|
28
32
|
const Overlay = /*#__PURE__*/React.forwardRef(({
|
|
29
33
|
children: overlay,
|
|
30
34
|
transition = _Fade.default,
|
|
@@ -52,8 +56,12 @@ const Overlay = /*#__PURE__*/React.forwardRef(({
|
|
|
52
56
|
(0, _react.useEffect)(() => {
|
|
53
57
|
if (!outerShow) {
|
|
54
58
|
setFirstRenderedState(null);
|
|
59
|
+
clearPopperCache(popperRef.current);
|
|
55
60
|
}
|
|
56
61
|
}, [outerShow]);
|
|
62
|
+
(0, _react.useEffect)(() => () => {
|
|
63
|
+
clearPopperCache(popperRef.current);
|
|
64
|
+
}, []);
|
|
57
65
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Overlay.default, {
|
|
58
66
|
...outerProps,
|
|
59
67
|
ref: mergedRef,
|
package/cjs/TabContainer.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EventKey, SelectCallback } from '@restart/ui/types';
|
|
2
2
|
import type { TransitionType } from './helpers.js';
|
|
3
|
-
export interface TabContainerProps {
|
|
3
|
+
export interface TabContainerProps extends React.PropsWithChildren {
|
|
4
4
|
/**
|
|
5
5
|
* ID of the TabContainer.
|
|
6
6
|
*/
|
package/lib/Carousel.js
CHANGED
|
@@ -119,7 +119,7 @@ const Carousel = /*#__PURE__*/React.forwardRef(({
|
|
|
119
119
|
if (!wrap) {
|
|
120
120
|
return;
|
|
121
121
|
}
|
|
122
|
-
nextActiveIndex = numChildren - 1;
|
|
122
|
+
nextActiveIndex = numChildren > 0 ? numChildren - 1 : 0;
|
|
123
123
|
}
|
|
124
124
|
nextDirectionRef.current = 'prev';
|
|
125
125
|
onSelect == null || onSelect(nextActiveIndex, event);
|
package/lib/Form.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ declare const _default: DynamicRefForwardingComponent<"form", FormProps> & {
|
|
|
82
82
|
results?: number | undefined | undefined;
|
|
83
83
|
security?: string | undefined | undefined;
|
|
84
84
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
85
|
-
popover?: "" | "auto" | "manual" | undefined | undefined;
|
|
85
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
86
86
|
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
87
87
|
popoverTarget?: string | undefined | undefined;
|
|
88
88
|
inert?: boolean | undefined | undefined;
|
|
@@ -162,18 +162,18 @@ declare const _default: DynamicRefForwardingComponent<"form", FormProps> & {
|
|
|
162
162
|
onFocusCapture?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
163
163
|
onBlur?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
164
164
|
onBlurCapture?: React.FocusEventHandler<HTMLInputElement> | undefined;
|
|
165
|
-
onChange?: React.ChangeEventHandler<HTMLInputElement> | undefined;
|
|
166
|
-
onChangeCapture?: React.
|
|
165
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement, HTMLInputElement> | undefined;
|
|
166
|
+
onChangeCapture?: React.ChangeEventHandler<HTMLInputElement, Element> | undefined;
|
|
167
167
|
onBeforeInput?: React.InputEventHandler<HTMLInputElement> | undefined;
|
|
168
|
-
onBeforeInputCapture?: React.
|
|
169
|
-
onInput?: React.
|
|
170
|
-
onInputCapture?: React.
|
|
171
|
-
onReset?: React.
|
|
172
|
-
onResetCapture?: React.
|
|
173
|
-
onSubmit?: React.
|
|
174
|
-
onSubmitCapture?: React.
|
|
175
|
-
onInvalid?: React.
|
|
176
|
-
onInvalidCapture?: React.
|
|
168
|
+
onBeforeInputCapture?: React.InputEventHandler<HTMLInputElement> | undefined;
|
|
169
|
+
onInput?: React.InputEventHandler<HTMLInputElement> | undefined;
|
|
170
|
+
onInputCapture?: React.InputEventHandler<HTMLInputElement> | undefined;
|
|
171
|
+
onReset?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
172
|
+
onResetCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
173
|
+
onSubmit?: React.SubmitEventHandler<HTMLInputElement> | undefined;
|
|
174
|
+
onSubmitCapture?: React.SubmitEventHandler<HTMLInputElement> | undefined;
|
|
175
|
+
onInvalid?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
176
|
+
onInvalidCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
177
177
|
onLoad?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
178
178
|
onLoadCapture?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
|
179
179
|
onError?: React.ReactEventHandler<HTMLInputElement> | undefined;
|
package/lib/Overlay.js
CHANGED
|
@@ -20,6 +20,10 @@ function wrapRefs(props, arrowProps) {
|
|
|
20
20
|
props.ref = ref.__wrapped || (ref.__wrapped = r => ref(r));
|
|
21
21
|
arrowProps.ref = aRef.__wrapped || (aRef.__wrapped = r => aRef(r));
|
|
22
22
|
}
|
|
23
|
+
function clearPopperCache(popperRef) {
|
|
24
|
+
popperRef.state = undefined;
|
|
25
|
+
popperRef.scheduleUpdate = undefined;
|
|
26
|
+
}
|
|
23
27
|
const Overlay = /*#__PURE__*/React.forwardRef(({
|
|
24
28
|
children: overlay,
|
|
25
29
|
transition = Fade,
|
|
@@ -47,8 +51,12 @@ const Overlay = /*#__PURE__*/React.forwardRef(({
|
|
|
47
51
|
useEffect(() => {
|
|
48
52
|
if (!outerShow) {
|
|
49
53
|
setFirstRenderedState(null);
|
|
54
|
+
clearPopperCache(popperRef.current);
|
|
50
55
|
}
|
|
51
56
|
}, [outerShow]);
|
|
57
|
+
useEffect(() => () => {
|
|
58
|
+
clearPopperCache(popperRef.current);
|
|
59
|
+
}, []);
|
|
52
60
|
return /*#__PURE__*/_jsx(BaseOverlay, {
|
|
53
61
|
...outerProps,
|
|
54
62
|
ref: mergedRef,
|
package/lib/TabContainer.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EventKey, SelectCallback } from '@restart/ui/types';
|
|
2
2
|
import type { TransitionType } from './helpers.js';
|
|
3
|
-
export interface TabContainerProps {
|
|
3
|
+
export interface TabContainerProps extends React.PropsWithChildren {
|
|
4
4
|
/**
|
|
5
5
|
* ID of the TabContainer.
|
|
6
6
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-bootstrap",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.6",
|
|
4
4
|
"description": "Bootstrap 5 components built with React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bootstrap",
|
|
@@ -95,36 +95,39 @@
|
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
97
|
"@4c/rollout": "^4.0.2",
|
|
98
|
-
"@babel/cli": "^7.28.
|
|
99
|
-
"@babel/core": "^7.
|
|
100
|
-
"@babel/preset-typescript": "^7.
|
|
101
|
-
"@babel/register": "^7.28.
|
|
98
|
+
"@babel/cli": "^7.28.6",
|
|
99
|
+
"@babel/core": "^7.29.0",
|
|
100
|
+
"@babel/preset-typescript": "^7.28.5",
|
|
101
|
+
"@babel/register": "^7.28.6",
|
|
102
|
+
"@eslint/js": "^10.0.1",
|
|
102
103
|
"@react-bootstrap/babel-preset": "^2.3.0",
|
|
103
104
|
"@testing-library/dom": "^10.4.1",
|
|
104
|
-
"@testing-library/react": "^16.3.
|
|
105
|
+
"@testing-library/react": "^16.3.2",
|
|
106
|
+
"@testing-library/user-event": "^14.6.1",
|
|
105
107
|
"@types/invariant": "^2.2.37",
|
|
106
|
-
"@types/react": "^19.
|
|
107
|
-
"@types/react-dom": "^19.
|
|
108
|
-
"@types/warning": "^3.0.
|
|
109
|
-
"@vitejs/plugin-react": "^
|
|
110
|
-
"@vitest/browser": "^
|
|
111
|
-
"@vitest/
|
|
112
|
-
"
|
|
108
|
+
"@types/react": "^19.2.14",
|
|
109
|
+
"@types/react-dom": "^19.2.3",
|
|
110
|
+
"@types/warning": "^3.0.4",
|
|
111
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
112
|
+
"@vitest/browser": "^4.1.5",
|
|
113
|
+
"@vitest/browser-playwright": "^4.1.5",
|
|
114
|
+
"@vitest/coverage-istanbul": "^4.1.5",
|
|
115
|
+
"eslint": "^9.39.4",
|
|
113
116
|
"eslint-config-prettier": "^10.1.8",
|
|
114
|
-
"eslint-plugin-prettier": "^5.5.
|
|
117
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
115
118
|
"eslint-plugin-react": "^7.37.5",
|
|
116
|
-
"eslint-plugin-react-hooks": "^
|
|
117
|
-
"globals": "^
|
|
119
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
120
|
+
"globals": "^17.5.0",
|
|
118
121
|
"husky": "^9.1.7",
|
|
119
|
-
"lint-staged": "^
|
|
120
|
-
"playwright": "^1.
|
|
121
|
-
"prettier": "^3.
|
|
122
|
-
"react": "^19.
|
|
123
|
-
"react-dom": "^19.
|
|
124
|
-
"rimraf": "^6.
|
|
125
|
-
"typescript": "^5.9.
|
|
126
|
-
"typescript-eslint": "^8.
|
|
127
|
-
"vitest": "^
|
|
122
|
+
"lint-staged": "^16.4.0",
|
|
123
|
+
"playwright": "^1.59.1",
|
|
124
|
+
"prettier": "^3.8.3",
|
|
125
|
+
"react": "^19.2.5",
|
|
126
|
+
"react-dom": "^19.2.5",
|
|
127
|
+
"rimraf": "^6.1.3",
|
|
128
|
+
"typescript": "^5.9.3",
|
|
129
|
+
"typescript-eslint": "^8.59.0",
|
|
130
|
+
"vitest": "^4.1.5"
|
|
128
131
|
},
|
|
129
132
|
"peerDependencies": {
|
|
130
133
|
"@types/react": ">=18.3.12",
|