@kodiak-finance/orderly-ui-scaffold 2.8.21-alpha.0 → 2.8.21-rc.2
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/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -5
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +11 -11
package/dist/index.mjs
CHANGED
|
@@ -3651,7 +3651,7 @@ var isExternalUrl = (href) => {
|
|
|
3651
3651
|
}
|
|
3652
3652
|
};
|
|
3653
3653
|
var NotificationUI = (props) => {
|
|
3654
|
-
const { dataSource,
|
|
3654
|
+
const { dataSource, className, showAnnouncement } = props;
|
|
3655
3655
|
const { routerAdapter } = useScaffoldContext();
|
|
3656
3656
|
const onItemClick = (url) => {
|
|
3657
3657
|
if (!url)
|
|
@@ -3666,6 +3666,9 @@ var NotificationUI = (props) => {
|
|
|
3666
3666
|
if (len === 0) {
|
|
3667
3667
|
return null;
|
|
3668
3668
|
}
|
|
3669
|
+
if (!showAnnouncement) {
|
|
3670
|
+
return null;
|
|
3671
|
+
}
|
|
3669
3672
|
return /* @__PURE__ */ jsx(
|
|
3670
3673
|
AnnouncementBannerUI,
|
|
3671
3674
|
{
|
|
@@ -3723,7 +3726,7 @@ var MobileScaffold = (props) => {
|
|
|
3723
3726
|
classNames?.root
|
|
3724
3727
|
),
|
|
3725
3728
|
children: [
|
|
3726
|
-
/* @__PURE__ */ jsx("div", { className: "oui-mx-1 oui-
|
|
3729
|
+
/* @__PURE__ */ jsx("div", { className: "oui-mx-1 oui-mt-1", children: /* @__PURE__ */ jsx(NotificationWidget, {}) }),
|
|
3727
3730
|
/* @__PURE__ */ jsx(
|
|
3728
3731
|
"header",
|
|
3729
3732
|
{
|
|
@@ -4247,7 +4250,7 @@ var DesktopScaffold = (props) => {
|
|
|
4247
4250
|
classNames?.container
|
|
4248
4251
|
),
|
|
4249
4252
|
children: [
|
|
4250
|
-
/* @__PURE__ */ jsxs(Box, { px: 2, ref: announcementRef, className: "oui-space-y-2", children: [
|
|
4253
|
+
/* @__PURE__ */ jsxs(Box, { px: 2, ref: announcementRef, className: cn("oui-space-y-2", "oui-mt-2"), children: [
|
|
4251
4254
|
/* @__PURE__ */ jsx(
|
|
4252
4255
|
RestrictedInfoWidget,
|
|
4253
4256
|
{
|
|
@@ -4309,8 +4312,7 @@ var DesktopScaffold = (props) => {
|
|
|
4309
4312
|
),
|
|
4310
4313
|
children: footer || /* @__PURE__ */ jsx(FooterWidget, { ...footerProps })
|
|
4311
4314
|
}
|
|
4312
|
-
)
|
|
4313
|
-
/* @__PURE__ */ jsx(NotificationWidget, {})
|
|
4315
|
+
)
|
|
4314
4316
|
]
|
|
4315
4317
|
}
|
|
4316
4318
|
);
|