@deque/cauldron-react 5.4.1-canary.b60588fe → 5.4.1-canary.d9725cdd

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.
@@ -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
- interface BreadcrumbItemProps extends React.HTMLAttributes<HTMLSpanElement> {
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 interface CardContentProps extends React.HTMLAttributes<HTMLDivElement> {
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 interface CardFooterProps extends React.HTMLAttributes<HTMLDivElement> {
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 interface CardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
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 interface OffscreenProps extends React.HTMLAttributes<HTMLSpanElement> {
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: ({ className, ...other }: React.HTMLAttributes<HTMLDivElement>) => JSX.Element;
29
- export declare const TooltipContent: ({ className, ...other }: React.HTMLAttributes<HTMLDivElement>) => JSX.Element;
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
- interface ColumnGroupHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
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
- interface ColumnHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
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
- interface ColumnListProps extends React.HTMLAttributes<HTMLDivElement> {
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',
@@ -8213,7 +8248,8 @@ Code.propTypes = {
8213
8248
  children: PropTypes.string.isRequired,
8214
8249
  language: PropTypes.oneOf(['javascript', 'css', 'html', 'yaml']),
8215
8250
  className: PropTypes.string,
8216
- tabIndex: PropTypes.number
8251
+ tabIndex: PropTypes.number,
8252
+ scrollable: PropTypes.bool
8217
8253
  };
8218
8254
 
8219
8255
  function AxeLoader() {
@@ -8879,10 +8915,14 @@ var Breadcrumb = React.forwardRef(function (_a, ref) {
8879
8915
  });
8880
8916
  Breadcrumb.displayName = 'Breadcrumb';
8881
8917
 
8882
- var BreadcrumbItem = React.forwardRef(function (_a, ref) {
8918
+ var BreadcrumbItem = React.forwardRef(// eslint-disable-line react/display-name
8919
+ function (_a, ref) {
8883
8920
  var className = _a.className, children = _a.children, props = tslib.__rest(_a, ["className", "children"]);
8884
8921
  return (React__default.createElement("span", tslib.__assign({ className: classNames('Breadcrumb__Item', className), ref: ref, "aria-current": "location" }, props), children));
8885
8922
  });
8923
+ BreadcrumbItem.propTypes = {
8924
+ className: PropTypes.string
8925
+ };
8886
8926
 
8887
8927
  var BreadcrumbLink = React.forwardRef(function (_a, ref) {
8888
8928
  var className = _a.className, _b = _a.as, ElementType = _b === void 0 ? 'a' : _b, children = _a.children, props = tslib.__rest(_a, ["className", "as", "children"]);
@@ -9053,18 +9093,27 @@ var ColumnHeader = React.forwardRef(function (_a, ref) {
9053
9093
  return (React__default.createElement("div", tslib.__assign({ className: classNames('TwoColumnPanel__Header', className) }, props, { ref: ref }), children));
9054
9094
  });
9055
9095
  ColumnHeader.displayName = 'ColumnHeader';
9096
+ ColumnHeader.propTypes = {
9097
+ className: PropTypes.string
9098
+ };
9056
9099
 
9057
9100
  var ColumnGroupHeader = React.forwardRef(function (_a, ref) {
9058
9101
  var className = _a.className, children = _a.children, props = tslib.__rest(_a, ["className", "children"]);
9059
9102
  return (React__default.createElement("div", tslib.__assign({ className: classNames('TwoColumnPanel__GroupHeader', className) }, props, { ref: ref }), children));
9060
9103
  });
9061
9104
  ColumnGroupHeader.displayName = 'ColumnGroupHeader';
9105
+ ColumnGroupHeader.propTypes = {
9106
+ className: PropTypes.string
9107
+ };
9062
9108
 
9063
9109
  var ColumnList = React.forwardRef(function (_a, ref) {
9064
9110
  var className = _a.className, children = _a.children, props = tslib.__rest(_a, ["className", "children"]);
9065
9111
  return (React__default.createElement("div", tslib.__assign({ className: classNames('TwoColumnPanel__List', className) }, props, { ref: ref }), children));
9066
9112
  });
9067
9113
  ColumnList.displayName = 'ColumnList';
9114
+ ColumnList.propTypes = {
9115
+ className: PropTypes.string
9116
+ };
9068
9117
 
9069
9118
  var LIGHT_THEME_CLASS = 'cauldron--theme-light';
9070
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.1-canary.b60588fe",
3
+ "version": "5.4.1-canary.d9725cdd",
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",