@vuu-ui/vuu-shell 0.7.6 → 0.8.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/cjs/index.js +2 -2
- package/cjs/index.js.map +4 -4
- package/esm/index.js +2 -2
- package/esm/index.js.map +4 -4
- package/index.css +1 -1
- package/index.css.map +3 -3
- package/package.json +4 -4
- package/types/density-switch/DensitySwitch.d.ts +2 -2
- package/types/left-nav/LeftNav.d.ts +9 -0
- package/types/left-nav/index.d.ts +1 -0
- package/types/login/login-utils.d.ts +1 -1
- package/types/session-editing-form/SessionEditingForm.d.ts +2 -2
- package/types/shell-layouts/context-panel/ContextPanel.d.ts +10 -0
- package/types/shell-layouts/context-panel/index.d.ts +1 -0
- package/types/shell-layouts/index.d.ts +1 -0
- package/types/shell-layouts/useFullHeightLeftPanel.d.ts +4 -0
- package/types/shell-layouts/useInlayLeftPanel.d.ts +5 -0
- package/types/shell-layouts/useShellLayout.d.ts +7 -0
- package/types/shell.d.ts +3 -2
- package/types/theme-provider/ThemeProvider.d.ts +6 -4
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
export interface ShellLayoutProps {
|
|
3
|
+
appHeader: ReactElement;
|
|
4
|
+
leftSidePanel?: ReactElement;
|
|
5
|
+
leftSidePanelLayout?: "full-height" | "inlay";
|
|
6
|
+
}
|
|
7
|
+
export declare const useShellLayout: ({ leftSidePanelLayout, ...props }: ShellLayoutProps) => ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
package/types/shell.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactElement, ReactNode } from "react";
|
|
2
2
|
import { LayoutJSON } from "@vuu-ui/vuu-layout/src/layout-reducer";
|
|
3
|
-
import "./shell.css";
|
|
4
3
|
import { SaveLocation } from "./shellTypes";
|
|
4
|
+
import "./shell.css";
|
|
5
5
|
export type VuuUser = {
|
|
6
6
|
username: string;
|
|
7
7
|
token: string;
|
|
@@ -10,10 +10,11 @@ export interface ShellProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
10
10
|
children?: ReactNode;
|
|
11
11
|
defaultLayout?: LayoutJSON;
|
|
12
12
|
leftSidePanel?: ReactElement;
|
|
13
|
+
leftSidePanelLayout?: "full-height" | "inlay";
|
|
13
14
|
loginUrl?: string;
|
|
14
15
|
saveLocation?: SaveLocation;
|
|
15
16
|
saveUrl?: string;
|
|
16
17
|
serverUrl?: string;
|
|
17
18
|
user: VuuUser;
|
|
18
19
|
}
|
|
19
|
-
export declare const Shell: ({ children, className: classNameProp, defaultLayout, leftSidePanel, loginUrl, saveLocation, saveUrl, serverUrl, user, ...htmlAttributes }: ShellProps) => JSX.Element;
|
|
20
|
+
export declare const Shell: ({ children, className: classNameProp, defaultLayout, leftSidePanel, leftSidePanelLayout, loginUrl, saveLocation, saveUrl, serverUrl, user, ...htmlAttributes }: ShellProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
2
|
export declare const DEFAULT_DENSITY: Density;
|
|
3
3
|
export declare const DEFAULT_THEME = "salt-theme";
|
|
4
4
|
export declare const DEFAULT_THEME_MODE: ThemeMode;
|
|
@@ -11,15 +11,17 @@ export interface ThemeContextProps {
|
|
|
11
11
|
themeMode: ThemeMode;
|
|
12
12
|
}
|
|
13
13
|
export declare const ThemeContext: React.Context<ThemeContextProps>;
|
|
14
|
+
export type ThemeClasses = [string, string, string];
|
|
15
|
+
export declare const useThemeAttributes: () => [string, string, string];
|
|
14
16
|
interface ThemeProviderProps {
|
|
15
|
-
|
|
17
|
+
applyThemeClasses?: boolean;
|
|
18
|
+
children: ReactNode;
|
|
16
19
|
density?: Density;
|
|
17
20
|
theme?: string;
|
|
18
21
|
themeMode?: ThemeMode;
|
|
19
|
-
applyClassesTo?: TargetElement;
|
|
20
22
|
}
|
|
21
23
|
export declare const ThemeProvider: {
|
|
22
|
-
({ children, theme: themeProp, themeMode: themeModeProp, density: densityProp, }: ThemeProviderProps): JSX.Element;
|
|
24
|
+
({ applyThemeClasses, children, theme: themeProp, themeMode: themeModeProp, density: densityProp, }: ThemeProviderProps): JSX.Element;
|
|
23
25
|
displayName: string;
|
|
24
26
|
};
|
|
25
27
|
export {};
|