office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
1 lines • 3.87 kB
JavaScript
module.exports = "import * as React from 'react';\nimport { Panel } from './Panel';\n\nexport interface IPanelProps extends React.Props<Panel> {\n /**\n * Whether the panel is displayed.\n * @default false\n */\n isOpen?: boolean;\n\n /**\n * Has the close button visible.\n * @default true\n */\n hasCloseButton?: boolean;\n\n /**\n * Whether the panel can be light dismissed.\n * @default false\n */\n isLightDismiss?: boolean;\n\n /**\n * Header text for the Panel.\n * @default \"\"\n */\n headerText?: string;\n\n /**\n * Event handler for when the panel is closed.\n */\n onDismiss?: () => void;\n\n /**\n * Additional styling options.\n */\n className?: string;\n\n /**\n * Type of the panel.\n * @default PanelType.smallFixedRight\n */\n type?: PanelType;\n\n /**\n * Aria label on close button\n */\n closeButtonAriaLabel?: string;\n\n /**\n * Optional parameter to provider the class name for header text\n */\n headerClassName?: string;\n}\n\nexport enum PanelType {\n /**\n * Renders the panel in 'small' mode, anchored to the far side (right in LTR mode), and has a fluid width.\n * Only used on Small screen breakpoints.\n * Small: 320-479px width (full screen), 16px Left/Right padding\n * Medium: <unused>\n * Large: <unused>\n * XLarge: <unused>\n * XXLarge: <unused>\n */\n smallFluid,\n\n /**\n * Renders the panel in 'small' mode, anchored to the far side (right in LTR mode), and has a fixed width.\n * Small: 272px width, 16px Left/Right padding\n * Medium: 340px width, 16px Left/Right padding\n * Large: 340px width, 32px Left/Right padding\n * XLarge: 340px width, 32px Left/Right padding\n * XXLarge: 340px width, 40px Left/Right padding\n */\n smallFixedFar,\n\n /**\n * Renders the panel in 'small' mode, anchored to the near side (left in LTR mode), and has a fixed width.\n * Small: 272px width, 16px Left/Right padding\n * Medium: 272px width, 16px Left/Right padding\n * Large: 272px width, 32px Left/Right padding\n * XLarge: 272px width, 32px Left/Right padding\n * XXLarge: 272px width, 32px Left/Right padding\n */\n smallFixedNear,\n\n /**\n * Renders the panel in 'medium' mode, anchored to the far side (right in LTR mode).\n * Small: <adapts to smallFluid>\n * Medium: <adapts to smallFixedFar>\n * Large: 48px fixed left margin, 32px Left/Right padding\n * XLarge: 644px width, 32px Left/Right padding\n * XXLarge: 643px width, 40px Left/Right padding\n */\n medium,\n\n /**\n * Renders the panel in 'large' mode, anchored to the far side (right in LTR mode), and is fluid at XXX-Large breakpoint.\n * Small: <adapts to smallFluid>\n * Medium: <adapts to smallFixedFar>\n * Large: <adapts to medium>\n * XLarge: 48px fixed left margin, 32px Left/Right padding\n * XXLarge: 48px fixed left margin, 32px Left/Right padding\n * XXXLarge: 48px fixed left margin, (no redlines for padding, assuming previous breakpoint)\n */\n large,\n\n /**\n * Renders the panel in 'large' mode, anchored to the far side (right in LTR mode), and is fixed at XXX-Large breakpoint.\n * Small: <adapts to smallFluid>\n * Medium: <adapts to smallFixedFar>\n * Large: <adapts to medium>\n * XLarge: 48px fixed left margin, 32px Left/Right padding\n * XXLarge: 48px fixed left margin, 32px Left/Right padding\n * XXXLarge: 940px width, (no redlines for padding, assuming previous breakpoint)\n */\n largeFixed,\n\n /**\n * Renders the panel in 'extra large' mode, anchored to the far side (right in LTR mode).\n * Small: <adapts to smallFluid>\n * Medium: <adapts to smallFixedFar>\n * Large: <adapts to medium>\n * XLarge: <adapts to large>\n * XXLarge: 176px fixed left margin, 40px Left/Right padding\n * XXXLarge: 176px fixed left margin, 40px Left/Right padding\n */\n extraLarge\n}\n";