@imperium/layout 7.3.0 → 8.0.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.
- package/README.md +4 -0
- package/dist/client.js +81 -52
- package/dist/client.min.js +1 -1
- package/dist/client.min.js.map +1 -1
- package/dist/commonItems.d.ts +4 -4
- package/dist/content/types.d.ts +4 -2
- package/dist/content/utils.d.ts +1 -1
- package/dist/layout/types.d.ts +3 -3
- package/dist/layout/utils.d.ts +1 -1
- package/package.json +6 -6
- package/dist/content/components/ActionLinkSidebarItemComponent.d.ts +0 -9
- package/dist/content/components/ContentItemWrapper.d.ts +0 -12
- package/dist/content/components/dividerSidebarItem.d.ts +0 -2
- package/dist/hooks/DataHooks.d.ts +0 -12
- package/dist/hooks/ExecuteDataHook.d.ts +0 -7
- package/dist/hooks/types.d.ts +0 -19
- package/dist/layout/components/CustomItem.d.ts +0 -7
- package/dist/layout/components/CustomItemComponent.d.ts +0 -7
- package/dist/layout/components/ItemBar.d.ts +0 -15
- package/dist/layout/components/ItemWrapper.d.ts +0 -19
- package/dist/layout/components/SidebarToggleMenuItem.d.ts +0 -7
- package/dist/layout/hooks/useBuildData.d.ts +0 -3
- package/dist/layout/hooks/useIsActiveRoute.d.ts +0 -2
- package/dist/layout/hooks/useSelectState.d.ts +0 -2
- package/dist/layout/mergeItems.d.ts +0 -2
package/README.md
CHANGED
|
@@ -81,6 +81,7 @@ export const routeProps = createPages(routes, {
|
|
|
81
81
|
content: (data: Data) => JSX.Element,
|
|
82
82
|
header: /*One of: string | {title: string, icon?: string} | (data: Data) => {title: string, icon?: string} */,
|
|
83
83
|
sidebar: [ /* SidebarItem array */ ],
|
|
84
|
+
full: boolean,
|
|
84
85
|
}
|
|
85
86
|
});
|
|
86
87
|
```
|
|
@@ -105,6 +106,9 @@ If header is not specified, there will be no header.
|
|
|
105
106
|
Array of Sidebar Items. The sidebar is an optional vertical menu on the right side of the content area. It should usually
|
|
106
107
|
be comprised of button actions. There are different types of sidebar items that can be rendered.
|
|
107
108
|
|
|
109
|
+
### Full
|
|
110
|
+
Sets the height of the content area to 100% and has no margins.
|
|
111
|
+
|
|
108
112
|
## Add layout and pages to your feature index
|
|
109
113
|
In your feature `index.ts` file, add layout and pages (routeProps). Layout is not optional, but it can be an empty object.
|
|
110
114
|
Using `createPages()` is entirely optional.
|