@deque/cauldron-react 5.12.0-canary.ec511885 → 5.13.0-canary.301c546b

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 (56) 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/Card/Card.d.ts +0 -5
  6. package/lib/components/Card/CardContent.d.ts +3 -5
  7. package/lib/components/Card/CardFooter.d.ts +3 -5
  8. package/lib/components/Card/CardHeader.d.ts +3 -5
  9. package/lib/components/ClickOutsideListener/index.d.ts +0 -8
  10. package/lib/components/Combobox/Combobox.d.ts +1 -0
  11. package/lib/components/DescriptionList/index.d.ts +0 -17
  12. package/lib/components/Dialog/index.d.ts +6 -25
  13. package/lib/components/ExpandCollapsePanel/ExpandCollapsePanel.d.ts +0 -8
  14. package/lib/components/ExpandCollapsePanel/PanelTrigger.d.ts +0 -10
  15. package/lib/components/IssuePanel/index.d.ts +0 -5
  16. package/lib/components/Layout/index.d.ts +0 -7
  17. package/lib/components/Line/index.d.ts +4 -5
  18. package/lib/components/Link/index.d.ts +0 -10
  19. package/lib/components/Main/index.d.ts +0 -7
  20. package/lib/components/MenuBar/index.d.ts +0 -7
  21. package/lib/components/MenuItem/index.d.ts +0 -10
  22. package/lib/components/Modal/index.d.ts +0 -10
  23. package/lib/components/NavBar/NavBar.d.ts +0 -8
  24. package/lib/components/NavBar/NavItem.d.ts +0 -4
  25. package/lib/components/OptionsMenu/OptionsMenu.d.ts +1 -13
  26. package/lib/components/OptionsMenu/OptionsMenuList.d.ts +0 -12
  27. package/lib/components/OptionsMenu/OptionsMenuWrapper.d.ts +1 -9
  28. package/lib/components/Pointout/index.d.ts +0 -21
  29. package/lib/components/RadioCardGroup/index.d.ts +0 -17
  30. package/lib/components/Scrim/index.d.ts +0 -4
  31. package/lib/components/SideBar/SideBar.d.ts +0 -7
  32. package/lib/components/SideBar/SideBarItem.d.ts +1 -0
  33. package/lib/components/SkipLink/index.d.ts +0 -6
  34. package/lib/components/Stepper/index.d.ts +0 -11
  35. package/lib/components/Table/Table.d.ts +0 -6
  36. package/lib/components/Table/TableBody.d.ts +0 -5
  37. package/lib/components/Table/TableCell.d.ts +0 -5
  38. package/lib/components/Table/TableFooter.d.ts +0 -5
  39. package/lib/components/Table/TableHead.d.ts +0 -5
  40. package/lib/components/Table/TableHeader.d.ts +0 -9
  41. package/lib/components/Table/TableRow.d.ts +0 -5
  42. package/lib/components/Tabs/Tabs.d.ts +0 -10
  43. package/lib/components/Tag/index.d.ts +0 -9
  44. package/lib/components/TextField/index.d.ts +0 -16
  45. package/lib/components/Toast/index.d.ts +0 -13
  46. package/lib/components/Tooltip/index.d.ts +9 -22
  47. package/lib/components/TopBar/TopBarMenu.d.ts +0 -5
  48. package/lib/components/TopBar/TopBarTrigger.d.ts +1 -0
  49. package/lib/components/TwoColumnPanel/ColumnGroupHeader.d.ts +3 -2
  50. package/lib/components/TwoColumnPanel/ColumnHeader.d.ts +3 -2
  51. package/lib/components/TwoColumnPanel/ColumnList.d.ts +3 -2
  52. package/lib/components/Workspace/index.d.ts +0 -11
  53. package/lib/contexts/theme.d.ts +1 -8
  54. package/lib/index.js +17 -559
  55. package/package.json +1 -3
  56. package/lib/propTypes.d.ts +0 -6
package/lib/index.js CHANGED
@@ -4,7 +4,6 @@ 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');
@@ -21,7 +20,6 @@ var yaml = require('react-syntax-highlighter/dist/cjs/languages/hljs/yaml');
21
20
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
22
21
 
23
22
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
24
- var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
25
23
  var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
26
24
  var nextId__default = /*#__PURE__*/_interopDefaultLegacy(nextId);
27
25
  var keyname__default = /*#__PURE__*/_interopDefaultLegacy(keyname);
@@ -46,13 +44,6 @@ var Main = /** @class */ (function (_super) {
46
44
  // eslint-disable-next-line @typescript-eslint/no-empty-function
47
45
  mainRef: function () { }
48
46
  };
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
47
  return Main;
57
48
  }(React.Component));
58
49
 
@@ -69,13 +60,6 @@ var Layout = /** @class */ (function (_super) {
69
60
  // eslint-disable-next-line @typescript-eslint/no-empty-function
70
61
  layoutRef: function () { }
71
62
  };
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
63
  return Layout;
80
64
  }(React__default["default"].Component));
81
65
 
@@ -111,22 +95,6 @@ var Workspace = /** @class */ (function (_super) {
111
95
  layoutRef: function () { },
112
96
  noSideBar: false
113
97
  };
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
98
  return Workspace;
131
99
  }(React__default["default"].Component));
132
100
 
@@ -354,12 +322,6 @@ var Icon = React.forwardRef(function (_a, ref) {
354
322
  label && React__default["default"].createElement(Offscreen, null, label),
355
323
  IconSVG && React__default["default"].createElement(IconSVG, null)));
356
324
  });
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
325
  Icon.displayName = 'Icon';
364
326
 
365
327
  var PanelTrigger = function (_a) {
@@ -376,15 +338,6 @@ var PanelTrigger = function (_a) {
376
338
  : children),
377
339
  React__default["default"].createElement(Icon, { type: open ? iconExpanded : iconCollapsed }))));
378
340
  };
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
341
  PanelTrigger.displayName = 'PanelTrigger';
