Skip to content

Commit

Permalink
fix(popover-container): type definitions not properly exported
Browse files Browse the repository at this point in the history
add index.d.ts file
add missing type definitions

Fixes #3707
  • Loading branch information
grabkowski committed May 11, 2021
1 parent 2a3f736 commit c127258
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/components/popover-container/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from "./popover-container";
12 changes: 7 additions & 5 deletions src/components/popover-container/popover-container.d.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
import * as React from "react";
import { PaddingProps } from "styled-system";
import * as OptionsHelper from "../../utils/helpers/options-helper/options-helper";

import { AlignBinaryType, PaddingSpacingProps } from "../../utils/helpers/options-helper/options-helper";

export interface PopoverContainerProps extends PaddingSpacingProps {
export interface PopoverContainerProps extends PaddingProps {
/** The element that will open popover-container */
renderOpenComponent?: React.ReactNode | Node;
/** The element that will close popover-container */
renderCloseComponent?: React.ReactNode | Node;
/** The content of the popover-container */
children?: React.ReactNode;
/** Sets rendering position of dialog */
position?: AlignBinaryType;
position?: OptionsHelper.AlignBinaryType;
/** Sets the popover container dialog header name */
title?: string;
/** Callback fires when close icon clicked */
onClose?: () => void;
/** if `true` the popover-container is open */
isOpen?: boolean;
open?: boolean;
/** Callback fires when open component is clicked */
onOpen?: (ev: React.MouseEvent<HTMLElement>) => void;
/** if `true` the popover-container will cover open button */
shouldCoverButton?: boolean;
/** The id of the element that describe the dialog. */
Expand Down

0 comments on commit c127258

Please sign in to comment.