@deque/cauldron-react 5.12.0 → 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 +7 -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 +24 -563
  55. package/package.json +2 -4
  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.
@@ -1561,6 +1394,7 @@ var Dialog = /** @class */ (function (_super) {
1561
1394
  tslib.__extends(Dialog, _super);
1562
1395
  function Dialog(props) {
1563
1396
  var _this = _super.call(this, props) || this;
1397
+ _this.headingId = nextId__default["default"]('dialog-title-');
1564
1398
  _this.close = _this.close.bind(_this);
1565
1399
  _this.focusHeading = _this.focusHeading.bind(_this);
1566
1400
  _this.handleClickOutside = _this.handleClickOutside.bind(_this);
@@ -1617,10 +1451,10 @@ var Dialog = /** @class */ (function (_super) {
1617
1451
  return;
1618
1452
  }
1619
1453
  setRef(dialogRef, el);
1620
- } }, other),
1454
+ }, "aria-labelledby": this.headingId }, other),
1621
1455
  React__default["default"].createElement("div", { className: "Dialog__inner" },
1622
1456
  React__default["default"].createElement("div", { className: "Dialog__header" },
1623
- React__default["default"].createElement(Heading, { className: "Dialog__heading", ref: function (el) { return (_this.heading = el); }, tabIndex: -1 }, typeof heading === 'object' && 'text' in heading
1457
+ React__default["default"].createElement(Heading, { className: "Dialog__heading", ref: function (el) { return (_this.heading = el); }, tabIndex: -1, id: this.headingId }, typeof heading === 'object' && 'text' in heading
1624
1458
  ? heading.text
1625
1459
  : heading),
1626
1460
  close),
@@ -1652,19 +1486,6 @@ var Dialog = /** @class */ (function (_super) {
1652
1486
  forceAction: false,
1653
1487
  closeButtonText: 'Close'
1654
1488
  };
1655
- Dialog.propTypes = {
1656
- className: PropTypes__default["default"].string,
1657
- show: PropTypes__default["default"].bool,
1658
- dialogRef: PropTypes__default["default"].oneOfType([
1659
- PropTypes__default["default"].func,
1660
- PropTypes__default["default"].shape({ current: PropTypes__default["default"].any })
1661
- ]),
1662
- onClose: PropTypes__default["default"].func,
1663
- forceAction: PropTypes__default["default"].bool,
1664
- heading: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].node]).isRequired,
1665
- closeButtonText: PropTypes__default["default"].string,
1666
- portal: PropTypes__default["default"].any
1667
- };
1668
1489
  return Dialog;
1669
1490
  }(React__default["default"].Component));
1670
1491
  var DialogContent = function (_a) {
@@ -1676,11 +1497,6 @@ var DialogContent = function (_a) {
1676
1497
  }) }, other), children));
1677
1498
  };
1678
1499
  DialogContent.displayName = 'DialogContent';
1679
- DialogContent.propTypes = {
1680
- className: PropTypes__default["default"].string,
1681
- children: PropTypes__default["default"].node,
1682
- align: PropTypes__default["default"].string
1683
- };
1684
1500
  var DialogFooter = function (_a) {
1685
1501
  var children = _a.children, className = _a.className, align = _a.align, other = tslib.__rest(_a, ["children", "className", "align"]);
1686
1502
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Dialog__footer', className, {
@@ -1690,11 +1506,6 @@ var DialogFooter = function (_a) {
1690
1506
  }) }, other), children));
1691
1507
  };
1692
1508
  DialogFooter.displayName = 'DialogFooter';
1693
- DialogFooter.propTypes = {
1694
- className: PropTypes__default["default"].string,
1695
- children: PropTypes__default["default"].node,
1696
- align: PropTypes__default["default"].string
1697
- };
1698
1509
 
1699
1510
  var Alert = function (_a) {
1700
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"]);
@@ -1774,17 +1585,6 @@ var SkipLink = /** @class */ (function (_super) {
1774
1585
  skipText: 'Skip to',
1775
1586
  targetText: 'Main Content'
1776
1587
  };
1777
- SkipLink.propTypes = {
1778
- // enforce a valid id hash string (example: '#foo')
1779
- target: function (props, propName, componentName) {
1780
- var value = props[propName];
1781
- if (!value || typeof value !== 'string' || value[0] !== '#') {
1782
- return new Error("Invalid prop ".concat(propName, " supplied to ").concat(componentName, " (must be string starting with \"#\")"));
1783
- }
1784
- },
1785
- skipText: PropTypes__default["default"].string,
1786
- targetText: PropTypes__default["default"].string
1787
- };
1788
1588
  return SkipLink;
1789
1589
  }(React__default["default"].Component));
1790
1590
 
@@ -1941,29 +1741,14 @@ function Tooltip(_a) {
1941
1741
  : null));
1942
1742
  }
1943
1743
  Tooltip.displayName = 'Tooltip';
1944
- Tooltip.propTypes = {
1945
- children: PropTypes__default["default"].node.isRequired,
1946
- target: PropTypes__default["default"].any.isRequired,
1947
- association: PropTypes__default["default"].oneOf(['aria-labelledby', 'aria-describedby']),
1948
- show: PropTypes__default["default"].bool,
1949
- placement: PropTypes__default["default"].string,
1950
- variant: PropTypes__default["default"].string,
1951
- portal: PropTypes__default["default"].any
1952
- };
1953
1744
  var TooltipHead = function (_a) {
1954
1745
  var className = _a.className, other = tslib.__rest(_a, ["className"]);
1955
1746
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('TooltipHead', className) }, other)));
1956
1747
  };
1957
- TooltipHead.propTypes = {
1958
- className: PropTypes__default["default"].string
1959
- };
1960
1748
  var TooltipContent = function (_a) {
1961
1749
  var className = _a.className, other = tslib.__rest(_a, ["className"]);
1962
1750
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('TooltipContent', className) }, other)));
1963
1751
  };