389
342
  var PanelTrigger$1 = React__default["default"].memo(PanelTrigger);
390
343
 
@@ -421,8 +374,7 @@ var ExpandCollapsePanel = /** @class */ (function (_super) {
421
374
  _this.animateOpen = function () {
422
375
  var panel = _this.panel.current;
423
376
  var animationTiming = _this.props.animationTiming;
424
- var prefersReducedMotion = matchMedia('(prefers-reduced-motion: reduce)')
425
- .matches;
377
+ var prefersReducedMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
426
378
  if (!animationTiming || prefersReducedMotion) {
427
379
  _this.setState({ isAnimating: false });
428
380
  return;
@@ -445,8 +397,7 @@ var ExpandCollapsePanel = /** @class */ (function (_super) {
445
397
  _this.animateClose = function () {
446
398
  var panel = _this.panel.current;
447
399
  var animationTiming = _this.props.animationTiming;
448
- var prefersReducedMotion = matchMedia('(prefers-reduced-motion: reduce)')
449
- .matches;
400
+ var prefersReducedMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
450
401
  if (!animationTiming || prefersReducedMotion) {
451
402
  _this.setState({ isAnimating: false });
452
403
  return;
@@ -512,13 +463,6 @@ var ExpandCollapsePanel = /** @class */ (function (_super) {
512
463
  // eslint-disable-next-line @typescript-eslint/no-empty-function
513
464
  onToggle: function () { }
514
465
  };
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
466
  return ExpandCollapsePanel;
523
467
  }(React__default["default"].Component));
524
468
 
@@ -559,20 +503,6 @@ var Accordion = function (_a) {
559
503
  Accordion.displayName = 'Accordion';
560
504
  AccordionContent.displayName = 'AccordionContent';
561
505
  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
506
 
577
507
  var Scrim = /** @class */ (function (_super) {
578
508
  tslib.__extends(Scrim, _super);
@@ -635,9 +565,6 @@ var Scrim = /** @class */ (function (_super) {
635
565
  }
636
566
  return (React__default["default"].createElement("div", { ref: function (el) { return (_this.el = el); }, className: "Scrim ".concat(animationClass) }));
637
567
  };
638
- Scrim.propTypes = {
639
- show: PropTypes__default["default"].bool.isRequired
640
- };
641
568
  return Scrim;
642
569
  }(React__default["default"].Component));
643
570
 
@@ -707,16 +634,6 @@ var MenuItem = /** @class */ (function (_super) {
707
634
  onKeyDown: function () { },
708
635
  autoClickLink: true
709
636
  };
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
637
  return MenuItem;
721
638
  }(React.Component));
722
639
 
@@ -837,12 +754,6 @@ var TopBar$1 = /** @class */ (function (_super) {
837
754
  var _a = this.props, children = _a.children, className = _a.className; _a.thin; _a.hasTrigger; tslib.__rest(_a, ["children", "className", "thin", "hasTrigger"]);
838
755
  return (React__default["default"].createElement("ul", { role: "menubar", className: className }, React.Children.map(children, this.renderChild)));
839
756
  };
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
757
  TopBar.defaultProps = {
847
758
  thin: false,
848
759
  hasTrigger: false
@@ -863,10 +774,6 @@ var TopBarTrigger = function (_a) {
863
774
  return (React__default["default"].createElement(MenuItem, tslib.__assign({ "aria-haspopup": "true", className: classNames__default["default"]('TopBar__menu-trigger', className) }, other), children));
864
775
  };
865
776
  TopBarTrigger.displayName = 'TopBarTrigger';
866
- TopBarTrigger.propTypes = {
867
- children: PropTypes__default["default"].node.isRequired,
868
- className: PropTypes__default["default"].string
869
- };
870
777
 
871
778
  var menuAlignment = function (type) {
872
779
  switch (type) {
@@ -883,11 +790,6 @@ var OptionsMenuWrapper = function (_a) {
883
790
  var className = _a.className, align = _a.align, other = tslib.__rest(_a, ["className", "align"]);
884
791
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('OptionsMenu', menuAlignment(align), className) }, other)));
885
792
  };
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
793
 
892
794
  var ClickOutsideListener = /** @class */ (function (_super) {
893
795
  tslib.__extends(ClickOutsideListener, _super);
@@ -955,13 +857,6 @@ var ClickOutsideListener = /** @class */ (function (_super) {
955
857
  mouseEvent: 'click',
956
858
  touchEvent: 'touchend'
957
859
  };
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
860
  return ClickOutsideListener;
966
861
  }(React__default["default"].Component));
967
862
 
@@ -1085,18 +980,6 @@ var OptionsMenuList = /** @class */ (function (_super) {
1085
980
  // eslint-disable-next-line @typescript-eslint/no-empty-function
1086
981
  onClose: function () { }
1087
982
  };
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
983
  return OptionsMenuList;
1101
984
  }(React__default["default"].Component));
1102
985
 
@@ -1156,19 +1039,6 @@ var OptionsMenu = /** @class */ (function (_super) {
1156
1039
  onSelect: function () { },
1157
1040
  align: 'right'
1158
1041
  };
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
1042
  return OptionsMenu;
1173
1043
  }(React.Component));
1174
1044
 
@@ -1196,11 +1066,6 @@ var OptionsMenuItemComponent = /** @class */ (function (_super) {
1196
1066
  // eslint-disable-next-line @typescript-eslint/no-empty-function
1197
1067
  onSelect: function () { }
1198
1068
  };
1199
- OptionsMenuItemComponent.propTypes = {
1200
- disabled: PropTypes__default["default"].bool,
1201
- className: PropTypes__default["default"].string,
1202
- onSelect: PropTypes__default["default"].func
1203
- };
1204
1069
  return OptionsMenuItemComponent;
1205
1070
  }(React__default["default"].Component));
1206
1071
  var OptionsMenuItem = React__default["default"].forwardRef(function OptionsMenuItem(props, ref) {
@@ -1215,14 +1080,6 @@ function OptionsMenuTriggerComponent(_a) {
1215
1080
  var className = _a.className, triggerRef = _a.triggerRef, other = tslib.__rest(_a, ["className", "triggerRef"]);
1216
1081
  return (React__default["default"].createElement("button", tslib.__assign({ type: "button", "aria-haspopup": "menu", ref: triggerRef }, other, { className: classNames__default["default"]('OptionsMenu__trigger', className) })));
1217
1082
  }
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
1083
  var OptionsMenuTrigger = React__default["default"].forwardRef(function OptionsMenuTrigger(props, ref) {
1227
1084
  return React__default["default"].createElement(OptionsMenuTriggerComponent, tslib.__assign({}, props, { triggerRef: ref }));
1228
1085
  });
@@ -1295,10 +1152,6 @@ var TopBarMenu = /** @class */ (function (_super) {
1295
1152
  // eslint-disable-next-line @typescript-eslint/no-empty-function
1296
1153
  menuItemRef: function () { }
1297
1154
  };
1298
- TopBarMenu.propTypes = {
1299
- id: PropTypes__default["default"].string.isRequired,
1300
- children: PropTypes__default["default"].node.isRequired
1301
- };
1302
1155
  return TopBarMenu;
1303
1156
  }(React__default["default"].Component));
1304
1157
 
@@ -1346,13 +1199,6 @@ var NavBar = function (_a) {
1346
1199
  showNavItems && (React__default["default"].createElement("ul", { onKeyDown: handleKeyDown, id: menuId }, children))));
1347
1200
  };
1348
1201
  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
1202
 
1357
1203
  var NavItem = function (_a) {
1358
1204
  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 +1211,6 @@ var NavItem = function (_a) {
1365
1211
  }) }, additionalProps, other), children));
