@deque/cauldron-react 5.13.0 → 6.0.0-canary.403a38d4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/lib/components/Accordion/Accordion.d.ts +0 -15
  2. package/lib/components/Address/index.d.ts +3 -16
  3. package/lib/components/Alert/index.d.ts +0 -10
  4. package/lib/components/Breadcrumb/BreadcrumbItem.d.ts +3 -2
  5. package/lib/components/ClickOutsideListener/index.d.ts +0 -8
  6. package/lib/components/DescriptionList/index.d.ts +0 -17
  7. package/lib/components/Dialog/index.d.ts +6 -25
  8. package/lib/components/ExpandCollapsePanel/ExpandCollapsePanel.d.ts +0 -8
  9. package/lib/components/ExpandCollapsePanel/PanelTrigger.d.ts +0 -10
  10. package/lib/components/Layout/index.d.ts +0 -7
  11. package/lib/components/Line/index.d.ts +4 -5
  12. package/lib/components/Link/index.d.ts +0 -10
  13. package/lib/components/Loader/index.d.ts +0 -1
  14. package/lib/components/LoaderOverlay/index.d.ts +0 -1
  15. package/lib/components/Main/index.d.ts +0 -7
  16. package/lib/components/MenuBar/index.d.ts +0 -7
  17. package/lib/components/MenuItem/index.d.ts +0 -10
  18. package/lib/components/Modal/index.d.ts +0 -10
  19. package/lib/components/NavBar/NavBar.d.ts +0 -8
  20. package/lib/components/NavBar/NavItem.d.ts +0 -4
  21. package/lib/components/OptionsMenu/OptionsMenu.d.ts +1 -13
  22. package/lib/components/OptionsMenu/OptionsMenuList.d.ts +0 -12
  23. package/lib/components/OptionsMenu/OptionsMenuWrapper.d.ts +1 -9
  24. package/lib/components/RadioCardGroup/index.d.ts +0 -17
  25. package/lib/components/Scrim/index.d.ts +0 -4
  26. package/lib/components/SideBar/SideBar.d.ts +0 -7
  27. package/lib/components/SideBar/SideBarItem.d.ts +1 -0
  28. package/lib/components/SkipLink/index.d.ts +0 -6
  29. package/lib/components/Stepper/index.d.ts +0 -11
  30. package/lib/components/Table/Table.d.ts +0 -6
  31. package/lib/components/Table/TableBody.d.ts +0 -5
  32. package/lib/components/Table/TableCell.d.ts +0 -5
  33. package/lib/components/Table/TableFooter.d.ts +0 -5
  34. package/lib/components/Table/TableHead.d.ts +0 -5
  35. package/lib/components/Table/TableHeader.d.ts +0 -9
  36. package/lib/components/Table/TableRow.d.ts +0 -5
  37. package/lib/components/Tabs/Tabs.d.ts +0 -10
  38. package/lib/components/Tag/index.d.ts +0 -9
  39. package/lib/components/TextField/index.d.ts +0 -16
  40. package/lib/components/Toast/index.d.ts +0 -13
  41. package/lib/components/Tooltip/index.d.ts +9 -22
  42. package/lib/components/TopBar/TopBarMenu.d.ts +0 -5
  43. package/lib/components/TopBar/TopBarTrigger.d.ts +1 -0
  44. package/lib/components/TwoColumnPanel/ColumnGroupHeader.d.ts +3 -2
  45. package/lib/components/TwoColumnPanel/ColumnHeader.d.ts +3 -2
  46. package/lib/components/TwoColumnPanel/ColumnList.d.ts +3 -2
  47. package/lib/components/Workspace/index.d.ts +0 -11
  48. package/lib/contexts/theme.d.ts +1 -8
  49. package/lib/index.d.ts +0 -3
  50. package/lib/index.js +58 -944
  51. package/package.json +1 -3
  52. package/lib/components/Card/Card.d.ts +0 -14
  53. package/lib/components/Card/CardContent.d.ts +0 -11
  54. package/lib/components/Card/CardFooter.d.ts +0 -11
  55. package/lib/components/Card/CardHeader.d.ts +0 -11
  56. package/lib/components/Card/index.d.ts +0 -4
  57. package/lib/components/IssuePanel/index.d.ts +0 -17
  58. package/lib/components/Pointout/index.d.ts +0 -82
  59. package/lib/propTypes.d.ts +0 -6
package/lib/index.js CHANGED
@@ -4,14 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var tslib = require('tslib');
6
6
  var React = require('react');
7
- var PropTypes = require('prop-types');
8
7
  var classNames = require('classnames');
9
8
  var nextId = require('react-id-generator');
10
9
  var keyname = require('keyname');
11
10
  var reactDom = require('react-dom');
12
11
  var FocusTrap = require('focus-trap-react');
13
12
  var reactPopper = require('react-popper');
14
- var focusable = require('focusable');
15
13
  var SyntaxHighlighter = require('react-syntax-highlighter/dist/cjs/light');
16
14
  var js = require('react-syntax-highlighter/dist/cjs/languages/hljs/javascript');
17
15
  var css = require('react-syntax-highlighter/dist/cjs/languages/hljs/css');
@@ -21,12 +19,10 @@ var yaml = require('react-syntax-highlighter/dist/cjs/languages/hljs/yaml');
21
19
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
22
20
 
23
21
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
24
- var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
25
22
  var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
26
23
  var nextId__default = /*#__PURE__*/_interopDefaultLegacy(nextId);
27
24
  var keyname__default = /*#__PURE__*/_interopDefaultLegacy(keyname);
28
25
  var FocusTrap__default = /*#__PURE__*/_interopDefaultLegacy(FocusTrap);
29
- var focusable__default = /*#__PURE__*/_interopDefaultLegacy(focusable);
30
26
  var SyntaxHighlighter__default = /*#__PURE__*/_interopDefaultLegacy(SyntaxHighlighter);
31
27
  var js__default = /*#__PURE__*/_interopDefaultLegacy(js);
32
28
  var css__default = /*#__PURE__*/_interopDefaultLegacy(css);
@@ -46,13 +42,6 @@ var Main = /** @class */ (function (_super) {
46
42
  // eslint-disable-next-line @typescript-eslint/no-empty-function
47
43
  mainRef: function () { }
48
44
  };
49
- Main.propTypes = {
50
- children: PropTypes__default["default"].node.isRequired,
51
- mainRef: PropTypes__default["default"].oneOfType([
52
- PropTypes__default["default"].func,
53
- PropTypes__default["default"].shape({ current: PropTypes__default["default"].any })
54
- ])
55
- };
56
45
  return Main;
57
46
  }(React.Component));
58
47
 
@@ -69,13 +58,6 @@ var Layout = /** @class */ (function (_super) {
69
58
  // eslint-disable-next-line @typescript-eslint/no-empty-function
70
59
  layoutRef: function () { }
71
60
  };
72
- Layout.propTypes = {
73
- children: PropTypes__default["default"].node.isRequired,
74
- layoutRef: PropTypes__default["default"].oneOfType([
75
- PropTypes__default["default"].func,
76
- PropTypes__default["default"].shape({ current: PropTypes__default["default"].any })
77
- ])
78
- };
79
61
  return Layout;
80
62
  }(React__default["default"].Component));
81
63
 
@@ -111,22 +93,6 @@ var Workspace = /** @class */ (function (_super) {
111
93
  layoutRef: function () { },
112
94
  noSideBar: false
113
95
  };
114
- Workspace.propTypes = {
115
- children: PropTypes__default["default"].oneOfType([
116
- PropTypes__default["default"].array,
117
- PropTypes__default["default"].object,
118
- PropTypes__default["default"].string
119
- ]).isRequired,
120
- workspaceRef: PropTypes__default["default"].oneOfType([
121
- PropTypes__default["default"].func,
122
- PropTypes__default["default"].shape({ current: PropTypes__default["default"].any })
123
- ]),
124
- layoutRef: PropTypes__default["default"].oneOfType([
125
- PropTypes__default["default"].func,
126
- PropTypes__default["default"].shape({ current: PropTypes__default["default"].any })
127
- ]),
128
- noSideBar: PropTypes__default["default"].bool
129
- };
130
96
  return Workspace;
131
97
  }(React__default["default"].Component));
132
98
 
@@ -354,12 +320,6 @@ var Icon = React.forwardRef(function (_a, ref) {
354
320
  label && React__default["default"].createElement(Offscreen, null, label),
355
321
  IconSVG && React__default["default"].createElement(IconSVG, null)));
356
322
  });
357
- Icon.propTypes = {
358
- label: PropTypes__default["default"].string,
359
- className: PropTypes__default["default"].string,
360
- // @ts-expect-error
361
- type: PropTypes__default["default"].string.isRequired
362
- };
363
323
  Icon.displayName = 'Icon';
364
324
 
365
325
  var PanelTrigger = function (_a) {
@@ -376,15 +336,6 @@ var PanelTrigger = function (_a) {
376
336
  : children),
377
337
  React__default["default"].createElement(Icon, { type: open ? iconExpanded : iconCollapsed }))));
378
338
  };
379
- PanelTrigger.propTypes = {
380
- children: PropTypes__default["default"].oneOfType([PropTypes__default["default"].func, PropTypes__default["default"].node]),
381
- open: PropTypes__default["default"].bool,
382
- iconExpanded: PropTypes__default["default"].string,
383
- iconCollapsed: PropTypes__default["default"].string,
384
- heading: PropTypes__default["default"].shape({
385
- level: PropTypes__default["default"].number
386
- })
387
- };
388
339
  PanelTrigger.displayName = 'PanelTrigger';
389
340
  var PanelTrigger$1 = React__default["default"].memo(PanelTrigger);
390
341
 
