@mechane-ai/elements 0.24.1 → 0.26.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,6 @@
1
+ import type { ReactNode } from 'react';
2
+ export type CollectionLayoutProps = {
3
+ readonly header?: ReactNode;
4
+ readonly children: ReactNode;
5
+ };
6
+ export declare function CollectionLayout({ header, children }: CollectionLayoutProps): ReactNode;
@@ -1,6 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
2
  type DetailPageProps = {
3
3
  readonly children: ReactNode;
4
+ readonly isWide?: boolean;
4
5
  };
5
- export declare function DetailPage({ children }: DetailPageProps): ReactNode;
6
+ export declare function DetailPage({ children, isWide }: DetailPageProps): ReactNode;
6
7
  export {};
@@ -10,6 +10,10 @@ export { ViewStack } from './view-stack.tsx';
10
10
  export { PageToolbar, ToolbarAction } from './page-toolbar.tsx';
11
11
  export type { PageContentProps } from './page-content.tsx';
12
12
  export { PageContent } from './page-content.tsx';
13
+ export { ReportContent } from './report-content.tsx';
14
+ export type { ReportContentProps } from './report-content.tsx';
15
+ export { CollectionLayout } from './collection-layout.tsx';
16
+ export type { CollectionLayoutProps } from './collection-layout.tsx';
13
17
  export type { ReportSectionProps } from './report-section.tsx';
14
18
  export { ReportSection } from './report-section.tsx';
15
19
  export type { RecordPageRootProps, RecordPageToolbarProps, RecordPageBodyProps, RecordPageHeaderProps, RecordPageContentProps, RecordPageAsideProps, } from './record-page.tsx';
@@ -4,6 +4,7 @@ export type RecordPageRootProps = {
4
4
  };
5
5
  export type RecordPageBodyProps = {
6
6
  readonly children: ReactNode;
7
+ readonly isWide?: boolean;
7
8
  };
8
9
  export type RecordPageContentProps = {
9
10
  readonly children: ReactNode;
@@ -27,7 +28,7 @@ export type RecordPageAsideProps = {
27
28
  };
28
29
  declare function RecordPageRoot({ children }: RecordPageRootProps): ReactNode;
29
30
  declare function RecordPageToolbar({ backLabel, backHref, onBack, actions, showNavigation, }: RecordPageToolbarProps): ReactNode;
30
- declare function RecordPageBody({ children }: RecordPageBodyProps): ReactNode;
31
+ declare function RecordPageBody({ children, isWide }: RecordPageBodyProps): ReactNode;
31
32
  declare function RecordPageContent({ children }: RecordPageContentProps): ReactNode;
32
33
  declare function RecordPageHeader({ title, description, icon, titleRef }: RecordPageHeaderProps): ReactNode;
33
34
  declare function RecordPageAside({ children, label }: RecordPageAsideProps): ReactNode;
@@ -0,0 +1,6 @@
1
+ import type { ReactNode } from 'react';
2
+ export type ReportContentProps = {
3
+ readonly summary: ReactNode;
4
+ readonly breakdown?: ReactNode;
5
+ };
6
+ export declare function ReportContent({ summary, breakdown }: ReportContentProps): ReactNode;
@@ -0,0 +1,17 @@
1
+ import type { ReactNode } from 'react';
2
+ export type ContentTab = {
3
+ readonly id: string;
4
+ readonly label: string;
5
+ readonly content: ReactNode;
6
+ };
7
+ export type ContentTabNavigation = {
8
+ readonly selectedId: string;
9
+ readonly onNavigate: (id: string) => void;
10
+ readonly href: (id: string) => string;
11
+ };
12
+ export type ContentTabsProps = {
13
+ readonly label: string;
14
+ readonly items: ReadonlyArray<ContentTab>;
15
+ readonly navigation?: ContentTabNavigation;
16
+ };
17
+ export declare function ContentTabs(props: ContentTabsProps): ReactNode;
@@ -3,3 +3,5 @@ export type { PageNavigationItem, PageNavigationProps, PageNavigationPlaceholder
3
3
  export { PageNavigation, PageNavigationPlaceholder } from './page-navigation.tsx';
4
4
  export { SkipLink } from './skip-link.tsx';
5
5
  export { Tabs } from './tabs.tsx';
6
+ export { ContentTabs } from './content-tabs.tsx';
7
+ export type { ContentTab, ContentTabNavigation, ContentTabsProps } from './content-tabs.tsx';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mechane-ai/elements",
3
- "version": "0.24.1",
3
+ "version": "0.26.0",
4
4
  "description": "Elements by Mechane — React components for applications, AI interfaces, and analytical graphics",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {