react-bootstrap
Advanced tools
Comparing version 2.3.1 to 2.4.0
@@ -6,4 +6,5 @@ import * as React from 'react'; | ||
position?: ToastPosition; | ||
containerPosition?: string; | ||
} | ||
declare const ToastContainer: BsPrefixRefForwardingComponent<'div', ToastContainerProps>; | ||
export default ToastContainer; |
@@ -34,2 +34,3 @@ "use strict"; | ||
position, | ||
containerPosition = 'absolute', | ||
className, | ||
@@ -44,3 +45,3 @@ // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595 | ||
...props, | ||
className: (0, _classnames.default)(bsPrefix, position && `position-absolute ${positionClasses[position]}`, className) | ||
className: (0, _classnames.default)(bsPrefix, position && [containerPosition ? `position-${containerPosition}` : null, positionClasses[position]], className) | ||
}); | ||
@@ -47,0 +48,0 @@ }); |
@@ -6,4 +6,5 @@ import * as React from 'react'; | ||
position?: ToastPosition; | ||
containerPosition?: string; | ||
} | ||
declare const ToastContainer: BsPrefixRefForwardingComponent<'div', ToastContainerProps>; | ||
export default ToastContainer; |
@@ -19,2 +19,3 @@ import classNames from 'classnames'; | ||
position, | ||
containerPosition = 'absolute', | ||
className, | ||
@@ -29,3 +30,3 @@ // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595 | ||
...props, | ||
className: classNames(bsPrefix, position && `position-absolute ${positionClasses[position]}`, className) | ||
className: classNames(bsPrefix, position && [containerPosition ? `position-${containerPosition}` : null, positionClasses[position]], className) | ||
}); | ||
@@ -32,0 +33,0 @@ }); |
{ | ||
"name": "react-bootstrap", | ||
"version": "2.3.1", | ||
"version": "2.4.0", | ||
"description": "Bootstrap 5 components built with React", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1370267
29338