@schemavaults/ui 0.12.9 → 0.12.10
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/components/layout/page-column-container/page-column-container.js +1 -1
- package/dist/components/layout/page-column-container/page-column-container.js.map +1 -1
- package/dist/components/layout/themed-page-container/themed-page-container.d.ts +1 -0
- package/dist/components/layout/themed-page-container/themed-page-container.js +9 -1
- package/dist/components/layout/themed-page-container/themed-page-container.js.map +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ import { cn } from "../../../lib/utils";
|
|
|
8
8
|
* @returns A container component that arranges children in a column with padding
|
|
9
9
|
*/
|
|
10
10
|
export function PageColumnContainer({ children, ...props }) {
|
|
11
|
-
return (_jsx("main", { className: cn("
|
|
11
|
+
return (_jsx("main", { className: cn("page-column-container", "grow", "flex flex-col", "justify-start items-stretch", props.className), children: children }));
|
|
12
12
|
}
|
|
13
13
|
export default PageColumnContainer;
|
|
14
14
|
//# sourceMappingURL=page-column-container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-column-container.js","sourceRoot":"","sources":["../../../../src/components/layout/page-column-container/page-column-container.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAOjC;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAClC,QAAQ,EACR,GAAG,KAAK,EACiB;IACzB,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CACX,
|
|
1
|
+
{"version":3,"file":"page-column-container.js","sourceRoot":"","sources":["../../../../src/components/layout/page-column-container/page-column-container.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAOjC;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAClC,QAAQ,EACR,GAAG,KAAK,EACiB;IACzB,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CACX,uBAAuB,EACvB,MAAM,EACN,eAAe,EACf,6BAA6B,EAC7B,KAAK,CAAC,SAAS,CAChB,YAEA,QAAQ,GACJ,CACR,CAAC;AACJ,CAAC;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -15,7 +15,15 @@ import { cn } from "../../../lib/utils";
|
|
|
15
15
|
* @see PageColumnContainer
|
|
16
16
|
*/
|
|
17
17
|
export function ThemedPageContainer({ children, ...props }) {
|
|
18
|
-
|
|
18
|
+
const defaultBackgroundClassName = cn("min-h-full", "p-2 sm:p-4 lg:p-6");
|
|
19
|
+
const defaultContentContainerClassName = cn("rounded-lg", "gap-2 sm:gap-4 lg:gap-6", props.additionalContentContainerClassName);
|
|
20
|
+
const backgroundClassName = typeof props.backgroundClassName === 'string' ?
|
|
21
|
+
props.backgroundClassName
|
|
22
|
+
: defaultBackgroundClassName;
|
|
23
|
+
const contentContainerClassName = typeof props.contentContainerClassName === 'string' ?
|
|
24
|
+
cn(props.contentContainerClassName, props.additionalContentContainerClassName)
|
|
25
|
+
: defaultContentContainerClassName;
|
|
26
|
+
return (_jsx(ThemedPageBackground, { className: cn("grow", "overflow-y-scroll", "flex flex-col items-stretch justify-start", backgroundClassName), children: _jsx(PageColumnContainer, { className: contentContainerClassName, children: children }) }));
|
|
19
27
|
}
|
|
20
28
|
export default ThemedPageContainer;
|
|
21
29
|
//# sourceMappingURL=themed-page-container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themed-page-container.js","sourceRoot":"","sources":["../../../../src/components/layout/themed-page-container/themed-page-container.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,oBAAoB,MAAM,wCAAwC,CAAC;AAE1E,OAAO,mBAAmB,MAAM,2CAA2C,CAAC;AAC5E,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"themed-page-container.js","sourceRoot":"","sources":["../../../../src/components/layout/themed-page-container/themed-page-container.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,oBAAoB,MAAM,wCAAwC,CAAC;AAE1E,OAAO,mBAAmB,MAAM,2CAA2C,CAAC;AAC5E,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AASjC;;;;;;;;;;GAUG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAClC,QAAQ,EACR,GAAG,KAAK,EACiB;IAEzB,MAAM,0BAA0B,GAAW,EAAE,CAC7C,YAAY,EACZ,mBAAmB,CACpB,CAAA;IAEC,MAAM,gCAAgC,GAAW,EAAE,CACjD,YAAY,EACZ,yBAAyB,EACzB,KAAK,CAAC,mCAAmC,CAC1C,CAAC;IAEF,MAAM,mBAAmB,GAAW,OAAO,KAAK,CAAC,mBAAmB,KAAK,QAAQ,CAAC,CAAC;QAC/E,KAAK,CAAC,mBAAmB;QACzB,CAAC,CAAC,0BAA0B,CAAC;IACjC,MAAM,yBAAyB,GAAW,OAAO,KAAK,CAAC,yBAAyB,KAAK,QAAQ,CAAC,CAAC;QAC3F,EAAE,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,mCAAmC,CAAC;QAC9E,CAAC,CAAC,gCAAgC,CAAC;IAEvC,OAAO,CACL,KAAC,oBAAoB,IACnB,SAAS,EAAE,EAAE,CACX,MAAM,EACN,mBAAmB,EACnB,2CAA2C,EAC3C,mBAAmB,CACpB,YAED,KAAC,mBAAmB,IAClB,SAAS,EAAE,yBAAyB,YAEnC,QAAQ,GACW,GACD,CACxB,CAAC;AACJ,CAAC;AAED,eAAe,mBAAmB,CAAC"}
|