1366
1212
  };
1367
1213
  NavItem.displayName = 'NavItem';
1368
- NavItem.propTypes = {
1369
- children: PropTypes__default["default"].node.isRequired
1370
- };
1371
1214
 
1372
1215
  /**
1373
1216
  * Selector for NATURALLY focusable elements
@@ -1479,12 +1322,6 @@ var SideBar = /** @class */ (function (_super) {
1479
1322
  className: '',
1480
1323
  show: false
1481
1324
  };
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
1325
  return SideBar;
1489
1326
  }(React.Component));
1490
1327
 
@@ -1504,10 +1341,6 @@ SideBarItem.displayName = 'SideBarItem';
1504
1341
  SideBarItem.defaultProps = {
1505
1342
  autoClickLink: true
1506
1343
  };
1507
- SideBarItem.propTypes = {
1508
- children: PropTypes__default["default"].node.isRequired,
1509
- autoClickLink: PropTypes__default["default"].bool
1510
- };
1511
1344
 
1512
1345
  /**
1513
1346
  * Handles aria-hidden for dialogs.
@@ -1653,19 +1486,6 @@ var Dialog = /** @class */ (function (_super) {
1653
1486
  forceAction: false,
1654
1487
  closeButtonText: 'Close'
1655
1488
  };
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
1489
  return Dialog;
1670
1490
  }(React__default["default"].Component));
1671
1491
  var DialogContent = function (_a) {
@@ -1677,11 +1497,6 @@ var DialogContent = function (_a) {
1677
1497
  }) }, other), children));
1678
1498
  };
1679
1499
  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
1500
  var DialogFooter = function (_a) {
1686
1501
  var children = _a.children, className = _a.className, align = _a.align, other = tslib.__rest(_a, ["children", "className", "align"]);
1687
1502
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Dialog__footer', className, {
@@ -1691,11 +1506,6 @@ var DialogFooter = function (_a) {
1691
1506
  }) }, other), children));
1692
1507
  };
1693
1508
  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
1509
 
1700
1510
  var Alert = function (_a) {
1701
1511
  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 +1585,6 @@ var SkipLink = /** @class */ (function (_super) {
1775
1585
  skipText: 'Skip to',
1776
1586
  targetText: 'Main Content'
1777
1587
  };
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
1588
  return SkipLink;
1790
1589
  }(React__default["default"].Component));
1791
1590
 
@@ -1942,29 +1741,14 @@ function Tooltip(_a) {
1942
1741
  : null));
1943
1742
  }
1944
1743
  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
1744
  var TooltipHead = function (_a) {
1955
1745
  var className = _a.className, other = tslib.__rest(_a, ["className"]);
1956
1746
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('TooltipHead', className) }, other)));
1957
1747
  };
1958
- TooltipHead.propTypes = {
1959
- className: PropTypes__default["default"].string
1960
- };
1961
1748
  var TooltipContent = function (_a) {
1962
1749
  var className = _a.className, other = tslib.__rest(_a, ["className"]);
1963
1750
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('TooltipContent', className) }, other)));
1964
1751
  };
1965
- TooltipContent.propTypes = {
1966
- className: PropTypes__default["default"].string
1967
- };
1968
1752
 
1969
1753
  /**
1970
1754
  * Unfortunately, eslint does not recognize that this Polymorphic component has a displayName set
@@ -2003,20 +1787,6 @@ var IconButton = React.forwardRef(function (_a, ref) {
2003
1787
  disabled && React__default["default"].createElement(Offscreen, null, label)),
2004
1788
  !disabled && (React__default["default"].createElement(Tooltip, { target: internalRef, placement: tooltipPlacement, variant: tooltipVariant, portal: tooltipPortal, association: "aria-labelledby", hideElementOnHidden: true }, label))));
2005
1789
  });
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
1790
  IconButton.displayName = 'IconButton';
2021
1791
 
2022
1792
  var i = 0;
@@ -2313,32 +2083,6 @@ var Pointout = /** @class */ (function (_super) {
2313
2083
  arrowPosition: 'top-left',
2314
2084
  position: 'center'
2315
2085
  };
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
2086
  return Pointout;
2343
2087
  }(React__default["default"].Component));
