tcce-design-system 0.3.26 → 0.3.28
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.
|
@@ -73,6 +73,7 @@ export declare type AllowedInputType = (typeof ALLOWED_INPUT_TYPES)[number];
|
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* Sidebar container.
|
|
76
|
+
* On desktop it sits below the header; on mobile it covers the full height as a drawer.
|
|
76
77
|
* @param $collapsed - Whether the sidebar is collapsed.
|
|
77
78
|
* @param $open - Whether the sidebar is open (mobile).
|
|
78
79
|
*/
|
|
@@ -1165,7 +1166,7 @@ export declare const Layout: (props: LayoutProps) => JSX.Element;
|
|
|
1165
1166
|
* Provides the main content area with responsive spacing and scrolling.
|
|
1166
1167
|
*/
|
|
1167
1168
|
export declare const LayoutMainContent: {
|
|
1168
|
-
({ children, className }: LayoutMainContentProps): JSX.Element;
|
|
1169
|
+
({ children, className, id, inert, "aria-hidden": ariaHidden, }: LayoutMainContentProps): JSX.Element;
|
|
1169
1170
|
displayName: string;
|
|
1170
1171
|
};
|
|
1171
1172
|
|
|
@@ -1175,6 +1176,9 @@ export declare const LayoutMainContent: {
|
|
|
1175
1176
|
export declare interface LayoutMainContentProps {
|
|
1176
1177
|
children: ReactNode;
|
|
1177
1178
|
className?: string;
|
|
1179
|
+
id?: string;
|
|
1180
|
+
inert?: boolean;
|
|
1181
|
+
'aria-hidden'?: boolean;
|
|
1178
1182
|
}
|
|
1179
1183
|
|
|
1180
1184
|
/**
|
|
@@ -1280,6 +1284,7 @@ export declare function mergeFilters(...filterStates: ColumnFiltersState[]): Col
|
|
|
1280
1284
|
|
|
1281
1285
|
/**
|
|
1282
1286
|
* Button to open sidebar on mobile devices.
|
|
1287
|
+
* Sits above the header so it is always tappable.
|
|
1283
1288
|
* @param $hidden - Whether the button is hidden.
|
|
1284
1289
|
*/
|
|
1285
1290
|
export declare const MobileOpenBtn: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
@@ -1591,7 +1596,7 @@ export declare type SetDigits = Dispatch<SetStateAction<string[]>>;
|
|
|
1591
1596
|
* @param logoImgCollapsed - Logo when sidebar is collapsed.
|
|
1592
1597
|
*/
|
|
1593
1598
|
export declare const Sidebar: {
|
|
1594
|
-
({ navigationConfig, activePath, logoImgExpanded, logoImgCollapsed, onNavigate, userPermissions, }: SidebarProps): JSX.Element;
|
|
1599
|
+
({ navigationConfig, activePath, logoImgExpanded, logoImgCollapsed, onNavigate, userPermissions, hideLogo, }: SidebarProps): JSX.Element;
|
|
1595
1600
|
displayName: string;
|
|
1596
1601
|
};
|
|
1597
1602
|
|
|
@@ -1614,9 +1619,11 @@ export declare interface SidebarContextValue {
|
|
|
1614
1619
|
/**
|
|
1615
1620
|
* Sidebar header container.
|
|
1616
1621
|
* @param $collapsed - Whether the sidebar is collapsed.
|
|
1622
|
+
* @param $hideLogo - Whether the logo is hidden (centers the toggle button).
|
|
1617
1623
|
*/
|
|
1618
1624
|
export declare const SidebarHeader: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
1619
1625
|
$collapsed: boolean;
|
|
1626
|
+
$hideLogo: boolean;
|
|
1620
1627
|
}>> & string;
|
|
1621
1628
|
|
|
1622
1629
|
/**
|
|
@@ -1628,6 +1635,7 @@ $collapsed: boolean;
|
|
|
1628
1635
|
* @property logoImgExpanded - Optional React node for the logo when sidebar is expanded.
|
|
1629
1636
|
* @property logoImgCollapsed - Optional React node for the logo when sidebar is collapsed.
|
|
1630
1637
|
* @property onNavigate - Optional callback function for handling navigation events.
|
|
1638
|
+
* @property hideLogo - When true, hides the logo inside the sidebar (useful when the logo lives in the Header instead).
|
|
1631
1639
|
*/
|
|
1632
1640
|
export declare interface SidebarProps {
|
|
1633
1641
|
navigationConfig: NavigationItem[];
|
|
@@ -1636,6 +1644,7 @@ export declare interface SidebarProps {
|
|
|
1636
1644
|
logoImgExpanded?: ReactNode;
|
|
1637
1645
|
logoImgCollapsed?: ReactNode;
|
|
1638
1646
|
onNavigate?: (href: string) => void;
|
|
1647
|
+
hideLogo?: boolean;
|
|
1639
1648
|
}
|
|
1640
1649
|
|
|
1641
1650
|
export declare const SidebarProvider: ({ children }: PropsWithChildren) => JSX.Element;
|