@lax-wp/design-system 0.5.14 → 0.5.15
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.
|
@@ -11,6 +11,8 @@ export type CardMainProps = {
|
|
|
11
11
|
mode?: string | null;
|
|
12
12
|
/** Display ID to show in banner */
|
|
13
13
|
displayId?: string | null;
|
|
14
|
+
/** Whether the main sidebar is expanded */
|
|
15
|
+
isMainSideBarOpen?: boolean;
|
|
14
16
|
};
|
|
15
17
|
/**
|
|
16
18
|
* CardMain component for main content areas with optional edit/comparison banners
|
package/dist/index.es.js
CHANGED
|
@@ -17274,9 +17274,10 @@ const m2 = ({
|
|
|
17274
17274
|
noBanner: a,
|
|
17275
17275
|
noScrollbar: i,
|
|
17276
17276
|
mode: o,
|
|
17277
|
-
displayId: l
|
|
17277
|
+
displayId: l,
|
|
17278
|
+
isMainSideBarOpen: s = !1
|
|
17278
17279
|
}) => {
|
|
17279
|
-
const
|
|
17280
|
+
const c = o === we.EDIT || o === we.FOCUS_EDIT ? "edit" : o === we.COMPARISON ? "compare" : null, d = cA(() => c === "edit" && l && !a || c === "compare", [c, l, a]);
|
|
17280
17281
|
return Qa(), /* @__PURE__ */ P(bA, { children: [
|
|
17281
17282
|
/* @__PURE__ */ n(ot, { title: A }),
|
|
17282
17283
|
/* @__PURE__ */ P(
|
|
@@ -17285,17 +17286,18 @@ const m2 = ({
|
|
|
17285
17286
|
className: q(
|
|
17286
17287
|
"relative h-[calc(100vh-56px)] overflow-y-auto flex flex-col bg-primary-800 dark:bg-black-800",
|
|
17287
17288
|
`ease-in-out duration-${ei}`,
|
|
17289
|
+
s ? "lg:ml-sidebar-width ml-[60px]" : "ml-[60px]",
|
|
17288
17290
|
r
|
|
17289
17291
|
),
|
|
17290
17292
|
children: [
|
|
17291
|
-
|
|
17293
|
+
c === "edit" && l && !a ? /* @__PURE__ */ n(Tt, { status: "warning", children: `You're currently editing ${l || ""}` }) : c === "compare" ? /* @__PURE__ */ n(Tt, { status: "success", children: "You are now in Comparison Mode" }) : null,
|
|
17292
17294
|
/* @__PURE__ */ n(
|
|
17293
17295
|
"div",
|
|
17294
17296
|
{
|
|
17295
17297
|
className: q(
|
|
17296
17298
|
`flex-1 overflow-y-auto overflow-x-hidden bg-gray-50 dark:bg-black-700 ${i ? "hide-scrollbar" : ""}`,
|
|
17297
17299
|
t ? "p-0" : "p-base",
|
|
17298
|
-
|
|
17300
|
+
d ? "rounded-tl-none" : "!rounded-tl-xl"
|
|
17299
17301
|
),
|
|
17300
17302
|
id: "app-body-container",
|
|
17301
17303
|
children: e
|