2344
2088
 
@@ -2515,27 +2259,6 @@ var Toast = /** @class */ (function (_super) {
2515
2259
  show: false,
2516
2260
  dismissible: true
2517
2261
  };
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
2262
  Toast.displayName = 'Toast';
2540
2263
  return Toast;
2541
2264
  }(React__default["default"].Component));
@@ -2549,16 +2272,6 @@ var Link = function (_a) {
2549
2272
  'Button--thin': thin
2550
2273
  }) }, other), children));
2551
2274
  };
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
2275
  Link.displayName = 'Link';
2563
2276
 
2564
2277
  var Loader = React__default["default"].forwardRef(function (_a, ref) {
@@ -2572,9 +2285,6 @@ var Loader = React__default["default"].forwardRef(function (_a, ref) {
2572
2285
  }
2573
2286
  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)));
2574
2287
  });
2575
- Loader.propTypes = {
2576
- className: PropTypes__default["default"].string
2577
- };
2578
2288
  Loader.displayName = 'Loader';
2579
2289
 
2580
2290
  /**
@@ -2710,24 +2420,6 @@ var RadioGroup = React.forwardRef(function (_a, ref) {
2710
2420
  inputs.current = [];
2711
2421
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"](className, { 'Radio--inline': inline }), role: "radiogroup", ref: ref }, other), radioButtons));
2712
2422
  });
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
2423
  RadioGroup.displayName = 'RadioGroup';
2732
2424
 
2733
2425
  var Card = function (_a) {
@@ -2738,37 +2430,24 @@ var Card = function (_a) {
2738
2430
  }) }, other)));
2739
2431
  };
2740
2432
  Card.displayName = 'Card';
2741
- Card.propTypes = {
2742
- className: PropTypes__default["default"].string,
2743
- variant: PropTypes__default["default"].string
2744
- };
2745
2433
 
2746
2434
  var CardHeader = function (_a) {
2747
2435
  var className = _a.className, other = tslib.__rest(_a, ["className"]);
2748
2436
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Card__header', className) }, other)));
2749
2437
  };
2750
2438
  CardHeader.displayName = 'CardHeader';
2751
- CardHeader.propTypes = {
2752
- className: PropTypes__default["default"].string
2753
- };
2754
2439
 
2755
2440
  var CardContent = function (_a) {
2756
2441
  var className = _a.className, other = tslib.__rest(_a, ["className"]);
2757
2442
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Card__content', className) }, other)));
2758
2443
  };
2759
2444
  CardContent.displayName = 'CardContent';
2760
- CardContent.propTypes = {
2761
- className: PropTypes__default["default"].string
2762
- };
2763
2445
 
2764
2446
  var CardFooter = function (_a) {
2765
2447
  var className = _a.className, other = tslib.__rest(_a, ["className"]);
2766
2448
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Card__footer', className) }, other)));
2767
2449
  };
2768
2450
  CardFooter.displayName = 'CardFooter';
2769
- CardFooter.propTypes = {
2770
- className: PropTypes__default["default"].string
2771
- };
2772
2451
 
2773
2452
  var RadioCardGroup = function (_a) {
2774
2453
  var name = _a.name, radios = _a.radios, defaultValue = _a.defaultValue, value = _a.value,
@@ -2829,24 +2508,6 @@ var RadioCardGroup = function (_a) {
2829
2508
  inputs.current = [];
2830
2509
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('RadioCardGroup'), role: "radiogroup" }, other), radioButtons));
2831
2510
  };
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
2511
  RadioCardGroup.displayName = 'RadioCardGroup';
2851
2512
 
2852
2513
  var Checkbox = React.forwardRef(function (_a, ref) {
@@ -3002,22 +2663,6 @@ var TextField = /** @class */ (function (_super) {
3002
2663
  requiredText: 'Required',
3003
2664
  multiline: false
3004
2665
  };
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
2666
  return TextField;
3022
2667
  }(React__default["default"].Component));
3023
2668
 
@@ -3059,13 +2704,6 @@ var Code = function (_a) {
3059
2704
  }), tabIndex: scrollableRegion ? 0 : undefined }), children));
3060
2705
  };
3061
2706
  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
2707
 
3070
2708
  function AxeLoader() {
3071
2709
  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" },
@@ -3138,22 +2776,12 @@ var LoaderOverlay = React.forwardRef(function (_a, ref) {
3138
2776
  label ? (React__default["default"].createElement("span", { className: "Loader__overlay__label" }, label)) : null,
3139
2777
  children)));
3140
2778
  });
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
2779
  LoaderOverlay.displayName = 'LoaderOverlay';
3149
2780
 
3150
2781
  var Line = function (_a) {
3151
2782
  var className = _a.className, other = tslib.__rest(_a, ["className"]);
3152
2783
  return (React__default["default"].createElement("hr", tslib.__assign({ className: classNames__default["default"]('Line', className) }, other)));
3153
2784
  };
3154
- Line.propTypes = {
3155
- className: PropTypes__default["default"].string
3156
- };
3157
2785
  Line.displayName = 'Line';
3158
2786
 
