@ebay/ui-core-react 3.3.3 → 3.4.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.
- package/README.md +2 -2
- package/ebay-infotip/README.md +1 -3
- package/ebay-infotip/ebay-infotip.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -56,8 +56,8 @@ eBayUI React components
|
|
|
56
56
|
* [x] [ebay-select](src/ebay-select)
|
|
57
57
|
* [ ] `ebay-snackbar-dialog`
|
|
58
58
|
* [ ] `ebay-split-button`
|
|
59
|
-
* [
|
|
60
|
-
* [
|
|
59
|
+
* [x] [ebay-star-rating](src/ebay-star-rating)
|
|
60
|
+
* [x] [ebay-star-rating-select](src/ebay-star-rating-select)
|
|
61
61
|
* [x] [ebay-switch](src/ebay-switch)
|
|
62
62
|
* [x] [ebay-signal](src/ebay-signal)
|
|
63
63
|
* [x] [ebay-tabs](src/ebay-tabs)
|
package/ebay-infotip/README.md
CHANGED
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
EbayInfotipHost,
|
|
13
13
|
EbayInfotipContent,
|
|
14
14
|
EbayInfotipHeading,
|
|
15
|
-
EbayInfotipCloseButton,
|
|
16
15
|
} from '@ebay/ui-core-react/ebay-infotip'
|
|
17
16
|
```
|
|
18
17
|
|
|
@@ -36,10 +35,9 @@ yarn add @ebay/ui-core-react
|
|
|
36
35
|
|
|
37
36
|
```jsx harmony
|
|
38
37
|
<EbayInfotip>
|
|
38
|
+
<EbayInfotipHeading>Heading</EbayInfotipHeading>
|
|
39
39
|
<EbayInfotipContent>
|
|
40
|
-
<EbayInfotipHeading>Heading</EbayInfotipHeading>
|
|
41
40
|
<p>Here's a tip to help you be successful at your task.</p>
|
|
42
|
-
<EbayInfotipCloseButton aria-label="Dismiss info" />
|
|
43
41
|
</EbayInfotipContent>
|
|
44
42
|
</EbayInfotip>
|
|
45
43
|
```
|
|
@@ -48,7 +48,7 @@ var react_1 = __importStar(require("react"));
|
|
|
48
48
|
var classnames_1 = __importDefault(require("classnames"));
|
|
49
49
|
var component_utils_1 = require("../common/component-utils");
|
|
50
50
|
var tooltip_utils_1 = require("../common/tooltip-utils");
|
|
51
|
-
var
|
|
51
|
+
var ebay_drawer_dialog_1 = require("../ebay-drawer-dialog");
|
|
52
52
|
var ebay_dialog_base_1 = require("../ebay-dialog-base");
|
|
53
53
|
var ebay_infotip_host_1 = __importDefault(require("./ebay-infotip-host"));
|
|
54
54
|
var index_1 = require("./index");
|
|
@@ -76,8 +76,8 @@ var EbayInfotip = function (_a) {
|
|
|
76
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
77
|
react_1.default.createElement(tooltip_utils_1.TooltipHost, null, react_1.cloneElement(button, __assign({ ref: buttonRef, onClick: toggleTooltip, disabled: disabled,
|
|
78
78
|
variant: variant, 'aria-label': ariaLabel, 'aria-expanded': isExpanded, icon: icon }, button.props))),
|
|
79
|
-
isModal ? (react_1.default.createElement(
|
|
80
|
-
react_1.default.createElement(ebay_dialog_base_1.EbayDialogHeader, null),
|
|
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" }),
|
|
80
|
+
react_1.default.createElement(ebay_dialog_base_1.EbayDialogHeader, null, heading),
|
|
81
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
82
|
heading,
|
|
83
83
|
contentChildren))));
|