react-bootstrap 3.0.0-beta.1 → 3.0.0-beta.3
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 +23 -0
- package/cjs/AbstractModalHeader.d.ts +1 -1
- package/cjs/AbstractModalHeader.js +2 -2
- package/cjs/Accordion.d.ts +6 -6
- package/cjs/Accordion.js +7 -7
- package/cjs/AccordionBody.d.ts +1 -1
- package/cjs/AccordionBody.js +3 -3
- package/cjs/AccordionButton.js +4 -4
- package/cjs/AccordionCollapse.d.ts +1 -1
- package/cjs/AccordionCollapse.js +3 -3
- package/cjs/AccordionHeader.d.ts +4 -0
- package/cjs/AccordionHeader.js +4 -2
- package/cjs/AccordionItem.js +2 -2
- package/cjs/Alert.d.ts +5 -5
- package/cjs/Alert.js +5 -5
- package/cjs/AlertHeading.js +2 -2
- package/cjs/AlertLink.js +1 -1
- package/cjs/Badge.d.ts +1 -1
- package/cjs/Badge.js +1 -1
- package/cjs/BootstrapModalManager.js +2 -4
- package/cjs/Breadcrumb.d.ts +1 -1
- package/cjs/Breadcrumb.js +2 -2
- package/cjs/BreadcrumbItem.js +1 -1
- package/cjs/Button.d.ts +1 -1
- package/cjs/Button.js +1 -1
- package/cjs/ButtonGroup.js +1 -1
- package/cjs/ButtonToolbar.js +1 -1
- package/cjs/Card.d.ts +10 -10
- package/cjs/Card.js +10 -10
- package/cjs/CardBody.js +1 -1
- package/cjs/CardFooter.js +1 -1
- package/cjs/CardGroup.js +1 -1
- package/cjs/CardHeader.js +2 -2
- package/cjs/CardImg.js +1 -1
- package/cjs/CardImgOverlay.js +1 -1
- package/cjs/CardLink.js +1 -1
- package/cjs/CardSubtitle.js +2 -2
- package/cjs/CardText.js +1 -1
- package/cjs/CardTitle.js +2 -2
- package/cjs/Carousel.d.ts +2 -2
- package/cjs/Carousel.js +7 -7
- package/cjs/CarouselCaption.js +1 -1
- package/cjs/CarouselItem.js +1 -1
- package/cjs/Col.js +2 -1
- package/cjs/Collapse.d.ts +2 -2
- package/cjs/Collapse.js +8 -9
- package/cjs/Container.js +1 -1
- package/cjs/Dropdown.d.ts +7 -7
- package/cjs/Dropdown.js +9 -9
- package/cjs/DropdownButton.d.ts +3 -3
- package/cjs/DropdownButton.js +3 -3
- package/cjs/DropdownContext.d.ts +1 -1
- package/cjs/DropdownDivider.js +1 -1
- package/cjs/DropdownHeader.js +1 -1
- package/cjs/DropdownItem.js +1 -1
- package/cjs/DropdownItemText.js +1 -1
- package/cjs/DropdownMenu.d.ts +3 -3
- package/cjs/DropdownMenu.js +5 -5
- package/cjs/DropdownToggle.d.ts +1 -1
- package/cjs/DropdownToggle.js +3 -3
- package/cjs/Fade.d.ts +2 -2
- package/cjs/Fade.js +5 -6
- package/cjs/Figure.d.ts +2 -2
- package/cjs/Figure.js +3 -3
- package/cjs/FigureCaption.js +1 -1
- package/cjs/FigureImage.d.ts +1 -1
- package/cjs/FigureImage.js +1 -1
- package/cjs/FloatingLabel.d.ts +1 -1
- package/cjs/FloatingLabel.js +2 -2
- package/cjs/Form.d.ts +21 -21
- package/cjs/Form.js +10 -10
- package/cjs/FormCheck.d.ts +3 -3
- package/cjs/FormCheck.js +6 -6
- package/cjs/FormCheckInput.js +2 -2
- package/cjs/FormCheckLabel.js +2 -2
- package/cjs/FormControl.d.ts +1 -1
- package/cjs/FormControl.js +3 -3
- package/cjs/FormFloating.js +1 -1
- package/cjs/FormGroup.js +1 -1
- package/cjs/FormLabel.d.ts +1 -1
- package/cjs/FormLabel.js +3 -3
- package/cjs/FormRange.js +2 -2
- package/cjs/FormSelect.js +2 -2
- package/cjs/FormText.js +1 -1
- package/cjs/Image.js +1 -1
- package/cjs/InputGroup.d.ts +2 -2
- package/cjs/InputGroup.js +4 -4
- package/cjs/InputGroupText.js +1 -1
- package/cjs/ListGroup.d.ts +2 -2
- package/cjs/ListGroup.js +2 -2
- package/cjs/ListGroupItem.d.ts +1 -1
- package/cjs/ListGroupItem.js +1 -1
- package/cjs/Modal.d.ts +6 -6
- package/cjs/Modal.js +12 -14
- package/cjs/ModalBody.js +1 -1
- package/cjs/ModalDialog.js +1 -1
- package/cjs/ModalFooter.js +1 -1
- package/cjs/ModalHeader.d.ts +1 -1
- package/cjs/ModalHeader.js +2 -2
- package/cjs/ModalTitle.js +2 -2
- package/cjs/Nav.d.ts +3 -3
- package/cjs/Nav.js +5 -5
- package/cjs/NavDropdown.d.ts +6 -6
- package/cjs/NavDropdown.js +3 -3
- package/cjs/NavItem.js +1 -1
- package/cjs/NavLink.d.ts +1 -1
- package/cjs/NavLink.js +1 -1
- package/cjs/Navbar.d.ts +6 -6
- package/cjs/Navbar.js +7 -7
- package/cjs/NavbarBrand.js +1 -1
- package/cjs/NavbarCollapse.d.ts +1 -1
- package/cjs/NavbarCollapse.js +3 -3
- package/cjs/NavbarOffcanvas.d.ts +1 -1
- package/cjs/NavbarOffcanvas.js +2 -2
- package/cjs/NavbarText.js +1 -1
- package/cjs/NavbarToggle.js +2 -2
- package/cjs/Offcanvas.d.ts +4 -4
- package/cjs/Offcanvas.js +8 -8
- package/cjs/OffcanvasBody.js +1 -1
- package/cjs/OffcanvasHeader.d.ts +1 -1
- package/cjs/OffcanvasHeader.js +2 -2
- package/cjs/OffcanvasTitle.js +2 -2
- package/cjs/OffcanvasToggling.d.ts +2 -2
- package/cjs/OffcanvasToggling.js +6 -7
- package/cjs/Overlay.d.ts +2 -2
- package/cjs/Overlay.js +2 -2
- package/cjs/OverlayTrigger.d.ts +2 -2
- package/cjs/OverlayTrigger.js +2 -3
- package/cjs/Pagination.d.ts +6 -6
- package/cjs/Pagination.js +2 -2
- package/cjs/Placeholder.d.ts +2 -2
- package/cjs/Placeholder.js +2 -2
- package/cjs/PlaceholderButton.d.ts +2 -2
- package/cjs/PlaceholderButton.js +2 -2
- package/cjs/Popover.d.ts +3 -3
- package/cjs/Popover.js +5 -5
- package/cjs/PopoverBody.js +1 -1
- package/cjs/PopoverHeader.js +1 -1
- package/cjs/ProgressBar.js +2 -2
- package/cjs/Ratio.js +1 -1
- package/cjs/Row.js +1 -1
- package/cjs/Spinner.d.ts +1 -1
- package/cjs/Spinner.js +1 -1
- package/cjs/SplitButton.d.ts +2 -2
- package/cjs/SplitButton.js +3 -3
- package/cjs/Stack.d.ts +2 -2
- package/cjs/Stack.js +2 -2
- package/cjs/Switch.d.ts +5 -5
- package/cjs/Switch.js +1 -1
- package/cjs/Tab.d.ts +3 -3
- package/cjs/Tab.js +3 -3
- package/cjs/TabContainer.d.ts +1 -1
- package/cjs/TabContainer.js +1 -1
- package/cjs/TabContent.js +1 -1
- package/cjs/TabPane.d.ts +2 -2
- package/cjs/TabPane.js +3 -3
- package/cjs/Table.js +1 -1
- package/cjs/Tabs.d.ts +2 -2
- package/cjs/Tabs.js +7 -7
- package/cjs/Toast.d.ts +3 -3
- package/cjs/Toast.js +5 -5
- package/cjs/ToastBody.js +1 -1
- package/cjs/ToastContainer.js +1 -1
- package/cjs/ToastFade.d.ts +2 -2
- package/cjs/ToastFade.js +3 -4
- package/cjs/ToastHeader.d.ts +1 -1
- package/cjs/ToastHeader.js +3 -3
- package/cjs/ToggleButton.d.ts +1 -1
- package/cjs/ToggleButton.js +2 -2
- package/cjs/ToggleButtonGroup.d.ts +2 -2
- package/cjs/ToggleButtonGroup.js +4 -4
- package/cjs/Tooltip.d.ts +1 -1
- package/cjs/Tooltip.js +3 -3
- package/cjs/TransitionWrapper.d.ts +4 -4
- package/cjs/TransitionWrapper.js +2 -2
- package/cjs/createUtilityClasses.js +1 -1
- package/cjs/createWithBsPrefix.js +1 -1
- package/cjs/getTabTransitionComponent.d.ts +1 -1
- package/cjs/getTabTransitionComponent.js +1 -1
- package/cjs/index.d.ts +217 -217
- package/cjs/index.js +111 -111
- package/cjs/transitionEndListener.js +3 -4
- package/cjs/types.d.ts +1 -1
- package/cjs/useAccordionButton.js +1 -1
- package/cjs/useCol.d.ts +1 -1
- package/cjs/useCol.js +1 -1
- package/cjs/useOverlayOffset.js +5 -6
- package/cjs/usePlaceholder.d.ts +2 -2
- package/cjs/usePlaceholder.js +2 -2
- package/lib/AbstractModalHeader.d.ts +1 -1
- package/lib/AbstractModalHeader.js +2 -2
- package/lib/Accordion.d.ts +6 -6
- package/lib/Accordion.js +7 -7
- package/lib/AccordionBody.d.ts +1 -1
- package/lib/AccordionBody.js +3 -3
- package/lib/AccordionButton.js +4 -4
- package/lib/AccordionCollapse.d.ts +1 -1
- package/lib/AccordionCollapse.js +3 -3
- package/lib/AccordionHeader.d.ts +4 -0
- package/lib/AccordionHeader.js +4 -2
- package/lib/AccordionItem.js +2 -2
- package/lib/Alert.d.ts +5 -5
- package/lib/Alert.js +5 -5
- package/lib/AlertHeading.js +2 -2
- package/lib/AlertLink.js +1 -1
- package/lib/Badge.d.ts +1 -1
- package/lib/Badge.js +1 -1
- package/lib/BootstrapModalManager.js +2 -4
- package/lib/Breadcrumb.d.ts +1 -1
- package/lib/Breadcrumb.js +2 -2
- package/lib/BreadcrumbItem.js +1 -1
- package/lib/Button.d.ts +1 -1
- package/lib/Button.js +1 -1
- package/lib/ButtonGroup.js +1 -1
- package/lib/ButtonToolbar.js +1 -1
- package/lib/Card.d.ts +10 -10
- package/lib/Card.js +10 -10
- package/lib/CardBody.js +1 -1
- package/lib/CardFooter.js +1 -1
- package/lib/CardGroup.js +1 -1
- package/lib/CardHeader.js +2 -2
- package/lib/CardImg.js +1 -1
- package/lib/CardImgOverlay.js +1 -1
- package/lib/CardLink.js +1 -1
- package/lib/CardSubtitle.js +2 -2
- package/lib/CardText.js +1 -1
- package/lib/CardTitle.js +2 -2
- package/lib/Carousel.d.ts +2 -2
- package/lib/Carousel.js +7 -7
- package/lib/CarouselCaption.js +1 -1
- package/lib/CarouselItem.js +1 -1
- package/lib/Col.js +3 -1
- package/lib/Collapse.d.ts +2 -2
- package/lib/Collapse.js +8 -9
- package/lib/Container.js +1 -1
- package/lib/Dropdown.d.ts +7 -7
- package/lib/Dropdown.js +9 -9
- package/lib/DropdownButton.d.ts +3 -3
- package/lib/DropdownButton.js +3 -3
- package/lib/DropdownContext.d.ts +1 -1
- package/lib/DropdownDivider.js +1 -1
- package/lib/DropdownHeader.js +1 -1
- package/lib/DropdownItem.js +1 -1
- package/lib/DropdownItemText.js +1 -1
- package/lib/DropdownMenu.d.ts +3 -3
- package/lib/DropdownMenu.js +5 -5
- package/lib/DropdownToggle.d.ts +1 -1
- package/lib/DropdownToggle.js +3 -3
- package/lib/Fade.d.ts +2 -2
- package/lib/Fade.js +5 -6
- package/lib/Figure.d.ts +2 -2
- package/lib/Figure.js +3 -3
- package/lib/FigureCaption.js +1 -1
- package/lib/FigureImage.d.ts +1 -1
- package/lib/FigureImage.js +1 -1
- package/lib/FloatingLabel.d.ts +1 -1
- package/lib/FloatingLabel.js +2 -2
- package/lib/Form.d.ts +21 -21
- package/lib/Form.js +10 -10
- package/lib/FormCheck.d.ts +3 -3
- package/lib/FormCheck.js +6 -6
- package/lib/FormCheckInput.js +2 -2
- package/lib/FormCheckLabel.js +2 -2
- package/lib/FormControl.d.ts +1 -1
- package/lib/FormControl.js +3 -3
- package/lib/FormFloating.js +1 -1
- package/lib/FormGroup.js +1 -1
- package/lib/FormLabel.d.ts +1 -1
- package/lib/FormLabel.js +3 -3
- package/lib/FormRange.js +2 -2
- package/lib/FormSelect.js +2 -2
- package/lib/FormText.js +1 -1
- package/lib/Image.js +1 -1
- package/lib/InputGroup.d.ts +2 -2
- package/lib/InputGroup.js +4 -4
- package/lib/InputGroupText.js +1 -1
- package/lib/ListGroup.d.ts +2 -2
- package/lib/ListGroup.js +2 -2
- package/lib/ListGroupItem.d.ts +1 -1
- package/lib/ListGroupItem.js +1 -1
- package/lib/Modal.d.ts +6 -6
- package/lib/Modal.js +12 -14
- package/lib/ModalBody.js +1 -1
- package/lib/ModalDialog.js +1 -1
- package/lib/ModalFooter.js +1 -1
- package/lib/ModalHeader.d.ts +1 -1
- package/lib/ModalHeader.js +2 -2
- package/lib/ModalTitle.js +2 -2
- package/lib/Nav.d.ts +3 -3
- package/lib/Nav.js +5 -5
- package/lib/NavDropdown.d.ts +6 -6
- package/lib/NavDropdown.js +3 -3
- package/lib/NavItem.js +1 -1
- package/lib/NavLink.d.ts +1 -1
- package/lib/NavLink.js +1 -1
- package/lib/Navbar.d.ts +6 -6
- package/lib/Navbar.js +7 -7
- package/lib/NavbarBrand.js +1 -1
- package/lib/NavbarCollapse.d.ts +1 -1
- package/lib/NavbarCollapse.js +3 -3
- package/lib/NavbarOffcanvas.d.ts +1 -1
- package/lib/NavbarOffcanvas.js +2 -2
- package/lib/NavbarText.js +1 -1
- package/lib/NavbarToggle.js +2 -2
- package/lib/Offcanvas.d.ts +4 -4
- package/lib/Offcanvas.js +8 -8
- package/lib/OffcanvasBody.js +1 -1
- package/lib/OffcanvasHeader.d.ts +1 -1
- package/lib/OffcanvasHeader.js +2 -2
- package/lib/OffcanvasTitle.js +2 -2
- package/lib/OffcanvasToggling.d.ts +2 -2
- package/lib/OffcanvasToggling.js +6 -7
- package/lib/Overlay.d.ts +2 -2
- package/lib/Overlay.js +2 -2
- package/lib/OverlayTrigger.d.ts +2 -2
- package/lib/OverlayTrigger.js +2 -3
- package/lib/Pagination.d.ts +6 -6
- package/lib/Pagination.js +2 -2
- package/lib/Placeholder.d.ts +2 -2
- package/lib/Placeholder.js +2 -2
- package/lib/PlaceholderButton.d.ts +2 -2
- package/lib/PlaceholderButton.js +2 -2
- package/lib/Popover.d.ts +3 -3
- package/lib/Popover.js +5 -5
- package/lib/PopoverBody.js +1 -1
- package/lib/PopoverHeader.js +1 -1
- package/lib/ProgressBar.js +2 -2
- package/lib/Ratio.js +1 -1
- package/lib/Row.js +1 -1
- package/lib/Spinner.d.ts +1 -1
- package/lib/Spinner.js +1 -1
- package/lib/SplitButton.d.ts +2 -2
- package/lib/SplitButton.js +3 -3
- package/lib/Stack.d.ts +2 -2
- package/lib/Stack.js +2 -2
- package/lib/Switch.d.ts +5 -5
- package/lib/Switch.js +1 -1
- package/lib/Tab.d.ts +3 -3
- package/lib/Tab.js +3 -3
- package/lib/TabContainer.d.ts +1 -1
- package/lib/TabContainer.js +1 -1
- package/lib/TabContent.js +1 -1
- package/lib/TabPane.d.ts +2 -2
- package/lib/TabPane.js +3 -3
- package/lib/Table.js +1 -1
- package/lib/Tabs.d.ts +2 -2
- package/lib/Tabs.js +7 -7
- package/lib/Toast.d.ts +3 -3
- package/lib/Toast.js +5 -5
- package/lib/ToastBody.js +1 -1
- package/lib/ToastContainer.js +1 -1
- package/lib/ToastFade.d.ts +2 -2
- package/lib/ToastFade.js +3 -4
- package/lib/ToastHeader.d.ts +1 -1
- package/lib/ToastHeader.js +3 -3
- package/lib/ToggleButton.d.ts +1 -1
- package/lib/ToggleButton.js +2 -2
- package/lib/ToggleButtonGroup.d.ts +2 -2
- package/lib/ToggleButtonGroup.js +4 -4
- package/lib/Tooltip.d.ts +1 -1
- package/lib/Tooltip.js +3 -3
- package/lib/TransitionWrapper.d.ts +4 -4
- package/lib/TransitionWrapper.js +1 -1
- package/lib/createUtilityClasses.js +1 -1
- package/lib/createWithBsPrefix.js +1 -1
- package/lib/getTabTransitionComponent.d.ts +1 -1
- package/lib/getTabTransitionComponent.js +1 -1
- package/lib/index.d.ts +217 -217
- package/lib/index.js +111 -111
- package/lib/transitionEndListener.js +3 -4
- package/lib/types.d.ts +1 -1
- package/lib/useAccordionButton.js +1 -1
- package/lib/useCol.d.ts +1 -1
- package/lib/useCol.js +1 -1
- package/lib/useOverlayOffset.js +5 -6
- package/lib/usePlaceholder.d.ts +2 -2
- package/lib/usePlaceholder.js +2 -2
- package/package.json +6 -5
- package/lib/package.json +0 -1
package/lib/ProgressBar.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { cloneElement } from 'react';
|
|
6
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
7
|
-
import { map } from './ElementChildren';
|
|
6
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
7
|
+
import { map } from './ElementChildren.js';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
const ROUND_PRECISION = 1000;
|
|
10
10
|
function getPercentage(now, min, max) {
|
package/lib/Ratio.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
function toPercent(num) {
|
|
8
8
|
if (num <= 0) return '100%';
|
package/lib/Row.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { useBootstrapPrefix, useBootstrapBreakpoints, useBootstrapMinBreakpoint } from './ThemeProvider';
|
|
5
|
+
import { useBootstrapPrefix, useBootstrapBreakpoints, useBootstrapMinBreakpoint } from './ThemeProvider.js';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
const Row = /*#__PURE__*/React.forwardRef(({
|
|
8
8
|
bsPrefix,
|
package/lib/Spinner.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DynamicRefForwardingComponent } from '@restart/ui/types';
|
|
3
|
-
import type { Variant } from './types';
|
|
3
|
+
import type { Variant } from './types.js';
|
|
4
4
|
export interface SpinnerProps extends React.HTMLAttributes<HTMLElement> {
|
|
5
5
|
/**
|
|
6
6
|
* Element used to render the component.
|
package/lib/Spinner.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
const Spinner = /*#__PURE__*/React.forwardRef(({
|
|
8
8
|
bsPrefix,
|
package/lib/SplitButton.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { PropsFromToggle } from './DropdownToggle';
|
|
3
|
-
import { BsDropdownProps } from './types';
|
|
2
|
+
import type { PropsFromToggle } from './DropdownToggle.js';
|
|
3
|
+
import { BsDropdownProps } from './types.js';
|
|
4
4
|
export interface SplitButtonProps extends BsDropdownProps, PropsFromToggle, Omit<React.HTMLAttributes<HTMLElement>, 'onSelect' | 'children' | 'onToggle' | 'title'> {
|
|
5
5
|
/**
|
|
6
6
|
* An ARIA accessible role applied to the Menu component.
|
package/lib/SplitButton.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import Button from './Button';
|
|
3
|
-
import ButtonGroup from './ButtonGroup';
|
|
4
|
-
import Dropdown from './Dropdown';
|
|
2
|
+
import Button from './Button.js';
|
|
3
|
+
import ButtonGroup from './ButtonGroup.js';
|
|
4
|
+
import Dropdown from './Dropdown.js';
|
|
5
5
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
6
|
/**
|
|
7
7
|
* A convenience component for simple or general use split button dropdowns. Renders a
|
package/lib/Stack.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DynamicRefForwardingComponent } from '@restart/ui/types';
|
|
3
|
-
import type { GapValue } from './types';
|
|
4
|
-
import { type ResponsiveUtilityValue } from './createUtilityClasses';
|
|
3
|
+
import type { GapValue } from './types.js';
|
|
4
|
+
import { type ResponsiveUtilityValue } from './createUtilityClasses.js';
|
|
5
5
|
export type StackDirection = 'horizontal' | 'vertical';
|
|
6
6
|
export interface StackProps extends React.HTMLAttributes<HTMLElement> {
|
|
7
7
|
/**
|
package/lib/Stack.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { useBootstrapPrefix, useBootstrapBreakpoints, useBootstrapMinBreakpoint } from './ThemeProvider';
|
|
6
|
-
import createUtilityClassName from './createUtilityClasses';
|
|
5
|
+
import { useBootstrapPrefix, useBootstrapBreakpoints, useBootstrapMinBreakpoint } from './ThemeProvider.js';
|
|
6
|
+
import createUtilityClassName from './createUtilityClasses.js';
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
const Stack = /*#__PURE__*/React.forwardRef(({
|
|
9
9
|
as: Component = 'div',
|
package/lib/Switch.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DynamicRefForwardingComponent } from '@restart/ui/types';
|
|
3
|
-
import { FormCheckProps } from './FormCheck';
|
|
3
|
+
import { FormCheckProps } from './FormCheck.js';
|
|
4
4
|
type SwitchProps = Omit<FormCheckProps, 'type'>;
|
|
5
5
|
declare const _default: DynamicRefForwardingComponent<DynamicRefForwardingComponent<"input", FormCheckProps> & {
|
|
6
|
-
Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput").FormCheckInputProps>;
|
|
7
|
-
Label: React.ForwardRefExoticComponent<import("./FormCheckLabel").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
6
|
+
Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput.js").FormCheckInputProps>;
|
|
7
|
+
Label: React.ForwardRefExoticComponent<import("./FormCheckLabel.js").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
8
8
|
}, SwitchProps> & {
|
|
9
|
-
Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput").FormCheckInputProps>;
|
|
10
|
-
Label: React.ForwardRefExoticComponent<import("./FormCheckLabel").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
9
|
+
Input: DynamicRefForwardingComponent<"input", import("./FormCheckInput.js").FormCheckInputProps>;
|
|
10
|
+
Label: React.ForwardRefExoticComponent<import("./FormCheckLabel.js").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
11
11
|
};
|
|
12
12
|
export default _default;
|
package/lib/Switch.js
CHANGED
package/lib/Tab.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { type TabPaneProps } from './TabPane';
|
|
2
|
+
import { type TabPaneProps } from './TabPane.js';
|
|
3
3
|
export interface TabProps extends Omit<TabPaneProps, 'title'> {
|
|
4
4
|
/**
|
|
5
5
|
* Content for the tab title.
|
|
@@ -20,10 +20,10 @@ export interface TabProps extends Omit<TabPaneProps, 'title'> {
|
|
|
20
20
|
}
|
|
21
21
|
declare const _default: React.FC<TabProps> & {
|
|
22
22
|
Container: {
|
|
23
|
-
({ transition, ...props }: import("./TabContainer").TabContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
({ transition, ...props }: import("./TabContainer.js").TabContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
displayName: string;
|
|
25
25
|
};
|
|
26
|
-
Content: import("@restart/ui/types").DynamicRefForwardingComponent<"div", import("./TabContent").TabContentProps>;
|
|
26
|
+
Content: import("@restart/ui/types").DynamicRefForwardingComponent<"div", import("./TabContent.js").TabContentProps>;
|
|
27
27
|
Pane: import("@restart/ui/types").DynamicRefForwardingComponent<"div", TabPaneProps>;
|
|
28
28
|
};
|
|
29
29
|
export default _default;
|
package/lib/Tab.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import TabContainer from './TabContainer';
|
|
2
|
-
import TabContent from './TabContent';
|
|
3
|
-
import TabPane from './TabPane';
|
|
1
|
+
import TabContainer from './TabContainer.js';
|
|
2
|
+
import TabContent from './TabContent.js';
|
|
3
|
+
import TabPane from './TabPane.js';
|
|
4
4
|
const Tab = () => {
|
|
5
5
|
throw new Error('ReactBootstrap: The `Tab` component is not meant to be rendered! ' + "It's an abstract component that is only valid as a direct Child of the `Tabs` Component. " + 'For custom tabs components use TabPane and TabsContainer directly');
|
|
6
6
|
};
|
package/lib/TabContainer.d.ts
CHANGED
package/lib/TabContainer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Tabs from '@restart/ui/Tabs';
|
|
2
|
-
import getTabTransitionComponent from './getTabTransitionComponent';
|
|
2
|
+
import getTabTransitionComponent from './getTabTransitionComponent.js';
|
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
4
|
const TabContainer = ({
|
|
5
5
|
transition,
|
package/lib/TabContent.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
const TabContent = /*#__PURE__*/React.forwardRef(({
|
|
8
8
|
className,
|
package/lib/TabPane.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { DynamicRefForwardingComponent, EventKey } from '@restart/ui/types';
|
|
3
|
-
import type { TransitionType } from './helpers';
|
|
4
|
-
import type { TransitionCallbacks } from './types';
|
|
3
|
+
import type { TransitionType } from './helpers.js';
|
|
4
|
+
import type { TransitionCallbacks } from './types.js';
|
|
5
5
|
export interface TabPaneProps extends TransitionCallbacks, React.HTMLAttributes<HTMLElement> {
|
|
6
6
|
/**
|
|
7
7
|
* Element used to render the component.
|
package/lib/TabPane.js
CHANGED
|
@@ -5,9 +5,9 @@ import * as React from 'react';
|
|
|
5
5
|
import SelectableContext from '@restart/ui/SelectableContext';
|
|
6
6
|
import TabContext from '@restart/ui/TabContext';
|
|
7
7
|
import { useTabPanel } from '@restart/ui/TabPanel';
|
|
8
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
9
|
-
import Fade from './Fade';
|
|
10
|
-
import getTabTransitionComponent from './getTabTransitionComponent';
|
|
8
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
9
|
+
import Fade from './Fade.js';
|
|
10
|
+
import getTabTransitionComponent from './getTabTransitionComponent.js';
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
const TabPane = /*#__PURE__*/React.forwardRef(({
|
|
13
13
|
bsPrefix,
|
package/lib/Table.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
const Table = /*#__PURE__*/React.forwardRef(({
|
|
8
8
|
bsPrefix,
|
package/lib/Tabs.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { TabsProps as BaseTabsProps } from '@restart/ui/Tabs';
|
|
3
|
-
import { type NavProps } from './Nav';
|
|
4
|
-
import type { TransitionType } from './helpers';
|
|
3
|
+
import { type NavProps } from './Nav.js';
|
|
4
|
+
import type { TransitionType } from './helpers.js';
|
|
5
5
|
export interface TabsProps extends Omit<BaseTabsProps, 'transition'>, Omit<React.HTMLAttributes<HTMLElement>, 'onSelect' | 'role'>, NavProps {
|
|
6
6
|
/**
|
|
7
7
|
* Sets a default animation strategy for all children `<TabPane>`s.<tbcont
|
package/lib/Tabs.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useUncontrolled } from 'uncontrollable';
|
|
3
3
|
import BaseTabs from '@restart/ui/Tabs';
|
|
4
|
-
import Nav from './Nav';
|
|
5
|
-
import NavLink from './NavLink';
|
|
6
|
-
import NavItem from './NavItem';
|
|
7
|
-
import TabContent from './TabContent';
|
|
8
|
-
import TabPane from './TabPane';
|
|
9
|
-
import { forEach, map } from './ElementChildren';
|
|
10
|
-
import getTabTransitionComponent from './getTabTransitionComponent';
|
|
4
|
+
import Nav from './Nav.js';
|
|
5
|
+
import NavLink from './NavLink.js';
|
|
6
|
+
import NavItem from './NavItem.js';
|
|
7
|
+
import TabContent from './TabContent.js';
|
|
8
|
+
import TabPane from './TabPane.js';
|
|
9
|
+
import { forEach, map } from './ElementChildren.js';
|
|
10
|
+
import getTabTransitionComponent from './getTabTransitionComponent.js';
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
12
|
function getDefaultActiveKey(children) {
|
|
13
13
|
let defaultActiveKey;
|
package/lib/Toast.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { DynamicRefForwardingComponent, TransitionComponent } from '@restart/ui/types';
|
|
3
|
-
import type { TransitionCallbacks, Variant } from './types';
|
|
3
|
+
import type { TransitionCallbacks, Variant } from './types.js';
|
|
4
4
|
export interface ToastProps extends TransitionCallbacks, React.HTMLAttributes<HTMLElement> {
|
|
5
5
|
/**
|
|
6
6
|
* Element used to render the component.
|
|
@@ -46,7 +46,7 @@ export interface ToastProps extends TransitionCallbacks, React.HTMLAttributes<HT
|
|
|
46
46
|
bg?: Variant | undefined;
|
|
47
47
|
}
|
|
48
48
|
declare const _default: DynamicRefForwardingComponent<"div", ToastProps> & {
|
|
49
|
-
Body: DynamicRefForwardingComponent<"div", import("./ToastBody").ToastBodyProps>;
|
|
50
|
-
Header: React.ForwardRefExoticComponent<import("./ToastHeader").ToastHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
49
|
+
Body: DynamicRefForwardingComponent<"div", import("./ToastBody.js").ToastBodyProps>;
|
|
50
|
+
Header: React.ForwardRefExoticComponent<import("./ToastHeader.js").ToastHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
51
51
|
};
|
|
52
52
|
export default _default;
|
package/lib/Toast.js
CHANGED
|
@@ -4,11 +4,11 @@ import * as React from 'react';
|
|
|
4
4
|
import { useEffect, useMemo, useRef, useCallback } from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import useTimeout from '@restart/hooks/useTimeout';
|
|
7
|
-
import ToastFade from './ToastFade';
|
|
8
|
-
import ToastHeader from './ToastHeader';
|
|
9
|
-
import ToastBody from './ToastBody';
|
|
10
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
11
|
-
import ToastContext from './ToastContext';
|
|
7
|
+
import ToastFade from './ToastFade.js';
|
|
8
|
+
import ToastHeader from './ToastHeader.js';
|
|
9
|
+
import ToastBody from './ToastBody.js';
|
|
10
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
11
|
+
import ToastContext from './ToastContext.js';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
const Toast = /*#__PURE__*/React.forwardRef(({
|
|
14
14
|
bsPrefix,
|
package/lib/ToastBody.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
const ToastBody = /*#__PURE__*/React.forwardRef(({
|
|
8
8
|
className,
|
package/lib/ToastContainer.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
const positionClasses = {
|
|
8
8
|
'top-start': 'top-0 start-0',
|
package/lib/ToastFade.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import Transition from 'react-transition-group
|
|
3
|
-
import { type FadeProps } from './Fade';
|
|
2
|
+
import { Transition } from 'react-transition-group';
|
|
3
|
+
import { type FadeProps } from './Fade.js';
|
|
4
4
|
declare const ToastFade: React.ForwardRefExoticComponent<FadeProps & React.RefAttributes<Transition<any>>>;
|
|
5
5
|
export default ToastFade;
|
package/lib/ToastFade.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import Fade from './Fade';
|
|
2
|
+
import Fade from './Fade.js';
|
|
4
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
4
|
const fadeStyles = {
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
entering: 'showing',
|
|
6
|
+
exiting: 'showing show'
|
|
8
7
|
};
|
|
9
8
|
const ToastFade = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/_jsx(Fade, {
|
|
10
9
|
...props,
|
package/lib/ToastHeader.d.ts
CHANGED
package/lib/ToastHeader.js
CHANGED
|
@@ -4,9 +4,9 @@ import clsx from 'clsx';
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useContext } from 'react';
|
|
6
6
|
import useEventCallback from '@restart/hooks/useEventCallback';
|
|
7
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
8
|
-
import CloseButton from './CloseButton';
|
|
9
|
-
import ToastContext from './ToastContext';
|
|
7
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
8
|
+
import CloseButton from './CloseButton.js';
|
|
9
|
+
import ToastContext from './ToastContext.js';
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
11
|
const ToastHeader = /*#__PURE__*/React.forwardRef(({
|
|
12
12
|
bsPrefix,
|
package/lib/ToggleButton.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { type ButtonProps } from './Button';
|
|
2
|
+
import { type ButtonProps } from './Button.js';
|
|
3
3
|
export type ToggleButtonType = 'checkbox' | 'radio';
|
|
4
4
|
export interface ToggleButtonProps extends Omit<ButtonProps, 'onChange' | 'type'> {
|
|
5
5
|
/**
|
package/lib/ToggleButton.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
6
|
-
import Button from './Button';
|
|
5
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
6
|
+
import Button from './Button.js';
|
|
7
7
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
8
|
const noop = () => undefined;
|
|
9
9
|
const ToggleButton = /*#__PURE__*/React.forwardRef(({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { DynamicRefForwardingComponent } from '@restart/ui/types';
|
|
3
|
-
import { type ButtonGroupProps } from './ButtonGroup';
|
|
3
|
+
import { type ButtonGroupProps } from './ButtonGroup.js';
|
|
4
4
|
type BaseToggleButtonProps = Omit<ButtonGroupProps, 'toggle' | 'defaultValue' | 'onChange'>;
|
|
5
5
|
export interface ToggleButtonRadioProps<T> extends BaseToggleButtonProps {
|
|
6
6
|
/**
|
|
@@ -66,6 +66,6 @@ export interface ToggleButtonCheckboxProps<T> extends BaseToggleButtonProps {
|
|
|
66
66
|
}
|
|
67
67
|
export type ToggleButtonGroupProps<T> = ToggleButtonRadioProps<T> | ToggleButtonCheckboxProps<T>;
|
|
68
68
|
declare const _default: DynamicRefForwardingComponent<"a", ToggleButtonGroupProps<any>> & {
|
|
69
|
-
Button: React.ForwardRefExoticComponent<import("./ToggleButton").ToggleButtonProps & React.RefAttributes<HTMLLabelElement>>;
|
|
69
|
+
Button: React.ForwardRefExoticComponent<import("./ToggleButton.js").ToggleButtonProps & React.RefAttributes<HTMLLabelElement>>;
|
|
70
70
|
};
|
|
71
71
|
export default _default;
|
package/lib/ToggleButtonGroup.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import invariant from 'invariant';
|
|
3
3
|
import { useUncontrolled } from 'uncontrollable';
|
|
4
|
-
import chainFunction from './createChainedFunction';
|
|
5
|
-
import { map } from './ElementChildren';
|
|
6
|
-
import ButtonGroup from './ButtonGroup';
|
|
7
|
-
import ToggleButton from './ToggleButton';
|
|
4
|
+
import chainFunction from './createChainedFunction.js';
|
|
5
|
+
import { map } from './ElementChildren.js';
|
|
6
|
+
import ButtonGroup from './ButtonGroup.js';
|
|
7
|
+
import ToggleButton from './ToggleButton.js';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
const ToggleButtonGroup = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
10
10
|
const {
|
package/lib/Tooltip.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { OverlayArrowProps } from '@restart/ui/Overlay';
|
|
3
|
-
import type { Placement, PopperRef } from './types';
|
|
3
|
+
import type { Placement, PopperRef } from './types.js';
|
|
4
4
|
export interface TooltipProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
/**
|
|
6
6
|
* @default 'tooltip'
|
package/lib/Tooltip.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { useBootstrapPrefix, useIsRTL } from './ThemeProvider';
|
|
6
|
-
import { getOverlayDirection } from './helpers';
|
|
7
|
-
import getInitialPopperStyles from './getInitialPopperStyles';
|
|
5
|
+
import { useBootstrapPrefix, useIsRTL } from './ThemeProvider.js';
|
|
6
|
+
import { getOverlayDirection } from './helpers.js';
|
|
7
|
+
import getInitialPopperStyles from './getInitialPopperStyles.js';
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
9
|
const Tooltip = /*#__PURE__*/React.forwardRef(({
|
|
10
10
|
bsPrefix,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
export type TransitionWrapperProps =
|
|
2
|
+
import { Transition, type TransitionStatus } from 'react-transition-group';
|
|
3
|
+
export type TransitionWrapperProps = React.ComponentProps<typeof Transition> & {
|
|
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<(Omit<import("react-transition-group/Transition").TimeoutProps<undefined> & {
|
|
7
|
+
declare const TransitionWrapper: React.ForwardRefExoticComponent<(Omit<import("react-transition-group/Transition.js").TimeoutProps<HTMLElement | undefined> & {
|
|
8
8
|
childRef?: React.Ref<unknown>;
|
|
9
9
|
children: React.ReactElement | ((status: TransitionStatus, props: Record<string, unknown>) => React.ReactNode);
|
|
10
|
-
}, "ref"> | Omit<import("react-transition-group/Transition").EndListenerProps<undefined> & {
|
|
10
|
+
}, "ref"> | Omit<import("react-transition-group/Transition.js").EndListenerProps<HTMLElement | undefined> & {
|
|
11
11
|
childRef?: React.Ref<unknown>;
|
|
12
12
|
children: React.ReactElement | ((status: TransitionStatus, props: Record<string, unknown>) => React.ReactNode);
|
|
13
13
|
}, "ref">) & React.RefAttributes<Transition<any>>>;
|
package/lib/TransitionWrapper.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import React, { useCallback, useRef } from 'react';
|
|
4
|
-
import Transition from 'react-transition-group
|
|
4
|
+
import { Transition } from 'react-transition-group';
|
|
5
5
|
import useMergedRefs from '@restart/hooks/useMergedRefs';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
// Normalizes Transition callbacks when nodeRef is used.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DEFAULT_BREAKPOINTS, DEFAULT_MIN_BREAKPOINT } from './ThemeProvider';
|
|
1
|
+
import { DEFAULT_BREAKPOINTS, DEFAULT_MIN_BREAKPOINT } from './ThemeProvider.js';
|
|
2
2
|
export default function createUtilityClassName(utilityValues, breakpoints = DEFAULT_BREAKPOINTS, minBreakpoint = DEFAULT_MIN_BREAKPOINT) {
|
|
3
3
|
const classes = [];
|
|
4
4
|
Object.entries(utilityValues).forEach(([utilName, utilValue]) => {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import camelize from 'dom-helpers/camelize';
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
import { useBootstrapPrefix } from './ThemeProvider';
|
|
6
|
+
import { useBootstrapPrefix } from './ThemeProvider.js';
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
const pascalCase = str => str[0].toUpperCase() + camelize(str).slice(1);
|
|
9
9
|
// TODO: emstricten & fix the typing here! `createWithBsPrefix<TElementType>...`
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TransitionComponent } from '@restart/ui/types';
|
|
2
|
-
import type { TransitionType } from './helpers';
|
|
2
|
+
import type { TransitionType } from './helpers.js';
|
|
3
3
|
export default function getTabTransitionComponent(transition?: TransitionType): TransitionComponent | undefined;
|