1964
- TooltipContent.propTypes = {
1965
- className: PropTypes__default["default"].string
1966
- };
1967
1752
 
1968
1753
  /**
1969
1754
  * Unfortunately, eslint does not recognize that this Polymorphic component has a displayName set
@@ -2002,20 +1787,6 @@ var IconButton = React.forwardRef(function (_a, ref) {
2002
1787
  disabled && React__default["default"].createElement(Offscreen, null, label)),
2003
1788
  !disabled && (React__default["default"].createElement(Tooltip, { target: internalRef, placement: tooltipPlacement, variant: tooltipVariant, portal: tooltipPortal, association: "aria-labelledby", hideElementOnHidden: true }, label))));
2004
1789
  });
2005
- IconButton.propTypes = {
2006
- // @ts-expect-error
2007
- as: PropTypes__default["default"].elementType,
2008
- // @ts-expect-error
2009
- icon: PropTypes__default["default"].string.isRequired,
2010
- label: PropTypes__default["default"].node.isRequired,
2011
- // @ts-expect-error
2012
- tooltipPlacement: PropTypes__default["default"].string,
2013
- // @ts-expect-error
2014
- tooltipVariant: PropTypes__default["default"].string,
2015
- tooltipPortal: PropTypes__default["default"].any,
2016
- // @ts-expect-error
2017
- variant: PropTypes__default["default"].string
2018
- };
2019
1790
  IconButton.displayName = 'IconButton';
2020
1791
 
2021
1792
  var i = 0;
@@ -2312,32 +2083,6 @@ var Pointout = /** @class */ (function (_super) {
2312
2083
  arrowPosition: 'top-left',
2313
2084
  position: 'center'
2314
2085
  };
2315
- Pointout.propTypes = {
2316
- heading: PropTypes__default["default"].node,
2317
- children: PropTypes__default["default"].node.isRequired,
2318
- ftpRef: PropTypes__default["default"].oneOfType([
2319
- PropTypes__default["default"].func,
2320
- PropTypes__default["default"].shape({ current: PropTypes__default["default"].any })
2321
- ]),
2322
- noArrow: function (props, propName) {
2323
- if (props[propName] === true && typeof props['target'] !== 'undefined') {
2324
- return new Error('A "target" prop with "noArrow=true" is not currently supported.');
2325
- }
2326
- },
2327
- arrowPosition: PropTypes__default["default"].string,
2328
- onClose: PropTypes__default["default"].func,
2329
- dismissText: PropTypes__default["default"].string,
2330
- className: PropTypes__default["default"].string,
2331
- target: PropTypes__default["default"].oneOfType([
2332
- PropTypes__default["default"].func,
2333
- PropTypes__default["default"].shape({ current: PropTypes__default["default"].any })
2334
- ]),
2335
- disableOffscreenPointout: PropTypes__default["default"].bool,
2336
- portal: PropTypes__default["default"].any,
2337
- previousButtonProps: PropTypes__default["default"].any,
2338
- nextButtonProps: PropTypes__default["default"].any,
2339
- closeButtonProps: PropTypes__default["default"].any
2340
- };
2341
2086
  return Pointout;
2342
2087
  }(React__default["default"].Component));
2343
2088
 
@@ -2514,27 +2259,6 @@ var Toast = /** @class */ (function (_super) {
2514
2259
  show: false,
2515
2260
  dismissible: true
2516
2261
  };
2517
- Toast.propTypes = {
2518
- // the ui to be added as the message of the toast
2519
- children: PropTypes__default["default"].node.isRequired,
2520
- // "confirmation", "caution", or "action-needed"
2521
- type: PropTypes__default["default"].string.isRequired,
2522
- // function to be exectued when toast is dismissed
2523
- onDismiss: PropTypes__default["default"].func,
2524
- // text to be added as the aria-label of the "x" dismiss button (default: "Dismiss")
2525
- dismissText: PropTypes__default["default"].string,
2526
- // an optional ref function to get a handle on the toast element
2527
- toastRef: PropTypes__default["default"].oneOfType([
2528
- PropTypes__default["default"].func,
2529
- PropTypes__default["default"].shape({ current: PropTypes__default["default"].any })
2530
- ]),
2531
- // whether or not to focus the toast
2532
- focus: PropTypes__default["default"].bool,
2533
- // whether or not to show the toast
2534
- show: PropTypes__default["default"].bool,
2535
- // whether or not the toast is dismissible
2536
- dismissible: PropTypes__default["default"].bool
2537
- };
2538
2262
  Toast.displayName = 'Toast';
2539
2263
  return Toast;
2540
2264
  }(React__default["default"].Component));
@@ -2548,16 +2272,6 @@ var Link = function (_a) {
2548
2272
  'Button--thin': thin
2549
2273
  }) }, other), children));
2550
2274
  };
2551
- Link.propTypes = {
2552
- children: PropTypes__default["default"].node,
2553
- className: PropTypes__default["default"].string,
2554
- variant: PropTypes__default["default"].string,
2555
- thin: PropTypes__default["default"].bool,
2556
- linkRef: PropTypes__default["default"].oneOfType([
2557
- PropTypes__default["default"].func,
2558
- PropTypes__default["default"].shape({ current: PropTypes__default["default"].any })
2559
- ])
2560
- };
2561
2275
  Link.displayName = 'Link';
2562
2276
 
2563
2277
  var Loader = React__default["default"].forwardRef(function (_a, ref) {
@@ -2571,9 +2285,6 @@ var Loader = React__default["default"].forwardRef(function (_a, ref) {
2571
2285
  }
2572
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)));
2573
2287
  });