@@ -421,8 +372,7 @@ var ExpandCollapsePanel = /** @class */ (function (_super) {
421
372
  _this.animateOpen = function () {
422
373
  var panel = _this.panel.current;
423
374
  var animationTiming = _this.props.animationTiming;
424
- var prefersReducedMotion = matchMedia('(prefers-reduced-motion: reduce)')
425
- .matches;
375
+ var prefersReducedMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
426
376
  if (!animationTiming || prefersReducedMotion) {
427
377
  _this.setState({ isAnimating: false });
428
378
  return;
@@ -445,8 +395,7 @@ var ExpandCollapsePanel = /** @class */ (function (_super) {
445
395
  _this.animateClose = function () {
446
396
  var panel = _this.panel.current;
447
397
  var animationTiming = _this.props.animationTiming;
448
- var prefersReducedMotion = matchMedia('(prefers-reduced-motion: reduce)')
449
- .matches;
398
+ var prefersReducedMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
450
399
  if (!animationTiming || prefersReducedMotion) {
451
400
  _this.setState({ isAnimating: false });
452
401
  return;
@@ -512,13 +461,6 @@ var ExpandCollapsePanel = /** @class */ (function (_super) {
512
461
  // eslint-disable-next-line @typescript-eslint/no-empty-function
513
462
  onToggle: function () { }
514
463
  };
515
- ExpandCollapsePanel.propTypes = {
516
- open: PropTypes__default["default"].bool,
517
- children: PropTypes__default["default"].node.isRequired,
518
- className: PropTypes__default["default"].string,
519
- animationTiming: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].bool]),
520
- onToggle: PropTypes__default["default"].func
521
- };
522
464
  return ExpandCollapsePanel;
523
465
  }(React__default["default"].Component));
524
466
 
@@ -559,20 +501,6 @@ var Accordion = function (_a) {
559
501
  Accordion.displayName = 'Accordion';
560
502
  AccordionContent.displayName = 'AccordionContent';
561
503
  AccordionTrigger.displayName = 'AccordionTrigger';
562
- Accordion.propTypes = {
563
- children: PropTypes__default["default"].node,
564
- className: PropTypes__default["default"].string
565
- };
566
- AccordionTrigger.propTypes = {
567
- children: PropTypes__default["default"].node,
568
- heading: PropTypes__default["default"].shape({
569
- level: PropTypes__default["default"].number
570
- })
571
- };
572
- AccordionContent.propTypes = {
573
- children: PropTypes__default["default"].node.isRequired,
574
- className: PropTypes__default["default"].string
575
- };
576
504
 
577
505
  var Scrim = /** @class */ (function (_super) {
578
506
  tslib.__extends(Scrim, _super);
@@ -635,9 +563,6 @@ var Scrim = /** @class */ (function (_super) {
635
563
  }
636
564
  return (React__default["default"].createElement("div", { ref: function (el) { return (_this.el = el); }, className: "Scrim ".concat(animationClass) }));
637
565
  };
638
- Scrim.propTypes = {
639
- show: PropTypes__default["default"].bool.isRequired
640
- };
641
566
  return Scrim;
642
567
  }(React__default["default"].Component));
643
568
 
@@ -707,16 +632,6 @@ var MenuItem = /** @class */ (function (_super) {
707
632
  onKeyDown: function () { },
708
633
  autoClickLink: true
709
634
  };
710
- MenuItem.propTypes = {
711
- children: PropTypes__default["default"].node.isRequired,
712
- menuItemRef: PropTypes__default["default"].oneOfType([
713
- PropTypes__default["default"].func,
714
- PropTypes__default["default"].shape({ current: PropTypes__default["default"].any })
715
- ]),
716
- onClick: PropTypes__default["default"].func,
717
- onKeyDown: PropTypes__default["default"].func,
718
- autoClickLink: PropTypes__default["default"].bool
719
- };
720
635
  return MenuItem;
721
636
  }(React.Component));
722
637
 
@@ -837,12 +752,6 @@ var TopBar$1 = /** @class */ (function (_super) {
837
752
  var _a = this.props, children = _a.children, className = _a.className; _a.thin; _a.hasTrigger; tslib.__rest(_a, ["children", "className", "thin", "hasTrigger"]);
838
753
  return (React__default["default"].createElement("ul", { role: "menubar", className: className }, React.Children.map(children, this.renderChild)));
839
754
  };
840
- TopBar.propTypes = {
841
- children: PropTypes__default["default"].node.isRequired,
842
- className: PropTypes__default["default"].string,
843
- thin: PropTypes__default["default"].bool,
844
- hasTrigger: PropTypes__default["default"].bool
845
- };
846
755
  TopBar.defaultProps = {
847
756
  thin: false,
848
757
  hasTrigger: false
@@ -863,10 +772,6 @@ var TopBarTrigger = function (_a) {
863
772
  return (React__default["default"].createElement(MenuItem, tslib.__assign({ "aria-haspopup": "true", className: classNames__default["default"]('TopBar__menu-trigger', className) }, other), children));
864
773
  };
865
774
  TopBarTrigger.displayName = 'TopBarTrigger';
866
- TopBarTrigger.propTypes = {
867
- children: PropTypes__default["default"].node.isRequired,
868
- className: PropTypes__default["default"].string
869
- };
870
775
 
871
776
  var menuAlignment = function (type) {
872
777
  switch (type) {
@@ -883,11 +788,6 @@ var OptionsMenuWrapper = function (_a) {
883
788
  var className = _a.className, align = _a.align, other = tslib.__rest(_a, ["className", "align"]);
884
789
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('OptionsMenu', menuAlignment(align), className) }, other)));
885
790
  };
886
- OptionsMenuWrapper.propTypes = {
887
- children: PropTypes__default["default"].node.isRequired,
888
- className: PropTypes__default["default"].string,
889
- align: PropTypes__default["default"].oneOf(['left', 'right'])
890
- };
891
791
 
892
792
  var ClickOutsideListener = /** @class */ (function (_super) {
893
793
  tslib.__extends(ClickOutsideListener, _super);
@@ -955,13 +855,6 @@ var ClickOutsideListener = /** @class */ (function (_super) {
955
855
  mouseEvent: 'click',
956
856
  touchEvent: 'touchend'
957
857
  };
958
- ClickOutsideListener.propTypes = {
959
- children: PropTypes__default["default"].node,
960
- target: PropTypes__default["default"].any,
961
- onClickOutside: PropTypes__default["default"].func.isRequired,
962
- mouseEvent: PropTypes__default["default"].oneOf(['mousedown', 'click', 'mouseup', false]),
963
- touchEvent: PropTypes__default["default"].oneOf(['touchstart', 'touchend', false])
964
- };
965
858
  return ClickOutsideListener;
966
859
  }(React__default["default"].Component));
967
860
 
@@ -1085,18 +978,6 @@ var OptionsMenuList = /** @class */ (function (_super) {
1085
978
  // eslint-disable-next-line @typescript-eslint/no-empty-function
1086
979
  onClose: function () { }
1087
980
  };
1088
- OptionsMenuList.propTypes = {
1089
- show: PropTypes__default["default"].bool,
1090
- children: PropTypes__default["default"].node.isRequired,
1091
- onClose: PropTypes__default["default"].func,
1092
- className: PropTypes__default["default"].string,
1093
- onSelect: PropTypes__default["default"].func,
1094
- closeOnSelect: PropTypes__default["default"].bool,
1095
- menuRef: PropTypes__default["default"].oneOfType([
1096
- PropTypes__default["default"].func,
1097
- PropTypes__default["default"].shape({ current: PropTypes__default["default"].any })
1098
- ])
1099
- };
1100
981
  return OptionsMenuList;
1101
982
  }(React__default["default"].Component));
1102
983
 
@@ -1156,19 +1037,6 @@ var OptionsMenu = /** @class */ (function (_super) {
1156
1037
  onSelect: function () { },
1157
1038
  align: 'right'
1158
1039
  };
1159
- OptionsMenu.propTypes = {
1160
- trigger: PropTypes__default["default"].func,
1161
- children: PropTypes__default["default"].node.isRequired,
1162
- onClose: PropTypes__default["default"].func,
1163
- className: PropTypes__default["default"].string,
1164
- onSelect: PropTypes__default["default"].func,
1165
- closeOnSelect: PropTypes__default["default"].bool,
1166
- menuRef: PropTypes__default["default"].oneOfType([
1167
- PropTypes__default["default"].func,
1168
- PropTypes__default["default"].shape({ current: PropTypes__default["default"].any })
1169
- ]),
1170
- align: PropTypes__default["default"].oneOf(['left', 'right'])
1171
- };
1172
1040
  return OptionsMenu;
1173
1041
  }(React.Component));
1174
1042
 
@@ -1196,11 +1064,6 @@ var OptionsMenuItemComponent = /** @class */ (function (_super) {
1196
1064
  // eslint-disable-next-line @typescript-eslint/no-empty-function
1197
1065
  onSelect: function () { }
1198
1066
  };
1199
- OptionsMenuItemComponent.propTypes = {
1200
- disabled: PropTypes__default["default"].bool,
1201
- className: PropTypes__default["default"].string,
1202
- onSelect: PropTypes__default["default"].func
1203
- };
1204
1067
  return OptionsMenuItemComponent;
1205
1068
  }(React__default["default"].Component));
1206
1069
  var OptionsMenuItem = React__default["default"].forwardRef(function OptionsMenuItem(props, ref) {
@@ -1215,14 +1078,6 @@ function OptionsMenuTriggerComponent(_a) {
1215
1078
  var className = _a.className, triggerRef = _a.triggerRef, other = tslib.__rest(_a, ["className", "triggerRef"]);
1216
1079
  return (React__default["default"].createElement("button", tslib.__assign({ type: "button", "aria-haspopup": "menu", ref: triggerRef }, other, { className: classNames__default["default"]('OptionsMenu__trigger', className) })));
1217
1080
  }
1218
- OptionsMenuTriggerComponent.propTypes = {
1219
- children: PropTypes__default["default"].node.isRequired,
1220
- className: PropTypes__default["default"].string,
1221
- triggerRef: PropTypes__default["default"].oneOfType([
1222
- PropTypes__default["default"].func,
1223
- PropTypes__default["default"].shape({ current: PropTypes__default["default"].any })
1224
- ])
1225
- };
1226
1081
  var OptionsMenuTrigger = React__default["default"].forwardRef(function OptionsMenuTrigger(props, ref) {
1227
1082
  return React__default["default"].createElement(OptionsMenuTriggerComponent, tslib.__assign({}, props, { triggerRef: ref }));
1228
1083
  });
@@ -1295,10 +1150,6 @@ var TopBarMenu = /** @class */ (function (_super) {
1295
1150
  // eslint-disable-next-line @typescript-eslint/no-empty-function
1296
1151
  menuItemRef: function () { }
1297
1152
  };
1298
- TopBarMenu.propTypes = {
1299
- id: PropTypes__default["default"].string.isRequired,
1300
- children: PropTypes__default["default"].node.isRequired
1301
- };
1302
1153
  return TopBarMenu;
1303
1154
  }(React__default["default"].Component));
1304
1155
 
@@ -1346,13 +1197,6 @@ var NavBar = function (_a) {
1346
1197
  showNavItems && (React__default["default"].createElement("ul", { onKeyDown: handleKeyDown, id: menuId }, children))));
1347
1198
  };
1348
1199
  NavBar.displayName = 'NavBar';
1349
- NavBar.propTypes = {
1350
- children: PropTypes__default["default"].node.isRequired,
1351
- className: PropTypes__default["default"].string,
1352
- collapsed: PropTypes__default["default"].bool,
1353
- navTriggerLabel: PropTypes__default["default"].string,
1354
- propId: PropTypes__default["default"].string
1355
- };
1356
1200
 
1357
1201
  var NavItem = function (_a) {
1358
1202
  var children = _a.children, active = _a.active, _b = _a["aria-current"], ariaCurrent = _b === void 0 ? true : _b, other = tslib.__rest(_a, ["children", "active", 'aria-current']);
@@ -1365,9 +1209,6 @@ var NavItem = function (_a) {
1365
1209
  }) }, additionalProps, other), children));
1366
1210
  };
1367
1211
  NavItem.displayName = 'NavItem';
1368
- NavItem.propTypes = {
1369
- children: PropTypes__default["default"].node.isRequired
1370
- };
1371
1212
 
1372
1213
  /**
1373
1214
  * Selector for NATURALLY focusable elements
@@ -1479,12 +1320,6 @@ var SideBar = /** @class */ (function (_super) {
1479
1320
  className: '',
1480
1321
  show: false
1481
1322
  };
1482
- SideBar.propTypes = {
1483
- children: PropTypes__default["default"].node.isRequired,
1484
- onDismiss: PropTypes__default["default"].func.isRequired,
1485
- className: PropTypes__default["default"].string,
1486
- show: PropTypes__default["default"].bool
1487
- };
1488
1323
  return SideBar;
1489
1324
  }(React.Component));
1490
1325
 
@@ -1504,10 +1339,6 @@ SideBarItem.displayName = 'SideBarItem';
1504
1339
  SideBarItem.defaultProps = {
1505
1340
  autoClickLink: true
1506
1341
  };
