@starasia/admin 8.0.1 → 8.0.2
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/components/PageLayout/index.d.ts +18 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1100 -1066
- package/dist/index.umd.js +1 -1
- package/dist/types/menu.d.ts +2 -2
- package/package.json +2 -2
|
@@ -21,15 +21,32 @@ interface ActionProps {
|
|
|
21
21
|
buttonProps?: ButtonProps;
|
|
22
22
|
onClick?: () => void;
|
|
23
23
|
}
|
|
24
|
+
interface SubHeaderProps {
|
|
25
|
+
/** Content of this header row. */
|
|
26
|
+
content: ReactNode;
|
|
27
|
+
/** CSS `order` for positioning this row within the page column (header / subHeaders / body). Negative values move it above the main header. */
|
|
28
|
+
order?: number;
|
|
29
|
+
/** Show the subtle bottom border (same style as the main header). Defaults to `true`. */
|
|
30
|
+
borderBottom?: boolean;
|
|
31
|
+
}
|
|
24
32
|
export interface PageLayoutProps extends PropsWithChildren {
|
|
25
33
|
title?: string | ReactNode;
|
|
34
|
+
titleIcon?: IconName;
|
|
26
35
|
titleTag?: string;
|
|
27
36
|
header?: boolean;
|
|
37
|
+
headerBorder?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Extra header rows rendered below the main header. Each row gets the same
|
|
40
|
+
* padding as the main header (paddingBlock "sm" / paddingInline "md"), an
|
|
41
|
+
* optional bottom border, and an optional CSS `order` to reposition it
|
|
42
|
+
* within the page column. Consumers can add as many as they like.
|
|
43
|
+
*/
|
|
44
|
+
subHeaders?: SubHeaderProps[];
|
|
28
45
|
backButton?: BackButtonProps;
|
|
29
46
|
action?: ActionProps[] | React.ReactNode;
|
|
30
47
|
titleTagProps?: Omit<IBadges, "text" | "border" | "size">;
|
|
31
48
|
containerProps?: Omit<BoxProps, "variant" | "gap">;
|
|
32
49
|
headerProps?: Omit<BoxProps, "gap">;
|
|
33
50
|
}
|
|
34
|
-
export declare const PageLayout: React.MemoExoticComponent<({ backButton, title, titleTag, children, header, action, titleTagProps, containerProps, headerProps, }: PageLayoutProps) => React.JSX.Element>;
|
|
51
|
+
export declare const PageLayout: React.MemoExoticComponent<({ backButton, title, titleIcon, titleTag, children, header, headerBorder, subHeaders, action, titleTagProps, containerProps, headerProps, }: PageLayoutProps) => React.JSX.Element>;
|
|
35
52
|
export {};
|