@canonical/maas-react-components 2.5.0 → 2.6.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.
@@ -0,0 +1,18 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ type LayoutProps = {
3
+ className?: string;
4
+ children: ReactNode;
5
+ pageTitle: string;
6
+ view: "settings" | "table";
7
+ isSecondaryNavVisible: boolean;
8
+ navigation: ReactNode;
9
+ secondaryNavigation: ReactNode;
10
+ statusBar?: ReactNode;
11
+ };
12
+ export declare const Layout: {
13
+ ({ className, children, pageTitle, view, isSecondaryNavVisible, navigation, secondaryNavigation, statusBar, }: LayoutProps): ReactElement;
14
+ Skeleton: ({ view, }: {
15
+ view: "settings" | "table";
16
+ }) => ReactElement;
17
+ };
18
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ declare const DocumentTitle: ({ children }: {
2
+ children: string[] | string;
3
+ }) => null;
4
+ export default DocumentTitle;
@@ -0,0 +1 @@
1
+ export { Layout } from './Layout';
@@ -1,6 +1,7 @@
1
1
  export * from './ContentSection';
2
2
  export * from './FormSection';
3
3
  export * from './InputGroup';
4
+ export * from './Layout';
4
5
  export * from './MainToolbar';
5
6
  export * from './Navigation';
6
7
  export * from './SidePanel';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@canonical/maas-react-components",
3
3
  "description": "React components for use in MAAS UI projects.",
4
- "version": "2.5.0",
4
+ "version": "2.6.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/canonical/maas-react-components.git"
@@ -92,6 +92,12 @@
92
92
  "vite-plugin-dts": "^4.5.3",
93
93
  "vitest": "^3.0.8"
94
94
  },
95
+ "overrides": {
96
+ "@canonical/react-components": {
97
+ "@types/react": "$@types/react",
98
+ "@types/react-dom": "$@types/react-dom"
99
+ }
100
+ },
95
101
  "peerDependencies": {
96
102
  "@canonical/react-components": "^4.5.0",
97
103
  "@tanstack/react-table": "^8.15.3",