2574
- Loader.propTypes = {
2575
- className: PropTypes__default["default"].string
2576
- };
2577
2288
  Loader.displayName = 'Loader';
2578
2289
 
2579
2290
  /**
@@ -2709,24 +2420,6 @@ var RadioGroup = React.forwardRef(function (_a, ref) {
2709
2420
  inputs.current = [];
2710
2421
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"](className, { 'Radio--inline': inline }), role: "radiogroup", ref: ref }, other), radioButtons));
2711
2422
  });
2712
- RadioGroup.propTypes = {
2713
- name: PropTypes__default["default"].string,
2714
- radios: PropTypes__default["default"].arrayOf(PropTypes__default["default"].shape({
2715
- value: PropTypes__default["default"].string.isRequired,
2716
- id: PropTypes__default["default"].string.isRequired,
2717
- label: PropTypes__default["default"].string.isRequired,
2718
- labelDescription: PropTypes__default["default"].string
2719
- }).isRequired).isRequired,
2720
- hasLabel: function (props, _propName, componentName) {
2721
- if (!props['aria-label'] && !props['aria-labelledby']) {
2722
- return new Error("".concat(componentName, " must have an \"aria-label\" or \"aria-labelledby\" prop"));
2723
- }
2724
- return null;
2725
- },
2726
- className: PropTypes__default["default"].string,
2727
- defaultValue: PropTypes__default["default"].string,
2728
- onChange: PropTypes__default["default"].func
2729
- };
2730
2423
  RadioGroup.displayName = 'RadioGroup';
2731
2424
 
2732
2425
  var Card = function (_a) {
@@ -2737,37 +2430,24 @@ var Card = function (_a) {
2737
2430
  }) }, other)));
2738
2431
  };
2739
2432
  Card.displayName = 'Card';
2740
- Card.propTypes = {
2741
- className: PropTypes__default["default"].string,
2742
- variant: PropTypes__default["default"].string
2743
- };
2744
2433
 
2745
2434
  var CardHeader = function (_a) {
2746
2435
  var className = _a.className, other = tslib.__rest(_a, ["className"]);
2747
2436
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Card__header', className) }, other)));
2748
2437
  };
2749
2438
  CardHeader.displayName = 'CardHeader';
2750
- CardHeader.propTypes = {
2751
- className: PropTypes__default["default"].string
2752
- };
2753
2439
 
2754
2440
  var CardContent = function (_a) {
2755
2441
  var className = _a.className, other = tslib.__rest(_a, ["className"]);
2756
2442
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Card__content', className) }, other)));
2757
2443
  };
2758
2444
  CardContent.displayName = 'CardContent';
2759
- CardContent.propTypes = {
2760
- className: PropTypes__default["default"].string
2761
- };
2762
2445
 
2763
2446
  var CardFooter = function (_a) {
2764
2447
  var className = _a.className, other = tslib.__rest(_a, ["className"]);
2765
2448
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Card__footer', className) }, other)));
2766
2449
  };
2767
2450
  CardFooter.displayName = 'CardFooter';
2768
- CardFooter.propTypes = {
2769
- className: PropTypes__default["default"].string
2770
- };
2771
2451
 
2772
2452
  var RadioCardGroup = function (_a) {
2773
2453
  var name = _a.name, radios = _a.radios, defaultValue = _a.defaultValue, value = _a.value,
@@ -2828,24 +2508,6 @@ var RadioCardGroup = function (_a) {
2828
2508
  inputs.current = [];
2829
2509
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('RadioCardGroup'), role: "radiogroup" }, other), radioButtons));
2830
2510
  };
2831
- RadioCardGroup.propTypes = {
2832
- name: PropTypes__default["default"].string,
2833
- radios: PropTypes__default["default"].arrayOf(PropTypes__default["default"].shape({
2834
- value: PropTypes__default["default"].string.isRequired,
2835
- id: PropTypes__default["default"].string.isRequired,
2836
- label: PropTypes__default["default"].string.isRequired,
2837
- cardImg: PropTypes__default["default"].element.isRequired,
2838
- cardIcon: PropTypes__default["default"].string.isRequired
2839
- })).isRequired,
2840
- hasLabel: function (props, propName, componentName) {
2841
- if (!props['aria-label'] && !props['aria-labelledby']) {
2842
- return new Error("".concat(componentName, " must have an \"aria-label\" or \"aria-labelledby\" prop"));
2843
- }
2844
- },
2845
- className: PropTypes__default["default"].string,
2846
- defaultValue: PropTypes__default["default"].string,
2847
- onChange: PropTypes__default["default"].func
2848
- };
2849
2511
  RadioCardGroup.displayName = 'RadioCardGroup';
2850
2512
 
2851
2513
  var Checkbox = React.forwardRef(function (_a, ref) {
@@ -3001,22 +2663,6 @@ var TextField = /** @class */ (function (_super) {
3001
2663
  requiredText: 'Required',
3002
2664
  multiline: false
3003
2665
  };
3004
- TextField.propTypes = {
3005
- label: PropTypes__default["default"].node.isRequired,
3006
- id: PropTypes__default["default"].string,
3007
- error: PropTypes__default["default"].node,
3008
- defaultValue: PropTypes__default["default"].string,
3009
- value: PropTypes__default["default"].string,
3010
- onChange: PropTypes__default["default"].func,
3011
- fieldRef: PropTypes__default["default"].oneOfType([
3012
- PropTypes__default["default"].func,
3013
- PropTypes__default["default"].shape({ current: PropTypes__default["default"].any })
3014
- ]),
3015
- required: PropTypes__default["default"].bool,
3016
- requiredText: PropTypes__default["default"].string,
3017
- multiline: PropTypes__default["default"].bool,
3018
- 'aria-describedby': PropTypes__default["default"].string
3019
- };
3020
2666
  return TextField;
3021
2667
  }(React__default["default"].Component));
