@opencxh/ui-kit 3.45.0 → 3.49.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/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +711 -655
- package/dist/index.js.map +1 -1
- package/dist/src/content/PageToolbar.d.ts +20 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PageHeaderAction } from './PageHeader';
|
|
3
|
+
export interface PageToolbarProps {
|
|
4
|
+
/** Right-aligned action buttons */
|
|
5
|
+
actions?: PageHeaderAction[];
|
|
6
|
+
/** Renders a ghost back button on the left */
|
|
7
|
+
onBack?: () => void;
|
|
8
|
+
/** Back button label (visually hidden on small screens) */
|
|
9
|
+
backLabel?: string;
|
|
10
|
+
/** Additional CSS classes */
|
|
11
|
+
className?: string;
|
|
12
|
+
/** Optional extra content placed between back button and actions */
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Thin action-bar for views that already have a host header (e.g. settings
|
|
17
|
+
* overlay). Renders an optional back button on the left and action buttons on
|
|
18
|
+
* the right. Use `PageHeader` when the view needs its own title/breadcrumbs.
|
|
19
|
+
*/
|
|
20
|
+
export declare const PageToolbar: React.FC<PageToolbarProps>;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export { Spinner, type SpinnerProps } from './feedback/Spinner';
|
|
|
22
22
|
export { Icon, type IconProps } from './content/Icon';
|
|
23
23
|
export { Image, type ImageProps } from './content/Image';
|
|
24
24
|
export { PageHeader, type PageHeaderAction, type PageHeaderProps } from './content/PageHeader';
|
|
25
|
+
export { PageToolbar, type PageToolbarProps } from './content/PageToolbar';
|
|
25
26
|
export { Table, type TableAction, type TableColumn, type TableFilter, type TableProps } from './content/Table';
|
|
26
27
|
export { View, type ViewGroup, type ViewProps } from './content/View';
|
|
27
28
|
export { SidebarMenu, type MenuItem } from './navigation/Sidebar';
|