@ebay/ui-core-react 5.11.2 → 5.13.0

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 (70) hide show
  1. package/common/component-utils/utils.d.ts +8 -5
  2. package/common/component-utils/utils.d.ts.map +1 -1
  3. package/common/component-utils/utils.js +47 -29
  4. package/common/event-utils/index.d.ts +2 -2
  5. package/common/event-utils/index.d.ts.map +1 -1
  6. package/common/event-utils/use-roving-index.d.ts.map +1 -1
  7. package/common/event-utils/use-roving-index.js +1 -1
  8. package/common/tooltip-utils/tooltip-content.js +1 -1
  9. package/common/tooltip-utils/tooltip.d.ts +1 -1
  10. package/common/tooltip-utils/tooltip.d.ts.map +1 -1
  11. package/common/tooltip-utils/tooltip.js +2 -2
  12. package/ebay-breadcrumbs/breadcrumbs.d.ts.map +1 -1
  13. package/ebay-breadcrumbs/breadcrumbs.js +4 -3
  14. package/ebay-button/button.d.ts +4 -3
  15. package/ebay-button/button.d.ts.map +1 -1
  16. package/ebay-carousel/helpers.d.ts.map +1 -1
  17. package/ebay-carousel/helpers.js +4 -3
  18. package/ebay-checkbox/checkbox.d.ts.map +1 -1
  19. package/ebay-checkbox/checkbox.js +1 -1
  20. package/ebay-dialog-base/components/dialogBase.d.ts.map +1 -1
  21. package/ebay-dialog-base/components/dialogBase.js +6 -2
  22. package/ebay-fake-menu/menu.d.ts.map +1 -1
  23. package/ebay-fake-menu/menu.js +3 -2
  24. package/ebay-fake-menu-button/menu-button.d.ts.map +1 -1
  25. package/ebay-fake-menu-button/menu-button.js +1 -1
  26. package/ebay-fake-tabs/fake-tabs.d.ts.map +1 -1
  27. package/ebay-fake-tabs/fake-tabs.js +1 -1
  28. package/ebay-icon/icon.d.ts +1 -1
  29. package/ebay-icon-button/icon-button.d.ts +2 -2
  30. package/ebay-icon-button/icon-button.d.ts.map +1 -1
  31. package/ebay-infotip/ebay-infotip-host.d.ts +1 -1
  32. package/ebay-infotip/ebay-infotip-host.d.ts.map +1 -1
  33. package/ebay-infotip/ebay-infotip-host.js +3 -6
  34. package/ebay-infotip/ebay-infotip.d.ts +3 -21
  35. package/ebay-infotip/ebay-infotip.d.ts.map +1 -1
  36. package/ebay-infotip/ebay-infotip.js +16 -4
  37. package/ebay-infotip/index.d.ts +1 -1
  38. package/ebay-infotip/index.d.ts.map +1 -1
  39. package/ebay-infotip/types.d.ts +19 -0
  40. package/ebay-infotip/types.d.ts.map +1 -1
  41. package/ebay-inline-notice/inline-notice.js +1 -1
  42. package/ebay-listbox-button/listbox-button-option.d.ts +1 -1
  43. package/ebay-listbox-button/listbox-button-option.d.ts.map +1 -1
  44. package/ebay-listbox-button/listbox-button.js +3 -4
  45. package/ebay-menu/menu.d.ts +1 -1
  46. package/ebay-menu-button/menu-button-separator.d.ts +2 -2
  47. package/ebay-menu-button/menu-button-separator.d.ts.map +1 -1
  48. package/ebay-menu-button/menu-button.d.ts.map +1 -1
  49. package/ebay-menu-button/menu-button.js +2 -2
  50. package/ebay-menu-button/types.d.ts +3 -3
  51. package/ebay-menu-button/types.d.ts.map +1 -1
  52. package/ebay-page-notice/page-notice.d.ts.map +1 -1
  53. package/ebay-page-notice/page-notice.js +3 -3
  54. package/ebay-pagination/index.d.ts +3 -3
  55. package/ebay-pagination/index.d.ts.map +1 -1
  56. package/ebay-pagination/pagination-item.d.ts +1 -1
  57. package/ebay-pagination/pagination.d.ts +1 -1
  58. package/ebay-pagination/pagination.d.ts.map +1 -1
  59. package/ebay-pagination/pagination.js +9 -11
  60. package/ebay-select/ebay-select.d.ts.map +1 -1
  61. package/ebay-select/ebay-select.js +1 -1
  62. package/ebay-split-button/split-button.js +1 -1
  63. package/ebay-tabs/tabs.d.ts.map +1 -1
  64. package/ebay-tabs/tabs.js +3 -3
  65. package/ebay-textbox/textbox.d.ts +1 -1
  66. package/ebay-textbox/textbox.js +1 -1
  67. package/ebay-tooltip/ebay-tooltip.js +2 -2
  68. package/ebay-tourtip/ebay-tourtip.js +2 -2
  69. package/ebay-video/video.js +1 -4
  70. package/package.json +1 -1
