@starasia/admin 12.28.0 → 12.29.1

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.
@@ -1,6 +1,13 @@
1
1
  import { default as React } from 'react';
2
2
  import { BoxProps } from '@starasia/box';
3
3
 
4
+ /**
5
+ * CSS variable global berisi lebar aktual AsideBar (mis. `264px`) selama ia
6
+ * ter-mount di desktop — `0px` di mobile / saat unmount. Komponen lain bisa
7
+ * memakainya untuk berhenti tepat di tepi kiri aside, mis. `FloatingFooter`
8
+ * dengan `respectAside`. Meniru pola `--app-sidebar-width`.
9
+ */
10
+ export declare const ASIDE_WIDTH_VAR = "--app-aside-width";
4
11
  type Props = {
5
12
  pageLayout: React.ReactNode;
6
13
  children?: React.ReactNode;
@@ -13,9 +13,22 @@ type Props = {
13
13
  children: React.ReactNode;
14
14
  withScrollToTopButton?: boolean;
15
15
  scrollToTopButtonProps?: React.ComponentProps<typeof ScrollToTopButton>;
16
+ /**
17
+ * Berhenti di tepi kiri `AsideBar` alih-alih membentang ke tepi kanan
18
+ * viewport. Membaca `--app-aside-width` yang dipublikasikan AsideBar (otomatis
19
+ * `0` di mobile / tanpa aside). Untuk aside custom / `SidePanel` pakai
20
+ * `offsetRight`. Default `false` (full-width, perilaku lama).
21
+ */
22
+ respectAside?: boolean;
23
+ /**
24
+ * Offset tepi kanan footer secara eksplisit — number → px, atau string CSS
25
+ * (mis. `"337px"`). Menang atas `respectAside`. Gunakan untuk `SidePanel`
26
+ * atau aside yang tak mempublikasikan `--app-aside-width`.
27
+ */
28
+ offsetRight?: number | string;
16
29
  containerProps?: {
17
30
  justify?: BoxProps["justify"];
18
31
  };
19
32
  };
20
- export declare const FloatingFooter: ({ children, withScrollToTopButton, scrollToTopButtonProps, containerProps, }: Props) => React.JSX.Element;
33
+ export declare const FloatingFooter: ({ children, withScrollToTopButton, scrollToTopButtonProps, respectAside, offsetRight, containerProps, }: Props) => React.JSX.Element;
21
34
  export {};