@loomhq/lens 11.0.3 → 11.1.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.
|
@@ -5,7 +5,7 @@ declare const NotificationBar: ({ children, onCloseClick, isOpen, severity, id,
|
|
|
5
5
|
type NotificationBarProps = {
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
isOpen?: boolean;
|
|
8
|
-
onCloseClick
|
|
8
|
+
onCloseClick?: () => void;
|
|
9
9
|
severity: SeverityLevels;
|
|
10
10
|
};
|
|
11
11
|
type NotificationBarWrapperProps = {
|
package/dist/index.js
CHANGED
|
@@ -4267,7 +4267,7 @@ var NotificationBar = ({
|
|
|
4267
4267
|
const keyListener = (e) => {
|
|
4268
4268
|
if (e.key === "Escape") {
|
|
4269
4269
|
e.preventDefault();
|
|
4270
|
-
onCloseClick();
|
|
4270
|
+
onCloseClick && onCloseClick();
|
|
4271
4271
|
}
|
|
4272
4272
|
};
|
|
4273
4273
|
window.addEventListener("keydown", keyListener);
|
|
@@ -4310,7 +4310,7 @@ var NotificationBar = ({
|
|
|
4310
4310
|
children
|
|
4311
4311
|
)
|
|
4312
4312
|
)
|
|
4313
|
-
), /* @__PURE__ */ React34.createElement(
|
|
4313
|
+
), onCloseClick && /* @__PURE__ */ React34.createElement(
|
|
4314
4314
|
icon_button_default,
|
|
4315
4315
|
{
|
|
4316
4316
|
iconColor: (_c = severityStyles[severity].color) != null ? _c : "var(--lns-color-white)",
|