@ebay/ui-core-react 1.4.3 → 1.5.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.
|
@@ -56,7 +56,7 @@ var EbayInlineNotice = function (_a) {
|
|
|
56
56
|
var isGeneral = status === "general";
|
|
57
57
|
return (react_1.default.createElement("div", { className: classnames_1.default(className, "inline-notice " + (!isGeneral ? "inline-notice--" + status : "")) },
|
|
58
58
|
!isGeneral ? (react_1.default.createElement("span", { className: "inline-notice__header" },
|
|
59
|
-
react_1.default.createElement(ebay_icon_1.EbayIcon, { name: status + "
|
|
59
|
+
react_1.default.createElement(ebay_icon_1.EbayIcon, { name: status + "FilledSmall", a11yText: ariaLabel, a11yVariant: "label" }))) : null,
|
|
60
60
|
react_1.default.createElement(notice_content_1.default, __assign({}, content.props, { type: "inline" }))));
|
|
61
61
|
};
|
|
62
62
|
exports.default = EbayInlineNotice;
|
|
@@ -28,7 +28,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
28
28
|
var react_1 = __importDefault(require("react"));
|
|
29
29
|
var notice_content_1 = __importDefault(require("../common/notice-utils/notice-content"));
|
|
30
30
|
var ebay_notice_content_1 = require("../ebay-notice-base/components/ebay-notice-content");
|
|
31
|
-
var
|
|
31
|
+
var ebay_icon_1 = require("../ebay-icon");
|
|
32
32
|
var EbayPageNotice = function (_a) {
|
|
33
33
|
var _b = _a.status, status = _b === void 0 ? 'general' : _b, children = _a.children, ariaLabel = _a["aria-label"], rest = __rest(_a, ["status", "children", 'aria-label']);
|
|
34
34
|
var childrenArray = react_1.default.Children.toArray(children);
|
|
@@ -38,7 +38,7 @@ var EbayPageNotice = function (_a) {
|
|
|
38
38
|
}
|
|
39
39
|
return (react_1.default.createElement("section", __assign({}, rest, { "aria-labelledby": status + "-status", className: "page-notice " + (status !== "general" ? "page-notice--" + status : ""), role: "region" }),
|
|
40
40
|
status !== "general" ? (react_1.default.createElement("div", { className: "page-notice__header", id: status + "-status" },
|
|
41
|
-
react_1.default.createElement(
|
|
41
|
+
react_1.default.createElement(ebay_icon_1.EbayIcon, { name: status + "FilledSmall", a11yText: ariaLabel, a11yVariant: "label" }))) : null,
|
|
42
42
|
react_1.default.createElement(notice_content_1.default, __assign({}, content.props, { type: "page" })),
|
|
43
43
|
children));
|
|
44
44
|
};
|
|
@@ -29,7 +29,7 @@ var react_1 = __importDefault(require("react"));
|
|
|
29
29
|
var classnames_1 = __importDefault(require("classnames"));
|
|
30
30
|
var ebay_notice_content_1 = require("../ebay-notice-base/components/ebay-notice-content");
|
|
31
31
|
var notice_content_1 = __importDefault(require("../common/notice-utils/notice-content"));
|
|
32
|
-
var
|
|
32
|
+
var ebay_icon_1 = require("../ebay-icon");
|
|
33
33
|
var EbaySectionNotice = function (_a) {
|
|
34
34
|
var _b = _a.status, status = _b === void 0 ? 'general' : _b, children = _a.children, className = _a.className, ariaLabel = _a["aria-label"], _c = _a["aria-roledescription"], ariaRoleDescription = _c === void 0 ? 'Notice' : _c, rest = __rest(_a, ["status", "children", "className", 'aria-label', 'aria-roledescription']);
|
|
35
35
|
var childrenArray = react_1.default.Children.toArray(children);
|
|
@@ -43,7 +43,7 @@ var EbaySectionNotice = function (_a) {
|
|
|
43
43
|
}
|
|
44
44
|
return (react_1.default.createElement("section", __assign({}, rest, { className: classnames_1.default(className, "section-notice", hasStatus && "section-notice--" + status), role: "region", "aria-label": !hasStatus ? ariaLabel : null, "aria-labelledby": hasStatus ? "section-notice-" + status : null, "aria-roledescription": ariaRoleDescription }),
|
|
45
45
|
hasStatus && (react_1.default.createElement("div", { className: "section-notice__header", id: "section-notice-" + status },
|
|
46
|
-
react_1.default.createElement(
|
|
46
|
+
react_1.default.createElement(ebay_icon_1.EbayIcon, { name: status + "FilledSmall", a11yText: ariaLabel, a11yVariant: "label" }))),
|
|
47
47
|
react_1.default.createElement(notice_content_1.default, __assign({}, content.props, { type: "section" })),
|
|
48
48
|
children));
|
|
49
49
|
};
|