oneslash-design-system 2.4.0 → 2.5.0
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.
|
@@ -3,6 +3,8 @@ interface PageShellProps extends React.ComponentPropsWithoutRef<'main'> {
|
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
/** Let the column grow from the 2xl breakpoint, for pages with wide figures. */
|
|
5
5
|
wide?: boolean;
|
|
6
|
+
/** Let the column run the full width of the window, for a page that is a feed of images. Keeps the side space. */
|
|
7
|
+
fluid?: boolean;
|
|
6
8
|
}
|
|
7
|
-
export default function PageShell({ children, wide, className, ...rest }: PageShellProps): React.JSX.Element;
|
|
9
|
+
export default function PageShell({ children, wide, fluid, className, ...rest }: PageShellProps): React.JSX.Element;
|
|
8
10
|
export {};
|
|
@@ -13,9 +13,9 @@ import React from 'react';
|
|
|
13
13
|
// The frame of a page: the column, its side space, and the space between sections.
|
|
14
14
|
// Anything else given (data-* attributes, an id) goes to the <main>.
|
|
15
15
|
export default function PageShell(_a) {
|
|
16
|
-
var children = _a.children, _b = _a.wide, wide = _b === void 0 ? false : _b, _c = _a.className, className =
|
|
16
|
+
var children = _a.children, _b = _a.wide, wide = _b === void 0 ? false : _b, _c = _a.fluid, fluid = _c === void 0 ? false : _c, _d = _a.className, className = _d === void 0 ? '' : _d, rest = __rest(_a, ["children", "wide", "fluid", "className"]);
|
|
17
17
|
return (<main className={"min-h-screen ".concat(className)} {...rest}>
|
|
18
|
-
<div className={"mx-auto flex w-full
|
|
18
|
+
<div className={"mx-auto flex w-full flex-col gap-section px-xlarge pb-page pt-giant md:px-xxlarge ".concat(fluid ? '' : "max-w-page ".concat(wide ? '2xl:max-w-page-wide' : ''))}>
|
|
19
19
|
{children}
|
|
20
20
|
</div>
|
|
21
21
|
</main>);
|