3159
2787
  var TagLabel = function (_a) {
@@ -3161,19 +2789,11 @@ var TagLabel = function (_a) {
3161
2789
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Tag__label', className) }, other), children));
3162
2790
  };
3163
2791
  TagLabel.displayName = 'TagLabel';
3164
- TagLabel.propTypes = {
3165
- children: PropTypes__default["default"].node.isRequired,
3166
- className: PropTypes__default["default"].string
3167
- };
3168
2792
  var Tag = function (_a) {
3169
2793
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3170
2794
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Tag', className) }, other), children));
3171
2795
  };
3172
2796
  Tag.displayName = 'Tag';
3173
- Tag.propTypes = {
3174
- children: PropTypes__default["default"].node.isRequired,
3175
- className: PropTypes__default["default"].string
3176
- };
3177
2797
 
3178
2798
  var TagButton = React__default["default"].forwardRef(function (_a, ref) {
3179
2799
  var label = _a.label, value = _a.value, icon = _a.icon, className = _a.className, rest = tslib.__rest(_a, ["label", "value", "icon", "className"]);
@@ -3189,41 +2809,24 @@ var Table = function (_a) {
3189
2809
  return (React__default["default"].createElement("table", tslib.__assign({ className: classNames__default["default"]('Table', variant === 'border' && 'Table--border', className) }, other), children));
3190
2810
  };
3191
2811
  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
2812
 
3198
2813
  var TableBody = function (_a) {
3199
2814
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3200
2815
  return (React__default["default"].createElement("tbody", tslib.__assign({ className: classNames__default["default"]('TableBody', className) }, other), children));
3201
2816
  };
3202
2817
  TableBody.displayName = 'TableBody';
3203
- TableBody.propTypes = {
3204
- children: PropTypes__default["default"].node.isRequired,
3205
- className: PropTypes__default["default"].string
3206
- };
3207
2818
 
3208
2819
  var TableCell = function (_a) {
3209
2820
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3210
2821
  return (React__default["default"].createElement("td", tslib.__assign({ className: classNames__default["default"]('TableCell', className) }, other), children));
3211
2822
  };
3212
2823
  TableCell.displayName = 'TableCell';
3213
- TableCell.propTypes = {
3214
- children: PropTypes__default["default"].node.isRequired,
3215
- className: PropTypes__default["default"].string
3216
- };
3217
2824
 
3218
2825
  var TableHead = function (_a) {
3219
2826
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3220
2827
  return (React__default["default"].createElement("thead", tslib.__assign({ className: classNames__default["default"]('TableHead', className) }, other), children));
3221
2828
  };
3222
2829
  TableHead.displayName = 'TableHead';
3223
- TableHead.propTypes = {
3224
- children: PropTypes__default["default"].node.isRequired,
3225
- className: PropTypes__default["default"].string
3226
- };
3227
2830
 
3228
2831
  var TableHeader = function (_a) {
3229
2832
  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 +2848,24 @@ var TableHeader = function (_a) {
3245
2848
  React__default["default"].createElement("span", { role: "status", "aria-live": "polite" }, announcement)))) : (children)));
3246
2849
  };
3247
2850
  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
2851
 
3257
2852
  var TableRow = function (_a) {
3258
2853
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3259
2854
  return (React__default["default"].createElement("tr", tslib.__assign({ className: classNames__default["default"]('TableRow', className) }, other), children));
3260
2855
  };
3261
2856
  TableRow.displayName = 'TableRow';
3262
- TableRow.propTypes = {
3263
- children: PropTypes__default["default"].node.isRequired,
3264
- className: PropTypes__default["default"].string
3265
- };
3266
2857
 
3267
2858
  var TableFooter = function (_a) {
3268
2859
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3269
2860
  return (React__default["default"].createElement("tfoot", tslib.__assign({ className: classNames__default["default"]('TableFooter', className) }, other), children));
3270
2861
  };
3271
2862
  TableFooter.displayName = 'TableFooter';
3272
- TableFooter.propTypes = {
3273
- children: PropTypes__default["default"].node.isRequired,
3274
- className: PropTypes__default["default"].string
3275
- };
3276
2863
 
3277
2864
  var Tab = React__default["default"].forwardRef(function (_a, ref) {
3278
2865
  var children = _a.children, propId = _a.id; _a.target; var other = tslib.__rest(_a, ["children", "id", "target"]);
3279
2866
  return (React__default["default"].createElement("li", tslib.__assign({ id: propId, ref: ref, role: "tab" }, other), children));
3280
2867
  });
3281
2868
  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
2869
 
