@olwiba/ui 0.2.5 → 0.2.6
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.d.ts +10 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/app/AppShell.tsx +11 -1
package/dist/index.d.ts
CHANGED
|
@@ -258,8 +258,17 @@ interface AppShellProps {
|
|
|
258
258
|
sidebarPosition?: 'viewport' | 'contained';
|
|
259
259
|
/** Which side the sidebar sits on. @default "left" */
|
|
260
260
|
side?: 'left' | 'right';
|
|
261
|
+
/**
|
|
262
|
+
* Class applied to the content wrapper around `children`, between the
|
|
263
|
+
* header and the page content. Every consuming page otherwise has to
|
|
264
|
+
* remember its own padding — some do, some don't, and the ones that don't
|
|
265
|
+
* end up flush against the sidebar/header chrome. Override to `''` for a
|
|
266
|
+
* genuinely edge-to-edge page (a full-width table, a map/canvas).
|
|
267
|
+
* @default "p-6"
|
|
268
|
+
*/
|
|
269
|
+
contentClassName?: string;
|
|
261
270
|
}
|
|
262
|
-
declare function AppShell({ brand, navItems, action, user, pageTitle, headerStart, headerEnd, renderLink, collapsible, sidebarPosition, side, children, }?: AppShellProps): react_jsx_runtime.JSX.Element;
|
|
271
|
+
declare function AppShell({ brand, navItems, action, user, pageTitle, headerStart, headerEnd, renderLink, collapsible, sidebarPosition, side, contentClassName, children, }?: AppShellProps): react_jsx_runtime.JSX.Element;
|
|
263
272
|
|
|
264
273
|
interface AuthFormProps {
|
|
265
274
|
/**
|
package/dist/index.js
CHANGED
|
@@ -429,6 +429,7 @@ function AppShell({
|
|
|
429
429
|
collapsible = "icon",
|
|
430
430
|
sidebarPosition = "viewport",
|
|
431
431
|
side = "left",
|
|
432
|
+
contentClassName = "p-6",
|
|
432
433
|
children
|
|
433
434
|
} = {}) {
|
|
434
435
|
const isContained = sidebarPosition === "contained";
|
|
@@ -453,7 +454,7 @@ function AppShell({
|
|
|
453
454
|
),
|
|
454
455
|
/* @__PURE__ */ jsxs(SidebarInset, { className: isContained ? void 0 : "overflow-y-auto", children: [
|
|
455
456
|
/* @__PURE__ */ jsx(ShellHeader, { pageTitle, headerStart, headerEnd }),
|
|
456
|
-
children
|
|
457
|
+
/* @__PURE__ */ jsx("div", { className: contentClassName, children })
|
|
457
458
|
] })
|
|
458
459
|
]
|
|
459
460
|
}
|