Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-bootstrap

Package Overview
Dependencies
Maintainers
3
Versions
219
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-bootstrap - npm Package Compare versions

Comparing version 2.5.0-beta.1 to 2.5.0

3

cjs/AccordionCollapse.d.ts

@@ -6,3 +6,6 @@ import { CollapseProps } from './Collapse';

}
/**
* This component accepts all of [`Collapse`'s props](/utilities/transitions/#collapse-props).
*/
declare const AccordionCollapse: BsPrefixRefForwardingComponent<'div', AccordionCollapseProps>;
export default AccordionCollapse;

@@ -24,2 +24,5 @@ "use strict";

/**
* This component accepts all of [`Collapse`'s props](/utilities/transitions/#collapse-props).
*/
const AccordionCollapse = /*#__PURE__*/React.forwardRef(({

@@ -26,0 +29,0 @@ as: Component = 'div',

2

cjs/CardImg.d.ts
import * as React from 'react';
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
export interface CardImgProps extends BsPrefixProps, React.ImgHTMLAttributes<HTMLImageElement> {
variant?: 'top' | 'bottom';
variant?: 'top' | 'bottom' | string;
}
declare const CardImg: BsPrefixRefForwardingComponent<'img', CardImgProps>;
export default CardImg;
import * as React from 'react';
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
export declare type CarouselVariant = 'dark';
export declare type CarouselVariant = 'dark' | string;
export interface CarouselRef {

@@ -5,0 +5,0 @@ element?: HTMLElement;

import * as React from 'react';
export declare type CloseButtonVariant = 'white';
export declare type CloseButtonVariant = 'white' | string;
export interface CloseButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {

@@ -4,0 +4,0 @@ variant?: CloseButtonVariant;

@@ -5,3 +5,3 @@ import { NavProps as BaseNavProps } from '@restart/ui/Nav';

export interface ListGroupProps extends BsPrefixProps, BaseNavProps {
variant?: 'flush';
variant?: 'flush' | string;
horizontal?: boolean | string | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';

@@ -8,0 +8,0 @@ defaultActiveKey?: EventKey;

@@ -7,3 +7,3 @@ import { NavProps as BaseNavProps } from '@restart/ui/Nav';

cardHeaderBsPrefix?: string;
variant?: 'tabs' | 'pills';
variant?: 'tabs' | 'pills' | string;
defaultActiveKey?: EventKey;

@@ -10,0 +10,0 @@ fill?: boolean;

@@ -5,3 +5,3 @@ import * as React from 'react';

export interface NavbarProps extends BsPrefixProps, Omit<React.HTMLAttributes<HTMLElement>, 'onSelect'> {
variant?: 'light' | 'dark';
variant?: 'light' | 'dark' | string;
expand?: boolean | string | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';

@@ -8,0 +8,0 @@ bg?: string;

@@ -25,3 +25,4 @@ "use strict";

show: !!(context != null && context.expanded),
...props
...props,
renderStaticNode: true
});

@@ -28,0 +29,0 @@ });

@@ -11,2 +11,3 @@ import * as React from 'react';

responsive?: 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | string;
renderStaticNode?: boolean;
}

@@ -13,0 +14,0 @@ declare const _default: BsPrefixRefForwardingComponent<"div", OffcanvasProps> & {

@@ -50,3 +50,4 @@ "use strict";

restoreFocus: true,
placement: 'start'
placement: 'start',
renderStaticNode: false
};

@@ -93,2 +94,3 @@

manager: propsManager,
renderStaticNode,
...props

@@ -153,3 +155,3 @@ }, ref) => {

return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
children: [!showOffcanvas && renderDialog({}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalContext.default.Provider, {
children: [!showOffcanvas && (responsive || renderStaticNode) && renderDialog({}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalContext.default.Provider, {
value: modalContext,

@@ -156,0 +158,0 @@ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal.default, {

@@ -6,3 +6,6 @@ import { CollapseProps } from './Collapse';

}
/**
* This component accepts all of [`Collapse`'s props](/utilities/transitions/#collapse-props).
*/
declare const AccordionCollapse: BsPrefixRefForwardingComponent<'div', AccordionCollapseProps>;
export default AccordionCollapse;

@@ -8,2 +8,6 @@ import classNames from 'classnames';

import { jsx as _jsx } from "react/jsx-runtime";
/**
* This component accepts all of [`Collapse`'s props](/utilities/transitions/#collapse-props).
*/
const AccordionCollapse = /*#__PURE__*/React.forwardRef(({

@@ -10,0 +14,0 @@ as: Component = 'div',

import * as React from 'react';
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
export interface CardImgProps extends BsPrefixProps, React.ImgHTMLAttributes<HTMLImageElement> {
variant?: 'top' | 'bottom';
variant?: 'top' | 'bottom' | string;
}
declare const CardImg: BsPrefixRefForwardingComponent<'img', CardImgProps>;
export default CardImg;
import * as React from 'react';
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
export declare type CarouselVariant = 'dark';
export declare type CarouselVariant = 'dark' | string;
export interface CarouselRef {

@@ -5,0 +5,0 @@ element?: HTMLElement;

import * as React from 'react';
export declare type CloseButtonVariant = 'white';
export declare type CloseButtonVariant = 'white' | string;
export interface CloseButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {

@@ -4,0 +4,0 @@ variant?: CloseButtonVariant;

@@ -5,3 +5,3 @@ import { NavProps as BaseNavProps } from '@restart/ui/Nav';

export interface ListGroupProps extends BsPrefixProps, BaseNavProps {
variant?: 'flush';
variant?: 'flush' | string;
horizontal?: boolean | string | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';

@@ -8,0 +8,0 @@ defaultActiveKey?: EventKey;

@@ -7,3 +7,3 @@ import { NavProps as BaseNavProps } from '@restart/ui/Nav';

cardHeaderBsPrefix?: string;
variant?: 'tabs' | 'pills';
variant?: 'tabs' | 'pills' | string;
defaultActiveKey?: EventKey;

@@ -10,0 +10,0 @@ fill?: boolean;

@@ -5,3 +5,3 @@ import * as React from 'react';

export interface NavbarProps extends BsPrefixProps, Omit<React.HTMLAttributes<HTMLElement>, 'onSelect'> {
variant?: 'light' | 'dark';
variant?: 'light' | 'dark' | string;
expand?: boolean | string | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';

@@ -8,0 +8,0 @@ bg?: string;

@@ -11,3 +11,4 @@ import * as React from 'react';

show: !!(context != null && context.expanded),
...props
...props,
renderStaticNode: true
});

@@ -14,0 +15,0 @@ });

@@ -11,2 +11,3 @@ import * as React from 'react';

responsive?: 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | string;
renderStaticNode?: boolean;
}

@@ -13,0 +14,0 @@ declare const _default: BsPrefixRefForwardingComponent<"div", OffcanvasProps> & {

@@ -27,3 +27,4 @@ import classNames from 'classnames';

restoreFocus: true,
placement: 'start'
placement: 'start',
renderStaticNode: false
};

@@ -70,2 +71,3 @@

manager: propsManager,
renderStaticNode,
...props

@@ -130,3 +132,3 @@ }, ref) => {

return /*#__PURE__*/_jsxs(_Fragment, {
children: [!showOffcanvas && renderDialog({}), /*#__PURE__*/_jsx(ModalContext.Provider, {
children: [!showOffcanvas && (responsive || renderStaticNode) && renderDialog({}), /*#__PURE__*/_jsx(ModalContext.Provider, {
value: modalContext,

@@ -133,0 +135,0 @@ children: /*#__PURE__*/_jsx(BaseModal, {

{
"name": "react-bootstrap",
"version": "2.5.0-beta.1",
"version": "2.5.0",
"description": "Bootstrap 5 components built with React",

@@ -40,3 +40,3 @@ "keywords": [

"@restart/hooks": "^0.4.6",
"@restart/ui": "^1.3.0",
"@restart/ui": "^1.3.1",
"@types/react-transition-group": "^4.4.4",

@@ -43,0 +43,0 @@ "classnames": "^2.3.1",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc