@foris/avocado-suite 1.12.0 → 1.13.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/avocado-suite.es.js +4687 -4631
- package/dist/avocado-suite.umd.js +41 -41
- package/dist/components/DataTable/utils/dataTableUtil.d.ts +1 -1
- package/dist/components/header/Header.d.ts +8 -0
- package/dist/components/header/Header.test.d.ts +0 -0
- package/dist/components/tabs/Tabs.d.ts +5 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ export declare const getStyles: (options?: IResponsiveOptions) => {
|
|
|
3
3
|
maxWidth: string;
|
|
4
4
|
minWidth: string;
|
|
5
5
|
padding: string;
|
|
6
|
-
textAlign: "
|
|
6
|
+
textAlign: "center" | "left" | "right";
|
|
7
7
|
width: string;
|
|
8
8
|
};
|
|
9
9
|
export declare const parseColumn: (column: IDataTableContentColumn, index: number) => {
|
|
@@ -24,6 +24,14 @@ export interface HeaderProps {
|
|
|
24
24
|
hasSidebarMenu?: boolean;
|
|
25
25
|
sidebarMenuContent?: React.ReactNode;
|
|
26
26
|
sidebarHeightGap?: number;
|
|
27
|
+
/** Controls the sidebar from outside; when omitted, the Header owns its state. */
|
|
28
|
+
sidebarMenuOpen?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Called with the requested sidebar state from ☰, the sidebar overlay or another menu.
|
|
31
|
+
* The overlay closes the sidebar itself and reports `false` once its close animation
|
|
32
|
+
* ends, so update `sidebarMenuOpen` to keep it in sync.
|
|
33
|
+
*/
|
|
34
|
+
onSidebarMenuToggle?: (open: boolean) => void;
|
|
27
35
|
}
|
|
28
36
|
declare const Header: FC<HeaderProps>;
|
|
29
37
|
export default Header;
|
|
File without changes
|
|
@@ -13,6 +13,11 @@ export interface TabsProps {
|
|
|
13
13
|
items: TabItemProps[];
|
|
14
14
|
/** Callback that will be triggered when one of the tabs is clicked. */
|
|
15
15
|
onClick?: (index: number) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Keeps the outgoing panel's height as the incoming panel's `min-height` on every switch,
|
|
18
|
+
* so the page does not jump. The `min-height` only grows while `Tabs` stays mounted.
|
|
19
|
+
*/
|
|
20
|
+
preserveHeight?: boolean;
|
|
16
21
|
}
|
|
17
22
|
declare const Tabs: FC<TabsProps>;
|
|
18
23
|
export default Tabs;
|