@@ -90,7 +90,7 @@ var EbayTooltip = function (_a) {
90
90
  throw new Error("EbayTooltip: Please use a EbayTooltipContent that defines the content of the tooltip");
91
91
  }
92
92
  return (react_1.default.createElement(tooltip_utils_1.Tooltip, __assign({}, rest, { className: className, type: "tooltip", isExpanded: isExpanded, onFocus: handleOnFocus, onBlur: handleOnBlur, onMouseEnter: handleOnMouseEnter, onMouseLeave: handleOnMouseLeave }),
93
- react_1.default.createElement(tooltip_utils_1.TooltipHost, __assign({}, host.props)),
94
- react_1.default.createElement(tooltip_utils_1.TooltipContent, __assign({}, content.props, { type: "tooltip", style: overlayStyle, pointer: pointer }))));
93
+ react_1.default.createElement(tooltip_utils_1.TooltipHost, __assign({}, (0, component_utils_1.elementProps)(host))),
94
+ react_1.default.createElement(tooltip_utils_1.TooltipContent, __assign({}, (0, component_utils_1.elementProps)(content), { type: "tooltip", style: overlayStyle, pointer: pointer }))));
95
95
  };
96
96
  exports.default = EbayTooltip;
@@ -64,7 +64,7 @@ var EbayTourtip = function (_a) {
64
64
  if (!content) {
65
65
  throw new Error("EbayTourtip: Please use a EbayTourtipContent that defines the content of the tourtip");
66
66
  }
67
- var _c = content.props, contentChildren = _c.children, contentProps = _c.contentProps;
67
+ var _c = (0, component_utils_1.elementProps)(content), contentChildren = _c.children, _d = _c.contentProps, contentProps = _d === void 0 ? {} : _d;
68
68
  var host = (0, component_utils_1.findComponent)(children, ebay_tourtip_host_1.default);
69
69
  if (!host) {
70
70
  throw new Error("EbayTourtip: Please use a EbayTourtipHost that defines the host of the tourtip");
@@ -72,7 +72,7 @@ var EbayTourtip = function (_a) {
72
72
  var heading = (0, component_utils_1.findComponent)(children, ebay_tourtip_heading_1.default);
73
73
  var footer = (0, component_utils_1.findComponent)(children, ebay_tourtip_footer_1.default);
74
74
  return (react_1.default.createElement(tooltip_utils_1.Tooltip, __assign({}, rest, { className: className, type: "tourtip", isExpanded: isExpanded, ref: containerRef }),
75
- react_1.default.createElement(tooltip_utils_1.TooltipHost, __assign({}, host.props, { forwardedRef: hostRef, "aria-label": ariaLabel, "aria-expanded": isExpanded })),
75
+ react_1.default.createElement(tooltip_utils_1.TooltipHost, __assign({}, (0, component_utils_1.elementProps)(host), { forwardedRef: hostRef, "aria-label": ariaLabel, "aria-expanded": isExpanded })),
76
76
  react_1.default.createElement(tooltip_utils_1.TooltipContent, __assign({}, contentProps, { a11yCloseText: a11yCloseText, onClose: collapseTooltip, pointer: pointer, showCloseButton: true, style: overlayStyle, type: "tourtip" }),
77
77
  heading,
78
78
  contentChildren,
@@ -82,10 +82,7 @@ var EbayVideo = function (_a) {
82
82
  var videoRef = (0, react_1.useRef)(null);
83
83
  var playerRef = (0, react_1.useRef)(null);
84
84
  var uiRef = (0, react_1.useRef)(null);
85
- var sources = (0, component_utils_1.filterByType)(children, source_1.default).map(function (_a) {
86
- var props = _a.props;
87
- return props;
88
- });
85
+ var sources = (0, component_utils_1.filterByType)(children, source_1.default).map(component_utils_1.elementProps);
89
86
  var handleError = function (err) {
90
87
  setLoaded(true);
91
88
  setFailed(true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebay/ui-core-react",
3
- "version": "5.11.2",
3
+ "version": "5.13.0",
4
4
  "description": "Skin components build off React",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org"