1507
- SideBarItem.propTypes = {
1508
- children: PropTypes__default["default"].node.isRequired,
1509
- autoClickLink: PropTypes__default["default"].bool
1510
- };
1511
1342
 
1512
1343
  /**
1513
1344
  * Handles aria-hidden for dialogs.
@@ -1653,19 +1484,6 @@ var Dialog = /** @class */ (function (_super) {
1653
1484
  forceAction: false,
1654
1485
  closeButtonText: 'Close'
1655
1486
  };
1656
- Dialog.propTypes = {
1657
- className: PropTypes__default["default"].string,
1658
- show: PropTypes__default["default"].bool,
1659
- dialogRef: PropTypes__default["default"].oneOfType([
1660
- PropTypes__default["default"].func,
1661
- PropTypes__default["default"].shape({ current: PropTypes__default["default"].any })
1662
- ]),
1663
- onClose: PropTypes__default["default"].func,
1664
- forceAction: PropTypes__default["default"].bool,
1665
- heading: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].node]).isRequired,
1666
- closeButtonText: PropTypes__default["default"].string,
1667
- portal: PropTypes__default["default"].any
1668
- };
1669
1487
  return Dialog;
1670
1488
  }(React__default["default"].Component));
1671
1489
  var DialogContent = function (_a) {
@@ -1677,11 +1495,6 @@ var DialogContent = function (_a) {
1677
1495
  }) }, other), children));
1678
1496
  };
1679
1497
  DialogContent.displayName = 'DialogContent';
1680
- DialogContent.propTypes = {
1681
- className: PropTypes__default["default"].string,
1682
- children: PropTypes__default["default"].node,
1683
- align: PropTypes__default["default"].string
1684
- };
1685
1498
  var DialogFooter = function (_a) {
1686
1499
  var children = _a.children, className = _a.className, align = _a.align, other = tslib.__rest(_a, ["children", "className", "align"]);
1687
1500
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Dialog__footer', className, {
@@ -1691,11 +1504,6 @@ var DialogFooter = function (_a) {
1691
1504
  }) }, other), children));
1692
1505
  };
1693
1506
  DialogFooter.displayName = 'DialogFooter';
1694
- DialogFooter.propTypes = {
1695
- className: PropTypes__default["default"].string,
1696
- children: PropTypes__default["default"].node,
1697
- align: PropTypes__default["default"].string
1698
- };
1699
1507
 
1700
1508
  var Alert = function (_a) {
1701
1509
  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"]);
@@ -1775,17 +1583,6 @@ var SkipLink = /** @class */ (function (_super) {
1775
1583
  skipText: 'Skip to',
1776
1584
  targetText: 'Main Content'
1777
1585
  };
1778
- SkipLink.propTypes = {
1779
- // enforce a valid id hash string (example: '#foo')
1780
- target: function (props, propName, componentName) {
1781
- var value = props[propName];
1782
- if (!value || typeof value !== 'string' || value[0] !== '#') {
1783
- return new Error("Invalid prop ".concat(propName, " supplied to ").concat(componentName, " (must be string starting with \"#\")"));
1784
- }
1785
- },
1786
- skipText: PropTypes__default["default"].string,
1787
- targetText: PropTypes__default["default"].string
1788
- };
1789
1586
  return SkipLink;
1790
1587
  }(React__default["default"].Component));
1791
1588
 
@@ -1942,29 +1739,14 @@ function Tooltip(_a) {
1942
1739
  : null));
1943
1740
  }
1944
1741
  Tooltip.displayName = 'Tooltip';
1945
- Tooltip.propTypes = {
1946
- children: PropTypes__default["default"].node.isRequired,
1947
- target: PropTypes__default["default"].any.isRequired,
1948
- association: PropTypes__default["default"].oneOf(['aria-labelledby', 'aria-describedby']),
1949
- show: PropTypes__default["default"].bool,
1950
- placement: PropTypes__default["default"].string,
1951
- variant: PropTypes__default["default"].string,
1952
- portal: PropTypes__default["default"].any
1953
- };
1954
1742
  var TooltipHead = function (_a) {
1955
1743
  var className = _a.className, other = tslib.__rest(_a, ["className"]);
1956
1744
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('TooltipHead', className) }, other)));
1957
1745
  };
1958
- TooltipHead.propTypes = {
1959
- className: PropTypes__default["default"].string
1960
- };
1961
1746
  var TooltipContent = function (_a) {
1962
1747
  var className = _a.className, other = tslib.__rest(_a, ["className"]);
1963
1748
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('TooltipContent', className) }, other)));
1964
1749
  };
1965
- TooltipContent.propTypes = {
1966
- className: PropTypes__default["default"].string
1967
- };
1968
1750
 