3022
2668
 
@@ -3058,13 +2704,6 @@ var Code = function (_a) {
3058
2704
  }), tabIndex: scrollableRegion ? 0 : undefined }), children));
3059
2705
  };
3060
2706
  Code.displayName = 'Code';
3061
- Code.propTypes = {
3062
- children: PropTypes__default["default"].string.isRequired,
3063
- language: PropTypes__default["default"].oneOf(['javascript', 'css', 'html', 'yaml']),
3064
- className: PropTypes__default["default"].string,
3065
- tabIndex: PropTypes__default["default"].number,
3066
- scrollable: PropTypes__default["default"].bool
3067
- };
3068
2707
 
3069
2708
  function AxeLoader() {
3070
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" },
@@ -3137,22 +2776,12 @@ var LoaderOverlay = React.forwardRef(function (_a, ref) {
3137
2776
  label ? (React__default["default"].createElement("span", { className: "Loader__overlay__label" }, label)) : null,
3138
2777
  children)));
3139
2778
  });
3140
- LoaderOverlay.propTypes = {
3141
- className: PropTypes__default["default"].string,
3142
- variant: PropTypes__default["default"].oneOf(['large', 'small']),
3143
- label: PropTypes__default["default"].string,
3144
- focusOnInitialRender: PropTypes__default["default"].bool,
3145
- children: PropTypes__default["default"].node
3146
- };
3147
2779
  LoaderOverlay.displayName = 'LoaderOverlay';
3148
2780
 
3149
2781
  var Line = function (_a) {
3150
2782
  var className = _a.className, other = tslib.__rest(_a, ["className"]);
3151
2783
  return (React__default["default"].createElement("hr", tslib.__assign({ className: classNames__default["default"]('Line', className) }, other)));
3152
2784
  };
3153
- Line.propTypes = {
3154
- className: PropTypes__default["default"].string
3155
- };
3156
2785
  Line.displayName = 'Line';
3157
2786
 
3158
2787
  var TagLabel = function (_a) {
@@ -3160,19 +2789,11 @@ var TagLabel = function (_a) {
3160
2789
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Tag__label', className) }, other), children));
3161
2790
  };
3162
2791
  TagLabel.displayName = 'TagLabel';
3163
- TagLabel.propTypes = {
3164
- children: PropTypes__default["default"].node.isRequired,
3165
- className: PropTypes__default["default"].string
3166
- };
3167
2792
  var Tag = function (_a) {
3168
2793
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3169
2794
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Tag', className) }, other), children));
3170
2795
  };
3171
2796
  Tag.displayName = 'Tag';
3172
- Tag.propTypes = {
3173
- children: PropTypes__default["default"].node.isRequired,
3174
- className: PropTypes__default["default"].string
3175
- };
3176
2797
 
3177
2798
  var TagButton = React__default["default"].forwardRef(function (_a, ref) {
3178
2799
  var label = _a.label, value = _a.value, icon = _a.icon, className = _a.className, rest = tslib.__rest(_a, ["label", "value", "icon", "className"]);
@@ -3188,41 +2809,24 @@ var Table = function (_a) {
3188
2809
  return (React__default["default"].createElement("table", tslib.__assign({ className: classNames__default["default"]('Table', variant === 'border' && 'Table--border', className) }, other), children));
3189
2810
  };
3190
2811
  Table.displayName = 'Table';
3191
- Table.propTypes = {
3192
- children: PropTypes__default["default"].node.isRequired,
3193
- className: PropTypes__default["default"].string,
3194
- variant: PropTypes__default["default"].string
3195
- };
3196
2812
 
3197
2813
  var TableBody = function (_a) {
3198
2814
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3199
2815
  return (React__default["default"].createElement("tbody", tslib.__assign({ className: classNames__default["default"]('TableBody', className) }, other), children));
3200
2816
  };
3201
2817
  TableBody.displayName = 'TableBody';
3202
- TableBody.propTypes = {
3203
- children: PropTypes__default["default"].node.isRequired,
3204
- className: PropTypes__default["default"].string
3205
- };
3206
2818
 
3207
2819
  var TableCell = function (_a) {
3208
2820
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3209
2821
  return (React__default["default"].createElement("td", tslib.__assign({ className: classNames__default["default"]('TableCell', className) }, other), children));
3210
2822
  };
3211
2823
  TableCell.displayName = 'TableCell';
3212
- TableCell.propTypes = {
3213
- children: PropTypes__default["default"].node.isRequired,
3214
- className: PropTypes__default["default"].string
3215
- };
3216
2824
 
3217
2825
  var TableHead = function (_a) {
3218
2826
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3219
2827
  return (React__default["default"].createElement("thead", tslib.__assign({ className: classNames__default["default"]('TableHead', className) }, other), children));
3220
2828
  };
3221
2829
  TableHead.displayName = 'TableHead';
3222
- TableHead.propTypes = {
3223
- children: PropTypes__default["default"].node.isRequired,
3224
- className: PropTypes__default["default"].string
3225
- };
3226
2830
 
3227
2831
  var TableHeader = function (_a) {
3228
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"]);
@@ -3244,45 +2848,24 @@ var TableHeader = function (_a) {
3244
2848
  React__default["default"].createElement("span", { role: "status", "aria-live": "polite" }, announcement)))) : (children)));
3245
2849
  };
3246
2850
  TableHeader.displayName = 'TableHeader';
3247
- TableHeader.propTypes = {
3248
- children: PropTypes__default["default"].node.isRequired,
3249
- sortDirection: PropTypes__default["default"].string,
3250
- onSort: PropTypes__default["default"].func,
3251
- className: PropTypes__default["default"].string,
3252
- sortAscendingAnnouncement: PropTypes__default["default"].string,
3253
- sortDescendingAnnouncement: PropTypes__default["default"].string
3254
- };
3255
2851
 
