react-bootstrap 1.6.2 → 1.6.5

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.
Files changed (71) hide show
  1. package/cjs/InputGroup.d.ts +5 -7
  2. package/cjs/InputGroup.js +6 -8
  3. package/cjs/Modal.d.ts +1 -1
  4. package/dist/react-bootstrap.js +20 -23
  5. package/dist/react-bootstrap.min.js +1 -1
  6. package/esm/InputGroup.d.ts +5 -7
  7. package/esm/InputGroup.js +6 -10
  8. package/esm/Modal.d.ts +1 -1
  9. package/package.json +3 -3
  10. package/cjs/AbstractModalHeader.d.ts +0 -10
  11. package/cjs/AccordionBody.d.ts +0 -6
  12. package/cjs/AccordionButton.d.ts +0 -8
  13. package/cjs/AccordionHeader.d.ts +0 -6
  14. package/cjs/AccordionItem.d.ts +0 -7
  15. package/cjs/AccordionItemContext.d.ts +0 -6
  16. package/cjs/Anchor.d.ts +0 -3
  17. package/cjs/CardHeader.d.ts +0 -6
  18. package/cjs/CardHeaderContext.d.ts +0 -6
  19. package/cjs/DropdownContext.d.ts +0 -10
  20. package/cjs/FloatingLabel.d.ts +0 -9
  21. package/cjs/FormFloating.d.ts +0 -2
  22. package/cjs/FormRange.d.ts +0 -6
  23. package/cjs/FormSelect.d.ts +0 -10
  24. package/cjs/InputGroupContext.d.ts +0 -3
  25. package/cjs/Offcanvas.d.ts +0 -16
  26. package/cjs/OffcanvasBody.d.ts +0 -2
  27. package/cjs/OffcanvasHeader.d.ts +0 -7
  28. package/cjs/OffcanvasTitle.d.ts +0 -3
  29. package/cjs/OffcanvasToggling.d.ts +0 -15
  30. package/cjs/Placeholder.d.ts +0 -8
  31. package/cjs/PlaceholderButton.d.ts +0 -8
  32. package/cjs/PopoverBody.d.ts +0 -2
  33. package/cjs/PopoverHeader.d.ts +0 -2
  34. package/cjs/Ratio.d.ts +0 -9
  35. package/cjs/ToastContainer.d.ts +0 -8
  36. package/cjs/TransitionWrapper.d.ts +0 -8
  37. package/cjs/getTabTransitionComponent.d.ts +0 -3
  38. package/cjs/safeFindDOMNode.d.ts +0 -2
  39. package/cjs/useOverlayOffset.d.ts +0 -6
  40. package/cjs/usePlaceholder.d.ts +0 -10
  41. package/esm/AbstractModalHeader.d.ts +0 -10
  42. package/esm/AccordionBody.d.ts +0 -6
  43. package/esm/AccordionButton.d.ts +0 -8
  44. package/esm/AccordionHeader.d.ts +0 -6
  45. package/esm/AccordionItem.d.ts +0 -7
  46. package/esm/AccordionItemContext.d.ts +0 -6
  47. package/esm/Anchor.d.ts +0 -3
  48. package/esm/CardHeader.d.ts +0 -6
  49. package/esm/CardHeaderContext.d.ts +0 -6
  50. package/esm/DropdownContext.d.ts +0 -10
  51. package/esm/FloatingLabel.d.ts +0 -9
  52. package/esm/FormFloating.d.ts +0 -2
  53. package/esm/FormRange.d.ts +0 -6
  54. package/esm/FormSelect.d.ts +0 -10
  55. package/esm/InputGroupContext.d.ts +0 -3
  56. package/esm/Offcanvas.d.ts +0 -16
  57. package/esm/OffcanvasBody.d.ts +0 -2
  58. package/esm/OffcanvasHeader.d.ts +0 -7
  59. package/esm/OffcanvasTitle.d.ts +0 -3
  60. package/esm/OffcanvasToggling.d.ts +0 -15
  61. package/esm/Placeholder.d.ts +0 -8
  62. package/esm/PlaceholderButton.d.ts +0 -8
  63. package/esm/PopoverBody.d.ts +0 -2
  64. package/esm/PopoverHeader.d.ts +0 -2
  65. package/esm/Ratio.d.ts +0 -9
  66. package/esm/ToastContainer.d.ts +0 -8
  67. package/esm/TransitionWrapper.d.ts +0 -8
  68. package/esm/getTabTransitionComponent.d.ts +0 -3
  69. package/esm/safeFindDOMNode.d.ts +0 -2
  70. package/esm/useOverlayOffset.d.ts +0 -6
  71. package/esm/usePlaceholder.d.ts +0 -10