3288
2870
  /**
3289
2871
  * Hook to be used similarly to the React.Component#componentDidMount.
@@ -3399,15 +2981,6 @@ var Tabs = function (_a) {
3399
2981
  React__default["default"].createElement("ul", tslib.__assign({ role: "tablist", className: "Tablist" }, labelProp, { onKeyDown: handleKeyDown }), tabComponents)));
3400
2982
  };
3401
2983
  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
2984
 
3412
2985
  var TabPanel = React.forwardRef(function (_a, ref) {
3413
2986
  var children = _a.children, propId = _a.id, className = _a.className, other = tslib.__rest(_a, ["children", "id", "className"]);
@@ -3415,16 +2988,7 @@ var TabPanel = React.forwardRef(function (_a, ref) {
3415
2988
  return (React__default["default"].createElement("div", tslib.__assign({ role: "tabpanel", className: classNames__default["default"]('TabPanel', className), id: id, ref: ref }, other), children));
3416
2989
  });
3417
2990
  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
2991
 
3424
- var commonPropTypes = {
3425
- children: PropTypes__default["default"].node.isRequired,
3426
- className: PropTypes__default["default"].string
3427
- };
3428
2992
  var DescriptionList = function (_a) {
3429
2993
  var children = _a.children, className = _a.className, _b = _a.collapsed, collapsed = _b === void 0 ? false : _b, other = tslib.__rest(_a, ["children", "className", "collapsed"]);
3430
2994
  return (React__default["default"].createElement("dl", tslib.__assign({ className: classNames__default["default"]('DescriptionList', className, {
@@ -3432,25 +2996,21 @@ var DescriptionList = function (_a) {
3432
2996
  }) }, other), children));
3433
2997
  };
3434
2998
  DescriptionList.displayName = 'DescriptionList';
3435
- DescriptionList.propTypes = commonPropTypes;
3436
2999
  var DescriptionListItem = function (_a) {
3437
3000
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3438
3001
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('DescriptionList__item', className) }, other), children));
3439
3002
  };
3440
3003
  DescriptionListItem.displayName = 'DescriptionListItem';
3441
- DescriptionListItem.propTypes = commonPropTypes;
3442
3004
  var DescriptionTerm = function (_a) {
3443
3005
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3444
3006
  return (React__default["default"].createElement("dt", tslib.__assign({ className: classNames__default["default"]('DescriptionList__term', className) }, other), children));
3445
3007
  };
3446
3008
  DescriptionTerm.displayName = 'DescriptionTerm';
3447
- DescriptionTerm.propTypes = commonPropTypes;
3448
3009
  var DescriptionDetails = function (_a) {
3449
3010
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3450
3011
  return (React__default["default"].createElement("dd", tslib.__assign({ className: classNames__default["default"]('DescriptionList__details', className) }, other), children));
3451
3012
  };
3452
3013
  DescriptionDetails.displayName = 'DescriptionDetails';
3453
- DescriptionDetails.propTypes = commonPropTypes;
3454
3014
 
3455
3015
  var isTooltipProps = function (props) {
3456
3016
  return !!props.tooltip;
@@ -3482,21 +3042,11 @@ var Step = function (props) {
3482
3042
  children ? (React__default["default"].createElement("div", { className: "Stepper__step-label" }, children)) : null)))));
3483
3043
  };
3484
3044
  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
3045
  var Stepper = function (_a) {
3492
3046
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3493
3047
  return (React__default["default"].createElement("ol", tslib.__assign({ className: classNames__default["default"]('Stepper', className) }, other), children));
3494
3048
  };
3495
3049
  Stepper.displayName = 'Stepper';
3496
- Stepper.propTypes = {
3497
- children: PropTypes__default["default"].node.isRequired,
3498
- className: PropTypes__default["default"].string
3499
- };
3500
3050
 
3501
3051
  var Panel = React.forwardRef(function (_a, ref) {
3502
3052
  var _b;
@@ -3528,14 +3078,6 @@ var Panel = React.forwardRef(function (_a, ref) {
3528
3078
  children));
3529
3079
  });
3530
3080
  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
3081
 
3540
3082
  var PanelContent = React.forwardRef(function (_a, ref) {
3541
3083
  var _b;
@@ -3545,21 +3087,12 @@ var PanelContent = React.forwardRef(function (_a, ref) {
3545
3087
  _b)), ref: ref }, otherProps), children));
3546
3088
  });
3547
3089
  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
3090
 
3554
3091
  var PanelHeader = React.forwardRef(function (_a, ref) {
3555
3092
  var children = _a.children, className = _a.className, otherProps = tslib.__rest(_a, ["children", "className"]);
3556
3093
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Panel__Header', className), ref: ref }, otherProps), children));
3557
3094
  });
3558
3095
  PanelHeader.displayName = 'PanelHeader';
3559
- PanelHeader.propTypes = {
3560
- children: PropTypes__default["default"].node.isRequired,
3561
- className: PropTypes__default["default"].string
3562
- };
3563
3096
 
3564
3097
  var IssuePanel = function (_a) {
3565
3098
  var className = _a.className, _b = _a.title, title = _b === void 0 ? '' : _b, actions = _a.actions, children = _a.children;
@@ -3570,10 +3103,6 @@ var IssuePanel = function (_a) {
3570
3103
  React__default["default"].createElement("div", { className: "IssuePanel__Content" }, children)));
3571
3104
  };
3572
3105
  IssuePanel.displayName = 'IssuePanel';
3573
- IssuePanel.propTypes = {
3574
- children: PropTypes__default["default"].node.isRequired,
3575
- className: PropTypes__default["default"].string
3576
- };
3577
3106
 
3578
3107
  var ProgressBar = React.forwardRef(function (_a, ref) {
3579
3108
  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 +3117,11 @@ var Address = function (_a) {
3588
3117
  return (React__default["default"].createElement("address", tslib.__assign({ className: classNames__default["default"]('Address', className) }, other), children));
3589
3118
  };
3590
3119
  Address.displayName = 'Address';
3591
- Address.propTypes = {
3592
- children: PropTypes__default["default"].node.isRequired,
3593
- className: PropTypes__default["default"].string
3594
- };
3595
3120
  var AddressLine = function (_a) {
3596
3121
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3597
3122
  return children ? (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Address__line', className) }, other), children)) : null;
3598
3123
  };
3599
3124
  AddressLine.displayName = 'AddressLine';
3600
- AddressLine.propTypes = {
3601
- children: PropTypes__default["default"].node,
3602
- className: PropTypes__default["default"].string
3603
- };
3604
3125
  var AddressCityStateZip = function (_a) {
3605
3126
  var city = _a.city, state = _a.state, zip = _a.zip, className = _a.className, other = tslib.__rest(_a, ["city", "state", "zip", "className"]);
3606
3127
  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 +3129,6 @@ var AddressCityStateZip = function (_a) {
3608
3129
  .join(' '))) : null;
3609
3130
  };
3610
3131
  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
3132
 
3628
3133
  var Pagination = React__default["default"].forwardRef(function (_a, ref) {
3629
3134
  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 +3159,6 @@ var Pagination = React__default["default"].forwardRef(function (_a, ref) {
3654
3159
  React__default["default"].createElement(IconButton, { icon: "chevron-double-right", tooltipPlacement: tooltipPlacement, label: lastPageLabel, "aria-disabled": isLastPage, onClick: isLastPage ? undefined : onLastPageClick })))));
3655
3160
  });
3656
3161
  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
3162
 
3676
3163
  var usePagination = function (_a) {
3677
3164
  var totalItems = _a.totalItems, _b = _a.initialPageSize, initialPageSize = _b === void 0 ? 10 : _b, _c = _a.initialPage, initialPage = _c === void 0 ? 1 : _c;
@@ -3707,11 +3194,6 @@ var FieldWrap = React__default["default"].forwardRef(function (_a, ref) {
3707
3194
  return (React__default["default"].createElement(Component, tslib.__assign({ ref: ref, className: classNames__default["default"]('Panel', className) }, props), children));
3708
3195
  });
3709
3196
  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
3197
 
3716
3198
  var Breadcrumb = React.forwardRef(function (_a, ref) {
3717
3199
  var _b = _a.separator, separator = _b === void 0 ? '/' : _b, className = _a.className, children = _a.children, props = tslib.__rest(_a, ["separator", "className", "children"]);
@@ -3737,9 +3219,6 @@ function (_a, ref) {
3737
3219
  var className = _a.className, children = _a.children, props = tslib.__rest(_a, ["className", "children"]);
3738
3220
  return (React__default["default"].createElement("span", tslib.__assign({ className: classNames__default["default"]('Breadcrumb__Item', className), ref: ref, "aria-current": "location" }, props), children));
3739
3221
  });
3740
- BreadcrumbItem.propTypes = {
3741
- className: PropTypes__default["default"].string
3742
- };
3743
3222
 
3744
3223
  var BreadcrumbLink = React.forwardRef(function (_a, ref) {
3745
3224
  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 +3397,18 @@ var ColumnHeader = React.forwardRef(function (_a, ref) {
3918
3397
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('TwoColumnPanel__Header', className) }, props, { ref: ref }), children));
3919
3398
  });
3920
3399
  ColumnHeader.displayName = 'ColumnHeader';
3921
- ColumnHeader.propTypes = {
3922
- className: PropTypes__default["default"].string
3923
- };
3924
3400
 
3925
3401
  var ColumnGroupHeader = React.forwardRef(function (_a, ref) {
3926
3402
  var className = _a.className, children = _a.children, props = tslib.__rest(_a, ["className", "children"]);
3927
3403
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('TwoColumnPanel__GroupHeader', className) }, props, { ref: ref }), children));
3928
3404
  });
3929
3405
  ColumnGroupHeader.displayName = 'ColumnGroupHeader';
3930
- ColumnGroupHeader.propTypes = {
3931
- className: PropTypes__default["default"].string
3932
- };
3933
3406
 
3934
3407
  var ColumnList = React.forwardRef(function (_a, ref) {
3935
3408
  var className = _a.className, children = _a.children, props = tslib.__rest(_a, ["className", "children"]);
3936
3409
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('TwoColumnPanel__List', className) }, props, { ref: ref }), children));
3937
3410
  });
3938
3411
  ColumnList.displayName = 'ColumnList';
3939
- ColumnList.propTypes = {
3940
- className: PropTypes__default["default"].string
3941
- };
3942
3412
 
3943
3413
  var iconTypeMap = {
3944
3414
  caution: 'caution',
@@ -3957,18 +3427,6 @@ var Notice = React.forwardRef(function (_a, ref) {
3957
3427
  children && React__default["default"].createElement("div", { className: "Notice__content" }, children)));
3958
3428
  });
3959
3429
  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
3430
 
3973
3431
  /* istanbul ignore next */