1969
1751
  /**
1970
1752
  * Unfortunately, eslint does not recognize that this Polymorphic component has a displayName set
@@ -2003,345 +1785,8 @@ var IconButton = React.forwardRef(function (_a, ref) {
2003
1785
  disabled && React__default["default"].createElement(Offscreen, null, label)),
2004
1786
  !disabled && (React__default["default"].createElement(Tooltip, { target: internalRef, placement: tooltipPlacement, variant: tooltipVariant, portal: tooltipPortal, association: "aria-labelledby", hideElementOnHidden: true }, label))));
2005
1787
  });
2006
- IconButton.propTypes = {
2007
- // @ts-expect-error
2008
- as: PropTypes__default["default"].elementType,
2009
- // @ts-expect-error
2010
- icon: PropTypes__default["default"].string.isRequired,
2011
- label: PropTypes__default["default"].node.isRequired,
2012
- // @ts-expect-error
2013
- tooltipPlacement: PropTypes__default["default"].string,
2014
- // @ts-expect-error
2015
- tooltipVariant: PropTypes__default["default"].string,
2016
- tooltipPortal: PropTypes__default["default"].any,
2017
- // @ts-expect-error
2018
- variant: PropTypes__default["default"].string
2019
- };
2020
1788
  IconButton.displayName = 'IconButton';
2021
1789
 
2022
- var i = 0;
2023
- var randomId = function () {
2024
- var num = Math.floor(Math.random() * 10000) + 1;
2025
- return "x_".concat(i++, "_").concat(num);
2026
- };
2027
-
2028
- /*
2029
- * Recursively walks React element tree removing any id props for descendant nodes
2030
- */
2031
- function recursivelyRemoveIds(element) {
2032
- var walker = function (element) {
2033
- if (!React.isValidElement(element)) {
2034
- return element;
2035
- }
2036
- return React.cloneElement(element, {
2037
- // we can't remove attributes, but react treats undefined/null as "absent"
2038
- id: null
2039
- }, React.Children.map(element.props.children, function (childElement) {
2040
- return walker(childElement);
2041
- }));
2042
- };
2043
- return Array.isArray(element)
2044
- ? React.Children.map(element, walker)
2045
- : walker(element);
2046
- }
2047
-
2048
- var Pointout = /** @class */ (function (_super) {
2049
- tslib.__extends(Pointout, _super);
2050
- function Pointout(props) {
2051
- var _this = _super.call(this, props) || this;
2052
- // Mirror the offscreen focus to the visible content
2053
- _this.attachOffscreenListeners = function () {
2054
- var _a = _this, offscreenRef = _a.offscreenRef, offscreenContentRef = _a.offscreenContentRef, handleOffscreenFocusIn = _a.handleOffscreenFocusIn, handleOffscreenFocusOut = _a.handleOffscreenFocusOut, handleOffscreenContentFocusIn = _a.handleOffscreenContentFocusIn, handleOffscreenContentFocusOut = _a.handleOffscreenContentFocusOut;
2055
- if (offscreenRef) {
2056
- offscreenRef.removeEventListener('focusin', handleOffscreenFocusIn);
2057
- offscreenRef.addEventListener('focusin', handleOffscreenFocusIn);
2058
- offscreenRef.removeEventListener('focusout', handleOffscreenFocusOut);
2059
- offscreenRef.addEventListener('focusout', handleOffscreenFocusOut);
2060
- }
2061
- // Manually handle offscreen content since it has a -1 tab index
2062
- if (offscreenContentRef) {
2063
- offscreenContentRef.removeEventListener('focusin', handleOffscreenContentFocusIn);
2064
- offscreenContentRef.addEventListener('focusin', handleOffscreenContentFocusIn);
2065
- offscreenContentRef.removeEventListener('focusout', handleOffscreenContentFocusOut);
2066
- offscreenContentRef.addEventListener('focusout', handleOffscreenContentFocusOut);
2067
- }
2068
- };
2069
- _this.handleOffscreenContentFocusIn = function (_a) {
2070
- var target = _a.target;
2071
- if (target === _this.offscreenContentRef) {
2072
- _this.setState({ offscreenContentFocus: true });
2073
- }
2074
- };
2075
- _this.handleOffscreenContentFocusOut = function (_a) {
2076
- var target = _a.target;
2077
- if (target === _this.offscreenContentRef) {
2078
- _this.setState({ offscreenContentFocus: false });
2079
- }
2080
- };
2081
- _this.handleOffscreenFocusIn = function (_a) {
2082
- var e_1, _b;
2083
- var target = _a.target;
2084
- var _c = _this, offscreenRef = _c.offscreenRef, visibleRef = _c.visibleRef, getFocusableElements = _c.getFocusableElements;
2085
- var offscreenFocusable = getFocusableElements(offscreenRef);
2086
- var visibleFocusable = getFocusableElements(visibleRef);
2087
- var elementIndex = offscreenFocusable.findIndex(function (element) { return element === target; });
2088
- if (elementIndex === -1 || !visibleFocusable[elementIndex]) {
2089
- return;
2090
- }
2091
- try {
2092
- // Tag focusable elements
2093
- for (var visibleFocusable_1 = tslib.__values(visibleFocusable), visibleFocusable_1_1 = visibleFocusable_1.next(); !visibleFocusable_1_1.done; visibleFocusable_1_1 = visibleFocusable_1.next()) {
2094
- var element = visibleFocusable_1_1.value;
2095
- element.setAttribute('data-focusable', 'true');
2096
- element.setAttribute('tabindex', '-1');
2097
- }
2098
- }
2099
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2100
- finally {
2101
- try {
2102
- if (visibleFocusable_1_1 && !visibleFocusable_1_1.done && (_b = visibleFocusable_1.return)) _b.call(visibleFocusable_1);
2103
- }
2104
- finally { if (e_1) throw e_1.error; }
2105
- }
2106
- visibleFocusable[elementIndex].classList.add('Pointout--focus-active');
2107
- };
2108
- _this.handleOffscreenFocusOut = function (_a) {
2109
- var target = _a.target;
2110
- var _b = _this, offscreenRef = _b.offscreenRef, visibleRef = _b.visibleRef, getFocusableElements = _b.getFocusableElements;
2111
- var offscreenFocusable = getFocusableElements(offscreenRef);
2112
- var visibleFocusable = getFocusableElements(visibleRef);
2113
- var elementIndex = offscreenFocusable.findIndex(function (element) { return element === target; });
2114
- if (elementIndex === -1 || !visibleFocusable[elementIndex]) {
2115
- return;
2116
- }
2117
- visibleFocusable[elementIndex].classList.remove('Pointout--focus-active');
2118
- };
2119
- _this.positionRelativeToTarget = function () {
2120
- var _a = _this.props, target = _a.target, portal = _a.portal, arrowPosition = _a.arrowPosition, position = _a.position;
2121
- if (!target) {
2122
- return;
2123
- }
2124
- var targetNode = (target === null || target === void 0 ? void 0 : target.current) ||
2125
- target;
2126
- var portalNode = (portal === null || portal === void 0 ? void 0 : portal.current) ||
2127
- portal;
2128
- // eslint-disable-next-line prefer-const
2129
- var _b = targetNode.getBoundingClientRect(), top = _b.top, left = _b.left, width = _b.width, height = _b.height;
2130
- if (portalNode && portalNode !== document.body) {
2131
- // If the portal is not placed on document.body
2132
- // position the FTPO relative to the portal
2133
- var rect = portalNode.getBoundingClientRect();
2134
- top -= rect.top - portalNode.scrollTop;
2135
- left -= rect.left - portalNode.scrollLeft;
2136
- }
2137
- var _c = tslib.__read(arrowPosition.split('-'), 1), arrowBoxSide = _c[0];
2138
- var style;
2139
- switch (arrowBoxSide) {
2140
- case 'right':
2141
- style = {
2142
- left: "".concat(left, "px"),
2143
- top: "".concat(position === 'center'
2144
- ? top + height / 2
2145
- : position === 'start'
2146
- ? top
2147
- : top + height, "px")
2148
- };
2149
- break;
2150
- case 'bottom':
2151
- style = {
2152
- top: "".concat(top, "px"),
2153
- left: "".concat(position === 'center'
2154
- ? left + width / 2
2155
- : position === 'start'
2156
- ? left
2157
- : left + width, "px")
2158
- };
2159
- break;
2160
- case 'left':
2161
- style = {
2162
- left: "".concat(left + width, "px"),
2163
- top: "".concat(position === 'center'
2164
- ? top + height / 2
2165
- : position === 'start'
2166
- ? top
2167
- : top + height, "px")
2168
- };
2169
- break;
2170
- case 'top':
2171
- default:
2172
- style = {
2173
- top: "".concat(top + height, "px"),
2174
- left: "".concat(position === 'center'
2175
- ? left + width / 2
2176
- : position === 'start'
2177
- ? left
2178
- : left + width, "px")
2179
- };
2180
- break;
2181
- }
2182
- _this.setState({ style: style });
2183
- };
2184
- _this.state = { show: true, style: {} };
2185
- _this.onCloseClick = _this.onCloseClick.bind(_this);
2186
- return _this;
2187
- }
2188
- Pointout.prototype.getFocusableElements = function (root) {
2189
- return root
2190
- ? Array.from(root.querySelectorAll("".concat(focusable__default["default"], ", [data-focusable]")))
2191
- : [];
2192
- };
2193
- Pointout.prototype.componentDidMount = function () {
2194
- var _this = this;
2195
- var _a = this, positionRelativeToTarget = _a.positionRelativeToTarget, attachOffscreenListeners = _a.attachOffscreenListeners;
2196
- positionRelativeToTarget();
2197
- this.setState({ headingId: randomId() });
2198
- // debounce resize event to rAF
2199
- this.resizeDebounce = function () {
2200
- if (_this.resizeDebounceId) {
2201
- cancelAnimationFrame(_this.resizeDebounceId);
2202
- }
2203
- _this.resizeDebounceId = requestAnimationFrame(function () {
2204
- _this.positionRelativeToTarget();
2205
- });
2206
- };
2207
- window.addEventListener('resize', this.resizeDebounce);
2208
- attachOffscreenListeners();
2209
- // If the component mounts before fonts have finished loading, ensure that we
2210
- // reposition the element when all fonts are ready
2211
- if (document && document.fonts && document.fonts.ready) {
2212
- // experiemental apis aren't in typescript's lib file :(
2213
- // https://github.com/Microsoft/TypeScript/issues/30984
2214
- document.fonts.ready.then(function () { return _this.positionRelativeToTarget(); });
2215
- }
2216
- };
2217
- Pointout.prototype.forceUpdate = function () {
2218
- var _this = this;
2219
- _super.prototype.forceUpdate.call(this);
2220
- requestAnimationFrame(function () { return _this.positionRelativeToTarget(); });
2221
- };
2222
- Pointout.prototype.componentWillUnmount = function () {
2223
- var _a = this, resizeDebounce = _a.resizeDebounce, offscreenRef = _a.offscreenRef, offscreenContentRef = _a.offscreenContentRef, handleOffscreenFocusIn = _a.handleOffscreenFocusIn, handleOffscreenFocusOut = _a.handleOffscreenFocusOut, handleOffscreenContentFocusIn = _a.handleOffscreenContentFocusIn, handleOffscreenContentFocusOut = _a.handleOffscreenContentFocusOut;
2224
- if (resizeDebounce) {
2225
- window.removeEventListener('resize', resizeDebounce);
2226
- }
2227
- if (offscreenRef) {
2228
- offscreenRef.removeEventListener('focusin', handleOffscreenFocusIn);
2229
- offscreenRef.removeEventListener('focusout', handleOffscreenFocusOut);
2230
- }
2231
- if (offscreenContentRef) {
2232
- offscreenContentRef.removeEventListener('focusin', handleOffscreenContentFocusIn);
2233
- offscreenContentRef.removeEventListener('focusout', handleOffscreenContentFocusOut);
2234
- }
2235
- };
2236
- Pointout.prototype.componentDidUpdate = function (nextProps) {
2237
- var _a = this, props = _a.props, attachOffscreenListeners = _a.attachOffscreenListeners, positionRelativeToTarget = _a.positionRelativeToTarget;
2238
- if (props.arrowPosition !== nextProps.arrowPosition ||
2239
- props.portal !== nextProps.portal ||
2240
- props.target !== nextProps.target ||
2241
- props.disableOffscreenPointout !== nextProps.disableOffscreenPointout) {
2242
- attachOffscreenListeners();
2243
- positionRelativeToTarget();
2244
- }
2245
- };
2246
- Pointout.prototype.render = function () {
2247
- var _a, _b;
2248
- var _this = this;
2249
- var _c;
2250
- var _d = this.state, show = _d.show, style = _d.style, offscreenContentFocus = _d.offscreenContentFocus, headingId = _d.headingId;
2251
- var _e = this.props, heading = _e.heading, ftpoRef = _e.ftpoRef, children = _e.children, noArrow = _e.noArrow, dismissText = _e.dismissText, previousText = _e.previousText, nextText = _e.nextText, showNext = _e.showNext, showPrevious = _e.showPrevious, arrowPosition = _e.arrowPosition, position = _e.position, className = _e.className, target = _e.target, disableOffscreenPointout = _e.disableOffscreenPointout, previousButtonProps = _e.previousButtonProps, nextButtonProps = _e.nextButtonProps, closeButtonProps = _e.closeButtonProps;
2252
- if (!show || !isBrowser()) {
2253
- return null;
2254
- }
2255
- var portal = this.props.portal || document.body;
2256
- var FTPO = (React__default["default"].createElement("div", { className: classNames__default["default"](className, 'Pointout', (_a = {
2257
- 'Pointout--no-arrow': noArrow,
2258
- 'Pointout--auto': !!target
2259
- },
2260
- _a["Pointout__arrow--".concat(arrowPosition)] = !!arrowPosition && !noArrow,
2261
- _a["Pointout--".concat(position)] = !!target,
2262
- _a)), style: style, role: target ? undefined : 'region', "aria-labelledby": heading ? headingId : undefined, "aria-hidden": !!target && !disableOffscreenPointout, ref: function (el) { return (_this.visibleRef = el); } },
2263
- noArrow ? null : (React__default["default"].createElement("div", { className: classNames__default["default"]('Pointout__arrow', (_b = {},
2264
- _b["Pointout__arrow--".concat(arrowPosition)] = !!arrowPosition && !noArrow,
2265
- _b)) },
2266
- React__default["default"].createElement("div", { className: "Pointout__arrow-pointer" }))),
2267
- React__default["default"].createElement("div", { className: "Pointout__box" },
2268
- React__default["default"].createElement("button", tslib.__assign({ className: "Pointout__dismiss", type: "button", "aria-label": dismissText, onClick: this.onCloseClick, tabIndex: !!target && !disableOffscreenPointout ? -1 : 0 }, closeButtonProps),
2269
- React__default["default"].createElement(Icon, { type: "close", "aria-hidden": "true" })),
2270
- React__default["default"].createElement("div", { className: classNames__default["default"]('Pointout__content', {
2271
- 'Pointout__content--focus-active': offscreenContentFocus
2272
- }), tabIndex: !target ? -1 : undefined, ref: ftpoRef },
2273
- heading &&
2274
- React__default["default"].cloneElement(heading, {
2275
- id: target ? null : headingId,
2276
- className: classNames__default["default"]('Pointout__heading', (_c = heading.props) === null || _c === void 0 ? void 0 : _c.className)
2277
- }),
2278
- target ? recursivelyRemoveIds(children) : children),
2279
- showPrevious && (React__default["default"].createElement("button", tslib.__assign({ className: "Pointout__previous", type: "button", "aria-label": previousText, tabIndex: !!target && !disableOffscreenPointout ? -1 : 0 }, previousButtonProps),
2280
- React__default["default"].createElement(Icon, { type: "arrow-left", "aria-hidden": "true" }))),
2281
- showNext && (React__default["default"].createElement("button", tslib.__assign({ className: "Pointout__next", type: "button", "aria-label": nextText, tabIndex: !!target && !disableOffscreenPointout ? -1 : 0 }, nextButtonProps),
2282
- React__default["default"].createElement(Icon, { type: "arrow-right", "aria-hidden": "true" }))))));
2283
- if (target && portal && !disableOffscreenPointout) {
2284
- return (React__default["default"].createElement(React__default["default"].Fragment, null,
2285
- React__default["default"].createElement("div", { className: "Offscreen", role: "region", "aria-labelledby": heading ? headingId : undefined, ref: function (el) { return (_this.offscreenRef = el); } },
2286
- React__default["default"].createElement("button", tslib.__assign({ type: "button", "aria-label": dismissText, onClick: this.onCloseClick }, closeButtonProps)),
2287
- React__default["default"].createElement("div", { className: "Pointout__content", tabIndex: -1, ref: function (el) { return (_this.offscreenContentRef = el); } },
2288
- heading &&
2289
- React__default["default"].cloneElement(heading, {
2290
- id: headingId
2291
- }),
2292
- children),
2293
- showPrevious && (React__default["default"].createElement("button", tslib.__assign({ type: "button", "aria-label": previousText }, previousButtonProps))),
2294
- showNext && (React__default["default"].createElement("button", tslib.__assign({ type: "button", "aria-label": nextText }, nextButtonProps)))),
2295
- reactDom.createPortal(FTPO, portal)));
2296
- }
2297
- return target && portal ? reactDom.createPortal(FTPO, portal) : FTPO;
2298
- };
2299
- Pointout.prototype.onCloseClick = function () {
2300
- var _a;
2301
- this.setState({ show: false });
2302
- (_a = this.props) === null || _a === void 0 ? void 0 : _a.onClose();
2303
- };
2304
- Pointout.defaultProps = {
2305
- // eslint-disable-next-line @typescript-eslint/no-empty-function
2306
- ftpoRef: function () { },
2307
- noArrow: false,
2308
- // eslint-disable-next-line @typescript-eslint/no-empty-function
2309
- onClose: function () { },
2310
- dismissText: 'dismiss',
2311
- previousText: 'previous',
2312
- nextText: 'next',
2313
- arrowPosition: 'top-left',
2314
- position: 'center'
2315
- };
2316
- Pointout.propTypes = {
2317
- heading: PropTypes__default["default"].node,
2318
- children: PropTypes__default["default"].node.isRequired,
2319
- ftpRef: PropTypes__default["default"].oneOfType([
2320
- PropTypes__default["default"].func,
2321
- PropTypes__default["default"].shape({ current: PropTypes__default["default"].any })
2322
- ]),
2323
- noArrow: function (props, propName) {
2324
- if (props[propName] === true && typeof props['target'] !== 'undefined') {
2325
- return new Error('A "target" prop with "noArrow=true" is not currently supported.');
2326
- }
2327
- },
2328
- arrowPosition: PropTypes__default["default"].string,
2329
- onClose: PropTypes__default["default"].func,
2330
- dismissText: PropTypes__default["default"].string,
2331
- className: PropTypes__default["default"].string,
2332
- target: PropTypes__default["default"].oneOfType([
2333
- PropTypes__default["default"].func,
2334
- PropTypes__default["default"].shape({ current: PropTypes__default["default"].any })
2335
- ]),
2336
- disableOffscreenPointout: PropTypes__default["default"].bool,
2337
- portal: PropTypes__default["default"].any,
2338
- previousButtonProps: PropTypes__default["default"].any,
2339
- nextButtonProps: PropTypes__default["default"].any,
2340
- closeButtonProps: PropTypes__default["default"].any
2341
- };
2342
- return Pointout;
2343
- }(React__default["default"].Component));
2344
-
2345
1790
  /**
2346
1791
  * A querySelectorAll that returns a normal array rather than live node list.
2347
1792
  *
@@ -2515,27 +1960,6 @@ var Toast = /** @class */ (function (_super) {
2515
1960
  show: false,
2516
1961
  dismissible: true
2517
1962
  };
2518
- Toast.propTypes = {
2519
- // the ui to be added as the message of the toast
2520
- children: PropTypes__default["default"].node.isRequired,
2521
- // "confirmation", "caution", or "action-needed"
2522
- type: PropTypes__default["default"].string.isRequired,
2523
- // function to be exectued when toast is dismissed
2524
- onDismiss: PropTypes__default["default"].func,
2525
- // text to be added as the aria-label of the "x" dismiss button (default: "Dismiss")
2526
- dismissText: PropTypes__default["default"].string,
2527
- // an optional ref function to get a handle on the toast element
2528
- toastRef: PropTypes__default["default"].oneOfType([
2529
- PropTypes__default["default"].func,
2530
- PropTypes__default["default"].shape({ current: PropTypes__default["default"].any })
2531
- ]),
2532
- // whether or not to focus the toast
2533
- focus: PropTypes__default["default"].bool,
2534
- // whether or not to show the toast
2535
- show: PropTypes__default["default"].bool,
2536
- // whether or not the toast is dismissible
2537
- dismissible: PropTypes__default["default"].bool
2538
- };
2539
1963
  Toast.displayName = 'Toast';
2540
1964
  return Toast;
2541
1965
  }(React__default["default"].Component));