3256
2852
  var TableRow = function (_a) {
3257
2853
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3258
2854
  return (React__default["default"].createElement("tr", tslib.__assign({ className: classNames__default["default"]('TableRow', className) }, other), children));
3259
2855
  };
3260
2856
  TableRow.displayName = 'TableRow';
3261
- TableRow.propTypes = {
3262
- children: PropTypes__default["default"].node.isRequired,
3263
- className: PropTypes__default["default"].string
3264
- };
3265
2857
 
3266
2858
  var TableFooter = function (_a) {
3267
2859
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3268
2860
  return (React__default["default"].createElement("tfoot", tslib.__assign({ className: classNames__default["default"]('TableFooter', className) }, other), children));
3269
2861
  };
3270
2862
  TableFooter.displayName = 'TableFooter';
3271
- TableFooter.propTypes = {
3272
- children: PropTypes__default["default"].node.isRequired,
3273
- className: PropTypes__default["default"].string
3274
- };
3275
2863
 
3276
2864
  var Tab = React__default["default"].forwardRef(function (_a, ref) {
3277
2865
  var children = _a.children, propId = _a.id; _a.target; var other = tslib.__rest(_a, ["children", "id", "target"]);
3278
2866
  return (React__default["default"].createElement("li", tslib.__assign({ id: propId, ref: ref, role: "tab" }, other), children));
3279
2867
  });
3280
2868
  Tab.displayName = 'Tab';
3281
- Tab.propTypes = {
3282
- target: PropTypes__default["default"].any.isRequired,
3283
- id: PropTypes__default["default"].string,
3284
- children: PropTypes__default["default"].node
3285
- };
3286
2869
 