3974
3432
  var ListboxContext = React.createContext({
@@ -4383,16 +3841,16 @@ var ComboboxNoResults = function (_a) {
4383
3841
  return (React__default["default"].createElement("div", { className: "ComboboxListbox__empty", role: "alert", "aria-live": "polite" }, children || 'No results found.'));
4384
3842
  };
4385
3843
  var Combobox = React.forwardRef(function (_a, ref) {
4386
- var propId = _a.id, className = _a.className, label = _a.label, children = _a.children, _b = _a.options, options = _b === void 0 ? [] : _b, propValue = _a.value, defaultValue = _a.defaultValue, _c = _a.requiredText, requiredText = _c === void 0 ? 'Required' : _c, error = _a.error, _d = _a.autocomplete, autocomplete = _d === void 0 ? 'manual' : _d, onSelectionChange = _a.onSelectionChange, onActiveChange = _a.onActiveChange, onChange = _a.onChange, onKeyDown = _a.onKeyDown, onFocus = _a.onFocus, onBlur = _a.onBlur, name = _a.name, renderNoResults = _a.renderNoResults, portal = _a.portal, props = tslib.__rest(_a, ["id", "className", "label", "children", "options", "value", "defaultValue", "requiredText", "error", "autocomplete", "onSelectionChange", "onActiveChange", "onChange", "onKeyDown", "onFocus", "onBlur", "name", "renderNoResults", "portal"]);
4387
- var _e = tslib.__read(React.useState(defaultValue || propValue || ''), 2), value = _e[0], setValue = _e[1];
4388
- var _f = tslib.__read(React.useState(new Map()), 2), matchingOptions = _f[0], setMatchingOptions = _f[1];
4389
- var _g = tslib.__read(React.useState(value || ''), 2), selectedValue = _g[0], setSelectedValue = _g[1];
4390
- var _h = tslib.__read(React.useState(''), 2), formValue = _h[0], setFormValue = _h[1];
4391
- var _j = tslib.__read(React.useState(false), 2), open = _j[0], setOpen = _j[1];
4392
- var _k = tslib.__read(React.useState(null), 2), activeDescendant = _k[0], setActiveDescendant = _k[1];
4393
- var _l = tslib.__read(propId ? [propId] : nextId.useId(1, 'combobox'), 1), id = _l[0];
3844
+ var propId = _a.id, className = _a.className, label = _a.label, children = _a.children, _b = _a.options, options = _b === void 0 ? [] : _b, propValue = _a.value, defaultValue = _a.defaultValue, _c = _a.requiredText, requiredText = _c === void 0 ? 'Required' : _c, error = _a.error, _d = _a.autocomplete, autocomplete = _d === void 0 ? 'manual' : _d, onSelectionChange = _a.onSelectionChange, onActiveChange = _a.onActiveChange, onChange = _a.onChange, onKeyDown = _a.onKeyDown, onFocus = _a.onFocus, onBlur = _a.onBlur, name = _a.name, renderNoResults = _a.renderNoResults, portal = _a.portal, _e = _a.inputRef, propInputRef = _e === void 0 ? null : _e, ariaDescribedby = _a["aria-describedby"], props = tslib.__rest(_a, ["id", "className", "label", "children", "options", "value", "defaultValue", "requiredText", "error", "autocomplete", "onSelectionChange", "onActiveChange", "onChange", "onKeyDown", "onFocus", "onBlur", "name", "renderNoResults", "portal", "inputRef", 'aria-describedby']);
3845
+ var _f = tslib.__read(React.useState(defaultValue || propValue || ''), 2), value = _f[0], setValue = _f[1];
3846
+ var _g = tslib.__read(React.useState(new Map()), 2), matchingOptions = _g[0], setMatchingOptions = _g[1];
3847
+ var _h = tslib.__read(React.useState(value || ''), 2), selectedValue = _h[0], setSelectedValue = _h[1];
3848
+ var _j = tslib.__read(React.useState(''), 2), formValue = _j[0], setFormValue = _j[1];
3849
+ var _k = tslib.__read(React.useState(false), 2), open = _k[0], setOpen = _k[1];
3850
+ var _l = tslib.__read(React.useState(null), 2), activeDescendant = _l[0], setActiveDescendant = _l[1];
3851
+ var _m = tslib.__read(propId ? [propId] : nextId.useId(1, 'combobox'), 1), id = _m[0];
4394
3852
  var comboboxRef = useSharedRef(ref);
4395
- var inputRef = React.useRef(null);
3853
+ var inputRef = useSharedRef(propInputRef);
4396
3854
  var listboxRef = React.useRef(null);
4397
3855
  var isControlled = typeof propValue !== 'undefined';
4398
3856
  var isRequired = !!props.required;
@@ -4563,6 +4021,10 @@ var Combobox = React.forwardRef(function (_a, ref) {
4563
4021
  }), role: "listbox", "aria-labelledby": "".concat(id, "-label"), id: "".concat(id, "-listbox"), value: selectedValue, onMouseDown: handleComboboxOptionMouseDown, onClick: handleComboboxOptionClick, onSelectionChange: handleSelectionChange, onActiveChange: handleActiveChange, ref: listboxRef, tabIndex: undefined, "aria-activedescendant": undefined },
4564
4022
  comboboxOptions,
4565
4023
  noMatchingOptions));
4024
+ var errorId = "".concat(id, "-error");
4025
+ var inputProps = tslib.__assign(tslib.__assign({}, props), { 'aria-describedby': error
4026
+ ? tokenList(errorId, ariaDescribedby)
4027
+ : ariaDescribedby });
4566
4028
  return (React__default["default"].createElement("div", { id: id, className: classNames__default["default"]('Combobox', className), ref: comboboxRef },
4567
4029
  name && React__default["default"].createElement("input", { type: "hidden", name: name, value: formValue }),
4568
4030
  React__default["default"].createElement("label", { className: classNames__default["default"]('Field__label', {
@@ -4577,7 +4039,7 @@ var Combobox = React.forwardRef(function (_a, ref) {
4577
4039
  // We're handling click here to open the listbox when the wrapping element is clicked,
4578
4040
  // there's already keyboard handlers to open the listbox on the input element
4579
4041
  onClick: handleInputClick },
4580
- React__default["default"].createElement("input", tslib.__assign({ type: "text", id: "".concat(id, "-input"), ref: inputRef, value: value, role: "combobox", "aria-autocomplete": !isAutoComplete ? 'none' : 'list', "aria-controls": "".concat(id, "-listbox"), "aria-expanded": open, "aria-haspopup": "listbox", "aria-activedescendant": open && activeDescendant ? activeDescendant.element.id : undefined }, props, { onChange: handleChange, onKeyDown: handleKeyDown, onFocus: handleFocus, onBlur: handleBlur })),
4042
+ React__default["default"].createElement("input", tslib.__assign({ type: "text", id: "".concat(id, "-input"), ref: inputRef, value: value, role: "combobox", "aria-autocomplete": !isAutoComplete ? 'none' : 'list', "aria-controls": "".concat(id, "-listbox"), "aria-expanded": open, "aria-haspopup": "listbox", "aria-activedescendant": open && activeDescendant ? activeDescendant.element.id : undefined }, inputProps, { onChange: handleChange, onKeyDown: handleKeyDown, onFocus: handleFocus, onBlur: handleBlur })),
4581
4043
  React__default["default"].createElement("span", { className: "Combobox__arrow" })),
4582
4044
  React__default["default"].createElement(ComboboxProvider, { autocomplete: autocomplete, inputValue: value, formValue: formValue, selectedValue: selectedValue, matches: !isAutoComplete || defaultAutoCompleteMatches, matchingOptions: matchingOptions, setMatchingOptions: setMatchingOptions, setFormValue: setFormValue }, portal
4583
4045
  ? reactDom.createPortal(comboboxListbox, portal instanceof HTMLElement
@@ -4585,7 +4047,7 @@ var Combobox = React.forwardRef(function (_a, ref) {
4585
4047
  : portal.current ||
4586
4048
  /* istanbul ignore next: default fallback value */ document.body)
4587
4049
  : comboboxListbox),
4588
- hasError && (React__default["default"].createElement("div", { className: "Error", id: "".concat(id, "-error") }, error))));
4050
+ hasError && (React__default["default"].createElement("div", { className: "Error", id: errorId }, error))));
4589
4051
  });
4590
4052
  Combobox.displayName = 'Combobox';
4591
4053
 
@@ -4793,10 +4255,6 @@ var ThemeProvider = function (_a) {
4793
4255
  function useThemeContext() {
4794
4256
  return React.useContext(ThemeContext);
4795
4257
  }
4796
- ThemeProvider.propTypes = {
4797
- children: PropTypes__default["default"].any,
4798
- initialTheme: PropTypes__default["default"].string
4799
- };
4800
4258
 
4801
4259
  exports.Accordion = Accordion;
4802
4260
  exports.AccordionContent = AccordionContent;