@@ -2549,20 +1973,10 @@ var Link = function (_a) {
2549
1973
  'Button--thin': thin
2550
1974
  }) }, other), children));
2551
1975
  };
2552
- Link.propTypes = {
2553
- children: PropTypes__default["default"].node,
2554
- className: PropTypes__default["default"].string,
2555
- variant: PropTypes__default["default"].string,
2556
- thin: PropTypes__default["default"].bool,
2557
- linkRef: PropTypes__default["default"].oneOfType([
2558
- PropTypes__default["default"].func,
2559
- PropTypes__default["default"].shape({ current: PropTypes__default["default"].any })
2560
- ])
2561
- };
2562
1976
  Link.displayName = 'Link';
2563
1977
 
2564
1978
  var Loader = React__default["default"].forwardRef(function (_a, ref) {
2565
- var className = _a.className, _b = _a.variant, variant = _b === void 0 ? 'small' : _b, label = _a.label, props = tslib.__rest(_a, ["className", "variant", "label"]);
1979
+ var className = _a.className, label = _a.label, props = tslib.__rest(_a, ["className", "label"]);
2566
1980
  if (label === null || label === void 0 ? void 0 : label.length) {
2567
1981
  props['role'] = 'alert';
2568
1982
  props.children = React__default["default"].createElement(Offscreen, null, label);
@@ -2570,13 +1984,16 @@ var Loader = React__default["default"].forwardRef(function (_a, ref) {
2570
1984
  else {
2571
1985
  props['aria-hidden'] = true;
2572
1986
  }
2573
- return (React__default["default"].createElement("div", tslib.__assign({ ref: ref, className: classNames__default["default"]('Loader', className, variant === 'large' && 'Loader--large', variant === 'small' && 'Loader--small') }, props)));
1987
+ return (React__default["default"].createElement("div", tslib.__assign({ ref: ref, className: classNames__default["default"]('Loader', className) }, props)));
2574
1988
  });
2575
- Loader.propTypes = {
2576
- className: PropTypes__default["default"].string
2577
- };
2578
1989
  Loader.displayName = 'Loader';
2579
1990
 
1991
+ var i = 0;
1992
+ var randomId = function () {
1993
+ var num = Math.floor(Math.random() * 10000) + 1;
1994
+ return "x_".concat(i++, "_").concat(num);
1995
+ };
1996
+
2580
1997
  /**
2581
1998
  * Adds an id to a token list attribute if its not already present in the list
2582
1999
  */
@@ -2710,65 +2127,53 @@ var RadioGroup = React.forwardRef(function (_a, ref) {
2710
2127
  inputs.current = [];
2711
2128
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"](className, { 'Radio--inline': inline }), role: "radiogroup", ref: ref }, other), radioButtons));
2712
2129
  });
2713
- RadioGroup.propTypes = {
2714
- name: PropTypes__default["default"].string,
2715
- radios: PropTypes__default["default"].arrayOf(PropTypes__default["default"].shape({
2716
- value: PropTypes__default["default"].string.isRequired,
2717
- id: PropTypes__default["default"].string.isRequired,
2718
- label: PropTypes__default["default"].string.isRequired,
2719
- labelDescription: PropTypes__default["default"].string
2720
- }).isRequired).isRequired,
2721
- hasLabel: function (props, _propName, componentName) {
2722
- if (!props['aria-label'] && !props['aria-labelledby']) {
2723
- return new Error("".concat(componentName, " must have an \"aria-label\" or \"aria-labelledby\" prop"));
2724
- }
2725
- return null;
2726
- },
2727
- className: PropTypes__default["default"].string,
2728
- defaultValue: PropTypes__default["default"].string,
2729
- onChange: PropTypes__default["default"].func
2730
- };
2731
2130
  RadioGroup.displayName = 'RadioGroup';
2732
2131
 
2733
- var Card = function (_a) {
2734
- var className = _a.className, variant = _a.variant, other = tslib.__rest(_a, ["className", "variant"]);
2735
- return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"](className, {
2736
- 'Card--simple': variant === 'simple',
2737
- Card: !variant
2738
- }) }, other)));
2739
- };
2740
- Card.displayName = 'Card';
2741
- Card.propTypes = {
2742
- className: PropTypes__default["default"].string,
2743
- variant: PropTypes__default["default"].string
2744
- };
2745
-
2746
- var CardHeader = function (_a) {
2747
- var className = _a.className, other = tslib.__rest(_a, ["className"]);
2748
- return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Card__header', className) }, other)));
2749
- };
2750
- CardHeader.displayName = 'CardHeader';
2751
- CardHeader.propTypes = {
2752
- className: PropTypes__default["default"].string
2753
- };
2132
+ var Panel = React.forwardRef(function (_a, ref) {
2133
+ var _b;
2134
+ var children = _a.children, collapsed = _a.collapsed, className = _a.className, heading = _a.heading, _c = _a.padding, padding = _c === void 0 ? true : _c, other = tslib.__rest(_a, ["children", "collapsed", "className", "heading", "padding"]);
2135
+ var headingId = !heading
2136
+ ? undefined
2137
+ : typeof heading === 'object' && 'id' in heading
2138
+ ? heading.id
2139
+ : randomId();
2140
+ var Heading = function () {
2141
+ if (!headingId) {
2142
+ return null;
2143
+ }
2144
+ var HeadingComponent = "h".concat(heading &&
2145
+ typeof heading === 'object' &&
2146
+ 'level' in heading &&
2147
+ !!heading.level
2148
+ ? heading.level
2149
+ : 2);
2150
+ return (React__default["default"].createElement(HeadingComponent, { id: headingId, className: "Panel__Heading" }, heading && typeof heading === 'object' && 'text' in heading
2151
+ ? heading.text
2152
+ : heading));
2153
+ };
2154
+ return (React__default["default"].createElement("section", tslib.__assign({ "aria-labelledby": headingId, className: classNames__default["default"]('Panel', className, (_b = {},
2155
+ _b['Panel--collapsed'] = collapsed,
2156
+ _b['Panel--no-padding'] = !padding,
2157
+ _b)), ref: ref }, other),
2158
+ React__default["default"].createElement(Heading, null),
2159
+ children));
2160
+ });
2161
+ Panel.displayName = 'Panel';
2754
2162
 
2755
- var CardContent = function (_a) {
2756
- var className = _a.className, other = tslib.__rest(_a, ["className"]);
2757
- return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Card__content', className) }, other)));
2758
- };
2759
- CardContent.displayName = 'CardContent';
2760
- CardContent.propTypes = {
2761
- className: PropTypes__default["default"].string
2762
- };
2163
+ var PanelContent = React.forwardRef(function (_a, ref) {
2164
+ var _b;
2165
+ var children = _a.children, className = _a.className, _c = _a.padding, padding = _c === void 0 ? true : _c, otherProps = tslib.__rest(_a, ["children", "className", "padding"]);
2166
+ return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Panel__Content', className, (_b = {},
2167
+ _b['Panel__Content--no-padding'] = !padding,
2168
+ _b)), ref: ref }, otherProps), children));
2169
+ });
2170
+ PanelContent.displayName = 'PanelContent';
2763
2171
 
2764
- var CardFooter = function (_a) {
2765
- var className = _a.className, other = tslib.__rest(_a, ["className"]);
2766
- return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Card__footer', className) }, other)));
2767
- };
2768
- CardFooter.displayName = 'CardFooter';
2769
- CardFooter.propTypes = {
2770
- className: PropTypes__default["default"].string
2771
- };
2172
+ var PanelHeader = React.forwardRef(function (_a, ref) {
2173
+ var children = _a.children, className = _a.className, otherProps = tslib.__rest(_a, ["children", "className"]);
2174
+ return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Panel__Header', className), ref: ref }, otherProps), children));
2175
+ });
2176
+ PanelHeader.displayName = 'PanelHeader';
2772
2177
 
