@deque/cauldron-react 2.0.0 → 3.0.1-canary.0298c7b0
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/lib/arrow-36f5cb02.js +25 -0
- package/lib/{arrow-circle-7b95a2fd.js → arrow-circle-858d89b5.js} +5 -7
- package/lib/cauldron.css +45 -7
- package/lib/chevron-cbfd92ec.js +25 -0
- package/lib/{chevron-double-65975fca.js → chevron-double-42e4b50e.js} +5 -6
- package/lib/{close-1b16b9ec.js → close-31ce4dcf.js} +2 -2
- package/lib/components/Address/index.d.ts +38 -0
- package/lib/components/Card/Card.d.ts +3 -1
- package/lib/components/ExpandCollapsePanel/PanelTrigger.d.ts +2 -1
- package/lib/components/Icon/index.d.ts +3 -1
- package/lib/components/Icon/types.d.ts +7 -0
- package/lib/components/IconButton/index.d.ts +12 -4
- package/lib/components/Loader/index.d.ts +2 -3
- package/lib/components/NavBar/NavBar.d.ts +22 -0
- package/lib/components/NavBar/NavItem.d.ts +14 -0
- package/lib/components/NavBar/index.d.ts +2 -0
- package/lib/components/OptionsMenu/OptionsMenu.d.ts +4 -4
- package/lib/components/Panel/index.d.ts +17 -0
- package/lib/components/ProgressBar/index.d.ts +15 -0
- package/lib/components/Select/index.d.ts +2 -2
- package/lib/components/SideBar/SideBar.d.ts +1 -0
- package/lib/components/Stepper/index.d.ts +2 -0
- package/lib/components/Table/TableCell.d.ts +2 -2
- package/lib/components/Table/TableHeader.d.ts +2 -2
- package/lib/components/Tabs/Tab.d.ts +8 -0
- package/lib/components/Tabs/TabPanel.d.ts +8 -0
- package/lib/components/Tabs/Tabs.d.ts +26 -0
- package/lib/components/Tabs/index.d.ts +3 -0
- package/lib/components/TextField/index.d.ts +0 -1
- package/lib/components/Toast/utils.d.ts +9 -22
- package/lib/components/Tooltip/index.d.ts +1 -1
- package/lib/{chevron-064d5f96.js → copy-d2ade017.js} +5 -5
- package/lib/index.d.ts +7 -1
- package/lib/index.js +436 -73
- package/lib/{arrow-97011665.js → info-square-f193e281.js} +5 -7
- package/lib/magnifying-glass-2907fb77.js +23 -0
- package/lib/{triangle-51d7723a.js → menu-2f2be7c2.js} +5 -6
- package/lib/recycle-0198fb67.js +25 -0
- package/lib/robot-22863b2b.js +29 -0
- package/lib/triangle-42e0eece.js +25 -0
- package/lib/types.d.ts +7 -0
- package/lib/utils/polymorphic-type/index.d.ts +40 -0
- package/lib/utils/use-did-update/index.d.ts +10 -0
- package/package.json +3 -2
- package/lib/menu-2bb052ac.js +0 -43
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var React__default = _interopDefault(React);
|
|
7
|
+
|
|
8
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
9
|
+
|
|
10
|
+
var _ref = /*#__PURE__*/React.createElement("path", {
|
|
11
|
+
d: "M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z",
|
|
12
|
+
fill: "currentColor",
|
|
13
|
+
vectorEffect: "non-scaling-stroke"
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
function SvgArrow(props) {
|
|
17
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
18
|
+
overflow: "visible",
|
|
19
|
+
preserveAspectRatio: "none",
|
|
20
|
+
width: 24,
|
|
21
|
+
height: 24
|
|
22
|
+
}, props), _ref);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
exports.default = SvgArrow;
|
|
@@ -8,19 +8,17 @@ var React__default = _interopDefault(React);
|
|
|
8
8
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
9
9
|
|
|
10
10
|
var _ref = /*#__PURE__*/React.createElement("path", {
|
|
11
|
-
d: "M17.
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
d: "M17.37 12c0 .18-.06.35-.19.47l-4.71 4.73c-.26.25-.68.25-.94 0l-4.71-4.72a.683.683 0 010-.94l.95-.95c.25-.26.66-.27.92-.02l.02.02 2 2V7.34c.01-.37.3-.66.67-.67h1.33c.37.01.66.3.67.67v5.23l2-2c.26-.25.68-.25.94 0l.95.95c.13.12.19.29.19.47l-.09.01zm1.55-4A8.016 8.016 0 0016 5.08 7.798 7.798 0 0012 4c-1.41-.01-2.79.37-4 1.08-1.21.7-2.22 1.71-2.92 2.92A7.798 7.798 0 004 12c-.01 1.41.36 2.79 1.07 4 .7 1.21 1.71 2.22 2.93 2.92 1.21.71 2.59 1.09 4 1.08 1.41.01 2.79-.36 4-1.07 1.21-.7 2.22-1.71 2.92-2.93A7.798 7.798 0 0020 12c.01-1.41-.37-2.79-1.08-4z",
|
|
12
|
+
fill: "currentColor",
|
|
13
|
+
vectorEffect: "non-scaling-stroke"
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
function SvgArrowCircle(props) {
|
|
17
17
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
18
18
|
overflow: "visible",
|
|
19
19
|
preserveAspectRatio: "none",
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
height: 17,
|
|
23
|
-
transform: "rotate(180)"
|
|
20
|
+
width: 24,
|
|
21
|
+
height: 24
|
|
24
22
|
}, props), _ref);
|
|
25
23
|
}
|
|
26
24
|
|
package/lib/cauldron.css
CHANGED
|
@@ -1,28 +1,66 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--expandcollapse-trigger-background-color: transparent;
|
|
3
|
+
--expandcollapse-trigger-color: var(--gray-90);
|
|
4
|
+
--expandcollapse-panel-background-color: transparent;
|
|
5
|
+
--expandcollapse-panel-color: var(--gray-90);
|
|
6
|
+
}
|
|
7
|
+
|
|
1
8
|
.ExpandCollapse__trigger {
|
|
2
9
|
font-size: inherit;
|
|
3
10
|
display: flex;
|
|
4
11
|
align-items: center;
|
|
12
|
+
background-color: var(--expandcollapse-trigger-background-color);
|
|
13
|
+
color: var(--expandcollapse-trigger-color);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.fullWidth {
|
|
17
|
+
width: 100%;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ExpandCollapse__trigger-title {
|
|
21
|
+
flex-grow: 1;
|
|
22
|
+
text-align: left;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.ExpandCollapse__panel {
|
|
26
|
+
background-color: var(--expandcollapse-panel-background-color);
|
|
27
|
+
color: var(--expandcollapse-panel-color);
|
|
5
28
|
}
|
|
29
|
+
|
|
30
|
+
/* Dark Theme */
|
|
31
|
+
|
|
32
|
+
.cauldron--theme-dark {
|
|
33
|
+
--expandcollapse-trigger-color: var(--white);
|
|
34
|
+
--expandcollapse-panel-color: var(--accent-light);
|
|
35
|
+
}
|
|
36
|
+
|
|
6
37
|
a.Button--primary {
|
|
7
38
|
text-decoration: none;
|
|
8
39
|
padding: 9px 18px;
|
|
9
40
|
}
|
|
41
|
+
|
|
10
42
|
.Icon {
|
|
11
43
|
display: inline-block;
|
|
12
44
|
vertical-align: middle;
|
|
13
45
|
}
|
|
46
|
+
|
|
14
47
|
.Icon svg {
|
|
15
48
|
display: block;
|
|
16
49
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
.
|
|
21
|
-
transform: scaleX(-1);
|
|
50
|
+
|
|
51
|
+
/* Icon--down is the default orientation */
|
|
52
|
+
|
|
53
|
+
.Icon__down {
|
|
22
54
|
}
|
|
55
|
+
|
|
23
56
|
.Icon__up {
|
|
24
|
-
transform:
|
|
57
|
+
transform: scaleY(-1);
|
|
25
58
|
}
|
|
26
|
-
|
|
59
|
+
|
|
60
|
+
.Icon__left {
|
|
27
61
|
transform: rotate(90deg);
|
|
28
62
|
}
|
|
63
|
+
|
|
64
|
+
.Icon__right {
|
|
65
|
+
transform: rotate(-90deg);
|
|
66
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var React__default = _interopDefault(React);
|
|
7
|
+
|
|
8
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
9
|
+
|
|
10
|
+
var _ref = /*#__PURE__*/React.createElement("path", {
|
|
11
|
+
d: "M17.2 9.84a.35.35 0 00-.1-.24l-.52-.52a.332.332 0 00-.47-.01l-.01.01-4.1 4.1-4.09-4.1a.333.333 0 00-.47-.02l-.01.01-.52.53c-.13.13-.14.33-.01.47l.01.01 4.85 4.85c.13.13.33.14.47.01l.01-.01 4.85-4.85c.06-.06.1-.15.1-.24h.01z",
|
|
12
|
+
fill: "currentColor",
|
|
13
|
+
vectorEffect: "non-scaling-stroke"
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
function SvgChevron(props) {
|
|
17
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
18
|
+
overflow: "visible",
|
|
19
|
+
preserveAspectRatio: "none",
|
|
20
|
+
width: 24,
|
|
21
|
+
height: 24
|
|
22
|
+
}, props), _ref);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
exports.default = SvgChevron;
|
|
@@ -8,18 +8,17 @@ var React__default = _interopDefault(React);
|
|
|
8
8
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
9
9
|
|
|
10
10
|
var _ref = /*#__PURE__*/React.createElement("path", {
|
|
11
|
-
d: "
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
d: "M17.2 11.84a.35.35 0 00-.1-.24l-.52-.52a.332.332 0 00-.47-.01l-.01.01-4.1 4.1-4.09-4.1a.332.332 0 00-.47-.01l-.01.01-.52.52c-.13.13-.14.33-.01.47l.01.01 4.85 4.85c.13.13.33.14.47.01l.01-.01 4.85-4.85c.06-.06.1-.15.1-.24h.01zm0-4a.35.35 0 00-.1-.24l-.52-.52a.332.332 0 00-.47-.01l-.01.01-4.1 4.1-4.09-4.09a.333.333 0 00-.47-.02l-.01.01-.52.53a.32.32 0 00-.02.46l.01.01 4.85 4.85c.13.13.33.14.47.01l.01-.01 4.85-4.85c.06-.06.1-.15.1-.24h.02z",
|
|
12
|
+
fill: "currentColor",
|
|
13
|
+
vectorEffect: "non-scaling-stroke"
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
function SvgChevronDouble(props) {
|
|
17
17
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
18
18
|
overflow: "visible",
|
|
19
19
|
preserveAspectRatio: "none",
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
height: 25
|
|
20
|
+
width: 24,
|
|
21
|
+
height: 24
|
|
23
22
|
}, props), _ref);
|
|
24
23
|
}
|
|
25
24
|
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
interface AddressProps extends React.HTMLAttributes<HTMLElement> {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const Address: {
|
|
7
|
+
({ children, className, ...other }: AddressProps): JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
propTypes: {
|
|
10
|
+
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
11
|
+
className: PropTypes.Requireable<string>;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
declare type AddressLineProps = React.HTMLAttributes<HTMLElement>;
|
|
15
|
+
export declare const AddressLine: {
|
|
16
|
+
({ children, className, ...other }: AddressLineProps): JSX.Element | null;
|
|
17
|
+
displayName: string;
|
|
18
|
+
propTypes: {
|
|
19
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
20
|
+
className: PropTypes.Requireable<string>;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
interface AddressCityStateZipProps extends React.HTMLAttributes<HTMLElement> {
|
|
24
|
+
city: React.ReactNode;
|
|
25
|
+
state: React.ReactNode;
|
|
26
|
+
zip: React.ReactNode;
|
|
27
|
+
}
|
|
28
|
+
export declare const AddressCityStateZip: {
|
|
29
|
+
({ city, state, zip, className, ...other }: AddressCityStateZipProps): JSX.Element | null;
|
|
30
|
+
displayName: string;
|
|
31
|
+
propTypes: {
|
|
32
|
+
city: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
33
|
+
state: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
34
|
+
zip: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
35
|
+
className: PropTypes.Requireable<string>;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export {};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
variant?: 'simple';
|
|
4
5
|
}
|
|
5
6
|
declare const Card: {
|
|
6
|
-
({ className, ...other }: CardProps): JSX.Element;
|
|
7
|
+
({ className, variant, ...other }: CardProps): JSX.Element;
|
|
7
8
|
displayName: string;
|
|
8
9
|
propTypes: {
|
|
9
10
|
className: PropTypes.Requireable<string>;
|
|
11
|
+
variant: PropTypes.Requireable<string>;
|
|
10
12
|
};
|
|
11
13
|
};
|
|
12
14
|
export default Card;
|
|
@@ -5,9 +5,10 @@ export interface PanelTriggerProps extends React.ButtonHTMLAttributes<HTMLButton
|
|
|
5
5
|
open: boolean;
|
|
6
6
|
}) => React.ReactNode) | React.ReactNode;
|
|
7
7
|
open?: boolean;
|
|
8
|
+
fullWidth?: string;
|
|
8
9
|
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
9
10
|
}
|
|
10
|
-
declare function PanelTrigger({ children, className, open, onClick, ...other }: PanelTriggerProps): JSX.Element;
|
|
11
|
+
declare function PanelTrigger({ children, className, open, fullWidth, onClick, ...other }: PanelTriggerProps): JSX.Element;
|
|
11
12
|
declare namespace PanelTrigger {
|
|
12
13
|
var propTypes: {
|
|
13
14
|
children: PropTypes.Requireable<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { IconType, iconTypes } from './types';
|
|
3
|
+
export { IconType, iconTypes };
|
|
2
4
|
export interface IconProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
5
|
label?: string;
|
|
4
|
-
type:
|
|
6
|
+
type: IconType;
|
|
5
7
|
}
|
|
6
8
|
declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
9
|
export default Icon;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* GENERATED CODE. DO NOT EDIT DIRECTLY!
|
|
3
|
+
*/
|
|
4
|
+
/** IconType represents each valid icon type. */
|
|
5
|
+
export declare type IconType = 'add-user' | 'arrow-circle-up' | 'arrow-circle-down' | 'arrow-circle-left' | 'arrow-circle-right' | 'arrow-up' | 'arrow-down' | 'arrow-left' | 'arrow-right' | 'arrows-alt' | 'bolt' | 'caution' | 'check-circle' | 'check-shield' | 'check-solid' | 'check' | 'checkbox-checked' | 'checkbox-unchecked' | 'chevron-double-up' | 'chevron-double-down' | 'chevron-double-left' | 'chevron-double-right' | 'chevron-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'close' | 'code' | 'copy' | 'download' | 'exchange' | 'external-link' | 'eye' | 'filter' | 'flag' | 'gears' | 'grid' | 'hamburger-menu' | 'highlight' | 'info-circle-alt' | 'info-circle' | 'info-square' | 'kabob' | 'list' | 'lock' | 'magnifying-glass' | 'menu' | 'new-releases' | 'new' | 'no' | 'pencil' | 'plus' | 'question-circle' | 'radio-checked' | 'radio-unchecked' | 'recycle' | 'robot' | 'run-again' | 'save' | 'share' | 'sort' | 'star' | 'sun' | 'tag' | 'target' | 'trash' | 'triangle-up' | 'triangle-down' | 'triangle-left' | 'triangle-right' | 'upload';
|
|
6
|
+
/** iconTypes holds each valid icon type. */
|
|
7
|
+
export declare const iconTypes: string[];
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Polymorphic from '../../utils/polymorphic-type';
|
|
2
|
+
import { IconType } from '../Icon';
|
|
2
3
|
import { TooltipProps } from '../Tooltip';
|
|
3
|
-
interface
|
|
4
|
-
icon:
|
|
4
|
+
export interface IconButtonOwnProps {
|
|
5
|
+
icon: IconType;
|
|
5
6
|
label: string;
|
|
6
7
|
tooltipPlacement?: TooltipProps['placement'];
|
|
7
8
|
tooltipVariant?: TooltipProps['variant'];
|
|
8
9
|
tooltipPortal?: TooltipProps['portal'];
|
|
9
10
|
variant?: 'primary' | 'secondary' | 'error';
|
|
10
11
|
}
|
|
11
|
-
declare
|
|
12
|
+
declare type PolymorphicIconButton = Polymorphic.ForwardRefComponent<'button', IconButtonOwnProps>;
|
|
13
|
+
/**
|
|
14
|
+
* Unfortunately, eslint does not recognize that this Polymorphic component has a displayName set
|
|
15
|
+
*
|
|
16
|
+
* We might be able to remove this if we upgrade eslint and associated plugins
|
|
17
|
+
* See: https://github.com/dequelabs/cauldron/issues/451
|
|
18
|
+
*/
|
|
19
|
+
declare const IconButton: PolymorphicIconButton;
|
|
12
20
|
export default IconButton;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
export interface LoaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
label
|
|
4
|
+
label?: string;
|
|
5
5
|
}
|
|
6
|
-
declare function Loader({
|
|
6
|
+
declare function Loader({ className, label, ...other }: LoaderProps): JSX.Element;
|
|
7
7
|
declare namespace Loader {
|
|
8
8
|
var propTypes: {
|
|
9
|
-
label: PropTypes.Requireable<string>;
|
|
10
9
|
className: PropTypes.Requireable<string>;
|
|
11
10
|
};
|
|
12
11
|
var displayName: string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
interface NavBarProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
initialActiveIndex?: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
collapsed?: boolean;
|
|
8
|
+
navTriggerLabel?: string;
|
|
9
|
+
propId?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const NavBar: {
|
|
12
|
+
({ children, className, collapsed, navTriggerLabel, propId }: NavBarProps): JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
propTypes: {
|
|
15
|
+
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
16
|
+
className: PropTypes.Requireable<string>;
|
|
17
|
+
collapsed: PropTypes.Requireable<boolean>;
|
|
18
|
+
navTriggerLabel: PropTypes.Requireable<string>;
|
|
19
|
+
propId: PropTypes.Requireable<string>;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default NavBar;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
interface NavItemProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
active: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const NavItem: {
|
|
8
|
+
({ children, active, ...other }: NavItemProps): JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
propTypes: {
|
|
11
|
+
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default NavItem;
|
|
@@ -4,10 +4,10 @@ export interface OptionsMenuAlignmentProps {
|
|
|
4
4
|
align?: 'left' | 'right';
|
|
5
5
|
}
|
|
6
6
|
export interface OptionsMenuRenderTriggerProps {
|
|
7
|
-
onClick: (event:
|
|
8
|
-
onKeyDown: (e: React.KeyboardEvent<
|
|
7
|
+
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
8
|
+
onKeyDown: (e: React.KeyboardEvent<HTMLButtonElement>) => void;
|
|
9
9
|
'aria-expanded': boolean;
|
|
10
|
-
ref: React.
|
|
10
|
+
ref: React.Ref<HTMLButtonElement>;
|
|
11
11
|
}
|
|
12
12
|
export interface OptionsMenuProps extends OptionsMenuAlignmentProps {
|
|
13
13
|
id?: string;
|
|
@@ -42,7 +42,7 @@ export default class OptionsMenu extends Component<AllOptionsMenuProps, OptionsM
|
|
|
42
42
|
};
|
|
43
43
|
private triggerRef;
|
|
44
44
|
constructor(props: AllOptionsMenuProps);
|
|
45
|
-
toggleMenu: (event:
|
|
45
|
+
toggleMenu: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
46
46
|
handleClose: () => void;
|
|
47
47
|
handleTriggerKeyDown: (event: React.KeyboardEvent<HTMLElement>) => void;
|
|
48
48
|
render(): JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import IconButton from '../IconButton';
|
|
4
|
+
declare const Panel: {
|
|
5
|
+
({ className, title, actions, children }: {
|
|
6
|
+
className?: string | undefined;
|
|
7
|
+
title?: string | undefined;
|
|
8
|
+
actions?: import("../../utils/polymorphic-type").ForwardRefComponent<"button", import("../IconButton").IconButtonOwnProps>[] | undefined;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
propTypes: {
|
|
13
|
+
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
14
|
+
className: PropTypes.Requireable<string>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default Panel;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const ProgressBar: React.ForwardRefExoticComponent<({
|
|
3
|
+
progress: number;
|
|
4
|
+
progressMax?: number | undefined;
|
|
5
|
+
progressMin?: number | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
'aria-label': string;
|
|
8
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>) | ({
|
|
9
|
+
progress: number;
|
|
10
|
+
progressMax?: number | undefined;
|
|
11
|
+
progressMin?: number | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
'aria-labelledby': string;
|
|
14
|
+
} & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>)>;
|
|
15
|
+
export default ProgressBar;
|
|
@@ -13,7 +13,7 @@ export interface SelectProps extends Omit<React.HTMLProps<HTMLSelectElement>, 'c
|
|
|
13
13
|
children?: React.ReactElement<HTMLOptionElement | HTMLOptGroupElement>[];
|
|
14
14
|
value?: any;
|
|
15
15
|
defaultValue?: any;
|
|
16
|
-
onChange
|
|
16
|
+
onChange?: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
17
17
|
}
|
|
18
|
-
declare const Select: React.ForwardRefExoticComponent<Pick<SelectProps, "max" | "required" | "default" | "high" | "low" | "disabled" | "error" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "color" | "content" | "size" | "wrap" | "multiple" | "key" | "children" | "list" | "step" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "
|
|
18
|
+
declare const Select: React.ForwardRefExoticComponent<Pick<SelectProps, "max" | "required" | "default" | "high" | "low" | "disabled" | "error" | "start" | "open" | "media" | "hidden" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "async" | "defer" | "manifest" | "color" | "content" | "size" | "wrap" | "multiple" | "key" | "children" | "list" | "step" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "download" | "target" | "type" | "name" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "marginHeight" | "marginWidth" | "maxLength" | "mediaGroup" | "method" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "value" | "width" | "wmode" | "options" | "requiredText"> & React.RefAttributes<HTMLSelectElement>>;
|
|
19
19
|
export default Select;
|
|
@@ -9,6 +9,7 @@ interface StepWithChildren extends BaseStepProps {
|
|
|
9
9
|
}
|
|
10
10
|
interface StepWithTooltip extends BaseStepProps {
|
|
11
11
|
tooltip: React.ReactNode;
|
|
12
|
+
tooltipText: string;
|
|
12
13
|
}
|
|
13
14
|
declare type StepProps = StepWithChildren | StepWithTooltip;
|
|
14
15
|
export declare const Step: {
|
|
@@ -17,6 +18,7 @@ export declare const Step: {
|
|
|
17
18
|
propTypes: {
|
|
18
19
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
19
20
|
tooltip: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
21
|
+
tooltipText: PropTypes.Requireable<string>;
|
|
20
22
|
className: PropTypes.Requireable<string>;
|
|
21
23
|
};
|
|
22
24
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { TdHTMLAttributes } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
interface TableCellProps {
|
|
3
|
+
interface TableCellProps extends TdHTMLAttributes<HTMLTableCellElement> {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ThHTMLAttributes } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
interface TableHeaderProps {
|
|
3
|
+
interface TableHeaderProps extends ThHTMLAttributes<HTMLTableCellElement> {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface TabProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
3
|
+
target: React.RefObject<HTMLDivElement> | HTMLElement;
|
|
4
|
+
id?: string;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare const Tab: React.ForwardRefExoticComponent<TabProps & React.RefAttributes<HTMLLIElement>>;
|
|
8
|
+
export default Tab;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface TabPanelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
id?: string;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const TabPanel: React.ForwardRefExoticComponent<TabPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export default TabPanel;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Cauldron } from '../../types';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
declare type TabsProps = {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
initialActiveIndex?: number;
|
|
7
|
+
thin?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
onChange?: ({ activeTabIndex, target }: {
|
|
10
|
+
activeTabIndex: number;
|
|
11
|
+
target: HTMLLIElement | null;
|
|
12
|
+
}) => void;
|
|
13
|
+
} & Cauldron.LabelProps;
|
|
14
|
+
declare const Tabs: {
|
|
15
|
+
({ children, thin, initialActiveIndex, className, onChange, ...labelProp }: TabsProps): JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
propTypes: {
|
|
18
|
+
children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
19
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
20
|
+
'aria-labelledby': PropTypes.Requireable<string>;
|
|
21
|
+
initialActiveIndex: PropTypes.Requireable<number>;
|
|
22
|
+
thin: PropTypes.Requireable<boolean>;
|
|
23
|
+
className: PropTypes.Requireable<string>;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export default Tabs;
|
|
@@ -42,7 +42,6 @@ export default class TextField extends React.Component<TextFieldProps, TextField
|
|
|
42
42
|
private errorId;
|
|
43
43
|
private input;
|
|
44
44
|
constructor(props: TextFieldProps);
|
|
45
|
-
componentDidUpdate(prevProps: TextFieldProps): void;
|
|
46
45
|
render(): JSX.Element;
|
|
47
46
|
onChange(e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>): void;
|
|
48
47
|
}
|
|
@@ -1,26 +1,13 @@
|
|
|
1
|
+
import { IconType } from '../Icon';
|
|
2
|
+
interface TypeMap {
|
|
3
|
+
[name: string]: {
|
|
4
|
+
className: string;
|
|
5
|
+
icon: IconType;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
1
8
|
/**
|
|
2
9
|
* Maps toast types to their classNames and icons
|
|
3
10
|
*/
|
|
4
|
-
export declare const typeMap:
|
|
5
|
-
confirmation: {
|
|
6
|
-
className: string;
|
|
7
|
-
icon: string;
|
|
8
|
-
};
|
|
9
|
-
caution: {
|
|
10
|
-
className: string;
|
|
11
|
-
icon: string;
|
|
12
|
-
};
|
|
13
|
-
'action-needed': {
|
|
14
|
-
className: string;
|
|
15
|
-
icon: string;
|
|
16
|
-
};
|
|
17
|
-
error: {
|
|
18
|
-
className: string;
|
|
19
|
-
icon: string;
|
|
20
|
-
};
|
|
21
|
-
info: {
|
|
22
|
-
className: string;
|
|
23
|
-
icon: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
11
|
+
export declare const typeMap: TypeMap;
|
|
26
12
|
export declare const tabIndexHandler: (reset: boolean, toast: HTMLElement | null) => any;
|
|
13
|
+
export {};
|
|
@@ -11,7 +11,7 @@ export interface TooltipProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
11
11
|
portal?: React.RefObject<HTMLElement> | HTMLElement;
|
|
12
12
|
hideElementOnHidden?: boolean;
|
|
13
13
|
}
|
|
14
|
-
declare function Tooltip({ id: propId, placement: initialPlacement, children, portal, target, association, variant, show: showProp, hideElementOnHidden, ...props }: TooltipProps): React.ReactPortal | null;
|
|
14
|
+
declare function Tooltip({ id: propId, placement: initialPlacement, children, portal, target, association, variant, show: showProp, hideElementOnHidden, className, ...props }: TooltipProps): React.ReactPortal | null;
|
|
15
15
|
declare namespace Tooltip {
|
|
16
16
|
var displayName: string;
|
|
17
17
|
var propTypes: {
|