@harpercollins/harpercollins-design-system 1.11.8 → 1.12.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.
@@ -24,6 +24,7 @@ interface AppBarProps {
24
24
  displayName: string;
25
25
  avatarUrl: string;
26
26
  } | null;
27
+ logoUrl?: string;
27
28
  }
28
- declare function AppBar({ apps, currentApp, leftSide, rightSide, myAccountMenu, workspaces, workspacesMenu, currentWorkspace, helpButton, mobileMenuPrimary, mobileMenuSecondary, user, }: AppBarProps): import("react/jsx-runtime").JSX.Element;
29
+ declare function AppBar({ apps, currentApp, leftSide, rightSide, myAccountMenu, workspaces, workspacesMenu, currentWorkspace, helpButton, mobileMenuPrimary, mobileMenuSecondary, user, logoUrl, }: AppBarProps): import("react/jsx-runtime").JSX.Element;
29
30
  export default AppBar;
@@ -1,7 +1,9 @@
1
1
  import "../../../styles/css/vendor/meyer-reset.css";
2
2
  import "../../../styles/css/globals.css";
3
+ type Theme = "light_internal" | "light_external";
3
4
  interface LayoutProps {
4
5
  header?: JSX.Element;
6
+ theme?: Theme;
5
7
  }
6
- declare function Layout({ children, header }: React.PropsWithChildren<LayoutProps>): import("react/jsx-runtime").JSX.Element;
8
+ declare function Layout({ children, header, theme, }: React.PropsWithChildren<LayoutProps>): import("react/jsx-runtime").JSX.Element;
7
9
  export default Layout;
@@ -0,0 +1,2 @@
1
+ export declare const lightExternalTheme: import("@mui/joy").Theme;
2
+ export default lightExternalTheme;
@@ -0,0 +1,2 @@
1
+ export declare const lightInternalTheme: import("@mui/joy").Theme;
2
+ export default lightInternalTheme;
package/dist/index.d.ts CHANGED
@@ -43,8 +43,9 @@ interface AppBarProps {
43
43
  displayName: string;
44
44
  avatarUrl: string;
45
45
  } | null;
46
+ logoUrl?: string;
46
47
  }
47
- declare function AppBar({ apps, currentApp, leftSide, rightSide, myAccountMenu, workspaces, workspacesMenu, currentWorkspace, helpButton, mobileMenuPrimary, mobileMenuSecondary, user, }: AppBarProps): react_jsx_runtime.JSX.Element;
48
+ declare function AppBar({ apps, currentApp, leftSide, rightSide, myAccountMenu, workspaces, workspacesMenu, currentWorkspace, helpButton, mobileMenuPrimary, mobileMenuSecondary, user, logoUrl, }: AppBarProps): react_jsx_runtime.JSX.Element;
48
49
 
49
50
  interface BaseOption {
50
51
  label: string;
@@ -177,10 +178,12 @@ declare function Heading({ children, as }: HeadingProps): react_jsx_runtime.JSX.
177
178
 
178
179
  declare function Input(props: InputProps): react_jsx_runtime.JSX.Element;
179
180
 
181
+ type Theme = "light_internal" | "light_external";
180
182
  interface LayoutProps {
181
183
  header?: JSX.Element;
184
+ theme?: Theme;
182
185
  }
183
- declare function Layout({ children, header }: React.PropsWithChildren<LayoutProps>): react_jsx_runtime.JSX.Element;
186
+ declare function Layout({ children, header, theme, }: React.PropsWithChildren<LayoutProps>): react_jsx_runtime.JSX.Element;
184
187
 
185
188
  declare function List(props: ListProps): react_jsx_runtime.JSX.Element;
186
189
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harpercollins/harpercollins-design-system",
3
- "version": "1.11.8",
3
+ "version": "1.12.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@ssh.dev.azure.com:v3/HarperCollinsUK/HCDesignSystem/HCDesignSystem"
@@ -1,2 +0,0 @@
1
- export declare const darkTheme: import("@mui/joy/styles").Theme;
2
- export default darkTheme;
@@ -1,2 +0,0 @@
1
- export declare const lightTheme: import("@mui/joy/styles").Theme;
2
- export default lightTheme;
@@ -1,2 +0,0 @@
1
- export declare const darkTheme: import("@mui/joy/styles").Theme;
2
- export default darkTheme;
@@ -1,2 +0,0 @@
1
- export declare const lightTheme: import("@mui/joy/styles").Theme;
2
- export default lightTheme;