2773
2178
  var RadioCardGroup = function (_a) {
2774
2179
  var name = _a.name, radios = _a.radios, defaultValue = _a.defaultValue, value = _a.value,
@@ -2802,7 +2207,7 @@ var RadioCardGroup = function (_a) {
2802
2207
  var isChecked = currentValue === radioValue;
2803
2208
  var isFocused = focusIndex === index;
2804
2209
  return (React__default["default"].createElement("div", { className: classNames__default["default"]('RadioCard'), key: index },
2805
- React__default["default"].createElement(Card, { variant: "simple", className: classNames__default["default"]('RadioCardGroup__Card RadioCard__overlay', {
2210
+ React__default["default"].createElement(Panel, { className: classNames__default["default"]('RadioCardGroup__Card RadioCard__overlay', {
2806
2211
  'RadioCard__overlay--focused': isFocused,
2807
2212
  'RadioCard__overlay--checked': isChecked,
2808
2213
  'RadioCard__overlay--disabled': disabled
@@ -2817,7 +2222,7 @@ var RadioCardGroup = function (_a) {
2817
2222
  handleChange(radioValue);
2818
2223
  onChange(radio, (_a = inputs.current) === null || _a === void 0 ? void 0 : _a[index]);
2819
2224
  }, disabled: disabled, checked: isChecked }, other)),
2820
- React__default["default"].createElement(CardContent, null,
2225
+ React__default["default"].createElement(PanelContent, null,
2821
2226
  React__default["default"].createElement("div", { className: classNames__default["default"]('RadioCardGroup__Checked') }, isChecked && (React__default["default"].createElement(Icon, { className: classNames__default["default"]('RadioCardGroup__Icon'), type: cardIcon }))),
2822
2227
  React__default["default"].createElement("div", { className: classNames__default["default"]('RadioCardGroup__Base') },
2823
2228
  React__default["default"].createElement("div", { className: classNames__default["default"]('RadioCardGroup__Image') }, cardImg),
@@ -2829,24 +2234,6 @@ var RadioCardGroup = function (_a) {
2829
2234
  inputs.current = [];
2830
2235
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('RadioCardGroup'), role: "radiogroup" }, other), radioButtons));
2831
2236
  };
2832
- RadioCardGroup.propTypes = {
2833
- name: PropTypes__default["default"].string,
2834
- radios: PropTypes__default["default"].arrayOf(PropTypes__default["default"].shape({
2835
- value: PropTypes__default["default"].string.isRequired,
2836
- id: PropTypes__default["default"].string.isRequired,
2837
- label: PropTypes__default["default"].string.isRequired,
2838
- cardImg: PropTypes__default["default"].element.isRequired,
2839
- cardIcon: PropTypes__default["default"].string.isRequired
2840
- })).isRequired,
2841
- hasLabel: function (props, propName, componentName) {
2842
- if (!props['aria-label'] && !props['aria-labelledby']) {
2843
- return new Error("".concat(componentName, " must have an \"aria-label\" or \"aria-labelledby\" prop"));
2844
- }
2845
- },
2846
- className: PropTypes__default["default"].string,
2847
- defaultValue: PropTypes__default["default"].string,
2848
- onChange: PropTypes__default["default"].func
2849
- };
2850
2237
  RadioCardGroup.displayName = 'RadioCardGroup';
2851
2238
 
2852
2239
  var Checkbox = React.forwardRef(function (_a, ref) {
@@ -3002,22 +2389,6 @@ var TextField = /** @class */ (function (_super) {
3002
2389
  requiredText: 'Required',
3003
2390
  multiline: false
3004
2391
  };
3005
- TextField.propTypes = {
3006
- label: PropTypes__default["default"].node.isRequired,
3007
- id: PropTypes__default["default"].string,
3008
- error: PropTypes__default["default"].node,
3009
- defaultValue: PropTypes__default["default"].string,
3010
- value: PropTypes__default["default"].string,
3011
- onChange: PropTypes__default["default"].func,
3012
- fieldRef: PropTypes__default["default"].oneOfType([
3013
- PropTypes__default["default"].func,
3014
- PropTypes__default["default"].shape({ current: PropTypes__default["default"].any })
3015
- ]),
3016
- required: PropTypes__default["default"].bool,
3017
- requiredText: PropTypes__default["default"].string,
3018
- multiline: PropTypes__default["default"].bool,
3019
- 'aria-describedby': PropTypes__default["default"].string
3020
- };
3021
2392
  return TextField;
3022
2393
  }(React__default["default"].Component));
3023
2394
 
@@ -3059,13 +2430,6 @@ var Code = function (_a) {
3059
2430
  }), tabIndex: scrollableRegion ? 0 : undefined }), children));
3060
2431
  };
3061
2432
  Code.displayName = 'Code';
3062
- Code.propTypes = {
3063
- children: PropTypes__default["default"].string.isRequired,
3064
- language: PropTypes__default["default"].oneOf(['javascript', 'css', 'html', 'yaml']),
3065
- className: PropTypes__default["default"].string,
3066
- tabIndex: PropTypes__default["default"].number,
3067
- scrollable: PropTypes__default["default"].bool
3068
- };
3069
2433
 
3070
2434
  function AxeLoader() {
3071
2435
  return (React__default["default"].createElement("svg", { version: "1.1", xmlns: "http://www.w3.org/2000/svg", x: "0", y: "0", viewBox: "0 0 800 800" },
@@ -3096,7 +2460,7 @@ function useSharedRef(ref) {
3096
2460
  }
3097
2461
 
3098
2462
  var LoaderOverlay = React.forwardRef(function (_a, ref) {
3099
- var className = _a.className, variant = _a.variant, label = _a.label, children = _a.children, focusOnInitialRender = _a.focusOnInitialRender, _b = _a.focusTrap, focusTrap = _b === void 0 ? false : _b, other = tslib.__rest(_a, ["className", "variant", "label", "children", "focusOnInitialRender", "focusTrap"]);
2463
+ var className = _a.className, label = _a.label, children = _a.children, focusOnInitialRender = _a.focusOnInitialRender, _b = _a.focusTrap, focusTrap = _b === void 0 ? false : _b, other = tslib.__rest(_a, ["className", "label", "children", "focusOnInitialRender", "focusTrap"]);
3100
2464
  var overlayRef = useSharedRef(ref);
3101
2465
  React.useEffect(function () {
3102
2466
  var isolator = overlayRef.current
@@ -3127,33 +2491,19 @@ var LoaderOverlay = React.forwardRef(function (_a, ref) {
3127
2491
  }
3128
2492
  : {};
3129
2493
  return (React__default["default"].createElement(Wrapper, tslib.__assign({}, wrapperProps),
3130
- React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Loader__overlay', className, variant === 'large'
3131
- ? 'Loader__overlay--large'
3132
- : variant === 'small'
3133
- ? 'Loader__overlay--small'
3134
- : ''), ref: overlayRef, tabIndex: -1 }, other),
2494
+ React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Loader__overlay', className), ref: overlayRef, tabIndex: -1 }, other),
3135
2495
  React__default["default"].createElement("div", { className: "Loader__overlay__loader" },
3136
- React__default["default"].createElement(Loader, { variant: variant }),
2496
+ React__default["default"].createElement(Loader, null),
3137
2497
  React__default["default"].createElement(AxeLoader, null)),
3138
2498
  label ? (React__default["default"].createElement("span", { className: "Loader__overlay__label" }, label)) : null,
3139
2499
  children)));
3140
2500
  });
3141
- LoaderOverlay.propTypes = {
3142
- className: PropTypes__default["default"].string,
3143
- variant: PropTypes__default["default"].oneOf(['large', 'small']),
3144
- label: PropTypes__default["default"].string,
3145
- focusOnInitialRender: PropTypes__default["default"].bool,
3146
- children: PropTypes__default["default"].node
3147
- };
3148
2501
  LoaderOverlay.displayName = 'LoaderOverlay';
3149
2502
 
3150
2503
  var Line = function (_a) {
3151
2504
  var className = _a.className, other = tslib.__rest(_a, ["className"]);
3152
2505
  return (React__default["default"].createElement("hr", tslib.__assign({ className: classNames__default["default"]('Line', className) }, other)));
3153
2506
  };
3154
- Line.propTypes = {
3155
- className: PropTypes__default["default"].string
3156
- };
3157
2507
  Line.displayName = 'Line';
3158
2508
 
3159
2509
  var TagLabel = function (_a) {
@@ -3161,19 +2511,11 @@ var TagLabel = function (_a) {
3161
2511
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Tag__label', className) }, other), children));
3162
2512
  };
3163
2513
  TagLabel.displayName = 'TagLabel';
3164
- TagLabel.propTypes = {
3165
- children: PropTypes__default["default"].node.isRequired,
3166
- className: PropTypes__default["default"].string
3167
- };
3168
2514
  var Tag = function (_a) {
3169
2515
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3170
2516
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Tag', className) }, other), children));
3171
2517
  };
3172
2518
  Tag.displayName = 'Tag';
3173
- Tag.propTypes = {
3174
- children: PropTypes__default["default"].node.isRequired,
3175
- className: PropTypes__default["default"].string
3176
- };
3177
2519
 
3178
2520
  var TagButton = React__default["default"].forwardRef(function (_a, ref) {
3179
2521
  var label = _a.label, value = _a.value, icon = _a.icon, className = _a.className, rest = tslib.__rest(_a, ["label", "value", "icon", "className"]);
@@ -3189,41 +2531,24 @@ var Table = function (_a) {
3189
2531
  return (React__default["default"].createElement("table", tslib.__assign({ className: classNames__default["default"]('Table', variant === 'border' && 'Table--border', className) }, other), children));
3190
2532
  };
3191
2533
  Table.displayName = 'Table';
3192
- Table.propTypes = {
3193
- children: PropTypes__default["default"].node.isRequired,
3194
- className: PropTypes__default["default"].string,
3195
- variant: PropTypes__default["default"].string
3196
- };
3197
2534
 
3198
2535
  var TableBody = function (_a) {
3199
2536
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3200
2537
  return (React__default["default"].createElement("tbody", tslib.__assign({ className: classNames__default["default"]('TableBody', className) }, other), children));
3201
2538
  };
3202
2539
  TableBody.displayName = 'TableBody';
3203
- TableBody.propTypes = {
3204
- children: PropTypes__default["default"].node.isRequired,
3205
- className: PropTypes__default["default"].string
3206
- };
3207
2540
 
3208
2541
  var TableCell = function (_a) {
3209
2542
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3210
2543
  return (React__default["default"].createElement("td", tslib.__assign({ className: classNames__default["default"]('TableCell', className) }, other), children));
3211
2544
  };
3212
2545
  TableCell.displayName = 'TableCell';
3213
- TableCell.propTypes = {
3214
- children: PropTypes__default["default"].node.isRequired,
3215
- className: PropTypes__default["default"].string
3216
- };
3217
2546
 
3218
2547
  var TableHead = function (_a) {
3219
2548
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3220
2549
  return (React__default["default"].createElement("thead", tslib.__assign({ className: classNames__default["default"]('TableHead', className) }, other), children));
3221
2550
  };
3222
2551
  TableHead.displayName = 'TableHead';
3223
- TableHead.propTypes = {
3224
- children: PropTypes__default["default"].node.isRequired,
3225
- className: PropTypes__default["default"].string
3226
- };
3227
2552
 
3228
2553
  var TableHeader = function (_a) {
3229
2554
  var children = _a.children, sortDirection = _a.sortDirection, onSort = _a.onSort, className = _a.className, _b = _a.sortAscendingAnnouncement, sortAscendingAnnouncement = _b === void 0 ? 'sorted ascending' : _b, _c = _a.sortDescendingAnnouncement, sortDescendingAnnouncement = _c === void 0 ? 'sorted descending' : _c, other = tslib.__rest(_a, ["children", "sortDirection", "onSort", "className", "sortAscendingAnnouncement", "sortDescendingAnnouncement"]);
@@ -3245,45 +2570,24 @@ var TableHeader = function (_a) {
3245
2570
  React__default["default"].createElement("span", { role: "status", "aria-live": "polite" }, announcement)))) : (children)));
3246
2571
  };
3247
2572
  TableHeader.displayName = 'TableHeader';
3248
- TableHeader.propTypes = {
3249
- children: PropTypes__default["default"].node.isRequired,
3250
- sortDirection: PropTypes__default["default"].string,
3251
- onSort: PropTypes__default["default"].func,
3252
- className: PropTypes__default["default"].string,
3253
- sortAscendingAnnouncement: PropTypes__default["default"].string,
3254
- sortDescendingAnnouncement: PropTypes__default["default"].string
3255
- };
3256
2573
 
3257
2574
  var TableRow = function (_a) {
3258
2575
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3259
2576
  return (React__default["default"].createElement("tr", tslib.__assign({ className: classNames__default["default"]('TableRow', className) }, other), children));
3260
2577
  };
3261
2578
  TableRow.displayName = 'TableRow';
3262
- TableRow.propTypes = {
3263
- children: PropTypes__default["default"].node.isRequired,
3264
- className: PropTypes__default["default"].string
3265
- };
3266
2579
 
3267
2580
  var TableFooter = function (_a) {
3268
2581
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3269
2582
  return (React__default["default"].createElement("tfoot", tslib.__assign({ className: classNames__default["default"]('TableFooter', className) }, other), children));
3270
2583
  };
3271
2584
  TableFooter.displayName = 'TableFooter';
3272
- TableFooter.propTypes = {
3273
- children: PropTypes__default["default"].node.isRequired,
3274
- className: PropTypes__default["default"].string
3275
- };
3276
2585
 
3277
2586
  var Tab = React__default["default"].forwardRef(function (_a, ref) {
3278
2587
  var children = _a.children, propId = _a.id; _a.target; var other = tslib.__rest(_a, ["children", "id", "target"]);
3279
2588
  return (React__default["default"].createElement("li", tslib.__assign({ id: propId, ref: ref, role: "tab" }, other), children));
3280
2589
  });
3281
2590
  Tab.displayName = 'Tab';
3282
- Tab.propTypes = {
3283
- target: PropTypes__default["default"].any.isRequired,
3284
- id: PropTypes__default["default"].string,
3285
- children: PropTypes__default["default"].node
3286
- };
3287
2591
 
3288
2592
  /**
3289
2593
  * Hook to be used similarly to the React.Component#componentDidMount.
@@ -3399,15 +2703,6 @@ var Tabs = function (_a) {
3399
2703
  React__default["default"].createElement("ul", tslib.__assign({ role: "tablist", className: "Tablist" }, labelProp, { onKeyDown: handleKeyDown }), tabComponents)));
3400
2704
  };
3401
2705
  Tabs.displayName = 'Tabs';
3402
- Tabs.propTypes = {
3403
- children: PropTypes__default["default"].node.isRequired,
3404
- 'aria-label': PropTypes__default["default"].string,
3405
- 'aria-labelledby': PropTypes__default["default"].string,
3406
- initialActiveIndex: PropTypes__default["default"].number,
3407
- thin: PropTypes__default["default"].bool,
3408
- orientation: PropTypes__default["default"].string,
3409
- className: PropTypes__default["default"].string
3410
- };
3411
2706
 
3412
2707
  var TabPanel = React.forwardRef(function (_a, ref) {
3413
2708
  var children = _a.children, propId = _a.id, className = _a.className, other = tslib.__rest(_a, ["children", "id", "className"]);
@@ -3415,16 +2710,7 @@ var TabPanel = React.forwardRef(function (_a, ref) {
3415
2710
  return (React__default["default"].createElement("div", tslib.__assign({ role: "tabpanel", className: classNames__default["default"]('TabPanel', className), id: id, ref: ref }, other), children));
3416
2711
  });
3417
2712
  TabPanel.displayName = 'TabPanel';
3418
- TabPanel.propTypes = {
3419
- id: PropTypes__default["default"].string,
3420
- children: PropTypes__default["default"].node,
3421
- className: PropTypes__default["default"].string
3422
- };
3423
2713
 
3424
- var commonPropTypes = {
3425
- children: PropTypes__default["default"].node.isRequired,
3426
- className: PropTypes__default["default"].string
3427
- };
3428
2714
  var DescriptionList = function (_a) {
3429
2715
  var children = _a.children, className = _a.className, _b = _a.collapsed, collapsed = _b === void 0 ? false : _b, other = tslib.__rest(_a, ["children", "className", "collapsed"]);
3430
2716
  return (React__default["default"].createElement("dl", tslib.__assign({ className: classNames__default["default"]('DescriptionList', className, {
@@ -3432,25 +2718,21 @@ var DescriptionList = function (_a) {
3432
2718
  }) }, other), children));
3433
2719
  };
3434
2720
  DescriptionList.displayName = 'DescriptionList';
3435
- DescriptionList.propTypes = commonPropTypes;
3436
2721
  var DescriptionListItem = function (_a) {
3437
2722
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3438
2723
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('DescriptionList__item', className) }, other), children));
3439
2724
  };
3440
2725
  DescriptionListItem.displayName = 'DescriptionListItem';
3441
- DescriptionListItem.propTypes = commonPropTypes;
3442
2726
  var DescriptionTerm = function (_a) {
3443
2727
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3444
2728
  return (React__default["default"].createElement("dt", tslib.__assign({ className: classNames__default["default"]('DescriptionList__term', className) }, other), children));
3445
2729
  };
3446
2730
  DescriptionTerm.displayName = 'DescriptionTerm';
3447
- DescriptionTerm.propTypes = commonPropTypes;
3448
2731
  var DescriptionDetails = function (_a) {
3449
2732
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3450
2733
  return (React__default["default"].createElement("dd", tslib.__assign({ className: classNames__default["default"]('DescriptionList__details', className) }, other), children));
3451
2734
  };
3452
2735
  DescriptionDetails.displayName = 'DescriptionDetails';
3453
- DescriptionDetails.propTypes = commonPropTypes;
3454
2736
 
3455
2737
  var isTooltipProps = function (props) {
3456
2738
  return !!props.tooltip;
@@ -3482,98 +2764,11 @@ var Step = function (props) {
3482
2764
  children ? (React__default["default"].createElement("div", { className: "Stepper__step-label" }, children)) : null)))));
3483
2765
  };
3484
2766
  Step.displayName = 'Step';
3485
- Step.propTypes = {
3486
- children: PropTypes__default["default"].node,
3487
- tooltip: PropTypes__default["default"].node,
3488
- tooltipText: PropTypes__default["default"].string,
3489
- className: PropTypes__default["default"].string
3490
- };
3491
2767
  var Stepper = function (_a) {
3492
2768
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3493
2769
  return (React__default["default"].createElement("ol", tslib.__assign({ className: classNames__default["default"]('Stepper', className) }, other), children));
3494
2770
  };
3495
2771
  Stepper.displayName = 'Stepper';
3496
- Stepper.propTypes = {
3497
- children: PropTypes__default["default"].node.isRequired,
3498
- className: PropTypes__default["default"].string
3499
- };
3500
-
3501
- var Panel = React.forwardRef(function (_a, ref) {
3502
- var _b;
3503
- var children = _a.children, collapsed = _a.collapsed, className = _a.className, heading = _a.heading, _c = _a.padding, padding = _c === void 0 ? true : _c, other = tslib.__rest(_a, ["children", "collapsed", "className", "heading", "padding"]);
3504
- var headingId = !heading
3505
- ? undefined
3506
- : typeof heading === 'object' && 'id' in heading
3507
- ? heading.id
3508
- : randomId();
3509
- var Heading = function () {
3510
- if (!headingId) {
3511
- return null;
3512
- }
3513
- var HeadingComponent = "h".concat(heading &&
3514
- typeof heading === 'object' &&
3515
- 'level' in heading &&
3516
- !!heading.level
3517
- ? heading.level
3518
- : 2);
3519
- return (React__default["default"].createElement(HeadingComponent, { id: headingId, className: "Panel__Heading" }, heading && typeof heading === 'object' && 'text' in heading
3520
- ? heading.text
3521
- : heading));
3522
- };
3523
- return (React__default["default"].createElement("section", tslib.__assign({ "aria-labelledby": headingId, className: classNames__default["default"]('Panel', className, (_b = {},
3524
- _b['Panel--collapsed'] = collapsed,
3525
- _b['Panel--no-padding'] = !padding,
3526
- _b)), ref: ref }, other),
3527
- React__default["default"].createElement(Heading, null),
3528
- children));
3529
- });
3530
- Panel.displayName = 'Panel';
3531
- Panel.propTypes = {
3532
- children: PropTypes__default["default"].node.isRequired,
3533
- // @ts-expect-error
3534
- heading: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].node]),
3535
- className: PropTypes__default["default"].string,
3536
- padding: PropTypes__default["default"].bool,
3537
- collapsed: PropTypes__default["default"].bool
3538
- };
3539
-
3540
- var PanelContent = React.forwardRef(function (_a, ref) {
3541
- var _b;
3542
- var children = _a.children, className = _a.className, _c = _a.padding, padding = _c === void 0 ? true : _c, otherProps = tslib.__rest(_a, ["children", "className", "padding"]);
3543
- return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Panel__Content', className, (_b = {},
3544
- _b['Panel__Content--no-padding'] = !padding,
3545
- _b)), ref: ref }, otherProps), children));
3546
- });
3547
- PanelContent.displayName = 'PanelContent';
3548
- PanelContent.propTypes = {
3549
- children: PropTypes__default["default"].node.isRequired,
3550
- className: PropTypes__default["default"].string,
3551
- padding: PropTypes__default["default"].bool
3552
- };
3553
-
3554
- var PanelHeader = React.forwardRef(function (_a, ref) {
3555
- var children = _a.children, className = _a.className, otherProps = tslib.__rest(_a, ["children", "className"]);
3556
- return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Panel__Header', className), ref: ref }, otherProps), children));
3557
- });
3558
- PanelHeader.displayName = 'PanelHeader';
3559
- PanelHeader.propTypes = {
3560
- children: PropTypes__default["default"].node.isRequired,
3561
- className: PropTypes__default["default"].string
3562
- };
3563
-
3564
- var IssuePanel = function (_a) {
3565
- var className = _a.className, _b = _a.title, title = _b === void 0 ? '' : _b, actions = _a.actions, children = _a.children;
3566
- return (React__default["default"].createElement("div", { className: classNames__default["default"]('IssuePanel', className) },
3567
- React__default["default"].createElement("div", { className: "IssuePanel__Header" },
3568
- title && React__default["default"].createElement("div", { className: "IssuePanel__Header-title" }, title),
3569
- actions && (React__default["default"].createElement("div", { className: "IssuePanel__Header-actions" }, actions))),
3570
- React__default["default"].createElement("div", { className: "IssuePanel__Content" }, children)));
3571
- };
3572
- IssuePanel.displayName = 'IssuePanel';
3573
- IssuePanel.propTypes = {
3574
- children: PropTypes__default["default"].node.isRequired,
3575
- className: PropTypes__default["default"].string
3576
- };
3577
2772
 
3578
2773
  var ProgressBar = React.forwardRef(function (_a, ref) {
3579
2774
  var _b = _a.progress, progress = _b === void 0 ? 0 : _b, _c = _a.progressMax, progressMax = _c === void 0 ? 100 : _c, _d = _a.progressMin, progressMin = _d === void 0 ? 0 : _d, props = tslib.__rest(_a, ["progress", "progressMax", "progressMin"]);
@@ -3588,19 +2783,11 @@ var Address = function (_a) {
3588
2783
  return (React__default["default"].createElement("address", tslib.__assign({ className: classNames__default["default"]('Address', className) }, other), children));
3589
2784
  };
3590
2785
  Address.displayName = 'Address';
3591
- Address.propTypes = {
3592
- children: PropTypes__default["default"].node.isRequired,
3593
- className: PropTypes__default["default"].string
3594
- };
3595
2786
  var AddressLine = function (_a) {
3596
2787
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3597
2788
  return children ? (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Address__line', className) }, other), children)) : null;
3598
2789
  };
3599
2790
  AddressLine.displayName = 'AddressLine';
3600
- AddressLine.propTypes = {
3601
- children: PropTypes__default["default"].node,
3602
- className: PropTypes__default["default"].string
3603
- };
3604
2791
  var AddressCityStateZip = function (_a) {
3605
2792
  var city = _a.city, state = _a.state, zip = _a.zip, className = _a.className, other = tslib.__rest(_a, ["city", "state", "zip", "className"]);
3606
2793
  return city || state || zip ? (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Address__city-state-zip', className) }, other), [[city, state].filter(Boolean).join(', '), zip]
@@ -3608,22 +2795,6 @@ var AddressCityStateZip = function (_a) {
3608
2795
  .join(' '))) : null;
3609
2796
  };
3610
2797
  AddressCityStateZip.displayName = 'AddressCityStateZip';
3611
- AddressCityStateZip.propTypes = {
3612
- city: PropTypes__default["default"].node,
3613
- state: PropTypes__default["default"].node,
3614
- zip: PropTypes__default["default"].node,
3615
- className: PropTypes__default["default"].string
3616
- };
3617
-
3618
- /**
3619
- * This prop type is meant to ensure that a prop can actually be rendered as content.
3620
- * It should match the ContentNode type in types.ts
3621
- */
3622
- var contentNode = PropTypes__default["default"].oneOfType([
3623
- PropTypes__default["default"].string,
3624
- PropTypes__default["default"].number,
3625
- PropTypes__default["default"].element
3626
- ]);
3627
2798
 
3628
2799
  var Pagination = React__default["default"].forwardRef(function (_a, ref) {
3629
2800
  var totalItems = _a.totalItems, _b = _a.itemsPerPage, itemsPerPage = _b === void 0 ? 10 : _b, _c = _a.currentPage, currentPage = _c === void 0 ? 1 : _c, statusLabel = _a.statusLabel, _d = _a.firstPageLabel, firstPageLabel = _d === void 0 ? 'First page' : _d, _e = _a.previousPageLabel, previousPageLabel = _e === void 0 ? 'Previous page' : _e, _f = _a.nextPageLabel, nextPageLabel = _f === void 0 ? 'Next page' : _f, _g = _a.lastPageLabel, lastPageLabel = _g === void 0 ? 'Last page' : _g, _h = _a.tooltipPlacement, tooltipPlacement = _h === void 0 ? 'bottom' : _h, onNextPageClick = _a.onNextPageClick, onPreviousPageClick = _a.onPreviousPageClick, onFirstPageClick = _a.onFirstPageClick, onLastPageClick = _a.onLastPageClick, className = _a.className, _j = _a.thin, thin = _j === void 0 ? false : _j, other = tslib.__rest(_a, ["totalItems", "itemsPerPage", "currentPage", "statusLabel", "firstPageLabel", "previousPageLabel", "nextPageLabel", "lastPageLabel", "tooltipPlacement", "onNextPageClick", "onPreviousPageClick", "onFirstPageClick", "onLastPageClick", "className", "thin"]);
@@ -3654,24 +2825,6 @@ var Pagination = React__default["default"].forwardRef(function (_a, ref) {
3654
2825
  React__default["default"].createElement(IconButton, { icon: "chevron-double-right", tooltipPlacement: tooltipPlacement, label: lastPageLabel, "aria-disabled": isLastPage, onClick: isLastPage ? undefined : onLastPageClick })))));
3655
2826
  });
3656
2827
  Pagination.displayName = 'Pagination';
3657
- Pagination.propTypes = {
3658
- totalItems: PropTypes__default["default"].number.isRequired,
3659
- itemsPerPage: PropTypes__default["default"].number,
3660
- currentPage: PropTypes__default["default"].number,
3661
- statusLabel: PropTypes__default["default"].element,
3662
- firstPageLabel: contentNode,
3663
- previousPageLabel: contentNode,
3664
- nextPageLabel: contentNode,
3665
- lastPageLabel: contentNode,
3666
- onNextPageClick: PropTypes__default["default"].func,
3667
- onPreviousPageClick: PropTypes__default["default"].func,
3668
- onFirstPageClick: PropTypes__default["default"].func,
3669
- onLastPageClick: PropTypes__default["default"].func,
3670
- // @ts-expect-error
3671
- tooltipPlacement: PropTypes__default["default"].string,
3672
- className: PropTypes__default["default"].string,
3673
- thin: PropTypes__default["default"].bool
3674
- };
3675
2828
 
3676
2829
  var usePagination = function (_a) {
3677
2830
  var totalItems = _a.totalItems, _b = _a.initialPageSize, initialPageSize = _b === void 0 ? 10 : _b, _c = _a.initialPage, initialPage = _c === void 0 ? 1 : _c;
@@ -3707,11 +2860,6 @@ var FieldWrap = React__default["default"].forwardRef(function (_a, ref) {
3707
2860
  return (React__default["default"].createElement(Component, tslib.__assign({ ref: ref, className: classNames__default["default"]('Panel', className) }, props), children));
3708
2861
  });
3709
2862
  FieldWrap.displayName = 'FieldWrap';
3710
- FieldWrap.propTypes = {
3711
- children: PropTypes__default["default"].node.isRequired,
3712
- className: PropTypes__default["default"].string,
3713
- as: PropTypes__default["default"].string
3714
- };
3715
2863
 
3716
2864
  var Breadcrumb = React.forwardRef(function (_a, ref) {
3717
2865
  var _b = _a.separator, separator = _b === void 0 ? '/' : _b, className = _a.className, children = _a.children, props = tslib.__rest(_a, ["separator", "className", "children"]);
@@ -3737,9 +2885,6 @@ function (_a, ref) {
3737
2885
  var className = _a.className, children = _a.children, props = tslib.__rest(_a, ["className", "children"]);
3738
2886
  return (React__default["default"].createElement("span", tslib.__assign({ className: classNames__default["default"]('Breadcrumb__Item', className), ref: ref, "aria-current": "location" }, props), children));
3739
2887
  });
3740
- BreadcrumbItem.propTypes = {
3741
- className: PropTypes__default["default"].string
3742
- };
3743
2888
 
3744
2889
  var BreadcrumbLink = React.forwardRef(function (_a, ref) {
3745
2890
  var className = _a.className, _b = _a.as, ElementType = _b === void 0 ? 'a' : _b, children = _a.children, props = tslib.__rest(_a, ["className", "as", "children"]);
@@ -3918,27 +3063,18 @@ var ColumnHeader = React.forwardRef(function (_a, ref) {
3918
3063
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('TwoColumnPanel__Header', className) }, props, { ref: ref }), children));
3919
3064
  });
3920
3065
  ColumnHeader.displayName = 'ColumnHeader';
3921
- ColumnHeader.propTypes = {
3922
- className: PropTypes__default["default"].string
3923
- };
3924
3066
 
3925
3067
  var ColumnGroupHeader = React.forwardRef(function (_a, ref) {
3926
3068
  var className = _a.className, children = _a.children, props = tslib.__rest(_a, ["className", "children"]);
3927
3069
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('TwoColumnPanel__GroupHeader', className) }, props, { ref: ref }), children));
3928
3070
  });