3287
2870
  /**
3288
2871
  * Hook to be used similarly to the React.Component#componentDidMount.
@@ -3398,15 +2981,6 @@ var Tabs = function (_a) {
3398
2981
  React__default["default"].createElement("ul", tslib.__assign({ role: "tablist", className: "Tablist" }, labelProp, { onKeyDown: handleKeyDown }), tabComponents)));
3399
2982
  };
3400
2983
  Tabs.displayName = 'Tabs';
3401
- Tabs.propTypes = {
3402
- children: PropTypes__default["default"].node.isRequired,
3403
- 'aria-label': PropTypes__default["default"].string,
3404
- 'aria-labelledby': PropTypes__default["default"].string,
3405
- initialActiveIndex: PropTypes__default["default"].number,
3406
- thin: PropTypes__default["default"].bool,
3407
- orientation: PropTypes__default["default"].string,
3408
- className: PropTypes__default["default"].string
3409
- };
3410
2984
 
3411
2985
  var TabPanel = React.forwardRef(function (_a, ref) {
3412
2986
  var children = _a.children, propId = _a.id, className = _a.className, other = tslib.__rest(_a, ["children", "id", "className"]);
@@ -3414,16 +2988,7 @@ var TabPanel = React.forwardRef(function (_a, ref) {
3414
2988
  return (React__default["default"].createElement("div", tslib.__assign({ role: "tabpanel", className: classNames__default["default"]('TabPanel', className), id: id, ref: ref }, other), children));
3415
2989
  });
3416
2990
  TabPanel.displayName = 'TabPanel';
3417
- TabPanel.propTypes = {
3418
- id: PropTypes__default["default"].string,
3419
- children: PropTypes__default["default"].node,
3420
- className: PropTypes__default["default"].string
3421
- };
3422
2991
 
3423
- var commonPropTypes = {
3424
- children: PropTypes__default["default"].node.isRequired,
3425
- className: PropTypes__default["default"].string
3426
- };
3427
2992
  var DescriptionList = function (_a) {
3428
2993
  var children = _a.children, className = _a.className, _b = _a.collapsed, collapsed = _b === void 0 ? false : _b, other = tslib.__rest(_a, ["children", "className", "collapsed"]);
3429
2994
  return (React__default["default"].createElement("dl", tslib.__assign({ className: classNames__default["default"]('DescriptionList', className, {
@@ -3431,25 +2996,21 @@ var DescriptionList = function (_a) {
3431
2996
  }) }, other), children));
3432
2997
  };
3433
2998
  DescriptionList.displayName = 'DescriptionList';
3434
- DescriptionList.propTypes = commonPropTypes;
3435
2999
  var DescriptionListItem = function (_a) {
3436
3000
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3437
3001
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('DescriptionList__item', className) }, other), children));
3438
3002
  };
3439
3003
  DescriptionListItem.displayName = 'DescriptionListItem';
3440
- DescriptionListItem.propTypes = commonPropTypes;
3441
3004
  var DescriptionTerm = function (_a) {
3442
3005
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3443
3006
  return (React__default["default"].createElement("dt", tslib.__assign({ className: classNames__default["default"]('DescriptionList__term', className) }, other), children));
3444
3007
  };
3445
3008
  DescriptionTerm.displayName = 'DescriptionTerm';
3446
- DescriptionTerm.propTypes = commonPropTypes;
3447
3009
  var DescriptionDetails = function (_a) {
3448
3010
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3449
3011
  return (React__default["default"].createElement("dd", tslib.__assign({ className: classNames__default["default"]('DescriptionList__details', className) }, other), children));
3450
3012
  };
3451
3013
  DescriptionDetails.displayName = 'DescriptionDetails';
3452
- DescriptionDetails.propTypes = commonPropTypes;
3453
3014
 
3454
3015
  var isTooltipProps = function (props) {
3455
3016
  return !!props.tooltip;
@@ -3481,21 +3042,11 @@ var Step = function (props) {
3481
3042
  children ? (React__default["default"].createElement("div", { className: "Stepper__step-label" }, children)) : null)))));
3482
3043
  };
3483
3044
  Step.displayName = 'Step';
3484
- Step.propTypes = {
3485
- children: PropTypes__default["default"].node,
3486
- tooltip: PropTypes__default["default"].node,
3487
- tooltipText: PropTypes__default["default"].string,
3488
- className: PropTypes__default["default"].string
3489
- };
3490
3045
  var Stepper = function (_a) {
3491
3046
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3492
3047
  return (React__default["default"].createElement("ol", tslib.__assign({ className: classNames__default["default"]('Stepper', className) }, other), children));
3493
3048
  };
3494
3049
  Stepper.displayName = 'Stepper';
3495
- Stepper.propTypes = {
3496
- children: PropTypes__default["default"].node.isRequired,
3497
- className: PropTypes__default["default"].string
3498
- };
3499
3050
 
3500
3051
  var Panel = React.forwardRef(function (_a, ref) {
3501
3052
  var _b;
@@ -3527,14 +3078,6 @@ var Panel = React.forwardRef(function (_a, ref) {
3527
3078
  children));
3528
3079
  });
3529
3080
  Panel.displayName = 'Panel';
3530
- Panel.propTypes = {
3531
- children: PropTypes__default["default"].node.isRequired,
3532
- // @ts-expect-error
3533
- heading: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].node]),
3534
- className: PropTypes__default["default"].string,
3535
- padding: PropTypes__default["default"].bool,
3536
- collapsed: PropTypes__default["default"].bool
3537
- };
3538
3081
 
3539
3082
  var PanelContent = React.forwardRef(function (_a, ref) {
3540
3083
  var _b;
@@ -3544,21 +3087,12 @@ var PanelContent = React.forwardRef(function (_a, ref) {
3544
3087
  _b)), ref: ref }, otherProps), children));
3545
3088
  });
3546
3089
  PanelContent.displayName = 'PanelContent';
3547
- PanelContent.propTypes = {
3548
- children: PropTypes__default["default"].node.isRequired,
3549
- className: PropTypes__default["default"].string,
3550
- padding: PropTypes__default["default"].bool
3551
- };
3552
3090
 
3553
3091
  var PanelHeader = React.forwardRef(function (_a, ref) {
3554
3092
  var children = _a.children, className = _a.className, otherProps = tslib.__rest(_a, ["children", "className"]);
3555
3093
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Panel__Header', className), ref: ref }, otherProps), children));
3556
3094
  });
3557
3095
  PanelHeader.displayName = 'PanelHeader';
3558
- PanelHeader.propTypes = {
3559
- children: PropTypes__default["default"].node.isRequired,
3560
- className: PropTypes__default["default"].string
3561
- };
3562
3096
 
3563
3097
  var IssuePanel = function (_a) {
3564
3098
  var className = _a.className, _b = _a.title, title = _b === void 0 ? '' : _b, actions = _a.actions, children = _a.children;
@@ -3569,10 +3103,6 @@ var IssuePanel = function (_a) {
3569
3103
  React__default["default"].createElement("div", { className: "IssuePanel__Content" }, children)));
3570
3104
  };
3571
3105
  IssuePanel.displayName = 'IssuePanel';
3572
- IssuePanel.propTypes = {
3573
- children: PropTypes__default["default"].node.isRequired,
3574
- className: PropTypes__default["default"].string
3575
- };
3576
3106
 
3577
3107
  var ProgressBar = React.forwardRef(function (_a, ref) {
3578
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"]);
@@ -3587,19 +3117,11 @@ var Address = function (_a) {
3587
3117
  return (React__default["default"].createElement("address", tslib.__assign({ className: classNames__default["default"]('Address', className) }, other), children));
3588
3118
  };
3589
3119
  Address.displayName = 'Address';
3590
- Address.propTypes = {
3591
- children: PropTypes__default["default"].node.isRequired,
3592
- className: PropTypes__default["default"].string
3593
- };
3594
3120
  var AddressLine = function (_a) {
3595
3121
  var children = _a.children, className = _a.className, other = tslib.__rest(_a, ["children", "className"]);
3596
3122
  return children ? (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('Address__line', className) }, other), children)) : null;
3597
3123
  };
3598
3124
  AddressLine.displayName = 'AddressLine';
3599
- AddressLine.propTypes = {
3600
- children: PropTypes__default["default"].node,
3601
- className: PropTypes__default["default"].string
3602
- };
3603
3125
  var AddressCityStateZip = function (_a) {
3604
3126
  var city = _a.city, state = _a.state, zip = _a.zip, className = _a.className, other = tslib.__rest(_a, ["city", "state", "zip", "className"]);
3605
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]
@@ -3607,22 +3129,6 @@ var AddressCityStateZip = function (_a) {
3607
3129
  .join(' '))) : null;
3608
3130
  };
3609
3131
  AddressCityStateZip.displayName = 'AddressCityStateZip';
3610
- AddressCityStateZip.propTypes = {
3611
- city: PropTypes__default["default"].node,
3612
- state: PropTypes__default["default"].node,
3613
- zip: PropTypes__default["default"].node,
3614
- className: PropTypes__default["default"].string
3615
- };
3616
-
3617
- /**
3618
- * This prop type is meant to ensure that a prop can actually be rendered as content.
3619
- * It should match the ContentNode type in types.ts
3620
- */
3621
- var contentNode = PropTypes__default["default"].oneOfType([
3622
- PropTypes__default["default"].string,
3623
- PropTypes__default["default"].number,
3624
- PropTypes__default["default"].element
3625
- ]);
3626
3132
 
3627
3133
  var Pagination = React__default["default"].forwardRef(function (_a, ref) {
3628
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"]);
@@ -3653,24 +3159,6 @@ var Pagination = React__default["default"].forwardRef(function (_a, ref) {
3653
3159
  React__default["default"].createElement(IconButton, { icon: "chevron-double-right", tooltipPlacement: tooltipPlacement, label: lastPageLabel, "aria-disabled": isLastPage, onClick: isLastPage ? undefined : onLastPageClick })))));
