| 1 |
/// <reference types="react" /> |
| 2 |
export declare enum PageSectionVariants { |
| 3 |
default = "default", |
| 4 |
secondary = "secondary" |
| 5 |
} |
| 6 |
export declare enum PageSectionTypes { |
| 7 |
default = "default", |
| 8 |
subNav = "subnav", |
| 9 |
breadcrumb = "breadcrumb", |
| 10 |
tabs = "tabs", |
| 11 |
wizard = "wizard" |
| 12 |
} |
| 13 |
export interface PageSectionProps extends React.HTMLProps<HTMLDivElement> { |
| 14 |
/** Content rendered inside the section */ |
| 15 |
children?: React.ReactNode; |
| 16 |
/** Additional classes added to the section */ |
| 17 |
className?: string; |
| 18 |
/** Section background color variant. This will only apply when the type prop has the "default" value. */ |
| 19 |
variant?: 'default' | 'secondary'; |
| 20 |
/** Section type variant */ |
| 21 |
type?: 'default' | 'subnav' | 'breadcrumb' | 'tabs' | 'wizard'; |
| 22 |
/** Enables the page section to fill the available vertical space if true, or disable filling if false. */ |
| 23 |
isFilled?: boolean; |
| 24 |
/** Limits the width of the section */ |
| 25 |
isWidthLimited?: boolean; |
| 26 |
/** Flag indicating if the section content is center aligned. isWidthLimited must be set for this to work */ |
| 27 |
isCenterAligned?: boolean; |
| 28 |
/** Padding at various breakpoints. */ |
| 29 |
padding?: { |
| 30 |
default?: 'padding' | 'noPadding'; |
| 31 |
sm?: 'padding' | 'noPadding'; |
| 32 |
md?: 'padding' | 'noPadding'; |
| 33 |
lg?: 'padding' | 'noPadding'; |
| 34 |
xl?: 'padding' | 'noPadding'; |
| 35 |
'2xl'?: 'padding' | 'noPadding'; |
| 36 |
}; |
| 37 |
/** Modifier indicating if the PageBreadcrumb is sticky to the top or bottom at various breakpoints */ |
| 38 |
stickyOnBreakpoint?: { |
| 39 |
default?: 'top' | 'bottom'; |
| 40 |
sm?: 'top' | 'bottom'; |
| 41 |
md?: 'top' | 'bottom'; |
| 42 |
lg?: 'top' | 'bottom'; |
| 43 |
xl?: 'top' | 'bottom'; |
| 44 |
'2xl'?: 'top' | 'bottom'; |
| 45 |
}; |
| 46 |
/** @beta Applies the base sticky positioning to the top or bottom of the scroll parent container. */ |
| 47 |
stickyBase?: 'top' | 'bottom'; |
| 48 |
/** @beta Flag indicating if the section has stuck styling, applied when the section is not at the edge of the scroll parent container. */ |
| 49 |
isStickyStuck?: boolean; |
| 50 |
/** Modifier indicating if PageSection should have a shadow at the top */ |
| 51 |
hasShadowTop?: boolean; |
| 52 |
/** Modifier indicating if PageSection should have a shadow at the bottom */ |
| 53 |
hasShadowBottom?: boolean; |
| 54 |
/** Flag indicating if the PageSection has a scrolling overflow */ |
| 55 |
hasOverflowScroll?: boolean; |
| 56 |
/** @beta Flag indicating whether children passed to the component should be wrapped by a PageBody. |
| 57 |
* Set this to false in order to pass multiple, custom PageBody's as children. |
| 58 |
*/ |
| 59 |
hasBodyWrapper?: boolean; |
| 60 |
/** Adds an accessible name to the page section. Required when the hasOverflowScroll prop is set to true. |
| 61 |
* This prop should also be passed in if a heading is not being used to describe the content of the page section. |
| 62 |
*/ |
| 63 |
'aria-label'?: string; |
| 64 |
/** Sets the base component to render. Defaults to section */ |
| 65 |
component?: keyof React.JSX.IntrinsicElements; |
| 66 |
/** Adds plain styling to the page section. */ |
| 67 |
isPlain?: boolean; |
| 68 |
/** @beta Prevents the page section from automatically applying plain styling when glass theme is enabled. */ |
| 69 |
isNoPlainOnGlass?: boolean; |
| 70 |
} |
| 71 |
export declare const PageSection: React.FunctionComponent<PageSectionProps>; |
| 72 |
//# sourceMappingURL=PageSection.d.ts.map |