@turystack/ui 0.0.27 → 0.0.29

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.d.ts CHANGED
@@ -436,7 +436,7 @@ declare function Content_2({ children }: PropsWithChildren): JSX.Element;
436
436
 
437
437
  declare function Content_3({ children }: PropsWithChildren<CardContentProps>): JSX.Element;
438
438
 
439
- declare function Content_4({ side, align, sideOffset, children, }: PropsWithChildren<DropdownMenuContentProps>): JSX.Element;
439
+ declare function Content_4({ width, side, align, sideOffset, children, }: PropsWithChildren<DropdownMenuContentProps>): JSX.Element;
440
440
 
441
441
  declare function Content_5({ children }: PropsWithChildren): JSX.Element;
442
442
 
@@ -586,6 +586,7 @@ export declare type DropdownMenuConfig = {
586
586
  };
587
587
 
588
588
  export declare type DropdownMenuContentProps = {
589
+ width?: React.CSSProperties['width'];
589
590
  side?: DropdownMenuSide;
590
591
  align?: DropdownMenuAlign;
591
592
  sideOffset?: number;
@@ -951,7 +952,9 @@ export declare const Layout: typeof LayoutRoot & {
951
952
  Right: HeaderRight;
952
953
  };
953
954
  Main: typeof LayoutMain;
954
- Nav: typeof LayoutNav;
955
+ Nav: (({ items }: NavProps) => JSX.Element) & {
956
+ Item: ({ active, children, }: PropsWithChildren<NavItemSlotProps>) => JSX.Element;
957
+ };
955
958
  Sidebar: (({ children, bordered, width, paddingHorizontal, paddingVertical, }: PropsWithChildren<LayoutSidebarProps>) => JSX.Element) & {
956
959
  Body: SidebarBody;
957
960
  Footer: SidebarFooter;
@@ -1010,7 +1013,11 @@ export declare type LayoutMainProps = {};
1010
1013
 
1011
1014
  export declare type LayoutMainSlots = 'root';
1012
1015
 
1013
- export declare function LayoutNav({ items }: NavProps): JSX.Element;
1016
+ export declare const LayoutNav: typeof LayoutNavRoot & {
1017
+ Item: typeof NavItemSlot;
1018
+ };
1019
+
1020
+ declare function LayoutNavRoot({ items }: NavProps): JSX.Element;
1014
1021
 
1015
1022
  export declare type LayoutProps = {};
1016
1023
 
@@ -1140,6 +1147,12 @@ declare type MultipleUploaderProps = {
1140
1147
  onUpload?: (response: UploaderHandlerResponse[], index: number) => void;
1141
1148
  };
1142
1149
 
1150
+ declare function NavItemSlot({ active, children, }: PropsWithChildren<NavItemSlotProps>): JSX.Element;
1151
+
1152
+ export declare type NavItemSlotProps = {
1153
+ active?: boolean;
1154
+ };
1155
+
1143
1156
  export declare type NavProps = {
1144
1157
  items: SidebarNavEntry[];
1145
1158
  };