morse-react-lily-pad
Advanced tools
Comparing version 3.1.0-alpha.8 to 3.1.0-alpha.9
/// <reference types="react" /> | ||
import { PanelProps, PanelSize, Position } from "morse-react"; | ||
export type LilyPadPros = PanelProps; | ||
export type LilyPadProps = PanelProps; | ||
/** | ||
@@ -11,3 +11,3 @@ * A floating component that is either anchored to another or free floating. | ||
export declare const LilyPad: { | ||
(props: LilyPadPros): JSX.Element; | ||
(props: LilyPadProps): JSX.Element; | ||
Position: typeof Position; | ||
@@ -14,0 +14,0 @@ }; |
import React, { ReactElement } from "react"; | ||
import { LilyPadPros } from "./LilyPad"; | ||
import { LilyPadProps } from "./LilyPad"; | ||
export type TriggeredLilyPadContextType = { | ||
@@ -10,6 +10,5 @@ show: (anchorElement?: HTMLElement) => void; | ||
export declare const TriggeredLilyPadContext: React.Context<TriggeredLilyPadContextType>; | ||
type TriggeredLilyPadProps = Omit<LilyPadPros, "isOpen"> & { | ||
export type TriggeredLilyPadProps = Pick<LilyPadProps, "anchorOrigin" | "panelOrigin" | "panelSize" | "preventDismissByClickAway" | "preventDismissByEsc" | "disableXSnapping" | "disableYSnapping"> & { | ||
renderTrigger?: (context: TriggeredLilyPadContextType) => ReactElement; | ||
}; | ||
export declare const TriggeredLilyPad: (props: TriggeredLilyPadProps) => JSX.Element; | ||
export {}; |
{ | ||
"name": "morse-react-lily-pad", | ||
"version": "3.1.0-alpha.8", | ||
"version": "3.1.0-alpha.9", | ||
"description": "A family of floating components that can be fixed or relative to an anchor", | ||
@@ -48,3 +48,3 @@ "repository": { | ||
], | ||
"gitHead": "d71f421405a2bf286310e9a6b1d26086d73f209f" | ||
"gitHead": "41ca1ee83ce059f1999c26b2a0f35ffc283315cf" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
23126
16
489