@@ -1,22 +1,21 @@
1
- /// <reference types="react" />
2
- import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
1
+ import React from 'react';
2
+ import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
3
  declare const InputGroupAppend: BsPrefixRefForwardingComponent<"div", unknown>;
4
4
  declare const InputGroupPrepend: BsPrefixRefForwardingComponent<"div", unknown>;
5
5
  declare const InputGroupText: BsPrefixRefForwardingComponent<"span", unknown>;
6
6
  declare const InputGroupCheckbox: (props: any) => JSX.Element;
7
7
  declare const InputGroupRadio: (props: any) => JSX.Element;
8
- export interface InputGroupProps extends BsPrefixPropsWithChildren {
8
+ export interface InputGroupProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
9
9
  size?: 'sm' | 'lg';
10
10
  hasValidation?: boolean;
11
11
  }
12
- declare type InputGroupExtras = {
12
+ declare type InputGroup = BsPrefixRefForwardingComponent<'div', InputGroupProps> & {
13
13
  Append: typeof InputGroupAppend;
14
14
  Prepend: typeof InputGroupPrepend;
15
15
  Text: typeof InputGroupText;
16
16
  Checkbox: typeof InputGroupCheckbox;
17
17
  Radio: typeof InputGroupRadio;
18
18
  };
19
- declare type InputGroup = BsPrefixRefForwardingComponent<'div', InputGroupProps>;
20
19
  /**
21
20
  *
22
21
  * @property {InputGroupAppend} Append
@@ -26,5 +25,4 @@ declare type InputGroup = BsPrefixRefForwardingComponent<'div', InputGroupProps>
26
25
  * @property {InputGroupCheckbox} Checkbox
27
26
  */
28
27
  declare const InputGroup: InputGroup;
29
- declare const InputGroupWithExtras: InputGroup & InputGroupExtras;
30
- export default InputGroupWithExtras;
28
+ export default InputGroup;
package/esm/InputGroup.js CHANGED
@@ -48,13 +48,9 @@ var InputGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
48
48
  }));
49
49
  });
50
50
  InputGroup.displayName = 'InputGroup';
51
-
52
- var InputGroupWithExtras = _extends({}, InputGroup, {
53
- Text: InputGroupText,
54
- Radio: InputGroupRadio,
55
- Checkbox: InputGroupCheckbox,
56
- Append: InputGroupAppend,
57
- Prepend: InputGroupPrepend
58
- });
59
-
60
- export default InputGroupWithExtras;
51
+ InputGroup.Text = InputGroupText;
52
+ InputGroup.Radio = InputGroupRadio;
53
+ InputGroup.Checkbox = InputGroupCheckbox;
54
+ InputGroup.Append = InputGroupAppend;
55
+ InputGroup.Prepend = InputGroupPrepend;
56
+ export default InputGroup;
package/esm/Modal.d.ts CHANGED
@@ -6,7 +6,7 @@ import ModalFooter from './ModalFooter';
6
6
  import ModalHeader from './ModalHeader';
7
7
  import ModalTitle from './ModalTitle';
8
8
  import { BsPrefixRefForwardingComponent } from './helpers';