3654
3160
  });
3655
3161
  Pagination.displayName = 'Pagination';
3656
- Pagination.propTypes = {
3657
- totalItems: PropTypes__default["default"].number.isRequired,
3658
- itemsPerPage: PropTypes__default["default"].number,
3659
- currentPage: PropTypes__default["default"].number,
3660
- statusLabel: PropTypes__default["default"].element,
3661
- firstPageLabel: contentNode,
3662
- previousPageLabel: contentNode,
3663
- nextPageLabel: contentNode,
3664
- lastPageLabel: contentNode,
3665
- onNextPageClick: PropTypes__default["default"].func,
3666
- onPreviousPageClick: PropTypes__default["default"].func,
3667
- onFirstPageClick: PropTypes__default["default"].func,
3668
- onLastPageClick: PropTypes__default["default"].func,
3669
- // @ts-expect-error
3670
- tooltipPlacement: PropTypes__default["default"].string,
3671
- className: PropTypes__default["default"].string,
3672
- thin: PropTypes__default["default"].bool
3673
- };
3674
3162
 
3675
3163
  var usePagination = function (_a) {
3676
3164
  var totalItems = _a.totalItems, _b = _a.initialPageSize, initialPageSize = _b === void 0 ? 10 : _b, _c = _a.initialPage, initialPage = _c === void 0 ? 1 : _c;
@@ -3706,11 +3194,6 @@ var FieldWrap = React__default["default"].forwardRef(function (_a, ref) {
3706
3194
  return (React__default["default"].createElement(Component, tslib.__assign({ ref: ref, className: classNames__default["default"]('Panel', className) }, props), children));
3707
3195
  });
3708
3196
  FieldWrap.displayName = 'FieldWrap';
3709
- FieldWrap.propTypes = {
3710
- children: PropTypes__default["default"].node.isRequired,
3711
- className: PropTypes__default["default"].string,
3712
- as: PropTypes__default["default"].string
3713
- };
3714
3197
 
3715
3198
  var Breadcrumb = React.forwardRef(function (_a, ref) {
3716
3199
  var _b = _a.separator, separator = _b === void 0 ? '/' : _b, className = _a.className, children = _a.children, props = tslib.__rest(_a, ["separator", "className", "children"]);
@@ -3736,9 +3219,6 @@ function (_a, ref) {
3736
3219
  var className = _a.className, children = _a.children, props = tslib.__rest(_a, ["className", "children"]);
3737
3220
  return (React__default["default"].createElement("span", tslib.__assign({ className: classNames__default["default"]('Breadcrumb__Item', className), ref: ref, "aria-current": "location" }, props), children));
3738
3221
  });
3739
- BreadcrumbItem.propTypes = {
3740
- className: PropTypes__default["default"].string
3741
- };
3742
3222
 
3743
3223
  var BreadcrumbLink = React.forwardRef(function (_a, ref) {
3744
3224
  var className = _a.className, _b = _a.as, ElementType = _b === void 0 ? 'a' : _b, children = _a.children, props = tslib.__rest(_a, ["className", "as", "children"]);
@@ -3917,27 +3397,18 @@ var ColumnHeader = React.forwardRef(function (_a, ref) {
3917
3397
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('TwoColumnPanel__Header', className) }, props, { ref: ref }), children));
3918
3398
  });
3919
3399
  ColumnHeader.displayName = 'ColumnHeader';
3920
- ColumnHeader.propTypes = {
3921
- className: PropTypes__default["default"].string
3922
- };
3923
3400
 
3924
3401
  var ColumnGroupHeader = React.forwardRef(function (_a, ref) {
3925
3402
  var className = _a.className, children = _a.children, props = tslib.__rest(_a, ["className", "children"]);
3926
3403
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('TwoColumnPanel__GroupHeader', className) }, props, { ref: ref }), children));
3927
3404
  });
3928
3405
  ColumnGroupHeader.displayName = 'ColumnGroupHeader';
3929
- ColumnGroupHeader.propTypes = {
3930
- className: PropTypes__default["default"].string
3931
- };
3932
3406
 
3933
3407
  var ColumnList = React.forwardRef(function (_a, ref) {
3934
3408
  var className = _a.className, children = _a.children, props = tslib.__rest(_a, ["className", "children"]);
3935
3409
  return (React__default["default"].createElement("div", tslib.__assign({ className: classNames__default["default"]('TwoColumnPanel__List', className) }, props, { ref: ref }), children));
3936
3410
  });
3937
3411
  ColumnList.displayName = 'ColumnList';
3938
- ColumnList.propTypes = {
3939
- className: PropTypes__default["default"].string
3940
- };
3941
3412
 
3942
3413
  var iconTypeMap = {
3943
3414
  caution: 'caution',
@@ -3956,18 +3427,6 @@ var Notice = React.forwardRef(function (_a, ref) {
3956
3427
  children && React__default["default"].createElement("div", { className: "Notice__content" }, children)));
3957
3428
  });
3958
3429
  Notice.displayName = 'Notice';
3959
- Notice.propTypes = {
3960
- children: PropTypes__default["default"].node,
3961
- type: PropTypes__default["default"].oneOf(['caution', 'info', 'danger']),
3962
- // @ts-expect-error
3963
- title: PropTypes__default["default"].oneOfType([
3964
- PropTypes__default["default"].string,
3965
- PropTypes__default["default"].number,
3966
- PropTypes__default["default"].element
3967
- ]),
3968
- // @ts-expect-error
3969
- icon: PropTypes__default["default"].string
3970
- };
3971
3430
 
3972
3431
  /* istanbul ignore next */
