@ebay/ui-core-react 4.2.4 → 4.2.6

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.
package/README.md CHANGED
@@ -6,7 +6,7 @@ eBayUI React components
6
6
 
7
7
  ### Requirements
8
8
 
9
- * [Node.js](https://nodejs.org/en/) (v16.14+)
9
+ * [Node.js](https://nodejs.org/en/) (v18.13)
10
10
  * [React](https://reactjs.org/) (v16.8+)
11
11
  * [eBay Skin](https://ebay.github.io/skin/) (v16)
12
12
 
@@ -125,11 +125,13 @@ But we suggest to use polyfills automatically by editing your `.babelrc`:
125
125
  "useBuiltIns": "usage",
126
126
  "corejs": "3",
127
127
  "targets": {
128
- "chrome": "63",
129
- "safari": "12",
130
- "ios": "12",
131
- "edge": "18",
132
- "ie": "11"
128
+ "Chrome": 87,
129
+ "Firefox": 78,
130
+ "Safari": 11,
131
+ "Edge": 103,
132
+ "Opera": 89,
133
+ "ChromeAndroid": 83,
134
+ "ios_saf": 12
133
135
  }
134
136
  }
135
137
  ]
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/common/tooltip-utils/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAgB,cAAc,EAAM,SAAS,EAAE,MAAM,OAAO,CAAA;AAI1E,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAGrC,oBAAY,YAAY,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IAChD,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;CAC7C,CAAA;;AAyCD,wBAAsC"}
1
+ {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/common/tooltip-utils/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAgB,cAAc,EAAM,SAAS,EAAE,MAAM,OAAO,CAAA;AAI1E,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAGrC,oBAAY,YAAY,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IAChD,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;CAC7C,CAAA;;AAqCD,wBAAsC"}
@@ -51,16 +51,14 @@ var component_utils_1 = require("../component-utils");
51
51
  var tooltip_host_1 = __importDefault(require("./tooltip-host"));
52
52
  var Tooltip = function (_a) {
53
53
  var _b;
54
+ var _c;
54
55
  var className = _a.className, type = _a.type, isExpanded = _a.isExpanded, children = _a.children, forwardedRef = _a.forwardedRef, rest = __rest(_a, ["className", "type", "isExpanded", "children", "forwardedRef"]);
55
56
  var originalHostComponent = component_utils_1.findComponent(children, tooltip_host_1.default);
56
57
  var content = component_utils_1.excludeComponent(children, tooltip_host_1.default)[0];
57
58
  if (!originalHostComponent) {
58
59
  throw new Error("Tooltip: Please use a TooltipHost that defines the host of the tooltip");
59
60
  }
60
- if (!content) {
61
- throw new Error("Tooltip: Please use a component that defines the content of the tooltip");
62
- }
63
- var host = react_1.cloneElement(originalHostComponent, __assign({ className: type + "__host", 'aria-expanded': isExpanded, 'aria-describedby': content.props.id }, originalHostComponent.props));
61
+ var host = react_1.cloneElement(originalHostComponent, __assign({ className: type + "__host", 'aria-expanded': isExpanded, 'aria-describedby': (_c = content === null || content === void 0 ? void 0 : content.props) === null || _c === void 0 ? void 0 : _c.id }, originalHostComponent.props));
64
62
  return (react_1.default.createElement("span", __assign({}, rest, { ref: forwardedRef, className: classnames_1.default(className, type, (_b = {},
65
63
  _b[type + "--expanded"] = isExpanded,
66
64
  _b)) }),
@@ -1 +1 @@
1
- {"version":3,"file":"ebay-infotip.d.ts","sourceRoot":"","sources":["../../src/ebay-infotip/ebay-infotip.tsx"],"names":[],"mappings":"AAAA,O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EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,gBAAgB,CAAC,EAAC,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAC,MAAM,CAAC;CAC5B,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,EAAE,CAAC,YAAY,CA+FjC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -73,13 +73,15 @@ var EbayInfotip = function (_a) {
73
73
  throw new Error("EbayInfotip: Please use a EbayInfotipContent that defines the content of the infotip");
74
74
  }
75
75
  var _e = content.props, contentChildren = _e.children, contentProps = __rest(_e, ["children"]);
76
- return (react_1.default.createElement(tooltip_utils_1.Tooltip, { type: "infotip", isExpanded: isExpanded, className: classnames_1.default(className, { 'dialog--mini': isModal }), ref: containerRef },
77
- react_1.default.createElement(tooltip_utils_1.TooltipHost, null, react_1.cloneElement(button, __assign({ ref: buttonRef, onClick: toggleTooltip, disabled: disabled,
78
- variant: variant, 'aria-label': ariaLabel, 'aria-expanded': isExpanded, icon: icon }, button.props))),
79
- isModal ? (react_1.default.createElement(ebay_drawer_dialog_1.EbayDrawerDialog, __assign({}, contentProps, { open: isExpanded, onClose: collapseTooltip, mode: "mini", a11yCloseText: a11yCloseText, className: "dialog--mini__overlay", a11yMaximizeText: a11yMaximizeText, a11yMinimizeText: a11yMinimizeText }),
76
+ return (react_1.default.createElement(react_1.default.Fragment, null,
77
+ react_1.default.createElement(tooltip_utils_1.Tooltip, { type: "infotip", isExpanded: isExpanded, className: classnames_1.default(className, { 'dialog--mini': isModal }), ref: containerRef },
78
+ react_1.default.createElement(tooltip_utils_1.TooltipHost, null, react_1.cloneElement(button, __assign({ ref: buttonRef, onClick: toggleTooltip, disabled: disabled,
79
+ variant: variant, 'aria-label': ariaLabel, 'aria-expanded': isExpanded, icon: icon }, button.props))),
80
+ !isModal && (react_1.default.createElement(tooltip_utils_1.TooltipContent, __assign({}, contentProps, { type: "infotip", style: overlayStyle, pointer: pointer, showCloseButton: true, a11yCloseText: a11yCloseText, onClose: collapseTooltip }),
81
+ heading,
82
+ contentChildren))),
83
+ isModal && (react_1.default.createElement(ebay_drawer_dialog_1.EbayDrawerDialog, __assign({}, contentProps, { open: isExpanded, onClose: collapseTooltip, mode: "mini", a11yCloseText: a11yCloseText, className: "dialog--mini__overlay", a11yMaximizeText: a11yMaximizeText, a11yMinimizeText: a11yMinimizeText }),
80
84
  react_1.default.createElement(ebay_dialog_base_1.EbayDialogHeader, null, heading),
81
- contentChildren)) : (react_1.default.createElement(tooltip_utils_1.TooltipContent, __assign({}, contentProps, { type: "infotip", style: overlayStyle, pointer: pointer, showCloseButton: true, a11yCloseText: a11yCloseText, onClose: collapseTooltip }),
82
- heading,
83
85
  contentChildren))));
84
86
  };
85
87
  exports.default = EbayInfotip;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebay/ui-core-react",
3
- "version": "4.2.4",
3
+ "version": "4.2.6",
4
4
  "description": "Skin components build off React",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org"