@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.mjs
CHANGED
|
@@ -3651,7 +3651,7 @@ var isExternalUrl = (href) => {
|
|
|
3651
3651
|
}
|
|
3652
3652
|
};
|
|
3653
3653
|
var NotificationUI = (props) => {
|
|
3654
|
-
const { dataSource, className } = props;
|
|
3654
|
+
const { dataSource, className, showAnnouncement } = props;
|
|
3655
3655
|
const { routerAdapter } = useScaffoldContext();
|
|
3656
3656
|
const onItemClick = (url) => {
|
|
3657
3657
|
if (!url)
|
|
@@ -3666,11 +3666,14 @@ 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
|
{
|
|
3672
3675
|
dataSource,
|
|
3673
|
-
showAnnouncement
|
|
3676
|
+
showAnnouncement,
|
|
3674
3677
|
onClose: props.onClose,
|
|
3675
3678
|
onItemClick,
|
|
3676
3679
|
className: cn("oui-mx-auto", className)
|
|
@@ -4247,20 +4250,28 @@ var DesktopScaffold = (props) => {
|
|
|
4247
4250
|
classNames?.container
|
|
4248
4251
|
),
|
|
4249
4252
|
children: [
|
|
4250
|
-
/* @__PURE__ */ jsxs(
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4253
|
+
/* @__PURE__ */ jsxs(
|
|
4254
|
+
Box,
|
|
4255
|
+
{
|
|
4256
|
+
px: 2,
|
|
4257
|
+
ref: announcementRef,
|
|
4258
|
+
className: cn("oui-space-y-2", "oui-mt-2"),
|
|
4259
|
+
children: [
|
|
4260
|
+
/* @__PURE__ */ jsx(
|
|
4261
|
+
RestrictedInfoWidget,
|
|
4262
|
+
{
|
|
4263
|
+
className: cn(
|
|
4264
|
+
"oui-scaffold-restricted-info",
|
|
4265
|
+
"oui-relative oui-z-[1]",
|
|
4266
|
+
"oui-bg-base-9",
|
|
4267
|
+
"oui-min-w-[994px]"
|
|
4268
|
+
)
|
|
4269
|
+
}
|
|
4270
|
+
),
|
|
4271
|
+
/* @__PURE__ */ jsx(NotificationWidget, { className: "oui-mx-auto" })
|
|
4272
|
+
]
|
|
4273
|
+
}
|
|
4274
|
+
),
|
|
4264
4275
|
!hasLeftSidebar ? (
|
|
4265
4276
|
// ----------No leftSidebar layout start ---------
|
|
4266
4277
|
/* @__PURE__ */ jsx(Box, { height: "100%", className: cn(classNames?.content), children })
|
|
@@ -4309,8 +4320,7 @@ var DesktopScaffold = (props) => {
|
|
|
4309
4320
|
),
|
|
4310
4321
|
children: footer || /* @__PURE__ */ jsx(FooterWidget, { ...footerProps })
|
|
4311
4322
|
}
|
|
4312
|
-
)
|
|
4313
|
-
/* @__PURE__ */ jsx(NotificationWidget, {})
|
|
4323
|
+
)
|
|
4314
4324
|
]
|
|
4315
4325
|
}
|
|
4316
4326
|
);
|