@stoplight/mosaic
Advanced tools
Comparing version 1.0.0-beta.10 to 1.0.0-beta.11
import React from 'react'; | ||
import { BoxOwnProps } from '../Box/types'; | ||
export interface IPanelProps extends BoxOwnProps { | ||
import { PolymorphicComponentProps } from '../Box'; | ||
export declare type PanelOwnProps = { | ||
/** | ||
@@ -11,2 +11,8 @@ * The contents of the panel. | ||
/** | ||
* Wether the panel should be rounded. Applies rounded "lg" and overflow hidden. | ||
* | ||
* Usually only use this on root panel components, not nested panel components. | ||
*/ | ||
rounded?: boolean; | ||
/** | ||
* Controls how the panel will appear. | ||
@@ -43,7 +49,8 @@ * | ||
onChange?: (value: boolean) => void; | ||
} | ||
}; | ||
export declare type PanelProps = PolymorphicComponentProps<'div', PanelOwnProps>; | ||
export declare const Panel: { | ||
({ appearance, id, className, children, isCollapsible, isOpen: isOpenProp, defaultIsOpen, onChange, ...extraProps }: IPanelProps): JSX.Element; | ||
({ appearance, id, className, children, isCollapsible, isOpen: isOpenProp, defaultIsOpen, onChange, rounded, ...extraProps }: PanelProps): JSX.Element; | ||
Titlebar: React.NamedExoticComponent<import("./PanelTitlebar").IPanelTitlebar>; | ||
Content: React.FC<BoxOwnProps<React.ElementType<any>>>; | ||
Content: React.FC<import("../Box").BoxOwnProps<React.ElementType<any>>>; | ||
}; |
{ | ||
"name": "@stoplight/mosaic", | ||
"version": "1.0.0-beta.10", | ||
"version": "1.0.0-beta.11", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "peerDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
523565
8199