@julien-wiegandt/open-ui 0.1.52 → 0.1.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,40 @@
1
+ import { Color, Radius } from '../../theme/types';
2
+ import { default as React } from 'react';
3
+ import { MarginProps, PaddingProps } from '../common/types';
4
+ export declare const getPlacementStyle: (props: {
5
+ popoverSize: {
6
+ height: number;
7
+ width: number;
8
+ };
9
+ childrenSize: {
10
+ height: number;
11
+ width: number;
12
+ };
13
+ gap: number;
14
+ }) => Record<NonNullable<PopoverStyleProps["placement"]>, {
15
+ top: string;
16
+ left: string;
17
+ right: string;
18
+ bottom: string;
19
+ }>;
20
+ export type PopoverStyleProps = {
21
+ color: Color;
22
+ content: React.ReactNode;
23
+ children: React.ReactNode;
24
+ visible?: boolean;
25
+ zIndex?: number;
26
+ placement?: "left" | "right" | "top" | "bottom";
27
+ bgcolor?: string;
28
+ radius?: Radius;
29
+ } & MarginProps & PaddingProps & React.HTMLAttributes<HTMLDivElement>;
30
+ export type PopoverProps = {} & PopoverStyleProps;
31
+ export declare const Popover: React.ForwardRefExoticComponent<{
32
+ color: Color;
33
+ content: React.ReactNode;
34
+ children: React.ReactNode;
35
+ visible?: boolean;
36
+ zIndex?: number;
37
+ placement?: "left" | "right" | "top" | "bottom";
38
+ bgcolor?: string;
39
+ radius?: Radius;
40
+ } & MarginProps & PaddingProps & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,36 @@
1
+ import { PopoverStyleProps } from '.';
2
+ export declare const StyledPopover: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<{
3
+ elevation?: import('../..').Elevation;
4
+ direction?: import('../flex').FlexDirection;
5
+ gap?: string | number;
6
+ align?: import('../flex').FlexAlign;
7
+ justify?: import('../flex').FlexJustify;
8
+ wrap?: import('../flex').FlexWrap;
9
+ width?: string;
10
+ height?: string;
11
+ minWidth?: string;
12
+ minheight?: string;
13
+ hoverstyle?: import('styled-components/dist/types').Styles<object>;
14
+ } & import('../common/types').MarginProps & import('../common/types').PaddingProps & import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>, Omit<PopoverStyleProps, "body"> & {
15
+ popoverSize: {
16
+ height: number;
17
+ width: number;
18
+ };
19
+ childrenSize: {
20
+ height: number;
21
+ width: number;
22
+ };
23
+ placement: NonNullable<PopoverStyleProps["placement"]>;
24
+ }>> & string & Omit<import('react').ForwardRefExoticComponent<{
25
+ elevation?: import('../..').Elevation;
26
+ direction?: import('../flex').FlexDirection;
27
+ gap?: string | number;
28
+ align?: import('../flex').FlexAlign;
29
+ justify?: import('../flex').FlexJustify;
30
+ wrap?: import('../flex').FlexWrap;
31
+ width?: string;
32
+ height?: string;
33
+ minWidth?: string;
34
+ minheight?: string;
35
+ hoverstyle?: import('styled-components/dist/types').Styles<object>;
36
+ } & import('../common/types').MarginProps & import('../common/types').PaddingProps & import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>, keyof import('react').Component<any, {}, any>>;
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from './components/flex';
5
5
  export * from './components/icons';
6
6
  export * from './components/input';
7
7
  export * from './components/modal';
8
+ export * from './components/popover';
8
9
  export * from './components/progress-bar';
9
10
  export * from './components/select';
10
11
  export * from './components/skeleton';