@deque/cauldron-react 5.4.0 → 5.4.1-canary.8708b9d1
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/components/Alert/index.d.ts +8 -0
- package/lib/components/Breadcrumb/BreadcrumbItem.d.ts +1 -2
- package/lib/components/Card/CardContent.d.ts +1 -2
- package/lib/components/Card/CardFooter.d.ts +1 -2
- package/lib/components/Card/CardHeader.d.ts +1 -2
- package/lib/components/Dialog/index.d.ts +8 -0
- package/lib/components/Modal/index.d.ts +8 -0
- package/lib/components/Offscreen/index.d.ts +1 -2
- package/lib/components/Tooltip/index.d.ts +12 -2
- package/lib/components/TwoColumnPanel/ColumnGroupHeader.d.ts +1 -2
- package/lib/components/TwoColumnPanel/ColumnHeader.d.ts +1 -2
- package/lib/components/TwoColumnPanel/ColumnList.d.ts +1 -2
- package/lib/index.js +74 -7
- package/package.json +2 -6
|
@@ -7,10 +7,18 @@ declare const Alert: ({ children, className, variant, heading, ...other }: Alert
|
|
|
7
7
|
declare const AlertContent: {
|
|
8
8
|
({ children, className, ...other }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
9
9
|
displayName: string;
|
|
10
|
+
propTypes: {
|
|
11
|
+
className: import("prop-types").Requireable<string>;
|
|
12
|
+
children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
13
|
+
};
|
|
10
14
|
};
|
|
11
15
|
declare const AlertActions: {
|
|
12
16
|
({ children, className, ...other }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
13
17
|
displayName: string;
|
|
18
|
+
propTypes: {
|
|
19
|
+
className: import("prop-types").Requireable<string>;
|
|
20
|
+
children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
21
|
+
};
|
|
14
22
|
};
|
|
15
23
|
export default Alert;
|
|
16
24
|
export { Alert, AlertContent, AlertActions };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
}
|
|
2
|
+
declare type BreadcrumbItemProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
4
3
|
declare const BreadcrumbItem: React.ForwardRefExoticComponent<BreadcrumbItemProps & React.RefAttributes<HTMLElement>>;
|
|
5
4
|
export default BreadcrumbItem;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
export
|
|
4
|
-
}
|
|
3
|
+
export declare type CardContentProps = React.HTMLAttributes<HTMLDivElement>;
|
|
5
4
|
declare const CardContent: {
|
|
6
5
|
({ className, ...other }: CardContentProps): JSX.Element;
|
|
7
6
|
displayName: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
export
|
|
4
|
-
}
|
|
3
|
+
export declare type CardFooterProps = React.HTMLAttributes<HTMLDivElement>;
|
|
5
4
|
declare const CardFooter: {
|
|
6
5
|
({ className, ...other }: CardFooterProps): JSX.Element;
|
|
7
6
|
displayName: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
export
|
|
4
|
-
}
|
|
3
|
+
export declare type CardHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
5
4
|
declare const CardHeader: {
|
|
6
5
|
({ className, ...other }: CardHeaderProps): JSX.Element;
|
|
7
6
|
displayName: string;
|
|
@@ -51,9 +51,17 @@ export default class Dialog extends React.Component<DialogProps, DialogState> {
|
|
|
51
51
|
declare const DialogContent: {
|
|
52
52
|
({ children, className, ...other }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
53
53
|
displayName: string;
|
|
54
|
+
propTypes: {
|
|
55
|
+
className: PropTypes.Requireable<string>;
|
|
56
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
57
|
+
};
|
|
54
58
|
};
|
|
55
59
|
declare const DialogFooter: {
|
|
56
60
|
({ children, className, ...other }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
57
61
|
displayName: string;
|
|
62
|
+
propTypes: {
|
|
63
|
+
className: PropTypes.Requireable<string>;
|
|
64
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
65
|
+
};
|
|
58
66
|
};
|
|
59
67
|
export { Dialog, DialogContent, DialogFooter };
|
|
@@ -7,10 +7,18 @@ declare const Modal: ({ children, className, variant, ...other }: ModalProps) =>
|
|
|
7
7
|
declare const ModalContent: {
|
|
8
8
|
({ children, className, ...other }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
9
9
|
displayName: string;
|
|
10
|
+
propTypes: {
|
|
11
|
+
className: import("prop-types").Requireable<string>;
|
|
12
|
+
children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
13
|
+
};
|
|
10
14
|
};
|
|
11
15
|
declare const ModalFooter: {
|
|
12
16
|
({ children, className, ...other }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
13
17
|
displayName: string;
|
|
18
|
+
propTypes: {
|
|
19
|
+
className: import("prop-types").Requireable<string>;
|
|
20
|
+
children: import("prop-types").Requireable<import("prop-types").ReactNodeLike>;
|
|
21
|
+
};
|
|
14
22
|
};
|
|
15
23
|
export default Modal;
|
|
16
24
|
export { Modal, ModalContent, ModalFooter };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
3
|
-
}
|
|
2
|
+
export declare type OffscreenProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
4
3
|
declare const Offscreen: (props: OffscreenProps) => JSX.Element;
|
|
5
4
|
export default Offscreen;
|
|
@@ -25,5 +25,15 @@ declare namespace Tooltip {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
export default Tooltip;
|
|
28
|
-
export declare const TooltipHead:
|
|
29
|
-
|
|
28
|
+
export declare const TooltipHead: {
|
|
29
|
+
({ className, ...other }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
30
|
+
propTypes: {
|
|
31
|
+
className: PropTypes.Requireable<string>;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export declare const TooltipContent: {
|
|
35
|
+
({ className, ...other }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
36
|
+
propTypes: {
|
|
37
|
+
className: PropTypes.Requireable<string>;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
}
|
|
2
|
+
declare type ColumnGroupHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
4
3
|
declare const ColumnGroupHeader: React.ForwardRefExoticComponent<ColumnGroupHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
4
|
export default ColumnGroupHeader;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
}
|
|
2
|
+
declare type ColumnHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
4
3
|
declare const ColumnHeader: React.ForwardRefExoticComponent<ColumnHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
4
|
export default ColumnHeader;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
}
|
|
2
|
+
declare type ColumnListProps = React.HTMLAttributes<HTMLDivElement>;
|
|
4
3
|
declare const ColumnList: React.ForwardRefExoticComponent<ColumnListProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
4
|
export default ColumnList;
|
package/lib/index.js
CHANGED
|
@@ -28,6 +28,7 @@ var Main = /** @class */ (function (_super) {
|
|
|
28
28
|
return (React__default.createElement("main", tslib.__assign({ className: "Main", ref: mainRef }, other), children));
|
|
29
29
|
};
|
|
30
30
|
Main.defaultProps = {
|
|
31
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
31
32
|
mainRef: function () { }
|
|
32
33
|
};
|
|
33
34
|
Main.propTypes = {
|
|
@@ -50,6 +51,7 @@ var Layout = /** @class */ (function (_super) {
|
|
|
50
51
|
return (React__default.createElement("div", tslib.__assign({ className: "Layout", ref: layoutRef }, other), children));
|
|
51
52
|
};
|
|
52
53
|
Layout.defaultProps = {
|
|
54
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
53
55
|
layoutRef: function () { }
|
|
54
56
|
};
|
|
55
57
|
Layout.propTypes = {
|
|
@@ -88,7 +90,9 @@ var Workspace = /** @class */ (function (_super) {
|
|
|
88
90
|
React__default.createElement(Main, tslib.__assign({ mainRef: workspaceRef }, other), children)));
|
|
89
91
|
};
|
|
90
92
|
Workspace.defaultProps = {
|
|
93
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
91
94
|
workspaceRef: function () { },
|
|
95
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
92
96
|
layoutRef: function () { },
|
|
93
97
|
noSideBar: false
|
|
94
98
|
};
|
|
@@ -384,6 +388,7 @@ var ExpandCollapsePanel = /** @class */ (function (_super) {
|
|
|
384
388
|
};
|
|
385
389
|
_this.panel = React__default.createRef();
|
|
386
390
|
_this.handleToggle = function (e) {
|
|
391
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
387
392
|
var _a = _this.props.onToggle, onToggle = _a === void 0 ? function () { } : _a;
|
|
388
393
|
var _b = _this.state, isOpen = _b.isOpen, controlled = _b.controlled;
|
|
389
394
|
onToggle(e);
|
|
@@ -668,8 +673,11 @@ var MenuItem = /** @class */ (function (_super) {
|
|
|
668
673
|
}, onClick: this.onClick, onKeyDown: this.onKeyDown }), children));
|
|
669
674
|
};
|
|
670
675
|
MenuItem.defaultProps = {
|
|
676
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
671
677
|
menuItemRef: function () { },
|
|
678
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
672
679
|
onClick: function () { },
|
|
680
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
673
681
|
onKeyDown: function () { },
|
|
674
682
|
autoClickLink: true
|
|
675
683
|
};
|
|
@@ -1035,6 +1043,7 @@ var OptionsMenuList = /** @class */ (function (_super) {
|
|
|
1035
1043
|
var clickOutsideEventActive = !show ? false : undefined;
|
|
1036
1044
|
// Key event is being handled in componentDidMount
|
|
1037
1045
|
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
1046
|
+
/* eslint-disable jsx-a11y/role-supports-aria-props */
|
|
1038
1047
|
return (React__default.createElement(ClickOutsideListener, { onClickOutside: this.handleClickOutside, mouseEvent: clickOutsideEventActive, touchEvent: clickOutsideEventActive },
|
|
1039
1048
|
React__default.createElement("ul", tslib.__assign({}, other, { className: classNames('OptionsMenu__list', className), "aria-expanded": show, role: "menu", onClick: handleClick, ref: function (el) {
|
|
1040
1049
|
_this.menuRef = el;
|
|
@@ -1046,7 +1055,9 @@ var OptionsMenuList = /** @class */ (function (_super) {
|
|
|
1046
1055
|
};
|
|
1047
1056
|
OptionsMenuList.defaultProps = {
|
|
1048
1057
|
closeOnSelect: true,
|
|
1058
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1049
1059
|
onSelect: function () { },
|
|
1060
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1050
1061
|
onClose: function () { }
|
|
1051
1062
|
};
|
|
1052
1063
|
OptionsMenuList.propTypes = {
|
|
@@ -1114,7 +1125,9 @@ var OptionsMenu = /** @class */ (function (_super) {
|
|
|
1114
1125
|
}, onClose: this.handleClose }, other), children)));
|
|
1115
1126
|
};
|
|
1116
1127
|
OptionsMenu.defaultProps = {
|
|
1128
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1117
1129
|
onClose: function () { },
|
|
1130
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1118
1131
|
onSelect: function () { },
|
|
1119
1132
|
align: 'right'
|
|
1120
1133
|
};
|
|
@@ -1155,6 +1168,7 @@ var OptionsMenuItemComponent = /** @class */ (function (_super) {
|
|
|
1155
1168
|
React__default.createElement("li", tslib.__assign({ role: "menuitem", ref: menuItemRef, "aria-disabled": disabled, onClick: handleClick }, other)));
|
|
1156
1169
|
};
|
|
1157
1170
|
OptionsMenuItemComponent.defaultProps = {
|
|
1171
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1158
1172
|
onSelect: function () { }
|
|
1159
1173
|
};
|
|
1160
1174
|
OptionsMenuItemComponent.propTypes = {
|
|
@@ -1251,7 +1265,9 @@ var TopBarMenu = /** @class */ (function (_super) {
|
|
|
1251
1265
|
})));
|
|
1252
1266
|
};
|
|
1253
1267
|
TopBarMenu.defaultProps = {
|
|
1268
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1254
1269
|
onKeyDown: function () { },
|
|
1270
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1255
1271
|
menuItemRef: function () { }
|
|
1256
1272
|
};
|
|
1257
1273
|
TopBarMenu.propTypes = {
|
|
@@ -1514,7 +1530,9 @@ var AriaIsolate = /** @class */ (function () {
|
|
|
1514
1530
|
return AriaIsolate;
|
|
1515
1531
|
}());
|
|
1516
1532
|
|
|
1517
|
-
var noop = function () {
|
|
1533
|
+
var noop = function () {
|
|
1534
|
+
//not empty
|
|
1535
|
+
};
|
|
1518
1536
|
var Dialog = /** @class */ (function (_super) {
|
|
1519
1537
|
tslib.__extends(Dialog, _super);
|
|
1520
1538
|
function Dialog(props) {
|
|
@@ -1630,11 +1648,19 @@ var DialogContent = function (_a) {
|
|
|
1630
1648
|
return (React__default.createElement("div", tslib.__assign({ className: classNames('Dialog__content', className) }, other), children));
|
|
1631
1649
|
};
|
|
1632
1650
|
DialogContent.displayName = 'DialogContent';
|
|
1651
|
+
DialogContent.propTypes = {
|
|
1652
|
+
className: PropTypes.string,
|
|
1653
|
+
children: PropTypes.node
|
|
1654
|
+
};
|
|
1633
1655
|
var DialogFooter = function (_a) {
|
|
1634
1656
|
var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
|
|
1635
1657
|
return (React__default.createElement("div", tslib.__assign({ className: classNames('Dialog__footer', className) }, other), children));
|
|
1636
1658
|
};
|
|
1637
1659
|
DialogFooter.displayName = 'DialogFooter';
|
|
1660
|
+
DialogFooter.propTypes = {
|
|
1661
|
+
className: PropTypes.string,
|
|
1662
|
+
children: PropTypes.node
|
|
1663
|
+
};
|
|
1638
1664
|
|
|
1639
1665
|
var Alert = function (_a) {
|
|
1640
1666
|
var children = _a.children, className = _a.className, _b = _a.variant, variant = _b === void 0 ? 'default' : _b, heading = _a.heading, other = tslib.__rest(_a, ["children", "className", "variant", "heading"]);
|
|
@@ -1891,10 +1917,16 @@ var TooltipHead = function (_a) {
|
|
|
1891
1917
|
var className = _a.className, other = tslib.__rest(_a, ["className"]);
|
|
1892
1918
|
return (React__default.createElement("div", tslib.__assign({ className: classNames('TooltipHead', className) }, other)));
|
|
1893
1919
|
};
|
|
1920
|
+
TooltipHead.propTypes = {
|
|
1921
|
+
className: PropTypes.string
|
|
1922
|
+
};
|
|
1894
1923
|
var TooltipContent = function (_a) {
|
|
1895
1924
|
var className = _a.className, other = tslib.__rest(_a, ["className"]);
|
|
1896
1925
|
return (React__default.createElement("div", tslib.__assign({ className: classNames('TooltipContent', className) }, other)));
|
|
1897
1926
|
};
|
|
1927
|
+
TooltipContent.propTypes = {
|
|
1928
|
+
className: PropTypes.string
|
|
1929
|
+
};
|
|
1898
1930
|
|
|
1899
1931
|
/**
|
|
1900
1932
|
* Unfortunately, eslint does not recognize that this Polymorphic component has a displayName set
|
|
@@ -2056,6 +2088,7 @@ var Pointout = /** @class */ (function (_super) {
|
|
|
2056
2088
|
target;
|
|
2057
2089
|
var portalNode = (portal === null || portal === void 0 ? void 0 : portal.current) ||
|
|
2058
2090
|
portal;
|
|
2091
|
+
// eslint-disable-next-line prefer-const
|
|
2059
2092
|
var _b = targetNode.getBoundingClientRect(), top = _b.top, left = _b.left, width = _b.width, height = _b.height;
|
|
2060
2093
|
if (portalNode && portalNode !== document.body) {
|
|
2061
2094
|
// If the portal is not placed on document.body
|
|
@@ -2232,8 +2265,10 @@ var Pointout = /** @class */ (function (_super) {
|
|
|
2232
2265
|
(_a = this.props) === null || _a === void 0 ? void 0 : _a.onClose();
|
|
2233
2266
|
};
|
|
2234
2267
|
Pointout.defaultProps = {
|
|
2268
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
2235
2269
|
ftpoRef: function () { },
|
|
2236
2270
|
noArrow: false,
|
|
2271
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
2237
2272
|
onClose: function () { },
|
|
2238
2273
|
dismissText: 'dismiss',
|
|
2239
2274
|
previousText: 'previous',
|
|
@@ -2776,7 +2811,7 @@ RadioCardGroup.propTypes = {
|
|
|
2776
2811
|
RadioCardGroup.displayName = 'RadioCardGroup';
|
|
2777
2812
|
|
|
2778
2813
|
var Checkbox = React.forwardRef(function (_a, ref) {
|
|
2779
|
-
var id = _a.id, label = _a.label, labelDescription = _a.labelDescription, error = _a.error, checkboxRef = _a.checkboxRef, className = _a.className, onChange = _a.onChange, ariaDescribedby = _a["aria-describedby"], _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.checked, checked = _c === void 0 ? false : _c, other = tslib.__rest(_a, ["id", "label", "labelDescription", "error", "checkboxRef", "className", "onChange", 'aria-describedby', "disabled", "checked"]);
|
|
2814
|
+
var id = _a.id, label = _a.label, labelDescription = _a.labelDescription, error = _a.error, checkboxRef = _a.checkboxRef, className = _a.className, onChange = _a.onChange, onFocus = _a.onFocus, onBlur = _a.onBlur, ariaDescribedby = _a["aria-describedby"], _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.checked, checked = _c === void 0 ? false : _c, other = tslib.__rest(_a, ["id", "label", "labelDescription", "error", "checkboxRef", "className", "onChange", "onFocus", "onBlur", 'aria-describedby', "disabled", "checked"]);
|
|
2780
2815
|
var _d = tslib.__read(React.useState(checked), 2), isChecked = _d[0], setIsChecked = _d[1];
|
|
2781
2816
|
var _e = tslib.__read(React.useState(false), 2), focused = _e[0], setFocused = _e[1];
|
|
2782
2817
|
var checkRef = React.useRef(null);
|
|
@@ -2802,7 +2837,17 @@ var Checkbox = React.forwardRef(function (_a, ref) {
|
|
|
2802
2837
|
}
|
|
2803
2838
|
return (React__default.createElement(React__default.Fragment, null,
|
|
2804
2839
|
React__default.createElement("div", { className: classNames('Checkbox is--flex-row', className) },
|
|
2805
|
-
React__default.createElement("input", tslib.__assign({ id: id, ref: typeof refProp === 'function' || !refProp ? checkRef : refProp, type: "checkbox", checked: isChecked, disabled: disabled, onFocus: function (
|
|
2840
|
+
React__default.createElement("input", tslib.__assign({ id: id, ref: typeof refProp === 'function' || !refProp ? checkRef : refProp, type: "checkbox", checked: isChecked, disabled: disabled, onFocus: function (e) {
|
|
2841
|
+
setFocused(true);
|
|
2842
|
+
if (typeof onFocus === 'function') {
|
|
2843
|
+
onFocus(e);
|
|
2844
|
+
}
|
|
2845
|
+
}, onBlur: function (e) {
|
|
2846
|
+
setFocused(false);
|
|
2847
|
+
if (typeof onBlur === 'function') {
|
|
2848
|
+
onBlur(e);
|
|
2849
|
+
}
|
|
2850
|
+
}, "aria-describedby": ariaDescribedbyId, onChange: function (e) {
|
|
2806
2851
|
setIsChecked(e.target.checked);
|
|
2807
2852
|
if (onChange) {
|
|
2808
2853
|
onChange(e);
|
|
@@ -8203,7 +8248,8 @@ Code.propTypes = {
|
|
|
8203
8248
|
children: PropTypes.string.isRequired,
|
|
8204
8249
|
language: PropTypes.oneOf(['javascript', 'css', 'html', 'yaml']),
|
|
8205
8250
|
className: PropTypes.string,
|
|
8206
|
-
tabIndex: PropTypes.number
|
|
8251
|
+
tabIndex: PropTypes.number,
|
|
8252
|
+
scrollable: PropTypes.bool
|
|
8207
8253
|
};
|
|
8208
8254
|
|
|
8209
8255
|
function AxeLoader() {
|
|
@@ -8869,10 +8915,14 @@ var Breadcrumb = React.forwardRef(function (_a, ref) {
|
|
|
8869
8915
|
});
|
|
8870
8916
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
8871
8917
|
|
|
8872
|
-
var BreadcrumbItem = React.forwardRef(
|
|
8918
|
+
var BreadcrumbItem = React.forwardRef(// eslint-disable-line react/display-name
|
|
8919
|
+
function (_a, ref) {
|
|
8873
8920
|
var className = _a.className, children = _a.children, props = tslib.__rest(_a, ["className", "children"]);
|
|
8874
8921
|
return (React__default.createElement("span", tslib.__assign({ className: classNames('Breadcrumb__Item', className), ref: ref, "aria-current": "location" }, props), children));
|
|
8875
8922
|
});
|
|
8923
|
+
BreadcrumbItem.propTypes = {
|
|
8924
|
+
className: PropTypes.string
|
|
8925
|
+
};
|
|
8876
8926
|
|
|
8877
8927
|
var BreadcrumbLink = React.forwardRef(function (_a, ref) {
|
|
8878
8928
|
var className = _a.className, _b = _a.as, ElementType = _b === void 0 ? 'a' : _b, children = _a.children, props = tslib.__rest(_a, ["className", "as", "children"]);
|
|
@@ -8937,7 +8987,11 @@ var TwoColumnPanel = React.forwardRef(function (_a, ref) {
|
|
|
8937
8987
|
CloseButton
|
|
8938
8988
|
], tslib.__read(React__default.Children.toArray(columnLeft.props.children)), false);
|
|
8939
8989
|
ColumnLeftComponent = React.cloneElement(columnLeft, { id: id, ref: ref_1, tabIndex: -1 }, children_1.map(function (child, index) {
|
|
8940
|
-
return React.cloneElement(child, {
|
|
8990
|
+
return React.cloneElement(child, {
|
|
8991
|
+
key: child.key
|
|
8992
|
+
? child.key
|
|
8993
|
+
: "left-".concat(index)
|
|
8994
|
+
});
|
|
8941
8995
|
}));
|
|
8942
8996
|
}
|
|
8943
8997
|
var columnRight = React__default.Children.toArray(children).find(function (child) { return child.type === ColumnRight; });
|
|
@@ -8952,7 +9006,11 @@ var TwoColumnPanel = React.forwardRef(function (_a, ref) {
|
|
|
8952
9006
|
ToggleButton
|
|
8953
9007
|
], tslib.__read(React__default.Children.toArray(columnRight.props.children)), false);
|
|
8954
9008
|
ColumnRightComponent = React.cloneElement(columnRight, { ref: ref_2, tabIndex: -1 }, children_2.map(function (child, index) {
|
|
8955
|
-
return React.cloneElement(child, {
|
|
9009
|
+
return React.cloneElement(child, {
|
|
9010
|
+
key: child.key
|
|
9011
|
+
? child.key
|
|
9012
|
+
: "right-".concat(index)
|
|
9013
|
+
});
|
|
8956
9014
|
}));
|
|
8957
9015
|
}
|
|
8958
9016
|
React.useLayoutEffect(function () {
|
|
@@ -9035,18 +9093,27 @@ var ColumnHeader = React.forwardRef(function (_a, ref) {
|
|
|
9035
9093
|
return (React__default.createElement("div", tslib.__assign({ className: classNames('TwoColumnPanel__Header', className) }, props, { ref: ref }), children));
|
|
9036
9094
|
});
|
|
9037
9095
|
ColumnHeader.displayName = 'ColumnHeader';
|
|
9096
|
+
ColumnHeader.propTypes = {
|
|
9097
|
+
className: PropTypes.string
|
|
9098
|
+
};
|
|
9038
9099
|
|
|
9039
9100
|
var ColumnGroupHeader = React.forwardRef(function (_a, ref) {
|
|
9040
9101
|
var className = _a.className, children = _a.children, props = tslib.__rest(_a, ["className", "children"]);
|
|
9041
9102
|
return (React__default.createElement("div", tslib.__assign({ className: classNames('TwoColumnPanel__GroupHeader', className) }, props, { ref: ref }), children));
|
|
9042
9103
|
});
|
|
9043
9104
|
ColumnGroupHeader.displayName = 'ColumnGroupHeader';
|
|
9105
|
+
ColumnGroupHeader.propTypes = {
|
|
9106
|
+
className: PropTypes.string
|
|
9107
|
+
};
|
|
9044
9108
|
|
|
9045
9109
|
var ColumnList = React.forwardRef(function (_a, ref) {
|
|
9046
9110
|
var className = _a.className, children = _a.children, props = tslib.__rest(_a, ["className", "children"]);
|
|
9047
9111
|
return (React__default.createElement("div", tslib.__assign({ className: classNames('TwoColumnPanel__List', className) }, props, { ref: ref }), children));
|
|
9048
9112
|
});
|
|
9049
9113
|
ColumnList.displayName = 'ColumnList';
|
|
9114
|
+
ColumnList.propTypes = {
|
|
9115
|
+
className: PropTypes.string
|
|
9116
|
+
};
|
|
9050
9117
|
|
|
9051
9118
|
var LIGHT_THEME_CLASS = 'cauldron--theme-light';
|
|
9052
9119
|
var DARK_THEME_CLASS = 'cauldron--theme-dark';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deque/cauldron-react",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.1-canary.8708b9d1",
|
|
4
4
|
"description": "Fully accessible react components library for Deque Cauldron",
|
|
5
5
|
"homepage": "https://cauldron.dequelabs.com/",
|
|
6
6
|
"publishConfig": {
|
|
@@ -60,10 +60,6 @@
|
|
|
60
60
|
"concurrently": "^5.3.0",
|
|
61
61
|
"enzyme": "^3.11.0",
|
|
62
62
|
"enzyme-adapter-react-16": "^1.15.2",
|
|
63
|
-
"eslint": "^6.8.0",
|
|
64
|
-
"eslint-config-prettier": "^6.11.0",
|
|
65
|
-
"eslint-plugin-jsx-a11y": "^6.2.3",
|
|
66
|
-
"eslint-plugin-react": "^7.19.0",
|
|
67
63
|
"jest": "^24.7.1",
|
|
68
64
|
"jest-axe": "^3.4.0",
|
|
69
65
|
"jsdom": "^16.2.2",
|
|
@@ -126,4 +122,4 @@
|
|
|
126
122
|
"\\.svg$": "<rootDir>/__tests__/svgMock.js"
|
|
127
123
|
}
|
|
128
124
|
}
|
|
129
|
-
}
|
|
125
|
+
}
|