3929
3071
  ColumnGroupHeader.displayName = 'ColumnGroupHeader';
3930
- ColumnGroupHeader.propTypes = {
3931
- className: PropTypes__default["default"].string
3932
- };
3933
3072
 
3934
3073
  var ColumnList = React.forwardRef(function (_a, ref) {
3935
3074
  var className = _a.className, children = _a.children, props = tslib.__rest(_a, ["className", "children"]);
3936
3075
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('TwoColumnPanel__List', className) }, props, { ref: ref }), children));
3937
3076
  });
3938
3077
  ColumnList.displayName = 'ColumnList';
3939
- ColumnList.propTypes = {
3940
- className: PropTypes__default["default"].string
3941
- };
3942
3078
 
3943
3079
  var iconTypeMap = {
3944
3080
  caution: 'caution',
@@ -3957,18 +3093,6 @@ var Notice = React.forwardRef(function (_a, ref) {
3957
3093
  children && React__default["default"].createElement("div", { className: "Notice__content" }, children)));
3958
3094
  });
3959
3095
  Notice.displayName = 'Notice';
3960
- Notice.propTypes = {
3961
- children: PropTypes__default["default"].node,
3962
- type: PropTypes__default["default"].oneOf(['caution', 'info', 'danger']),
3963
- // @ts-expect-error
3964
- title: PropTypes__default["default"].oneOfType([
3965
- PropTypes__default["default"].string,
3966
- PropTypes__default["default"].number,
3967
- PropTypes__default["default"].element
3968
- ]),
3969
- // @ts-expect-error
3970
- icon: PropTypes__default["default"].string
3971
- };
3972
3096
 