3973
3432
  var ListboxContext = React.createContext({
@@ -4382,16 +3841,16 @@ var ComboboxNoResults = function (_a) {
4382
3841
  return (React__default["default"].createElement("div", { className: "ComboboxListbox__empty", role: "alert", "aria-live": "polite" }, children || 'No results found.'));
4383
3842
  };
4384
3843
  var Combobox = React.forwardRef(function (_a, ref) {
4385
- 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"]);
4386
- var _e = tslib.__read(React.useState(defaultValue || propValue || ''), 2), value = _e[0], setValue = _e[1];
4387
- var _f = tslib.__read(React.useState(new Map()), 2), matchingOptions = _f[0], setMatchingOptions = _f[1];
4388
- var _g = tslib.__read(React.useState(value || ''), 2), selectedValue = _g[0], setSelectedValue = _g[1];
4389
- var _h = tslib.__read(React.useState(''), 2), formValue = _h[0], setFormValue = _h[1];
4390
- var _j = tslib.__read(React.useState(false), 2), open = _j[0], setOpen = _j[1];
4391
- var _k = tslib.__read(React.useState(null), 2), activeDescendant = _k[0], setActiveDescendant = _k[1];
4392
- 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];
4393
3852
  var comboboxRef = useSharedRef(ref);
4394
- var inputRef = React.useRef(null);
3853
+ var inputRef = useSharedRef(propInputRef);
4395
3854
  var listboxRef = React.useRef(null);
4396
3855
  var isControlled = typeof propValue !== 'undefined';
4397
3856
  var isRequired = !!props.required;
@@ -4562,6 +4021,10 @@ var Combobox = React.forwardRef(function (_a, ref) {
4562
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 },
4563
4022
  comboboxOptions,
4564
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 });
4565
4028
  return (React__default["default"].createElement("div", { id: id, className: classNames__default["default"]('Combobox', className), ref: comboboxRef },
4566
4029
  name && React__default["default"].createElement("input", { type: "hidden", name: name, value: formValue }),
4567
4030
  React__default["default"].createElement("label", { className: classNames__default["default"]('Field__label', {
@@ -4576,7 +4039,7 @@ var Combobox = React.forwardRef(function (_a, ref) {
4576
4039
  // We're handling click here to open the listbox when the wrapping element is clicked,
4577
4040
  // there's already keyboard handlers to open the listbox on the input element
4578
4041
  onClick: handleInputClick },
4579
- 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 })),
4580
4043
  React__default["default"].createElement("span", { className: "Combobox__arrow" })),
4581
4044
  React__default["default"].createElement(ComboboxProvider, { autocomplete: autocomplete, inputValue: value, formValue: formValue, selectedValue: selectedValue, matches: !isAutoComplete || defaultAutoCompleteMatches, matchingOptions: matchingOptions, setMatchingOptions: setMatchingOptions, setFormValue: setFormValue }, portal
4582
4045
  ? reactDom.createPortal(comboboxListbox, portal instanceof HTMLElement
@@ -4584,7 +4047,7 @@ var Combobox = React.forwardRef(function (_a, ref) {
4584
4047
  : portal.current ||
4585
4048
  /* istanbul ignore next: default fallback value */ document.body)
4586
4049
  : comboboxListbox),
4587
- 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))));
4588
4051
  });
4589
4052
  Combobox.displayName = 'Combobox';
4590
4053
 
@@ -4632,7 +4095,9 @@ var Popover = React.forwardRef(function (_a, ref) {
4632
4095
  var placement = (attributes.popper &&
4633
4096
  attributes.popper['data-popper-placement']) ||
4634
4097
  initialPlacement;
4635
- var additionalProps = variant === 'prompt' ? { 'aria-labelledby': "".concat(id, "-label") } : {};
4098
+ var additionalProps = variant === 'prompt' && !props['aria-label']
4099
+ ? { 'aria-labelledby': "".concat(id, "-label") }
4100
+ : {};
4636
4101
  // Keep targetElement in sync with target prop
4637
4102
  React.useEffect(function () {
4638
4103
  var targetElement = target && 'current' in target ? target.current : target;
@@ -4724,7 +4189,7 @@ var Popover = React.forwardRef(function (_a, ref) {
4724
4189
  React__default["default"].createElement("div", tslib.__assign({ id: id, className: classNames__default["default"]('Popover', "Popover--".concat(placement), className, {
4725
4190
  'Popover--hidden': !show,
4726
4191
  'Popover--prompt': variant === 'prompt'
4727
- }), ref: popoverRef, role: "dialog", style: styles.popper }, attributes.popper, props, additionalProps),
4192
+ }), ref: popoverRef, role: "dialog", style: styles.popper }, attributes.popper, additionalProps, props),
4728
4193
  React__default["default"].createElement("div", { className: "Popover__popoverArrow", ref: setArrowElement, style: styles.arrow }),
4729
4194
  React__default["default"].createElement("div", { className: "Popover__borderLeft" }),
4730
4195
  variant === 'prompt' ? (React__default["default"].createElement(PromptPopoverContent, { applyButtonText: applyButtonText, onApply: onApply, closeButtonText: closeButtonText, infoText: infoText || '', onClose: handleClosePopover, infoTextId: "".concat(id, "-label") })) : (children)))), (portal && 'current' in portal ? portal.current : portal) || document.body);
@@ -4790,10 +4255,6 @@ var ThemeProvider = function (_a) {
4790
4255
  function useThemeContext() {
4791
4256
  return React.useContext(ThemeContext);
4792
4257
  }
4793
- ThemeProvider.propTypes = {
4794
- children: PropTypes__default["default"].any,
4795
- initialTheme: PropTypes__default["default"].string
4796
- };
4797
4258
 
4798
4259
  exports.Accordion = Accordion;
4799
4260
  exports.AccordionContent = AccordionContent;