@kodiak-finance/orderly-ui-scaffold 2.8.21-alpha.0 → 2.8.21-beta.3

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 CHANGED
@@ -3658,7 +3658,7 @@ var isExternalUrl = (href) => {
3658
3658
  }
3659
3659
  };
3660
3660
  var NotificationUI = (props) => {
3661
- const { dataSource, showAnnouncement, className } = props;
3661
+ const { dataSource, className, showAnnouncement } = props;
3662
3662
  const { routerAdapter } = useScaffoldContext();
3663
3663
  const onItemClick = (url) => {
3664
3664
  if (!url)
@@ -3673,6 +3673,9 @@ var NotificationUI = (props) => {
3673
3673
  if (len === 0) {
3674
3674
  return null;
3675
3675
  }
3676
+ if (!showAnnouncement) {
3677
+ return null;
3678
+ }
3676
3679
  return /* @__PURE__ */ jsxRuntime.jsx(
3677
3680
  orderlyUiNotification.AnnouncementBannerUI,
3678
3681
  {
@@ -3730,7 +3733,7 @@ var MobileScaffold = (props) => {
3730
3733
  classNames?.root
3731
3734
  ),
3732
3735
  children: [
3733
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "oui-mx-1 oui-mb-1", children: /* @__PURE__ */ jsxRuntime.jsx(NotificationWidget, {}) }),
3736
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "oui-mx-1 oui-mt-1", children: /* @__PURE__ */ jsxRuntime.jsx(NotificationWidget, {}) }),
3734
3737
  /* @__PURE__ */ jsxRuntime.jsx(
3735
3738
  "header",
3736
3739
  {
@@ -4254,7 +4257,7 @@ var DesktopScaffold = (props) => {
4254
4257
  classNames?.container
4255
4258
  ),
4256
4259
  children: [
4257
- /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Box, { px: 2, ref: announcementRef, className: "oui-space-y-2", children: [
4260
+ /* @__PURE__ */ jsxRuntime.jsxs(orderlyUi.Box, { px: 2, ref: announcementRef, className: orderlyUi.cn("oui-space-y-2", "oui-mt-2"), children: [
4258
4261
  /* @__PURE__ */ jsxRuntime.jsx(
4259
4262
  exports.RestrictedInfoWidget,
4260
4263
  {
@@ -4316,8 +4319,7 @@ var DesktopScaffold = (props) => {
4316
4319
  ),
4317
4320
  children: footer || /* @__PURE__ */ jsxRuntime.jsx(FooterWidget, { ...footerProps })
4318
4321
  }
4319
- ),
4320
- /* @__PURE__ */ jsxRuntime.jsx(NotificationWidget, {})
4322
+ )
4321
4323
  ]
4322
4324
  }
4323
4325
  );