@kodiak-finance/orderly-ui-scaffold 2.8.21-rc.1 → 2.8.21
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 +28 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -3658,7 +3658,7 @@ var isExternalUrl = (href) => {
|
|
|
3658
3658
|
}
|
|
3659
3659
|
};
|
|
3660
3660
|
var NotificationUI = (props) => {
|
|
3661
|
-
const { dataSource, className } = props;
|
|
3661
|
+
const { dataSource, className, showAnnouncement } = props;
|
|
3662
3662
|
const { routerAdapter } = useScaffoldContext();
|
|
3663
3663
|
const onItemClick = (url) => {
|
|
3664
3664
|
if (!url)
|
|
@@ -3673,11 +3673,14 @@ 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
|
{
|
|
3679
3682
|
dataSource,
|
|
3680
|
-
showAnnouncement
|
|
3683
|
+
showAnnouncement,
|
|
3681
3684
|
onClose: props.onClose,
|
|
3682
3685
|
onItemClick,
|
|
3683
3686
|
className: orderlyUi.cn("oui-mx-auto", className)
|
|
@@ -4254,20 +4257,28 @@ var DesktopScaffold = (props) => {
|
|
|
4254
4257
|
classNames?.container
|
|
4255
4258
|
),
|
|
4256
4259
|
children: [
|
|
4257
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4260
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4261
|
+
orderlyUi.Box,
|
|
4262
|
+
{
|
|
4263
|
+
px: 2,
|
|
4264
|
+
ref: announcementRef,
|
|
4265
|
+
className: orderlyUi.cn("oui-space-y-2", "oui-mt-2"),
|
|
4266
|
+
children: [
|
|
4267
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4268
|
+
exports.RestrictedInfoWidget,
|
|
4269
|
+
{
|
|
4270
|
+
className: orderlyUi.cn(
|
|
4271
|
+
"oui-scaffold-restricted-info",
|
|
4272
|
+
"oui-relative oui-z-[1]",
|
|
4273
|
+
"oui-bg-base-9",
|
|
4274
|
+
"oui-min-w-[994px]"
|
|
4275
|
+
)
|
|
4276
|
+
}
|
|
4277
|
+
),
|
|
4278
|
+
/* @__PURE__ */ jsxRuntime.jsx(NotificationWidget, { className: "oui-mx-auto" })
|
|
4279
|
+
]
|
|
4280
|
+
}
|
|
4281
|
+
),
|
|
4271
4282
|
!hasLeftSidebar ? (
|
|
4272
4283
|
// ----------No leftSidebar layout start ---------
|
|
4273
4284
|
/* @__PURE__ */ jsxRuntime.jsx(orderlyUi.Box, { height: "100%", className: orderlyUi.cn(classNames?.content), children })
|
|
@@ -4316,8 +4327,7 @@ var DesktopScaffold = (props) => {
|
|
|
4316
4327
|
),
|
|
4317
4328
|
children: footer || /* @__PURE__ */ jsxRuntime.jsx(FooterWidget, { ...footerProps })
|
|
4318
4329
|
}
|
|
4319
|
-
)
|
|
4320
|
-
/* @__PURE__ */ jsxRuntime.jsx(NotificationWidget, {})
|
|
4330
|
+
)
|
|
4321
4331
|
]
|
|
4322
4332
|
}
|
|
4323
4333
|
);
|