3973
3097
  /* istanbul ignore next */
3974
3098
  var ListboxContext = React.createContext({
@@ -4797,10 +3921,6 @@ var ThemeProvider = function (_a) {
4797
3921
  function useThemeContext() {
4798
3922
  return React.useContext(ThemeContext);
4799
3923
  }
4800
- ThemeProvider.propTypes = {
4801
- children: PropTypes__default["default"].any,
4802
- initialTheme: PropTypes__default["default"].string
4803
- };
4804
3924
 
4805
3925
  exports.Accordion = Accordion;
4806
3926
  exports.AccordionContent = AccordionContent;
@@ -4816,10 +3936,6 @@ exports.Breadcrumb = Breadcrumb;
4816
3936
  exports.BreadcrumbItem = BreadcrumbItem;
4817
3937
  exports.BreadcrumbLink = BreadcrumbLink;
4818
3938
  exports.Button = Button;
4819
- exports.Card = Card;
4820
- exports.CardContent = CardContent;
4821
- exports.CardFooter = CardFooter;
4822
- exports.CardHeader = CardHeader;
4823
3939
  exports.Checkbox = Checkbox;
4824
3940
  exports.ClickOutsideListener = ClickOutsideListener;
4825
3941
  exports.Code = Code;
@@ -4842,7 +3958,6 @@ exports.ExpandCollapsePanel = ExpandCollapsePanel;
4842
3958
  exports.FieldWrap = FieldWrap;
4843
3959
  exports.Icon = Icon;
4844
3960
  exports.IconButton = IconButton;
4845
- exports.IssuePanel = IssuePanel;
4846
3961
  exports.Layout = Layout;
4847
3962
  exports.Line = Line;
4848
3963
  exports.Link = Link;
@@ -4871,7 +3986,6 @@ exports.Panel = Panel;
4871
3986
  exports.PanelContent = PanelContent;
4872
3987
  exports.PanelHeader = PanelHeader;
4873
3988
  exports.PanelTrigger = PanelTrigger$1;
4874
- exports.Pointout = Pointout;
4875
3989
  exports.Popover = Popover;
4876
3990
  exports.ProgressBar = ProgressBar;
4877
3991
  exports.RadioCardGroup = RadioCardGroup;