9
- export interface ModalProps extends Omit<BaseModalProps, 'role' | 'renderBackdrop' | 'renderDialog' | 'transition' | 'backdropTransition'> {
9
+ export interface ModalProps extends Omit<BaseModalProps, 'role' | 'renderBackdrop' | 'renderDialog' | 'transition' | 'backdropTransition' | 'children'> {
10
10
  size?: 'sm' | 'lg' | 'xl';
11
11
  bsPrefix?: string;
12
12
  centered?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-bootstrap",
3
- "version": "1.6.2",
3
+ "version": "1.6.5",
4
4
  "description": "Bootstrap 4 components built with React",
5
5
  "keywords": [
6
6
  "react",
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@babel/runtime": "^7.14.0",
37
37
  "@restart/context": "^2.1.4",
38
- "@restart/hooks": "^0.3.26",
38
+ "@restart/hooks": "^0.4.7",
39
39
  "@types/invariant": "^2.2.33",
40
40
  "@types/prop-types": "^15.7.3",
41
41
  "@types/react": ">=16.14.8",
@@ -46,7 +46,7 @@
46
46
  "invariant": "^2.2.4",
47
47
  "prop-types": "^15.7.2",
48
48
  "prop-types-extra": "^1.1.0",
49
- "react-overlays": "^5.1.1",
49
+ "react-overlays": "^5.1.2",
50
50
  "react-transition-group": "^4.4.1",
51
51
  "uncontrollable": "^7.2.1",
52
52
  "warning": "^4.0.3"
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- import { CloseButtonVariant } from './CloseButton';
3
- export interface AbstractModalHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
4
- closeLabel?: string;
5
- closeVariant?: CloseButtonVariant;
6
- closeButton?: boolean;
7
- onHide?: () => void;
8
- }
9
- declare const AbstractModalHeader: React.ForwardRefExoticComponent<AbstractModalHeaderProps & React.RefAttributes<HTMLDivElement>>;
10
- export default AbstractModalHeader;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- import { BsPrefixRefForwardingComponent, BsPrefixProps } from './helpers';
3
- export interface AccordionBodyProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
- }
5
- declare const AccordionBody: BsPrefixRefForwardingComponent<'div', AccordionBodyProps>;
6
- export default AccordionBody;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
- declare type EventHandler = React.EventHandler<React.SyntheticEvent>;
4
- export interface AccordionButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, BsPrefixProps {
5
- }
6
- export declare function useAccordionButton(eventKey: string, onClick?: EventHandler): EventHandler;
7
- declare const AccordionButton: BsPrefixRefForwardingComponent<'div', AccordionButtonProps>;
8
- export default AccordionButton;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- import { BsPrefixRefForwardingComponent, BsPrefixProps } from './helpers';
3
- export interface AccordionHeaderProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
- }
5
- declare const AccordionHeader: BsPrefixRefForwardingComponent<'h2', AccordionHeaderProps>;
6
- export default AccordionHeader;
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { BsPrefixRefForwardingComponent, BsPrefixProps } from './helpers';
3
- export interface AccordionItemProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
- eventKey: string;
5
- }
6
- declare const AccordionItem: BsPrefixRefForwardingComponent<'div', AccordionItemProps>;
7
- export default AccordionItem;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- export interface AccordionItemContextValue {
3
- eventKey: string;
4
- }
5
- declare const context: React.Context<AccordionItemContextValue>;
6
- export default context;
package/cjs/Anchor.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import Anchor, { AnchorProps } from '@restart/ui/Anchor';
2
- export type { AnchorProps };
3
- export default Anchor;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
- export interface CardHeaderProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
- }
5
- declare const CardHeader: BsPrefixRefForwardingComponent<'div', CardHeaderProps>;
6
- export default CardHeader;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- interface CardHeaderContextValue {
3
- cardHeaderBsPrefix: string;
4
- }
5
- declare const context: React.Context<CardHeaderContextValue | null>;
6
- export default context;
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- import { AlignType } from './types';
3
- export declare type DropDirection = 'up' | 'start' | 'end' | 'down';
4
- export declare type DropdownContextValue = {
5
- align?: AlignType;
6
- drop?: DropDirection;
7
- isRTL?: boolean;
8
- };
9
- declare const DropdownContext: React.Context<DropdownContextValue>;
10
- export default DropdownContext;
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import { FormGroupProps } from './FormGroup';
3
- import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
4
- export interface FloatingLabelProps extends FormGroupProps, BsPrefixProps {
5
- controlId?: string;
6
- label: React.ReactNode;
7
- }
8
- declare const FloatingLabel: BsPrefixRefForwardingComponent<'div', FloatingLabelProps>;
9
- export default FloatingLabel;
@@ -1,2 +0,0 @@
1
- declare const _default: import("./helpers").BsPrefixRefForwardingComponent<"div", unknown>;
2
- export default _default;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- import { BsPrefixOnlyProps } from './helpers';
3
- export interface FormRangeProps extends BsPrefixOnlyProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
4
- }
5
- declare const FormRange: React.ForwardRefExoticComponent<FormRangeProps & React.RefAttributes<HTMLInputElement>>;
6
- export default FormRange;
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- import { BsPrefixOnlyProps, BsPrefixRefForwardingComponent } from './helpers';
3
- export interface FormSelectProps extends BsPrefixOnlyProps, React.HTMLAttributes<HTMLSelectElement> {
4
- htmlSize?: number;
5
- size?: 'sm' | 'lg';
6
- isValid?: boolean;
7
- isInvalid?: boolean;
8
- }
9
- declare const FormSelect: BsPrefixRefForwardingComponent<'select', FormSelectProps>;
10
- export default FormSelect;
@@ -1,3 +0,0 @@
1
- import * as React from 'react';
2
- declare const context: React.Context<unknown>;
3
- export default context;
@@ -1,16 +0,0 @@
1
- import * as React from 'react';
2
- import { ModalProps as BaseModalProps } from '@restart/ui/Modal';
3
- import { BsPrefixRefForwardingComponent } from './helpers';
4
- export declare type OffcanvasPlacement = 'start' | 'end' | 'top' | 'bottom';
5
- export interface OffcanvasProps extends Omit<BaseModalProps, 'role' | 'renderBackdrop' | 'renderDialog' | 'transition' | 'backdrop' | 'backdropTransition'> {
6
- bsPrefix?: string;
7
- backdropClassName?: string;
8
- scroll?: boolean;
9
- placement?: OffcanvasPlacement;
10
- }
11
- declare const _default: BsPrefixRefForwardingComponent<"div", OffcanvasProps> & {
12
- Body: BsPrefixRefForwardingComponent<"div", unknown>;
13
- Header: React.ForwardRefExoticComponent<import("./OffcanvasHeader").OffcanvasHeaderProps & React.RefAttributes<HTMLDivElement>>;
14
- Title: BsPrefixRefForwardingComponent<React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>>, unknown>;
15
- };
16
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("./helpers").BsPrefixRefForwardingComponent<"div", unknown>;
2
- export default _default;
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { AbstractModalHeaderProps } from './AbstractModalHeader';
3
- import { BsPrefixOnlyProps } from './helpers';
4
- export interface OffcanvasHeaderProps extends AbstractModalHeaderProps, BsPrefixOnlyProps {
5
- }
6
- declare const OffcanvasHeader: React.ForwardRefExoticComponent<OffcanvasHeaderProps & React.RefAttributes<HTMLDivElement>>;
7
- export default OffcanvasHeader;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: import("./helpers").BsPrefixRefForwardingComponent<import("react").ForwardRefExoticComponent<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & import("react").RefAttributes<HTMLDivElement>>, unknown>;
3
- export default _default;
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- import Transition from 'react-transition-group/Transition';
3
- import { TransitionCallbacks } from '@restart/ui/types';
4
- import { BsPrefixOnlyProps } from './helpers';
5
- export interface OffcanvasTogglingProps extends TransitionCallbacks, BsPrefixOnlyProps {
6
- className?: string;
7
- in?: boolean;
8
- mountOnEnter?: boolean;
9
- unmountOnExit?: boolean;
10
- appear?: boolean;
11
- timeout?: number;
12
- children: React.ReactElement;
13
- }
14
- declare const OffcanvasToggling: React.ForwardRefExoticComponent<OffcanvasTogglingProps & React.RefAttributes<Transition<any>>>;
15
- export default OffcanvasToggling;
@@ -1,8 +0,0 @@
1
- import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
2
- import { UsePlaceholderProps } from './usePlaceholder';
3
- export interface PlaceholderProps extends UsePlaceholderProps, BsPrefixProps {
4
- }
5
- declare const _default: BsPrefixRefForwardingComponent<"span", PlaceholderProps> & {
6
- Button: BsPrefixRefForwardingComponent<"button", import("./PlaceholderButton").PlaceholderButtonProps>;
7
- };
8
- export default _default;
@@ -1,8 +0,0 @@
1
- import { BsPrefixRefForwardingComponent } from './helpers';
2
- import { UsePlaceholderProps } from './usePlaceholder';
3
- import { ButtonVariant } from './types';
4
- export interface PlaceholderButtonProps extends UsePlaceholderProps {
5
- variant?: ButtonVariant;
6
- }
7
- declare const PlaceholderButton: BsPrefixRefForwardingComponent<'button', PlaceholderButtonProps>;
8
- export default PlaceholderButton;
@@ -1,2 +0,0 @@
1
- declare const _default: import("./helpers").BsPrefixRefForwardingComponent<"div", unknown>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("./helpers").BsPrefixRefForwardingComponent<"div", unknown>;
2
- export default _default;
package/cjs/Ratio.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import { BsPrefixProps } from './helpers';
3
- export declare type AspectRatio = '1x1' | '4x3' | '16x9' | '21x9' | string;
4
- export interface RatioProps extends BsPrefixProps, React.HTMLAttributes<HTMLDivElement> {
5
- children: React.ReactChild;
6
- aspectRatio?: AspectRatio | number;
7
- }
8
- declare const Ratio: React.ForwardRefExoticComponent<RatioProps & React.RefAttributes<HTMLDivElement>>;
9
- export default Ratio;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
- export declare type ToastPosition = 'top-start' | 'top-center' | 'top-end' | 'middle-start' | 'middle-center' | 'middle-end' | 'bottom-start' | 'bottom-center' | 'bottom-end';
4
- export interface ToastContainerProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
5
- position?: ToastPosition;
6
- }
7
- declare const ToastContainer: BsPrefixRefForwardingComponent<'div', ToastContainerProps>;
8
- export default ToastContainer;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import Transition, { TransitionProps, TransitionStatus } from 'react-transition-group/Transition';
3
- export declare type TransitionWrapperProps = TransitionProps & {
4
- childRef?: React.Ref<unknown>;
5
- children: React.ReactElement | ((status: TransitionStatus, props: Record<string, unknown>) => React.ReactNode);
6
- };
7
- declare const TransitionWrapper: React.ForwardRefExoticComponent<Pick<TransitionWrapperProps, string | number> & React.RefAttributes<Transition<any>>>;
8
- export default TransitionWrapper;
@@ -1,3 +0,0 @@
1
- import { TransitionComponent } from '@restart/ui/types';
2
- import { TransitionType } from './helpers';
3
- export default function getTabTransitionComponent(transition?: TransitionType): TransitionComponent | undefined;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export default function safeFindDOMNode(componentOrElement: React.ComponentClass | Element | null | undefined): any;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- import { Options } from '@restart/ui/usePopper';
3
- export default function useOverlayOffset(): [
4
- React.RefObject<HTMLElement>,
5
- Options['modifiers']
6
- ];
@@ -1,10 +0,0 @@
1
- import { ColProps } from './Col';
2
- import { Variant } from './types';
3
- export declare type PlaceholderAnimation = 'glow' | 'wave';
4
- export declare type PlaceholderSize = 'xs' | 'sm' | 'lg';
5
- export interface UsePlaceholderProps extends Omit<ColProps, 'as'> {
6
- animation?: PlaceholderAnimation;
7
- bg?: Variant;
8
- size?: PlaceholderSize;
9
- }
10
- export default function usePlaceholder({ animation, bg, bsPrefix, size, ...props }: UsePlaceholderProps): any;
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- import { CloseButtonVariant } from './CloseButton';
3
- export interface AbstractModalHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
4
- closeLabel?: string;
5
- closeVariant?: CloseButtonVariant;
6
- closeButton?: boolean;
7
- onHide?: () => void;
8
- }
9
- declare const AbstractModalHeader: React.ForwardRefExoticComponent<AbstractModalHeaderProps & React.RefAttributes<HTMLDivElement>>;
10
- export default AbstractModalHeader;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- import { BsPrefixRefForwardingComponent, BsPrefixProps } from './helpers';
3
- export interface AccordionBodyProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
- }
5
- declare const AccordionBody: BsPrefixRefForwardingComponent<'div', AccordionBodyProps>;
6
- export default AccordionBody;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
- declare type EventHandler = React.EventHandler<React.SyntheticEvent>;
4
- export interface AccordionButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, BsPrefixProps {
5
- }
6
- export declare function useAccordionButton(eventKey: string, onClick?: EventHandler): EventHandler;
7
- declare const AccordionButton: BsPrefixRefForwardingComponent<'div', AccordionButtonProps>;
8
- export default AccordionButton;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- import { BsPrefixRefForwardingComponent, BsPrefixProps } from './helpers';
3
- export interface AccordionHeaderProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
- }
5
- declare const AccordionHeader: BsPrefixRefForwardingComponent<'h2', AccordionHeaderProps>;
6
- export default AccordionHeader;
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { BsPrefixRefForwardingComponent, BsPrefixProps } from './helpers';
3
- export interface AccordionItemProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
- eventKey: string;
5
- }
6
- declare const AccordionItem: BsPrefixRefForwardingComponent<'div', AccordionItemProps>;
7
- export default AccordionItem;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- export interface AccordionItemContextValue {
3
- eventKey: string;
4
- }
5
- declare const context: React.Context<AccordionItemContextValue>;
6
- export default context;
package/esm/Anchor.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import Anchor, { AnchorProps } from '@restart/ui/Anchor';
2
- export type { AnchorProps };
3
- export default Anchor;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
- export interface CardHeaderProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
4
- }
5
- declare const CardHeader: BsPrefixRefForwardingComponent<'div', CardHeaderProps>;
6
- export default CardHeader;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- interface CardHeaderContextValue {
3
- cardHeaderBsPrefix: string;
4
- }
5
- declare const context: React.Context<CardHeaderContextValue | null>;
6
- export default context;
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- import { AlignType } from './types';
3
- export declare type DropDirection = 'up' | 'start' | 'end' | 'down';
4
- export declare type DropdownContextValue = {
5
- align?: AlignType;
6
- drop?: DropDirection;
7
- isRTL?: boolean;
8
- };
9
- declare const DropdownContext: React.Context<DropdownContextValue>;
10
- export default DropdownContext;
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import { FormGroupProps } from './FormGroup';
3
- import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
4
- export interface FloatingLabelProps extends FormGroupProps, BsPrefixProps {
5
- controlId?: string;
6
- label: React.ReactNode;
7
- }
8
- declare const FloatingLabel: BsPrefixRefForwardingComponent<'div', FloatingLabelProps>;
9
- export default FloatingLabel;
@@ -1,2 +0,0 @@
1
- declare const _default: import("./helpers").BsPrefixRefForwardingComponent<"div", unknown>;
2
- export default _default;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- import { BsPrefixOnlyProps } from './helpers';
3
- export interface FormRangeProps extends BsPrefixOnlyProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
4
- }
5
- declare const FormRange: React.ForwardRefExoticComponent<FormRangeProps & React.RefAttributes<HTMLInputElement>>;
6
- export default FormRange;
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- import { BsPrefixOnlyProps, BsPrefixRefForwardingComponent } from './helpers';
3
- export interface FormSelectProps extends BsPrefixOnlyProps, React.HTMLAttributes<HTMLSelectElement> {
4
- htmlSize?: number;
5
- size?: 'sm' | 'lg';
6
- isValid?: boolean;
7
- isInvalid?: boolean;
8
- }
9
- declare const FormSelect: BsPrefixRefForwardingComponent<'select', FormSelectProps>;
10
- export default FormSelect;
@@ -1,3 +0,0 @@
1
- import * as React from 'react';
2
- declare const context: React.Context<unknown>;
3
- export default context;
@@ -1,16 +0,0 @@
1
- import * as React from 'react';
2
- import { ModalProps as BaseModalProps } from '@restart/ui/Modal';
3
- import { BsPrefixRefForwardingComponent } from './helpers';
4
- export declare type OffcanvasPlacement = 'start' | 'end' | 'top' | 'bottom';
5
- export interface OffcanvasProps extends Omit<BaseModalProps, 'role' | 'renderBackdrop' | 'renderDialog' | 'transition' | 'backdrop' | 'backdropTransition'> {
6
- bsPrefix?: string;
7
- backdropClassName?: string;
8
- scroll?: boolean;
9
- placement?: OffcanvasPlacement;
10
- }
11
- declare const _default: BsPrefixRefForwardingComponent<"div", OffcanvasProps> & {
12
- Body: BsPrefixRefForwardingComponent<"div", unknown>;
13
- Header: React.ForwardRefExoticComponent<import("./OffcanvasHeader").OffcanvasHeaderProps & React.RefAttributes<HTMLDivElement>>;
14
- Title: BsPrefixRefForwardingComponent<React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>>, unknown>;
15
- };
16
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("./helpers").BsPrefixRefForwardingComponent<"div", unknown>;
2
- export default _default;
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { AbstractModalHeaderProps } from './AbstractModalHeader';
3
- import { BsPrefixOnlyProps } from './helpers';
4
- export interface OffcanvasHeaderProps extends AbstractModalHeaderProps, BsPrefixOnlyProps {
5
- }
6
- declare const OffcanvasHeader: React.ForwardRefExoticComponent<OffcanvasHeaderProps & React.RefAttributes<HTMLDivElement>>;
7
- export default OffcanvasHeader;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: import("./helpers").BsPrefixRefForwardingComponent<import("react").ForwardRefExoticComponent<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & import("react").RefAttributes<HTMLDivElement>>, unknown>;
3
- export default _default;
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- import Transition from 'react-transition-group/Transition';
3
- import { TransitionCallbacks } from '@restart/ui/types';
4
- import { BsPrefixOnlyProps } from './helpers';
5
- export interface OffcanvasTogglingProps extends TransitionCallbacks, BsPrefixOnlyProps {
6
- className?: string;
7
- in?: boolean;
8
- mountOnEnter?: boolean;
9
- unmountOnExit?: boolean;
10
- appear?: boolean;
11
- timeout?: number;
12
- children: React.ReactElement;
13
- }
14
- declare const OffcanvasToggling: React.ForwardRefExoticComponent<OffcanvasTogglingProps & React.RefAttributes<Transition<any>>>;
15
- export default OffcanvasToggling;
@@ -1,8 +0,0 @@
1
- import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
2
- import { UsePlaceholderProps } from './usePlaceholder';
3
- export interface PlaceholderProps extends UsePlaceholderProps, BsPrefixProps {
4
- }
5
- declare const _default: BsPrefixRefForwardingComponent<"span", PlaceholderProps> & {
6
- Button: BsPrefixRefForwardingComponent<"button", import("./PlaceholderButton").PlaceholderButtonProps>;
7
- };
8
- export default _default;
@@ -1,8 +0,0 @@
1
- import { BsPrefixRefForwardingComponent } from './helpers';
2
- import { UsePlaceholderProps } from './usePlaceholder';
3
- import { ButtonVariant } from './types';
4
- export interface PlaceholderButtonProps extends UsePlaceholderProps {
5
- variant?: ButtonVariant;
6
- }
7
- declare const PlaceholderButton: BsPrefixRefForwardingComponent<'button', PlaceholderButtonProps>;
8
- export default PlaceholderButton;
@@ -1,2 +0,0 @@
1
- declare const _default: import("./helpers").BsPrefixRefForwardingComponent<"div", unknown>;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("./helpers").BsPrefixRefForwardingComponent<"div", unknown>;
2
- export default _default;
package/esm/Ratio.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import { BsPrefixProps } from './helpers';
3
- export declare type AspectRatio = '1x1' | '4x3' | '16x9' | '21x9' | string;
4
- export interface RatioProps extends BsPrefixProps, React.HTMLAttributes<HTMLDivElement> {
5
- children: React.ReactChild;
6
- aspectRatio?: AspectRatio | number;
7
- }
8
- declare const Ratio: React.ForwardRefExoticComponent<RatioProps & React.RefAttributes<HTMLDivElement>>;
9
- export default Ratio;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
3
- export declare type ToastPosition = 'top-start' | 'top-center' | 'top-end' | 'middle-start' | 'middle-center' | 'middle-end' | 'bottom-start' | 'bottom-center' | 'bottom-end';
4
- export interface ToastContainerProps extends BsPrefixProps, React.HTMLAttributes<HTMLElement> {
5
- position?: ToastPosition;
6
- }
7
- declare const ToastContainer: BsPrefixRefForwardingComponent<'div', ToastContainerProps>;
8
- export default ToastContainer;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import Transition, { TransitionProps, TransitionStatus } from 'react-transition-group/Transition';
3
- export declare type TransitionWrapperProps = TransitionProps & {
4
- childRef?: React.Ref<unknown>;
5
- children: React.ReactElement | ((status: TransitionStatus, props: Record<string, unknown>) => React.ReactNode);
6
- };
7
- declare const TransitionWrapper: React.ForwardRefExoticComponent<Pick<TransitionWrapperProps, string | number> & React.RefAttributes<Transition<any>>>;
8
- export default TransitionWrapper;
@@ -1,3 +0,0 @@
1
- import { TransitionComponent } from '@restart/ui/types';
2
- import { TransitionType } from './helpers';
3
- export default function getTabTransitionComponent(transition?: TransitionType): TransitionComponent | undefined;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export default function safeFindDOMNode(componentOrElement: React.ComponentClass | Element | null | undefined): any;