@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.
- package/dist/cjs/index.cjs +45 -46
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/src/components/global/AppBar/AppBar.d.ts +2 -1
- package/dist/cjs/types/src/components/global/Layout/Layout.d.ts +3 -1
- package/dist/cjs/types/src/styles/lightExternalTheme.d.ts +2 -0
- package/dist/cjs/types/src/styles/lightInternalTheme.d.ts +2 -0
- package/dist/esm/index.js +47 -48
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/global/AppBar/AppBar.d.ts +2 -1
- package/dist/esm/types/src/components/global/Layout/Layout.d.ts +3 -1
- package/dist/esm/types/src/styles/lightExternalTheme.d.ts +2 -0
- package/dist/esm/types/src/styles/lightInternalTheme.d.ts +2 -0
- package/dist/index.d.ts +5 -2
- package/package.json +1 -1
- package/dist/cjs/types/src/styles/darkTheme.d.ts +0 -2
- package/dist/cjs/types/src/styles/lightTheme.d.ts +0 -2
- package/dist/esm/types/src/styles/darkTheme.d.ts +0 -2
- package/dist/esm/types/src/styles/lightTheme.d.ts +0 -2
|
@@ -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;
|
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